Skip to main content
Version: 1.15.0

Class: IsSiloed

Defined in: cct/evm/token-pool/operations/is-siloed.ts:37

Reads whether a lane is siloed: if so its liquidity, rebalancer and balance are its own (provideSiloedLiquidity / withdrawSiloedLiquidity); if not it shares the unsiloed bucket (provideLiquidity / withdrawLiquidity). Silos are set with updateSiloDesignations.

Extends​

Constructors​

Constructor​

new IsSiloed(): IsSiloed

Returns​

IsSiloed

Inherited from​

EVMQuery<IsSiloedParams, IsSiloedResult>.constructor

Properties​

name​

readonly name: "isSiloed" = 'isSiloed'

Defined in: cct/evm/token-pool/operations/is-siloed.ts:38

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

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: IsSiloedParams): IsSiloedParams

Defined in: cct/evm/token-pool/operations/is-siloed.ts:45

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

Parameters​

ParameterType
paramsIsSiloedParams

Returns​

IsSiloedParams

Throws​

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

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: IsSiloedParams): Promise<boolean>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsIsSiloedParams

Returns​

Promise<boolean>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: IsSiloedParams): Promise<boolean>

Defined in: cct/evm/token-pool/operations/is-siloed.ts:59

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
__namedParametersIsSiloedParams

Returns​

Promise<boolean>

Throws​

CCTContractTypeInvalidError if the pool is not a SiloedLockReleaseTokenPool

Throws​

CCTOperationUnsupportedError on a v2.0.0 pool, which isolates lanes by binding them to separate lockboxes instead (see getAllLockBoxConfigs)

Throws​

CCTContractVersionUnsupportedError if the pool reports an unknown version

Overrides​

EVMQuery.read