Skip to main content
Version: 1.15.0

Class: GetThresholdAmount

Defined in: cct/evm/advanced-pool-hooks/operations/get-threshold-amount.ts:27

Reads the additional-CCV threshold amount.

Throws​

CCTParamsInvalidError if the target is invalid

Throws​

CCTContractTypeInvalidError if the target is not AdvancedPoolHooks

Throws​

as resolveAdvancedPoolHooks for a poolAddress target

Extends​

Constructors​

Constructor​

new GetThresholdAmount(): GetThresholdAmount

Returns​

GetThresholdAmount

Inherited from​

EVMQuery< GetThresholdAmountParams, GetThresholdAmountResult >.constructor

Properties​

name​

readonly name: "getThresholdAmount" = 'getThresholdAmount'

Defined in: cct/evm/advanced-pool-hooks/operations/get-threshold-amount.ts:31

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: AdvancedPoolHooksTarget): AdvancedPoolHooksTarget

Defined in: cct/evm/advanced-pool-hooks/operations/get-threshold-amount.ts:33

Validate and normalize params before any chain RPC, without mutating the caller's input.

Parameters​

ParameterType
paramsAdvancedPoolHooksTarget

Returns​

AdvancedPoolHooksTarget

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: AdvancedPoolHooksTarget): Promise<bigint>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsAdvancedPoolHooksTarget

Returns​

Promise<bigint>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, params: AdvancedPoolHooksTarget): Promise<bigint>

Defined in: cct/evm/advanced-pool-hooks/operations/get-threshold-amount.ts:38

Read and normalize chain state; runs only after prepare passes.

Parameters​

ParameterType
chainEVMChain
paramsAdvancedPoolHooksTarget

Returns​

Promise<bigint>

Overrides​

EVMQuery.read