Skip to main content
Version: 1.15.0

Class: GetChainRebalancer

Defined in: cct/evm/token-pool/operations/get-chain-rebalancer.ts:36

Reads a lane's rebalancer: the silo's own on a siloed lane, and on any other the pool's unsiloed rebalancer (what getRebalancer returns). The zero address means the lane accepts liquidity calls from nobody. Informational, for audit and UX; the per-lane liquidity ops gate on this same read themselves.

Extends​

Constructors​

Constructor​

new GetChainRebalancer(): GetChainRebalancer

Returns​

GetChainRebalancer

Inherited from​

EVMQuery< GetChainRebalancerParams, GetChainRebalancerResult >.constructor

Properties​

name​

readonly name: "getChainRebalancer" = 'getChainRebalancer'

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

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetChainRebalancerParams): GetChainRebalancerParams

Defined in: cct/evm/token-pool/operations/get-chain-rebalancer.ts:47

Validates the pool address and lane; nothing to convert for read.

Parameters​

ParameterType
paramsGetChainRebalancerParams

Returns​

GetChainRebalancerParams

Throws​

CCTParamsInvalidError if poolAddress is not a valid address, or remoteChainSelector is not a uint64

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetChainRebalancerParams): Promise<string>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetChainRebalancerParams

Returns​

Promise<string>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetChainRebalancerParams): Promise<string>

Defined in: cct/evm/token-pool/operations/get-chain-rebalancer.ts:61

Resolves the pool's type/version before the read, so a pool without the getter reports which of the two reasons applies rather than a bare call failure.

Parameters​

ParameterType
chainEVMChain
__namedParametersGetChainRebalancerParams

Returns​

Promise<string>

Throws​

CCTContractTypeInvalidError if the pool is not a SiloedLockReleaseTokenPool

Throws​

CCTOperationUnsupportedError on a v2.0.0 pool, which has no rebalancer: its lanes escrow through lockboxes, which authorize their own callers

Throws​

CCTContractVersionUnsupportedError if the pool reports an unknown version

Overrides​

EVMQuery.read