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
EVMQuery<GetFeeParams,GetFeeResult>
Constructors
Constructor
new GetFee():
GetFee
Returns
GetFee
Inherited from
EVMQuery<GetFeeParams, GetFeeResult>.constructor
Properties
name
readonlyname:"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()
protectedprepare(params:GetFeeParams):GetFeeParams
Defined in: cct/evm/token-pool/operations/get-fee.ts:49
Parameters
| Parameter | Type |
|---|---|
params | GetFeeParams |
Returns
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
| Parameter | Type |
|---|---|
chain | EVMChain |
params | GetFeeParams |
Returns
Promise<TokenPoolFee>
Inherited from
EVMQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | EVMChain |
__namedParameters | GetFeeParams |
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