NFTUpdateBase

Type Alias: NFTUpdateBase

type NFTUpdateBase = SmartContract & {
  canUpdate: Promise<Bool>;
};

Defined in: packages/nft/src/interfaces/update.ts:28

The NFTUpdateBase interface defines the update functionalities required for managing an NFT update

Type declaration

canUpdate()

Checks if an NFT can be updated from its current state (input) to a new state (output).

Parameters

collectionAddress

PublicKey

The public key of the NFT collection address.

nftAddress

PublicKey

The public key of the NFT.

input

NFTState

The current state of the NFT.

output

NFTState

The desired new state of the NFT.

Returns

Promise<Bool>

A Promise resolving to a Bool indicating whether the update is permitted.