Skip to main content
Version: 1.15.0

Class: GetTokenTransferFeeConfig

Defined in: cct/evm/token-pool/operations/get-token-transfer-fee-config.ts:44

Reads a v2.0.0+ pool's token-transfer fee configuration for one destination chain.

Extends​

Constructors​

Constructor​

new GetTokenTransferFeeConfig(): GetTokenTransferFeeConfig

Returns​

GetTokenTransferFeeConfig

Inherited from​

EVMQuery< GetTokenTransferFeeConfigParams, GetTokenTransferFeeConfigResult >.constructor

Properties​

name​

readonly name: "getTokenTransferFeeConfig" = 'getTokenTransferFeeConfig'

Defined in: cct/evm/token-pool/operations/get-token-transfer-fee-config.ts:48

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetTokenTransferFeeConfigParams): GetTokenTransferFeeConfigParams

Defined in: cct/evm/token-pool/operations/get-token-transfer-fee-config.ts:56

Parameters​

ParameterType
paramsGetTokenTransferFeeConfigParams

Returns​

GetTokenTransferFeeConfigParams

Throws​

CCTParamsInvalidError if a getter argument cannot be ABI-encoded

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetTokenTransferFeeConfigParams): Promise<TokenTransferFeeConfig>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetTokenTransferFeeConfigParams

Returns​

Promise<TokenTransferFeeConfig>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetTokenTransferFeeConfigParams): Promise<TokenTransferFeeConfig>

Defined in: cct/evm/token-pool/operations/get-token-transfer-fee-config.ts:83

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
__namedParametersGetTokenTransferFeeConfigParams

Returns​

Promise<TokenTransferFeeConfig>

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