You can mint ERC721 wagons, which have unique resource type and repairable conditions. And send them to gather ERC1155 resources of 5 types. Wagons amount is limited, and repair is possible only with metal!
- Deploy wagons.sol
-
_baseTokenURI
— exact likeipfs://bafybeie47vvt7dl2lp3sufe32fp427alqkicnsuahft67ftpz2m2c62nym/
(use nft.storage) -
burner
— address, where ETH gains from wagon purchases are going to buyback clan tokens then
- Deploy resources.sol
_baseTokenURI
— exact likeipfs://bafybeieadsg3gucb54e6xx5ddcb4qduvkjfjpdexut57j4jrxxy72r6zuu/
(use nft.storage)
-
setRecourcesContract()
in wagons.sol -
msg.sender
have tosetApprovalForAll(true)
to wagons.sol contract address in resources.sol contract to play -
Do not renounce owner so you can edit metadata later
https://docs.google.com/spreadsheets/d/17yFH1PTIFT3COcvgITsKL2SY3KTySHgm6S-wz3B5eqg/edit#gid=0
- Add +13 sec on UI for every timestamp because of block refreshing
- Parse all tokenId owners and index it in the database, holding mappings address => tokenIds