@fairmint/canton-node-sdk 0.0.290 → 0.0.292
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.
- package/README.md +51 -0
- package/build/src/wallets/abort.d.ts +13 -0
- package/build/src/wallets/abort.d.ts.map +1 -1
- package/build/src/wallets/abort.js +66 -0
- package/build/src/wallets/abort.js.map +1 -1
- package/build/src/wallets/connector.d.ts +181 -0
- package/build/src/wallets/connector.d.ts.map +1 -0
- package/build/src/wallets/connector.js +686 -0
- package/build/src/wallets/connector.js.map +1 -0
- package/build/src/wallets/da-utilities/client.d.ts +10 -0
- package/build/src/wallets/da-utilities/client.d.ts.map +1 -1
- package/build/src/wallets/da-utilities/client.js +41 -13
- package/build/src/wallets/da-utilities/client.js.map +1 -1
- package/build/src/wallets/errors.d.ts +40 -5
- package/build/src/wallets/errors.d.ts.map +1 -1
- package/build/src/wallets/errors.js +79 -2
- package/build/src/wallets/errors.js.map +1 -1
- package/build/src/wallets/format.d.ts +54 -0
- package/build/src/wallets/format.d.ts.map +1 -0
- package/build/src/wallets/format.js +57 -0
- package/build/src/wallets/format.js.map +1 -0
- package/build/src/wallets/index.d.ts +15 -4
- package/build/src/wallets/index.d.ts.map +1 -1
- package/build/src/wallets/index.js +34 -1
- package/build/src/wallets/index.js.map +1 -1
- package/build/src/wallets/latch.d.ts +70 -0
- package/build/src/wallets/latch.d.ts.map +1 -0
- package/build/src/wallets/latch.js +100 -0
- package/build/src/wallets/latch.js.map +1 -0
- package/build/src/wallets/loop.d.ts +36 -0
- package/build/src/wallets/loop.d.ts.map +1 -0
- package/build/src/wallets/loop.js +59 -0
- package/build/src/wallets/loop.js.map +1 -0
- package/build/src/wallets/options.d.ts +76 -0
- package/build/src/wallets/options.d.ts.map +1 -0
- package/build/src/wallets/options.js +21 -0
- package/build/src/wallets/options.js.map +1 -0
- package/build/src/wallets/ownership.d.ts.map +1 -1
- package/build/src/wallets/ownership.js +2 -5
- package/build/src/wallets/ownership.js.map +1 -1
- package/build/src/wallets/sign-message.d.ts +43 -0
- package/build/src/wallets/sign-message.d.ts.map +1 -0
- package/build/src/wallets/sign-message.js +56 -0
- package/build/src/wallets/sign-message.js.map +1 -0
- package/build/src/wallets/storage.d.ts +17 -0
- package/build/src/wallets/storage.d.ts.map +1 -0
- package/build/src/wallets/storage.js +55 -0
- package/build/src/wallets/storage.js.map +1 -0
- package/build/src/wallets/store.d.ts +74 -4
- package/build/src/wallets/store.d.ts.map +1 -1
- package/build/src/wallets/store.js +174 -33
- package/build/src/wallets/store.js.map +1 -1
- package/build/src/wallets/tokens.d.ts +48 -11
- package/build/src/wallets/tokens.d.ts.map +1 -1
- package/build/src/wallets/tokens.js +35 -14
- package/build/src/wallets/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.js","sourceRoot":"","sources":["../../../src/wallets/ownership.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,qCAQkB;AAClB,mCAA8E;AAC9E,8CAA0E;AAC1E,kDAAoE;AACpE,qCAA4D;AAC5D,iCAAkD;
|
|
1
|
+
{"version":3,"file":"ownership.js","sourceRoot":"","sources":["../../../src/wallets/ownership.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,qCAQkB;AAClB,mCAA8E;AAC9E,8CAA0E;AAC1E,kDAAoE;AACpE,qCAA4D;AAC5D,iCAAkD;AAClD,iDAAmD;AAEnD,iDAAiD;AACpC,QAAA,sBAAsB,GAAG,+BAA+B,CAAC;AACtE,uDAAuD;AAC1C,QAAA,wBAAwB,GAAG,GAAG,CAAC;AAmC5C,MAAM,cAAc,GAAG,mEAAmE,CAAC;AAC3F,MAAM,aAAa,GAAG,2BAA2B,CAAC;AAClD,sCAAsC;AACtC,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,WAAW,GAAG,+CAA+C,CAAC;AAEpE,s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
2
|
+
export declare const SIGN_MESSAGE_MIN_BYTES = 64;
|
|
3
|
+
/** The most UTF-8 bytes a message may have: the bound Privy's CIP-0103 provider (canton-privy-sdk) enforces. */
|
|
4
|
+
export declare const SIGN_MESSAGE_MAX_BYTES = 8192;
|
|
5
|
+
/**
|
|
6
|
+
* Why {@link validateSignMessage} refuses a message:
|
|
7
|
+
*
|
|
8
|
+
* - `too-short` / `too-long`: its UTF-8 length (`bytes`) is outside the bounds;
|
|
9
|
+
* - `control-characters`: it has a control character other than tab and newline (a carriage return included);
|
|
10
|
+
* - `malformed`: it is not well-formed text (a lone UTF-16 surrogate).
|
|
11
|
+
*/
|
|
12
|
+
export interface SignMessageProblem {
|
|
13
|
+
readonly code: 'too-short' | 'too-long' | 'control-characters' | 'malformed';
|
|
14
|
+
/** The message's length in UTF-8 bytes. */
|
|
15
|
+
readonly bytes: number;
|
|
16
|
+
}
|
|
17
|
+
/** Bounds for {@link validateSignMessage}; each defaults to the exported constant. */
|
|
18
|
+
export interface ValidateSignMessageOptions {
|
|
19
|
+
readonly minBytes?: number;
|
|
20
|
+
readonly maxBytes?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Null when wallets will sign `message`, else why not: well-formed text of {@link SIGN_MESSAGE_MIN_BYTES} to
|
|
24
|
+
* {@link SIGN_MESSAGE_MAX_BYTES} UTF-8 bytes (not characters) without control characters (tabs and newlines are fine).
|
|
25
|
+
* The bounds are Privy's provider's, the strictest this SDK knows; a wallet may accept more.
|
|
26
|
+
*/
|
|
27
|
+
export declare function validateSignMessage(message: string, options?: ValidateSignMessageOptions): SignMessageProblem | null;
|
|
28
|
+
/**
|
|
29
|
+
* The signature in a CIP-0103 `signMessage` answer, for a page that shows it: the `signature` field of `{ signature }`
|
|
30
|
+
* (the spec's shape) or a bare string (what some wallets answer). Undefined for any other answer and for an empty
|
|
31
|
+
* signature, so a page treats both as "the wallet answered without a signature".
|
|
32
|
+
*
|
|
33
|
+
* The ownership proof (`requestWalletOwnershipVerdict`) is stricter: it accepts the spec's `{ signature }` shape only.
|
|
34
|
+
*/
|
|
35
|
+
export declare function readSignature(answer: unknown): string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The `signature` field of a CIP-0103 `signMessage` answer in the spec's `{ signature }` shape; undefined for any other
|
|
38
|
+
* answer (a bare string included) or an empty signature. The ownership proof reads answers with this.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
export declare function readSpecSignature(answer: unknown): string | undefined;
|
|
43
|
+
//# sourceMappingURL=sign-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-message.d.ts","sourceRoot":"","sources":["../../../src/wallets/sign-message.ts"],"names":[],"mappings":"AAMA,kHAAkH;AAClH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAO3C;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,oBAAoB,GAAG,WAAW,CAAC;IAC7E,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,sFAAsF;AACtF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAA+B,GACvC,kBAAkB,GAAG,IAAI,CAO3B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAErE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SIGN_MESSAGE_MAX_BYTES = exports.SIGN_MESSAGE_MIN_BYTES = void 0;
|
|
4
|
+
exports.validateSignMessage = validateSignMessage;
|
|
5
|
+
exports.readSignature = readSignature;
|
|
6
|
+
exports.readSpecSignature = readSpecSignature;
|
|
7
|
+
/**
|
|
8
|
+
* CIP-0103 `signMessage` helpers: what text a wallet will sign, and reading its answer. The wallet signs the message's
|
|
9
|
+
* UTF-8 bytes with the party's key, so a page checks the text before it asks.
|
|
10
|
+
*/
|
|
11
|
+
const json_1 = require("./json");
|
|
12
|
+
/** The fewest UTF-8 bytes a message may have: the bound Privy's CIP-0103 provider (canton-privy-sdk) enforces. */
|
|
13
|
+
exports.SIGN_MESSAGE_MIN_BYTES = 64;
|
|
14
|
+
/** The most UTF-8 bytes a message may have: the bound Privy's CIP-0103 provider (canton-privy-sdk) enforces. */
|
|
15
|
+
exports.SIGN_MESSAGE_MAX_BYTES = 8192;
|
|
16
|
+
/** C0 controls other than tab and newline (carriage return included), DEL and C1 controls. */
|
|
17
|
+
const CONTROL_CHARACTERS = /[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/u;
|
|
18
|
+
/** A UTF-16 surrogate not part of a pair (a `u` regex matches a pair as one code point). */
|
|
19
|
+
const LONE_SURROGATE = /\p{Cs}/u;
|
|
20
|
+
/**
|
|
21
|
+
* Null when wallets will sign `message`, else why not: well-formed text of {@link SIGN_MESSAGE_MIN_BYTES} to
|
|
22
|
+
* {@link SIGN_MESSAGE_MAX_BYTES} UTF-8 bytes (not characters) without control characters (tabs and newlines are fine).
|
|
23
|
+
* The bounds are Privy's provider's, the strictest this SDK knows; a wallet may accept more.
|
|
24
|
+
*/
|
|
25
|
+
function validateSignMessage(message, options = {}) {
|
|
26
|
+
const bytes = new TextEncoder().encode(message).length;
|
|
27
|
+
if (LONE_SURROGATE.test(message))
|
|
28
|
+
return { code: 'malformed', bytes };
|
|
29
|
+
if (bytes < (options.minBytes ?? exports.SIGN_MESSAGE_MIN_BYTES))
|
|
30
|
+
return { code: 'too-short', bytes };
|
|
31
|
+
if (bytes > (options.maxBytes ?? exports.SIGN_MESSAGE_MAX_BYTES))
|
|
32
|
+
return { code: 'too-long', bytes };
|
|
33
|
+
if (CONTROL_CHARACTERS.test(message))
|
|
34
|
+
return { code: 'control-characters', bytes };
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The signature in a CIP-0103 `signMessage` answer, for a page that shows it: the `signature` field of `{ signature }`
|
|
39
|
+
* (the spec's shape) or a bare string (what some wallets answer). Undefined for any other answer and for an empty
|
|
40
|
+
* signature, so a page treats both as "the wallet answered without a signature".
|
|
41
|
+
*
|
|
42
|
+
* The ownership proof (`requestWalletOwnershipVerdict`) is stricter: it accepts the spec's `{ signature }` shape only.
|
|
43
|
+
*/
|
|
44
|
+
function readSignature(answer) {
|
|
45
|
+
return typeof answer === 'string' ? (0, json_1.nonEmptyString)(answer) : readSpecSignature(answer);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The `signature` field of a CIP-0103 `signMessage` answer in the spec's `{ signature }` shape; undefined for any other
|
|
49
|
+
* answer (a bare string included) or an empty signature. The ownership proof reads answers with this.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
function readSpecSignature(answer) {
|
|
54
|
+
return (0, json_1.isRecord)(answer) ? (0, json_1.nonEmptyString)(answer['signature']) : undefined;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sign-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-message.js","sourceRoot":"","sources":["../../../src/wallets/sign-message.ts"],"names":[],"mappings":";;;;;;AAAA;;;GAGG;AACH,iCAAkD;AAElD,kHAAkH;AACrG,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAC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 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser storage, read defensively: the accessor itself may throw (a sandboxed frame, blocked site data), and a
|
|
3
|
+
* missing or refusing storage behaves as empty.
|
|
4
|
+
*/
|
|
5
|
+
/** The part of the DOM `Storage` the wallets module uses (`localStorage` and `sessionStorage` satisfy it). */
|
|
6
|
+
export interface StorageLike {
|
|
7
|
+
getItem(key: string): string | null;
|
|
8
|
+
setItem(key: string, value: string): void;
|
|
9
|
+
removeItem(key: string): void;
|
|
10
|
+
}
|
|
11
|
+
/** The page's `localStorage` or `sessionStorage`, or null where there is none or reading it throws. */
|
|
12
|
+
export declare function globalStorage(kind: 'local' | 'session'): StorageLike | null;
|
|
13
|
+
/** `storage.getItem(key)`, or null when there is no storage or it throws. */
|
|
14
|
+
export declare function readStorage(storage: StorageLike | null, key: string): string | null;
|
|
15
|
+
/** Sets (`value` a string) or removes (`null`) `key`; a missing or refusing storage is ignored. */
|
|
16
|
+
export declare function writeStorage(storage: StorageLike | null, key: string, value: string | null): void;
|
|
17
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/wallets/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8GAA8G;AAC9G,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAYD,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAQ3E;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQnF;AAED,mGAAmG;AACnG,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAQjG"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Browser storage, read defensively: the accessor itself may throw (a sandboxed frame, blocked site data), and a
|
|
4
|
+
* missing or refusing storage behaves as empty.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.globalStorage = globalStorage;
|
|
8
|
+
exports.readStorage = readStorage;
|
|
9
|
+
exports.writeStorage = writeStorage;
|
|
10
|
+
function isStorageLike(value) {
|
|
11
|
+
if (typeof value !== 'object' || value === null)
|
|
12
|
+
return false;
|
|
13
|
+
const candidate = value;
|
|
14
|
+
return (typeof candidate.getItem === 'function' &&
|
|
15
|
+
typeof candidate.setItem === 'function' &&
|
|
16
|
+
typeof candidate.removeItem === 'function');
|
|
17
|
+
}
|
|
18
|
+
/** The page's `localStorage` or `sessionStorage`, or null where there is none or reading it throws. */
|
|
19
|
+
function globalStorage(kind) {
|
|
20
|
+
try {
|
|
21
|
+
// Optional globals: absent outside a browser, and the getter throws where site data is blocked.
|
|
22
|
+
const storage = kind === 'local' ? globalThis.localStorage : globalThis.sessionStorage;
|
|
23
|
+
return isStorageLike(storage) ? storage : null;
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/** `storage.getItem(key)`, or null when there is no storage or it throws. */
|
|
30
|
+
function readStorage(storage, key) {
|
|
31
|
+
if (storage === null)
|
|
32
|
+
return null;
|
|
33
|
+
try {
|
|
34
|
+
const value = storage.getItem(key);
|
|
35
|
+
return typeof value === 'string' ? value : null;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/** Sets (`value` a string) or removes (`null`) `key`; a missing or refusing storage is ignored. */
|
|
42
|
+
function writeStorage(storage, key, value) {
|
|
43
|
+
if (storage === null)
|
|
44
|
+
return;
|
|
45
|
+
try {
|
|
46
|
+
if (value === null)
|
|
47
|
+
storage.removeItem(key);
|
|
48
|
+
else
|
|
49
|
+
storage.setItem(key, value);
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
// Storage refused (a private window, a full quota): the next visit starts without it.
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/wallets/storage.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AASH,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,SAAS,GAAG,KAAoD,CAAC;IACvE,OAAO,CACL,OAAO,SAAS,CAAC,OAAO,KAAK,UAAU;QACvC,OAAO,SAAS,CAAC,OAAO,KAAK,UAAU;QACvC,OAAO,SAAS,CAAC,UAAU,KAAK,UAAU,CAC3C,CAAC;AACJ,CAAC;AAED,uGAAuG;AACvG,uBAA8B,IAAyB;IACrD,IAAI,CAAC;QACH,gGAAgG;QAChG,MAAM,OAAO,GAAY,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC;QAChG,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,6EAA6E;AAC7E,qBAA4B,OAA2B,EAAE,GAAW;IAClE,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,mGAAmG;AACnG,sBAA6B,OAA2B,EAAE,GAAW,EAAE,KAAoB;IACzF,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO;IAC7B,IAAI,CAAC;QACH,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;;YACvC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,sFAAsF;IACxF,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CantonCoinOptions } from './amulet/registry';
|
|
2
2
|
import type { FetchLike, DaRegistryOptions } from './da-utilities/client';
|
|
3
3
|
import { type WalletErrorDescription } from './errors';
|
|
4
|
+
import { type WriteLatch, type WriteRunContext, type WriteRunOutcome } from './latch';
|
|
4
5
|
import { type WalletOwnershipVerdict } from './ownership';
|
|
5
6
|
import type { Cip103Session, Cip103SessionState, ConnectedWallet } from './session';
|
|
6
7
|
import type { InstrumentId, SubmitResult } from './types';
|
|
@@ -83,10 +84,30 @@ export type ActionResultOf<A extends WalletAction> = WalletActionResults[A['type
|
|
|
83
84
|
*/
|
|
84
85
|
export declare function walletActionKey(action: WalletAction): string;
|
|
85
86
|
/**
|
|
86
|
-
* Whether `store.act(action)` would run it now: the store is `ready`, not busy, and, for a write,
|
|
87
|
-
* unknown. Use it to enable the action's button.
|
|
87
|
+
* Whether `store.act(action)` would run it now: the store is `ready`, not busy, and, for a write, the store is not
|
|
88
|
+
* read-only and no outcome is unknown. Use it to enable the action's button.
|
|
88
89
|
*/
|
|
89
90
|
export declare function canAct(view: WalletView, action: WalletAction): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Why {@link actionState} disables an action:
|
|
93
|
+
*
|
|
94
|
+
* - `disconnected`: no wallet is connected (or there is no view yet);
|
|
95
|
+
* - `reconnecting`: the session is connecting (a reconnect or a switch of wallet);
|
|
96
|
+
* - `not-ready`: connected, but the token wallet is not open (`view.loadError` may say why);
|
|
97
|
+
* - `read-only`: the app's write gate is closed (`view.readOnly` holds its value); writes only;
|
|
98
|
+
* - `busy`: a wallet call is in flight, a load is queued, or another writer holds the shared latch;
|
|
99
|
+
* - `unknown-outcome`: a write's outcome is unknown, so writes wait until `acknowledgeUnknownOutcome()`.
|
|
100
|
+
*/
|
|
101
|
+
export type WalletActionBlocker = 'disconnected' | 'reconnecting' | 'not-ready' | 'read-only' | 'busy' | 'unknown-outcome';
|
|
102
|
+
/**
|
|
103
|
+
* Whether `store.act(action)` would run it now (as {@link canAct}), and when not, the first reason, in the order listed
|
|
104
|
+
* by {@link WalletActionBlocker}. `view` may be null (no store yet), which reads as `disconnected`. Use `reason` to say
|
|
105
|
+
* why a button is disabled; the page words it.
|
|
106
|
+
*/
|
|
107
|
+
export declare function actionState(view: WalletView | null, action: WalletAction): {
|
|
108
|
+
readonly enabled: boolean;
|
|
109
|
+
readonly reason: WalletActionBlocker | null;
|
|
110
|
+
};
|
|
90
111
|
/** How the last action that had something to say ended, for the party it ran as. */
|
|
91
112
|
export type ActionOutcome = {
|
|
92
113
|
readonly action: WalletAction;
|
|
@@ -124,6 +145,8 @@ export interface WalletNotice {
|
|
|
124
145
|
/** Offer a button that calls `store.acknowledgeUnknownOutcome()` once the user checked the wallet. */
|
|
125
146
|
readonly acknowledge?: true;
|
|
126
147
|
}
|
|
148
|
+
/** Why {@link WalletView.busy} is true. */
|
|
149
|
+
export type WalletBusyReason = 'action' | 'load' | 'run';
|
|
127
150
|
export interface WalletView {
|
|
128
151
|
readonly session: Cip103SessionState;
|
|
129
152
|
/** The connected wallet the state belongs to (null when disconnected). */
|
|
@@ -148,10 +171,26 @@ export interface WalletView {
|
|
|
148
171
|
readonly key: string;
|
|
149
172
|
} | null;
|
|
150
173
|
/**
|
|
151
|
-
* True while any wallet call is in flight
|
|
152
|
-
* meanwhile, so only one wallet call is ever in flight.
|
|
174
|
+
* True while any wallet call is in flight, a load is queued, or another writer holds the shared latch (a `run()`):
|
|
175
|
+
* disable every action button. `act()` refuses meanwhile, so only one wallet call is ever in flight.
|
|
153
176
|
*/
|
|
154
177
|
readonly busy: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Why `busy` is true (null when it is not): `action` (a store action holds the latch), `run` (another writer's
|
|
180
|
+
* `run()` holds it; `busyLabel` names it) or `load` (a snapshot load is in flight or queued), in that precedence.
|
|
181
|
+
*/
|
|
182
|
+
readonly busyReason: WalletBusyReason | null;
|
|
183
|
+
/** The latch holder's label while `busyReason` is `action` or `run`, else null. */
|
|
184
|
+
readonly busyLabel: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* What a page renders: `state` when it is non-null; otherwise, while a load runs or the session is connecting, the
|
|
187
|
+
* last state of the same `retainKey` (see {@link WalletStoreOptions.retainKey}); otherwise null.
|
|
188
|
+
*/
|
|
189
|
+
readonly shown: WalletState | null;
|
|
190
|
+
/** `shown` is a held snapshot, not `state`. */
|
|
191
|
+
readonly stale: boolean;
|
|
192
|
+
/** The app's write gate in force (`WalletStoreOptions.readOnly`, `setReadOnly`), or null when writes are open. */
|
|
193
|
+
readonly readOnly: string | null;
|
|
155
194
|
/**
|
|
156
195
|
* The last action that had something to say: a write's result or failure, an ownership verdict, a plan that failed. A
|
|
157
196
|
* plan that succeeded leaves it as it was (its result is the plan). Cleared when the wallet changes.
|
|
@@ -192,6 +231,16 @@ export interface WalletStore {
|
|
|
192
231
|
refresh(): void;
|
|
193
232
|
/** Clear `unknownOutcome` once the user checked the wallet. */
|
|
194
233
|
acknowledgeUnknownOutcome(): void;
|
|
234
|
+
/**
|
|
235
|
+
* Runs `fn` under the store's latch (`latch.run(label, fn)`), for a write that is not a store action (a Canton Coin
|
|
236
|
+
* prepare, sign and submit). Its signal is also aborted when the connected wallet changes (the store bumps the latch
|
|
237
|
+
* on every wallet change) and on `dispose()`. A run does not set `outcome` or `unknownOutcome`: the caller reports
|
|
238
|
+
* its {@link WriteRunOutcome}. A write here does not trigger a reload; call `refresh()`. Refused (`busy`) while a
|
|
239
|
+
* store action or another run holds the latch, and (`disposed`) after `dispose()`.
|
|
240
|
+
*/
|
|
241
|
+
run<T>(label: string, fn: (context: WriteRunContext) => Promise<T>): Promise<WriteRunOutcome<T>>;
|
|
242
|
+
/** Changes the write gate (null opens it) and publishes a new view. */
|
|
243
|
+
setReadOnly(reason: string | null): void;
|
|
195
244
|
/**
|
|
196
245
|
* Stop following the session; pending replies are dropped and no further view is published. Work in flight (an
|
|
197
246
|
* action, a load) is cancelled through its `signal`, so nothing more is sent before a signature is requested.
|
|
@@ -204,6 +253,27 @@ export interface WalletStoreOptions {
|
|
|
204
253
|
readonly registry?: DaRegistryOptions;
|
|
205
254
|
/** Canton Coin for each token wallet (`createWallet`'s `cantonCoin`): on by default, `false` to read none. */
|
|
206
255
|
readonly cantonCoin?: CantonCoinOptions | false;
|
|
256
|
+
/** The latch the store shares with `run()` and the app's other writers. Default: a private one. */
|
|
257
|
+
readonly latch?: WriteLatch;
|
|
258
|
+
/**
|
|
259
|
+
* The app's write gate, such as a server-supplied reason writes are off. While it is set, every write action is
|
|
260
|
+
* refused; reads (`planTransfer`, `proveOwnership`) still run. The store does not interpret the value. Change it
|
|
261
|
+
* later with `setReadOnly`.
|
|
262
|
+
*/
|
|
263
|
+
readonly readOnly?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* The connection a ledger snapshot belongs to, for `shown`/`stale`. Two wallets with the same key (for example a
|
|
266
|
+
* rebuilt provider for the same party) keep the last snapshot on screen across the reconnect. Read once per connected
|
|
267
|
+
* wallet. Default: `wallet.key`, which keeps it only across reloads of one connection.
|
|
268
|
+
*/
|
|
269
|
+
readonly retainKey?: (wallet: ConnectedWallet) => string;
|
|
270
|
+
/**
|
|
271
|
+
* While the session is `connecting`, the retain key of the connection being made, or null when it is not known. The
|
|
272
|
+
* held snapshot stays shown (`stale`) during a connect only when this names its key, so a connect to another wallet
|
|
273
|
+
* or party never shows the previous one's holdings. Read on every view while connecting. Default: none, so nothing is
|
|
274
|
+
* held while the session connects.
|
|
275
|
+
*/
|
|
276
|
+
readonly connectingRetainKey?: () => string | null;
|
|
207
277
|
}
|
|
208
278
|
/** A test hook beside {@link WalletStoreOptions}; not part of the public options. */
|
|
209
279
|
export interface WalletStoreInternalOptions extends WalletStoreOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/wallets/store.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAoC,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEzF,OAAO,EAAiC,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAC;AA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