Skip to main content
Version: 1.15.0

Function: deployTokenPoolWithExistingTokenViaFactory()

deployTokenPoolWithExistingTokenViaFactory(chain: EVMChain, params: DeployTokenPoolWithExistingTokenViaFactoryParams): Promise<FactoryDeploy>

Defined in: cct/evm/token-pool-factory/deploy.ts:488

Builds an unsigned deployTokenPoolWithExistingToken call and returns it with the predicted pool and (if auto-deployed) lockbox addresses. Same reads/asserts as deployTokenAndTokenPoolViaFactory.

Parameters​

ParameterType
chainEVMChain
paramsDeployTokenPoolWithExistingTokenViaFactoryParams

Returns​

Promise<FactoryDeploy>

Remarks​

Unsigned-only; see the module header for the sender/salt binding and RPC-trust caveats.

Throws​

CCTParamsInvalidError if factory/sender/token 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