Giter Club home page Giter Club logo

cadencenft's Introduction

flow NFT

Explorer

https://testnet.flowscan.org/

Description

there are two account in transfer step, NFT owner and receiver

Steps:

  1. OWNER deploy contract on flow chain ,and create collection to owner's account (output : AccountContractAdded -> 0x2f55...(example))
  2. OWNER mint and deposit NFT to owner's collection
  3. RECEIVER create collection for his account
  4. OWNER transfer NFT to receiver

Test Steps;

  1. test on emulator (O) -> put meatadata in NFT (O) -> random mint NFT (O) -> renew metadata(bonus)(O) -> constraint: no bonus, no transfer(O) -> change name ->account to owner / receiver(O) -> in makefile, _nft -> NFT (O)

  2. test on testnet (use explorer on testnet) -> check cmd for whale steps

CLI-script

  • start emulater
flow project start-emulator --config-path=flow.json --verbose
  • deploy contract
// command
flow accounts add-contract $CONTRACT_NAME $CONTRACT_PATH
// example
flow accounts add-contract ExampleNFT ./cadence/contracts/ExampleNFT.cdc 
  • send transactions
// command
flow transactions send $TRANSACTION_PATH --signer $SIGNER
// example
flow transactions send ./transactions/MintNFT.cdc --signer emulator-account
  • send script
// command
flow scripts execute $TRANSACTION_PATH
// example
flow scripts execute ./transactions/MintNFT.cdc
  • create account
flow accounts create --key --signer
  • create key
flow keys generate

Reference:

cadencenft's People

Contributors

suvincent avatar chunwang1998 avatar

Forkers

chunwang1998

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.