Skip to main content

NFTStandardApproval

The NFTStandardApproval contract is the default implementation of the NFTApprovalBase interface.

Hierarchy

  • unknown
    • NFTStandardApproval

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

canTransfer

  • Determines if an NFT can be transferred.


    Parameters

    Returns Promise<Bool>

    A Promise resolving to a Bool indicating whether the transfer is allowed.

deploy

  • Deploys the contract with initial settings.


    Parameters

    • props: NFTApprovalDeployProps

      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.