@fairmint/canton-node-sdk 0.0.281 → 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,135 +1,197 @@
1
+ import type { FetchLike, DaRegistryOptions } from './da-utilities/client';
1
2
  import { type WalletErrorDescription } from './errors';
3
+ import { type WalletOwnershipVerdict } from './ownership';
2
4
  import type { Cip103Session, Cip103SessionState, ConnectedWallet } from './session';
3
- import { type Wallet, type WalletState } from './wallet';
4
- /** How the last action ended, for the party it ran as. */
5
+ import type { InstrumentId, SubmitResult } from './types';
6
+ import { type BurnRequestResult, type TransferPlan, type TransferRequest, type TransferResult, type Wallet, type WalletOptions, type WalletState } from './wallet';
7
+ /** What a page asks the store to do. `planTransfer` and `proveOwnership` only read; every other action is a write. */
8
+ export type WalletAction = {
9
+ readonly type: 'acceptMintOffer' | 'rejectMintOffer';
10
+ readonly mintOfferCid: string;
11
+ } | {
12
+ readonly type: 'acceptTransferOffer' | 'rejectTransferOffer' | 'withdrawTransferOffer';
13
+ readonly transferOfferCid: string;
14
+ } | {
15
+ readonly type: 'requestBurn';
16
+ readonly instrumentId: InstrumentId;
17
+ readonly amount: string;
18
+ readonly reference?: string;
19
+ readonly executeBefore?: Date;
20
+ } | {
21
+ readonly type: 'cancelBurnRequest';
22
+ readonly burnRequestCid: string;
23
+ }
24
+ /** Read-only; resolves with a plan to show. Send it with `submitTransfer`: its own `submit()` refuses. */
25
+ | {
26
+ readonly type: 'planTransfer';
27
+ readonly request: TransferRequest;
28
+ } | {
29
+ readonly type: 'submitTransfer';
30
+ readonly plan: TransferPlan;
31
+ } | {
32
+ readonly type: 'createTransferPreapproval';
33
+ readonly instrumentAdmin: string;
34
+ readonly instrumentIds?: readonly string[];
35
+ } | {
36
+ readonly type: 'removeTransferPreapproval';
37
+ readonly preapprovalCid: string;
38
+ } | {
39
+ readonly type: 'proveOwnership';
40
+ /** Answers `POST { network, partyId }` with `{ data: WalletOwnershipChallengeResponse }`. */
41
+ readonly challengeUrl: string;
42
+ /** Answers `POST { token, proof }` with `{ data: WalletOwnershipVerdict }`. */
43
+ readonly verifyUrl: string;
44
+ readonly fetch?: FetchLike;
45
+ };
46
+ /** What each action resolves with. A not-verified ownership verdict is a failure, so only a verified one returns. */
47
+ export interface WalletActionResults {
48
+ readonly acceptMintOffer: SubmitResult;
49
+ readonly rejectMintOffer: SubmitResult;
50
+ readonly acceptTransferOffer: SubmitResult;
51
+ readonly rejectTransferOffer: SubmitResult;
52
+ readonly withdrawTransferOffer: SubmitResult;
53
+ readonly requestBurn: BurnRequestResult;
54
+ readonly cancelBurnRequest: SubmitResult;
55
+ readonly planTransfer: TransferPlan;
56
+ readonly submitTransfer: TransferResult;
57
+ readonly createTransferPreapproval: SubmitResult;
58
+ readonly removeTransferPreapproval: SubmitResult;
59
+ readonly proveOwnership: Extract<WalletOwnershipVerdict, {
60
+ readonly verified: true;
61
+ }>;
62
+ }
63
+ export type ActionResultOf<A extends WalletAction> = WalletActionResults[A['type']];
64
+ /**
65
+ * A stable key for an action: its type and the contract or instrument it acts on. Compare it with `view.running?.key`
66
+ * to show a button's spinner.
67
+ */
68
+ export declare function walletActionKey(action: WalletAction): string;
69
+ /**
70
+ * Whether `store.act(action)` would run it now: the store is `ready`, not busy, and, for a write, no outcome is
71
+ * unknown. Use it to enable the action's button.
72
+ */
73
+ export declare function canAct(view: WalletView, action: WalletAction): boolean;
74
+ /** How the last action that had something to say ended, for the party it ran as. */
5
75
  export type ActionOutcome = {
6
- readonly id: string;
76
+ readonly action: WalletAction;
77
+ readonly key: string;
7
78
  readonly partyId: string;
8
79
  readonly status: 'succeeded';
9
- readonly message: string | null;
80
+ readonly message: string;
10
81
  } | {
11
- readonly id: string;
82
+ readonly action: WalletAction;
83
+ readonly key: string;
12
84
  readonly partyId: string;
13
85
  readonly status: 'failed';
14
86
  readonly error: WalletErrorDescription;
15
- }
16
- /**
17
- * The session ended (disconnect, wallet end, account switch) before the action settled: whether it committed is
18
- * unknown.
19
- */
20
- | {
21
- readonly id: string;
22
- readonly partyId: string;
23
- readonly status: 'interrupted';
24
87
  };
