diff --git a/packages/celotool/package.json b/packages/celotool/package.json index bf8f5f95cea..8e168337ab4 100644 --- a/packages/celotool/package.json +++ b/packages/celotool/package.json @@ -7,12 +7,12 @@ "license": "Apache-2.0", "dependencies": { "@celo/base": "^6.0.0", - "@celo/connect": "^5.1.1", - "@celo/cryptographic-utils": "^5.0.6", - "@celo/contractkit": "^6.0.0", + "@celo/connect": "^5.1.2", + "@celo/cryptographic-utils": "^5.0.7", + "@celo/contractkit": "^7.0.0", "@celo/env-tests": "1.0.3", - "@celo/explorer": "^5.0.7", - "@celo/governance": "^5.0.7", + "@celo/explorer": "^5.0.8", + "@celo/governance": "^5.0.9", "@celo/network-utils": "^5.0.5", "@celo/utils": "^5.0.6", "@ethereumjs/util": "8.0.5", diff --git a/packages/celotool/src/cmds/unfreeze_contracts.ts b/packages/celotool/src/cmds/unfreeze_contracts.ts index b0f49aa4f70..edc75141e4a 100644 --- a/packages/celotool/src/cmds/unfreeze_contracts.ts +++ b/packages/celotool/src/cmds/unfreeze_contracts.ts @@ -8,10 +8,9 @@ import yargs from 'yargs' export const command = 'unfreeze-contracts' -export const describe = 'command for unfreezing epoch rewards and the exchange' +export const describe = 'command for unfreezing epoch rewards' interface UnfreezeContractsArgv extends CeloEnvArgv { - exchange: boolean rewards: boolean freeze: boolean precheck: boolean @@ -20,11 +19,6 @@ interface UnfreezeContractsArgv extends CeloEnvArgv { export const builder = (argv: yargs.Argv) => { return addCeloEnvMiddleware(argv) - .option('exchange', { - type: 'boolean', - description: 'Affect the exchange', - default: true, - }) .option('rewards', { type: 'boolean', description: 'Affect epoch rewards', @@ -57,13 +51,12 @@ export const handler = async (argv: UnfreezeContractsArgv) => { console.info(`Using account: ${account}`) kit.connection.defaultAccount = account - const [exchange, epochRewards] = await Promise.all([ - argv.exchange ? kit._web3Contracts.getExchange() : null, + const [epochRewards, freezerContract] = await Promise.all([ argv.rewards ? kit._web3Contracts.getEpochRewards() : null, + kit._web3Contracts.getFreezer(), ]) - const freezerContract = await kit._web3Contracts.getFreezer() - for (const [name, contract] of Object.entries({ exchange, epochRewards })) { + for (const [name, contract] of Object.entries({ epochRewards })) { if (contract === null) { continue } diff --git a/packages/env-tests/package.json b/packages/env-tests/package.json index dd5b47baccc..ab4c6e84233 100644 --- a/packages/env-tests/package.json +++ b/packages/env-tests/package.json @@ -6,11 +6,11 @@ "main": "index.js", "license": "MIT", "dependencies": { - "@celo/contractkit": "^6.0.0", + "@celo/contractkit": "^7.0.0", "@celo/utils": "^5.0.6", "@celo/base": "^6.0.0", - "@celo/connect": "^5.1.1", - "@celo/cryptographic-utils": "^5.0.6", + "@celo/connect": "^5.1.2", + "@celo/cryptographic-utils": "^5.0.7", "bignumber.js": "^9.0.0", "bunyan": "1.8.12", "bunyan-gke-stackdriver": "0.1.2", diff --git a/packages/env-tests/src/monorepoRun.ts b/packages/env-tests/src/monorepoRun.ts index da2a572e30a..81362a33c64 100644 --- a/packages/env-tests/src/monorepoRun.ts +++ b/packages/env-tests/src/monorepoRun.ts @@ -3,7 +3,6 @@ import Web3 from 'web3' import { loadFromEnvFile } from './env' import { rootLogger } from './logger' import { clearAllFundsToRoot, parseStableTokensList } from './scaffold' -import { runExchangeTest } from './tests/exchange' import { runOracleTest } from './tests/oracle' import { runReserveTest } from './tests/reserve' import { runTransfersTest } from './tests/transfer' @@ -36,7 +35,6 @@ function runTests() { // TODO: Assert maximum loss after test runTransfersTest(context, stableTokensToTest) - runExchangeTest(context, stableTokensToTest) runOracleTest(context) runReserveTest(context) // TODO: Governance Proposals diff --git a/packages/env-tests/src/tests/exchange.ts b/packages/env-tests/src/tests/exchange.ts deleted file mode 100644 index fe956d94cd2..00000000000 --- a/packages/env-tests/src/tests/exchange.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { sleep } from '@celo/base' -import { StableToken } from '@celo/contractkit' -// eslint-disable-next-line import/no-extraneous-dependencies -import { describe, test } from '@jest/globals' -import BigNumber from 'bignumber.js' -import { EnvTestContext } from '../context' -import { fundAccountWithStableToken, getKey, ONE, TestAccounts } from '../scaffold' - -export function runExchangeTest(context: EnvTestContext, stableTokensToTest: StableToken[]) { - describe('Exchange Test', () => { - const logger = context.logger.child({ test: 'exchange' }) - - for (const stableToken of stableTokensToTest) { - test(`exchange ${stableToken} for CELO`, async () => { - const stableTokenAmountToFund = ONE - await fundAccountWithStableToken( - context, - TestAccounts.Exchange, - stableTokenAmountToFund, - stableToken - ) - const stableTokenInstance = await context.kit.celoTokens.getWrapper(stableToken) - - const from = await getKey(context.mnemonic, TestAccounts.Exchange) - context.kit.connection.addAccount(from.privateKey) - context.kit.defaultAccount = from.address - context.kit.connection.defaultFeeCurrency = stableTokenInstance.address - const goldToken = await context.kit.contracts.getGoldToken() - - const exchange = await context.kit.contracts.getExchange(stableToken) - const previousGoldBalance = await goldToken.balanceOf(from.address) - const stableTokenAmountToSell = stableTokenAmountToFund.times(0.5) - const goldAmount = await exchange.getBuyTokenAmount(stableTokenAmountToSell, false) - logger.debug( - { rate: goldAmount.toString(), stabletoken: stableToken }, - `quote selling ${stableToken}` - ) - - const approveTx = await stableTokenInstance - .approve(exchange.address, stableTokenAmountToSell.toString()) - .send() - await approveTx.waitReceipt() - const sellTx = await exchange - .sell( - stableTokenAmountToSell, - // Allow 5% deviation from the quoted price - goldAmount.times(0.95).integerValue(BigNumber.ROUND_DOWN).toString(), - false - ) - .send() - await sellTx.getHash() - const receipt = await sellTx.waitReceipt() - logger.debug({ stabletoken: stableToken, receipt }, `Sold ${stableToken}`) - - const goldAmountToSell = (await goldToken.balanceOf(from.address)).minus( - previousGoldBalance - ) - - logger.debug( - { - goldAmount: goldAmount.toString(), - goldAmountToSell: goldAmountToSell.toString(), - stabletoken: stableToken, - }, - 'Loss to exchange' - ) - - const approveGoldTx = await goldToken - .approve(exchange.address, goldAmountToSell.toString()) - .send() - await approveGoldTx.waitReceipt() - await sleep(5000) - const sellGoldTx = await exchange - .sellGold( - goldAmountToSell, - // Assume we can get at least 80 % back - stableTokenAmountToSell.times(0.8).integerValue(BigNumber.ROUND_DOWN).toString() - ) - .send() - const sellGoldReceipt = await sellGoldTx.waitReceipt() - - logger.debug({ stabletoken: stableToken, receipt: sellGoldReceipt }, 'Sold CELO') - }) - } - }) -} diff --git a/packages/metadata-crawler/package.json b/packages/metadata-crawler/package.json index c1665e14469..5c1fb1ed824 100644 --- a/packages/metadata-crawler/package.json +++ b/packages/metadata-crawler/package.json @@ -9,8 +9,8 @@ "homepage": "https://github.com/celo-org/celo-monorepo/tree/master/packages/metadata-crawler", "repository": "https://github.com/celo-org/celo-monorepo/tree/master/packages/metadata-crawler", "dependencies": { - "@celo/connect": "^5.1.1", - "@celo/contractkit": "^6.0.0", + "@celo/connect": "^5.1.2", + "@celo/contractkit": "^7.0.0", "@celo/utils": "^5.0.6", "@types/pg": "^7.14.3", "bunyan": "1.8.12", diff --git a/packages/protocol/package.json b/packages/protocol/package.json index 46931435475..95f7ebed513 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -60,10 +60,10 @@ "@0x/subproviders": "^7.0.1", "@celo/base": "^6.0.0", "@celo/bls12377js": "0.1.1", - "@celo/connect": "^5.1.1", - "@celo/cryptographic-utils": "^5.0.6", + "@celo/connect": "^5.1.2", + "@celo/cryptographic-utils": "^5.0.7", "@celo/utils": "^5.0.6", - "@celo/wallet-local": "^5.1.1", + "@celo/wallet-local": "^5.1.2", "@ethereumjs/util": "8.0.5", "@ethereumjs/vm": "npm:@celo/ethereumjs-vm@6.4.1-unofficial.0", "@ganache/console.log": "0.3.0", diff --git a/yarn.lock b/yarn.lock index 6b5ddf4aa2f..42ddfa8d44a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -810,13 +810,13 @@ "@stablelib/blake2xs" "0.10.4" big-integer "^1.6.44" -"@celo/connect@^5.1.1": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@celo/connect/-/connect-5.1.1.tgz#3abdc925f2c7d871a6ed35ce8c19f31e52e4b64b" - integrity sha512-Pw8xyIT0TpHe7O+HdYPiWigX8Cmin033FzNPLOqkCDszj393utNsufyEGqYgUKLQZuh4IqUW40yVNX/qwwkG9A== +"@celo/connect@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@celo/connect/-/connect-5.1.2.tgz#c8d170ebe1d0f043b932add374718f0fbb239102" + integrity sha512-b0dJsjtTg65PDbfjbuEyOzicB9yyR4AGzppY9zcaUxUktYaK5dePeUOXQoYeZBWCsZ/iAZplUmmU4ITR6/InnQ== dependencies: "@celo/base" "^6.0.0" - "@celo/utils" "^5.0.6" + "@celo/utils" "^6.0.0" "@ethereumjs/util" "8.0.5" "@types/debug" "^4.1.5" "@types/utf8" "^2.1.6" @@ -827,16 +827,16 @@ web3-eth "1.10.0" web3-eth-contract "1.10.0" -"@celo/contractkit@^6.0.0": - version "6.0.0" - resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-6.0.0.tgz#2e9e33a9a29d5a7f6aacc369430719205e48d98a" - integrity sha512-vjIWC2Csuk5wFP9DX4d4/AYN5FHa3cuKlPV3hfB3WlR7HbCXUD8nwuEJi871cId1AvlYk0YZ9X6Kkr3MSYt8rw== +"@celo/contractkit@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@celo/contractkit/-/contractkit-7.0.0.tgz#6878ce9c2b0c381703cfc26195db0678f50b6854" + integrity sha512-Knmg2TeO7W363xMNgOC5ZEKWn8RpsO4ARsq8SDLRq2O4v84GnTMPCh43+sIwmckx/d3tklhXrcHq/oLWiNLXYg== dependencies: "@celo/abis" "10.0.0" "@celo/base" "^6.0.0" - "@celo/connect" "^5.1.1" - "@celo/utils" "^5.0.6" - "@celo/wallet-local" "^5.1.1" + "@celo/connect" "^5.1.2" + "@celo/utils" "^6.0.0" + "@celo/wallet-local" "^5.1.2" "@types/bn.js" "^5.1.0" "@types/debug" "^4.1.5" bignumber.js "^9.0.0" @@ -848,14 +848,14 @@ web3 "1.10.0" web3-core-helpers "1.10.0" -"@celo/cryptographic-utils@^5.0.6": - version "5.0.6" - resolved "https://registry.yarnpkg.com/@celo/cryptographic-utils/-/cryptographic-utils-5.0.6.tgz#a7fa3a147d21cfc1706fd25e1daf4a2ac972ee4b" - integrity sha512-XawBsIt9rQQTt4r8YVvfPjioFu4ParHeQrYSq//53MWkJx3T6JsGCb6YQOIk/+RZ17SxpCUI+LL307Yl9kxTmg== +"@celo/cryptographic-utils@^5.0.7": + version "5.0.7" + resolved "https://registry.yarnpkg.com/@celo/cryptographic-utils/-/cryptographic-utils-5.0.7.tgz#0e8ae2f1e3902dbdd680531ecfa51f85629a6367" + integrity sha512-1svm1tRFbAeCrXu2Ux1Cfu3wz7jJsAz35ffkGdRjW8qfPHrHsxU0kamu9bLbmbwMzmB7sN4jarCMxsTHp8IjVA== dependencies: "@celo/base" "^6.0.0" "@celo/bls12377js" "0.1.1" - "@celo/utils" "^5.0.6" + "@celo/utils" "^6.0.0" "@ethereumjs/util" "8.0.5" "@types/bn.js" "^5.1.0" "@types/elliptic" "^6.4.9" @@ -863,7 +863,7 @@ "@types/randombytes" "^2.0.0" bigi "^1.4.2" bip32 "^3.1.0" - bip39 "https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2" + bip39 "https://github.com/bitcoinjs/bip39#a7ecbfe2e60d0214ce17163d610cad9f7b23140c" buffer-reverse "^1.0.1" elliptic "^6.5.4" ethereum-cryptography "1.2.0" @@ -883,31 +883,31 @@ web3 "1.10.0" web3-core-helpers "1.10.0" -"@celo/explorer@^5.0.7": - version "5.0.7" - resolved "https://registry.yarnpkg.com/@celo/explorer/-/explorer-5.0.7.tgz#4f21a500c62408e89cf6860d11498f3e3a93419c" - integrity sha512-seLl8/rnFCbYyNIO9arg42Z5GeOu+uyPOKcvEIDky9/N3GSWb0PJPJU/ba8xvYj5Mlp62nwgwVoCyK/iH329ug== +"@celo/explorer@^5.0.8": + version "5.0.8" + resolved "https://registry.yarnpkg.com/@celo/explorer/-/explorer-5.0.8.tgz#48e7ec3867f3a82318b66038c1e546ab279a710a" + integrity sha512-2Qadubg9Cs33Vp8y8m2dAj4iTnL5dKgu9u3p+uacrGjWG48tax1hMU+9hpmaR0/Hc/gONNjdK3WzuqfnH02rKQ== dependencies: "@celo/base" "^6.0.0" - "@celo/connect" "^5.1.1" - "@celo/contractkit" "^6.0.0" - "@celo/utils" "^5.0.6" + "@celo/connect" "^5.1.2" + "@celo/contractkit" "^7.0.0" + "@celo/utils" "^6.0.0" "@types/debug" "^4.1.5" bignumber.js "9.0.0" cross-fetch "3.0.6" debug "^4.1.1" -"@celo/governance@^5.0.7": - version "5.0.8" - resolved "https://registry.yarnpkg.com/@celo/governance/-/governance-5.0.8.tgz#04bc768dcba5d4589829bf2904355376dd5c5d71" - integrity sha512-9rV+tUtPWI8pwjJY6TFC5gmf7xzvjfkXiWcf0FpLEnkyIi+GRK5g6eV8bsIBtjIp/OPUC9XRTKHTo2ZqiPjYTw== +"@celo/governance@^5.0.9": + version "5.0.9" + resolved "https://registry.yarnpkg.com/@celo/governance/-/governance-5.0.9.tgz#d7b92598ddd3f249a5e0fd45a6d5565985b1238f" + integrity sha512-PEHK6te4zx5pIqBi8MHqNjJt8flqoO6y/OHHux7labJywIrkOHk8CmEesfYm1ByaREhp7L9Fo4RwE40bf8OY2Q== dependencies: "@celo/abis" "10.0.0" "@celo/base" "^6.0.0" - "@celo/connect" "^5.1.1" - "@celo/contractkit" "^6.0.0" - "@celo/explorer" "^5.0.7" - "@celo/utils" "^5.0.6" + "@celo/connect" "^5.1.2" + "@celo/contractkit" "^7.0.0" + "@celo/explorer" "^5.0.8" + "@celo/utils" "^6.0.0" "@ethereumjs/util" "8.0.5" "@types/debug" "^4.1.5" "@types/inquirer" "^6.5.0" @@ -962,14 +962,32 @@ web3-eth-abi "1.10.0" web3-utils "1.10.0" -"@celo/wallet-base@^5.1.1": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@celo/wallet-base/-/wallet-base-5.1.1.tgz#569cea9d76fef1d89e8912e4a9a677038604600d" - integrity sha512-tDA8ZlXluqUfRlRBenVw4vlNAIfwqunmCkcWfO5SYecH5jb1P9eOmnhqZKfFjBDwD+LbJXjVGs3voiRQZvHXyQ== +"@celo/utils@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@celo/utils/-/utils-6.0.0.tgz#869f45a66c9e13789ca4b61d88dcf5a247f37d5c" + integrity sha512-0jveALnE5WvasJcSAlBB0XnuzhqbKTj51b0+CkWg6aU0eCA0cQEzW4kQVt/X+Wo8d9S18ardmIVkwzrKToBdEA== + dependencies: + "@celo/base" "^6.0.0" + "@ethereumjs/util" "8.0.5" + "@types/elliptic" "^6.4.9" + "@types/node" "^18.7.16" + bignumber.js "^9.0.0" + elliptic "^6.5.4" + ethereum-cryptography "1.2.0" + fp-ts "2.1.1" + io-ts "2.0.1" + rlp "^2.2.4" + web3-eth-abi "1.10.0" + web3-utils "1.10.0" + +"@celo/wallet-base@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@celo/wallet-base/-/wallet-base-5.1.2.tgz#294a0a98f72d3c72b38337b534a97820128c8bd0" + integrity sha512-bb3JRIXD68P1RxpFJG0UfzBkIztkKvHC6P2KRBiSJZbcwbCsAstqfU44oMMsmE6dPkQHINbBcCAVSDYWfTaccA== dependencies: "@celo/base" "^6.0.0" - "@celo/connect" "^5.1.1" - "@celo/utils" "^5.0.6" + "@celo/connect" "^5.1.2" + "@celo/utils" "^6.0.0" "@ethereumjs/rlp" "^5.0.0" "@ethereumjs/util" "8.0.5" "@types/debug" "^4.1.5" @@ -980,14 +998,14 @@ web3 "1.10.0" web3-eth-accounts "1.10.0" -"@celo/wallet-local@^5.1.1": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-5.1.1.tgz#e0601bb8880b9f22d605891835b98d83e191d34d" - integrity sha512-dvo4XSmhk5e3Uv6rCTD9b9sQpIXFn7LTFJUwWOjrSNNtGlffU2QRAHMRBUVStxGig6JR9G/W25jPNb+tZD46/g== +"@celo/wallet-local@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@celo/wallet-local/-/wallet-local-5.1.2.tgz#c295793c634cb690423c3e858da1fa55ef61462e" + integrity sha512-qk5sVdwzZByrb4YW1+Ux8DLeNB/zpoCWmS+9V47vPWJv5s37QUOYFE0/95I5Pn9iVSkKTmjuDHEetAQ7Fio/0g== dependencies: - "@celo/connect" "^5.1.1" - "@celo/utils" "^5.0.6" - "@celo/wallet-base" "^5.1.1" + "@celo/connect" "^5.1.2" + "@celo/utils" "^6.0.0" + "@celo/wallet-base" "^5.1.2" "@ethereumjs/util" "8.0.5" eth-lib "^0.2.8" @@ -4529,7 +4547,7 @@ dependencies: "@trufflesuite/spinnies" "^0.1.1" -"@trufflesuite/bigint-buffer@*": +"@trufflesuite/bigint-buffer@1.1.10": version "1.1.10" resolved "https://registry.yarnpkg.com/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz#a1d9ca22d3cad1a138b78baaf15543637a3e1692" integrity sha512-pYIQC5EcMmID74t26GCC67946mgTJFiLXOT/BYozgrd4UEY2JHEGLhWi9cMiQCt5BSqFEvKkCHNnoj82SRjiEw== @@ -6534,7 +6552,7 @@ bip32@3.1.0, bip32@^3.1.0: typeforce "^1.11.5" wif "^2.0.6" -bip39@2.5.0, bip39@^2.2.0, bip39@^2.5.0, "bip39@https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2": +bip39@2.5.0, bip39@^2.2.0, bip39@^2.5.0, "bip39@git+https://github.com/bitcoinjs/bip39.git#a7ecbfe2e60d0214ce17163d610cad9f7b23140c", "bip39@https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2": version "3.0.3" resolved "https://github.com/bitcoinjs/bip39#d8ea080a18b40f301d4e2219a2991cd2417e83c2" dependencies: @@ -13706,15 +13724,6 @@ jws@^4.0.0: jwa "^2.0.0" safe-buffer "^5.0.1" -keccak@*: - version "3.0.4" - resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" - integrity sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q== - dependencies: - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - readable-stream "^3.6.0" - keccak@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.1.tgz#ae30a0e94dbe43414f741375cff6d64c8bea0bff" @@ -13723,6 +13732,15 @@ keccak@3.0.1: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" +keccak@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.2.tgz#4c2c6e8c54e04f2670ee49fa734eb9da152206e0" + integrity sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ== + dependencies: + node-addon-api "^2.0.0" + node-gyp-build "^4.2.0" + readable-stream "^3.6.0" + keccak@^1.0.2: version "1.4.0" resolved "https://registry.yarnpkg.com/keccak/-/keccak-1.4.0.tgz#572f8a6dbee8e7b3aa421550f9e6408ca2186f80" @@ -14045,15 +14063,6 @@ level@^8.0.0: browser-level "^1.0.1" classic-level "^1.2.0" -leveldown@*: - version "6.1.1" - resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-6.1.1.tgz#0f0e480fa88fd807abf94c33cb7e40966ea4b5ce" - integrity sha512-88c+E+Eizn4CkQOBHwqlCJaTNEjGpaEIikn1S+cINc5E9HEvJ77bqY4JY/HxT5u0caWqsc3P3DcFIKBI1vHt+A== - dependencies: - abstract-leveldown "^7.2.0" - napi-macros "~2.0.0" - node-gyp-build "^4.3.0" - leveldown@5.6.0, leveldown@^5.4.0: version "5.6.0" resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-5.6.0.tgz#16ba937bb2991c6094e13ac5a6898ee66d3eee98" @@ -14063,6 +14072,15 @@ leveldown@5.6.0, leveldown@^5.4.0: napi-macros "~2.0.0" node-gyp-build "~4.1.0" +leveldown@6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/leveldown/-/leveldown-6.1.0.tgz#7ab1297706f70c657d1a72b31b40323aa612b9ee" + integrity sha512-8C7oJDT44JXxh04aSSsfcMI8YiaGRhOFI9/pMEL7nWJLVsWajDPTRxsSHTM2WcTVY5nXM+SuRHzPPi0GbnDX+w== + dependencies: + abstract-leveldown "^7.2.0" + napi-macros "~2.0.0" + node-gyp-build "^4.3.0" + levelup@4.4.0, levelup@^4.3.2: version "4.4.0" resolved "https://registry.yarnpkg.com/levelup/-/levelup-4.4.0.tgz#f89da3a228c38deb49c48f88a70fb71f01cafed6" @@ -15459,11 +15477,6 @@ node-addon-api@^4.2.0: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-4.3.0.tgz#52a1a0b475193e0928e98e0426a0d1254782b77f" integrity sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ== -node-addon-api@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-5.1.0.tgz#49da1ca055e109a23d537e9de43c09cca21eb762" - integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA== - node-domexception@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" @@ -18290,13 +18303,13 @@ scryptsy@^2.1.0: resolved "https://registry.yarnpkg.com/scryptsy/-/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790" integrity sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w== -secp256k1@*: - version "5.0.0" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-5.0.0.tgz#be6f0c8c7722e2481e9773336d351de8cddd12f7" - integrity sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA== +secp256k1@4.0.3, secp256k1@^4.0.0, secp256k1@^4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.3.tgz#c4559ecd1b8d3c1827ed2d1b94190d69ce267303" + integrity sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA== dependencies: elliptic "^6.5.4" - node-addon-api "^5.0.0" + node-addon-api "^2.0.0" node-gyp-build "^4.2.0" secp256k1@^3.0.1: @@ -18313,15 +18326,6 @@ secp256k1@^3.0.1: nan "^2.14.0" safe-buffer "^5.1.2" -secp256k1@^4.0.0, secp256k1@^4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.3.tgz#c4559ecd1b8d3c1827ed2d1b94190d69ce267303" - integrity sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA== - dependencies: - elliptic "^6.5.4" - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - seed-random@2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/seed-random/-/seed-random-2.2.0.tgz#2a9b19e250a817099231a5b99a4daf80b7fbed54"