Skip to main content

NFTStandardOwner

The NFTStandardOwner contract is the default implementation of the NFTOwnerBase interface.

Hierarchy

  • unknown
    • NFTStandardOwner

Implements

Index

Constructors

constructor

Properties

admin

admin: any = ...

The public key of the contract's administrator. This account has the authority to perform administrative actions such as pausing the contract or upgrading the verification key.

Methods

canApproveAddress

  • canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>
  • Parameters

    • collection: PublicKey
    • nft: PublicKey
    • approved: PublicKey

    Returns Promise<Bool>

canChangeVerificationKey

  • canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>
  • Parameters

    • collection: PublicKey
    • nft: PublicKey
    • vk: VerificationKey

    Returns Promise<Bool>

canPause

  • canPause(collection: PublicKey, nft: PublicKey): Promise<Bool>
  • Parameters

    • collection: PublicKey
    • nft: PublicKey

    Returns Promise<Bool>

canResume

  • canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>
  • Parameters

    • collection: PublicKey
    • nft: PublicKey

    Returns Promise<Bool>

canTransfer

deploy

  • Deploys the contract with initial settings.


    Parameters

    • props: NFTOwnerDeployProps

      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.