Giter VIP home page Giter VIP logo

cairo-nft's Introduction

cairo-nft

NFT Research on StarkNet

Installation & Setup

python -m venv cairo-venv
source cairo-venv/bin/activate

sudo apt install -y libgmp3-dev
(or for M1 macbook)
CFLAGS=-I`brew --prefix gmp`/include LDFLAGS=-L`brew --prefix gmp`/lib pip install ecdsa fastecdsa sympy
pip install --upgrade pip
pip install cairo-lang
pip install cairo-nile 
pip install openzeppelin-cairo-contracts
pip install immutablex-starknet

nile init
yarn install

Compiling Contracts

  • Compiling Account Contract
nile compile contracts/AccountContract.cairo --account_contract
  • Compiling simple contract
nile compile contracts/SimpleERC721.cairo
๐Ÿ”จ Compiling contracts/SimpleERC721.cairo โœ… Done

Deploying Contracts

python scripts/deploy.py

Research

StarkNet NFT can be used to leverage a lot of Use Cases Our first use case is to implement a imple Merkle whitelist using Merkle Proof and Merkle Root : ERC721_whitelist.cairo

Our second use case is to leverage Account Abstraction and link it to an NFT. Basically the use case here is to bind an abstracted account to each minted token of the collection and airdrop any token to it. This could for example be used for backing of the NFT : Let's imagine each time we mint a token, whatever token we are also sending to the contract will be stored in this dedicated token and therefore becoming a Liquid NFT.

cairo-nft's People

Contributors

exomonk 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.