kames.eth 🌐 Web3 of Trust Profile picture
// 🌐 @district_labs // 🪶 @FriendsofPooly // 👑 @easypfp // 🏦 https://t.co/z3O3jyzVrJ // ⚡https://t.co/4UUD6PpgG1 // 🎨 https://t.co/uiE3AZfA61 // prv @pooltogether_

Aug 16, 2022, 6 tweets

🎨ERC721K: Dynamic On-Chain Images and Metadata

A new framework for constructing, rendering and evolving NFTs (ERC721) using composable SVGModules and real-time DataStreams.

Code: github.com/erc721k

1/ SVGRegistry

The magic happens here. Custom `bytes` instructions are relayed between the NFT<>Registry<>Module instances.

1. NFT encodes dynamic instructions
2. Registry relays encoded message
3. Modules decode/parse instructions

Encoded instructions in 🔼 dynamic SVG out 🔽

2/ SVGModules

Modules contain SVGs, SVGElements and DataStreams (balanceOf, delegatedAmount, ENS, etc...) and can be called by any ERC721K instance.

NFT Artists/Designers can share on-chain assets! Have an interesting design pattern? Module. Unique data stream? Module.

3/ DataStreams

Data is everywhere on-chain. DataStreams wrap any public smart contract method with a ERC721K data adapter interface.

Want to fetch ENS profile information? Done. Delegated chance on PoolTogether ptTokens? Easy.

Pick a source. Write adapter. Stream NFT traits.

Examples

Demo contracts with dynamic emoji characters wrapped in <svg><text></text/></svg> elements.

github.com/erc721k/labs/t…

What's next? Partnerships 🤝 to build the core catalog of SVGModules that communicate with popular DeFi and DAO protocols.

If you are interested in a partnership you can reach me through the contact form below 👇

forms.gle/UFx6YP7Tdo6UuR…

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling