@fairmint/canton-node-sdk 0.0.282 → 0.0.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +128 -154
  2. package/build/src/utils/external-signing/wallet-ownership-challenger.d.ts.map +1 -1
  3. package/build/src/utils/external-signing/wallet-ownership-challenger.js +2 -3
  4. package/build/src/utils/external-signing/wallet-ownership-challenger.js.map +1 -1
  5. package/build/src/utils/external-signing/wallet-ownership.d.ts.map +1 -1
  6. package/build/src/utils/external-signing/wallet-ownership.js +8 -18
  7. package/build/src/utils/external-signing/wallet-ownership.js.map +1 -1
  8. package/build/src/wallets/acs.d.ts +2 -1
  9. package/build/src/wallets/acs.d.ts.map +1 -1
  10. package/build/src/wallets/acs.js +6 -31
  11. package/build/src/wallets/acs.js.map +1 -1
  12. package/build/src/wallets/cip103.d.ts +32 -68
  13. package/build/src/wallets/cip103.d.ts.map +1 -1
  14. package/build/src/wallets/cip103.js +112 -230
  15. package/build/src/wallets/cip103.js.map +1 -1
  16. package/build/src/wallets/commands.d.ts +39 -6
  17. package/build/src/wallets/commands.d.ts.map +1 -1
  18. package/build/src/wallets/commands.js +50 -5
  19. package/build/src/wallets/commands.js.map +1 -1
  20. package/build/src/wallets/contracts.d.ts +12 -0
  21. package/build/src/wallets/contracts.d.ts.map +1 -1
  22. package/build/src/wallets/contracts.js +21 -5
  23. package/build/src/wallets/contracts.js.map +1 -1
  24. package/build/src/wallets/da-utilities/client.d.ts +61 -29
  25. package/build/src/wallets/da-utilities/client.d.ts.map +1 -1
  26. package/build/src/wallets/da-utilities/client.js +78 -75
  27. package/build/src/wallets/da-utilities/client.js.map +1 -1
  28. package/build/src/wallets/errors.d.ts +11 -8
  29. package/build/src/wallets/errors.d.ts.map +1 -1
  30. package/build/src/wallets/errors.js +13 -3
  31. package/build/src/wallets/errors.js.map +1 -1
  32. package/build/src/wallets/holdings.d.ts +14 -4
  33. package/build/src/wallets/holdings.d.ts.map +1 -1
  34. package/build/src/wallets/holdings.js +27 -47
  35. package/build/src/wallets/holdings.js.map +1 -1
  36. package/build/src/wallets/index.d.ts +17 -21
  37. package/build/src/wallets/index.d.ts.map +1 -1
  38. package/build/src/wallets/index.js +14 -23
  39. package/build/src/wallets/index.js.map +1 -1
  40. package/build/src/wallets/instrument.js +1 -1
  41. package/build/src/wallets/instrument.js.map +1 -1
  42. package/build/src/wallets/ownership.d.ts +20 -26
  43. package/build/src/wallets/ownership.d.ts.map +1 -1
  44. package/build/src/wallets/ownership.js +33 -27
  45. package/build/src/wallets/ownership.js.map +1 -1
  46. package/build/src/wallets/session.d.ts +30 -68
  47. package/build/src/wallets/session.d.ts.map +1 -1
  48. package/build/src/wallets/session.js +119 -167
  49. package/build/src/wallets/session.js.map +1 -1
  50. package/build/src/wallets/store.d.ts +148 -86
  51. package/build/src/wallets/store.d.ts.map +1 -1
  52. package/build/src/wallets/store.js +267 -99
  53. package/build/src/wallets/store.js.map +1 -1
  54. package/build/src/wallets/templates.d.ts +10 -23
  55. package/build/src/wallets/templates.d.ts.map +1 -1
  56. package/build/src/wallets/templates.js +9 -33
  57. package/build/src/wallets/templates.js.map +1 -1
  58. package/build/src/wallets/types.d.ts +6 -20
  59. package/build/src/wallets/types.d.ts.map +1 -1
  60. package/build/src/wallets/wallet.d.ts +130 -74
  61. package/build/src/wallets/wallet.d.ts.map +1 -1
  62. package/build/src/wallets/wallet.js +347 -185
  63. package/build/src/wallets/wallet.js.map +1 -1
  64. package/package.json +1 -1
  65. package/build/src/wallets/cip56-core.d.ts +0 -175
  66. package/build/src/wallets/cip56-core.d.ts.map +0 -1
  67. package/build/src/wallets/cip56-core.js +0 -325
  68. package/build/src/wallets/cip56-core.js.map +0 -1
  69. package/build/src/wallets/token-registry.d.ts +0 -97
  70. package/build/src/wallets/token-registry.d.ts.map +0 -1
  71. package/build/src/wallets/token-registry.js +0 -19
  72. package/build/src/wallets/token-registry.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { WalletSubmitError } from './errors';
