@bithomp/xrpl-api 2.7.2 → 2.7.4
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.
|
@@ -21,7 +21,12 @@ function sortHelperAccountNFToken(a, b) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.sortHelperAccountNFToken = sortHelperAccountNFToken;
|
|
23
23
|
function cipheredTaxon(tokenSeq, taxon) {
|
|
24
|
-
|
|
24
|
+
const m = 384160001n;
|
|
25
|
+
const c = 2459n;
|
|
26
|
+
const max = 4294967296n;
|
|
27
|
+
const p1 = (m * BigInt(tokenSeq)) % max;
|
|
28
|
+
const p2 = (p1 + c) % max;
|
|
29
|
+
return (taxon ^ Number(p2)) >>> 0;
|
|
25
30
|
}
|
|
26
31
|
exports.cipheredTaxon = cipheredTaxon;
|
|
27
32
|
function parseNFTokenID(nftokenID) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bithomp/xrpl-api",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
39
39
|
"lint": "tslint -p tsconfig.json",
|
|
40
40
|
"prepare": "npm run build",
|
|
41
|
-
"prepublishOnly": "npm test && npm run lint",
|
|
41
|
+
"-prepublishOnly": "npm test && npm run lint",
|
|
42
42
|
"preversion": "npm run lint",
|
|
43
43
|
"version": "npm run format && git add -A src",
|
|
44
44
|
"postversion": "git push && git push --tags"
|