Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 868 Bytes

smart-contracts.md

File metadata and controls

36 lines (24 loc) · 868 Bytes

Smart contracts:

  1. build NFT meta data with image and such, put it on the IPFS network whcih then will result in a CID and builds up the "base-url" used when calling "set-base-token-uri"
  2. mint: this takes the reciever address. It depends internally on the contract address (via getContract helper). -> so... having the counter here, will interefere with ALL other minting -> reste counter per day? to be continued...

Some notes in un-sorted order:

Compile the scripts:

(Dont forget to run this when making changes in hardhat.config.js !)

yarn hardhat compile

Deploy the smart contract:

yarn hardhat run scripts/deploy-matic.js

Check balance:

yarn hardhat check-balance

Mint an asset:

Mint an asset from NFT_CONTRACT_ADDRESS to given address

yarn hardhat mint --address [RECEIVER-ADDRESS]