The address that is going to send the transactions.
A callback that allows signing the transaction.
The created pool instance.
Deploys a new pool to the network if the pool with the specified params does not exist yet. Otherwise, it returns the existing pool.
The address that is going to send the transactions.
A callback that allows signing the transaction.
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.
Fetches the pool for the given params.
Parameters of the pool with are looking for.
A pool if pool with given parameters exists, None otherwise.
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])
List of pool parameters.
Generated using TypeDoc
Deploys a new pool to the network.