NFTStateStruct
Hierarchy
- { metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; packedData: Field; storage: Storage }
- NFTStateStruct
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalvalue: { metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; packedData: Field; storage: Storage }
externalmetadata: Field = Field
externalmetadataVerificationKeyHash: Field = Field
externalname: Field = Field
externalowner: PublicKey = PublicKey
externalpackedData: Field = Field
externalstorage: Storage = Storage
Returns NFTStateStruct
Properties
metadata
metadataVerificationKeyHash
name
owner
packedData
storage
Methods
staticassertEqual
Asserts that two NFTStateStruct instances are equal.
Parameters
a: NFTStateStruct
The first NFTStateStruct instance.
b: NFTStateStruct
The second NFTStateStruct instance.
Returns void
staticfromAccount
Creates an NFTStateStruct from an account's app state.
Parameters
account: Account
The account containing the zkApp state.
Returns { metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; packedData: Field; storage: Storage }
A new NFTStateStruct instance.
metadata: Field
metadataVerificationKeyHash: Field
name: Field
owner: PublicKey
packedData: Field
storage: Storage
Represents the on-chain state structure of an NFT. The order of the fields is important and should match the NFT SmartContract.