@qntx/wallet-chains 0.12.0 → 0.14.0

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 (62) hide show
  1. package/README.md +13 -10
  2. package/dist/{account-ref-D2rW_qlI.mjs → account-ref-BFTeEyHt.mjs} +2 -2
  3. package/dist/{account-ref-D2rW_qlI.mjs.map → account-ref-BFTeEyHt.mjs.map} +1 -1
  4. package/dist/assemble-8GvNDony.mjs +405 -0
  5. package/dist/assemble-8GvNDony.mjs.map +1 -0
  6. package/dist/assemble-B3sO9Fvc.mjs +629 -0
  7. package/dist/assemble-B3sO9Fvc.mjs.map +1 -0
  8. package/dist/assemble-BdiPo0ZX.mjs +32 -0
  9. package/dist/assemble-BdiPo0ZX.mjs.map +1 -0
  10. package/dist/assets-sg2_Z3nZ.mjs +200 -0
  11. package/dist/assets-sg2_Z3nZ.mjs.map +1 -0
  12. package/dist/bitcoin-sign.d.mts +3 -0
  13. package/dist/bitcoin-sign.mjs +52 -18
  14. package/dist/bitcoin-sign.mjs.map +1 -1
  15. package/dist/bitcoin.d.mts +123 -7
  16. package/dist/bitcoin.mjs +162 -69
  17. package/dist/bitcoin.mjs.map +1 -1
  18. package/dist/evm-sign.d.mts +3 -1
  19. package/dist/evm-sign.mjs +25 -82
  20. package/dist/evm-sign.mjs.map +1 -1
  21. package/dist/evm.d.mts +252 -22
  22. package/dist/evm.mjs +2460 -448
  23. package/dist/evm.mjs.map +1 -1
  24. package/dist/families-BlgplKAJ.mjs +412 -0
  25. package/dist/families-BlgplKAJ.mjs.map +1 -0
  26. package/dist/index-CIRaHKpx.d.mts +941 -0
  27. package/dist/index.d.mts +2 -2
  28. package/dist/index.mjs +1 -1
  29. package/dist/networks.d.mts +29 -0
  30. package/dist/networks.mjs +245 -0
  31. package/dist/networks.mjs.map +1 -0
  32. package/dist/plan-wCnxHqRu.mjs +1311 -0
  33. package/dist/plan-wCnxHqRu.mjs.map +1 -0
  34. package/dist/solana-sign.d.mts +3 -0
  35. package/dist/solana-sign.mjs +23 -10
  36. package/dist/solana-sign.mjs.map +1 -1
  37. package/dist/solana.d.mts +136 -24
  38. package/dist/solana.mjs +1244 -63
  39. package/dist/solana.mjs.map +1 -1
  40. package/dist/src-CHB_z45M.mjs +387 -0
  41. package/dist/src-CHB_z45M.mjs.map +1 -0
  42. package/dist/tasks-7AFv3PQn.mjs +86 -0
  43. package/dist/tasks-7AFv3PQn.mjs.map +1 -0
  44. package/dist/token-call-DH22g8BL.mjs +914 -0
  45. package/dist/token-call-DH22g8BL.mjs.map +1 -0
  46. package/dist/tron-sign.d.mts +10 -0
  47. package/dist/tron-sign.mjs +36 -0
  48. package/dist/tron-sign.mjs.map +1 -0
  49. package/dist/tron.d.mts +328 -0
  50. package/dist/tron.mjs +1484 -0
  51. package/dist/tron.mjs.map +1 -0
  52. package/dist/typed-data-CE9h4U0F.d.mts +51 -0
  53. package/dist/typed-data-DRtKULsH.mjs +466 -0
  54. package/dist/typed-data-DRtKULsH.mjs.map +1 -0
  55. package/package.json +17 -10
  56. package/dist/index-DYwm4-Ec.d.mts +0 -256
  57. package/dist/message-ChhEZ0lx.mjs +0 -188
  58. package/dist/message-ChhEZ0lx.mjs.map +0 -1
  59. package/dist/src-8NZeEnrW.mjs +0 -67
  60. package/dist/src-8NZeEnrW.mjs.map +0 -1
  61. package/dist/typed-data-J5g2WemC.mjs +0 -227
  62. package/dist/typed-data-J5g2WemC.mjs.map +0 -1
