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