@hsuite/native-connect-types 2.2.1 → 3.0.2

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/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@hsuite/native-connect-types",
3
- "version": "2.2.1",
3
+ "version": "3.0.2",
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
+ },
8
16
  "exports": {
9
17
  ".": {
10
18
  "types": "./dist/index.d.ts",
@@ -37,13 +45,5 @@
37
45
  "url": "https://github.com/HSuiteNetwork/hsuite-native-connect.git",
38
46
  "directory": "packages/types"
39
47
  },
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"
48
- }
49
- }
48
+ "homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/types"
49
+ }
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
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"}