@hsuite/native-connect-types 2.1.6 → 2.2.1
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/dist/hedera-transfer-legs.d.ts +80 -0
- package/dist/hedera-transfer-legs.d.ts.map +1 -0
- package/dist/hedera-transfer-legs.js +95 -0
- package/dist/hedera-transfer-legs.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/ledger.d.ts +20 -0
- package/dist/ledger.d.ts.map +1 -1
- package/dist/ledger.js +22 -0
- package/dist/ledger.js.map +1 -1
- package/dist/messages.d.ts +5 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/multisig-account.d.ts +41 -1
- package/dist/multisig-account.d.ts.map +1 -1
- package/dist/multisig-account.js +6 -1
- package/dist/multisig-account.js.map +1 -1
- package/dist/rpc.d.ts +7 -0
- package/dist/rpc.d.ts.map +1 -1
- package/dist/transaction-amount-utils.d.ts +88 -0
- package/dist/transaction-amount-utils.d.ts.map +1 -0
- package/dist/transaction-amount-utils.js +94 -0
- package/dist/transaction-amount-utils.js.map +1 -0
- package/dist/transaction-approval.d.ts +160 -1
- package/dist/transaction-approval.d.ts.map +1 -1
- package/dist/vault.d.ts +24 -12
- package/dist/vault.d.ts.map +1 -1
- package/dist/widget.types.d.ts +19 -2
- package/dist/widget.types.d.ts.map +1 -1
- package/dist/widget.types.js.map +1 -1
- package/dist/xrpl-trustline.d.ts +31 -0
- package/dist/xrpl-trustline.d.ts.map +1 -0
- package/dist/xrpl-trustline.js +31 -0
- package/dist/xrpl-trustline.js.map +1 -0
- package/package.json +16 -10
- package/src/hedera-transfer-legs.spec.ts +392 -0
- package/src/hedera-transfer-legs.ts +164 -0
- package/src/index.ts +28 -0
- package/src/ledger.spec.ts +44 -1
- package/src/ledger.ts +25 -0
- package/src/multisig-account.ts +25 -1
- package/src/transaction-amount-utils.spec.ts +184 -0
- package/src/transaction-amount-utils.ts +124 -0
- package/src/transaction-approval.ts +162 -0
- package/src/widget.types.ts +20 -2
package/dist/vault.d.ts
CHANGED
|
@@ -50,14 +50,14 @@ export declare const VaultProtectionSchema: z.ZodObject<{
|
|
|
50
50
|
lastUnlockedAt: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
mode?: "
|
|
53
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
54
54
|
hint?: string;
|
|
55
55
|
hardwareId?: string;
|
|
56
56
|
biometricId?: string;
|
|
57
57
|
lastUnlockedAt?: number;
|
|
58
58
|
kmsKeyId?: string;
|
|
59
59
|
}, {
|
|
60
|
-
mode?: "
|
|
60
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
61
61
|
hint?: string;
|
|
62
62
|
hardwareId?: string;
|
|
63
63
|
biometricId?: string;
|
|
@@ -154,18 +154,21 @@ export declare const VaultKeySchema: z.ZodObject<{
|
|
|
154
154
|
account: z.ZodDefault<z.ZodNumber>;
|
|
155
155
|
change: z.ZodDefault<z.ZodNumber>;
|
|
156
156
|
addressIndex: z.ZodDefault<z.ZodNumber>;
|
|
157
|
+
bip39Passphrase: z.ZodOptional<z.ZodEnum<["network", "none"]>>;
|
|
157
158
|
}, "strip", z.ZodTypeAny, {
|
|
158
159
|
purpose?: number;
|
|
159
160
|
coinType?: number;
|
|
160
161
|
account?: number;
|
|
161
162
|
change?: number;
|
|
162
163
|
addressIndex?: number;
|
|
164
|
+
bip39Passphrase?: "network" | "none";
|
|
163
165
|
}, {
|
|
164
166
|
purpose?: number;
|
|
165
167
|
coinType?: number;
|
|
166
168
|
account?: number;
|
|
167
169
|
change?: number;
|
|
168
170
|
addressIndex?: number;
|
|
171
|
+
bip39Passphrase?: "network" | "none";
|
|
169
172
|
}>;
|
|
170
173
|
protection: z.ZodEnum<["none", "passphrase", "hardware", "biometric", "kms"]>;
|
|
171
174
|
/**
|
|
@@ -190,8 +193,9 @@ export declare const VaultKeySchema: z.ZodObject<{
|
|
|
190
193
|
account?: number;
|
|
191
194
|
change?: number;
|
|
192
195
|
addressIndex?: number;
|
|
196
|
+
bip39Passphrase?: "network" | "none";
|
|
193
197
|
};
|
|
194
|
-
protection?: "
|
|
198
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
195
199
|
keyType?: "ed25519" | "ecdsa";
|
|
196
200
|
}, {
|
|
197
201
|
ledgerId?: string;
|
|
@@ -207,8 +211,9 @@ export declare const VaultKeySchema: z.ZodObject<{
|
|
|
207
211
|
account?: number;
|
|
208
212
|
change?: number;
|
|
209
213
|
addressIndex?: number;
|
|
214
|
+
bip39Passphrase?: "network" | "none";
|
|
210
215
|
};
|
|
211
|
-
protection?: "
|
|
216
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
212
217
|
keyType?: "ed25519" | "ecdsa";
|
|
213
218
|
}>;
|
|
214
219
|
/**
|
|
@@ -275,18 +280,21 @@ export declare const VaultRecoveryBundleSchema: z.ZodObject<{
|
|
|
275
280
|
account: z.ZodDefault<z.ZodNumber>;
|
|
276
281
|
change: z.ZodDefault<z.ZodNumber>;
|
|
277
282
|
addressIndex: z.ZodDefault<z.ZodNumber>;
|
|
283
|
+
bip39Passphrase: z.ZodOptional<z.ZodEnum<["network", "none"]>>;
|
|
278
284
|
}, "strip", z.ZodTypeAny, {
|
|
279
285
|
purpose?: number;
|
|
280
286
|
coinType?: number;
|
|
281
287
|
account?: number;
|
|
282
288
|
change?: number;
|
|
283
289
|
addressIndex?: number;
|
|
290
|
+
bip39Passphrase?: "network" | "none";
|
|
284
291
|
}, {
|
|
285
292
|
purpose?: number;
|
|
286
293
|
coinType?: number;
|
|
287
294
|
account?: number;
|
|
288
295
|
change?: number;
|
|
289
296
|
addressIndex?: number;
|
|
297
|
+
bip39Passphrase?: "network" | "none";
|
|
290
298
|
}>;
|
|
291
299
|
protection: z.ZodEnum<["none", "passphrase", "hardware", "biometric", "kms"]>;
|
|
292
300
|
/**
|
|
@@ -311,8 +319,9 @@ export declare const VaultRecoveryBundleSchema: z.ZodObject<{
|
|
|
311
319
|
account?: number;
|
|
312
320
|
change?: number;
|
|
313
321
|
addressIndex?: number;
|
|
322
|
+
bip39Passphrase?: "network" | "none";
|
|
314
323
|
};
|
|
315
|
-
protection?: "
|
|
324
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
316
325
|
keyType?: "ed25519" | "ecdsa";
|
|
317
326
|
}, {
|
|
318
327
|
ledgerId?: string;
|
|
@@ -328,8 +337,9 @@ export declare const VaultRecoveryBundleSchema: z.ZodObject<{
|
|
|
328
337
|
account?: number;
|
|
329
338
|
change?: number;
|
|
330
339
|
addressIndex?: number;
|
|
340
|
+
bip39Passphrase?: "network" | "none";
|
|
331
341
|
};
|
|
332
|
-
protection?: "
|
|
342
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
333
343
|
keyType?: "ed25519" | "ecdsa";
|
|
334
344
|
}>, "many">>;
|
|
335
345
|
/** Address book contacts to restore with the seed */
|
|
@@ -381,8 +391,9 @@ export declare const VaultRecoveryBundleSchema: z.ZodObject<{
|
|
|
381
391
|
account?: number;
|
|
382
392
|
change?: number;
|
|
383
393
|
addressIndex?: number;
|
|
394
|
+
bip39Passphrase?: "network" | "none";
|
|
384
395
|
};
|
|
385
|
-
protection?: "
|
|
396
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
386
397
|
keyType?: "ed25519" | "ecdsa";
|
|
387
398
|
}[];
|
|
388
399
|
metadata?: Record<string, unknown>;
|
|
@@ -421,8 +432,9 @@ export declare const VaultRecoveryBundleSchema: z.ZodObject<{
|
|
|
421
432
|
account?: number;
|
|
422
433
|
change?: number;
|
|
423
434
|
addressIndex?: number;
|
|
435
|
+
bip39Passphrase?: "network" | "none";
|
|
424
436
|
};
|
|
425
|
-
protection?: "
|
|
437
|
+
protection?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
426
438
|
keyType?: "ed25519" | "ecdsa";
|
|
427
439
|
}[];
|
|
428
440
|
metadata?: Record<string, unknown>;
|
|
@@ -470,14 +482,14 @@ export declare const VaultSeedSchema: z.ZodObject<{
|
|
|
470
482
|
lastUnlockedAt: z.ZodOptional<z.ZodNumber>;
|
|
471
483
|
kmsKeyId: z.ZodOptional<z.ZodString>;
|
|
472
484
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
mode?: "
|
|
485
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
474
486
|
hint?: string;
|
|
475
487
|
hardwareId?: string;
|
|
476
488
|
biometricId?: string;
|
|
477
489
|
lastUnlockedAt?: number;
|
|
478
490
|
kmsKeyId?: string;
|
|
479
491
|
}, {
|
|
480
|
-
mode?: "
|
|
492
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
481
493
|
hint?: string;
|
|
482
494
|
hardwareId?: string;
|
|
483
495
|
biometricId?: string;
|
|
@@ -524,7 +536,7 @@ export declare const VaultSeedSchema: z.ZodObject<{
|
|
|
524
536
|
label?: string;
|
|
525
537
|
createdAt?: number;
|
|
526
538
|
protection?: {
|
|
527
|
-
mode?: "
|
|
539
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
528
540
|
hint?: string;
|
|
529
541
|
hardwareId?: string;
|
|
530
542
|
biometricId?: string;
|
|
@@ -550,7 +562,7 @@ export declare const VaultSeedSchema: z.ZodObject<{
|
|
|
550
562
|
label?: string;
|
|
551
563
|
createdAt?: number;
|
|
552
564
|
protection?: {
|
|
553
|
-
mode?: "
|
|
565
|
+
mode?: "none" | "passphrase" | "hardware" | "biometric" | "kms";
|
|
554
566
|
hint?: string;
|
|
555
567
|
hardwareId?: string;
|
|
556
568
|
biometricId?: string;
|
package/dist/vault.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../src/vault.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,yBAAyB,mEAMpC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,iCAA+B,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../src/vault.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBxH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/widget.types.d.ts
CHANGED
|
@@ -168,6 +168,15 @@ export interface WidgetManifestV2 extends WidgetManifest {
|
|
|
168
168
|
* Defaults to 'widget' if not specified.
|
|
169
169
|
*/
|
|
170
170
|
experienceType?: ExperienceType;
|
|
171
|
+
/**
|
|
172
|
+
* Who draws the fullscreen top bar. `'host'` (default): the host wraps the
|
|
173
|
+
* app with its generic glass-island header (app name + exit). `'app'`: the
|
|
174
|
+
* app renders its OWN branded navbar inside its content (e.g. SilkDex's
|
|
175
|
+
* navbar with its page buttons, matching its standalone shell), and the host
|
|
176
|
+
* PROJECTS its controls (account switch + exit) into that navbar's end slot
|
|
177
|
+
* — exit stays host-owned either way.
|
|
178
|
+
*/
|
|
179
|
+
shellNavbar?: 'host' | 'app';
|
|
171
180
|
/**
|
|
172
181
|
* Execution context - where/how the experience runs.
|
|
173
182
|
* If not specified, will be inferred from experienceType using inferExecutionContext().
|
|
@@ -254,8 +263,16 @@ export declare function normalizeManifestToV2(manifest: WidgetManifest): WidgetM
|
|
|
254
263
|
export interface HsuiteWidget {
|
|
255
264
|
/** Widget metadata and configuration (supports V2 fields like experienceType) */
|
|
256
265
|
manifest: WidgetManifestV2;
|
|
257
|
-
/**
|
|
258
|
-
|
|
266
|
+
/**
|
|
267
|
+
* Angular component class, when eagerly bundled.
|
|
268
|
+
* Exactly one of `component` / `loadComponent` must be set.
|
|
269
|
+
*/
|
|
270
|
+
component?: unknown;
|
|
271
|
+
/**
|
|
272
|
+
* Lazy component loader. Preferred: the component code-splits into its
|
|
273
|
+
* own chunk and only downloads when the widget is actually mounted.
|
|
274
|
+
*/
|
|
275
|
+
loadComponent?: () => Promise<unknown>;
|
|
259
276
|
}
|
|
260
277
|
/**
|
|
261
278
|
* @interface WidgetInstallation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.types.d.ts","sourceRoot":"","sources":["../src/widget.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,UAAU,CAAC;AAE3E;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,KAAK,GACL,WAAW,GACX,UAAU,GACV,MAAM,GACN,OAAO,GACP,QAAQ,CAAC;AAIb;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;AAEpG;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,iBAAiB,GACjB,mBAAmB,GACnB,cAAc,GACd,UAAU,CAAC;AAEf;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;AAEvE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAS5E;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,eAAe,GAC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@
|
|
|
1
|
-
{"version":3,"file":"widget.types.js","sourceRoot":"","sources":["../src/widget.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoGH;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAoB;IACxD,MAAM,UAAU,GAA6C;QAC3D,MAAM,EAAE,iBAAiB;QACzB,WAAW,EAAE,mBAAmB;QAChC,YAAY,EAAE,iBAAiB;QAC/B,cAAc,EAAE,cAAc;QAC9B,aAAa,EAAE,UAAU;KAC1B,CAAC;IACF,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"widget.types.js","sourceRoot":"","sources":["../src/widget.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoGH;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAoB;IACxD,MAAM,UAAU,GAA6C;QAC3D,MAAM,EAAE,iBAAiB;QACzB,WAAW,EAAE,mBAAmB;QAChC,YAAY,EAAE,iBAAiB;QAC/B,cAAc,EAAE,cAAc;QAC9B,aAAa,EAAE,UAAU;KAC1B,CAAC;IACF,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAmMD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,QAAwB;IACnD,OAAO,CACL,gBAAgB,IAAI,QAAQ,IAAI,kBAAkB,IAAI,QAAQ,IAAI,gBAAgB,IAAI,QAAQ,CAC/F,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,QAAwB;IAC5D,MAAM,EAAE,GAAG,EAAE,GAAG,QAAQ,EAAsB,CAAC;IAE/C,mDAAmD;IACnD,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC;QACvB,EAAE,CAAC,cAAc,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC9D,CAAC;IAED,wDAAw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AAE,MAAM;KACb;IACD,eAAe,EAAE;QACf,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;KACf;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;KACf;IACD,eAAe,EAAE;QACf,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,KAAK;KACZ;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,KAAK;KACZ;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,KAAK;KACZ;IACD,eAAe,EAAE;QACf,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;KACf;IACD,cAAc,EAAE;QACd,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,KAAK;KACZ;CACF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HSuite Native Connect
|
|
3
|
+
* Copyright 2024-2025 HSuite (https://hsuite.finance)
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
|
|
6
|
+
*
|
|
7
|
+
* This file is part of HSuite Native Connect. For commercial licensing,
|
|
8
|
+
* visit https://hsuite.finance/licensing
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @file Canonical XRPL trustline default limit.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* Audit W4-F06 (2026-08-18): two surfaces hardcoded their own "default max
|
|
15
|
+
* trust limit" and drifted four orders of magnitude apart — the ledger-xrpl
|
|
16
|
+
* adapter's `composeEnableAsset` used `100000000000` (1e11) while the wallet's
|
|
17
|
+
* trustline modal used `1000000000000000` (1e15). A user enabling the same
|
|
18
|
+
* token through the two paths got materially different trust exposure without
|
|
19
|
+
* any UI telling them.
|
|
20
|
+
*
|
|
21
|
+
* This constant is the single value both surfaces (and any future ones) must
|
|
22
|
+
* import. Kept as a string because `TrustSet.LimitAmount.value` is a
|
|
23
|
+
* decimal-string field on the wire — never pre-convert to a JS float.
|
|
24
|
+
*
|
|
25
|
+
* 1e15 is the "effectively unlimited" convention: large enough to exceed any
|
|
26
|
+
* realistic issued-currency supply, and the value the user-facing modal
|
|
27
|
+
* already shipped. The approval parser flags any trustline at or above this
|
|
28
|
+
* magnitude as effectively unlimited (see ledger-xrpl's transaction parser).
|
|
29
|
+
*/
|
|
30
|
+
export declare const XRPL_TRUSTLINE_DEFAULT_LIMIT = "1000000000000000";
|
|
31
|
+
//# sourceMappingURL=xrpl-trustline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xrpl-trustline.d.ts","sourceRoot":"","sources":["../src/xrpl-trustline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,4BAA4B,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HSuite Native Connect
|
|
3
|
+
* Copyright 2024-2025 HSuite (https://hsuite.finance)
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
|
|
6
|
+
*
|
|
7
|
+
* This file is part of HSuite Native Connect. For commercial licensing,
|
|
8
|
+
* visit https://hsuite.finance/licensing
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @file Canonical XRPL trustline default limit.
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
* Audit W4-F06 (2026-08-18): two surfaces hardcoded their own "default max
|
|
15
|
+
* trust limit" and drifted four orders of magnitude apart — the ledger-xrpl
|
|
16
|
+
* adapter's `composeEnableAsset` used `100000000000` (1e11) while the wallet's
|
|
17
|
+
* trustline modal used `1000000000000000` (1e15). A user enabling the same
|
|
18
|
+
* token through the two paths got materially different trust exposure without
|
|
19
|
+
* any UI telling them.
|
|
20
|
+
*
|
|
21
|
+
* This constant is the single value both surfaces (and any future ones) must
|
|
22
|
+
* import. Kept as a string because `TrustSet.LimitAmount.value` is a
|
|
23
|
+
* decimal-string field on the wire — never pre-convert to a JS float.
|
|
24
|
+
*
|
|
25
|
+
* 1e15 is the "effectively unlimited" convention: large enough to exceed any
|
|
26
|
+
* realistic issued-currency supply, and the value the user-facing modal
|
|
27
|
+
* already shipped. The approval parser flags any trustline at or above this
|
|
28
|
+
* magnitude as effectively unlimited (see ledger-xrpl's transaction parser).
|
|
29
|
+
*/
|
|
30
|
+
export const XRPL_TRUSTLINE_DEFAULT_LIMIT = '1000000000000000';
|
|
31
|
+
//# sourceMappingURL=xrpl-trustline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xrpl-trustline.js","sourceRoot":"","sources":["../src/xrpl-trustline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hsuite/native-connect-types",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc -p tsconfig.build.json",
|
|
10
|
-
"watch": "tsc -p tsconfig.build.json --watch",
|
|
11
|
-
"test": "vitest run",
|
|
12
|
-
"test:watch": "vitest --watch",
|
|
13
|
-
"test:coverage": "vitest run --coverage",
|
|
14
|
-
"docs": "compodoc -p tsconfig.build.json -c ../../compodoc.base.json -d dist/docs --name 'Shared Types API' --includes docs"
|
|
15
|
-
},
|
|
16
8
|
"exports": {
|
|
17
9
|
".": {
|
|
18
10
|
"types": "./dist/index.d.ts",
|
|
@@ -39,5 +31,19 @@
|
|
|
39
31
|
},
|
|
40
32
|
"publishConfig": {
|
|
41
33
|
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/HSuiteNetwork/hsuite-native-connect.git",
|
|
38
|
+
"directory": "packages/types"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/types",
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc -p tsconfig.build.json",
|
|
43
|
+
"watch": "tsc -p tsconfig.build.json --watch",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest --watch",
|
|
46
|
+
"test:coverage": "vitest run --coverage",
|
|
47
|
+
"docs": "compodoc -p tsconfig.build.json -c ../../compodoc.base.json -d dist/docs --name 'Shared Types API' --includes docs"
|
|
42
48
|
}
|
|
43
|
-
}
|
|
49
|
+
}
|