88
+ /** A write whose outcome is unknown (`outcome-unknown`): it may have committed. Check the wallet before trying again. */
89
+ export interface UnknownOutcome {
90
+ readonly action: WalletAction;
91
+ readonly key: string;
92
+ readonly partyId: string;
93
+ readonly message: string;
94
+ /** The command id it was submitted with, when the submission reported one. */
95
+ readonly commandId?: string;
96
+ /** A redemption's reference, to look the burn request up before filing another. */
97
+ readonly burnReference?: string;
98
+ }
99
+ /** Something to show the user; render `view.notices` in one place. */
100
+ export interface WalletNotice {
101
+ /** Stable per kind of notice: a React `key`. */
102
+ readonly key: string;
103
+ readonly level: 'success' | 'error' | 'warning' | 'info';
104
+ readonly title?: string;
105
+ readonly message: string;
106
+ /** Offer a Retry button that calls `store.refresh()`. */
107
+ readonly retry?: true;
108
+ /** Offer a button that calls `store.acknowledgeUnknownOutcome()` once the user checked the wallet. */
109
+ readonly acknowledge?: true;
110
+ }
25
111
  export interface WalletView {
26
112
  readonly session: Cip103SessionState;
27
113
  /** The connected wallet the state belongs to (null when disconnected). */
28
114
  readonly wallet: ConnectedWallet | null;
115
+ /**
116
+ * A token wallet is open for `wallet`, so actions can run. False while disconnected, and when the token wallet could
117
+ * not be built (an invalid `registry` option; `loadError` says why).
118
+ */
119
+ readonly ready: boolean;
29
120
  /**
30
121
  * Ledger state from one snapshot. Null until the first load answers, and cleared when a load fails or the wallet
31
122
  * changes.
32
123
  */
33
124
  readonly state: WalletState | null;
34
- /**
35
- * A load for the current wallet is in flight, or queued behind the wallet call in flight (an action of this wallet or
36
- * a previous one, the previous wallet's load, or the load before a Retry).
37
- */
125
+ /** A load for the current wallet is in flight, or queued behind the wallet call in flight. */
38
126
  readonly loading: boolean;
39
127
  /** The last load's failure. A rate limit has kind `rate-limited`, so offer `refresh()` after a moment. */
40
128
  readonly loadError: WalletErrorDescription | null;
41
- /** The running action's id. */
42
- readonly running: string | null;
129
+ /** The running action (`key` is its `walletActionKey`). */
130
+ readonly running: {
131
+ readonly action: WalletAction;
132
+ readonly key: string;
133
+ } | null;
43
134
  /**
44
- * True while any wallet call is in flight or a load is queued: an action, or a load (the first one, a Retry, the
45
- * reload after an action), for the current wallet or a previous one. Disable every action button. `run()` refuses
135
+ * True while any wallet call is in flight or a load is queued: disable every action button. `act()` refuses
46
136
  * meanwhile, so only one wallet call is ever in flight.
47
137
  */
48
138
  readonly busy: boolean;
49
139
  /**
50
- * The last action's outcome. A wallet change clears it, except when whether it committed is unknown (`interrupted`,
51
- * or `failed` with kind `outcome-unknown`).
140
+ * The last action that had something to say: a write's result or failure, an ownership verdict, a plan that failed. A
141
+ * plan that succeeded leaves it as it was (its result is the plan). Cleared when the wallet changes.
52
142
  */
53
143
  readonly outcome: ActionOutcome | null;
54
144
  /**
55
- * The party of a write whose outcome is unknown and is not shown as the current wallet's failure: still running for
56
- * an ended session, `interrupted`, or an `outcome-unknown` failure of a wallet that is no longer connected.
145
+ * A write whose outcome is unknown. It stays, across later actions and wallet changes, until
146
+ * `acknowledgeUnknownOutcome()`, and meanwhile `act()` refuses every write: disable write buttons while it is set.
57
147
  */
58
- readonly unknownOutcomeParty: string | null;
59
- }
60
- export interface WalletActionContext {
61
- /** The token wallet of `wallet`. */
62
- readonly tokens: Wallet;
63
- /** The connected wallet the action runs for. */
64
- readonly wallet: ConnectedWallet;
148
+ readonly unknownOutcome: UnknownOutcome | null;
149
+ /** The session error, the unknown outcome, the load error and the last outcome, as sentences to show. */
150
+ readonly notices: readonly WalletNotice[];
65
151
  }
