@fairmint/canton-node-sdk 0.0.291 → 0.0.293

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 (34) hide show
  1. package/README.md +51 -0
  2. package/build/src/wallets/connector.d.ts +186 -0
  3. package/build/src/wallets/connector.d.ts.map +1 -0
  4. package/build/src/wallets/connector.js +768 -0
  5. package/build/src/wallets/connector.js.map +1 -0
  6. package/build/src/wallets/errors.d.ts +29 -3
  7. package/build/src/wallets/errors.d.ts.map +1 -1
  8. package/build/src/wallets/errors.js +38 -1
  9. package/build/src/wallets/errors.js.map +1 -1
  10. package/build/src/wallets/index.d.ts +7 -2
  11. package/build/src/wallets/index.d.ts.map +1 -1
  12. package/build/src/wallets/index.js +13 -2
  13. package/build/src/wallets/index.js.map +1 -1
  14. package/build/src/wallets/latch.d.ts +70 -0
  15. package/build/src/wallets/latch.d.ts.map +1 -0
  16. package/build/src/wallets/latch.js +102 -0
  17. package/build/src/wallets/latch.js.map +1 -0
  18. package/build/src/wallets/loop.d.ts +36 -0
  19. package/build/src/wallets/loop.d.ts.map +1 -0
  20. package/build/src/wallets/loop.js +59 -0
  21. package/build/src/wallets/loop.js.map +1 -0
  22. package/build/src/wallets/options.d.ts +76 -0
  23. package/build/src/wallets/options.d.ts.map +1 -0
  24. package/build/src/wallets/options.js +21 -0
  25. package/build/src/wallets/options.js.map +1 -0
  26. package/build/src/wallets/storage.d.ts +17 -0
  27. package/build/src/wallets/storage.d.ts.map +1 -0
  28. package/build/src/wallets/storage.js +55 -0
  29. package/build/src/wallets/storage.js.map +1 -0
  30. package/build/src/wallets/store.d.ts +65 -6
  31. package/build/src/wallets/store.d.ts.map +1 -1
  32. package/build/src/wallets/store.js +170 -36
  33. package/build/src/wallets/store.js.map +1 -1
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -236,6 +236,57 @@ if (plan !== null && confirm(plan.description)) await store.act({ type: 'submitT
236
236
  - Wallet discovery follows the Canton dApp SDK's announce handshake; a CIP that standardizes
237
237
  discovery is still a draft, so `discoverCip103Wallets` will follow it once it settles.
238
238
 
239
+ ### Connecting a wallet: options, the connector and the write latch
240
+
241
+ A page that offers several wallets uses `createWalletConnector` instead of wiring the session
242
+ itself. It owns the network's session and store, restores the wallet remembered from an earlier
243
+ visit, and remembers the user's choice. Like the store it is a framework-free observable
244
+ (`subscribe`, `getSnapshot`), and its snapshot carries codes (`status`, `error.code`,
245
+ `availability.reason`), never sentences: the page words them.
246
+
247
+ - Options. A `LoadedWalletOption` loads its CIP-0103 provider on demand:
248
+ `loopWalletOption({ appName, load })` (the app passes Loop's dynamic import; node-sdk does not
249
+ depend on Loop) and `extensionWalletOptions()` (the installed extensions, keyed `extension:<id>`).
250
+ Loop serves one network per page load, so after it is set up its availability on the other network
251
+ is `reload-required`. A `LiveWalletOption` is one the app builds through its own setup UI (Privy's
252
+ session in `@fairmint/canton-privy-sdk` offers one): it offers a provider once set up, and a new
253
+ one whenever its setup changes.
254
+ - `connector.connect(key)` is the user's click. A provider loaded beforehand with
255
+ `connector.preload()` is connected synchronously inside the click, which Loop's sign-in window
256
+ needs. A live option without a provider yet answers `preparing` and connects once it offers one; a
257
+ rebuilt provider for the same party shows `reconnecting` with the held connection (`stale`), so
258
+ the page stays mounted. `select(key)` opens a live option's setup UI, and survives a login
259
+ redirect in the same tab. `cancel()` and `disconnect()` end what is in flight.
260
+ - Restore. On creation the connector reads `${storageKey}.wallet` (local storage) and restores that
261
+ wallet silently, giving up after `restoreTimeoutMs` (15 s) and forgetting it then or on
262
+ `cancel()`. A retired restore never connects late and never disconnects anything. Storage defaults
263
+ to the page's `localStorage` and `sessionStorage`; either may be missing or throw.
264
+ - One write at a time. `createWriteLatch()` is a single-flight latch the store,
265
+ `store.run(label, fn)` (a write that is not a store action) and the app's other writers share. A
266
+ run starts synchronously, so a double click is refused; `bump()` (every wallet change) aborts the
267
+ runs in flight, which then report `dropped`, or `unknown-outcome` once they called
268
+ `markSubmitted()`. The view says why it is busy (`busyReason`: `action`, `run` or `load`, and
269
+ `busyLabel`).
270
+ - `readOnly` (or `store.setReadOnly(reason)`) closes the app's write gate: writes are refused, reads
271
+ run, and `actionState` reports `read-only`. `view.shown` is what to render: `state`, or the last
272
+ snapshot of the same `retainKey` while a reload or reconnect runs (`view.stale`).
273
+
274
+ ```ts
275
+ const loop = loopWalletOption({
276
+ appName: 'My dApp',
277
+ load: async () => (await import('@fivenorth/loop-sdk')).loop,
278
+ });
279
+ const connector = createWalletConnector({
280
+ network: 'devnet',
281
+ options: [loop],
282
+ discover: (signal) => extensionWalletOptions({ signal }),
283
+ storageKey: 'my-dapp.wallet',
284
+ });
285
+ const { status, options, connection, error } = connector.getSnapshot();
286
+ await connector.connect('loop'); // { status: 'connected' | 'failed' | 'cancelled' | 'preparing' | 'refused' }
287
+ connector.store?.getSnapshot(); // the token wallet view of the connected wallet
288
+ ```
289
+
239
290
  ### One panel per token
240
291
 
241
292
  `walletTokens(view.state)` gives one entry per token the state names, Canton Coin and DA Registry
@@ -0,0 +1,186 @@
1
+ import type { DaNetwork } from './da-utilities/client';
2
+ import { type WalletErrorDescription } from './errors';
3
+ import { type WriteLatch } from './latch';
4
+ import type { WalletAvailability, WalletOption, WalletOptionInfo } from './options';
5
+ import { type Cip103Session, type ConnectedWallet } from './session';
6
+ import { type StorageLike } from './storage';
7
+ import { type WalletStore, type WalletStoreOptions } from './store';
8
+ /** {@link createWalletConnector}'s input. */
9
+ export interface WalletConnectorInput {
10
+ /**
11
+ * The DA network, or null where DA runs none: every option is then `unsupported-network`, and `session`/`store` are
12
+ * null.
13
+ */
14
+ readonly network: DaNetwork | null;
15
+ /** The fixed options: Loop, a live option such as a Privy session's, an app's own. Keys must be unique. */
16
+ readonly options: readonly WalletOption[];
17
+ /**
18
+ * Options found at run time, such as `(signal) => extensionWalletOptions({ signal })`. Run once at creation and again
19
+ * on `rediscover()`. An option whose key a fixed option has is ignored.
20
+ */
21
+ readonly discover?: (signal: AbortSignal) => Promise<readonly WalletOption[]>;
22
+ /**
23
+ * Where the remembered wallet (`local`) and the selected-setup flag (`session`) are kept. Defaults: the page's
24
+ * `localStorage` and `sessionStorage`. `null` disables one.
25
+ */
26
+ readonly storage?: {
27
+ readonly local?: StorageLike | null;
28
+ readonly session?: StorageLike | null;
29
+ };
30
+ /** Prefix of the two storage keys, `${storageKey}.wallet` and `${storageKey}.selected`. Default `canton-wallet`. */
31
+ readonly storageKey?: string;
32
+ /**
33
+ * How long a restore of a remembered loaded option may take before it is abandoned and forgotten. Default 15 000 ms;
34
+ * at most `MAX_TIMER_MS`.
35
+ */
36
+ readonly restoreTimeoutMs?: number;
37
+ /** Store options other than `session`, `latch`, `retainKey` and `connectingRetainKey`, which the connector supplies. */
38
+ readonly store?: Omit<WalletStoreOptions, 'session' | 'latch' | 'retainKey' | 'connectingRetainKey'>;
39
+ /** Shared with the app's other writers (a wallet setup session). Default: a new one. */
40
+ readonly latch?: WriteLatch;
41
+ }
42
+ /**
43
+ * - `disconnected`: nothing is wanted;
44
+ * - `restoring`: restoring a remembered loaded option silently (`cancel()` abandons it);
45
+ * - `preparing`: a live option is wanted and offers no provider yet: the app shows its setup UI;
46
+ * - `connecting`: a connect is in flight, its option's provider still loading included (`cancel()` ends it);
47
+ * - `connected`;
48
+ * - `reconnecting`: a live option offered a new provider for the same retain key; `connection` is the held one (`stale:
49
+ * true`).
50
+ */
51
+ export type WalletConnectorStatus = 'disconnected' | 'restoring' | 'preparing' | 'connecting' | 'connected' | 'reconnecting';
52
+ /** A connected wallet, with the option it came through. */
53
+ export interface WalletConnection {
54
+ /** Stable UI key: `${option.key}:${retainKey}` for live options, else the session wallet's `key`. */
55
+ readonly key: string;
56
+ readonly option: WalletOptionInfo;
57
+ /** The session's connected wallet (provider, party, network, key). */
58
+ readonly wallet: ConnectedWallet;
59
+ }
60
+ /** An option as the snapshot shows it. */
61
+ export interface WalletOptionState extends WalletOptionInfo {
62
+ readonly mode: 'load' | 'live';
63
+ readonly availability: WalletAvailability;
64
+ /** Loaded options: their preload state. Live options: `ready` once they offer a provider, else `idle`. */
65
+ readonly provider: 'idle' | 'loading' | 'ready' | 'failed';
66
+ /** Why the last preload failed. */
67
+ readonly loadError: WalletErrorDescription | null;
68
+ }
69
+ /** Why the last connect, select or option load failed. */
70
+ export interface WalletConnectorError {
71
+ /**
72
+ * - `load-failed`: an option's `load` rejected (`description` from `describeWalletError`);
73
+ * - `connect-failed`: the session's connect failed (`description` is the session's own error; 4001 is `declined`);
74
+ * - `unavailable`: `connect(key)` for an option whose availability is false (`availability` says why).
75
+ */
76
+ readonly code: 'load-failed' | 'connect-failed' | 'unavailable';
77
+ readonly key: string;
78
+ readonly description: WalletErrorDescription | null;
79
+ readonly availability?: WalletAvailability;
80
+ }
81
+ /** What {@link WalletConnector.getSnapshot} returns: the same frozen object until something changes. */
82
+ export interface WalletConnectorSnapshot {
83
+ readonly network: DaNetwork | null;
84
+ readonly status: WalletConnectorStatus;
85
+ /** The option being restored, prepared, connected or reconnected; null when disconnected. */
86
+ readonly target: WalletOptionInfo | null;
87
+ /**
88
+ * The live option whose setup UI is open. It survives a reload in this tab (session storage), so a login redirect
89
+ * lands back on it.
90
+ */
91
+ readonly selected: string | null;
92
+ /**
93
+ * The live connection, or the held one while `reconnecting`. Null while `connecting`, also while a loaded option's
94
+ * provider loads and the session is still on the previous wallet.
95
+ */
96
+ readonly connection: WalletConnection | null;
97
+ /** `connection` is the held one. */
98
+ readonly stale: boolean;
99
+ /** Fixed options first, then discovered ones in discovery order. */
100
+ readonly options: readonly WalletOptionState[];
101
+ readonly discovering: boolean;
102
+ /** Cleared by the next connect, select, cancel or disconnect. A restore never sets it. */
103
+ readonly error: WalletConnectorError | null;
104
+ }
105
+ /** How a `connect()` ended. */
106
+ export type WalletConnectResult = {
107
+ readonly status: 'connected';
108
+ }
109
+ /** A live option without a provider yet: it connects on its own once one appears. */
110
+ | {
111
+ readonly status: 'preparing';
112
+ }
113
+ /** See `snapshot.error`. */
114
+ | {
115
+ readonly status: 'failed';
116
+ }
117
+ /** `cancel()`, `disconnect()`, another `connect()` or `dispose()` superseded it. */
118
+ | {
119
+ readonly status: 'cancelled';
120
+ } | {
121
+ readonly status: 'refused';
122
+ readonly reason: 'busy' | 'unavailable' | 'unknown-option' | 'no-network' | 'disposed';
123
+ };
124
+ /** A page's wallet connection. Create it with {@link createWalletConnector}. */
125
+ export interface WalletConnector {
126
+ subscribe(listener: () => void): () => void;
127
+ getSnapshot(): WalletConnectorSnapshot;
128
+ /** Null when `network` is null. */
129
+ readonly session: Cip103Session | null;
130
+ /** Null when `network` is null. */
131
+ readonly store: WalletStore | null;
132
+ readonly latch: WriteLatch;
133
+ /**
134
+ * The user's click. Refused while the latch is held (`busy`). It retires any restore and bumps the latch. A live
135
+ * option is remembered at once, and `selected` is cleared unless it is that option; without a provider yet, the
136
+ * previous wallet is left and the result is `preparing`. A loaded option is remembered, and the previous live option
137
+ * and `selected` cleared, only once the session leaves the previous wallet for it (and it is remembered only once
138
+ * connected): a load that fails keeps the previous wallet. With a preloaded provider, `session.connect` is called
139
+ * synchronously inside the click (a wallet's sign-in window needs the gesture); otherwise it loads first, and is
140
+ * refused `busy` if a write took the latch meanwhile (the provider stays ready). Each call is a new attempt, so a
141
+ * click after a cancelled or failed connect retries it. It never rejects.
142
+ */
143
+ connect(key: string): Promise<WalletConnectResult>;
144
+ /**
145
+ * Opens a live option's setup UI without connecting (`selected = key`), or closes it (`null`, "choose another
146
+ * wallet"). Closing forgets the remembered key when it is that option's, and stops wanting a live option a
147
+ * `connect()` is still preparing. Refused (false) while the latch is held or `connecting`, and for a key that names
148
+ * no live option.
149
+ */
150
+ select(key: string | null): boolean;
151
+ /**
152
+ * Loads loaded options' providers (all available ones, or `keys`) while the chooser is open, so a click connects at
153
+ * once. Returns a release that aborts loads still pending; finished ones stay ready.
154
+ */
155
+ preload(keys?: readonly string[]): () => void;
156
+ /** Runs `discover` again; options that disappear lose their preload. */
157
+ rediscover(): Promise<void>;
158
+ /**
159
+ * - `restoring`: abandon the restore, and forget its key if it is still the remembered one;
160
+ * - `connecting` / `reconnecting`: the same, forget the cancelled option's key if it is still the remembered one, then
161
+ * `session.disconnect()` (the CIP-0103 disconnect ends the wallet's own sign-in window). A connect still loading
162
+ * its option's provider stops loading and never connects; a wallet the session is connected to stays, since the
163
+ * connect had not left it yet;
164
+ * - `preparing`: stop wanting the live option (`selected` stays) and forget its key if it is the remembered one;
165
+ * - Otherwise nothing.
166
+ */
167
+ cancel(): void;
168
+ /** Retires any restore, bumps the latch, disconnects the session, clears target and selected, forgets both keys. */
169
+ disconnect(): void;
170
+ /**
171
+ * Stops everything: the restore, preloads and discovery; unsubscribes from live options; bumps and disposes the latch
172
+ * only if the connector created it; disposes the store; and sends a best-effort CIP-0103 disconnect for a connected
173
+ * wallet before disposing the session. Storage is not touched, so a later connector for the same network restores.
174
+ * Afterwards every method is a no-op or refused `disposed`.
175
+ */
176
+ dispose(): void;
177
+ }
178
+ /** The default {@link WalletConnectorInput.restoreTimeoutMs}. */
179
+ export declare const DEFAULT_RESTORE_TIMEOUT_MS = 15000;
180
+ /**
181
+ * A wallet connection for `input.network`: the session, the store over it and the shared latch, plus restore and
182
+ * remember (see {@link WalletConnector}). Create one per network a page serves, and `dispose()` it when the page leaves
183
+ * that network.
184
+ */
185
+ export declare function createWalletConnector(input: WalletConnectorInput): WalletConnector;
186
+ //# sourceMappingURL=connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/wallets/connector.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAuB,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAGV,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,O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