@bithomp/xrpl-api 3.7.38 → 3.8.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/lib/client.js
CHANGED
|
@@ -101,6 +101,9 @@ function findConnection(type, url, strongFilter, hash, networkID) {
|
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
103
|
if (typeof type !== "string") {
|
|
104
|
+
if (con.types.includes("$requiredType")) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
104
107
|
return true;
|
|
105
108
|
}
|
|
106
109
|
if (con.types.length === 0) {
|
|
@@ -18,7 +18,5 @@ interface ParseBalanceChangesOptions {
|
|
|
18
18
|
adjustBalancesForPaymentChannel?: boolean;
|
|
19
19
|
}
|
|
20
20
|
declare function parseBalanceChanges(metadata: TransactionMetadata, nativeCurrency?: string, tx?: any, options?: ParseBalanceChangesOptions): BalanceChanges;
|
|
21
|
-
declare function parseFinalBalances(metadata: TransactionMetadata, nativeCurrency?: string):
|
|
22
|
-
[x: string]: BalanceChangeQuantity[];
|
|
23
|
-
};
|
|
21
|
+
declare function parseFinalBalances(metadata: TransactionMetadata, nativeCurrency?: string): BalanceChanges;
|
|
24
22
|
export { parseBalanceChanges, parseFinalBalances };
|
|
@@ -318,6 +318,9 @@ function adjustBalancesChanges(balanceChanges, address, changes) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function parseBalanceChanges(metadata, nativeCurrency, tx, options) {
|
|
321
|
+
if (!metadata) {
|
|
322
|
+
return {};
|
|
323
|
+
}
|
|
321
324
|
if (tx && nativeCurrency === common_1.MAINNET_NATIVE_CURRENCY && metadata.TransactionResult === "tesSUCCESS") {
|
|
322
325
|
(0, mptoken_normalize_1.normalizeMPTokensPreviousFields)(metadata, tx);
|
|
323
326
|
}
|
|
@@ -333,5 +336,8 @@ function parseBalanceChanges(metadata, nativeCurrency, tx, options) {
|
|
|
333
336
|
return balanceChanges;
|
|
334
337
|
}
|
|
335
338
|
function parseFinalBalances(metadata, nativeCurrency) {
|
|
339
|
+
if (!metadata) {
|
|
340
|
+
return {};
|
|
341
|
+
}
|
|
336
342
|
return parseQuantities(metadata, parseFinalBalance, nativeCurrency);
|
|
337
343
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"@noble/ed25519": "^3.1.0",
|
|
55
55
|
"@noble/hashes": "^2.2.0",
|
|
56
56
|
"@noble/secp256k1": "^3.1.0",
|
|
57
|
-
"axios": "^1.
|
|
57
|
+
"axios": "^1.18.0",
|
|
58
58
|
"base-x": "^5.0.1",
|
|
59
|
-
"bignumber.js": "^11.1.
|
|
59
|
+
"bignumber.js": "^11.1.3",
|
|
60
60
|
"lodash": "^4.18.1",
|
|
61
|
-
"ripple-address-codec": "5.0.
|
|
62
|
-
"ripple-binary-codec": "2.
|
|
63
|
-
"ripple-keypairs": "
|
|
64
|
-
"xrpl": "
|
|
61
|
+
"ripple-address-codec": "5.0.1",
|
|
62
|
+
"ripple-binary-codec": "2.8.0",
|
|
63
|
+
"ripple-keypairs": "3.0.0",
|
|
64
|
+
"xrpl": "5.0.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@eslint/eslintrc": "^3.3.5",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"@types/lodash": "^4.17.24",
|
|
71
71
|
"@types/mocha": "^10.0.10",
|
|
72
72
|
"@types/nconf": "^0.10.7",
|
|
73
|
-
"@types/node": "^25.9.
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
73
|
+
"@types/node": "^25.9.3",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.61.1",
|
|
75
|
+
"@typescript-eslint/parser": "^8.61.1",
|
|
76
76
|
"chai": "^6.2.2",
|
|
77
77
|
"chai-as-promised": "^8.0.2",
|
|
78
78
|
"eslint": "^9.39.4",
|
|
79
79
|
"eslint-config-prettier": "^10.1.8",
|
|
80
|
-
"eslint-plugin-chai-friendly": "^1.2.
|
|
80
|
+
"eslint-plugin-chai-friendly": "^1.2.1",
|
|
81
81
|
"eslint-plugin-import": "^2.32.0",
|
|
82
82
|
"eslint-plugin-n": "^18.0.1",
|
|
83
83
|
"eslint-plugin-promise": "^7.3.0",
|
|
@@ -85,6 +85,6 @@
|
|
|
85
85
|
"nconf": "^0.13.0",
|
|
86
86
|
"ts-jest": "^29.4.11",
|
|
87
87
|
"ts-node": "^10.9.2",
|
|
88
|
-
"typescript": "^
|
|
88
|
+
"typescript": "^6.0.3"
|
|
89
89
|
}
|
|
90
90
|
}
|