@bithomp/xrpl-api 3.3.1 → 3.3.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.
|
@@ -58,7 +58,10 @@ const RippleStateToTrustLine = (ledgerEntry, account) => {
|
|
|
58
58
|
const balance = ledgerEntry.HighLimit.issuer === account && ledgerEntry.Balance.value.startsWith("-")
|
|
59
59
|
? ledgerEntry.Balance.value.slice(1)
|
|
60
60
|
: ledgerEntry.Balance.value;
|
|
61
|
-
|
|
61
|
+
let lockedBalance = ledgerEntry.LockedBalance?.value;
|
|
62
|
+
if (lockedBalance && lockedBalance.startsWith("-")) {
|
|
63
|
+
lockedBalance = lockedBalance.slice(1);
|
|
64
|
+
}
|
|
62
65
|
let lockCount = undefined;
|
|
63
66
|
if (lockedBalance) {
|
|
64
67
|
lockCount = ledgerEntry.LockCount;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AMM_LP_TOKEN_REGEX: RegExp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
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",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
44
44
|
"lint": "eslint",
|
|
45
45
|
"prepare": "npm run build",
|
|
46
|
-
"prepublishOnly": "npm test && npm run lint",
|
|
46
|
+
"-prepublishOnly": "npm test && npm run lint",
|
|
47
47
|
"preversion": "npm run lint",
|
|
48
48
|
"version": "npm run format && git add -A src",
|
|
49
49
|
"postversion": "git push && git push --tags"
|