66
152
  export interface WalletStore {
67
153
  subscribe(listener: () => void): () => void;
68
154
  /** The current view; the same object until it changes (for `useSyncExternalStore`). */
69
155
  getSnapshot(): WalletView;
70
156
  /**
71
- * Reload the snapshot (the Retry button). Starts at once when no wallet call is in flight; otherwise it is queued and
72
- * runs once that call settles (the load in flight may have read before what prompted the refresh). Queued loads are
73
- * coalesced into one, so a refresh during a write is the reload after it. Ignored while disconnected.
74
- */
75
- refresh(): void;
76
- /**
77
- * Run one wallet call (a write, a preview, `signMessage`). Resolves false without calling `action` while busy (any
78
- * wallet call in flight or load queued) or disconnected; the check is synchronous, so a double click is refused at
79
- * once. Afterwards it reloads the snapshot, even when the action failed, because a failed write may have committed,
80
- * and stays busy until that reload answers. A write that settles after its session ended records `interrupted`, never
81
- * `succeeded` (or nothing when it was refused unsent, below). Resolves true when the action succeeded for a session
82
- * that is still current. `action` resolves with a message to show, or nothing.
157
+ * Run one action for the connected wallet. Resolves null without doing anything while busy or disconnected, or for a
158
+ * write while `view.unknownOutcome` is set (checked synchronously, so a double click is refused at once). A write is
159
+ * followed by a reload, also when it failed, since a failed write may have committed; the store stays busy until that
160
+ * reload answers. Resolves with the action's result when it succeeded for a wallet that is still current, else null
161
+ * (see `view.outcome` and `view.unknownOutcome`).
83
162
  *
84
- * `readOnly: true` marks a call that commits nothing (a preview, `signMessage`): no reload follows, and one that
85
- * settles after its session ended records no outcome instead of `interrupted`.
86
- *
87
- * A `TransferPlan`, or any token wallet kept from an earlier run, is bound to the wallet session that made it: submit
88
- * it only in a run of that same `wallet`. A token wallet the store opened (with the default `open`, or a custom one
89
- * that passes `isActive` on) refuses every write once its `ConnectedWallet` is no longer the session's, with
90
- * `invalid-input` and before anything is read or signed, so a plan made for one account is never submitted after the
91
- * session switched to another. A run that is still current records that refusal as a `failed` outcome. A run whose
92
- * session ended while it ran, and whose action rejected with a refusal (`WalletError`, `describeWalletError` kind
93
- * `refused`: nothing was submitted), records no outcome rather than `interrupted`.
94
- */
95
- run(id: string, action: (context: WalletActionContext) => Promise<string | void>, options?: {
96
- readonly readOnly?: boolean;
97
- }): Promise<boolean>;
98
- /**
99
- * Stop following the session; pending replies are dropped, a queued load never starts and no further view is
100
- * published.
163
+ * A write that settles after its session ended is recorded by what is known: a result as `succeeded` for its party, a
164
+ * certain failure as `failed`, an unknown outcome as `unknownOutcome`, and a failure before anything was submitted
165
+ * not at all. `submitTransfer` sends only a plan this store's `planTransfer` made for the current wallet; any other
166
+ * plan (another session, network or account, or a standalone wallet's) is refused with `invalid-input` before
167
+ * anything is signed.
101
168
  */
169
+ act<A extends WalletAction>(action: A): Promise<ActionResultOf<A> | null>;
170
+ /** Reload the snapshot (the Retry button); queued behind the wallet call in flight. Ignored while disconnected. */
171
+ refresh(): void;
172
+ /** Clear `unknownOutcome` once the user checked the wallet. */
173
+ acknowledgeUnknownOutcome(): void;
174
+ /** Stop following the session; pending replies are dropped and no further view is published. */
102
175
  dispose(): void;
103
176
  }
