Class: CantonTokenManager
Defined in: cct/canton/index.ts:56
Canton CCT manager. Holds a CantonChain and exposes the CCT admin
operations as methods. Each write op has a generateUnsigned<Op> (build
unsigned JsCommands, no signing) and an <op> (sign + submit) variant; each
read op has a single <op> method (no wallet).
Extends
TokenManager<typeofCanton>
Constructors
Constructor
new CantonTokenManager(
chain:CantonChain):CantonTokenManager
Defined in: cct/canton/index.ts:69
Creates a Canton CCT manager for an existing chain.
Parameters
| Parameter | Type |
|---|---|
chain | CantonChain |
Returns
CantonTokenManager
Overrides
TokenManager<typeof ChainFamily.Canton>.constructor
Properties
chain
readonlychain:CantonChain
Defined in: cct/canton/index.ts:57
Chain this manager builds and submits through.
Overrides
TokenManager.chain
Methods
applyChainUpdates()
applyChainUpdates(
opts:ExecuteApplyChainUpdatesParams):Promise<ExecuteApplyChainUpdatesResult>
Defined in: cct/canton/index.ts:122
Adds and/or removes remote-chain configs on a token pool.
Parameters
| Parameter | Type |
|---|---|
opts | ExecuteApplyChainUpdatesParams |
Returns
Promise<ExecuteApplyChainUpdatesResult>
deployTokenPool()
deployTokenPool(
opts:ExecuteDeployTokenPoolParams):Promise<CantonDeployResult>
Defined in: cct/canton/index.ts:103
Atomically deploys and initializes a BurnMintTokenPool/LockReleaseTokenPool (registry-pools family).
Parameters
| Parameter | Type |
|---|---|
opts | ExecuteDeployTokenPoolParams |
Returns
Promise<CantonDeployResult>
generateUnsignedApplyChainUpdates()
generateUnsignedApplyChainUpdates(
opts:GenerateApplyChainUpdatesParams):Promise<UnsignedCantonTx>
Defined in: cct/canton/index.ts:115
Builds unsigned applyChainUpdates commands.
Parameters
| Parameter | Type |
|---|---|
opts | GenerateApplyChainUpdatesParams |
Returns
Promise<UnsignedCantonTx>
Remarks
Remote addresses are in the remote chain's own format; its chain
family must be registered (e.g. import '@chainlink/ccip-sdk/all').
generateUnsignedDeployTokenPool()
generateUnsignedDeployTokenPool(
opts:GenerateDeployTokenPoolParams):Promise<UnsignedCantonTx>
Defined in: cct/canton/index.ts:96
Builds unsigned deployTokenPool commands — a single CreateAndExercise
that creates the registry-pools BurnMintTokenPool/LockReleaseTokenPool
and atomically calls Initialize on it (TAR registration + lane rate
limiters).
Parameters
| Parameter | Type |
|---|---|
opts | GenerateDeployTokenPoolParams |
Returns
Promise<UnsignedCantonTx>
Remarks
The pool owner is instrumentId.admin and admin defaults to it;
the TAR (and so ccipOwner) is deps.tokenAdminRegistry.
getRateLimiterState()
getRateLimiterState(
opts:GetRateLimiterStateParams):Promise<GetRateLimiterStateResult>
Defined in: cct/canton/index.ts:145
Reads a RateLimiter contract's config (capacity/rate/enabled/observers) from the ACS.
Parameters
| Parameter | Type |
|---|---|
opts | GetRateLimiterStateParams |
Returns
Promise<GetRateLimiterStateResult>
getTokenAdminRegistry()
getTokenAdminRegistry(
opts:GetTokenAdminRegistryParams):Promise<GetTokenAdminRegistryResult>
Defined in: cct/canton/index.ts:131
Reads the TAR state for an instrument (admin, pendingAdmin, pool, factory wiring).
Parameters
| Parameter | Type |
|---|---|
opts | GetTokenAdminRegistryParams |
Returns
Promise<GetTokenAdminRegistryResult>
getTokenPoolState()
getTokenPoolState(
opts:GetTokenPoolStateParams):Promise<GetTokenPoolStateResult>
Defined in: cct/canton/index.ts:140
Reads a token pool's config (including its poolType) from the ACS.
Parameters
| Parameter | Type |
|---|---|
opts | GetTokenPoolStateParams |
Returns
Promise<GetTokenPoolStateResult>
fromChain()
staticfromChain(chain:CantonChain):CantonTokenManager
Defined in: cct/canton/index.ts:75
Wraps an existing CantonChain.
Parameters
| Parameter | Type |
|---|---|
chain | CantonChain |
Returns
CantonTokenManager
fromUrl()
staticfromUrl(url:string,ctx?:ChainContext):Promise<CantonTokenManager>
Defined in: cct/canton/index.ts:80
Creates from a Canton JSON Ledger API URL.
Parameters
| Parameter | Type |
|---|---|
url | string |
ctx? | ChainContext |
Returns
Promise<CantonTokenManager>