Class MinterAbstract

Hierarchy (view full)

Constructors

Properties

chainID: string
contract: SmartContract
env: string
imageServiceUrl: string
networkProvider: ApiNetworkProvider

Methods

  • Creates a burn transaction

    Parameters

    • senderAddress: IAddress

      the address of the user

    • dataNftNonce: number

      the nonce of the DataNFT-FT

    • quantityToBurn: Value

      the quantity to burn

    • dataNftIdentifier: string = ...

      the DataNFT-FT token identifier (default = DATA-NFT-FT token identifier based on the EnvironmentsEnum)

    Returns Transaction

  • Freeze transaction

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    • freezeAddress: IAddress

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    • nonce: number

      The nonce of the token to freeze for freezeAddress

    • freezeAddress: IAddress

      The address to freeze

    Returns Transaction

  • Retrieves the address of the minter smart contract based on the environment

    Returns IAddress

  • Pause collection transaction

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    Returns Transaction

  • Creates a pause transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    Returns Transaction

  • Creates a remove whitelist transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • addresses: string[]

      The addresses to remove from the whitelist

    • extraGas: number = 0

      The extra gas to add to the transaction

    Returns Transaction

  • Sets a new administrator for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • newAdministrator: IAddress

      The address of the new administrator

    Returns Transaction

  • Creates a setLocalRoles transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    Returns Transaction

  • Creates a set mint time limit transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • timeLimit: number

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • minRoyalties: Value

      The minimum royalties to set for minting

    • maxRoyalties: Value

      The maximum royalties to set for minting

      Remarks: The royalties are set in percentage (e.g. 100% = 10000)

    Returns Transaction

  • Creates a set mint tax transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • is_enabled: boolean

      A boolean value to set if whitelist is enabled or not

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    • nonce: number

      The nonce of the token to unfreeze for unfreezeAddress

    • unfreezeAddress: IAddress

      The address to unfreeze

    Returns Transaction

  • Unfreeze transaction

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    • unfreezeAddress: IAddress

    Returns Transaction

  • Unpause collection transaction

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    Returns Transaction

  • Creates a unpause transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    Returns Transaction

  • Retrieves a list of addresses that are frozen for collection

    Returns Promise<string[]>

  • Retrieves the smart contract pause state

    Returns Promise<boolean>

  • Retrieves the minter whitelist

    Returns Promise<string[]>

  • Creates a whitelist transaction for the contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin of the contract

    • addresses: string[]

      The addresses to whitelist

    • extraGas: number = 0

      The extra gas to add to the transaction

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the admin or owner of the contract

    • nonce: number

      The nonce of the token to wipe for wipeAddress

    • wipeAddress: IAddress

      The address to wipe from Important: This will wipe all NFTs from the address Note: The nonce must be freezed before wiping

    Returns Transaction