Giter Site home page Giter Site logo

nft-creator's Introduction

NFT Creator

These files provide the building blocks to:

  • Bulk create mock NFTs on a local network, no images required
  • Generate NFT images from trait .pngs
  • Upload files to IPFS (implementation in progress)
  • And an e2e example of generating NFTs + metadata from traits, storing them in IPFS (in progres), and creating them on a parachain

Running

Launch trappist parachain locally. Instructions found here

cd nft-creator
yarn
ts-node create-mock-nfts.ts

Scripts

  • mock-nft-config.json example config passed for mock NFTs. No images.
  • trappist-nft-config.json config used for trappist NFTs with traits
  • create-mock-nfts.ts will generate mock metadata, create collection, and populate each NFT on-chain with the mock metadata CID and attributes.
  • create-trappist-nfts.ts will generate NFT images & metadata from the trappist-nfts/traits folder. Populates the NFT metadata on-chain

The creation scripts include examples on implementing custom interfaces to provide to the NftGenerator and NftCreator classes.

Building Blocks

  • nft-generator.ts is a reusable NFT generator class that will create NFT images from trait images and provide metadata
  • nft-creator.ts is reusable class that will bulk populate NFT metadata and images on-chain. It is configurable to upload metadata & images on-chain based on the IpfsManager implementation
  • interfaces/config.ts the interface that config files must follow
  • interfaces/ipfs-manager.ts a simple interface for IPFS to allow configurability for IPFS connections & apis
  • interfaces/metadata-interface.ts the metadata interface that the NFTs must use. Based on common metadata standards. Example here
  • interfaces/name-and-description.ts interfaces to implement custom NFT naming and description generation. Will be provided to the NftGenerator class.

nft-creator's People

Contributors

peterwht avatar

Watchers

 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.