Skip to main content
Version: 1.15.0

Class: GetFee

Defined in: cct/evm/token-pool/operations/get-fee.ts:40

Reads the fee parameters a v2.0.0+ pool applies to one destination chain and finality.

Extends​

Constructors​

Constructor​

new GetFee(): GetFee

Returns​

GetFee

Inherited from​

EVMQuery<GetFeeParams, GetFeeResult>.constructor

Properties​

name​

readonly name: "getFee" = 'getFee'

Defined in: cct/evm/token-pool/operations/get-fee.ts:41

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetFeeParams): GetFeeParams

Defined in: cct/evm/token-pool/operations/get-fee.ts:49

Parameters​

ParameterType
paramsGetFeeParams

Returns​

GetFeeParams

Throws​

CCTParamsInvalidError if a getter argument cannot be ABI-encoded

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetFeeParams): Promise<TokenPoolFee>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetFeeParams

Returns​

Promise<TokenPoolFee>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetFeeParams): Promise<TokenPoolFee>

Defined in: cct/evm/token-pool/operations/get-fee.ts:74

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
__namedParametersGetFeeParams

Returns​

Promise<TokenPoolFee>

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