- Install Brownie, if you haven't already. Here is a simple way to install brownie.
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# restart your terminal
pipx install eth-brownie
Or, if that doesn't work, via pip
pip install eth-brownie
- Download the mix and install dependancies.
git clone https://github.com/NFTatDAO/nftat
cd nftat
If you want to be able to deploy to testnets, do the following.
Set your WEB3_INFURA_PROJECT_ID
, and PRIVATE_KEY
environment variables.
You can get a WEB3_INFURA_PROJECT_ID
by getting a free trial of Infura. At the moment, it does need to be infura with brownie. If you get lost, you can follow this guide to getting a project key. You can find your PRIVATE_KEY
from your ethereum wallet like metamask.
You can add your environment variables to a .env
file. You can use the .env.exmple as a template, just fill in the values and rename it to '.env'. Then, uncomment the line # dotenv: .env
in brownie-config.yaml
Here is what your .env
should look like:
export WEB3_INFURA_PROJECT_ID=<PROJECT_ID>
export PRIVATE_KEY=<PRIVATE_KEY>
DO NOT SEND YOUR PRIVATE KEY WITH FUNDS IN IT ONTO GITHUB
Go to opensea.
The 0, 0
pixels are "special". One controls the background color and grayscale. One controls the big circle in the back.
brownie networks add Ethereum polygon host=<YOUR_POLYGON_RPC_URL> chainid=137
Go into change_color.py
and change MY_TOKEN_ID
to whatever token you own, and MY_COLOR
to any hex or string color you like. You can see a list of tokens you own on opensea or on the website.. Then run:
brownie run scripts/interactive_scripts/change_color.py --network polygon
You can also change your color through the UI.
brownie test
Thanks to TheLinkMarines for the logo!!