Skip to main content
Version: 1.16.1

Class: SetObservers

Defined in: cct/canton/token-pool/operations/set-observers.ts:39

Pool setObservers operation.

Extends​

Constructors​

Constructor​

new SetObservers(): SetObservers

Returns​

SetObservers

Inherited from​

PoolChoiceOperation<SetObserversParams>.constructor

Properties​

name​

readonly name: "setObservers" = 'setObservers'

Defined in: cct/canton/token-pool/operations/set-observers.ts:40

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

Overrides​

PoolChoiceOperation.name


poolChoice​

protected readonly poolChoice: "SetObservers" = 'SetObservers'

Defined in: cct/canton/token-pool/operations/set-observers.ts:41

The Daml choice name (used for result extraction).

Overrides​

PoolChoiceOperation.poolChoice

Methods​

buildCommands()​

protected buildCommands(chain: CantonChain, p: GenerateSetObserversParams): Promise<{ actAs: string[]; commandId: string; commands: ({ CreateAndExerciseCommand: { choice: string; choiceArgument: unknown; createArguments: unknown; templateId: string; }; } | { CreateCommand: { createArguments: unknown; templateId: string; }; } | { ExerciseByKeyCommand: { choice: string; choiceArgument: unknown; contractKey: unknown; templateId: string; }; } | { ExerciseCommand: { choice: string; choiceArgument: unknown; contractId: string; templateId: string; }; })[]; deduplicationPeriod?: { DeduplicationDuration: { value: { nanos: number; seconds: number; unknownFields?: { fields: {[key: string]: { fixed32?: ... | ...; fixed64?: ... | ...; lengthDelimited?: ... | ...; varint?: ... | ...; }; }; }; }; }; } | { DeduplicationOffset: { value: number; }; } | { Empty: Record<string, never>; }; disclosedContracts?: { contractId?: string; createdEventBlob: string; synchronizerId?: string; templateId?: string; }[]; minLedgerTimeAbs?: string; minLedgerTimeRel?: { nanos: number; seconds: number; unknownFields?: { fields: {[key: string]: { fixed32?: number[]; fixed64?: number[]; lengthDelimited?: string[]; varint?: number[]; }; }; }; }; packageIdSelectionPreference?: string[]; prefetchContractKeys?: { contractKey: unknown; templateId: string; }[]; readAs?: string[]; submissionId?: string; synchronizerId?: string; userId?: string; workflowId?: string; }>

Defined in: cct/canton/token-pool/operations/set-observers.ts:54

Builds the SetObservers exercise command against the pool.

Parameters​

ParameterType
chainCantonChain
pGenerateSetObserversParams

Returns​

Promise<{ actAs: string[]; commandId: string; commands: ({ CreateAndExerciseCommand: { choice: string; choiceArgument: unknown; createArguments: unknown; templateId: string; }; } | { CreateCommand: { createArguments: unknown; templateId: string; }; } | { ExerciseByKeyCommand: { choice: string; choiceArgument: unknown; contractKey: unknown; templateId: string; }; } | { ExerciseCommand: { choice: string; choiceArgument: unknown; contractId: string; templateId: string; }; })[]; deduplicationPeriod?: { DeduplicationDuration: { value: { nanos: number; seconds: number; unknownFields?: { fields: {[key: string]: { fixed32?: ... | ...; fixed64?: ... | ...; lengthDelimited?: ... | ...; varint?: ... | ...; }; }; }; }; }; } | { DeduplicationOffset: { value: number; }; } | { Empty: Record<string, never>; }; disclosedContracts?: { contractId?: string; createdEventBlob: string; synchronizerId?: string; templateId?: string; }[]; minLedgerTimeAbs?: string; minLedgerTimeRel?: { nanos: number; seconds: number; unknownFields?: { fields: {[key: string]: { fixed32?: number[]; fixed64?: number[]; lengthDelimited?: string[]; varint?: number[]; }; }; }; }; packageIdSelectionPreference?: string[]; prefetchContractKeys?: { contractKey: unknown; templateId: string; }[]; readAs?: string[]; submissionId?: string; synchronizerId?: string; userId?: string; workflowId?: string; }>

Overrides​

PoolChoiceOperation.buildCommands


execute()​

execute(chain: CantonChain, params: CantonExecuteParams<SetObserversParams>): Promise<ExecutePoolChoiceResult>

Defined in: cct/canton/token-pool/operations/pool-choice-operation.ts:42

Validates the wallet, derives sender from wallet.party, builds the commands, and submits via submitCantonCommands. Returns the confirmed updateId plus the raw ledger response for result parsing.

Parameters​

ParameterType
chainCantonChain
paramsCantonExecuteParams<SetObserversParams>

Returns​

Promise<ExecutePoolChoiceResult>

Inherited from​

PoolChoiceOperation.execute


generate()​

generate(chain: CantonChain, params: CantonGenerateParams<SetObserversParams>): Promise<UnsignedCantonTx>

Defined in: cct/canton/operation.ts:86

Run prepare and buildCommands; no signing.

Parameters​

ParameterType
chainCantonChain
paramsCantonGenerateParams<SetObserversParams>

Returns​

Promise<UnsignedCantonTx>

Inherited from​

PoolChoiceOperation.generate


prepare()​

protected prepare(p: GenerateSetObserversParams): GenerateSetObserversParams

Defined in: cct/canton/token-pool/operations/set-observers.ts:43

Parameters​

ParameterType
pGenerateSetObserversParams

Returns​

GenerateSetObserversParams

Overrides​

PoolChoiceOperation.prepare