Constructors

  • Creates a new instance of the Factory class, which can be used to interact with the factory smart contract

    Parameters

    • env: string

      'devnet' | 'devnet2' | 'mainnet' | 'testnet' based on EnvironmentsEnum

    • timeout: number = 10000

      Timeout for the network provider (DEFAULT = 10000ms)

    Returns Factory

Properties

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

Methods

  • Returns a transaction to change the ownership of the minter contract to the deployer of minter contract

    Parameters

    • senderAddress: IAddress

      The address of the sender, must be the owner of the contract Note: It change the ownership of the minter contract to the deployer of minter contract

    • contractAddress: IAddress

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the deployer of the minter contract

    • version: string

      The version of the minter contract code

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    Returns Transaction

  • Retrives the address of the factory smart contract

    Returns IAddress

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the owner of the factory contract

    • require_whitelist: boolean

      A boolean value indicating if the factory will require whitelist

    • treasuryAddress: IAddress

      The address of the treasury where the tax will be sent

    • tax: number

      The tax percentage to set in the contract ( minter contract will send the tax cut to treasury address)

    • claimsContractAddress: IAddress

      The address of the claims contract

    • claimsTokenIdentifier: string

      The token identifier of the claims contract

    Returns Transaction

  • Pause contract transaction

    Parameters

    • senderAddress: IAddress

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    • version: string

      The version of the minter contract

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    • address: IAddress

      The address to remove from whitelist

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    • taxPercentage: number

      The tax percentage to set in the contract ( minter contract will send the tax cut to treasury address)

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    • treasuryAddress: IAddress

      The address of the treasury

    Returns Transaction

  • Unpause contract transaction

    Parameters

    • senderAddress: IAddress

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

      The address of the sender, must be the owner of the factory or owner of the minter contract

    • childContractAddress: IAddress

      The address of the child contract

    • upgradeVersion: string

      The version of the minter contract code to upgrade

    Returns Transaction

  • Parameters

    • senderAddress: IAddress

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

    • code: string

      The code of the minter contract

    • version: string

      The version of the minter contract

    Returns Transaction

  • Retrieves a boolean value indicating wheter the address is whitelisted or not

    Parameters

    • address: IAddress

      The address to check If address is whitelisted it can deploy minter contracts

    Returns Promise<boolean>

  • Retrieves the address of the claims contract used by the factory smart contract

    Returns Promise<IAddress>

  • Retrieves the token identifier of the claims contract used by the factory smart contract

    Returns Promise<string>

  • Retrieves the code in hex encoding of minter smart contract based on version parameter

    Parameters

    • version: string

      The version of the minter smart contract

    Returns Promise<string>

  • Retrieves a boolean value indicating wheter the contract is paused or not

    Returns Promise<boolean>

  • Retrives the tax percentage used for the factory smart contract

    Returns Promise<number>

  • Retrieves the factory treasury address

    Returns Promise<IAddress>

  • Retrives an array of versions available for deployment of the minter contract

    Returns Promise<string[]>

  • Retrieves a boolean value indicating wheter the factory smart contract requires whitelist or not

    Returns Promise<boolean>

  • Parameters

    • senderAddress: IAddress

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

    • address: IAddress

      The address to whitelist

    Returns Transaction

Generated using TypeDoc