GithubHelp home page GithubHelp logo

sherrbss / erc721k-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erc721k/monorepo

0.0 0.0 0.0 1.68 MB

๐ŸŽจ Dynamic Token Images and Metadata

Shell 0.22% JavaScript 1.63% TypeScript 68.37% CSS 0.28% Handlebars 0.55% Solidity 28.95%

erc721k-monorepo's Introduction

ERC721K - Dynamic Token Images and Metadata

TS GPLv3 license

Overview

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.

How It Works

Image and Metadata (traits) are dynamically generated using the SVGRegistry and DataStreamRegistry smart contracts.

SVGRegistry

The SVGRegistry manages SVGModules and provides a unified interface for rendering dynamic SVGs.

DataStreamRegistry

The DataStreamRegistry manages StreamModules and provides a unified interface for fetching dynamic on-chain data.

Installation & Usage

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

Modules

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.

Environment Variables

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.

Task Pipelines

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.

Developer Experience

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.

Core Technologies


Copyright 2022 Friends of Pooly Inc

erc721k-monorepo's People

Contributors

kamescg avatar mcoso avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.