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
EVMQuery<GetChainRebalancerParams,GetChainRebalancerResult>
Constructors
Constructor
new GetChainRebalancer():
GetChainRebalancer
Returns
GetChainRebalancer
Inherited from
EVMQuery< GetChainRebalancerParams, GetChainRebalancerResult >.constructor
Properties
name
readonlyname:"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()
protectedprepare(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
| Parameter | Type |
|---|---|
params | GetChainRebalancerParams |
Returns
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
| Parameter | Type |
|---|---|
chain | EVMChain |
params | GetChainRebalancerParams |
Returns
Promise<string>
Inherited from
EVMQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | EVMChain |
__namedParameters | GetChainRebalancerParams |
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