wattsy

August 2022·Engineering·6969 toadz

All 6,969 CrypToadz, rendered fully on-chain by a tokenURI renderer.

CrypToadz Chained

CrypToadzChained renders all 6,969 CrypToadz fully on-chain, including the 1/1 custom images and animations.

The contract stores the features of each toad as INFLATE-compressed draw instructions in SSTORE2. A Solidity pixel renderer, based on the ChainToadz GIFEncoder, draws them on request. The build read the four toadz above from mainnet.

It is not an ERC-721. It is only a tokenURI renderer, which an existing token contract can use. Kohi needs the mochi node, but a toad renders in the standard gas limit. Thus a normal eth_call returns the image.

2022-08-15 — CrypToadzChained goes live

The renderer deploys to mainnet.

Receiptverified
projectCrypToadzChained, the CrypToadz collection rendered fully on-chain
contract0xE8D8C0A6f174e08C44aB399b7CE810Bc4Dce096A (pure tokenURI renderer · not an ERC-721)
networkEthereum mainnet
deployed15 August 2022 · block 15343556
deployer0x2670cAECE15de7Ae6a77aF7acA55b14a766B7426 (wattsy)
compilersolc 0.8.13, verified on Etherscan (exact match)
source-artCrypToadz by GREMPLIN (CC0) · original contract 0x1CB1A5e65610AEFF2551A50f76a87a7d3fB649C6
verifycast call 0xE8D8C0A6f174e08C44aB399b7CE810Bc4Dce096A "tokenURI(uint256)(string)" 1 --rpc-url <rpc>

Not connected yet

The original CrypToadz contract still reads its metadata from off-chain storage. It does not point to this renderer. ERC-4804 (web3://) can connect them: a URL that is an EVM call.

But marketplaces do not read web3:// URLs yet. If the collection changes now, it will look broken on those marketplaces. The change must wait for marketplace support.