Params required in new pool creation.
Pact API URL to use. If not provided, "https://api.pact.fi" will be used.
Pact API URL to use.
An Id of created pool. Will be assigned automatically on deployPool function.
Params required in new pool creation.
Builds three transactions:
IMPORTANT!: Signed transactions must be send by sendFundingTxs function in order to save all required data in Pact's database.
Sender account address.
Array of described transactions.
Deploys a pool created from the transaction in preparePoolCreationTx to the Pact database. If successful, PoolCreator will store the new pool id in a poolId.
Signed transaction blob.
An Id of the newly deployed pool.
Creates the transactions needed for pool to work properly and returns them as a transaction group ready to be signed and committed.
Sender account address.
A transaction group that when executed will fund the pool, create liquidity tokens and opt-in assets.
Creates a transaction needed to perform pool creation ready to be signed and committed.
IMPORTANT!: Signed transaction must be send by deployPool function in order to save the pool in Pact's database.
Sender account address.
A transaction that when executed will create a new pool.
Sends signed transactions created in buildFundingTxs to the Pact's database. If successful, the new pool will become visible in the Pact UI. It is strongly advised to immediately add the first liquidity to the pool after this step, as it will determine the future ratio of assets.
Signed transaction blobs. The number of blobs must be equal to 3.
A new Pool object.
Generated using TypeDoc
PoolCreator class, used to create, deploy and fund a new pool in Pact.
In order to properly create a new pool, functions must be run in this exact order:
This class records the order of executed functions and will throw an error if any of them is triggered in the wrong order.