104
- /** What `open` gets besides the connected wallet. */
105
- export interface OpenWalletContext {
106
- /**
107
- * Whether `wallet` is still the session's connected wallet (`session.isCurrent(wallet)`). Pass it as the token
108
- * wallet's `isActive`, so its writes, and the `TransferPlan`s it made, are refused once the session left `wallet`.
109
- */
110
- readonly isActive: () => boolean;
111
- }
112
177
  export interface WalletStoreOptions {
113
178
  readonly session: Cip103Session;
114
- /**
115
- * Builds the token wallet of each connected wallet. Default: `createWallet({ provider, partyId, network, isActive })`
116
- * (DA's registry for the wallet's network), which needs `wallet.network` (a wallet without one gets a `refused` load
117
- * error). For another registry, return `createWallet({ provider: wallet.provider, partyId: wallet.partyId, registry,
118
- * isActive: context.isActive })`. Pass `context.isActive` on as the token wallet's `isActive`, as the default does,
119
- * or a plan made for one wallet can still be submitted after the session switched to another.
120
- */
121
- readonly open?: (wallet: ConnectedWallet, context: OpenWalletContext) => Wallet;
179
+ /** How each token wallet reaches DA's Utilities API (`createWallet`'s `registry`). */
180
+ readonly registry?: DaRegistryOptions;
181
+ }
182
+ /** A test hook beside {@link WalletStoreOptions}; not part of the public options. */
183
+ export interface WalletStoreInternalOptions extends WalletStoreOptions {
184
+ /** Defaults to `createWallet`. */
185
+ readonly openWallet?: (options: WalletOptions) => Wallet;
122
186
  }
123
187
  /**
124
- * The observable state and actions of a token wallet page over `session`. The store follows the session: each new
125
- * `ConnectedWallet` gets its own token wallet (from `open`) and a fresh load, and its state is cleared.
188
+ * The observable state and actions of a token wallet page over `session`. Each new `ConnectedWallet` gets its own token
189
+ * wallet (`createWallet` on the session's network, bound to the session by `isActive`) and a fresh load.
126
190
  *
127
- * One wallet call at a time: an execution latch counts every call in flight (actions and loads, of the current wallet
128
- * or a previous one, since a dropped reply does not cancel its request). `run()` refuses while it is held. A load asked
129
- * for meanwhile (a new wallet's first load, a Retry, the reload after a write) is queued; queued loads coalesce into
130
- * one, which runs for the wallet current when the latch frees. Ending the session drops the queued load, and so does
131
- * `dispose()`. A wallet call that never settles holds the latch, since it cannot be cancelled. The token wallet's own
132
- * write latch (`busy`) stays as the inner guard.
191
+ * One wallet call at a time: a latch counts every call in flight (actions and loads, of the current wallet or a
192
+ * previous one, since a dropped reply does not cancel its request). `act()` refuses while it is held. A load asked for
193
+ * meanwhile (a new wallet's first load, a Retry, the reload after a write) is queued; queued loads coalesce into one,
194
+ * which runs for the wallet current when the latch frees. A wallet call that never settles holds the latch.
133
195
  */
134
196
  export declare function createWalletStore(options: WalletStoreOptions): WalletStore;
135
197
  //# sourceMappingURL=store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/wallets/store.ts"],"names":[],"mappings":"AASA,OAAO,EAAoC,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAgB,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvE,0DAA0D;AAC1D,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAChH;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,sBAAsB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