https://github.com/anupam-io/erc1155-mushroom
ERC1155 multi-token with Openzeppelin hosted on Opensea | Tutorial for digital art
https://github.com/anupam-io/erc1155-mushroom
digital-art erc1155 nft opensea openzeppelin tutorial
Last synced: over 1 year ago
JSON representation
ERC1155 multi-token with Openzeppelin hosted on Opensea | Tutorial for digital art
- Host: GitHub
- URL: https://github.com/anupam-io/erc1155-mushroom
- Owner: anupam-io
- Created: 2021-03-28T05:36:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-30T07:46:43.000Z (over 5 years ago)
- Last Synced: 2025-03-18T20:48:10.379Z (over 1 year ago)
- Topics: digital-art, erc1155, nft, opensea, openzeppelin, tutorial
- Language: JavaScript
- Homepage: https://testnets.opensea.io/assets/0xfa9d1298e22afa3b5c46db91424028857c10742a/0
- Size: 3.38 MB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ERC11155: Mushroom

## Commands
- `yarn` : installation
- `yarn compile` : compilation
- `yarn test` : tests
- `yarn migrate` : migrating to rinkeby
- `yarn verify:m` : verifying **Mushroom** on etherscan
- `yarn verify:r` : verifying **MushroomReceiver** on etherscan
## How to deploy your NFT on **rinkeby**?
- Install using `yarn`
- Rename `.env.example` to `.env` and set the values of environment variables accordingly
- Set the `tokenURI` in **line 12** of `Mushroom.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!!!**
## Notes for MushroomReceiver
- This contract is made to recieve ERC1155 tokens
- The admin of this contract can transfer tokens to anyone
## Deployments
- [Mushroom](https://rinkeby.etherscan.io/address/0xbB52E126A7508db6FB87DBC63187f0ff4cF612eD#contracts)
- [Token on Opensea](https://testnets.opensea.io/collection/unidentified-contract-njxc7khhdj)
## Dependencies
```
"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"
}
```
## Resources/Credits/References
- https://forum.openzeppelin.com/t/create-an-erc1155/4433
- https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC1155
- https://docs.opensea.io/docs/metadata-standards
- https://docs.openzeppelin.com/contracts/3.x/erc1155#constructing_an_erc1155_token_contract