@@ -0,0 +1,387 @@
1
+ import { evm } from "@qntx/siwx/evm";
2
+ import { siws, validateAddress } from "@qntx/siwx/svm";
3
+ // src/unicode-tables.ts
4
+ /**
5
+ * GENERATED FILE — do not edit. Produced by packages/wallet-chains/scripts/unicode-tables.ts from
6
+ * the Unicode 18.0.0 Character Database:
7
+ * https://www.unicode.org/Public/18.0.0/ucd/DerivedCoreProperties.txt
8
+ * https://www.unicode.org/Public/18.0.0/ucd/PropList.txt
9
+ * https://www.unicode.org/Public/18.0.0/ucd/StandardizedVariants.txt
10
+ * https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt
11
+ * https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-variation-sequences.txt
12
+ * https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedCombiningClass.txt
13
+ * https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedJoiningType.txt
14
+ * https://www.unicode.org/Public/18.0.0/emoji/emoji-sequences.txt
15
+ *
16
+ * Each table is a base-36-packed delta of an ascending list of inclusive code-point ranges [lo0,
17
+ * hi0, lo1, hi1, …]. VARIATION_BASES maps a Mongolian free variation selector or VS1–VS16 to the
18
+ * ranges of bases that selector is defined for. RGI_TAG_SEQUENCES holds the RGI flag tag bodies
19
+ * (the ASCII string encoded between U+1F3F4 and U+E007F).
20
+ */
21
+ const ranges = (packed) => {
22
+ const out = [];
23
+ let value = 0;
24
+ for (const token of packed.split(",")) {
25
+ value += Number.parseInt(token, 36);
26
+ out.push(value);
27
+ }
28
+ return out;
29
+ };
30
+ const DEFAULT_IGNORABLE = ranges("4t,0,iq,0,jx,0,283,1,190,1,2e,4,1ks,4,r,4,1e,f,3cl,0,14f0,f,6o,0,4h,0,28,8,119k,3,440,7,h406,35r");
31
+ const VARIATION_SELECTOR = ranges("4qz,2,2,0,19f5,f,i9yp,6n");
32
+ const UNIFIED_IDEOGRAPH = ranges("a9s,533,1t,g73,hsf,1,2,0,2,1,b,0,2,0,2,1,3,2,1fpz,wyn,x,3dq,2,4gd,3,5rk,g,h9,3hf,3t6,6,6jt");
33
+ const EXTENDED_PICTOGRAPHIC = ranges("4p,0,5,0,68e,0,d,0,61,0,n,0,2j,5,g,1,a8,1,d,0,4n,0,q,a,5,2,5k,0,6g,1,b,0,a,0,1n,3,2,4,a,0,3,0,3,1,3,0,5,0,3,0,2,1,3,0,4,0,4,1,9,2,6,0,2,0,6,b,c,1,3,0,2,1,2,0,j,0,3,1,j,5,2,0,2,1,4,1,6,0,3,1,5,1,c,1,6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SEQUENCES = [
55
+ "gbeng",
56
+ "gbsct",
57
+ "gbwls"
58
+ ];
59
+ // src/display.ts
60
+ /**
61
+ * Untrusted text (a signed message, an EIP-712 domain name, a token symbol) made safe to show, and
62
+ * the checks behind the message-text rules. Code points come in three classes, taken from the
63
+ * generated Unicode 18.0.0 tables in unicode-tables.ts so the kernel and the host classify every
64
+ * code point identically regardless of the engine's ICU version. Deceptive ones — controls other
65
+ * than TAB/LF/CR, the line and paragraph separators, the bidi embedding/override marks U+202A–202E,
66
+ * interlinear annotation anchors U+FFF9–FFFB, default-ignorable code points outside the format set,
67
+ * tag characters outside an exact RGI emoji tag sequence (U+1F3F4, the tag-encoded body, U+E007F)
68
+ * and variation selectors not immediately after a base the selector is defined for — mean what the
69
+ * owner reads is not what was signed (`hasHiddenCharacters`); they render as U+FFFD. Format
70
+ * characters — joiners, direction marks, the soft hyphen, the combining grapheme joiner, variation
71
+ * selectors in a valid position and RGI tag sequences — are ordinary text; direction marks, the
72
+ * soft hyphen, CGJ and joiners outside a joining context display as U+FFFD so they stay visible,
73
+ * the rest pass through. Everything else is text.
74
+ *
75
+ * Joining context: a ZWJ is kept after a virama (ccc=9, RFC 5892 appendix A.2) or inside an emoji
76
+ * ZWJ sequence (UTS #51 ED-16: the preceding code point is Extended_Pictographic or an emoji
77
+ * modifier — an emoji-variation FE0F after a pictographic base counts as its base — and the next is
78
+ * Extended_Pictographic). A ZWNJ is kept after a virama or between left- and right-joining
79
+ * characters, skipping transparent ones (RFC 5892 appendix A.1).
80
+ */
81
+ const CONTROL = /\p{Cc}/u;
82
+ const MARK_VISIBLE = /* @__PURE__ */ new Set([
83
+ 8206,
84
+ 8207,
85
+ 1564,
86
+ 173,
87
+ 847
88
+ ]);
89
+ const TAB = 9;
90
+ const LINE_FEED = 10;
91
+ const CARRIAGE_RETURN = 13;
92
+ const ZWNJ = 8204;
93
+ const ZWJ = 8205;
94
+ const EMOJI_VS = 65039;
95
+ const IVS_FIRST = 917760;
96
+ const TAG_BASE = 127988;
97
+ const TAG_FIRST = 917536;
98
+ const TAG_BODY_LAST = 917630;
99
+ const TAG_LAST = 917631;
100
+ const TAG_CANCEL = 917631;
101
+ const codePoint = (char) => char?.codePointAt(0) ?? 0;
102
+ const codePointsOf = (text) => {
103
+ const chars = [];
104
+ for (const char of text) chars.push(char);
105
+ return chars;
106
+ };
107
+ /** Whether `cp` lies in a flat sorted inclusive-range table `[lo0, hi0, lo1, hi1, …]`. */
108
+ const inRanges = (ranges, cp) => {
109
+ let lo = 0;
110
+ let hi = ranges.length / 2;
111
+ while (lo < hi) {
112
+ const mid = Math.floor((lo + hi) / 2);
113
+ const start = ranges[mid * 2];
114
+ const end = ranges[mid * 2 + 1];
115
+ if (start === void 0 || end === void 0) return false;
116
+ if (cp < start) hi = mid;
117
+ else if (cp > end) lo = mid + 1;
118
+ else return true;
119
+ }
120
+ return false;
121
+ };
122
+ const isTagChar = (cp) => cp >= TAG_FIRST && cp <= TAG_LAST;
123
+ const isFormat = (cp) => cp === ZWNJ || cp === ZWJ || MARK_VISIBLE.has(cp) || inRanges(VARIATION_SELECTOR, cp) || isTagChar(cp);
124
+ /** The explicit deceptive set: separators, bidi embedding/override marks, annotation anchors. */
125
+ const isExplicitDeceptive = (cp) => cp >= 8232 && cp <= 8233 || cp >= 8234 && cp <= 8238 || cp >= 65529 && cp <= 65531;
126
+ /**
127
+ * Whether the tag character at `i` is part of an exact RGI emoji tag sequence: U+1F3F4, then the
128
+ * tag-encoded body of one of RGI_TAG_SEQUENCES, terminated by U+E007F (UTS #51).
129
+ */
130
+ const inRgiTagSequence = (chars, i) => {
131
+ let start = i;
132
+ while (start > 0) {
133
+ const cp = codePoint(chars[start - 1]);
134
+ if (cp < TAG_FIRST || cp > TAG_BODY_LAST) break;
135
+ start--;
136
+ }
137
+ if (start === 0 || codePoint(chars[start - 1]) !== TAG_BASE) return false;
138
+ let end = start;
139
+ let body = "";
140
+ while (end < chars.length) {
141
+ const cp = codePoint(chars[end]);
142
+ if (cp < TAG_FIRST || cp > TAG_BODY_LAST) break;
143
+ body += String.fromCodePoint(cp - 917504);
144
+ end++;
145
+ }
146
+ return codePoint(chars[end]) === TAG_CANCEL && RGI_TAG_SEQUENCES.includes(body) && i <= end;
147
+ };
148
+ /** A variation selector is deceptive unless it immediately follows a base defined for it. */
149
+ const misplacedSelector = (chars, i) => {
150
+ const selector = codePoint(chars[i]);
151
+ const prev = codePoint(chars[i - 1]);
152
+ if (selector >= IVS_FIRST) return !inRanges(UNIFIED_IDEOGRAPH, prev);
153
+ const bases = VARIATION_BASES[selector];
154
+ return bases === void 0 || !inRanges(bases, prev);
155
+ };
156
+ /** Whether the code point at `i` hides, reorders or fakes signed content. */
157
+ const isDeceptive = (chars, i) => {
158
+ const cp = codePoint(chars[i]);
159
+ if (isTagChar(cp)) return !inRgiTagSequence(chars, i);
160
+ if (inRanges(VARIATION_SELECTOR, cp)) return misplacedSelector(chars, i);
161
+ if (cp !== TAB && cp !== LINE_FEED && cp !== CARRIAGE_RETURN && (CONTROL.test(chars[i] ?? "") || isExplicitDeceptive(cp))) return true;
162
+ return inRanges(DEFAULT_IGNORABLE, cp) && !isFormat(cp);
163
+ };
164
+ /** Whether the joiner at `i` actually joins — kept verbatim in the display. */
165
+ const joinsHere = (chars, i) => {
166
+ const prev = codePoint(chars[i - 1]);
167
+ if (inRanges(VIRAMA, prev)) return true;
168
+ if (codePoint(chars[i]) === ZWJ) return (inRanges(EXTENDED_PICTOGRAPHIC, prev) || inRanges(EMOJI_MODIFIER, prev) || prev === EMOJI_VS && inRanges(EXTENDED_PICTOGRAPHIC, codePoint(chars[i - 2]))) && inRanges(EXTENDED_PICTOGRAPHIC, codePoint(chars[i + 1]));
169
+ let before = i - 1;
170
+ while (before >= 0 && inRanges(JOIN_TRANSPARENT, codePoint(chars[before]))) before--;
171
+ let after = i + 1;
172
+ while (after < chars.length && inRanges(JOIN_TRANSPARENT, codePoint(chars[after]))) after++;
173
+ return inRanges(JOIN_LEFT, codePoint(chars[before])) && inRanges(JOIN_RIGHT, codePoint(chars[after]));
174
+ };
175
+ /**
176
+ * Whether `text` holds a deceptive code point — one that hides, reorders or fakes content. TAB, LF
177
+ * and CR are the only control characters ordinary text may carry.
178
+ */
179
+ const hasHiddenCharacters = (text) => {
180
+ const chars = codePointsOf(text);
181
+ for (const [i] of chars.entries()) if (isDeceptive(chars, i)) return true;
182
+ return false;
183
+ };
184
+ /**
185
+ * Whether `text` is the rendering of raw bytes, not a description of what the signature authorises:
186
+ * hex with or without a `0x` prefix of either case, optionally separated by whitespace, colons,
187
+ * dashes or commas, past 40 digits — 40 digits is an address written as text, which stays readable
188
+ * — or a single base64/base64url/base58 token of 43 or more characters (≥ 32 bytes) mixing at least
189
+ * two of its character classes.
190
+ */
191
+ const isEncodedBytes = (text) => {
192
+ const trimmed = text.trim();
193
+ const squashed = trimmed.replace(/^0x/i, "").replaceAll(/[\s:,-]+/g, "");
194
+ if (squashed.length > 40 && /^[0-9a-fA-F]+$/.test(squashed)) return true;
195
+ const token = trimmed.replace(/^0x/i, "");
196
+ const classes = [
197
+ /[A-Z]/,
198
+ /[a-z]/,
199
+ /[0-9]/
200
+ ].filter((cls) => cls.test(token)).length;
201
+ return !/\s/.test(token) && token.length >= 43 && /^[A-Za-z0-9+/_-]+={0,2}$/.test(token) && classes >= 2;
202
+ };
203
+ const REPLACEMENT = "�";
204
+ const LINE_BREAK = /\r\n|[\n\r\u2028\u2029]/;
205
+ /**
206
+ * The code points of one line: tabs as spaces, trimmed; deceptive characters, joiners outside a
207
+ * joining context and the always-visible marks (LRM, RLM, ALM, SHY, CGJ) as U+FFFD; tag characters
208
+ * only inside an exact RGI emoji tag sequence.
209
+ */
210
+ const safeLine = (line) => {
211
+ const chars = codePointsOf(line.replaceAll(" ", " ").trim());
212
+ return chars.map((char, i) => {
213
+ const cp = codePoint(char);
214
+ if (isTagChar(cp)) return inRgiTagSequence(chars, i) ? char : REPLACEMENT;
215
+ if (cp === ZWNJ || cp === ZWJ) return joinsHere(chars, i) ? char : REPLACEMENT;
216
+ if (MARK_VISIBLE.has(cp) || isDeceptive(chars, i)) return REPLACEMENT;
217
+ return char;
218
+ });
219
+ };
220
+ /**
221
+ * The leading part of `raw` that fits `maxLines` lines and `maxCodePoints` code points. Empty lines
222
+ * are dropped, so padding cannot push content out of view; the last line may be cut.
223
+ */
224
+ function displayExcerpt(raw, maxLines, maxCodePoints) {
225
+ const lines = [];
226
+ let used = 0;
227
+ let omitted = 0;
228
+ for (const line of raw.split(LINE_BREAK)) {
229
+ const chars = safeLine(line);
230
+ const room = lines.length < maxLines ? maxCodePoints - used : 0;
231
+ const shown = chars.slice(0, room);
232
+ if (shown.length > 0) {
233
+ lines.push(shown.join(""));
234
+ used += shown.length;
235
+ }
236
+ omitted += chars.length - shown.length;
237
+ }
238
+ return {
239
+ lines,
240
+ omitted
241
+ };
242
+ }
243
+ // src/sign-in.ts
244
+ const PREAMBLE = " wants you to sign in with your ";
245
+ const CLAIM = /^(?:(?<scheme>[A-Za-z][A-Za-z0-9+.-]*):\/\/)?(?<domain>.*?) wants you to sign in with your (?:Ethereum|Solana) account:$/;
246
+ const claims = (text) => text.split("\n").flatMap((line) => {
247
+ const groups = CLAIM.exec(line.endsWith("\r") ? line.slice(0, -1) : line)?.groups;
248
+ if (groups === void 0) return [];
249
+ const claim = { domain: groups["domain"] ?? "" };
250
+ if (groups["scheme"] !== void 0) claim.scheme = groups["scheme"];
251
+ return [claim];
252
+ });
253
+ const OPTIONAL_KEYS = [
254
+ "scheme",
255
+ "statement",
256
+ "expirationTime",
257
+ "notBefore",
258
+ "requestId"
259
+ ];
260
+ const plainFields = (message) => {
261
+ const { domain, address, uri, version, chainId, nonce, issuedAt, resources } = message;
262
+ const fields = {
263
+ domain,
264
+ address,
265
+ uri,
266
+ version,
267
+ chainId,
268
+ nonce,
269
+ issuedAt
270
+ };
271
+ for (const key of OPTIONAL_KEYS) {
272
+ const value = message[key];
273
+ if (value !== void 0) fields[key] = value;
274
+ }
275
+ if (resources !== void 0) fields.resources = [...resources];
276
+ return fields;
277
+ };
278
+ const parseValid = (text, family) => {
279
+ if (family === "evm") {
280
+ const ns = evm();
281
+ const message = ns.parse(new TextEncoder().encode(text));
282
+ ns.account(message);
283
+ return plainFields(message);
284
+ }
285
+ const message = siws.parse(text);
286
+ validateAddress(message.address);
287
+ return plainFields(message);
288
+ };
289
+ /**
290
+ * Finds a Sign-In with X message in `text` for the chain `family`. `undefined` when the text has no
291
+ * sign-in preamble; `malformed` when it has one but is not a conforming message for the family
292
+ * (ERC-4361: wallets should warn about that shape).
293
+ */
294
+ function parseSignIn(text, family) {
295
+ if (family === "tron") return text.includes(PREAMBLE) ? {
296
+ status: "malformed",
297
+ claims: claims(text)
298
+ } : void 0;
299
+ try {
300
+ return {
301
+ status: "valid",
302
+ fields: parseValid(text, family)
303
+ };
304
+ } catch {
305
+ return text.includes(PREAMBLE) ? {
306
+ status: "malformed",
307
+ claims: claims(text)
308
+ } : void 0;
309
+ }
310
+ }
311
+ // src/index.ts
312
+ /**
313
+ * @qntx/wallet-chains — shared chain semantics for the wallet.
314
+ * Types here are wire-safe: values crossing the main↔kernel protocol are
315
+ * Uint8Array, safe integers, strings, booleans, arrays and plain objects.
316
+ * Quantities are canonical `0x` hex (lowercase, no leading zeros, `0x0` for
317
+ * zero), token amounts are decimal strings of the smallest unit.
318
+ */
319
+ const utf8 = new TextDecoder("utf-8", {
320
+ fatal: true,
321
+ ignoreBOM: true
322
+ });
323
+ const utf8Encode = new TextEncoder();
324
+ const bytesContent = (bytes) => ({
325
+ kind: "bytes",
326
+ hex: `0x${[...bytes].map((b) => b.toString(16).padStart(2, "0")).join("")}`
327
+ });
328
+ /**
329
+ * Strict UTF-8 text with any sign-in recognition for `family`, else the raw bytes as hex — every
330
+ * valid UTF-8 input is text, including 32-byte and hidden-character texts (`messageTextHazard` says
331
+ * which of those is blind); only a message that fails UTF-8 decoding is bytes.
332
+ */
333
+ const messageContent = (bytes, family) => {
334
+ let text;
335
+ try {
336
+ text = utf8.decode(bytes);
337
+ } catch {
338
+ return bytesContent(bytes);
339
+ }
340
+ const signIn = parseSignIn(text, family);
341
+ return signIn === void 0 ? {
342
+ kind: "text",
343
+ text
344
+ } : {
345
+ kind: "text",
346
+ text,
347
+ signIn
348
+ };
349
+ };
350
+ /**
351
+ * A request is blind exactly when the decoder set `blind` — what the prompt prints does not bound
352
+ * what the signature authorises. A request the decoder can describe in full but not verify (an
353
+ * `opaque` call, an unrecognised but fully listed typed-data document whose leaves are readable
354
+ * values) is not blind; one whose every leaf is a commitment, or which a decoded family claims in
355
+ * an unrecognised shape, is.
356
+ */
357
+ const isBlindIntent = (intent) => intent.blind !== void 0;
358
+ /**
359
+ * Why text `text` cannot be read as what the signature authorises, in precedence order: a UTF-8
360
+ * length of exactly 32 bytes is a digest — Safe's eth_sign path (`v > 30`) and EIP-191 digest
361
+ * verifiers sign `"\x19Ethereum Signed Message:\n32" ‖ digest`, and only a 32-byte message has that
362
+ * preimage, so no display can tell a 32-byte text from a digest that happens to be UTF-8; a
363
+ * deceptive code point means what the owner reads is not what was signed; and an encoded-bytes
364
+ * rendering shows the encoding, not the bytes it encodes.
365
+ */
366
+ const messageTextHazard = (text) => {
367
+ if (utf8Encode.encode(text).length === 32) return "digest-length";
368
+ if (hasHiddenCharacters(text)) return "hidden-characters";
369
+ if (isEncodedBytes(text)) return "encoded-bytes";
370
+ };
371
+ /**
372
+ * Why a message is blind. `bytes` always is — no prompt can show it. `text` is blind when it
373
+ * carries a `messageTextHazard`. Checking the content again here gives callers that build `{ kind:
374
+ * "text" }` themselves the same verdict.
375
+ */
376
+ const messageBlindReason = (message) => message.kind === "bytes" ? "message-bytes" : message.kind === "text" && messageTextHazard(message.text) !== void 0 ? "message-bytes" : void 0;
377
+ var ChainError = class extends Error {
378
+ code;
379
+ constructor(code, message) {
380
+ super(message);
381
+ this.name = "ChainError";
382
+ this.code = code;
383
+ }
384
+ };
385
+ export { messageTextHazard as a, hasHiddenCharacters as c, messageContent as i, isEncodedBytes as l, isBlindIntent as n, parseSignIn as o, messageBlindReason as r, displayExcerpt as s, ChainError as t };
386
+
387
+ //# sourceMappingURL=src-CHB_z45M.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"src-CHB_z45M.mjs","names":[],"sources":["../src/unicode-tables.ts","../src/display.ts","../src/sign-in.ts","../src/index.ts"],"sourcesContent":["/**\n * GENERATED FILE — do not edit. Produced by packages/wallet-chains/scripts/unicode-tables.ts from\n * the Unicode 18.0.0 Character Database:\n * https://www.unicode.org/Public/18.0.0/ucd/DerivedCoreProperties.txt\n * https://www.unicode.org/Public/18.0.0/ucd/PropList.txt\n * https://www.unicode.org/Public/18.0.0/ucd/StandardizedVariants.txt\n * https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt\n * https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-variation-sequences.txt\n * https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedCombiningClass.txt\n * https://www.unicode.org/Public/18.0.0/ucd/extracted/DerivedJoiningType.txt\n * https://www.unicode.org/Public/18.0.0/emoji/emoji-sequences.txt\n *\n * Each table is a base-36-packed delta of an ascending list of inclusive code-point ranges [lo0,\n * hi0, lo1, hi1, …]. VARIATION_BASES maps a Mongolian free variation selector or VS1–VS16 to the\n * ranges of bases that selector is defined for. RGI_TAG_SEQUENCES holds the RGI flag tag bodies\n * (the ASCII string encoded between U+1F3F4 and U+E007F).\n */\n\nconst ranges = (packed: string): ReadonlyArray<number> => {\n const out: number[] = [];\n let value = 0;\n for (const token of packed.split(\",\")) {\n value += Number.parseInt(token, 36);\n out.push(value);\n }\n return out;\n};\nexport const DEFAULT_IGNORABLE: ReadonlyArray<number> = ranges(\n \"4t,0,iq,0,jx,0,283,1,190,1,2e,4,1ks,4,r,4,1e,f,3cl,0,14f0,f,6o,0,4h,0,28,8,119k,3,440,7,h406,35r\",\n);\n\nexport const VARIATION_SELECTOR: ReadonlyArray<number> = ranges(\"4qz,2,2,0,19f5,f,i9yp,6n\");\n\nexport const UNIFIED_IDEOGRAPH: ReadonlyArray<number> = ranges(\n \"a9s,533,1t,g73,hsf,1,2,0,2,1,b,0,2,0,2,1,3,2,1fpz,wyn,x,3dq,2,4gd,3,5rk,g,h9,3hf,3t6,6,6jt\",\n);\n\nexport const EXTENDED_PICTOGRAPHIC: ReadonlyArray<number> = ranges(\n \"4p,0,5,0,68e,0,d,0,61,0,n,0,2j,5,g,1,a8,1,d,0,4n,0,q,a,5,2,5k,0,6g,1,b,0,a,0,1n,3,2,4,a,0,3,0,3,1,3,0,5,0,3,0,2,1,3,0,4,0,4,1,9,2,6,0,2,0,6,b,c,1,3,0,2,1,2,0,j,0,3,1,j,5,2,0,2,1,4,1,6,0,3,1,5,1,c,1,6,1,3,0,6,1,2,0,2,1,l,1,6,5,2,3,3,0,5,0,3,0,3,5,2,0,3,0,2,0,2,0,7,0,4,0,7,0,b,1,g,0,3,0,5,0,2,0,5,2,2,0,c,1,1d,2,a,0,f,0,f,0,ad,1,cw,2,k,1,1g,0,5,0,yj,0,d,0,gq,0,2,0,2fzf,0,14,3,2t,b,g,1,g,0,f,1,12,9,35,1,d,1,f,0,3,9,l,1i,s,e,b,0,l,0,3,8,2,3,a,m,7,57,3,33,3,1,2,2,3,2a,3,2,2,3,6,71,2,1q,c,5,2,n,8,1,3,7,d,0,3,3,3,0,5,1,e,1,3,0,9,1,a,0,6,2,d,2,9,2,3,0,2,0,5,0,7,0,4,0,7,2d,1d,1x,6,7,3,g,4,0,2,5,3,c,65,k,s,3,1l,7,b,5,15,7,v,1,d,3,3,d,a,12,d,1a,2,9,2,54,2h,7,f,41,75,sd\",\n);\n\nexport const EMOJI_MODIFIER: ReadonlyArray<number> = ranges(\"2qrf,4\");\n\nexport const VIRAMA: ReadonlyArray<number> = ranges(\n \"1u5,0,3k,0,3k,0,3k,0,3k,0,3k,0,3k,0,3k,0,32,1,h,0,3h,0,34,0,3k,0,5m,0,51,1,1cq,1,v,0,4e,0,i6,0,6c,0,2u,1,1z,1,3gs,0,o7b,0,12,0,48,0,3z,0,31,0,8m,0,6v,0,imq,0,16v,0,16,0,f,0,1m,0,3e,1,3w,0,39,0,51,0,2r,0,3l,2,36,0,3k,0,71,0,3k,0,3b,0,39,0,7i,0,78,1,4i,0,2c,0,j,0,2a,0,bq,0,79,1,2a,0,bu,1,d0t,0\",\n);\n\nexport const JOIN_LEFT: ReadonlyArray<number> = ranges(\n \"17k,0,6,0,2,0,2,4,5,c,2,6,2,1,10,1,9,f,j,11,2,1,a,0,2,0,2,1,15,2,3,0,j,2,6,3,2,8,2,0,2,0,2,1,w,a,4,e,3,3,2,0,3,2,3,5,23,w,2f,4,3,0,2,9,2,0,b,0,2,3,3,0,u,0,3,4,2,0,h,9,6,1,3,5,2,e,30f,0,p,2g,f,x,2,0,sd2,1d,jf3,4,f,3,2,4,2,2,b,3,42,0,2,0,4,2,2,1,2,0,3,0,t,1,9f,w,2,0,bk,1,2,1,2x,2,2,g,d,2,t,3,3,b,1b,0,2,1,5,0,3,1,2,1,2,0,3,0,6,0,16wm,1v\",\n);\n\nexport const JOIN_RIGHT: ReadonlyArray<number> = ranges(\n \"17k,0,6,0,2,0,2,4,5,c,2,6,2,1,10,1,9,f,j,11,2,1,a,0,2,0,2,1,15,2,3,0,j,2,6,3,2,8,2,0,2,0,2,1,w,a,4,e,3,3,2,0,3,2,3,5,23,w,2f,4,3,0,2,9,2,0,b,0,2,3,3,0,u,0,3,4,2,0,h,9,6,1,3,5,2,e,30f,0,p,2g,f,x,2,0,sd2,1d,jf3,4,f,3,2,4,2,2,b,3,42,0,2,0,4,2,2,1,2,0,3,0,t,1,9f,w,2,0,bk,1,2,1,2x,2,2,g,d,2,t,3,3,b,1b,0,2,1,5,0,3,1,2,1,2,0,3,0,6,0,16wm,1v\",\n);\n\nexport const JOIN_TRANSPARENT: ReadonlyArray<number> = ranges(\n \"4t,0,gj,33,7o,6,7c,18,2,0,2,1,2,1,2,2,1z,a,2,0,1b,k,h,0,2u,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6,0,3,1,5,1,c,1,6,1,3,0,6,1,2,0,2,1,l,1,6,5,2,3,3,0,5,0,3,0,3,5,2,0,3,0,2,0,2,0,7,0,4,0,7,0,b,1,g,0,3,0,5,0,2,0,5,2,2,0,c,1,1d,2,a,0,f,0,f,0,ad,1,cw,2,k,1,1g,0,5,0,yj,0,d,0,gq,0,2,0,2fzf,0,a4,1,d,1,3n,0,o,0,l,0,8,0,5y,2,6,0,7,0,5,0,3,8,a,0,1u,0,5,0,m,0,3,1,2,2,3,1,8,0,5,2,k,0,2,0,2,0,4,4,6,c,d,0,6,0,2,0,2,0,h,0,d,0,a,0,7,0,p,0,2,1,4,3,4,1,5,0,n,0,j,0,12,0,d,0,3,0,8,0,4,0,c,0,f,0,5,0,5,2,4,3,a,0,2,2,2,0,b,0,5,0,5,1,1i,1,6,n,8,1,3,6,e,0,3,3,3,0,l,0,3,0,9,1,a,0,6,2,d,2,9,2,3,0,2,0,5,0,7,0,4,0,7,0,m,0,3b,0,6,0,4,0,3,0,4,0,l,0,5,0,7,1,2,0,f,0,2,2,h,5,4,0,7,0,3,0\",\n ),\n};\n\nexport const RGI_TAG_SEQUENCES: ReadonlyArray<string> = [\"gbeng\", \"gbsct\", \"gbwls\"];\n","/**\n * Untrusted text (a signed message, an EIP-712 domain name, a token symbol) made safe to show, and\n * the checks behind the message-text rules. Code points come in three classes, taken from the\n * generated Unicode 18.0.0 tables in unicode-tables.ts so the kernel and the host classify every\n * code point identically regardless of the engine's ICU version. Deceptive ones — controls other\n * than TAB/LF/CR, the line and paragraph separators, the bidi embedding/override marks U+202A–202E,\n * interlinear annotation anchors U+FFF9–FFFB, default-ignorable code points outside the format set,\n * tag characters outside an exact RGI emoji tag sequence (U+1F3F4, the tag-encoded body, U+E007F)\n * and variation selectors not immediately after a base the selector is defined for — mean what the\n * owner reads is not what was signed (`hasHiddenCharacters`); they render as U+FFFD. Format\n * characters — joiners, direction marks, the soft hyphen, the combining grapheme joiner, variation\n * selectors in a valid position and RGI tag sequences — are ordinary text; direction marks, the\n * soft hyphen, CGJ and joiners outside a joining context display as U+FFFD so they stay visible,\n * the rest pass through. Everything else is text.\n *\n * Joining context: a ZWJ is kept after a virama (ccc=9, RFC 5892 appendix A.2) or inside an emoji\n * ZWJ sequence (UTS #51 ED-16: the preceding code point is Extended_Pictographic or an emoji\n * modifier — an emoji-variation FE0F after a pictographic base counts as its base — and the next is\n * Extended_Pictographic). A ZWNJ is kept after a virama or between left- and right-joining\n * characters, skipping transparent ones (RFC 5892 appendix A.1).\n */\n\nimport {\n DEFAULT_IGNORABLE,\n EMOJI_MODIFIER,\n EXTENDED_PICTOGRAPHIC,\n JOIN_LEFT,\n JOIN_RIGHT,\n JOIN_TRANSPARENT,\n RGI_TAG_SEQUENCES,\n UNIFIED_IDEOGRAPH,\n VARIATION_BASES,\n VARIATION_SELECTOR,\n VIRAMA,\n} from \"./unicode-tables.ts\";\n\nconst CONTROL = /\\p{Cc}/u;\nconst MARK_VISIBLE = new Set([0x200e, 0x200f, 0x061c, 0x00ad, 0x034f]);\n\nconst TAB = 0x09;\nconst LINE_FEED = 0x0a;\nconst CARRIAGE_RETURN = 0x0d;\nconst ZWNJ = 0x200c;\nconst ZWJ = 0x200d;\nconst EMOJI_VS = 0xfe0f;\nconst IVS_FIRST = 0xe0100;\n\nconst TAG_BASE = 0x1f3f4;\nconst TAG_FIRST = 0xe0020;\nconst TAG_BODY_LAST = 0xe007e;\nconst TAG_LAST = 0xe007f;\nconst TAG_CANCEL = 0xe007f;\n\nconst codePoint = (char: string | undefined): number => char?.codePointAt(0) ?? 0;\n\nconst codePointsOf = (text: string): string[] => {\n const chars: string[] = [];\n for (const char of text) {\n chars.push(char);\n }\n return chars;\n};\n\n/** Whether `cp` lies in a flat sorted inclusive-range table `[lo0, hi0, lo1, hi1, …]`. */\nconst inRanges = (ranges: ReadonlyArray<number>, cp: number): boolean => {\n let lo = 0;\n let hi = ranges.length / 2;\n while (lo < hi) {\n const mid = Math.floor((lo + hi) / 2);\n const start = ranges[mid * 2];\n const end = ranges[mid * 2 + 1];\n if (start === undefined || end === undefined) {\n return false;\n }\n if (cp < start) {\n hi = mid;\n } else if (cp > end) {\n lo = mid + 1;\n } else {\n return true;\n }\n }\n return false;\n};\n\nconst isTagChar = (cp: number): boolean => cp >= TAG_FIRST && cp <= TAG_LAST;\n\n/* The default-ignorable code points that are format characters rather than deceptive: joiners,\n direction marks, soft hyphen, CGJ, variation selectors and tag characters. */\nconst isFormat = (cp: number): boolean =>\n cp === ZWNJ ||\n cp === ZWJ ||\n MARK_VISIBLE.has(cp) ||\n inRanges(VARIATION_SELECTOR, cp) ||\n isTagChar(cp);\n\n/** The explicit deceptive set: separators, bidi embedding/override marks, annotation anchors. */\nconst isExplicitDeceptive = (cp: number): boolean =>\n (cp >= 0x2028 && cp <= 0x2029) ||\n (cp >= 0x202a && cp <= 0x202e) ||\n (cp >= 0xfff9 && cp <= 0xfffb);\n\n/**\n * Whether the tag character at `i` is part of an exact RGI emoji tag sequence: U+1F3F4, then the\n * tag-encoded body of one of RGI_TAG_SEQUENCES, terminated by U+E007F (UTS #51).\n */\nconst inRgiTagSequence = (chars: ReadonlyArray<string>, i: number): boolean => {\n let start = i;\n while (start > 0) {\n const cp = codePoint(chars[start - 1]);\n if (cp < TAG_FIRST || cp > TAG_BODY_LAST) {\n break;\n }\n start--;\n }\n if (start === 0 || codePoint(chars[start - 1]) !== TAG_BASE) {\n return false;\n }\n let end = start;\n let body = \"\";\n while (end < chars.length) {\n const cp = codePoint(chars[end]);\n if (cp < TAG_FIRST || cp > TAG_BODY_LAST) {\n break;\n }\n body += String.fromCodePoint(cp - 0xe0000);\n end++;\n }\n return codePoint(chars[end]) === TAG_CANCEL && RGI_TAG_SEQUENCES.includes(body) && i <= end;\n};\n\n/** A variation selector is deceptive unless it immediately follows a base defined for it. */\nconst misplacedSelector = (chars: ReadonlyArray<string>, i: number): boolean => {\n const selector = codePoint(chars[i]);\n const prev = codePoint(chars[i - 1]);\n if (selector >= IVS_FIRST) {\n return !inRanges(UNIFIED_IDEOGRAPH, prev);\n }\n const bases = VARIATION_BASES[selector];\n return bases === undefined || !inRanges(bases, prev);\n};\n\n/** Whether the code point at `i` hides, reorders or fakes signed content. */\nconst isDeceptive = (chars: ReadonlyArray<string>, i: number): boolean => {\n const cp = codePoint(chars[i]);\n if (isTagChar(cp)) {\n return !inRgiTagSequence(chars, i);\n }\n if (inRanges(VARIATION_SELECTOR, cp)) {\n return misplacedSelector(chars, i);\n }\n if (\n cp !== TAB &&\n cp !== LINE_FEED &&\n cp !== CARRIAGE_RETURN &&\n (CONTROL.test(chars[i] ?? \"\") || isExplicitDeceptive(cp))\n ) {\n return true;\n }\n return inRanges(DEFAULT_IGNORABLE, cp) && !isFormat(cp);\n};\n\n/** Whether the joiner at `i` actually joins — kept verbatim in the display. */\nconst joinsHere = (chars: ReadonlyArray<string>, i: number): boolean => {\n const prev = codePoint(chars[i - 1]);\n if (inRanges(VIRAMA, prev)) {\n return true;\n }\n if (codePoint(chars[i]) === ZWJ) {\n const emojiPrev =\n inRanges(EXTENDED_PICTOGRAPHIC, prev) ||\n inRanges(EMOJI_MODIFIER, prev) ||\n (prev === EMOJI_VS && inRanges(EXTENDED_PICTOGRAPHIC, codePoint(chars[i - 2])));\n return emojiPrev && inRanges(EXTENDED_PICTOGRAPHIC, codePoint(chars[i + 1]));\n }\n let before = i - 1;\n while (before >= 0 && inRanges(JOIN_TRANSPARENT, codePoint(chars[before]))) {\n before--;\n }\n let after = i + 1;\n while (after < chars.length && inRanges(JOIN_TRANSPARENT, codePoint(chars[after]))) {\n after++;\n }\n return (\n inRanges(JOIN_LEFT, codePoint(chars[before])) && inRanges(JOIN_RIGHT, codePoint(chars[after]))\n );\n};\n\n/**\n * Whether `text` holds a deceptive code point — one that hides, reorders or fakes content. TAB, LF\n * and CR are the only control characters ordinary text may carry.\n */\nexport const hasHiddenCharacters = (text: string): boolean => {\n const chars = codePointsOf(text);\n for (const [i] of chars.entries()) {\n if (isDeceptive(chars, i)) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Whether `text` is the rendering of raw bytes, not a description of what the signature authorises:\n * hex with or without a `0x` prefix of either case, optionally separated by whitespace, colons,\n * dashes or commas, past 40 digits — 40 digits is an address written as text, which stays readable\n * — or a single base64/base64url/base58 token of 43 or more characters (≥ 32 bytes) mixing at least\n * two of its character classes.\n */\nexport const isEncodedBytes = (text: string): boolean => {\n const trimmed = text.trim();\n const squashed = trimmed.replace(/^0x/i, \"\").replaceAll(/[\\s:,-]+/g, \"\");\n if (squashed.length > 40 && /^[0-9a-fA-F]+$/.test(squashed)) {\n return true;\n }\n const token = trimmed.replace(/^0x/i, \"\");\n const classes = [/[A-Z]/, /[a-z]/, /[0-9]/].filter((cls) => cls.test(token)).length;\n return (\n !/\\s/.test(token) &&\n token.length >= 43 &&\n /^[A-Za-z0-9+/_-]+={0,2}$/.test(token) &&\n classes >= 2\n );\n};\n\nconst REPLACEMENT = \"\\uFFFD\";\nconst LINE_BREAK = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * The code points of one line: tabs as spaces, trimmed; deceptive characters, joiners outside a\n * joining context and the always-visible marks (LRM, RLM, ALM, SHY, CGJ) as U+FFFD; tag characters\n * only inside an exact RGI emoji tag sequence.\n */\nconst safeLine = (line: string): ReadonlyArray<string> => {\n const chars = codePointsOf(line.replaceAll(\"\\t\", \" \").trim());\n return chars.map((char, i) => {\n const cp = codePoint(char);\n if (isTagChar(cp)) {\n return inRgiTagSequence(chars, i) ? char : REPLACEMENT;\n }\n if (cp === ZWNJ || cp === ZWJ) {\n return joinsHere(chars, i) ? char : REPLACEMENT;\n }\n if (MARK_VISIBLE.has(cp) || isDeceptive(chars, i)) {\n return REPLACEMENT;\n }\n return char;\n });\n};\n\nexport type DisplayExcerpt = {\n readonly lines: ReadonlyArray<string>;\n /** Code points of non-empty lines that did not fit. */\n readonly omitted: number;\n};\n\n/**\n * The leading part of `raw` that fits `maxLines` lines and `maxCodePoints` code points. Empty lines\n * are dropped, so padding cannot push content out of view; the last line may be cut.\n */\nexport function displayExcerpt(\n raw: string,\n maxLines: number,\n maxCodePoints: number,\n): DisplayExcerpt {\n const lines: string[] = [];\n let used = 0;\n let omitted = 0;\n for (const line of raw.split(LINE_BREAK)) {\n const chars = safeLine(line);\n const room = lines.length < maxLines ? maxCodePoints - used : 0;\n const shown = chars.slice(0, room);\n if (shown.length > 0) {\n lines.push(shown.join(\"\"));\n used += shown.length;\n }\n omitted += chars.length - shown.length;\n }\n return { lines, omitted };\n}\n","/** Recognition of Sign-In with Ethereum (ERC-4361) and Sign-In with Solana text in signed messages. */\nimport type { Message, MessageFields } from \"@qntx/siwx\";\nimport { evm } from \"@qntx/siwx/evm\";\nimport { siws, validateAddress as validateSolanaAddress } from \"@qntx/siwx/svm\";\n\n/**\n * A domain a sign-in line claims: `[scheme://]domain wants you to sign in with your Ethereum|Solana\n * account:` at the start of a line.\n */\nexport type SignInClaim = { readonly scheme?: string; readonly domain: string };\n\n/** A Sign-In with X message found in signed text (ERC-4361 / SIWS). */\nexport type SignInParse =\n | { readonly status: \"valid\"; readonly fields: MessageFields }\n /**\n * Not a conforming message for the family; `claims` are the domains its preamble lines claim —\n * lenient verifiers (viem `parseSiweMessage`, `@solana/wallet-standard-util`\n * `parseSignInMessageText`) accept such text, so the wallet binds it to the page like a\n * conforming one.\n */\n | { readonly status: \"malformed\"; readonly claims: ReadonlyArray<SignInClaim> };\n\nconst PREAMBLE = \" wants you to sign in with your \";\n\nconst CLAIM =\n /^(?:(?<scheme>[A-Za-z][A-Za-z0-9+.-]*):\\/\\/)?(?<domain>.*?) wants you to sign in with your (?:Ethereum|Solana) account:$/;\n\nconst claims = (text: string): SignInClaim[] =>\n text.split(\"\\n\").flatMap((line) => {\n const groups = CLAIM.exec(line.endsWith(\"\\r\") ? line.slice(0, -1) : line)?.groups;\n if (groups === undefined) {\n return [];\n }\n const claim: { scheme?: string; domain: string } = { domain: groups[\"domain\"] ?? \"\" };\n if (groups[\"scheme\"] !== undefined) {\n claim.scheme = groups[\"scheme\"];\n }\n return [claim];\n });\n\nconst OPTIONAL_KEYS = [\"scheme\", \"statement\", \"expirationTime\", \"notBefore\", \"requestId\"] as const;\n\nconst plainFields = (message: Message): MessageFields => {\n const { domain, address, uri, version, chainId, nonce, issuedAt, resources } = message;\n const fields: { -readonly [K in keyof MessageFields]: MessageFields[K] } = {\n domain,\n address,\n uri,\n version,\n chainId,\n nonce,\n issuedAt,\n };\n for (const key of OPTIONAL_KEYS) {\n const value = message[key];\n if (value !== undefined) {\n fields[key] = value;\n }\n }\n if (resources !== undefined) {\n fields.resources = [...resources];\n }\n return fields;\n};\n\nconst parseValid = (text: string, family: \"evm\" | \"solana\"): MessageFields => {\n if (family === \"evm\") {\n const ns = evm();\n const message = ns.parse(new TextEncoder().encode(text));\n ns.account(message);\n return plainFields(message);\n }\n const message = siws.parse(text);\n validateSolanaAddress(message.address);\n return plainFields(message);\n};\n\n/**\n * Finds a Sign-In with X message in `text` for the chain `family`. `undefined` when the text has no\n * sign-in preamble; `malformed` when it has one but is not a conforming message for the family\n * (ERC-4361: wallets should warn about that shape).\n */\nexport function parseSignIn(\n text: string,\n family: \"evm\" | \"solana\" | \"tron\",\n): SignInParse | undefined {\n // TRON has no sign-in standard — a sign-in preamble is always malformed.\n if (family === \"tron\") {\n return text.includes(PREAMBLE) ? { status: \"malformed\", claims: claims(text) } : undefined;\n }\n try {\n return { status: \"valid\", fields: parseValid(text, family) };\n } catch {\n return text.includes(PREAMBLE) ? { status: \"malformed\", claims: claims(text) } : undefined;\n }\n}\n","/**\n * @qntx/wallet-chains — shared chain semantics for the wallet.\n * Types here are wire-safe: values crossing the main↔kernel protocol are\n * Uint8Array, safe integers, strings, booleans, arrays and plain objects.\n * Quantities are canonical `0x` hex (lowercase, no leading zeros, `0x0` for\n * zero), token amounts are decimal strings of the smallest unit.\n */\n\nimport { hasHiddenCharacters, isEncodedBytes } from \"./display.ts\";\nimport { parseSignIn } from \"./sign-in.ts\";\nimport type { SignInParse } from \"./sign-in.ts\";\n\nexport { displayExcerpt, hasHiddenCharacters, isEncodedBytes } from \"./display.ts\";\nexport type { DisplayExcerpt } from \"./display.ts\";\nexport { parseSignIn } from \"./sign-in.ts\";\nexport type { SignInClaim, SignInParse } from \"./sign-in.ts\";\n\nexport type ChainFamily = \"evm\" | \"solana\" | \"bitcoin\" | \"tron\";\n\n/** BIP-32/SLIP-10 indices, >= 2^31 hardened; `[]` = the key itself. */\nexport type KeyPath = ReadonlyArray<number>;\n\nexport type TaskKey = { readonly path: KeyPath; readonly publicKey: Uint8Array };\n\nexport type EcdsaTask = {\n readonly scheme: \"ecdsa-secp256k1\";\n readonly path: KeyPath;\n /** 33-byte compressed public key the signature must verify under. */\n readonly publicKey: Uint8Array;\n /** 32-byte digest. */\n readonly digest: Uint8Array;\n};\n\nexport type Bip340Task = {\n readonly scheme: \"bip340\";\n readonly path: KeyPath;\n /** 32-byte x-only output key Q the signature verifies under. */\n readonly publicKey: Uint8Array;\n /** 32-byte message. */\n readonly message: Uint8Array;\n /** 32-byte scalar tweak the signer adds to its key: Q = P + t·G. */\n readonly tweak: Uint8Array;\n};\n\nexport type Ed25519Task = {\n readonly scheme: \"ed25519\";\n readonly path: KeyPath;\n /** 32-byte public key. */\n readonly publicKey: Uint8Array;\n readonly message: Uint8Array;\n};\n\nexport type SignTask = EcdsaTask | Bip340Task | Ed25519Task;\nexport type SignScheme = SignTask[\"scheme\"];\n\n/** An assemble result: the final artefact, or the next plan a dependent signature requires. */\nexport type Assembled<A, P> =\n | { readonly kind: \"signed\"; readonly artefact: A }\n | { readonly kind: \"next\"; readonly plan: P };\n\nexport type AccountRef =\n | {\n readonly kind: \"hd\";\n readonly walletId: string;\n readonly groupIndex: number;\n readonly template: string;\n }\n | { readonly kind: \"imported\"; readonly keyId: string; readonly family: ChainFamily };\n\n/** The BIP-44/49/84/86 account-level templates a bitcoin.psbt input may sign under. */\nexport type BitcoinTemplate = \"btc.bip44\" | \"btc.bip49\" | \"btc.bip84\" | \"btc.bip86\";\n\nexport type SignRequest =\n | {\n readonly kind: \"bitcoin.psbt\";\n readonly network: string;\n /** The wallet group whose keys sign; each signed input names its template. */\n readonly account: {\n readonly kind: \"hd\";\n readonly walletId: string;\n readonly groupIndex: number;\n };\n /** Who built this request — only \"internal\" requests may raise the change mark. */\n readonly origin: \"internal\" | \"external\";\n readonly psbt: Uint8Array;\n /** Inputs to sign — non-empty, unique, ascending by index, in range; each with its template. */\n readonly sign: ReadonlyArray<{ readonly index: number; readonly template: BitcoinTemplate }>;\n }\n | {\n readonly kind: \"bitcoin.message\";\n readonly network: string;\n readonly account: AccountRef;\n readonly address: string;\n readonly message: string;\n readonly format: \"bip322-simple\" | \"legacy\";\n /** Account change chain and index the address is derived at (0 = receive, 1 = change). */\n readonly change: 0 | 1;\n readonly index: number;\n }\n | {\n readonly kind: \"solana.transaction\";\n readonly network: string;\n readonly account: AccountRef;\n /** Compiled wire message (legacy or v0). */\n readonly message: Uint8Array;\n readonly lookupTables?: ReadonlyArray<{\n readonly address: string;\n readonly addresses: ReadonlyArray<string>;\n }>;\n }\n | {\n readonly kind: \"solana.message\";\n readonly network: string;\n readonly account: AccountRef;\n readonly message: Uint8Array;\n /** Only \"raw\" exists in this layer; offchain formats land with C7. */\n readonly format: \"raw\";\n }\n | {\n readonly kind: \"evm.transaction\";\n readonly network: string;\n readonly account: AccountRef;\n readonly tx: EvmTransaction;\n }\n | {\n readonly kind: \"evm.personal-message\";\n readonly network: string;\n readonly account: AccountRef;\n readonly message: Uint8Array;\n }\n /* A Fiat24 session grant the wallet builds itself — the signed text is derived from these\n fields, never supplied. `tokenId` decimal; `deadline` Unix seconds. */\n | {\n readonly kind: \"evm.fiat24-session\";\n readonly network: string;\n readonly account: AccountRef;\n readonly tokenId: string;\n readonly deadline: number;\n }\n | {\n readonly kind: \"evm.typed-data\";\n readonly network: string;\n readonly account: AccountRef;\n readonly typedData: string;\n }\n | {\n readonly kind: \"tron.transaction\";\n readonly network: string;\n readonly account: AccountRef;\n /** `Transaction.raw` wire bytes — the only thing a TRON signature authorises. */\n readonly rawData: Uint8Array;\n }\n | {\n readonly kind: \"tron.message\";\n readonly network: string;\n readonly account: AccountRef;\n readonly message: Uint8Array;\n }\n | {\n readonly kind: \"tron.typed-data\";\n readonly network: string;\n readonly account: AccountRef;\n /** Canonical TIP-712 JSON (types incl. EIP712Domain, primaryType, domain, message). */\n readonly typedData: string;\n };\n\nexport type EvmAccessListEntry = {\n readonly address: string;\n readonly storageKeys: ReadonlyArray<string>;\n};\n\ntype EvmTransactionBase = {\n readonly chainId: number;\n readonly nonce: number;\n readonly gas: string;\n readonly value: string;\n readonly data: string;\n readonly to?: string;\n};\n\n/**\n * A complete transaction — every field the signer needs is present; `to` absent means contract\n * creation.\n */\nexport type EvmTransaction =\n | (EvmTransactionBase & { readonly type: \"legacy\"; readonly gasPrice: string })\n | (EvmTransactionBase & {\n readonly type: \"eip2930\";\n readonly gasPrice: string;\n readonly accessList: ReadonlyArray<EvmAccessListEntry>;\n })\n | (EvmTransactionBase & {\n readonly type: \"eip1559\";\n readonly accessList: ReadonlyArray<EvmAccessListEntry>;\n readonly maxFeePerGas: string;\n readonly maxPriorityFeePerGas: string;\n })\n | (Omit<EvmTransactionBase, \"to\"> & {\n readonly type: \"eip7702\";\n readonly to: string;\n readonly accessList: ReadonlyArray<EvmAccessListEntry>;\n readonly maxFeePerGas: string;\n readonly maxPriorityFeePerGas: string;\n /**\n * One self-sponsored authorization: its chain id is the transaction's chain id and its nonce\n * is `tx.nonce + 1`, so multi-tuple or nonce-mismatched authorizations are unrepresentable.\n * The zero address revokes an existing delegation.\n */\n readonly authorization: { readonly address: string };\n });\n\nexport type Verifiability = \"full\" | \"partial\" | \"opaque\";\n\n/** Why a request is blind: the signer can neither show it nor bound what it authorises. */\nexport type BlindReason =\n // message content that is not readable text: non-UTF-8 bytes, or text with a hazard —\n // digest-length (32 bytes), hidden characters, or an encoded-bytes rendering; also a\n // typed-data document with a hidden character in a string value\n | \"message-bytes\"\n // unclaimed typed data carrying a hash or raw-bytes leaf the signature does not name\n | \"typed-data-commitment\"\n // typed data a recognised family claims, in a shape the decoder does not recognise\n | \"typed-data-variant\"\n // typed data that cannot be shown in full: an unrecognised document over the leaf budget, or a\n // recognised Seaport order with more offer or consideration items than the prompt shows\n | \"typed-data-oversize\"\n | \"token-function\" // an unrecognised function of a built-in-table token\n | \"account-code\" // calldata to the signing account itself (its own, possibly delegated, code)\n | \"safe-delegatecall\" // a Safe delegatecall to anything but canonical MultiSendCallOnly entries\n | \"safe-refund-unbounded\" // a SafeTx with gasPrice > 0: the refund total depends on executor gas\n // an undecoded instruction of a core Solana program (System, Token, Token-2022, Stake, Associated\n // Token) that the signer takes part in\n | \"core-instruction\"\n // an undecoded program outside the family table receives the signer, and the accounts it can act\n // on cannot be listed — writable addresses loaded from lookup tables, or more than\n // PROGRAM_AUTHORITY_ACCOUNTS\n | \"program-authority\"\n // an account the decoded Solana intent names to the user — recipient, owner, authority,\n // delegate, mint, stake or vote account — resolves through caller-supplied lookup-table\n // contents the signer cannot verify\n | \"lookup-table-account\"\n // a TRON contract type the wallet does not describe (unsupported or unknown enum value)\n | \"tron-contract\"\n // TRON raw/contract/value fields the decoder cannot bound, or an enum out of the modeled range\n | \"tron-field\"\n // a TRON permission update: decoded in full, but it hands account control to other keys\n | \"tron-permission-update\"\n // a call to a chain's CCTP TokenMessengerV2 that is not a fully described Hyperliquid\n // deposit — an unrecognised burn or hook could send the minted USDC anywhere\n | \"cctp-destination\"\n // an undecoded call of a Fiat24 contract, or a Fiat24-specific selector sent to any\n // other contract or network\n | \"fiat24-function\"\n // a Fiat24 account access grant presented as a raw personal message — the wallet signs\n // grants only from the structured request it builds itself\n | \"fiat24-session-grant\";\n\n/** One leaf of an unrecognised typed-data document, as a display line. */\nexport type TypedDataLeaf = { readonly path: string; readonly value: string };\n\nexport type IntentSummary =\n | \"transfer\"\n | \"approve\"\n | \"contract-call\"\n | \"swap\"\n | \"message\"\n | \"authorization\"\n | \"batch\"\n | \"stake\"\n | \"bridge\"\n | \"payout\";\n\nexport type AssetAmount = {\n readonly asset: string;\n readonly amount: string;\n readonly decimals?: number;\n readonly symbol?: string;\n /** NFT flows only: the decimal token id; `amount` is then the unit count. */\n readonly tokenId?: string;\n};\n\nexport type AssetFlow = {\n readonly to: string;\n readonly amount: AssetAmount;\n readonly verified: boolean;\n /**\n * The output is provably unspendable (a Bitcoin script that starts with OP_RETURN or exceeds the\n * 10,000-byte script limit): `amount` is destroyed and `to` is the script hex.\n */\n readonly burn?: true;\n /**\n * A Solana unchecked `Transfer` — the instruction names no mint: the asset is whatever token the\n * SPL account holds, `amount.asset` is that account and the amount is in its base units.\n */\n readonly tokenAccount?: string;\n /**\n * The Fiat24 ledger destination the call names when `to` is a cash-token contract: `account` —\n * the ERC-721 id whose holder when the transaction runs receives the funds; `payee` — the payee\n * id whose bank account Fiat24 picks off-chain.\n */\n readonly fiat24?: { readonly account: string } | { readonly payee: string };\n /**\n * The output is provably on one of the account's own keys but at a path the wallet does not\n * discover (e.g. `m/84'/0'/0'/1/2147483646`): the funds are the user's, yet this wallet may never\n * display them — `to` is the decoded address and `ownPath` the derivation path text.\n */\n readonly ownPath?: string;\n /** The ENS name the recipient was resolved from; attached by the engine, never decoded. */\n readonly name?: string;\n};\n\nexport type ApprovalChange =\n | {\n /** A fungible-token allowance: on the token itself, or on Permit2 when `via` is \"permit2\". */\n readonly kind: \"allowance\";\n readonly spender: string;\n /** The token and amount (base units); symbol/decimals when the token is in the built-in table. */\n readonly amount: AssetAmount;\n /**\n * `set`: the allowance becomes `amount`; `increase`/`decrease`: it changes by `amount`;\n * `transfer`: a one-time right to take up to `amount` before `expiration` (Permit2\n * SignatureTransfer).\n */\n readonly change: \"set\" | \"increase\" | \"decrease\" | \"transfer\";\n /** `amount` is the type's maximum (uint256; uint160 for Permit2). */\n readonly unlimited: boolean;\n /** Unix seconds after which the allowance lapses (Permit2), when it has one. */\n readonly expiration?: number;\n readonly via?: \"permit2\" | \"allowance-holder\";\n /** The spender is a Fiat24 contract: its card authorisation or top-up/exchange deposit. */\n readonly fiat24Spender?: \"card\" | \"deposit\";\n /** The token is in the built-in table. */\n readonly verified: boolean;\n }\n | {\n /** ERC-721/1155 `setApprovalForAll`: `spender` may move every token of `asset`. */\n readonly kind: \"operator\";\n readonly asset: string;\n readonly spender: string;\n /** `false` revokes. */\n readonly approved: boolean;\n readonly verified: false;\n }\n | {\n /**\n * A Solana stake account's staker or withdrawer role handed to a key other than the signer —\n * by an `Authorize`/`AuthorizeChecked` instruction, or by `Initialize` naming a non-signer.\n */\n readonly kind: \"stake-authority\";\n /** The stake account the role applies to. */\n readonly account: string;\n readonly role: \"staker\" | \"withdrawer\";\n /** The key receiving the role. */\n readonly authority: string;\n readonly verified: false;\n }\n | {\n /**\n * `approve(address(0), value)`: names no spender — clears ERC-721 token `value`'s approval;\n * on an ERC-20 it only touches the zero address's allowance, which no key can spend. Grants\n * nothing.\n */\n readonly kind: \"approval-cleared\";\n readonly asset: string;\n readonly value: string;\n readonly verified: false;\n }\n | {\n /** SPL `Revoke`: the token account's delegate loses its allowance. Grants nothing. */\n readonly kind: \"delegate-revoked\";\n /** The token account whose delegate is removed. */\n readonly account: string;\n readonly verified: false;\n };\n\n/** The TRON resource a freeze/delegate acts on (ResourceCode 0/1/2). */\nexport type TronResource = \"bandwidth\" | \"energy\" | \"tron-power\";\n\n/** A decoded TRON account permission; `operations` is the 32-byte bitmap hex, actives only. */\nexport type TronPermission = {\n readonly type: \"owner\" | \"witness\" | \"active\";\n readonly id: number;\n readonly name: string;\n /** Decimal string. */\n readonly threshold: string;\n readonly parentId: number;\n readonly operations?: string;\n readonly keys: ReadonlyArray<{ readonly address: string; readonly weight: string }>;\n};\n\n/** One staking operation shown on the signing surface. */\nexport type StakeAction =\n | { readonly kind: \"create\"; readonly account: string; readonly lamports: string }\n | { readonly kind: \"delegate\"; readonly account: string; readonly validator: string }\n | { readonly kind: \"deactivate\"; readonly account: string }\n | {\n readonly kind: \"withdraw\";\n readonly account: string;\n readonly to: string;\n readonly lamports: string;\n }\n /** Stake `Split`: `lamports` of `account` move to the new stake account `to`. */\n | {\n readonly kind: \"split\";\n readonly account: string;\n readonly to: string;\n readonly lamports: string;\n }\n /** Lido `submit` on Ethereum mainnet: ETH in, approximately `receive` stETH back. */\n | { readonly kind: \"lido-submit\"; readonly amount: AssetAmount; readonly receive: AssetAmount }\n /** Lido withdrawal request on Ethereum mainnet; `owner` gets the claim NFT. */\n | {\n readonly kind: \"lido-request\";\n readonly token: string;\n readonly amount: AssetAmount;\n readonly owner: string;\n }\n /** Lido claim of finalised withdrawal requests on Ethereum mainnet (ETH to the caller). */\n | { readonly kind: \"lido-claim\"; readonly requestIds: ReadonlyArray<string> }\n /** FreezeBalanceV2 / UnfreezeBalanceV2. */\n | {\n readonly kind: \"tron-freeze\" | \"tron-unfreeze\";\n readonly amount: AssetAmount;\n readonly resource: TronResource;\n }\n /** DelegateResourceContract; `lock` present only when the lock flag is set. */\n | {\n readonly kind: \"tron-delegate\";\n readonly receiver: string;\n readonly amount: AssetAmount;\n readonly resource: TronResource;\n readonly lock?: { readonly blocks: string };\n }\n /** UnDelegateResourceContract. */\n | {\n readonly kind: \"tron-undelegate\";\n readonly receiver: string;\n readonly amount: AssetAmount;\n readonly resource: TronResource;\n }\n | { readonly kind: \"tron-withdraw-unfrozen\" }\n | { readonly kind: \"tron-cancel-unfreeze\" }\n /** WithdrawBalanceContract — claims the SR-voting reward balance. */\n | { readonly kind: \"tron-claim-rewards\" }\n | {\n readonly kind: \"tron-vote\";\n readonly votes: ReadonlyArray<{ readonly witness: string; readonly count: string }>;\n };\n\n/** The closed set of warnings the prompt knows how to render. */\nexport type IntentWarningKind =\n | \"platform-fee\"\n | \"stake-lockup\"\n | \"sighash-single-anyonecanpay\"\n | \"permit2-witness\"\n | \"delegation-replaced\"\n | \"token-2022-transfer-fee\"\n | \"token-2022-extension\"\n | \"fiat24-internal-account\"\n | \"fiat24-card-pull\"\n | \"fiat24-unlimited-approval\"\n | \"fiat24-issuer-rate\"\n | \"fiat24-exact-out-unbounded\"\n | \"fiat24-payee-offchain\"\n | \"fiat24-swap-quote\"\n | \"fiat24-account-link\"\n | \"fiat24-account-move\"\n | \"fiat24-account-burn\"\n | \"unusual-own-output\"\n | \"unconfirmed-signer-output\";\n\nexport type IntentWarning = {\n readonly kind: IntentWarningKind;\n readonly message: string;\n /** \"danger\" marks a warning for a risk the prompt words itself must carry (callers may escalate). */\n readonly level?: \"danger\";\n};\n\n/** A Fiat24 cash token — the four issuers' ERC-20s all carry two decimals. */\nexport type Fiat24Token = { readonly asset: string; readonly symbol: string; readonly decimals: 2 };\n\n/** What a recognized call into a Fiat24 contract does, beyond its flows. */\nexport type Fiat24Action =\n | { readonly kind: \"exchange\"; readonly side: \"exact-in\"; readonly receive: Fiat24Token }\n | {\n readonly kind: \"exchange\";\n readonly side: \"exact-out\";\n readonly pay: Fiat24Token;\n readonly receive: AssetAmount;\n }\n | {\n readonly kind: \"payout\";\n readonly contactId: string;\n readonly purposeId?: string;\n readonly ref?: string;\n }\n | { readonly kind: \"top-up\"; readonly receive: Fiat24Token }\n | {\n readonly kind: \"open-account\";\n readonly account: string;\n /** `mintByClient` only: the token burned at the issuer-set price, bounded by allowance. */\n readonly burn?: Fiat24Token;\n }\n | { readonly kind: \"session-grant\"; readonly account: string; readonly deadline: number };\n\n/** One item a Seaport order offers or requests; recognized from EIP-712 `itemType` 0–5. */\nexport type SeaportItem = {\n readonly kind: \"native\" | \"erc20\" | \"erc721\" | \"erc1155\" | \"erc721-criteria\" | \"erc1155-criteria\";\n /** The item's contract (EIP-55 checksummed; the zero address for `native`). */\n readonly token: string;\n /** `identifierOrCriteria` as a decimal string; a criteria root for the criteria kinds. */\n readonly identifier: string;\n readonly startAmount: AssetAmount;\n readonly endAmount: AssetAmount;\n};\n\n/** A recognized Seaport `OrderComponents` message. */\nexport type SeaportOrder = {\n readonly offerer: string;\n readonly zone: string;\n readonly startTime: number | undefined;\n readonly endTime: number | undefined;\n readonly offer: ReadonlyArray<SeaportItem>;\n readonly consideration: ReadonlyArray<SeaportItem & { readonly recipient: string }>;\n};\n\n/** A recognised off-chain order: what it can take from the maker and the least each recipient gets. */\nexport type OffchainOrder = {\n readonly protocol: \"1inch\" | \"uniswapx\" | \"cow\" | \"0x\";\n /** Whose funds the order spends (EIP-55). */\n readonly maker: string;\n /** The most the order can take from the maker. */\n readonly give: AssetAmount;\n /** The least each recipient receives when the order fills in full. */\n readonly receive: ReadonlyArray<{ readonly recipient: string; readonly amount: AssetAmount }>;\n /** Unix seconds after which it cannot fill; absent when it never expires. */\n readonly expiry?: number;\n /** It may fill in parts at the same rate. */\n readonly partialFill: boolean;\n /** 1inch: only a taker whose address ends with these 10 bytes (`0x` + 20 hex) may fill. */\n readonly allowedSender?: string;\n /** UniswapX: the filler with exclusive rights before decay starts. */\n readonly exclusiveFiller?: string;\n};\n\n/** A recognized Safe `SafeTx` message. */\nexport type SafeTransaction = {\n readonly safe: string;\n /** The Safe nonce as a decimal string. */\n readonly nonce: string;\n readonly operation: \"call\" | \"delegatecall\";\n readonly to: string;\n /** Wei, decimal. */\n readonly value: string;\n readonly data: string;\n /** The inner call(s) decoded with the transaction rules (no fee); one per MultiSend entry. */\n readonly calls: ReadonlyArray<DisplayIntent>;\n /**\n * The gas refund the Safe pays when `gasPrice` is not zero: `(gasUsed + baseGas) × gasPrice` of\n * the gas token, where `gasUsed` is at most `safeTxGas` for the call plus the call's own\n * overhead, which the executor can raise — so the total is not bounded by the signed fields.\n */\n readonly refund?: {\n /** `refundReceiver`; absent when it is the zero address, which pays whoever executes. */\n readonly receiver?: string;\n /** The price per gas unit, in the gas token (the native asset for the zero address). */\n readonly gasPrice: AssetAmount;\n /** `(baseGas + safeTxGas) × gasPrice`: the refund before the call's overhead gas. */\n readonly amount: AssetAmount;\n };\n};\n\n/** The Hyperliquid environment a user-signed action targets (`hyperliquidChain`). */\nexport type HyperliquidChain = \"Mainnet\" | \"Testnet\";\n\n/**\n * A recognized Hyperliquid user-signed action (EIP-712 `HyperliquidSignTransaction` domain). The\n * signable shapes and field lists are nktkas's `…Types` constants (`src/api/exchange/_methods/*.ts`\n * in @nktkas/hyperliquid); amounts are the exact decimal strings signed, addresses EIP-55\n * checksummed.\n */\nexport type HyperliquidAction =\n | {\n readonly kind: \"usd-send\" | \"withdraw\";\n readonly chain: HyperliquidChain;\n readonly destination: string;\n readonly amount: string;\n }\n | {\n readonly kind: \"spot-send\";\n readonly chain: HyperliquidChain;\n readonly destination: string;\n /** `NAME:0x<tokenId>` — the name is requester text the signature does not verify on-chain. */\n readonly token: string;\n readonly amount: string;\n }\n | {\n readonly kind: \"usd-class-transfer\";\n readonly chain: HyperliquidChain;\n readonly amount: string;\n /** `true` moves spot → perps, `false` perps → spot. */\n readonly toPerp: boolean;\n }\n | {\n readonly kind: \"send-asset\";\n readonly chain: HyperliquidChain;\n readonly destination: string;\n /** `\"\"` is perps, `\"spot\"` spot, otherwise a builder DEX name. */\n readonly sourceDex: string;\n readonly destinationDex: string;\n readonly token: string;\n readonly amount: string;\n /** Absent when the signed `fromSubAccount` is the empty string. */\n readonly fromSubAccount?: string;\n }\n | {\n readonly kind: \"staking-deposit\" | \"staking-withdraw\";\n readonly chain: HyperliquidChain;\n /** HYPE amount in wei (8 decimals), decimal string. */\n readonly wei: string;\n }\n | {\n readonly kind: \"token-delegate\";\n readonly chain: HyperliquidChain;\n readonly validator: string;\n readonly wei: string;\n readonly undelegate: boolean;\n }\n | {\n readonly kind: \"approve-agent\";\n readonly chain: HyperliquidChain;\n readonly agent: string;\n /** The agent name with any ` valid_until <ms>` suffix stripped; `\"\"` is an unnamed agent. */\n readonly name: string;\n /** Milliseconds since epoch the agent's authority ends, when the name carries one. */\n readonly validUntil?: number;\n }\n | {\n readonly kind: \"approve-builder-fee\";\n readonly chain: HyperliquidChain;\n readonly builder: string;\n /** The signed percent string, e.g. `\"0.1%\"`. */\n readonly maxFeeRate: string;\n };\n\n/**\n * A recognized Polymarket typed-data request: a CLOB order (EOA, proxy, Safe or the ERC-7739\n * deposit-wallet envelope), the CLOB L1 auth signature, or a deposit-wallet call batch. Every\n * alternative is produced only by the exact document shapes in `evm/polymarket.ts`.\n */\nexport type PolymarketContent =\n | {\n readonly kind: \"order\";\n /** The allow-listed exchange the order verifies against. */\n readonly exchange: {\n readonly address: string;\n readonly name: string;\n readonly version: \"2\" | \"3\";\n };\n readonly side: \"buy\" | \"sell\";\n /** The outcome token id, decimal string. */\n readonly tokenId: string;\n /** The order's funding address and signer, EIP-55. */\n readonly maker: string;\n readonly signer: string;\n /** Whose funds the order commits: the account, its CREATE2 proxy/Safe, or a deposit wallet. */\n readonly wallet: \"account\" | \"proxy\" | \"safe\" | \"deposit-wallet\";\n /**\n * What the order gives up: BUY pays pUSD `makerAmount`, SELL pays `makerAmount` outcome\n * shares (asset = the market's outcome-token contract, `tokenId` set).\n */\n readonly give: AssetAmount;\n /** What the order receives at minimum: BUY shares `takerAmount`, SELL pUSD `takerAmount`. */\n readonly receive: AssetAmount;\n /** PUSD base units per whole share, rounded down; `exact` false when it does not divide. */\n readonly price: { readonly amount: string; readonly exact: boolean };\n /** Signed bytes32 values shown verbatim, only when not zero; lowercase hex. */\n readonly builder?: string;\n readonly metadata?: string;\n }\n | {\n readonly kind: \"auth\";\n /** The account the credentials are derived for, EIP-55. */\n readonly address: string;\n /** Unix seconds. */\n readonly timestamp: number;\n readonly nonce: string;\n }\n | {\n readonly kind: \"batch\";\n /** The deposit wallet the batch executes on, EIP-55. */\n readonly wallet: string;\n readonly nonce: string;\n /** Unix seconds after which the batch lapses (uint48). */\n readonly deadline: number;\n /** The decoded call intents; empty when the batch is blind (oversize). */\n readonly calls: ReadonlyArray<DisplayIntent>;\n };\n\n/**\n * A recognised EIP-3009 authorization signed to the token contract itself by its\n * `from`/`authorizer`.\n */\nexport type TokenAuthorization =\n | {\n readonly kind: \"transfer\" | \"receive\";\n readonly to: string;\n /** Asset = the token contract (domain.verifyingContract); symbol/decimals when listed. */\n readonly amount: AssetAmount;\n /** Unix seconds; valid only strictly after it (0 = at once). */\n readonly validAfter: number;\n /** Unix seconds; valid only strictly before it; absent when ≥ 2^48. */\n readonly validBefore?: number;\n }\n | {\n readonly kind: \"cancel\";\n readonly token: string;\n /** Bytes32, lowercase hex */ readonly nonce: string;\n };\n\n/** Typed data that hands the signer's account authority to someone else. */\nexport type AccountAuthority =\n | {\n readonly kind: \"morpho\";\n readonly contract: string;\n readonly verified: boolean;\n readonly authorized: string;\n readonly grant: boolean;\n readonly deadline?: number;\n }\n | {\n readonly kind: \"aave-credit\";\n readonly contract: string;\n readonly verified: boolean;\n readonly delegatee: string;\n readonly amount: AssetAmount;\n readonly unlimited: boolean;\n readonly deadline?: number;\n }\n | { readonly kind: \"snapshot-alias\"; readonly alias: string };\n\n/** A Farcaster signer-key document: adding a key to the signer's account, or an app's key request. */\nexport type FarcasterKey = {\n readonly kind: \"add\" | \"request\";\n readonly key: string;\n readonly requestFid: string;\n readonly deadline?: number;\n};\n\n/** The EIP-712 domain fields a wallet shows. */\nexport type TypedDataDomain = {\n readonly name?: string;\n readonly version?: string;\n readonly chainId?: number;\n /** EIP-55 checksummed. */\n readonly verifyingContract?: string;\n readonly salt?: string;\n};\n\n/** What a message request signs. */\nexport type MessageContent =\n | { readonly kind: \"text\"; readonly text: string; readonly signIn?: SignInParse }\n | { readonly kind: \"bytes\"; readonly hex: string }\n | {\n readonly kind: \"typed-data\";\n readonly primaryType: string;\n readonly domain: TypedDataDomain;\n readonly data: Readonly<Record<string, unknown>>;\n /** A recognized Seaport order; only the exact `OrderComponents` shape populates it. */\n readonly seaport?: SeaportOrder;\n /** A recognised off-chain order (1inch LOP, UniswapX permit-witness, CoW GPv2). */\n readonly order?: OffchainOrder;\n /** A recognized Safe transaction; only the exact `SafeTx` shape populates it. */\n readonly safe?: SafeTransaction;\n /** A recognized Hyperliquid user-signed action under the `HyperliquidSignTransaction` domain. */\n readonly hyperliquid?: HyperliquidAction;\n /** A recognized Polymarket order, CLOB auth signature or deposit-wallet batch. */\n readonly polymarket?: PolymarketContent;\n /** A recognized EIP-3009 authorization signed to the token contract itself. */\n readonly authorization?: TokenAuthorization;\n /** A recognized document handing the signer's account authority to someone else. */\n readonly authority?: AccountAuthority;\n /** A recognized Farcaster signer-key document. */\n readonly farcaster?: FarcasterKey;\n /**\n * Every leaf of an unrecognised document that fits the display budget; absent for a\n * recognized shape and for one too large to show in full. Present even when the document is\n * blind (`typed-data-commitment`), so the prompt can still show the leaves it signs.\n */\n readonly fields?: ReadonlyArray<TypedDataLeaf>;\n };\n\nconst utf8 = new TextDecoder(\"utf-8\", { fatal: true, ignoreBOM: true });\nconst utf8Encode = new TextEncoder();\n\nconst bytesContent = (bytes: Uint8Array): MessageContent => ({\n kind: \"bytes\",\n hex: `0x${[...bytes].map((b) => b.toString(16).padStart(2, \"0\")).join(\"\")}`,\n});\n\n/**\n * Strict UTF-8 text with any sign-in recognition for `family`, else the raw bytes as hex — every\n * valid UTF-8 input is text, including 32-byte and hidden-character texts (`messageTextHazard` says\n * which of those is blind); only a message that fails UTF-8 decoding is bytes.\n */\nexport const messageContent = (\n bytes: Uint8Array,\n family: \"evm\" | \"solana\" | \"tron\",\n): MessageContent => {\n let text: string;\n try {\n text = utf8.decode(bytes);\n } catch {\n return bytesContent(bytes);\n }\n const signIn = parseSignIn(text, family);\n return signIn === undefined ? { kind: \"text\", text } : { kind: \"text\", text, signIn };\n};\n\nexport type DisplayIntent = {\n readonly family: ChainFamily;\n readonly network: string;\n readonly summary: IntentSummary;\n readonly outflows: ReadonlyArray<AssetFlow>;\n readonly approvals: ReadonlyArray<ApprovalChange>;\n /**\n * The minimums the settlement contracts enforce on-chain for recognised swaps — each\n * `minAmountOut` a Settler requires its own balance to reach before paying the recipient, not an\n * estimate. Present only when non-empty; a batch concatenates its calls' lists like the others.\n */\n readonly minimumReceived?: ReadonlyArray<{\n readonly to: string;\n readonly amount: AssetAmount;\n /**\n * The instruction names no mint for what the destination account receives — the amount is in\n * that SPL account's base units, like `AssetFlow.tokenAccount`.\n */\n readonly tokenAccount?: string;\n }>;\n /**\n * `l1Data`: an upper bound the engine computes — the L1 data fee estimate times the fee model's\n * safety margin, in the gas token, plus the operator fee at the full gas limit — charged on top\n * of `max`; not decodable from the transaction, so the kernel's own decode never sets it.\n */\n readonly fee: { readonly max: AssetAmount; readonly l1Data?: AssetAmount } | undefined;\n /**\n * Recognized Solana stake operations — create, delegate, deactivate, withdraw — one per\n * instruction, in order. Present only when non-empty.\n */\n readonly staking?: ReadonlyArray<StakeAction>;\n /**\n * A recognized Across SpokePool deposit: the calldata-stated destination chain, the fill deadline\n * after which an unfilled deposit refunds `refundTo` on this chain.\n */\n readonly bridge?: {\n readonly destinationNetwork: string;\n readonly fillDeadline: number;\n readonly refundTo: string;\n };\n /**\n * A fully described CCTP Hyperliquid deposit: the forward-hook recipient (always the signer), the\n * perps or spot account it funds, and the largest Circle fee the call permits.\n */\n readonly hyperliquidDeposit?: {\n readonly recipient: string;\n readonly dex: \"perps\" | \"spot\";\n readonly maxFee: AssetAmount;\n };\n /** A recognized Fiat24 action the generic lines cannot describe (exchange, payout, …). */\n readonly fiat24?: Fiat24Action;\n readonly warnings: ReadonlyArray<IntentWarning>;\n /** What a message request signs; absent for transactions. */\n readonly message?: MessageContent;\n readonly verifiability: Verifiability;\n /** Present iff the transaction carries an EIP-7702 authorization. */\n readonly delegation?:\n | {\n readonly kind: \"set\";\n readonly delegator: string;\n readonly name: string;\n readonly version: string;\n }\n | { readonly kind: \"revoke\" };\n /** The decoded inner calls of a recognized ERC-7821 batch execute. */\n readonly calls?: ReadonlyArray<DisplayIntent>;\n /** The contract an EVM call with calldata runs: the callee, or the address a creation deploys. */\n readonly contract?: {\n readonly address: string;\n readonly created: boolean;\n /** `data`'s first four bytes (all of it when shorter); absent on a creation. */\n readonly selector?: string;\n /** The built-in token table's symbol, when the callee is a listed token. */\n readonly symbol?: string;\n };\n /**\n * Solana only: the program ids of instructions the decoder does not recognise, de-duplicated in\n * first-appearance order; present iff non-empty (so iff a Solana transaction is `opaque`).\n */\n readonly programs?: ReadonlyArray<string>;\n /**\n * Solana only: the undecoded programs outside the family table that receive the signer — what\n * each can move with its authority; present iff non-empty.\n */\n readonly programAuthority?: ReadonlyArray<ProgramAuthority>;\n /** TRON transaction fields the prompt shows on every request. */\n readonly tron?: {\n readonly contractType: string;\n /** Unix ms. */\n readonly expiration: number;\n /** Present only when the contract's Permission_id is non-zero. */\n readonly permissionId?: number;\n readonly memo?:\n | { readonly kind: \"text\"; readonly text: string }\n | { readonly kind: \"bytes\"; readonly hex: string };\n /** Full permission content of an AccountPermissionUpdateContract. */\n readonly permissionUpdate?: {\n readonly owner: TronPermission;\n readonly witness?: TronPermission;\n readonly actives: ReadonlyArray<TronPermission>;\n };\n };\n /** Why the request is blind — the signer can neither show it nor bound what it authorises. */\n readonly blind?: BlindReason;\n};\n\n/**\n * A request is blind exactly when the decoder set `blind` — what the prompt prints does not bound\n * what the signature authorises. A request the decoder can describe in full but not verify (an\n * `opaque` call, an unrecognised but fully listed typed-data document whose leaves are readable\n * values) is not blind; one whose every leaf is a commitment, or which a decoded family claims in\n * an unrecognised shape, is.\n */\nexport const isBlindIntent = (intent: Pick<DisplayIntent, \"blind\">): boolean =>\n intent.blind !== undefined;\n\nexport type MessageTextHazard = \"digest-length\" | \"hidden-characters\" | \"encoded-bytes\";\n\n/**\n * Why text `text` cannot be read as what the signature authorises, in precedence order: a UTF-8\n * length of exactly 32 bytes is a digest — Safe's eth_sign path (`v > 30`) and EIP-191 digest\n * verifiers sign `\"\\x19Ethereum Signed Message:\\n32\" ‖ digest`, and only a 32-byte message has that\n * preimage, so no display can tell a 32-byte text from a digest that happens to be UTF-8; a\n * deceptive code point means what the owner reads is not what was signed; and an encoded-bytes\n * rendering shows the encoding, not the bytes it encodes.\n */\nexport const messageTextHazard = (text: string): MessageTextHazard | undefined => {\n if (utf8Encode.encode(text).length === 32) {\n return \"digest-length\";\n }\n if (hasHiddenCharacters(text)) {\n return \"hidden-characters\";\n }\n if (isEncodedBytes(text)) {\n return \"encoded-bytes\";\n }\n return undefined;\n};\n\n/**\n * Why a message is blind. `bytes` always is — no prompt can show it. `text` is blind when it\n * carries a `messageTextHazard`. Checking the content again here gives callers that build `{ kind:\n * \"text\" }` themselves the same verdict.\n */\nexport const messageBlindReason = (message: MessageContent): BlindReason | undefined =>\n message.kind === \"bytes\"\n ? \"message-bytes\"\n : message.kind === \"text\" && messageTextHazard(message.text) !== undefined\n ? \"message-bytes\"\n : undefined;\n\n/**\n * An undecoded Solana program outside the family table that receives the signer, and the writable\n * accounts it can reach with that signature.\n */\nexport type ProgramAuthority = {\n readonly program: string;\n /** The signer is writable in the message: the program can move all of its SOL. */\n readonly sol: boolean;\n /** The instruction's writable accounts other than the signer, first-appearance order. */\n readonly accounts: ReadonlyArray<{\n readonly address: string;\n /** Set when the account is provably the signer's ATA (Token or Token-2022) for a listed mint. */\n readonly token?: { readonly mint: string; readonly symbol: string };\n }>;\n};\n\nexport type ChainErrorCode =\n | \"unknown-field\"\n | \"chain-id-mismatch\"\n | \"invalid-quantity\"\n | \"invalid-address\"\n | \"invalid-typed-data\"\n | \"invalid-request\"\n | \"invalid-signature\"\n | \"unsupported\";\n\nexport class ChainError extends Error {\n readonly code: ChainErrorCode;\n constructor(code: ChainErrorCode, message: string) {\n super(message);\n this.name = \"ChainError\";\n this.code = code;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,UAAU,WAA0C;CACxD,MAAM,MAAgB,CAAC;CACvB,IAAI,QAAQ;CACZ,KAAK,MAAM,SAAS,OAAO,MAAM,GAAG,GAAG;EACrC,SAAS,OAAO,SAAS,OAAO,EAAE;EAClC,IAAI,KAAK,KAAK;CAChB;CACA,OAAO;AACT;AACA,MAAa,oBAA2C,OACtD,kGACF;AAEA,MAAa,qBAA4C,OAAO,0BAA0B;AAE1F,MAA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