BingoNFT (@BingoGameNft) header
BingoNFT (@BingoGameNft) profile picture

(Not that early anymore!) On-chain, gas optimized, bingo sheets. No game (yet? ever?) but likely giveaways. Launching early March 2022!

Joined February 2022
BingoNFT retweeted
1/ Why CLAY_ is truly on-chain, explained from a technical level. 🧵...
55
105
24
342
(Building some other stuff still, but we've got more optimizations this week!)
Gonna be in the @AnonymiceNFT spaces in about 20 minutes but wanted to share a quick tool for anyone else doing on-chain art. This is great for quickly viewing your SVG files and figuring out what went wrong (when it inevitably does)! svgviewer.dev/svg-to-png
1
Another small gas (and best-practice) optimization for you all today: if you have a CONSTANT variable (example: max supply, price, etc.) that you never plan on changing, then use the 'constant' keyword. bitdegree.org/learn/solidity…
1
It may not seem like much, but this saved about 1.4% in gas for deployment costs and another 3% for each minter! This can definitely add up, and there's honestly no reason not to. The reason for this is that constants aren't actually SSTORE'd, but end up in the final bytecode!
Mimetic Metadata: How To Create A Truly Non-Dilutive NFT Collection In 2022 LIKELY not relevant to this collection, but still an awesome read - nftchance.medium.com/mimetic…
1
Oh dang, unexpected savings! Ensure that the libraries that you're using are gas efficient as well. We were using the Base64 implementation from Brecht Devos (similar to this version - github.com/Brechtpd/base64/b…) (1/2)
1
Switching to the @OpenZeppelin implementation allowed us to move from a local, unmanaged file AND save about 6.4% gas per call to tokenURI (renderer information soon™) github.com/OpenZeppelin/open…
2
1
Technically 🧵 3/2, but whatever. A quick note here - we know that tokenURI (or any view methods) doesn't actually pass gas costs onto the user for the most part, but that doesn't mean you shouldn't try to be efficient where possible!
1
Oh, here's one that we didn't even consider bringing up since we thought it goes without saying. But, in case it doesn't. Don't forget to enable your optimizer! This doesn't help your users any but is saving us an average of about 0.15e for deployments. docs.soliditylang.org/en/v0.…
A number of people asked how much it costs to deploy a contract with on-chain assets. Obviously, this will RAPIDLY increase if you are storing all of the traits, etc. on-chain, but here are our current deployment costs (at 75 gwei) for all of the current contracts.
In the meantime, a 🧵 on some of the cool features/(benefits?) of BingoNFT, since this week will be less exciting.
1
1
That is all of the features or benefits that we can think of, but let us know if there are any implementations or ideas that you'd like to see in the contract before we release (this month?!)!
1
Forgot to mention this, but obviously, we are on-chain! Inspired by/copied from/worked with the @AnonymiceNFT first and foremost, but also @EdgehogsNFT @EtherOrcs @_MouseDev @chain_runners and more.
1