From a9be4e90430c203fce8578e9f799449f420e5897 Mon Sep 17 00:00:00 2001 From: CW Date: Fri, 10 May 2024 12:46:53 -0700 Subject: [PATCH] Revert "feat(swaps): enable Base for swaps (#9286)" This reverts commit 302d3a43421052d315e30d8e1d6302d5e365d383. --- app/components/UI/Swaps/utils/index.js | 2 - app/core/Engine.ts | 2 +- app/declarations.d.ts | 1 - app/store/sagas/index.ts | 5 - package.json | 3 +- .../@metamask+swaps-controller+6.9.3.patch | 208 +++++++ patches/bip39+2.6.0.patch | 32 + yarn.lock | 576 ++++++++---------- 8 files changed, 486 insertions(+), 343 deletions(-) create mode 100644 patches/@metamask+swaps-controller+6.9.3.patch create mode 100644 patches/bip39+2.6.0.patch diff --git a/app/components/UI/Swaps/utils/index.js b/app/components/UI/Swaps/utils/index.js index 267da3e4a7b..7a6780c519b 100644 --- a/app/components/UI/Swaps/utils/index.js +++ b/app/components/UI/Swaps/utils/index.js @@ -14,7 +14,6 @@ const { OPTIMISM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, LINEA_CHAIN_ID, - BASE_CHAIN_ID, } = swapsUtils; const allowedChainIds = [ @@ -26,7 +25,6 @@ const allowedChainIds = [ OPTIMISM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, LINEA_CHAIN_ID, - BASE_CHAIN_ID, SWAPS_TESTNET_CHAIN_ID, ]; diff --git a/app/core/Engine.ts b/app/core/Engine.ts index f2de96b9e87..1dd82ee109b 100644 --- a/app/core/Engine.ts +++ b/app/core/Engine.ts @@ -1165,6 +1165,7 @@ class Engine { }), new SwapsController( { + // @ts-expect-error TODO: Resolve mismatch between gas fee and swaps controller types fetchGasFeeEstimates: () => gasFeeController.fetchGasFeeEstimates(), // @ts-expect-error TODO: Resolve mismatch between gas fee and swaps controller types fetchEstimatedMultiLayerL1Fee, @@ -1186,7 +1187,6 @@ class Engine { swapsUtils.OPTIMISM_CHAIN_ID, swapsUtils.ZKSYNC_ERA_CHAIN_ID, swapsUtils.LINEA_CHAIN_ID, - swapsUtils.BASE_CHAIN_ID, ], }, ), diff --git a/app/declarations.d.ts b/app/declarations.d.ts index cd4db6aff64..69bf0090af8 100644 --- a/app/declarations.d.ts +++ b/app/declarations.d.ts @@ -8,7 +8,6 @@ declare module 'react-native-fade-in-image'; declare module 'react-native-minimizer'; -declare module 'xhr2'; declare module 'react-native-scrollable-tab-view/DefaultTabBar' { const content: React.FC; export default content; diff --git a/app/store/sagas/index.ts b/app/store/sagas/index.ts index 7c88acf436a..f258f8931b4 100644 --- a/app/store/sagas/index.ts +++ b/app/store/sagas/index.ts @@ -15,11 +15,6 @@ import Engine from '../../core/Engine'; import Logger from '../../util/Logger'; import LockManagerService from '../../core/LockManagerService'; import AppConstants from '../../../app/core/AppConstants'; -import { XMLHttpRequest as _XMLHttpRequest } from 'xhr2'; - -if (typeof global.XMLHttpRequest === 'undefined') { - global.XMLHttpRequest = _XMLHttpRequest; -} const originalSend = XMLHttpRequest.prototype.send; const originalOpen = XMLHttpRequest.prototype.open; diff --git a/package.json b/package.json index 348f24102c9..5aac17d876b 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,7 @@ "@metamask/snaps-sdk": "^2.0.0", "@metamask/snaps-utils": "^6.0.0", "@metamask/swappable-obj-proxy": "^2.1.0", - "@metamask/swaps-controller": "^8.0.0", + "@metamask/swaps-controller": "^6.9.3", "@metamask/transaction-controller": "^13.0.0", "@metamask/utils": "^8.1.0", "@ngraveio/bc-ur": "^1.1.6", @@ -468,7 +468,6 @@ "wdio-cucumberjs-json-reporter": "^4.4.3", "webpack": "^5.88.2", "webpack-cli": "^5.1.4", - "xhr2": "^0.2.1", "xml2js": "^0.5.0", "yarn-deduplicate": "^6.0.2" }, diff --git a/patches/@metamask+swaps-controller+6.9.3.patch b/patches/@metamask+swaps-controller+6.9.3.patch new file mode 100644 index 00000000000..14238be18eb --- /dev/null +++ b/patches/@metamask+swaps-controller+6.9.3.patch @@ -0,0 +1,208 @@ +diff --git a/node_modules/@metamask/swaps-controller/dist/SwapsController.d.ts b/node_modules/@metamask/swaps-controller/dist/SwapsController.d.ts +index 682efcb..7aa7cf0 100644 +--- a/node_modules/@metamask/swaps-controller/dist/SwapsController.d.ts ++++ b/node_modules/@metamask/swaps-controller/dist/SwapsController.d.ts +@@ -1,4 +1,5 @@ + import { BaseConfig, BaseController, BaseState, EthGasPriceEstimate, GasFeeEstimates, GasFeeState, Transaction } from '@metamask/controllers'; ++import { Hex } from '@metamask/utils'; + import { SwapsError } from './swapsUtil'; + import { APIAggregatorMetadata, APIFetchQuotesMetadata, APIFetchQuotesParams, ChainData, ChainCache, Quote, QuoteSavings, QuoteValues, SwapsAsset, SwapsToken } from './swapsInterfaces'; + interface CustomEthGasPriceEstimate { +@@ -19,8 +20,8 @@ export interface SwapsConfig extends BaseConfig { + fetchTokensThreshold: number; + fetchTopAssetsThreshold: number; + provider: any; +- chainId: string; +- supportedChainIds: string[]; ++ chainId: Hex; ++ supportedChainIds: Hex[]; + } + export interface SwapsState extends BaseState { + quotes: { +@@ -120,11 +121,11 @@ export default class SwapsController extends BaseController Promise; + fetchEstimatedMultiLayerL1Fee?: (eth: any, options: { + txParams: Transaction; +- chainId: string; ++ chainId: Hex; + }) => Promise; + }, config?: Partial, state?: Partial); + set provider(provider: any); +- set chainId(chainId: string); ++ set chainId(chainId: Hex); + /** + * Updates all quotes with a new custom gas price + * +diff --git a/node_modules/@metamask/swaps-controller/dist/SwapsController.js b/node_modules/@metamask/swaps-controller/dist/SwapsController.js +index 3ad23f0..50fc0a2 100644 +--- a/node_modules/@metamask/swaps-controller/dist/SwapsController.js ++++ b/node_modules/@metamask/swaps-controller/dist/SwapsController.js +@@ -83,7 +83,7 @@ class SwapsController extends controllers_1.BaseController { + fetchTokensThreshold: 1000 * 60 * 60 * 24, + fetchTopAssetsThreshold: 1000 * 60 * 30, + provider: undefined, +- chainId: '1', ++ chainId: '0x1', + supportedChainIds: [ + swapsUtil_1.ETH_CHAIN_ID, + swapsUtil_1.BSC_CHAIN_ID, +@@ -132,7 +132,7 @@ class SwapsController extends controllers_1.BaseController { + usedGasEstimate: null, + usedCustomGas: null, + chainCache: { +- '1': exports.INITIAL_CHAIN_DATA, ++ '0x1': exports.INITIAL_CHAIN_DATA, + }, + }; + this.fetchGasFeeEstimates = fetchGasFeeEstimates; +diff --git a/node_modules/@metamask/swaps-controller/dist/constants.d.ts b/node_modules/@metamask/swaps-controller/dist/constants.d.ts +index 99f1c9c..db732d9 100644 +--- a/node_modules/@metamask/swaps-controller/dist/constants.d.ts ++++ b/node_modules/@metamask/swaps-controller/dist/constants.d.ts +@@ -1,13 +1,13 @@ + import { SwapsToken } from './swapsInterfaces'; +-export declare const ETH_CHAIN_ID = "1"; +-export declare const BSC_CHAIN_ID = "56"; +-export declare const POLYGON_CHAIN_ID = "137"; +-export declare const AVALANCHE_CHAIN_ID = "43114"; +-export declare const ARBITRUM_CHAIN_ID = "42161"; +-export declare const OPTIMISM_CHAIN_ID = "10"; +-export declare const ZKSYNC_ERA_CHAIN_ID = "324"; +-export declare const LINEA_CHAIN_ID = "59144"; +-export declare const SWAPS_TESTNET_CHAIN_ID = "1337"; ++export declare const ETH_CHAIN_ID: `0x${string}`; ++export declare const BSC_CHAIN_ID: `0x${string}`; ++export declare const POLYGON_CHAIN_ID: `0x${string}`; ++export declare const AVALANCHE_CHAIN_ID: `0x${string}`; ++export declare const ARBITRUM_CHAIN_ID: `0x${string}`; ++export declare const OPTIMISM_CHAIN_ID: `0x${string}`; ++export declare const ZKSYNC_ERA_CHAIN_ID: `0x${string}`; ++export declare const LINEA_CHAIN_ID: `0x${string}`; ++export declare const SWAPS_TESTNET_CHAIN_ID: `0x${string}`; + export declare const CHAIN_ID_TO_NAME_MAP: { + [key: string]: string; + }; +diff --git a/node_modules/@metamask/swaps-controller/dist/constants.js b/node_modules/@metamask/swaps-controller/dist/constants.js +index 9d8a521..601fd18 100644 +--- a/node_modules/@metamask/swaps-controller/dist/constants.js ++++ b/node_modules/@metamask/swaps-controller/dist/constants.js +@@ -1,16 +1,17 @@ + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MAX_GAS_LIMIT = exports.DEFAULT_ERC20_APPROVE_GAS = exports.TOKEN_TRANSFER_LOG_TOPIC_HASH = exports.SWAPS_NATIVE_TOKEN_OBJECTS = exports.LINEA_SWAPS_TOKEN_OBJECT = exports.ZKSYNC_ERA_SWAPS_TOKEN_OBJECT = exports.OPTIMISM_SWAPS_TOKEN_OBJECT = exports.ARBITRUM_SWAPS_TOKEN_OBJECT = exports.AVALANCHE_SWAPS_TOKEN_OBJECT = exports.POLYGON_SWAPS_TOKEN_OBJECT = exports.BSC_SWAPS_TOKEN_OBJECT = exports.ETH_SWAPS_TOKEN_OBJECT = exports.NATIVE_SWAPS_TOKEN_ADDRESS = exports.ALLOWED_CONTRACT_ADDRESSES = exports.SWAPS_CONTRACT_ADDRESSES = exports.SWAPS_WRAPPED_TOKENS_ADDRESSES = exports.WETH_LINEA_CONTRACT_ADDRESS = exports.WETH_ZKSYNC_ERA_CONTRACT_ADDRESS = exports.WETH_OPTIMISM_CONTRACT_ADDRESS = exports.WETH_ARBITRUM_CONTRACT_ADDRESS = exports.WAVAX_CONTRACT_ADDRESS = exports.WMATIC_CONTRACT_ADDRESS = exports.WBNB_CONTRACT_ADDRESS = exports.WETH_CONTRACT_ADDRESS = exports.LINEA_SWAPS_CONTRACT_ADDRESS = exports.ZKSYNC_ERA_SWAPS_CONTRACT_ADDRESS = exports.OPTIMISM_SWAPS_CONTRACT_ADDRESS = exports.ARBITRUM_SWAPS_CONTRACT_ADDRESS = exports.AVALANCHE_SWAPS_CONTRACT_ADDRESS = exports.POLYGON_SWAPS_CONTRACT_ADDRESS = exports.BSC_SWAPS_CONTRACT_ADDRESS = exports.ETH_SWAPS_CONTRACT_ADDRESS = exports.GAS_API_BASE_URL = exports.DEV_BASE_URL = exports.API_BASE_URL = exports.CHAIN_ID_TO_NAME_MAP = exports.SWAPS_TESTNET_CHAIN_ID = exports.LINEA_CHAIN_ID = exports.ZKSYNC_ERA_CHAIN_ID = exports.OPTIMISM_CHAIN_ID = exports.ARBITRUM_CHAIN_ID = exports.AVALANCHE_CHAIN_ID = exports.POLYGON_CHAIN_ID = exports.BSC_CHAIN_ID = exports.ETH_CHAIN_ID = void 0; ++const controller_utils_1 = require("@metamask/controller-utils"); + //* Chain IDs and names +-exports.ETH_CHAIN_ID = '1'; +-exports.BSC_CHAIN_ID = '56'; +-exports.POLYGON_CHAIN_ID = '137'; +-exports.AVALANCHE_CHAIN_ID = '43114'; +-exports.ARBITRUM_CHAIN_ID = '42161'; +-exports.OPTIMISM_CHAIN_ID = '10'; +-exports.ZKSYNC_ERA_CHAIN_ID = '324'; +-exports.LINEA_CHAIN_ID = '59144'; +-exports.SWAPS_TESTNET_CHAIN_ID = '1337'; ++exports.ETH_CHAIN_ID = controller_utils_1.toHex('1'); ++exports.BSC_CHAIN_ID = controller_utils_1.toHex('56'); ++exports.POLYGON_CHAIN_ID = controller_utils_1.toHex('137'); ++exports.AVALANCHE_CHAIN_ID = controller_utils_1.toHex('43114'); ++exports.ARBITRUM_CHAIN_ID = controller_utils_1.toHex('42161'); ++exports.OPTIMISM_CHAIN_ID = controller_utils_1.toHex('10'); ++exports.ZKSYNC_ERA_CHAIN_ID = controller_utils_1.toHex('324'); ++exports.LINEA_CHAIN_ID = controller_utils_1.toHex('59144'); ++exports.SWAPS_TESTNET_CHAIN_ID = controller_utils_1.toHex('1337'); + exports.CHAIN_ID_TO_NAME_MAP = { + [exports.ETH_CHAIN_ID]: 'ethereum', + [exports.BSC_CHAIN_ID]: 'bsc', +diff --git a/node_modules/@metamask/swaps-controller/dist/swapsUtil.d.ts b/node_modules/@metamask/swaps-controller/dist/swapsUtil.d.ts +index 0204cab..b2f7c19 100644 +--- a/node_modules/@metamask/swaps-controller/dist/swapsUtil.d.ts ++++ b/node_modules/@metamask/swaps-controller/dist/swapsUtil.d.ts +@@ -1,6 +1,7 @@ + import { Transaction } from '@metamask/controllers'; + import { AbortSignal } from 'abort-controller'; + import { BigNumber } from 'bignumber.js'; ++import { Hex } from '@metamask/utils'; + import { APIAggregatorMetadata, SwapsAsset, SwapsToken, APIType, Quote, APIFetchQuotesParams, QuoteValues, TransactionReceipt, NetworkFeatureFlags } from './swapsInterfaces'; + export * from './constants'; + export declare enum SwapsError { +@@ -14,27 +15,27 @@ export declare enum SwapsError { + SWAPS_ALLOWANCE_TIMEOUT = "swaps-allowance-timeout", + SWAPS_ALLOWANCE_ERROR = "swaps-allowance-error" + } +-export declare function getNativeSwapsToken(chainId: string): SwapsToken; +-export declare function getSwapsContractAddress(chainId: string): string; +-export declare function isValidContractAddress(chainId: string, contract: string | undefined): boolean; +-export declare function shouldEnableDirectWrapping(chainId: string, sourceToken: string, destinationToken: string): boolean; +-export declare const getBaseApiURL: (type: APIType, chainId: string) => string; +-export declare function getTokenMetadataURL(chainId: string): string; +-export declare function fetchTradesInfo({ slippage, sourceToken, sourceAmount, destinationToken, walletAddress, }: APIFetchQuotesParams, abortSignal: AbortSignal | null, chainId: string, clientId?: string): Promise<{ ++export declare function getNativeSwapsToken(chainId: Hex): SwapsToken; ++export declare function getSwapsContractAddress(chainId: Hex): string; ++export declare function isValidContractAddress(chainId: Hex, contract: string | undefined): boolean; ++export declare function shouldEnableDirectWrapping(chainId: Hex, sourceToken: string, destinationToken: string): boolean; ++export declare const getBaseApiURL: (type: APIType, chainId: Hex) => string; ++export declare function getTokenMetadataURL(chainId: Hex): string; ++export declare function fetchTradesInfo({ slippage, sourceToken, sourceAmount, destinationToken, walletAddress, }: APIFetchQuotesParams, abortSignal: AbortSignal | null, chainId: Hex, clientId?: string): Promise<{ + [key: string]: Quote; + }>; +-export declare function fetchTokens(chainId: string, clientId?: string): Promise; +-export declare function fetchAggregatorMetadata(chainId: string, clientId?: string): Promise<{ ++export declare function fetchTokens(chainId: Hex, clientId?: string): Promise; ++export declare function fetchAggregatorMetadata(chainId: Hex, clientId?: string): Promise<{ + [key: string]: APIAggregatorMetadata; + }>; +-export declare function fetchTopAssets(chainId: string, clientId?: string): Promise; +-export declare function fetchSwapsFeatureLiveness(chainId: string, clientId?: string): Promise; ++export declare function fetchTopAssets(chainId: Hex, clientId?: string): Promise; ++export declare function fetchSwapsFeatureLiveness(chainId: Hex, clientId?: string): Promise; + /** + * Fetches gas prices from API URL + * @param chainId Current chainId + * @returns Gas prices represented as decimal GWEI strings + */ +-export declare function fetchGasPrices(chainId: string, clientId?: string): Promise<{ ++export declare function fetchGasPrices(chainId: Hex, clientId?: string): Promise<{ + safeGasPrice: string; + proposedGasPrice: string; + fastGasPrice: string; +diff --git a/node_modules/@metamask/swaps-controller/dist/swapsUtil.js b/node_modules/@metamask/swaps-controller/dist/swapsUtil.js +index 54a32d5..3fa4343 100644 +--- a/node_modules/@metamask/swaps-controller/dist/swapsUtil.js ++++ b/node_modules/@metamask/swaps-controller/dist/swapsUtil.js +@@ -14,6 +14,7 @@ exports.constructTxParams = exports.estimateGas = exports.calcTokenAmount = expo + const controllers_1 = require("@metamask/controllers"); + const bignumber_js_1 = require("bignumber.js"); + const ethereumjs_util_1 = require("ethereumjs-util"); ++const controller_utils_1 = require("@metamask/controller-utils"); + const constants_1 = require("./constants"); + const swapsInterfaces_1 = require("./swapsInterfaces"); + __exportStar(require("./constants"), exports); +@@ -70,21 +71,22 @@ const getBaseApiURL = function (type, chainId) { + const [apiChainId, apiBaseUrl] = chainId === constants_1.SWAPS_TESTNET_CHAIN_ID + ? [constants_1.ETH_CHAIN_ID, constants_1.DEV_BASE_URL] + : [chainId, constants_1.API_BASE_URL]; ++ const apiDecimalChainId = controller_utils_1.convertHexToDecimal(apiChainId); + switch (type) { + case swapsInterfaces_1.APIType.TRADES: +- return `${apiBaseUrl}/networks/${apiChainId}/trades`; ++ return `${apiBaseUrl}/networks/${apiDecimalChainId}/trades`; + case swapsInterfaces_1.APIType.TOKENS: +- return `${apiBaseUrl}/networks/${apiChainId}/tokens`; ++ return `${apiBaseUrl}/networks/${apiDecimalChainId}/tokens`; + case swapsInterfaces_1.APIType.TOKEN: +- return `${apiBaseUrl}/networks/${apiChainId}/token`; ++ return `${apiBaseUrl}/networks/${apiDecimalChainId}/token`; + case swapsInterfaces_1.APIType.TOP_ASSETS: +- return `${apiBaseUrl}/networks/${apiChainId}/topAssets`; ++ return `${apiBaseUrl}/networks/${apiDecimalChainId}/topAssets`; + case swapsInterfaces_1.APIType.FEATURE_FLAG: + return `${apiBaseUrl}/featureFlags`; + case swapsInterfaces_1.APIType.AGGREGATOR_METADATA: +- return `${apiBaseUrl}/networks/${apiChainId}/aggregatorMetadata`; ++ return `${apiBaseUrl}/networks/${apiDecimalChainId}/aggregatorMetadata`; + case swapsInterfaces_1.APIType.GAS_PRICES: +- return `${constants_1.GAS_API_BASE_URL}/networks/${apiChainId}/gasPrices`; ++ return `${constants_1.GAS_API_BASE_URL}/networks/${apiDecimalChainId}/gasPrices`; + default: + throw new Error('getBaseApiURL requires an api call type'); + } diff --git a/patches/bip39+2.6.0.patch b/patches/bip39+2.6.0.patch new file mode 100644 index 00000000000..364f82d7252 --- /dev/null +++ b/patches/bip39+2.6.0.patch @@ -0,0 +1,32 @@ +diff --git a/node_modules/bip39/index.js b/node_modules/bip39/index.js +index efed68c..d487227 100644 +--- a/node_modules/bip39/index.js ++++ b/node_modules/bip39/index.js +@@ -4,6 +4,8 @@ var _pbkdf2 = require('pbkdf2') + var pbkdf2 = _pbkdf2.pbkdf2Sync + var pbkdf2Async = _pbkdf2.pbkdf2 + var randomBytes = require('randombytes') ++const { NativeModules } = require('react-native') ++const Aes = NativeModules.Aes + + // use unorm until String.prototype.normalize gets better browser support + var unorm = require('unorm') +@@ -49,11 +51,15 @@ function salt (password) { + return 'mnemonic' + (password || '') + } + +-function mnemonicToSeed (mnemonic, password) { ++function mnemonicToSeed(mnemonic, password) { + var mnemonicBuffer = Buffer.from(unorm.nfkd(mnemonic), 'utf8') + var saltBuffer = Buffer.from(salt(unorm.nfkd(password)), 'utf8') +- +- return pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'sha512') ++ // For chrome environments use the javascript version of pbkdf2 ++ if (__DEV__ && (!!global.__REMOTEDEV__ || (global.location && global.location.pathname.includes('/debugger-ui')))) ++ return pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'sha512') ++ const seed = Aes.pbkdf2Sync(mnemonicBuffer.toString('utf8'), saltBuffer.toString('utf8'), 2048, 512); ++ const seedBuffer = global.Buffer.from(seed, "hex") ++ return seedBuffer + } + + function mnemonicToSeedHex (mnemonic, password) { diff --git a/yarn.lock b/yarn.lock index 73e11249315..4a9abe75bd6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,11 +28,6 @@ tunnel "^0.0.6" undici "^5.25.4" -"@adraffy/ens-normalize@^1.8.8": - version "1.10.1" - resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" - integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== - "@ampproject/remapping@^2.2.0": version "2.2.1" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" @@ -1884,7 +1879,7 @@ bufio "^1.0.7" chai "^4.3.4" -"@ethereumjs/common@^2.6.4": +"@ethereumjs/common@^2.0.0", "@ethereumjs/common@^2.3.1", "@ethereumjs/common@^2.6.4": version "2.6.5" resolved "https://registry.yarnpkg.com/@ethereumjs/common/-/common-2.6.5.tgz#0a75a22a046272579d91919cb12d84f2756e8d30" integrity sha512-lRyVQOeCDaIVtgfbowla32pzeDv2Obr8oR8Put5RdUBNRGr1VGPGQNGP6elWIpgK3YdpzqTOh4GyUGOureVeeA== @@ -1905,6 +1900,14 @@ resolved "https://registry.yarnpkg.com/@ethereumjs/rlp/-/rlp-4.0.1.tgz#626fabfd9081baab3d0a3074b0c7ecaf674aaa41" integrity sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw== +"@ethereumjs/tx@3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@ethereumjs/tx/-/tx-3.0.0.tgz#8dfd91ed6e91e63996e37b3ddc340821ebd48c81" + integrity sha512-H9tfy6qgYxPXvt1TSObfVmVjlF43OoQqoPQ3PJsG2JiuqaMHj5ettV1pGFEC3FamENDBkl6vD6niQEvIlXv/VQ== + dependencies: + "@ethereumjs/common" "^2.0.0" + ethereumjs-util "^7.0.7" + "@ethereumjs/tx@^3.2.1", "@ethereumjs/tx@^3.3.0": version "3.5.2" resolved "https://registry.yarnpkg.com/@ethereumjs/tx/-/tx-3.5.2.tgz#197b9b6299582ad84f9527ca961466fce2296c1c" @@ -3298,6 +3301,17 @@ rlp "^3.0.0" uuid "^8.3.2" +"@keystonehq/base-eth-keyring@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@keystonehq/base-eth-keyring/-/base-eth-keyring-0.3.2.tgz#71efe1495d4931fab5fd0016c8722fe5d9657da9" + integrity sha512-y/kv8XNRSzqcSl7fvZklBKr4MVir1OJHzqM5vC+3yvzkh3mVtN8vUjAAxHtmVVVyM8rsdqK7aYZ7paexYdpnag== + dependencies: + "@ethereumjs/tx" "3.0.0" + "@keystonehq/bc-ur-registry-eth" "^0.7.7" + ethereumjs-util "^7.0.8" + hdkey "^2.0.1" + uuid "^8.3.2" + "@keystonehq/bc-ur-registry-eth@^0.19.1": version "0.19.1" resolved "https://registry.yarnpkg.com/@keystonehq/bc-ur-registry-eth/-/bc-ur-registry-eth-0.19.1.tgz#eac508b9d15d17c0abd00b107691585f9c789ffc" @@ -3318,6 +3332,16 @@ hdkey "^2.0.1" uuid "^8.3.2" +"@keystonehq/bc-ur-registry-eth@^0.7.7": + version "0.7.7" + resolved "https://registry.yarnpkg.com/@keystonehq/bc-ur-registry-eth/-/bc-ur-registry-eth-0.7.7.tgz#45267510900049050ef860a1e78fde9087b75972" + integrity sha512-2gZf18ogSCLjsn3PxGqwiOMz/G11v7byRnTLv5/wNJGzCqkMf86OKaVbUgsVokq0B5KAZtpCFQxj96rrFhPRiQ== + dependencies: + "@keystonehq/bc-ur-registry" "^0.4.4" + ethereumjs-util "^7.0.8" + hdkey "^2.0.1" + uuid "^8.3.2" + "@keystonehq/bc-ur-registry@^0.4.4": version "0.4.4" resolved "https://registry.yarnpkg.com/@keystonehq/bc-ur-registry/-/bc-ur-registry-0.4.4.tgz#3073fdd4b33cdcbd04526a313a7685891a4b4583" @@ -3348,6 +3372,18 @@ rlp "^2.2.6" uuid "^8.3.2" +"@keystonehq/metamask-airgapped-keyring@^0.2.2": + version "0.2.2" + resolved "https://registry.yarnpkg.com/@keystonehq/metamask-airgapped-keyring/-/metamask-airgapped-keyring-0.2.2.tgz#8beb3e3fddf814be05e3c3178f973769b3ab40d7" + integrity sha512-1tuSNpc98jEoJ/9sptasxG6hm8KzESx0ShbKtPkNNKP+XxcDuMi632n03E748X98leCscI+M1WlRvsTryiEB8Q== + dependencies: + "@ethereumjs/tx" "^3.3.0" + "@keystonehq/base-eth-keyring" "^0.3.2" + "@keystonehq/bc-ur-registry-eth" "^0.7.7" + "@metamask/obs-store" "^7.0.0" + rlp "^2.2.6" + uuid "^8.3.2" + "@keystonehq/ur-decoder@^0.12.2": version "0.12.2" resolved "https://registry.yarnpkg.com/@keystonehq/ur-decoder/-/ur-decoder-0.12.2.tgz#78707d95012bc6d31c947c76c27e076d4a1c071c" @@ -3637,14 +3673,6 @@ single-call-balance-checker-abi "^1.0.0" uuid "^8.3.2" -"@metamask/base-controller@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@metamask/base-controller/-/base-controller-1.1.2.tgz#92643d16a322664adae924cf45806c96c6704e30" - integrity sha512-lOV3dyaTw+dTZOYkpjFwKN4DfOlvRpALknUlOzoFg+ChLeva8T7E4/pyo52FOEtxhajsq9/77soGm729oaNGMA== - dependencies: - "@metamask/controller-utils" "^2.0.0" - immer "^9.0.6" - "@metamask/base-controller@^3.0.0", "@metamask/base-controller@^3.2.2", "@metamask/base-controller@^3.2.3": version "3.2.3" resolved "https://registry.yarnpkg.com/@metamask/base-controller/-/base-controller-3.2.3.tgz#7436a14f6789acf0814952dabaa70ee4fb7d473c" @@ -3690,23 +3718,11 @@ dependencies: "@metamask/base-controller" "^3.2.3" -"@metamask/contract-metadata@^2.1.0", "@metamask/contract-metadata@^2.4.0": +"@metamask/contract-metadata@^1.31.0", "@metamask/contract-metadata@^2.1.0", "@metamask/contract-metadata@^2.4.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@metamask/contract-metadata/-/contract-metadata-2.2.0.tgz#277764d0d56e37180ae7644a9d11eb96295b36fc" integrity sha512-SM6A4C7vXNbVpgMTX67kfW8QWvu3eSXxMZlY5PqZBTkvri1s9zgQ0uwRkK5r2VXNEoVmXCDnnEX/tX5EzzgNUQ== -"@metamask/controller-utils@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@metamask/controller-utils/-/controller-utils-2.0.0.tgz#11b7639b7724b67c4ad983fd1185313fff2217be" - integrity sha512-dwpF1qPIGzTr6kMAJQmX6/eVtRPrBBMlB9oiHnOhHN2mYPqd6fCnesyA3TsqM8I65mTjqrkV4OtPtz6pzYvclw== - dependencies: - eth-ens-namehash "^2.0.8" - eth-rpc-errors "^4.0.0" - ethereumjs-util "^7.0.10" - ethjs-unit "^0.1.6" - fast-deep-equal "^3.1.3" - isomorphic-fetch "^3.0.0" - "@metamask/controller-utils@^5.0.0", "@metamask/controller-utils@^5.0.1", "@metamask/controller-utils@^5.0.2": version "5.0.2" resolved "https://registry.yarnpkg.com/@metamask/controller-utils/-/controller-utils-5.0.2.tgz#f6e848d9b80aca7943e1edae927324982305d1f8" @@ -3746,6 +3762,46 @@ eth-ens-namehash "^2.0.8" fast-deep-equal "^3.1.3" +"@metamask/controllers@^26.0.0": + version "26.0.0" + resolved "git+https://github.com/MetaMask/controllers.git#d4e9507d9612f2d36c3f848333b33330a19b811b" + dependencies: + "@ethereumjs/common" "^2.3.1" + "@ethereumjs/tx" "^3.2.1" + "@keystonehq/metamask-airgapped-keyring" "^0.2.2" + "@metamask/contract-metadata" "^1.31.0" + "@metamask/metamask-eth-abis" "3.0.0" + "@metamask/types" "^1.1.0" + "@types/uuid" "^8.3.0" + abort-controller "^3.0.0" + async-mutex "^0.2.6" + babel-runtime "^6.26.0" + deep-freeze-strict "^1.1.1" + eth-ens-namehash "^2.0.8" + eth-json-rpc-infura "^5.1.0" + eth-keyring-controller "^6.2.1" + eth-method-registry "1.1.0" + eth-phishing-detect "^1.1.14" + eth-query "^2.1.2" + eth-rpc-errors "^4.0.0" + eth-sig-util "^3.0.0" + ethereumjs-util "^7.0.10" + ethereumjs-wallet "^1.0.1" + ethers "^5.4.1" + ethjs-unit "^0.1.6" + fast-deep-equal "^3.1.3" + immer "^9.0.6" + isomorphic-fetch "^3.0.0" + json-rpc-engine "^6.1.0" + jsonschema "^1.2.4" + multiformats "^9.5.2" + nanoid "^3.1.31" + punycode "^2.1.1" + single-call-balance-checker-abi "^1.0.0" + uuid "^8.3.2" + web3 "^0.20.7" + web3-provider-engine "^16.0.3" + "@metamask/design-tokens@^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@metamask/design-tokens/-/design-tokens-2.0.0.tgz#12ddc1c0343dd147c1fee442c1b23979f73d919d" @@ -3969,22 +4025,6 @@ immer "^9.0.6" uuid "^8.3.2" -"@metamask/gas-fee-controller@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@metamask/gas-fee-controller/-/gas-fee-controller-3.0.0.tgz#6b6c81ba9e553b253e4875bacf6f84e17d2238e1" - integrity sha512-5kFnfqimsRAJKydjG8jgGFdosjDI42+72vIPuGeCZkSV93KsXX30NjrQQD6Sl1ZJjyfmysdQbFS6unsOheU0lg== - dependencies: - "@metamask/base-controller" "^1.1.2" - "@metamask/controller-utils" "^2.0.0" - "@metamask/network-controller" "^3.0.0" - "@types/uuid" "^8.3.0" - babel-runtime "^6.26.0" - eth-query "^2.1.2" - ethereumjs-util "^7.0.10" - ethjs-unit "^0.1.6" - immer "^9.0.6" - uuid "^8.3.2" - "@metamask/json-rpc-engine@^7.0.0", "@metamask/json-rpc-engine@^7.1.1", "@metamask/json-rpc-engine@^7.2.0", "@metamask/json-rpc-engine@^7.3.0", "@metamask/json-rpc-engine@^7.3.1", "@metamask/json-rpc-engine@^7.3.2": version "7.3.3" resolved "https://registry.yarnpkg.com/@metamask/json-rpc-engine/-/json-rpc-engine-7.3.3.tgz#f2b30a2164558014bfcca45db10f5af291d989af" @@ -4207,20 +4247,6 @@ immer "^9.0.6" uuid "^8.3.2" -"@metamask/network-controller@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@metamask/network-controller/-/network-controller-3.0.0.tgz#f43dd9588240bed187a078da2bd3f758b3338172" - integrity sha512-SjffWl0kLqeT6F4X2EFHkPu5fkCMF+hblqM+BvDnDoanSFDk7Dcw+jXKSv7sw5QDX2DcfYtqvZbms2VWXu3x6g== - dependencies: - "@metamask/base-controller" "^1.1.2" - "@metamask/controller-utils" "^2.0.0" - async-mutex "^0.2.6" - babel-runtime "^6.26.0" - eth-json-rpc-infura "^5.1.0" - eth-query "^2.1.2" - immer "^9.0.6" - web3-provider-engine "^16.0.3" - "@metamask/number-to-bn@^1.7.1": version "1.7.1" resolved "https://registry.yarnpkg.com/@metamask/number-to-bn/-/number-to-bn-1.7.1.tgz#a449ec8b2edba211e0dc3e1e0428ff2cc2bf7ab4" @@ -4645,22 +4671,19 @@ resolved "https://registry.yarnpkg.com/@metamask/swappable-obj-proxy/-/swappable-obj-proxy-2.1.0.tgz#7558cd5c51d60b64207d2219cba61702aa44de52" integrity sha512-8INYn7w5VbS0YMDQMYoZ9aNxg3AKY60RtrB7CvG1HOUaC7cgr8HqXKZfxHXmQf6unvKQdRuv+HP0iIoV/4WoTA== -"@metamask/swaps-controller@^8.0.0": - version "8.0.0" - resolved "https://registry.yarnpkg.com/@metamask/swaps-controller/-/swaps-controller-8.0.0.tgz#9ec45989bc161bba857bc8d8968426f8b5760cfb" - integrity sha512-xdXfkz/QU38nIZMhVIDewVvQMnYI8pBMCbN5qig2Ae4OosOC2eM7KZCep3O2ZE7fR5I5Y0oRacfqniu5YHM30Q== +"@metamask/swaps-controller@^6.9.3": + version "6.9.3" + resolved "https://registry.yarnpkg.com/@metamask/swaps-controller/-/swaps-controller-6.9.3.tgz#75e077c1acfbc5f5145005a9b91172cfc8863e68" + integrity sha512-A6HlRGtwkRRY2NOsiFqO5HNG/joVIA7Bp/C3iyJ48Jg9WHF8ivQNm5qLmisZQ/FOh8uuYhI7UC8SeImffun6og== dependencies: - "@metamask/base-controller" "^1.1.2" - "@metamask/controller-utils" "^8.0.2" - "@metamask/eth-query" "^4.0.0" - "@metamask/gas-fee-controller" "^3.0.0" - "@metamask/utils" "^8.3.0" + "@metamask/controllers" "^26.0.0" abort-controller "^3.0.0" - async-mutex "^0.4.1" + async-mutex "^0.3.1" bignumber.js "^9.0.1" - bn.js "^5.2.1" + eth-query "^2.1.2" + ethereumjs-util "^7.0.10" human-standard-token-abi "^2.0.0" - web3 "^4.2.2" + web3 "^0.20.7" "@metamask/test-dapp@^8.0.0": version "8.0.0" @@ -4691,6 +4714,11 @@ nonce-tracker "^1.1.0" uuid "^8.3.2" +"@metamask/types@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@metamask/types/-/types-1.1.0.tgz#9bd14b33427932833c50c9187298804a18c2e025" + integrity sha512-EEV/GjlYkOSfSPnYXfOosxa3TqYtIW3fhg6jdw+cok/OhMgNn4wCfbENFqjytrHMU2f7ZKtBAvtiP5V8H44sSw== + "@metamask/utils@^3.4.1": version "3.6.0" resolved "https://registry.yarnpkg.com/@metamask/utils/-/utils-3.6.0.tgz#b218b969a05ca7a8093b5d1670f6625061de707d" @@ -9041,13 +9069,6 @@ resolved "https://registry.yarnpkg.com/@types/which/-/which-1.3.2.tgz#9c246fc0c93ded311c8512df2891fb41f6227fdf" integrity sha512-8oDqyLC7eD4HM307boe2QWKyuzdzWBj56xI/imSl2cpL+U3tCMaTAkMJ4ee5JBZ/FsOJlvRGeIShiZDAl1qERA== -"@types/ws@8.5.3": - version "8.5.3" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d" - integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w== - dependencies: - "@types/node" "*" - "@types/ws@8.5.5": version "8.5.5" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.5.tgz#af587964aa06682702ee6dcbc7be41a80e4b28eb" @@ -10197,11 +10218,6 @@ abbrev@^1.0.0: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -abitype@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/abitype/-/abitype-0.7.1.tgz#16db20abe67de80f6183cf75f3de1ff86453b745" - integrity sha512-VBkRHTDZf9Myaek/dO3yMmOzB/y2s3Zo6nVU7yaw1G+TvCHAjwaJzNGN9yo4K5D8bU/VZXKP1EJpRhFr862PlQ== - abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -11603,12 +11619,12 @@ async-mutex@^0.2.6: dependencies: tslib "^2.0.0" -async-mutex@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/async-mutex/-/async-mutex-0.4.1.tgz#bccf55b96f2baf8df90ed798cb5544a1f6ee4c2c" - integrity sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA== +async-mutex@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/async-mutex/-/async-mutex-0.3.1.tgz#7033af665f1c7cebed8b878267a43ba9e77c5f67" + integrity sha512-vRfQwcqBnJTLzVQo72Sf7KIUbcSUP5hNchx6udI1U6LuPQpfePgdjJzlCe76yFZ8pxlLjn9lwcl/Ya0TSOv0Tw== dependencies: - tslib "^2.4.0" + tslib "^2.1.0" async@0.2.x, async@~0.2.9: version "0.2.10" @@ -12016,6 +12032,10 @@ bignumber.js@^9.0.1, bignumber.js@^9.0.2: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c" integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug== +"bignumber.js@git+https://github.com/frozeman/bignumber.js-nolookahead.git": + version "2.0.7" + resolved "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934" + bin-links@4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-4.0.1.tgz#afeb0549e642f61ff889b58ea2f8dca78fb9d8d3" @@ -12038,6 +12058,17 @@ bindings@^1.2.1, bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" +bip39@^2.2.0, bip39@^2.4.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-2.6.0.tgz#9e3a720b42ec8b3fbe4038f1e445317b6a99321c" + integrity sha512-RrnQRG2EgEoqO24ea+Q/fftuPUZLmrEM3qNhhGsA3PbaXaCW791LTzPuVyx/VprXQcTbPJ3K3UeTna8ZnVl2sg== + dependencies: + create-hash "^1.1.0" + pbkdf2 "^3.0.9" + randombytes "^2.0.1" + safe-buffer "^5.0.1" + unorm "^1.3.3" + bip66@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22" @@ -12180,6 +12211,13 @@ browser-assert@^1.2.1: resolved "https://registry.yarnpkg.com/browser-assert/-/browser-assert-1.2.1.tgz#9aaa5a2a8c74685c2ae05bfe46efd606f068c200" integrity sha512-nfulgvOR6S4gt9UKCeGJOuSGBPGiFT6oQ/2UBnvTY/5aQ1PnksW72fhZkM30DzoRRv2WpwZf1vHHEr3mtuXIWQ== +browser-passworder@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/browser-passworder/-/browser-passworder-2.0.3.tgz#6fdd2082e516a176edbcb3dcee0b7f9fce4f7917" + integrity sha1-b90gguUWoXbtvLPc7gt/n85PeRc= + dependencies: + browserify-unibabel "^3.0.0" + browser-process-hrtime@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" @@ -12239,6 +12277,11 @@ browserify-sign@^4.0.0, browserify-sign@^4.0.4: readable-stream "^3.6.2" safe-buffer "^5.2.1" +browserify-unibabel@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/browserify-unibabel/-/browserify-unibabel-3.0.0.tgz#5a6b8f0f704ce388d3927df47337e25830f71dda" + integrity sha1-WmuPD3BM44jTkn30czfiWDD3Hdo= + browserify-zlib@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" @@ -13434,6 +13477,11 @@ cookie@0.6.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== +cookiejar@^2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.4.tgz#ee669c1fea2cf42dc31585469d193fef0d65771b" + integrity sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw== + cookies@~0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/cookies/-/cookies-0.8.0.tgz#1293ce4b391740a8406e3c9870e828c4b54f3f90" @@ -13526,10 +13574,13 @@ cosmiconfig@^7.0.0, cosmiconfig@^7.0.1, cosmiconfig@^7.1.0: path-type "^4.0.0" yaml "^1.10.0" -crc-32@^1.2.0, crc-32@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" - integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== +crc-32@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.0.tgz#cb2db6e29b88508e32d9dd0ec1693e7b41a18208" + integrity sha512-1uBwHxF+Y/4yF5G48fwnKq6QsIXheor3ZLPT80yGBV1oEUwpPojlEhQbWKVw1VwcTQyMGHK1/XMmTjmlsmTTGA== + dependencies: + exit-on-epipe "~1.0.1" + printj "~1.1.0" crc32-stream@^3.0.1: version "3.0.1" @@ -13633,7 +13684,7 @@ cross-fetch@3.1.5: dependencies: node-fetch "2.6.7" -cross-fetch@4.0.0, cross-fetch@^4.0.0: +cross-fetch@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-4.0.0.tgz#f037aef1580bb3a1a35164ea2a848ba81b445983" integrity sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g== @@ -13706,7 +13757,7 @@ crypto-browserify@^3.12.0: randombytes "^2.0.0" randomfill "^1.0.3" -crypto-js@4.2.0, crypto-js@^4.2.0: +crypto-js@4.2.0, crypto-js@^3.1.4, crypto-js@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631" integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q== @@ -15624,6 +15675,17 @@ eth-ens-namehash@^1.0.2: idna-uts46 "^1.0.1" js-sha3 "^0.5.7" +eth-hd-keyring@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/eth-hd-keyring/-/eth-hd-keyring-3.6.0.tgz#6835d30aa411b8d3ef098e82f6427b5325082abb" + integrity sha512-n2CwE9VNXsxLrXQa6suv0Umt4NT6+HtoahKgWx3YviXx4rQFwVT5nDwZfjhwrT31ESuoXYNIeJgz5hKLD96QeQ== + dependencies: + bip39 "^2.2.0" + eth-sig-util "^3.0.1" + eth-simple-keyring "^4.2.0" + ethereumjs-util "^7.0.9" + ethereumjs-wallet "^1.0.1" + eth-json-rpc-errors@^1.0.1: version "1.1.1" resolved "https://registry.yarnpkg.com/eth-json-rpc-errors/-/eth-json-rpc-errors-1.1.1.tgz#148377ef55155585981c21ff574a8937f9d6991f" @@ -15718,6 +15780,21 @@ eth-json-rpc-middleware@^8.1.0: node-fetch "^2.6.7" pify "^3.0.0" +eth-keyring-controller@^6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/eth-keyring-controller/-/eth-keyring-controller-6.2.1.tgz#61901071fc74059ed37cb5ae93870fdcae6e3781" + integrity sha512-x2gTM1iHp2Kbvdtd9Eslysw0qzVZiqOzpVB3AU/ni2Xiit+rlcv2H80zYKjrEwlfWFDj4YILD3bOqlnEMmRJOA== + dependencies: + bip39 "^2.4.0" + bluebird "^3.5.0" + browser-passworder "^2.0.3" + eth-hd-keyring "^3.6.0" + eth-sig-util "^3.0.1" + eth-simple-keyring "^4.2.0" + ethereumjs-util "^7.0.9" + loglevel "^1.5.0" + obs-store "^4.0.3" + eth-method-registry@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/eth-method-registry/-/eth-method-registry-1.1.0.tgz#3cc01bd23dcf513428d14a0bb19910652cc5cac0" @@ -15725,7 +15802,7 @@ eth-method-registry@1.1.0: dependencies: ethjs "^0.3.0" -eth-phishing-detect@^1.2.0: +eth-phishing-detect@^1.1.14, eth-phishing-detect@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/eth-phishing-detect/-/eth-phishing-detect-1.2.0.tgz#11b357776b2d1b98a9ac594a1343e5184fc26bf0" integrity sha512-+M7D4dhu5tkSA9b5eiBwDeJCjwy+7Lv49nuTEw8fNZIZUAVZC3d2XHatBq1MOW7J8kxNGbBdgBuIf65opI7Tkg== @@ -15762,6 +15839,26 @@ eth-sig-util@^1.4.2: ethereumjs-abi "git+https://github.com/ethereumjs/ethereumjs-abi.git" ethereumjs-util "^5.1.1" +eth-sig-util@^3.0.0, eth-sig-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-3.0.1.tgz#8753297c83a3f58346bd13547b59c4b2cd110c96" + integrity sha512-0Us50HiGGvZgjtWTyAI/+qTzYPMLy5Q451D0Xy68bxq1QMWdoOddDwGvsqcFT27uohKgalM9z/yxplyt+mY2iQ== + dependencies: + ethereumjs-abi "^0.6.8" + ethereumjs-util "^5.1.1" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.0" + +eth-simple-keyring@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/eth-simple-keyring/-/eth-simple-keyring-4.2.0.tgz#c197a4bd4cce7d701b5f3607d0b843112ddb17e3" + integrity sha512-lBxFObXJTBjktDkQszXrqoB317wghEUYATQ3W19vLAjaznrmbdy1lccPhXIRMT9bHIUgNKOJQkLohNZiT9tO8Q== + dependencies: + eth-sig-util "^3.0.1" + ethereumjs-util "^7.0.9" + ethereumjs-wallet "^1.0.1" + events "^1.1.1" + eth-url-parser@1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/eth-url-parser/-/eth-url-parser-1.0.4.tgz#310a99f331abdb8d603c74131568fb773e609cd8" @@ -15922,7 +16019,7 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: ethjs-util "0.1.6" rlp "^2.2.3" -ethereumjs-util@^7.0.10, ethereumjs-util@^7.0.8, ethereumjs-util@^7.1.2, ethereumjs-util@^7.1.5: +ethereumjs-util@^7.0.10, ethereumjs-util@^7.0.7, ethereumjs-util@^7.0.8, ethereumjs-util@^7.0.9, ethereumjs-util@^7.1.2, ethereumjs-util@^7.1.5: version "7.1.5" resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz#9ecf04861e4fbbeed7465ece5f23317ad1129181" integrity sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg== @@ -15964,7 +16061,7 @@ ethereumjs-wallet@^1.0.1: utf8 "^3.0.0" uuid "^8.3.2" -ethers@^5.0.14, ethers@^5.7.0: +ethers@^5.0.14, ethers@^5.4.1, ethers@^5.7.0: version "5.7.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== @@ -16245,6 +16342,11 @@ events@3.3.0, events@^3.0.0, events@^3.2.0, events@^3.3.0: resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== +events@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + integrity sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ= + evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" @@ -16321,6 +16423,11 @@ exif-parser@^0.1.12: resolved "https://registry.yarnpkg.com/exif-parser/-/exif-parser-0.1.12.tgz#58a9d2d72c02c1f6f02a0ef4a9166272b7760922" integrity sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw== +exit-on-epipe@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz#0bdd92e87d5285d267daa8171d0eb06159689692" + integrity sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw== + exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" @@ -18833,11 +18940,6 @@ isomorphic-unfetch@3.1.0, isomorphic-unfetch@^3.1.0: node-fetch "^2.6.1" unfetch "^4.2.0" -isomorphic-ws@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz#e5529148912ecb9b451b46ed44d53dae1ce04bbf" - integrity sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw== - isstream@0.1.x, isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" @@ -20529,7 +20631,7 @@ loglevel-plugin-prefix@^0.8.4: resolved "https://registry.yarnpkg.com/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.8.4.tgz#2fe0e05f1a820317d98d8c123e634c1bd84ff644" integrity sha512-WpG9CcFAOjz/FtNht+QJeGpvVl/cdR6P0z6OcXSkr8wFJOsV2GRj2j10JLfjuA4aYkcKCNIEqRGCyTife9R8/g== -loglevel@^1.6.0: +loglevel@^1.5.0, loglevel@^1.6.0: version "1.8.0" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.8.0.tgz#e7ec73a57e1e7b419cb6c6ac06bf050b67356114" integrity sha512-G6A/nJLRgWOuuwdNuA6koovfEV1YpqqAG4pRUlFaz3jj2QNZ8M4vBqnVA+HBTmU/AMNUtlOsMmSpF6NyOjztbA== @@ -22152,7 +22254,7 @@ object.values@^1.0.4, object.values@^1.1.0, object.values@^1.1.5, object.values@ define-properties "^1.2.0" es-abstract "^1.22.1" -obs-store@4.0.3: +obs-store@4.0.3, obs-store@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/obs-store/-/obs-store-4.0.3.tgz#b632ec7814baa604fae084a4c97e87c0b7a6d14c" integrity sha512-+mm13kCRDv6IcvUDKTw0LIy5+dQhIktYaR/RwwZUFzOTi/fjMaNBnk42Adb94qZqJ00qWkjhQSZH7MXlKnTi8A== @@ -22749,7 +22851,7 @@ pbkdf2@3.0.8: dependencies: create-hmac "^1.1.2" -pbkdf2@3.1.2, pbkdf2@^3.0.17, pbkdf2@^3.0.3: +pbkdf2@3.1.2, pbkdf2@^3.0.17, pbkdf2@^3.0.3, pbkdf2@^3.0.9: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== @@ -23211,6 +23313,11 @@ pretty-ms@^7.0.0: dependencies: parse-ms "^2.1.0" +printj@~1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/printj/-/printj-1.1.2.tgz#d90deb2975a8b9f600fb3a1c94e3f4c53c78a222" + integrity sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ== + prismjs@^1.8.4: version "1.28.0" resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.28.0.tgz#0d8f561fa0f7cf6ebca901747828b149147044b6" @@ -27129,7 +27236,7 @@ tunnel@^0.0.6: resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== -tweetnacl-util@^0.15.1: +tweetnacl-util@^0.15.0, tweetnacl-util@^0.15.1: version "0.15.1" resolved "https://registry.yarnpkg.com/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz#b80fcdb5c97bcc508be18c44a4be50f022eea00b" integrity sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw== @@ -27454,7 +27561,7 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== -unorm@^1.4.1: +unorm@^1.3.3, unorm@^1.4.1: version "1.6.0" resolved "https://registry.yarnpkg.com/unorm/-/unorm-1.6.0.tgz#029b289661fba714f1a9af439eb51d9b16c205af" integrity sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA== @@ -27632,6 +27739,11 @@ utf8-byte-length@^1.0.1: resolved "https://registry.yarnpkg.com/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz#f45f150c4c66eee968186505ab93fcbb8ad6bf61" integrity sha1-9F8VDExm7uloGGUFq5P8u4rWv2E= +utf8@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.2.tgz#1fa0d9270e9be850d9b05027f63519bf46457d96" + integrity sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY= + utf8@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" @@ -27661,7 +27773,7 @@ util@^0.10.3, util@^0.10.4: dependencies: inherits "2.0.3" -util@^0.12.0, util@^0.12.1, util@^0.12.4, util@^0.12.5: +util@^0.12.0, util@^0.12.1, util@^0.12.4: version "0.12.5" resolved "https://registry.yarnpkg.com/util/-/util-0.12.5.tgz#5f17a6059b73db61a875668781a1c2b136bd6fbc" integrity sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA== @@ -27875,130 +27987,6 @@ weak@^1.0.0: bindings "^1.2.1" nan "^2.0.5" -web3-core@^4.3.0, web3-core@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-4.3.2.tgz#f24b11d6a57dee527de8d42c89de2a439f0c4bed" - integrity sha512-uIMVd/j4BgOnwfpY8ZT+QKubOyM4xohEhFZXz9xB8wimXWMMlYVlIK/TbfHqFolS9uOerdSGhsMbcK9lETae8g== - dependencies: - web3-errors "^1.1.4" - web3-eth-accounts "^4.1.0" - web3-eth-iban "^4.0.7" - web3-providers-http "^4.1.0" - web3-providers-ws "^4.0.7" - web3-types "^1.3.1" - web3-utils "^4.1.0" - web3-validator "^2.0.3" - optionalDependencies: - web3-providers-ipc "^4.0.7" - -web3-errors@^1.1.3, web3-errors@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/web3-errors/-/web3-errors-1.1.4.tgz#5667a0a5f66fc936e101ef32032ccc1e8ca4d5a1" - integrity sha512-WahtszSqILez+83AxGecVroyZsMuuRT+KmQp4Si5P4Rnqbczno1k748PCrZTS1J4UCPmXMG2/Vt+0Bz2zwXkwQ== - dependencies: - web3-types "^1.3.1" - -web3-eth-abi@^4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-4.2.1.tgz#b1260dace8380221f12f4274af240c1dfed1045c" - integrity sha512-IE91WUhhiDpBtbkl/DHUoZz7z7T5FXvl3zPLkrxT+dNlOT+wni+US/67jQCLvJRbqf9ApQ26lVYry0bovFgyqA== - dependencies: - abitype "0.7.1" - web3-errors "^1.1.4" - web3-types "^1.6.0" - web3-utils "^4.2.3" - web3-validator "^2.0.5" - -web3-eth-accounts@^4.1.0, web3-eth-accounts@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-4.1.2.tgz#652d6e3daf4d6cb3fe67cec6a878e768f6e8b8e8" - integrity sha512-y0JynDeTDnclyuE9mShXLeEj+BCrPHxPHOyPCgTchUBQsALF9+0OhP7WiS3IqUuu0Hle5bjG2f5ddeiPtNEuLg== - dependencies: - "@ethereumjs/rlp" "^4.0.1" - crc-32 "^1.2.2" - ethereum-cryptography "^2.0.0" - web3-errors "^1.1.4" - web3-types "^1.6.0" - web3-utils "^4.2.3" - web3-validator "^2.0.5" - -web3-eth-contract@^4.3.0, web3-eth-contract@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-4.4.0.tgz#21760ef39ab95b34c55e7eaee316e0632e56cd21" - integrity sha512-pZ/w6Lb6ZDUUs7f5GCKXiHDAGGvt2tdwiHkvgmQTRnq9b0MEsUpteDyPYspHxKzQWLgbeK37jPb8zbQe4kE/Hg== - dependencies: - web3-core "^4.3.2" - web3-errors "^1.1.4" - web3-eth "^4.6.0" - web3-eth-abi "^4.2.1" - web3-types "^1.6.0" - web3-utils "^4.2.3" - web3-validator "^2.0.5" - -web3-eth-ens@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-4.2.0.tgz#8734b034efd48a735f7052fef0205653a78b84cb" - integrity sha512-qYj34te2UctoObt8rlEIY/t2MuTMiMiiHhO2JAHRGqSLCQ7b8DM3RpvkiiSB0N0ZyEn+CetZqJCTYb8DNKBS/g== - dependencies: - "@adraffy/ens-normalize" "^1.8.8" - web3-core "^4.3.2" - web3-errors "^1.1.4" - web3-eth "^4.5.0" - web3-eth-contract "^4.3.0" - web3-net "^4.0.7" - web3-types "^1.5.0" - web3-utils "^4.2.2" - web3-validator "^2.0.5" - -web3-eth-iban@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-4.0.7.tgz#ee504f845d7b6315f0be78fcf070ccd5d38e4aaf" - integrity sha512-8weKLa9KuKRzibC87vNLdkinpUE30gn0IGY027F8doeJdcPUfsa4IlBgNC4k4HLBembBB2CTU0Kr/HAOqMeYVQ== - dependencies: - web3-errors "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - web3-validator "^2.0.3" - -web3-eth-personal@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-4.0.8.tgz#b51628c560de550ca8b354fa784f9556aae6065c" - integrity sha512-sXeyLKJ7ddQdMxz1BZkAwImjqh7OmKxhXoBNF3isDmD4QDpMIwv/t237S3q4Z0sZQamPa/pHebJRWVuvP8jZdw== - dependencies: - web3-core "^4.3.0" - web3-eth "^4.3.1" - web3-rpc-methods "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - web3-validator "^2.0.3" - -web3-eth@^4.3.1, web3-eth@^4.5.0, web3-eth@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-4.6.0.tgz#75c177e2bde88a613a6996fab515f104e16921da" - integrity sha512-8KtxlGsomovoFULqEpfixgmCpaJ2YIJGxbXUfezh2coXHjVgEopQhARYtKGClyV5kkdCIqwHS8Gvsm6TVNqH6Q== - dependencies: - setimmediate "^1.0.5" - web3-core "^4.3.2" - web3-errors "^1.1.4" - web3-eth-abi "^4.2.1" - web3-eth-accounts "^4.1.2" - web3-net "^4.0.7" - web3-providers-ws "^4.0.7" - web3-rpc-methods "^1.2.0" - web3-types "^1.6.0" - web3-utils "^4.2.3" - web3-validator "^2.0.5" - -web3-net@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-4.0.7.tgz#ed2c1bd700cf94be93a6dbd8bd8aa413d8681942" - integrity sha512-SzEaXFrBjY25iQGk5myaOfO9ZyfTwQEa4l4Ps4HDNVMibgZji3WPzpjq8zomVHMwi8bRp6VV7YS71eEsX7zLow== - dependencies: - web3-core "^4.3.0" - web3-rpc-methods "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - web3-provider-engine@^16.0.3, web3-provider-engine@^16.0.8: version "16.0.8" resolved "https://registry.yarnpkg.com/web3-provider-engine/-/web3-provider-engine-16.0.8.tgz#c015dc804d0d499f695a8e4b110945b25e29c64f" @@ -28026,94 +28014,16 @@ web3-provider-engine@^16.0.3, web3-provider-engine@^16.0.8: xhr "^2.2.0" xtend "^4.0.1" -web3-providers-http@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-4.1.0.tgz#8d7afda67d1d8542ca85b30f60a3d1fe1993b561" - integrity sha512-6qRUGAhJfVQM41E5t+re5IHYmb5hSaLc02BE2MaRQsz2xKA6RjmHpOA5h/+ojJxEpI9NI2CrfDKOAgtJfoUJQg== - dependencies: - cross-fetch "^4.0.0" - web3-errors "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - -web3-providers-ipc@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-4.0.7.tgz#9ec4c8565053af005a5170ba80cddeb40ff3e3d3" - integrity sha512-YbNqY4zUvIaK2MHr1lQFE53/8t/ejHtJchrWn9zVbFMGXlTsOAbNoIoZWROrg1v+hCBvT2c9z8xt7e/+uz5p1g== - dependencies: - web3-errors "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - -web3-providers-ws@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-4.0.7.tgz#7a78a0dcf077e0e802da524fbb37d080b356c14b" - integrity sha512-n4Dal9/rQWjS7d6LjyEPM2R458V8blRm0eLJupDEJOOIBhGYlxw5/4FthZZ/cqB7y/sLVi7K09DdYx2MeRtU5w== +web3@^0.20.7: + version "0.20.7" + resolved "https://registry.yarnpkg.com/web3/-/web3-0.20.7.tgz#1605e6d81399ed6f85a471a4f3da0c8be57df2f7" + integrity sha512-VU6/DSUX93d1fCzBz7WP/SGCQizO1rKZi4Px9j/3yRyfssHyFcZamMw2/sj4E8TlfMXONvZLoforR8B4bRoyTQ== dependencies: - "@types/ws" "8.5.3" - isomorphic-ws "^5.0.0" - web3-errors "^1.1.3" - web3-types "^1.3.0" - web3-utils "^4.0.7" - ws "^8.8.1" - -web3-rpc-methods@^1.1.3, web3-rpc-methods@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/web3-rpc-methods/-/web3-rpc-methods-1.2.0.tgz#761dcb036ab16edb2b03e80c11e3f5df24690345" - integrity sha512-CWJ/g4I4WyYvLkf21wCZAehdhU/VjX/OAPHnqF5/FPDJlogOsOnGXHqi1Z5AP+ocdt395PNubd8jyMMJoYGSBA== - dependencies: - web3-core "^4.3.2" - web3-types "^1.5.0" - web3-validator "^2.0.4" - -web3-types@^1.3.0, web3-types@^1.3.1, web3-types@^1.5.0, web3-types@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/web3-types/-/web3-types-1.6.0.tgz#ebe7f140c31f7cc0ad15f238ad7e7ac72797ff3b" - integrity sha512-qgOtADqlD5hw+KPKBUGaXAcdNLL0oh6qTeVgXwewCfbL/lG9R+/GrgMQB1gbTJ3cit8hMwtH8KX2Em6OwO0HRw== - -web3-utils@^4.0.7, web3-utils@^4.1.0, web3-utils@^4.2.2, web3-utils@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-4.2.3.tgz#e1d30c4b087cd95f4307baeb80e3160f174e1cfd" - integrity sha512-m5plKTC2YtQntHITQRyIePw52UVP1IrShhmA2FACtn4zmc5ADmrXOlQWiPzxFP/18eRJsAaUAw2+CQn1u4WPxQ== - dependencies: - ethereum-cryptography "^2.0.0" - eventemitter3 "^5.0.1" - web3-errors "^1.1.4" - web3-types "^1.6.0" - web3-validator "^2.0.5" - -web3-validator@^2.0.3, web3-validator@^2.0.4, web3-validator@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/web3-validator/-/web3-validator-2.0.5.tgz#de1984bdb34f292251b86400dba7169700db0849" - integrity sha512-2gLOSW8XqEN5pw5jVUm20EB7A8SbQiekpAtiI0JBmCIV0a2rp97v8FgWY5E3UEqnw5WFfEqvcDVW92EyynDTyQ== - dependencies: - ethereum-cryptography "^2.0.0" - util "^0.12.5" - web3-errors "^1.1.4" - web3-types "^1.5.0" - zod "^3.21.4" - -web3@^4.2.2: - version "4.8.0" - resolved "https://registry.yarnpkg.com/web3/-/web3-4.8.0.tgz#c7c7d2a7616ae387f8b2e3a3e416153a4bff479a" - integrity sha512-kQSF2NlHk8yjS3SRiJW3S+U5ibkEmVRhB4/GYsVwGvdAkFC2b+EIE1Ob7J56OmqW9VBZgkx1+SuWqo5JTIJSYQ== - dependencies: - web3-core "^4.3.2" - web3-errors "^1.1.4" - web3-eth "^4.6.0" - web3-eth-abi "^4.2.1" - web3-eth-accounts "^4.1.2" - web3-eth-contract "^4.4.0" - web3-eth-ens "^4.2.0" - web3-eth-iban "^4.0.7" - web3-eth-personal "^4.0.8" - web3-net "^4.0.7" - web3-providers-http "^4.1.0" - web3-providers-ws "^4.0.7" - web3-rpc-methods "^1.2.0" - web3-types "^1.6.0" - web3-utils "^4.2.3" - web3-validator "^2.0.5" + bignumber.js "git+https://github.com/frozeman/bignumber.js-nolookahead.git" + crypto-js "^3.1.4" + utf8 "^2.1.1" + xhr2-cookies "^1.1.0" + xmlhttprequest "*" webdriver@5.23.0: version "5.23.0" @@ -28647,7 +28557,7 @@ ws@7.5.3: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74" integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg== -ws@8.14.1: +ws@8.14.1, ws@^8.0.0, ws@^8.5.0: version "8.14.1" resolved "https://registry.yarnpkg.com/ws/-/ws-8.14.1.tgz#4b9586b4f70f9e6534c7bb1d3dc0baa8b8cf01e0" integrity sha512-4OOseMUq8AzRBI/7SLMUwO+FEDnguetSk7KMb1sHwvF2w2Wv5Hoj0nlifx8vtGsftE/jWHojPy8sMMzYLJ2G/A== @@ -28674,11 +28584,6 @@ ws@^7, ws@^7.0.0, ws@^7.2.3, ws@^7.5.1, ws@^7.5.9: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== -ws@^8.0.0, ws@^8.5.0, ws@^8.8.1: - version "8.17.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea" - integrity sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow== - ws@~8.11.0: version "8.11.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" @@ -28692,16 +28597,18 @@ xcode@^3.0.1: simple-plist "^1.1.0" uuid "^7.0.3" +xhr2-cookies@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/xhr2-cookies/-/xhr2-cookies-1.1.0.tgz#7d77449d0999197f155cb73b23df72505ed89d48" + integrity sha1-fXdEnQmZGX8VXLc7I99yUF7YnUg= + dependencies: + cookiejar "^2.1.1" + xhr2@0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/xhr2/-/xhr2-0.1.3.tgz#cbfc4759a69b4a888e78cf4f20b051038757bd11" integrity sha1-y/xHWaabSoiOeM9PILBRA4dXvRE= -xhr2@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/xhr2/-/xhr2-0.2.1.tgz#4e73adc4f9cfec9cbd2157f73efdce3a5f108a93" - integrity sha512-sID0rrVCqkVNUn8t6xuv9+6FViXjUVXq8H5rWOH2rz9fDNQEd4g0EA2XlcEdJXRz5BMEn4O1pJFdT+z4YHhoWw== - xhr@^2.0.1, xhr@^2.2.0: version "2.6.0" resolved "https://registry.yarnpkg.com/xhr/-/xhr-2.6.0.tgz#b69d4395e792b4173d6b7df077f0fc5e4e2b249d" @@ -28760,6 +28667,11 @@ xmlhttprequest-ssl@~2.0.0: resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67" integrity sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A== +xmlhttprequest@*: + version "1.8.0" + resolved "https://registry.yarnpkg.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz#67fe075c5c24fef39f9d65f5f7b7fe75171968fc" + integrity sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw= + xpath@^0.x: version "0.0.32" resolved "https://registry.yarnpkg.com/xpath/-/xpath-0.0.32.tgz#1b73d3351af736e17ec078d6da4b8175405c48af" @@ -29037,10 +28949,10 @@ zip-stream@^4.1.0: compress-commons "^4.1.0" readable-stream "^3.6.0" -zod@^3.21.4, zod@^3.22.4: - version "3.23.8" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.8.tgz#e37b957b5d52079769fb8097099b592f0ef4067d" - integrity sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g== +zod@^3.22.4: + version "3.23.6" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.23.6.tgz#c08a977e2255dab1fdba933651584a05fcbf19e1" + integrity sha512-RTHJlZhsRbuA8Hmp/iNL7jnfc4nZishjsanDAfEY1QpDQZCahUp3xDzl+zfweE9BklxMUcgBgS1b7Lvie/ZVwA== zxcvbn@4.4.2: version "4.4.2"