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
EVMQuery<GetThresholdAmountParams,GetThresholdAmountResult>
Constructors
Constructor
new GetThresholdAmount():
GetThresholdAmount
Returns
GetThresholdAmount
Inherited from
EVMQuery< GetThresholdAmountParams, GetThresholdAmountResult >.constructor
Properties
name
readonlyname:"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()
protectedprepare(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
| Parameter | Type |
|---|---|
params | AdvancedPoolHooksTarget |
Returns
Overrides
EVMQuery.prepare
query()
query(
chain:EVMChain,params:AdvancedPoolHooksTarget):Promise<bigint>
Defined in: cct/query.ts:25
Run prepare and read; no wallet.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
params | AdvancedPoolHooksTarget |
Returns
Promise<bigint>
Inherited from
EVMQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | EVMChain |
params | AdvancedPoolHooksTarget |
Returns
Promise<bigint>
Overrides
EVMQuery.read