2
1
  import type { DaNetwork } from './da-utilities/client';
3
- import type { ActiveContract, ContractFilter, DisclosedContract, LedgerCommand, SubmitResult, WalletSubmission } from './types';
2
+ import { WalletSubmitError } from './errors';
3
+ import type { ActiveContract, DisclosedContract, LedgerCommand, SubmitResult, WalletSubmission } from './types';
4
4
  /** `prepareExecuteAndWait` params (the OpenRPC's `JsPrepareSubmissionRequest`), as far as this SDK sends them. */
5
5
  export type Cip103PrepareExecuteParams = {
6
- commandId?: string;
6
+ commandId: string;
7
7
  commands: LedgerCommand[];
8
8
  disclosedContracts?: DisclosedContract[];
9
- actAs?: string[];
9
+ actAs: string[];
10
10
  };
11
11
  /** `ledgerApi` params (the OpenRPC's `LedgerApiRequest`), as far as this SDK sends them. */
12
12
  export type Cip103LedgerApiParams = {
@@ -46,14 +46,19 @@ export type Cip103EventListener = (...args: unknown[]) => void;
46
46
  /**
47
47
  * A CIP-0103 provider (the CIP's EIP-1193 Provider API), as far as this SDK uses it: `request` for the methods in
48
48
  * {@link Cip103Request}, plus `on` and `removeListener` (the SDK never emits). Structural, so any conforming provider
49
- * fits whatever SDK built it: Loop's `loop.getCip103Provider()`, `@canton-network/dapp-sdk`'s `Provider`,
50
- * `window.canton`. Results are validated, never trusted.
49
+ * fits whatever SDK built it. Results are validated, never trusted.
51
50
  */
52
51
  export interface Cip103Provider {
53
52
  request(args: Cip103Request): Promise<unknown>;
54
53
  on(event: string, listener: Cip103EventListener): unknown;
55
54
  removeListener(event: string, listener: Cip103EventListener): unknown;
56
55
  }
56
+ /** A provider connected as one party on one DA network. A session's connected wallet is one. */
57
+ export interface Cip103Connection {
58
+ readonly provider: Cip103Provider;
59
+ readonly partyId: string;
60
+ readonly network: DaNetwork;
61
+ }
57
62
  /** CIP-0103 error codes (EIP-1193 and EIP-1474), as `ProviderRpcError.code`. */
58
63
  export declare const CIP103_ERROR_CODES: {
59
64
  readonly userRejected: 4001;
@@ -77,6 +82,15 @@ export declare const CIP103_ERROR_CODES: {
77
82
  export declare function cip103ErrorCode(error: unknown): number | undefined;
78
83
  /** `message (CIP-0103 4200 Unsupported Method)`, so a UI can show what the wallet answered. */
79
84
  export declare function describeError(error: unknown): string;
85
+ /** The CIP-0103 network id of a DA network (`canton:devnet`), as a wallet reports it and an ownership message names it. */
86
+ export declare function cip103NetworkId(network: DaNetwork): string;
87
+ /** Whether `value` is `'devnet'` or `'mainnet'`. */
88
+ export declare function isDaNetwork(value: unknown): value is DaNetwork;
89
+ /**
90
+ * Whether a wallet reporting `networkId` is on the other DA network than `network`. CIP-0103 does not fix how a wallet
91
+ * spells its network id, so any other id (or none) is accepted rather than locking users out.
92
+ */
93
+ export declare function reportsOtherNetwork(networkId: string | undefined, network: DaNetwork): boolean;
80
94
  /**
81
95
  * A provider error from `prepareExecuteAndWait` as a `WalletSubmitError`:
82
96
  *
@@ -87,7 +101,12 @@ export declare function describeError(error: unknown): string;
87
101
  * - 4100, 4900, 4901 → `unknown`: the wallet lost or changed its session, possibly after submitting;
88
102
  * - Anything else (-32002 timeouts, -32603, no code) → `unknown`: never resubmit without checking the wallet.
89
103
  */
90
- export declare function cip103SubmitError(error: unknown, commandId?: string): WalletSubmitError;
104
+ export declare function cip103SubmitError(error: unknown, commandId: string): WalletSubmitError;
105
+ /**
106
+ * A random (version 4) UUID: `crypto.randomUUID`, else built from `crypto.getRandomValues` (`randomUUID` is missing
107
+ * outside secure contexts). Throws when the runtime has neither.
108
+ */
109
+ export declare function newCommandId(crypto?: Partial<Crypto> | undefined): string;
91
110
  /**
92
111
  * The fields of the CIP-0103 `Wallet` (account) this SDK reads. `publicKey` and `namespace` are as the wallet reports
93
112
  * them (their encoding is not specified by CIP-0103); absent when the wallet did not send them.
@@ -97,58 +116,15 @@ export interface Cip103Account {
97
116
  readonly publicKey?: string;
98
117
  readonly namespace?: string;
99
118
  readonly networkId?: string;
100
- readonly signingProviderId?: string;
101
119
  }
102
120
  /**
103
121
  * The wallet's primary account (`getPrimaryAccount`). The dApp runs its wallet's own connect flow first; a provider
104
122
  * that is not connected answers 4100.
105
123
  */
106
124
  export declare function primaryAccount(provider: Cip103Provider): Promise<Cip103Account>;
107
- /** The wallet party: the primary account's `partyId` (`getPrimaryAccount`). */
108
- export declare function primaryPartyId(provider: Cip103Provider): Promise<string>;
109
- /**
110
- * The CIP-0103 network id of a Canton network (`canton:devnet`), as a wallet reports it in its account's `networkId`
111
- * and as a wallet ownership message names it.
112
- */
113
- export declare function cip103NetworkId(network: DaNetwork): string;
114
- /**
115
- * Entries asked for per `/v2/state/active-contracts-page` request (`maxPageSize`). Well under the participant's default
116
- * page and list limits, so a participant does not refuse it.
117
- */
118
- export declare const ACS_PAGE_SIZE = 200;
119
- /**
120
- * The most `/v2/state/active-contracts-page` requests one read makes ({@link ACS_PAGE_SIZE} × this = 100,000 contracts
121
- * of one filter). A read that needs more fails with `WalletReadError` instead of paging on.
122
- */
123
- export declare const ACS_MAX_PAGES = 500;
124
- /**
125
- * Codes of a first paged ACS call after which the snapshot is read once through the unpaged
126
- * `/v2/state/active-contracts` instead: the wallet does not offer the paged endpoint (4200, -32601, -32004), or refused
127
- * the paged request's shape (-32602). Loop reports those cases differently (see {@link LOOP_HTTP_REFUSED_MESSAGE}). Any
128
- * other failure (a rate limit, a timeout, a refused or disconnected session) is reported as it is: a second read would
129
- * fail the same way and only add load.
130
- */
131
- export declare const ACS_FALLBACK_CODES: ReadonlySet<number>;
132
- /**
133
- * Loop's message, with code -32002, for any non-OK HTTP reply of its ledger proxy other than 429 that carries no
134
- * structured error (`@fivenorth/loop-sdk` `Connection.ledgerApi`): an endpoint its allowlist does not offer, a
135
- * participant that serves the paged endpoint only as GET (Canton 3.5) or refuses its `maxPageSize`, or a server error.
136
- * Loop's timeout or network failure is another message ("Ledger request failed or timed out") and does not fall back.
137
- */
138
- export declare const LOOP_HTTP_REFUSED_MESSAGE = "Ledger access unavailable";
139
- /**
140
- * Whether a provider error is a rate limit: -32005, or -32603 whose message says HTTP status 429 (Loop's session check,
141
- * which runs before every `ledgerApi` call, throws a plain `Error` that Loop's CIP-0103 adapter maps to -32603).
142
- */
143
- export declare function isRateLimited(error: unknown): boolean;
144
- /**
145
- * Waits before each retry of a read the wallet rate-limited (-32005): 0.5 s, 1 s, 2 s, 4 s, so at most five attempts
146
- * over about 7.5 s. Each wait is jittered to between half and all of its value, so parallel readers spread out.
147
- */
148
- export declare const DEFAULT_READ_RETRY_DELAYS_MS: readonly number[];
149
- /** How reads back off when the wallet rate-limits them (-32005). Never applied to submissions. */
125
+ /** How reads back off when the wallet rate-limits them. A test hook; never applied to submissions. */
150
126
  export interface WalletReadRetryOptions {
151
- /** The wait before each retry, in milliseconds; defaults to {@link DEFAULT_READ_RETRY_DELAYS_MS}. Empty: no retry. */
127
+ /** The wait before each retry, in milliseconds; defaults to 0.5 s, 1 s, 2 s, 4 s. Empty: no retry. */
152
128
  readonly delaysMs?: readonly number[];
153
129
  /** Defaults to `setTimeout`. */
154
130
  readonly sleep?: (ms: number) => Promise<void>;
@@ -160,29 +136,17 @@ export interface AcsSnapshot {
160
136
  readonly offset: number;
161
137
  readonly contracts: ActiveContract[];
162
138
  }
163
- export interface AcsReadOptions {
164
- /**
165
- * Read at this ledger offset (one an earlier read reported) instead of the current ledger end, so a later read joins
166
- * an earlier snapshot.
167
- */
168
- readonly activeAtOffset?: number;
169
- }
170
- /** What the token actions need from a wallet: one party, its contracts, and a submit that waits for the commit. */
139
+ /** What the token actions need from a wallet: one party's contracts, and a submit that waits for the commit. */
171
140
  export interface Cip103Wallet {
172
- readonly partyId: string;
173
- /** Active contracts of `partyId` matching the filter, as one snapshot at the ledger end (or at `activeAtOffset`). */
174
- listActiveContracts(filter: ContractFilter, options?: AcsReadOptions): Promise<ActiveContract[]>;
175
141
  /**
176
- * Active contracts of `partyId` matching any of the filters, as one snapshot at the ledger end: one ledger-end call
177
- * and one paged ACS stream whose cumulative filter carries every filter. A contract matching several is returned
178
- * once. With `activeAtOffset`, the snapshot is read at that offset and the ledger end is not read.
142
+ * Active contracts of `partyId` of the templates (package-name `#pkg:Module:Entity` ids), as one snapshot at the
143
+ * ledger end: one ledger-end call and one ACS call whose cumulative filter carries every template.
179
144
  */
180
- readActiveContracts(filters: readonly ContractFilter[], options?: AcsReadOptions): Promise<AcsSnapshot>;
145
+ readActiveContracts(templateIds: readonly string[]): Promise<AcsSnapshot>;
181
146
  /** Sign and submit as `partyId`; resolves once committed, else throws `WalletSubmitError`. Never retries. */
182
147
  submit(submission: WalletSubmission): Promise<SubmitResult>;
183
148
  }
184
149
  export interface Cip103WalletOptions {
185
- /** How reads back off when the wallet rate-limits them. */
186
150
  readonly readRetry?: WalletReadRetryOptions;
187
151
  }
188
152
  /** The SDK's CIP-0103 client acting as `partyId` through `provider`. */
@@ -1 +1 @@
1
- {"version":3,"file":"cip103.d.ts","sourceRoot":"","sources":["../../../src/wallets/cip103.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAmB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAIjB,kHAAkH;AAElH,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAIF,4FAA4F;AAE5F,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAIF,iEAAiE;AAE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