MinaNFTContract
Hierarchy
- SmartContract
- MinaNFTContract
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externaladdress: PublicKey
externaloptionaltokenId: Field
Returns MinaNFTContract
Properties
escrow
The escrow of the NFT - Poseidon hash of three escrow's public keys
metadata
The metadata of the NFT.
name
The name of the NFT.
owner
The owner of the NFT - Poseidon hash of owner's public key
storage
The storage of the NFT - IPFS (i:...) or Arweave (a:...) hash string
version
The version of the NFT, increases by one with the changing of the metadata or the owner
Methods
approveEscrow
Approve setting of the new escrow
Parameters
proof: EscrowTransferProof
EscrowTransferProof - escrow proof
Returns Promise<void>
escrowTransfer
Transfer the NFT to new owner
Parameters
data: EscrowTransfer
EscrowTransfer - data for the transfer
signature1: Signature
signature of the first escrow
signature2: Signature
signature of the second escrow
signature3: Signature
signature of the third escrow
escrow1: PublicKey
public key of the first escrow
escrow2: PublicKey
public key of the second escrow
escrow3: PublicKey
public key of the third escrow
Returns Promise<void>
update
Update metadata of the NFT
Parameters
update: Update
Update - data for the update
signature: Signature
signature of the owner
owner: PublicKey
owner's public key
proof: MinaNFTMetadataUpdateProof
MinaNFTMetadataUpdateProof - proof of the update of the metadata to be correctly inserted into the Merkle Map
Returns Promise<void>
MinaNFTContract is a smart contract that implements the Mina NFT standard.