From ad8ac4091b960f67562ce9fd38301394a268640e Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 25 Jul 2023 09:14:04 -0400 Subject: [PATCH] update to monero-javascript v0.8.0 --- package-lock.json | 14 +++++++------- package.json | 2 +- src/HavenoClient.test.ts | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2c6e8ad..0a38d3d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsx-a11y": "^6.7.1", "jest": "^26.6.0", - "monero-javascript": "^0.7.10", + "monero-javascript": "^0.8.0", "typedoc": "^0.23.26", "typedoc-plugin-missing-exports": "^1.0.0", "typedoc-plugin-rename-defaults": "^0.6.4", @@ -11711,9 +11711,9 @@ } }, "node_modules/monero-javascript": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/monero-javascript/-/monero-javascript-0.7.10.tgz", - "integrity": "sha512-A8BjurV/+wfe+bmqF+Tv4+Kir0D6qTSwhbGjMRxPq3a6a/7lmBud6ocFtvGdGmqVw5wWSX7bcZmccUrBhbdDGQ==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/monero-javascript/-/monero-javascript-0.8.0.tgz", + "integrity": "sha512-szn5M09eELER8OH+ZyyeDUwd/3pap0tah5n2pc3HsH0Ry1Jbbm3l8WM2gk4bpMjATejfC1mrPNY1LM3T1rDugQ==", "dev": true, "dependencies": { "ajv": "^6.12.6", @@ -23877,9 +23877,9 @@ } }, "monero-javascript": { - "version": "0.7.10", - "resolved": "https://registry.npmjs.org/monero-javascript/-/monero-javascript-0.7.10.tgz", - "integrity": "sha512-A8BjurV/+wfe+bmqF+Tv4+Kir0D6qTSwhbGjMRxPq3a6a/7lmBud6ocFtvGdGmqVw5wWSX7bcZmccUrBhbdDGQ==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/monero-javascript/-/monero-javascript-0.8.0.tgz", + "integrity": "sha512-szn5M09eELER8OH+ZyyeDUwd/3pap0tah5n2pc3HsH0Ry1Jbbm3l8WM2gk4bpMjATejfC1mrPNY1LM3T1rDugQ==", "dev": true, "requires": { "ajv": "^6.12.6", diff --git a/package.json b/package.json index 7d976ce8..d855205f 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsx-a11y": "^6.7.1", "jest": "^26.6.0", - "monero-javascript": "^0.7.10", + "monero-javascript": "^0.8.0", "typedoc": "^0.23.26", "typedoc-plugin-missing-exports": "^1.0.0", "typedoc-plugin-rename-defaults": "^0.6.4", diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index c71756e4..4cd5980c 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -76,7 +76,7 @@ const TestConfig = { walletPassword: "abc123", defaultPath: "funding_wallet-" + getBaseCurrencyNetwork(), minimumFunding: BigInt("5000000000000"), - mnemonic: "origin hickory pavements tudor sizes hornet tether segments sack technical elbow unsafe legion nitrogen adapt yearbook idols fuzzy pitched goes tusks elbow erase fossil erase", + seed: "origin hickory pavements tudor sizes hornet tether segments sack technical elbow unsafe legion nitrogen adapt yearbook idols fuzzy pitched goes tusks elbow erase fossil erase", primaryAddress: "9xSyMy1r9h3BVjMrF3CTqQCQy36yCfkpn7uVfMyTUbez3hhumqBUqGUNNALjcd7f1HJBRdeH82bCC3veFHW7z3xm28gug4d", restoreHeight: 150 }, @@ -315,7 +315,7 @@ beforeAll(async () => { HavenoUtils.log(0, "Funding wallet unlocked balance: " + await fundingWallet.getUnlockedBalance()); const subaddress = await fundingWallet.createSubaddress(0); HavenoUtils.log(0, "Funding wallet height: " + await fundingWallet.getHeight()); - HavenoUtils.log(0, "Funding wallet mnemonic: " + await fundingWallet.getMnemonic()); + HavenoUtils.log(0, "Funding wallet seed: " + await fundingWallet.getSeed()); HavenoUtils.log(0, "Funding wallet primary address: " + await fundingWallet.getPrimaryAddress()); HavenoUtils.log(0, "Funding wallet new subaddress: " + subaddress.getAddress()); @@ -2911,7 +2911,7 @@ async function initFundingWallet() { await fundingWallet.createWallet({ path: TestConfig.fundingWallet.defaultPath, password: TestConfig.fundingWallet.walletPassword, - mnemonic: TestConfig.fundingWallet.mnemonic, + seed: TestConfig.fundingWallet.seed, restoreHeight: TestConfig.fundingWallet.restoreHeight }); } else {