NFT Smart contract for WePlay
- nodejs 14.x
- yarn
Make .env file with following content:
INFURA_KEY=<infura-key>
PRIVATEKEY=<private-key>
# for mint
CONTRACT_ADDRESS=<deployed-contract-address>
MINT_TO_ADDRESS=<mint-to-address>
Save your arweave key (json) as ./scripts/key.json
Install dependencies:
$ yarn install$ yarn build$ yarn testThis will deploy contract to default network:
$ yarn deployAll networks are specified in hardhat.config.ts. You can deploy to any network
with:
$ yarn deploy --network <network>For each token, create a folder in ./tokens/ and put img.png and index.json there
For example ./tokens/example/img.png ./tokens/example/index.json
Then run
$ yarn mint --network <network>to mint