From 8d16741fdc0abdc5820bd17039d9cbfa70c807e6 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Tue, 19 Sep 2023 14:48:02 +0200 Subject: [PATCH] use v3 of bip39 --- packages/celotool/package.json | 2 +- packages/cli/src/transfer-stable-base.ts | 2 +- packages/protocol/package.json | 2 +- packages/sdk/cryptographic-utils/package.json | 2 +- yarn.lock | 14 +++++++++++++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/celotool/package.json b/packages/celotool/package.json index 44941ed21c7..ed2f3b1a615 100644 --- a/packages/celotool/package.json +++ b/packages/celotool/package.json @@ -24,7 +24,7 @@ "@google-cloud/storage": "^2.4.3", "bignumber.js": "^9.0.0", "bip32": "3.1.0", - "bip39": "^2.6.0", + "bip39": "^3.0.4", "bunyan": "1.8.12", "bunyan-gke-stackdriver": "0.1.2", "compare-versions": "^3.5.1", diff --git a/packages/cli/src/transfer-stable-base.ts b/packages/cli/src/transfer-stable-base.ts index ed1bd100822..f3901c0ea0b 100644 --- a/packages/cli/src/transfer-stable-base.ts +++ b/packages/cli/src/transfer-stable-base.ts @@ -1,6 +1,6 @@ import { StableToken } from '@celo/contractkit' -import { StableTokenWrapper } from '@celo/contractkit/lib/wrappers/StableTokenWrapper' import { stableTokenInfos } from '@celo/contractkit/lib/celo-tokens' +import { StableTokenWrapper } from '@celo/contractkit/lib/wrappers/StableTokenWrapper' import { flags } from '@oclif/command' import { ParserOutput } from '@oclif/parser/lib/parse' import BigNumber from 'bignumber.js' diff --git a/packages/protocol/package.json b/packages/protocol/package.json index c6381ff7608..7dddaf89b31 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -64,7 +64,7 @@ "@truffle/contract": "4.6.10", "@truffle/resolver": "9.0.27", "bignumber.js": "9.1.0", - "bip39": "^2.6.0", + "bip39": "^3.0.4", "chai": "^4.3.6", "chai-subset": "^1.6.0", "csv-parser": "^2.0.0", diff --git a/packages/sdk/cryptographic-utils/package.json b/packages/sdk/cryptographic-utils/package.json index fe19a69626f..3e9b1ae3ac2 100644 --- a/packages/sdk/cryptographic-utils/package.json +++ b/packages/sdk/cryptographic-utils/package.json @@ -32,7 +32,7 @@ "@types/randombytes": "^2.0.0", "bigi": "^1.4.2", "bip32": "^3.1.0", - "bip39": "^2.6.0", + "bip39": "^3.0.4", "buffer-reverse": "^1.0.1", "elliptic": "^6.5.4", "ethereum-cryptography": "1.2.0", diff --git a/yarn.lock b/yarn.lock index 8047b01905a..ee5cb8edcc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3603,6 +3603,11 @@ resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz" integrity sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA== +"@noble/hashes@^1.2.0": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" + integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== + "@noble/secp256k1@1.7.1", "@noble/secp256k1@~1.7.0": version "1.7.1" resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz" @@ -8513,7 +8518,7 @@ bip39@2.5.0: safe-buffer "^5.0.1" unorm "^1.3.3" -bip39@^2.2.0, bip39@^2.5.0, bip39@^2.6.0: +bip39@^2.2.0, bip39@^2.5.0: version "2.6.0" resolved "https://registry.npmjs.org/bip39/-/bip39-2.6.0.tgz" integrity sha512-RrnQRG2EgEoqO24ea+Q/fftuPUZLmrEM3qNhhGsA3PbaXaCW791LTzPuVyx/VprXQcTbPJ3K3UeTna8ZnVl2sg== @@ -8524,6 +8529,13 @@ bip39@^2.2.0, bip39@^2.5.0, bip39@^2.6.0: safe-buffer "^5.0.1" unorm "^1.3.3" +bip39@^3.0.4: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" + integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== + dependencies: + "@noble/hashes" "^1.2.0" + "bip39@https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2": version "3.0.3" resolved "git+ssh://git@github.com/bitcoinjs/bip39.git#d8ea080a18b40f301d4e2219a2991cd2417e83c2"