🎨 Dynamic Token Images and Metadata
ERC721K is an ERC721 implementation with zero dependencies for off-chain data.
Both the token image and token traits are generated entirely on-chain.
However, instead of the smart contract logic deployed in a specific NFT instance, the underlying system has been modularized, to enable composition of SVGModules
across many different instances. NFTs can share SVGModules
which encapsulate both rendering and data fetching logic.
Image and Metadata (traits) are dynamically generated using the SVGRegistry
and DataStreamRegistry
smart contracts.
The SVGRegistry
manages SVGModules
and provides a unified interface for rendering dynamic SVGs.
The DataStreamRegistry
manages StreamModules
and provides a unified interface for fetching dynamic on-chain data.
git clone [email protected]:turbo-eth/turbo-eth.git
Installation
pnpm
is the recommended package manager.
pnpm install
Local Development
pnpm lab
Local Development w/ Blockchain Fork
pnpm lab:fork
Build
pnpm build
Tests
pnpm test
The monorepo includes 3 primary folders.
Each folder contains similar modules
i.e. frontend applications go in the apps
folder and the smart contracts go in the contracts
folder; very straight-forward.
Each module requires unique environment variables. Specifically the apps
and contracts
modules when preparing for deployment or forking a blockchain network.
The .env.example
can be copied/pasted and updated to include the required variables deployment.
Builds, tests and deployments are handled via tasks pipelines. Task pipelines orchestrate build and dependency requirements between mono-repo packages.
Edit the turbo.json
file in the root directory to add new pipelines and custom workflows.
The TurboETH build system uses Turborepo and pNPM; a high-performance build system and a fast, disk space efficient package manager. Giving developers the best experience possible while minimizing demand on local compute resources.
Copyright 2022 Friends of Pooly Inc