yarn
: installationyarn compile
: compilationyarn test
: testsyarn migrate
: migrating to rinkebyyarn verify:m
: verifying Mushroom on etherscanyarn verify:r
: verifying MushroomReceiver on etherscan
- Install using
yarn
- Rename
.env.example
to.env
and set the values of environment variables accordingly - Set the
tokenURI
in line 12 ofMushroom.sol
- Set the metadata in the
meta
directory - Set the nfts in the
nfts
directory - Run
yarn migrate
to deploy the contracts to rinkeby - Run
yarn verify:m
to verify the contracts on etherscan - Visit https://testnets.opensea.io/ and enter the address of above deployed
Mushroom
contract - Enjoy with your NFTs!!!
- This contract is made to recieve ERC1155 tokens
- The admin of this contract can transfer tokens to anyone
"dependencies": {
"@openzeppelin/contracts": "^4.0.0",
"@truffle/hdwallet-provider": "1.0.40",
"dotenv": "^8.2.0",
"truffle": "^5.2.6",
"truffle-plugin-verify": "^0.5.7"
}