Skip to main content

NFTStandardUpdate

The NFTStandardUpdate contract is the default implementation of the NFTUpdateBase interface.

Hierarchy

  • unknown
    • NFTStandardUpdate

Implements

Index

Constructors

constructor

Properties

admin

admin: any = ...

The public key of the contract's administrator.

Methods

canUpdate

  • canUpdate(collectionAddress: PublicKey, nftAddress: PublicKey, input: NFTState, output: NFTState): Promise<Bool>
  • Parameters

    • collectionAddress: PublicKey
    • nftAddress: PublicKey
    • input: NFTState
    • output: NFTState

    Returns Promise<Bool>

deploy

  • Deploys the contract with initial settings.


    Parameters

    • props: NFTUpdateDeployProps

      Deployment properties including admin, upgradeAuthority, uri, canPause, and isPaused.

    Returns Promise<void>

ensureOwnerSignature

  • ensureOwnerSignature(): Promise<AccountUpdate>
  • Ensures that the transaction is authorized by the contract owner.


    Returns Promise<AccountUpdate>

    A signed AccountUpdate from the admin.