Skip to main content

Update

Update is the data for the update of the metadata to be written to the NFT state

Hierarchy

  • { name: Field; newRoot: Metadata; oldRoot: Metadata; owner: Field; storage: Storage; verifier: PublicKey; version: UInt64 }
    • Update

Index

Constructors

constructor

  • new Update(value: { name: Field; newRoot: Metadata; oldRoot: Metadata; owner: Field; storage: Storage; verifier: PublicKey; version: UInt64 }): Update
  • Parameters

    • value: { name: Field; newRoot: Metadata; oldRoot: Metadata; owner: Field; storage: Storage; verifier: PublicKey; version: UInt64 }

    Returns Update

Properties

name

name: Field = Field

The name of the NFT

newRoot

newRoot: Metadata = Metadata

The new root of the Merkle Map of the metadata

oldRoot

oldRoot: Metadata = Metadata

The old root of the Merkle Map of the metadata

owner

owner: Field = Field

The owner of the NFT - Poseidon hash of owner's public key

storage

storage: Storage = Storage

The storage of the NFT - IPFS (i:...) or Arweave (a:...) hash string

verifier

verifier: PublicKey = PublicKey

The verifier of the NFT - the contract that sends this update

version

version: UInt64 = UInt64

The new version of the NFT, increases by one with the changing of the metadata or owner