Solidity Contract: mintable NFTs having on-chain 'mutable' DNA traits and a related yield token for tokenomics.
Finally deployed on Polygon
https://rubykitties.net/polygonBitBirds.html
https://opensea.io/collection/polygonbitbirds
Experiment based on excellent Dabiri work!
https://github.com/nft-fun
Evolving to a free contract template with tokenomics and on-chain traits with svg dynamic nfts (no need to external storage)
Interfaces.sol - common interfaces defines
MainContract.sol - main contract logic
YieldTokenContract.sol - yield token rewards tokenomics (optional allowed withdrawal)
TokenUriLogicContract.sol - dna-traits and dynamic character logics
Copy, past and compile on Remix
https://remix.ethereum.org/ (enable optimization 200)
Deploy MainContract
Deploy YieldTokenContract (pass MainContract address as constructor param)
Deploy TokenUriLogicContract (pass MainContract address as constructor param)
Set YieldTokenContract address on the deployed MainContract (setYieldToken)
Set TokenUriLogicContract address on the deployed MainContract (setTokenUriLogic)
This is a first draft of a mintable NFT with on-chain traits.
The first dynamic MutantBitBird's svg is finally flying on Polygon as PolygonBitBird(PBB) !
Previous test on Opensea: https://testnets.opensea.io/collection/mutantbitbirds-3
Tokenomics
No need to stake, earn MCS on first mint and much more simply owning one or more MBBs as holder. The more you own, the more you earn. Spend earned MCS tokens to 'evolve' yours MBB NFTs (change the on-chain traits, add a nickname and more to come)
Already deployed on groeli testnet at:
0x73C4D9D23a7Df31351dc6EE8f2276414c76eA8F6 (PolygonBitBirds PBB)
https://polygonscan.com/address/0x73c4d9d23a7df31351dc6ee8f2276414c76ea8f6#readContract