Skip to main content
Version: 1.15.0

Class: GetDynamicConfig

Defined in: cct/evm/token-pool/operations/get-dynamic-config.ts:28

Reads a v2.0.0+ pool's router and delegated admin roles.

Extends​

Constructors​

Constructor​

new GetDynamicConfig(): GetDynamicConfig

Returns​

GetDynamicConfig

Inherited from​

EVMQuery<GetDynamicConfigParams, GetDynamicConfigResult>.constructor

Properties​

name​

readonly name: "getDynamicConfig" = 'getDynamicConfig'

Defined in: cct/evm/token-pool/operations/get-dynamic-config.ts:29

camelCase id; matches the token-manager facade method and error context.

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetDynamicConfigParams): GetDynamicConfigParams

Defined in: cct/evm/token-pool/operations/get-dynamic-config.ts:37

Parameters​

ParameterType
paramsGetDynamicConfigParams

Returns​

GetDynamicConfigParams

Throws​

CCTParamsInvalidError if poolAddress is not a valid address

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetDynamicConfigParams): Promise<TokenPoolDynamicConfig>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetDynamicConfigParams

Returns​

Promise<TokenPoolDynamicConfig>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetDynamicConfigParams): Promise<TokenPoolDynamicConfig>

Defined in: cct/evm/token-pool/operations/get-dynamic-config.ts:50

Resolves the compatible getter through the same floor-match as pool writes, so a newer pool inherits v2.0.0's read until its ABI changes.

Parameters​

ParameterType
chainEVMChain
__namedParametersGetDynamicConfigParams

Returns​

Promise<TokenPoolDynamicConfig>

Throws​

CCTContractTypeInvalidError if the pool's reported type is not supported

Throws​

CCTOperationUnsupportedError on a pre-v2.0.0 pool

Throws​

CCTContractVersionUnsupportedError if the pool reports an unknown version

Overrides​

EVMQuery.read