Compare commits

..

1 Commits

Author SHA1 Message Date
Jackson Mills
7880662ac8 Publish
- ripple-address-codec@4.2.1
 - ripple-binary-codec@1.2.1
 - ripple-keypairs@1.1.1
 - xrpl@2.0.3
2021-12-01 15:24:31 -08:00
15 changed files with 92 additions and 233 deletions

151
package-lock.json generated
View File

@@ -719,6 +719,7 @@
}, },
"node_modules/@es-joy/jsdoccomment": { "node_modules/@es-joy/jsdoccomment": {
"version": "0.12.0", "version": "0.12.0",
"resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.12.0.tgz",
"integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==", "integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
@@ -732,6 +733,7 @@
}, },
"node_modules/@es-joy/jsdoccomment/node_modules/comment-parser": { "node_modules/@es-joy/jsdoccomment/node_modules/comment-parser": {
"version": "1.2.4", "version": "1.2.4",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.2.4.tgz",
"integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==", "integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"dev": true, "dev": true,
"engines": { "engines": {
@@ -2794,13 +2796,6 @@
"@babel/types": "^7.3.0" "@babel/types": "^7.3.0"
} }
}, },
"node_modules/@types/brorand": {
"version": "1.0.30",
"integrity": "sha1-NmaYVFCddw4TA3xYBMyAlfwcors=",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/chai": { "node_modules/@types/chai": {
"version": "4.2.22", "version": "4.2.22",
"integrity": "sha512-tFfcE+DSTzWAgifkjik9AySNqIyNoYwmR+uecPwwD/XRNfvOjmC/FjCxpiUGDkDVDphPfCUecSQVFw+lN3M3kQ==", "integrity": "sha512-tFfcE+DSTzWAgifkjik9AySNqIyNoYwmR+uecPwwD/XRNfvOjmC/FjCxpiUGDkDVDphPfCUecSQVFw+lN3M3kQ==",
@@ -2808,6 +2803,7 @@
}, },
"node_modules/@types/create-hash": { "node_modules/@types/create-hash": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@types/create-hash/-/create-hash-1.2.2.tgz",
"integrity": "sha512-Fg8/kfMJObbETFU/Tn+Y0jieYewryLrbKwLCEIwPyklZZVY2qB+64KFjhplGSw+cseZosfFXctXO+PyIYD8iZQ==", "integrity": "sha512-Fg8/kfMJObbETFU/Tn+Y0jieYewryLrbKwLCEIwPyklZZVY2qB+64KFjhplGSw+cseZosfFXctXO+PyIYD8iZQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
@@ -2898,7 +2894,9 @@
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "16.11.11", "version": "16.11.11",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==" "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==",
"dev": true
}, },
"node_modules/@types/normalize-package-data": { "node_modules/@types/normalize-package-data": {
"version": "2.4.1", "version": "2.4.1",
@@ -4887,6 +4885,7 @@
}, },
"node_modules/comment-parser": { "node_modules/comment-parser": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.0.tgz",
"integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==", "integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==",
"dev": true, "dev": true,
"engines": { "engines": {
@@ -6051,6 +6050,7 @@
}, },
"node_modules/eslint-plugin-consistent-default-export-name": { "node_modules/eslint-plugin-consistent-default-export-name": {
"version": "0.0.14", "version": "0.0.14",
"resolved": "https://registry.npmjs.org/eslint-plugin-consistent-default-export-name/-/eslint-plugin-consistent-default-export-name-0.0.14.tgz",
"integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==", "integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
@@ -6090,8 +6090,8 @@
} }
}, },
"node_modules/eslint-plugin-import": { "node_modules/eslint-plugin-import": {
"version": "2.25.3", "version": "2.25.2",
"integrity": "sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==", "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"array-includes": "^3.1.4", "array-includes": "^3.1.4",
@@ -6099,9 +6099,9 @@
"debug": "^2.6.9", "debug": "^2.6.9",
"doctrine": "^2.1.0", "doctrine": "^2.1.0",
"eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-node": "^0.3.6",
"eslint-module-utils": "^2.7.1", "eslint-module-utils": "^2.7.0",
"has": "^1.0.3", "has": "^1.0.3",
"is-core-module": "^2.8.0", "is-core-module": "^2.7.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"object.values": "^1.1.5", "object.values": "^1.1.5",
@@ -6141,6 +6141,7 @@
}, },
"node_modules/eslint-plugin-jsdoc": { "node_modules/eslint-plugin-jsdoc": {
"version": "37.1.0", "version": "37.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-37.1.0.tgz",
"integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==", "integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
@@ -6163,6 +6164,7 @@
}, },
"node_modules/eslint-plugin-jsdoc/node_modules/debug": { "node_modules/eslint-plugin-jsdoc/node_modules/debug": {
"version": "4.3.3", "version": "4.3.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
@@ -7195,6 +7197,19 @@
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"dev": true "dev": true
}, },
"node_modules/fsevents": {
"version": "2.3.2",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": { "node_modules/function-bind": {
"version": "1.1.1", "version": "1.1.1",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
@@ -9805,6 +9820,7 @@
}, },
"node_modules/jsdoc-type-pratt-parser": { "node_modules/jsdoc-type-pratt-parser": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-2.0.0.tgz",
"integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==", "integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==",
"dev": true, "dev": true,
"engines": { "engines": {
@@ -12750,6 +12766,7 @@
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "2.5.0", "version": "2.5.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz",
"integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==", "integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==",
"dev": true, "dev": true,
"bin": { "bin": {
@@ -15558,8 +15575,8 @@
} }
}, },
"node_modules/typedoc": { "node_modules/typedoc": {
"version": "0.22.10", "version": "0.22.8",
"integrity": "sha512-hQYZ4WtoMZ61wDC6w10kxA42+jclWngdmztNZsDvIz7BMJg7F2xnT+uYsUa7OluyKossdFj9E9Ye4QOZKTy8SA==", "integrity": "sha512-92S+YzyhospdXN5rnkYUTgirdTYqNWY7NP9vco+IqQQoiSXzVSUsawVro+tMyEEsWUS7EMaJ2YOjB9uE0CBi6A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"glob": "^7.2.0", "glob": "^7.2.0",
@@ -15575,7 +15592,7 @@
"node": ">= 12.10.0" "node": ">= 12.10.0"
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x" "typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x"
} }
}, },
"node_modules/typedoc/node_modules/glob": { "node_modules/typedoc/node_modules/glob": {
@@ -15603,6 +15620,7 @@
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.5.2", "version": "4.5.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"dev": true, "dev": true,
"bin": { "bin": {
@@ -16462,16 +16480,6 @@
"resolved": "packages/xrpl/src", "resolved": "packages/xrpl/src",
"link": true "link": true
}, },
"node_modules/xrpl-secret-numbers": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/xrpl-secret-numbers/-/xrpl-secret-numbers-0.3.3.tgz",
"integrity": "sha512-D6VeXQVJcWQllNDZtX/h+hlnk06bP1EkVZhm14qnEwR8vE/svZJuwrYJQIREkglOJyeZ/+09CHh2iDXgI2ZclQ==",
"dependencies": {
"@types/brorand": "^1.0.30",
"brorand": "^1.1.0",
"ripple-keypairs": "^1.0.3"
}
},
"node_modules/xtend": { "node_modules/xtend": {
"version": "4.0.2", "version": "4.0.2",
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
@@ -16599,8 +16607,8 @@
} }
}, },
"packages/ripple-address-codec": { "packages/ripple-address-codec": {
"version": "4.2.2", "version": "4.2.1-beta.0",
"integrity": "sha512-+SwDjVS3yBetAPwvLTE2un/WDyaimMTFo5VmvJ7j0Sei28moBtn0lo9RV/CXAtlzp2gWXT4rKml8ynMf8lGO+w==", "integrity": "sha512-9QhBNDiWjwj7l+WQ7H7klXF/VwxVj2Q0HRhd4vLCueTPoxUtaNQyfvUZFiXJrqxg0heM3/iWxupkq4TwrXgSuQ==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"base-x": "3.0.9", "base-x": "3.0.9",
@@ -16611,8 +16619,8 @@
} }
}, },
"packages/ripple-binary-codec": { "packages/ripple-binary-codec": {
"version": "1.2.2", "version": "1.2.1-beta.0",
"integrity": "sha512-ojFBSkr2qP1th9ynEp1wGNi2n/lhsMRR+geIDh31W/CuKBDMzRHu4xLfGdoJb7L39oQl1v2fbc+6tuBB6+1JMQ==", "integrity": "sha512-XMRCbFXyG+dGp3x7tMs9IwA+FVWPPaGjdHYW2+g4Q/WQJqFp5MRED+jjOBOUafmrW4TUsOn1PEEdbB4ozWbDBw==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"assert": "^2.0.0", "assert": "^2.0.0",
@@ -16620,7 +16628,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
}, },
"engines": { "engines": {
"node": ">=10.22.0" "node": ">=10.22.0"
@@ -16635,23 +16643,23 @@
} }
}, },
"packages/ripple-keypairs": { "packages/ripple-keypairs": {
"version": "1.1.2", "version": "1.1.1-beta.0",
"integrity": "sha512-8qIQTdTDGmCjMOnqKuRo1eD3tq/s5prTuGXktcE33DteB6928VHD00IyGFV81JFjGwJlejco1yWSvB5Du4+Owg==", "integrity": "sha512-Zlmbtn2YUpW4uKlLm2/tpkY5RC/EXQlkJwIIKp0AoF9D23pJ43/EuipNW2F6qURdbkUezDwB0bMV7uRXip3x2w==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bn.js": "^5.1.1", "bn.js": "^5.1.1",
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
}, },
"engines": { "engines": {
"node": ">= 10" "node": ">= 10"
} }
}, },
"packages/xrpl": { "packages/xrpl": {
"version": "2.0.4", "version": "2.0.3-beta.0",
"integrity": "sha512-7aGYp4baokxA0J4xirdY4cUrS8ALQYVF0jAAIrzGxzCRjlOqm6NRgXyiETvxcDU5A/Ecyd9kDD1b3ovKBdL3PA==", "integrity": "sha512-NmrSYpXym7NzGABeXU1H8g4ZtCxRhr/3wu0lguxzcIYpcKPgWLYimg+s9NLLNbPWTZdxXu9SeSWu5zh4gyqAeA==",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bignumber.js": "^9.0.0", "bignumber.js": "^9.0.0",
@@ -16659,11 +16667,10 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.1-beta.0",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.1-beta.0",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.1-beta.0",
"ws": "^8.2.2", "ws": "^8.2.2"
"xrpl-secret-numbers": "^0.3.3"
}, },
"devDependencies": { "devDependencies": {
"xrpl-local": "file:./src" "xrpl-local": "file:./src"
@@ -16692,6 +16699,8 @@
} }
}, },
"packages/xrpl/src": { "packages/xrpl/src": {
"name": "xrpl-local",
"version": "0.0.1",
"dev": true "dev": true
} }
}, },
@@ -17178,6 +17187,7 @@
}, },
"@es-joy/jsdoccomment": { "@es-joy/jsdoccomment": {
"version": "0.12.0", "version": "0.12.0",
"resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.12.0.tgz",
"integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==", "integrity": "sha512-Gw4/j9v36IKY8ET+W0GoOzrRw17xjf21EIFFRL3zx21fF5MnqmeNpNi+PU/LKjqLpPb2Pw2XdlJbYM31VVo/PQ==",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -17188,6 +17198,7 @@
"dependencies": { "dependencies": {
"comment-parser": { "comment-parser": {
"version": "1.2.4", "version": "1.2.4",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.2.4.tgz",
"integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==", "integrity": "sha512-pm0b+qv+CkWNriSTMsfnjChF9kH0kxz55y44Wo5le9qLxMj5xDQAaEd9ZN1ovSuk9CsrncWaFwgpOMg7ClJwkw==",
"dev": true "dev": true
} }
@@ -18841,13 +18852,6 @@
"@babel/types": "^7.3.0" "@babel/types": "^7.3.0"
} }
}, },
"@types/brorand": {
"version": "1.0.30",
"integrity": "sha1-NmaYVFCddw4TA3xYBMyAlfwcors=",
"requires": {
"@types/node": "*"
}
},
"@types/chai": { "@types/chai": {
"version": "4.2.22", "version": "4.2.22",
"integrity": "sha512-tFfcE+DSTzWAgifkjik9AySNqIyNoYwmR+uecPwwD/XRNfvOjmC/FjCxpiUGDkDVDphPfCUecSQVFw+lN3M3kQ==", "integrity": "sha512-tFfcE+DSTzWAgifkjik9AySNqIyNoYwmR+uecPwwD/XRNfvOjmC/FjCxpiUGDkDVDphPfCUecSQVFw+lN3M3kQ==",
@@ -18855,6 +18859,7 @@
}, },
"@types/create-hash": { "@types/create-hash": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@types/create-hash/-/create-hash-1.2.2.tgz",
"integrity": "sha512-Fg8/kfMJObbETFU/Tn+Y0jieYewryLrbKwLCEIwPyklZZVY2qB+64KFjhplGSw+cseZosfFXctXO+PyIYD8iZQ==", "integrity": "sha512-Fg8/kfMJObbETFU/Tn+Y0jieYewryLrbKwLCEIwPyklZZVY2qB+64KFjhplGSw+cseZosfFXctXO+PyIYD8iZQ==",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -18945,7 +18950,9 @@
}, },
"@types/node": { "@types/node": {
"version": "16.11.11", "version": "16.11.11",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==" "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz",
"integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==",
"dev": true
}, },
"@types/normalize-package-data": { "@types/normalize-package-data": {
"version": "2.4.1", "version": "2.4.1",
@@ -20468,6 +20475,7 @@
}, },
"comment-parser": { "comment-parser": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.0.tgz",
"integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==", "integrity": "sha512-hRpmWIKgzd81vn0ydoWoyPoALEOnF4wt8yKD35Ib1D6XC2siLiYaiqfGkYrunuKdsXGwpBpHU3+9r+RVw2NZfA==",
"dev": true "dev": true
}, },
@@ -21403,6 +21411,7 @@
}, },
"eslint-plugin-consistent-default-export-name": { "eslint-plugin-consistent-default-export-name": {
"version": "0.0.14", "version": "0.0.14",
"resolved": "https://registry.npmjs.org/eslint-plugin-consistent-default-export-name/-/eslint-plugin-consistent-default-export-name-0.0.14.tgz",
"integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==", "integrity": "sha512-9+YfYLQchFArcFvg7vHPjJZi3sUUIA5D2DWLmZzFbnmRf+wdX/9lgbKEaiJKfr+3/sYIvP71EdFlpjzOlSbm2Q==",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -21429,8 +21438,8 @@
} }
}, },
"eslint-plugin-import": { "eslint-plugin-import": {
"version": "2.25.3", "version": "2.25.2",
"integrity": "sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg==", "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==",
"dev": true, "dev": true,
"requires": { "requires": {
"array-includes": "^3.1.4", "array-includes": "^3.1.4",
@@ -21438,9 +21447,9 @@
"debug": "^2.6.9", "debug": "^2.6.9",
"doctrine": "^2.1.0", "doctrine": "^2.1.0",
"eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-node": "^0.3.6",
"eslint-module-utils": "^2.7.1", "eslint-module-utils": "^2.7.0",
"has": "^1.0.3", "has": "^1.0.3",
"is-core-module": "^2.8.0", "is-core-module": "^2.7.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"object.values": "^1.1.5", "object.values": "^1.1.5",
@@ -21473,6 +21482,7 @@
}, },
"eslint-plugin-jsdoc": { "eslint-plugin-jsdoc": {
"version": "37.1.0", "version": "37.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-37.1.0.tgz",
"integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==", "integrity": "sha512-DpkFzX5Sqkqzy4MCgowhDXmusWcF1Gn7wYnphdGfWmIkoQr6SwL0jEtltGAVyF5Rj6ACi6ydw0oCCI5hF3yz6w==",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -21489,6 +21499,7 @@
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "4.3.3", "version": "4.3.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
"dev": true, "dev": true,
"requires": { "requires": {
@@ -22244,6 +22255,12 @@
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
"dev": true "dev": true
}, },
"fsevents": {
"version": "2.3.2",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"dev": true,
"optional": true
},
"function-bind": { "function-bind": {
"version": "1.1.1", "version": "1.1.1",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
@@ -24178,6 +24195,7 @@
}, },
"jsdoc-type-pratt-parser": { "jsdoc-type-pratt-parser": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-2.0.0.tgz",
"integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==", "integrity": "sha512-sUuj2j48wxrEpbFjDp1sAesAxPiLT+z0SWVmMafyIINs6Lj5gIPKh3VrkBZu4E/Dv+wHpOot0m6H8zlHQjwqeQ==",
"dev": true "dev": true
}, },
@@ -26424,6 +26442,7 @@
}, },
"prettier": { "prettier": {
"version": "2.5.0", "version": "2.5.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.0.tgz",
"integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==", "integrity": "sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==",
"dev": true "dev": true
}, },
@@ -27076,7 +27095,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
}, },
"dependencies": { "dependencies": {
"buffer": { "buffer": {
@@ -27096,7 +27115,7 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1-beta.0"
} }
}, },
"rsvp": { "rsvp": {
@@ -28550,8 +28569,8 @@
} }
}, },
"typedoc": { "typedoc": {
"version": "0.22.10", "version": "0.22.8",
"integrity": "sha512-hQYZ4WtoMZ61wDC6w10kxA42+jclWngdmztNZsDvIz7BMJg7F2xnT+uYsUa7OluyKossdFj9E9Ye4QOZKTy8SA==", "integrity": "sha512-92S+YzyhospdXN5rnkYUTgirdTYqNWY7NP9vco+IqQQoiSXzVSUsawVro+tMyEEsWUS7EMaJ2YOjB9uE0CBi6A==",
"dev": true, "dev": true,
"requires": { "requires": {
"glob": "^7.2.0", "glob": "^7.2.0",
@@ -28582,6 +28601,7 @@
}, },
"typescript": { "typescript": {
"version": "4.5.2", "version": "4.5.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz",
"integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==",
"dev": true "dev": true
}, },
@@ -29232,12 +29252,11 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.1-beta.0",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.1-beta.0",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.1-beta.0",
"ws": "^8.2.2", "ws": "^8.2.2",
"xrpl-local": "file:src", "xrpl-local": "file:src"
"xrpl-secret-numbers": "^0.3.3"
}, },
"dependencies": { "dependencies": {
"ws": { "ws": {
@@ -29250,16 +29269,6 @@
"xrpl-local": { "xrpl-local": {
"version": "file:packages/xrpl/src" "version": "file:packages/xrpl/src"
}, },
"xrpl-secret-numbers": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/xrpl-secret-numbers/-/xrpl-secret-numbers-0.3.3.tgz",
"integrity": "sha512-D6VeXQVJcWQllNDZtX/h+hlnk06bP1EkVZhm14qnEwR8vE/svZJuwrYJQIREkglOJyeZ/+09CHh2iDXgI2ZclQ==",
"requires": {
"@types/brorand": "^1.0.30",
"brorand": "^1.1.0",
"ripple-keypairs": "^1.0.3"
}
},
"xtend": { "xtend": {
"version": "4.0.2", "version": "4.0.2",
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",

View File

@@ -25,14 +25,6 @@ module.exports = {
extends: ['@xrplf/eslint-config/base'], extends: ['@xrplf/eslint-config/base'],
rules: { rules: {
// Maintain existing line endings
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
// This creates a lot of false positives. We should turn this off in our // This creates a lot of false positives. We should turn this off in our
// general config. // general config.
'jsdoc/require-description-complete-sentence': 'off', 'jsdoc/require-description-complete-sentence': 'off',

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-address-codec", "name": "ripple-address-codec",
"version": "4.2.2", "version": "4.2.1",
"description": "encodes/decodes base58 encoded XRP Ledger identifiers", "description": "encodes/decodes base58 encoded XRP Ledger identifiers",
"files": [ "files": [
"dist/*", "dist/*",

View File

@@ -26,14 +26,6 @@ module.exports = {
extends: ['@xrplf/eslint-config/base'], extends: ['@xrplf/eslint-config/base'],
rules: { rules: {
// Maintain existing line endings
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
// ** TODO ** // ** TODO **
// all of the below are turned off for now during the migration to a // all of the below are turned off for now during the migration to a
// monorepo. They need to actually be addressed! // monorepo. They need to actually be addressed!

View File

@@ -1,9 +1,5 @@
# ripple-binary-codec Release History # ripple-binary-codec Release History
## 1.2.2 (2021-12-2)
- Fix issue where unsupported currency codes weren't being correctly processed
- Added a workaround for rippled UNLModify encoding bug (#1830)
## 1.2.1 (2021-12-1) ## 1.2.1 (2021-12-1)
- Fix issue where npm < 7 could not install the library - Fix issue where npm < 7 could not install the library

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-binary-codec", "name": "ripple-binary-codec",
"version": "1.2.2", "version": "1.2.1",
"description": "XRP Ledger binary codec", "description": "XRP Ledger binary codec",
"files": [ "files": [
"dist/*", "dist/*",
@@ -17,7 +17,7 @@
"buffer": "5.6.0", "buffer": "5.6.0",
"create-hash": "^1.2.0", "create-hash": "^1.2.0",
"decimal.js": "^10.2.0", "decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1"
}, },
"scripts": { "scripts": {
"build": "run-script-os", "build": "run-script-os",

View File

@@ -89,7 +89,7 @@ class Currency extends Hash160 {
if (this.bytes[0] !== 0) { if (this.bytes[0] !== 0) {
this._iso = null this._iso = null
} else if (/^0*$/.test(this.bytes.toString('hex'))) { } else if (code.toString('hex') === '000000') {
this._iso = 'XRP' this._iso = 'XRP'
} else { } else {
this._iso = isoCodeFromHex(code) this._iso = isoCodeFromHex(code)

View File

@@ -69,7 +69,6 @@ describe('Currency', function () {
expect(Currency.from('X8P').toJSON()).toBe('X8P') expect(Currency.from('X8P').toJSON()).toBe('X8P')
expect(Currency.from('USD').toJSON()).toBe('USD') expect(Currency.from('USD').toJSON()).toBe('USD')
}) })
test('can be constructed from a Buffer', function () { test('can be constructed from a Buffer', function () {
const xrp = new Currency(Buffer.alloc(20)) const xrp = new Currency(Buffer.alloc(20))
expect(xrp.iso()).toBe('XRP') expect(xrp.iso()).toBe('XRP')
@@ -78,12 +77,6 @@ describe('Currency', function () {
const currency = '015841551A748AD2C1F76FF6ECB0CCCD00000000' const currency = '015841551A748AD2C1F76FF6ECB0CCCD00000000'
expect(Currency.from(currency).toJSON()).toBe(currency) expect(Currency.from(currency).toJSON()).toBe(currency)
}) })
test('Can handle other non-standard currency codes', () => {
const currency = '0000000000414C6F676F30330000000000000000'
expect(Currency.from(currency).toJSON()).toBe(currency)
})
test('throws on invalid reprs', function () { test('throws on invalid reprs', function () {
expect(() => Currency.from(Buffer.alloc(19))).toThrow() expect(() => Currency.from(Buffer.alloc(19))).toThrow()
expect(() => Currency.from(1)).toThrow() expect(() => Currency.from(1)).toThrow()

View File

@@ -26,14 +26,6 @@ module.exports = {
extends: ['@xrplf/eslint-config/base', 'plugin:mocha/recommended'], extends: ['@xrplf/eslint-config/base', 'plugin:mocha/recommended'],
rules: { rules: {
// Maintain existing line endings
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
// ** TODO ** // ** TODO **
// all of the below are turned off for now during the migration to a // all of the below are turned off for now during the migration to a
// monorepo. They need to actually be addressed! // monorepo. They need to actually be addressed!

View File

@@ -1,6 +1,6 @@
{ {
"name": "ripple-keypairs", "name": "ripple-keypairs",
"version": "1.1.2", "version": "1.1.1",
"description": "Cryptographic key pairs for the XRP Ledger", "description": "Cryptographic key pairs for the XRP Ledger",
"scripts": { "scripts": {
"build": "tsc -b", "build": "tsc -b",
@@ -21,7 +21,7 @@
"brorand": "^1.0.5", "brorand": "^1.0.5",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",
"hash.js": "^1.0.3", "hash.js": "^1.0.3",
"ripple-address-codec": "^4.2.2" "ripple-address-codec": "^4.2.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -28,13 +28,6 @@ module.exports = {
plugins: [], plugins: [],
extends: ['@xrplf/eslint-config/base', 'plugin:mocha/recommended'], extends: ['@xrplf/eslint-config/base', 'plugin:mocha/recommended'],
rules: { rules: {
// Maintain existing line endings
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
// Certain rippled APIs require snake_case naming // Certain rippled APIs require snake_case naming
'@typescript-eslint/naming-convention': [ '@typescript-eslint/naming-convention': [
'error', 'error',

View File

@@ -4,6 +4,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
## 2.0.3 (2021-12-1) ## 2.0.3 (2021-12-1)
* Removes requirement for npm version > 7 for non-contributors * Removes requirement for npm version > 7 for non-contributors
* Added a workaround for rippled UNLModify encoding bug (#1830)
* For contributors - * For contributors -
* Renamed the master branch to main, and now just have one main branch * Renamed the master branch to main, and now just have one main branch
* Fixed issues which made Windows contributors unable to build the library * Fixed issues which made Windows contributors unable to build the library

View File

@@ -1,6 +1,6 @@
{ {
"name": "xrpl", "name": "xrpl",
"version": "2.0.4", "version": "2.0.3",
"license": "ISC", "license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser", "description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [ "files": [
@@ -24,11 +24,10 @@
"bip39": "^3.0.4", "bip39": "^3.0.4",
"https-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"ripple-address-codec": "^4.2.2", "ripple-address-codec": "^4.2.1",
"ripple-binary-codec": "^1.2.2", "ripple-binary-codec": "^1.2.1",
"ripple-keypairs": "^1.1.2", "ripple-keypairs": "^1.1.1",
"ws": "^8.2.2", "ws": "^8.2.2"
"xrpl-secret-numbers": "^0.3.3"
}, },
"devDependencies": { "devDependencies": {
"xrpl-local": "file:./src" "xrpl-local": "file:./src"

View File

@@ -19,7 +19,6 @@ import {
verify, verify,
sign, sign,
} from 'ripple-keypairs' } from 'ripple-keypairs'
import { Utils } from 'xrpl-secret-numbers'
import ECDSA from '../ECDSA' import ECDSA from '../ECDSA'
import { ValidationError } from '../errors' import { ValidationError } from '../errors'
@@ -198,35 +197,6 @@ class Wallet {
}) })
} }
/**
* Derives a wallet from secret numbers.
*
* @param secretNumbers - A string consisting of 8 times 6 numbers (whitespace delimited) used to derive a wallet.
* @param opts - (Optional) Options to derive a Wallet.
* @param opts.masterAddress - Include if a Wallet uses a Regular Key Pair. It must be the master address of the account.
* @param opts.algorithm - The digital signature algorithm to generate an address for.
* @returns A Wallet derived from secret numbers.
* @throws ValidationError if unable to derive private key from secret number input.
*/
public static fromSecretNumbers(
secretNumbers: string[] | string,
opts: { masterAddress?: string; algorithm?: ECDSA } = {},
): Wallet {
const numbersArray: string[] = []
if (typeof secretNumbers === 'string') {
numbersArray.concat(Utils.parseSecretString(secretNumbers))
} else if (Array.isArray(secretNumbers)) {
numbersArray.concat(secretNumbers)
} else {
throw new ValidationError('Unable to parse the given secret numbers.')
}
const entropy = Utils.secretToEntropy(numbersArray)
return Wallet.fromEntropy(entropy, opts)
}
/** /**
* Derives a wallet from an entropy (array of random numbers). * Derives a wallet from an entropy (array of random numbers).
* *

View File

@@ -226,84 +226,6 @@ describe('Wallet', function () {
}) })
}) })
describe('fromSecretNumbers', function () {
const secretNumbersString =
'399150 474506 009147 088773 432160 282843 253738 605430'
const secretNumbersArray = [
'399150',
'474506',
'009147',
'088773',
'432160',
'282843',
'253738',
'605430',
]
const publicKey =
'03BFC2F7AE242C3493187FA0B72BE97B2DF71194FB772E507FF9DEA0AD13CA1625'
const privateKey =
'00B6FE8507D977E46E988A8A94DB3B8B35E404B60F8B11AC5213FA8B5ABC8A8D19'
const publicKeyED25519 =
'ED8079E575450E256C496578480020A33E19B579D58A2DB8FF13FC6B05B9229DE3'
const privateKeyED25519 =
'EDD2AF6288A903DED9860FC62E778600A985BDF804E40BD8266505553E3222C3DA'
it('derives a wallet using default algorithm', function () {
const wallet = Wallet.fromSecretNumbers(secretNumbersString)
assert.equal(wallet.publicKey, publicKey)
assert.equal(wallet.privateKey, privateKey)
})
it('derives a wallet from secret numbers as an array using default algorithm', function () {
const wallet = Wallet.fromSecretNumbers(secretNumbersArray)
assert.equal(wallet.publicKey, publicKey)
assert.equal(wallet.privateKey, privateKey)
})
it('derives a wallet using algorithm ecdsa-secp256k1', function () {
const algorithm = ECDSA.secp256k1
const wallet = Wallet.fromSecretNumbers(secretNumbersString, {
algorithm,
})
assert.equal(wallet.publicKey, publicKey)
assert.equal(wallet.privateKey, privateKey)
})
it('derives a wallet using algorithm ed25519', function () {
const algorithm = ECDSA.ed25519
const wallet = Wallet.fromSecretNumbers(secretNumbersString, {
algorithm,
})
assert.equal(wallet.publicKey, publicKeyED25519)
assert.equal(wallet.privateKey, privateKeyED25519)
})
it('derives a wallet using a Regular Key Pair', function () {
const masterAddress = 'rUAi7pipxGpYfPNg3LtPcf2ApiS8aw9A93'
const regularKeyPair = {
secretNumbers:
'399150 474506 009147 088773 432160 282843 253738 605430',
publicKey:
'03BFC2F7AE242C3493187FA0B72BE97B2DF71194FB772E507FF9DEA0AD13CA1625',
privateKey:
'00B6FE8507D977E46E988A8A94DB3B8B35E404B60F8B11AC5213FA8B5ABC8A8D19',
}
const wallet = Wallet.fromSecretNumbers(regularKeyPair.secretNumbers, {
masterAddress,
})
assert.equal(wallet.publicKey, regularKeyPair.publicKey)
assert.equal(wallet.privateKey, regularKeyPair.privateKey)
assert.equal(wallet.classicAddress, masterAddress)
})
})
describe('fromEntropy', function () { describe('fromEntropy', function () {
let entropy let entropy
const publicKey = const publicKey =