LaunchpadModule provides methods to interact with the minter smart contract.

Methods

  • Fetches all unique tags from the minter smart contract.

    Returns Promise<string[]>

    An array of unique tags.

  • Fetches the launchpad cut fee percentage from the minter smart contract.

    Returns Promise<number>

    The launchpad cut fee percentage.

  • Fetches the local owner's address from the minter smart contract.

    Returns Promise<string>

    The local owner's address.

  • Fetches the list of stages for a tag.

    Parameters

    • tag: string

      The tag.

    Returns Promise<string[]>

    An array of stages.

  • Fetches the stage whitelist of wallets for a tag and stage.

    Parameters

    • tag: string

      The tag.

    • stage: string

      The stage.

    Returns Promise<string[]>

    An array of whitelisted wallet addresses.

  • Fetches the global buy count for a user and tag.

    Parameters

    • user: string

      The user's address.

    • tag: string

      The tag.

    Returns Promise<number>

    The global buy count.

  • Fetches the stage buy count for a user, tag, and stage.

    Parameters

    • user: string

      The user's address.

    • tag: string

      The tag.

    • stage: string

      The stage.

    Returns Promise<number>

    The stage buy count.

  • Initializes the LaunchpadModule with a minter smart contract instance.

    Parameters

    • minterSC: string

      The minter smart contract address.

    Returns Promise<LaunchpadModule>

    A new instance of LaunchpadModule.