Function: deployTokenAndTokenPoolViaFactory()
deployTokenAndTokenPoolViaFactory(
chain:EVMChain,params:DeployTokenAndTokenPoolViaFactoryParams):Promise<FactoryDeploy>
Defined in: cct/evm/token-pool-factory/deploy.ts:464
Builds an unsigned deployTokenAndTokenPool call and returns it with the predicted token, pool,
and (if auto-deployed) lockbox addresses. Reads getStaticConfig() to predict the pool address,
asserts the factory is a real TokenPoolFactory 2.0.0, and checks the predicted addresses are free.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | DeployTokenAndTokenPoolViaFactoryParams |
Returns
Promise<FactoryDeploy>
Remarks
Unsigned-only; see the module header for the sender/salt binding and RPC-trust caveats.
Throws
CCTParamsInvalidError if factory/sender is invalid, init code is empty, the
salt is malformed, expectedStaticConfig diverges, or a predicted address is occupied
Throws
CCTContractTypeInvalidError/CCTContractVersionUnsupportedError if factory is not a TokenPoolFactory 2.0.0