Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

appId: number

Methods

  • Deploys a new pool to the network if the pool with the specified params does not exist yet. Otherwise, it returns the existing pool.

    Parameters

    • sender: string

      The address that is going to send the transactions.

    • poolBuildParams: PoolBuildParams
    • signer: Signer

      A callback that allows signing the transaction.

    Returns Promise<[Pool, boolean]>

    The two items tuple. The first item is the created or existing pool. The second item is True if a new pool is created or False if an existing pool is returned.

  • Lists all pools created by this factory. It works by reading the boxes created by this factory. The boxes serve as a hash map of unlimited size. The box name stores pool parameters and the box content stores pool id.

    This method returns only pool parameters without the application id. You have to call fetchPool to fetch the actual pool e.g.

    const poolParams = await factory.listPools() const pool = await factory.fetchPool(poolParams[0])

    Returns Promise<PoolParams[]>

    List of pool parameters.

Generated using TypeDoc