Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimoData committed Aug 30, 2023
1 parent f2a9609 commit 774a91a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DUNE_API_KEY=
FLIPSIDE_API_KEY=
WEB3_INFURA_PROJECT_ID=
PRIVATE_KEY=
10 changes: 6 additions & 4 deletions Create_OCEAN_Data_NFT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@
"outputs": [],
"source": [
"# Create Data NFT\n",
"name = \"Test Data NFT (Dune)\"\n",
"name = \"Data NFT (Dune)\"\n",
"\n",
"# Link to File\n",
"url = (\n",
" \"https://raw.githubusercontent.com/PrimoData/ocean_data_nfts/main/query_results.csv\"\n",
"result = subprocess.run(\n",
" [\"git\", \"config\", \"--get\", \"user.name\"], stdout=subprocess.PIPE, text=True\n",
")\n",
"github_username = result.stdout.strip()\n",
"url = f\"https://raw.githubusercontent.com/{github_username}/ocean_data_nfts/main/query_results.csv\"\n",
"\n",
"# Set Gas Fees\n",
"priority_fee = chain.priority_fee\n",
Expand Down Expand Up @@ -279,7 +281,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.17"
"version": "3.10.5"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
Quickly create [OCEAN](https://oceanprotocol.com/) Data NFTs by querying blockchain data from different providers ([Dune](https://dune.com/) & [Flipside](https://flipsidecrypto.xyz/)).

## Setup
1. Create a GitHub Codespaces workspace, which will automatically setup a Python environment with the following:
1. Fork this repo.
2. Create a GitHub Codespaces workspace, which will automatically setup a Python environment with the following:
* Python 3.8.
* `pip install -r requirements.txt`
2. Create an `.env` file with the following keys:
3. Copy the `.env.example` file, rename to `.env`, and add your keys:
* `DUNE_API_KEY`
* `FLIPSIDE_API_KEY`
* `WEB3_INFURA_PROJECT_ID` (Note: Must have an Infrura account w/ RPC endpoints.)
* `PRIVATE_KEY` (For a wallet)
3. Run `Create_OCEAN_Data_NFT.ipynb`
4. Run `Create_OCEAN_Data_NFT.ipynb`

0 comments on commit 774a91a

Please sign in to comment.