Skip to content

hidotmatrix/COTA-NFT-Nervos

Repository files navigation

COTA-NFT-Nervos

Index NFT data of User Wallet

node aggregator.js

Register Cota cell of User Wallet

node register.js

Issuing Issuer Data

node issuer.js

Define Collection Data

node define.js

Update Collection Data

node update-cota-metadata.js

Mint NFT for a Reciever address

node mint.js

Claim NFT as a Reciever address

node claim.js

Update NFT info as a Reciever address

node update.js

CoTA NFT Flow

                     Register CoTA cell firstly
1. Alice & Bob & Tom ----------------------------------> Alice CoTA cell & Bob CoTA cell & Tom CoTA cell

          Define CoTA NFT               Mint CoTA NFT A to receivers
2. Alice -----------------------> NFT A -----------------------------------> Receivers (Bob)

                    Claim NFT A                                  Withdraw NFT A to Tom
       Action1 |-------------------------> Bob hold NFT A now ----------------------------------> Bob doesn't hold NFT A now
      |             Transfer NFT A to Tom
3. Bob Action2 |-----------------------------------> Bob doesn't hold NFT A now
      |           Update CoTA NFT A information
       Action3 |-----------------------------------> Bob hold CoTA NFT A with new information

                    Claim NFT A                                 Withdraw NFT A to other receivers
        Action1 |-------------------------> Tom hold NFT A now ----------------------------------> Tom doesn't hold NFT A now
4. Tom |         Transfer NFT A to other receivers
        Action2 |-----------------------------------> Tom doesn't hold NFT A now

  • Registry: Every address should be registered firstly
  • Define: The issuer can define a collection NFTs with total/name/description/image etc.
  • Mint: The issuer mint the defined NFTs to the receivers (withdraw to the receivers actually)
  • Claim: The receiver can claim the NFT from the mint, and now the receiver hold the NFT
  • Update: The holder of NFT can update the information (characteristic/state etc.)
  • Withdraw: The holder of NFT can withdraw the NFT to any other CKB address
  • Transfer: To simplify, transfer combines the claim and withdraw into one operation. The receiver can claim the NFT from the mint and withdraw the same NFT to others in a transaction.

Examples

Releases

No releases published

Packages

No packages published