diff --git a/package.json b/package.json index 0ac0efb0cf8..b06b6e9755e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,8 @@ "dependencies": { "@ethereumjs/common": "^2.3.1", "@ethereumjs/tx": "^3.2.1", + "@ethersproject/contracts": "^5.7.0", + "@ethersproject/providers": "^5.7.0", "@keystonehq/metamask-airgapped-keyring": "^0.3.0", "@metamask/contract-metadata": "^1.35.0", "@metamask/metamask-eth-abis": "3.0.0", @@ -57,7 +59,6 @@ "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", diff --git a/src/assets/Standards/ERC20Standard.ts b/src/assets/Standards/ERC20Standard.ts index c7994af2f97..2f782ea813a 100644 --- a/src/assets/Standards/ERC20Standard.ts +++ b/src/assets/Standards/ERC20Standard.ts @@ -1,6 +1,6 @@ import { abiERC20 } from '@metamask/metamask-eth-abis'; import { BN, toUtf8 } from 'ethereumjs-util'; -import { AbiCoder } from 'ethers/lib/utils'; +import { AbiCoder } from '@ethersproject/abi'; import { ERC20 } from '../../constants'; import { Web3 } from './standards-types'; diff --git a/src/assets/TokensController.ts b/src/assets/TokensController.ts index f8756ea2314..d4dcbddf110 100644 --- a/src/assets/TokensController.ts +++ b/src/assets/TokensController.ts @@ -3,7 +3,8 @@ import contractsMap from '@metamask/contract-metadata'; import { abiERC721 } from '@metamask/metamask-eth-abis'; import { v1 as random } from 'uuid'; import { Mutex } from 'async-mutex'; -import { ethers, Contract } from 'ethers'; +import { Contract } from '@ethersproject/contracts'; +import { Web3Provider } from '@ethersproject/providers'; import { AbortController } from 'abort-controller'; import { BaseController, BaseConfig, BaseState } from '../BaseController'; import type { PreferencesState } from '../user/PreferencesController'; @@ -242,7 +243,7 @@ export class TokensController extends BaseController< } _instantiateNewEthersProvider(): any { - return new ethers.providers.Web3Provider(this.config?.provider); + return new Web3Provider(this.config?.provider); } /** diff --git a/yarn.lock b/yarn.lock index b7d0ee7fcd1..bf627c3b5d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -646,402 +646,293 @@ __metadata: languageName: node linkType: hard -"@ethersproject/abi@npm:5.4.0, @ethersproject/abi@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/abi@npm:5.4.0" +"@ethersproject/abi@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/abi@npm:5.7.0" dependencies: - "@ethersproject/address": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/hash": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - checksum: b299aab954e43da5abfaf1ba015405c1d9f9d87f83e1c37d09c4c402bb98abac9aedecdb52fd17b1389a272caddc8341a9410babb6536a56e0b77004b5839173 + "@ethersproject/address": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/constants": ^5.7.0 + "@ethersproject/hash": ^5.7.0 + "@ethersproject/keccak256": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/strings": ^5.7.0 + checksum: bc6962bb6cb854e4d2a4d65b2c49c716477675b131b1363312234bdbb7e19badb7d9ce66f4ca2a70ae2ea84f7123dbc4e300a1bfe5d58864a7eafabc1466627e languageName: node linkType: hard -"@ethersproject/abstract-provider@npm:5.4.0, @ethersproject/abstract-provider@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/abstract-provider@npm:5.4.0" +"@ethersproject/abstract-provider@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/abstract-provider@npm:5.7.0" dependencies: - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/networks": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - "@ethersproject/web": ^5.4.0 - checksum: 4e87d8c8c549ebb9cd0d579945267eac0d40c34922af610667ab1a2a143abb330c51c1b09da95d39787e323941db4120c10c0e5ffd13591fd2d7dfd083210765 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/networks": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/transactions": ^5.7.0 + "@ethersproject/web": ^5.7.0 + checksum: 74cf4696245cf03bb7cc5b6cbf7b4b89dd9a79a1c4688126d214153a938126d4972d42c93182198653ce1de35f2a2cad68be40337d4774b3698a39b28f0228a8 languageName: node linkType: hard -"@ethersproject/abstract-signer@npm:5.4.0, @ethersproject/abstract-signer@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/abstract-signer@npm:5.4.0" +"@ethersproject/abstract-signer@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/abstract-signer@npm:5.7.0" dependencies: - "@ethersproject/abstract-provider": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - checksum: 6499aa3537eae53d5dd6bee80e15cf72c6f56882d716e24b1ba2167ec57d1f14304d166d8320e246d20b8529dcbd33ede8960b457e27fcdd6c0b94a84dd25c2e + "@ethersproject/abstract-provider": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + checksum: a823dac9cfb761e009851050ebebd5b229d1b1cc4a75b125c2da130ff37e8218208f7f9d1386f77407705b889b23d4a230ad67185f8872f083143e0073cbfbe3 languageName: node linkType: hard -"@ethersproject/address@npm:5.4.0, @ethersproject/address@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/address@npm:5.4.0" +"@ethersproject/address@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/address@npm:5.7.0" dependencies: - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/rlp": ^5.4.0 - checksum: c7ad0cffa86a24c5e4c176d4c08b99a35551abd72520ccc55de9c94ef45737f6082c2a784586360915f17802008154c995990f8f35b0f6c2b6738b80b766c0a4 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/keccak256": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/rlp": ^5.7.0 + checksum: 64ea5ebea9cc0e845c413e6cb1e54e157dd9fc0dffb98e239d3a3efc8177f2ff798cd4e3206cf3660ee8faeb7bef1a47dc0ebef0d7b132c32e61e550c7d4c843 languageName: node linkType: hard -"@ethersproject/base64@npm:5.4.0, @ethersproject/base64@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/base64@npm:5.4.0" +"@ethersproject/base64@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/base64@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - checksum: 40e14debc4534005cc8a1594074dab272c49d84fb3a6b4c0eedd6144211312a8ad97009603381e90f6ddfeaf5f227c0e8e56d6753562981a9ae6ccfcb8430d4e + "@ethersproject/bytes": ^5.7.0 + checksum: 7dd5d734d623582f08f665434f53685041a3d3b334a0e96c0c8afa8bbcaab934d50e5b6b980e826a8fde8d353e0b18f11e61faf17468177274b8e7c69cd9742b languageName: node linkType: hard -"@ethersproject/basex@npm:5.4.0, @ethersproject/basex@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/basex@npm:5.4.0" +"@ethersproject/basex@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/basex@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - checksum: 0a364834f29b27bb04c91698cd2612f07f96f73709af20d99a4b96babc75baf770e84ac01fa2c6b34f0ee3e04c35566d601c6cf1933973844c1a0b785f6f0da5 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + checksum: 326087b7e1f3787b5fe6cd1cf2b4b5abfafbc355a45e88e22e5e9d6c845b613ffc5301d629b28d5c4d5e2bfe9ec424e6782c804956dff79be05f0098cb5817de languageName: node linkType: hard -"@ethersproject/bignumber@npm:5.4.0, @ethersproject/bignumber@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/bignumber@npm:5.4.0" +"@ethersproject/bignumber@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/bignumber@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - bn.js: ^4.11.9 - checksum: 1364bba9af5b942def3e1705359e7965bf006d51003a879d784619baea60989b9cd99e042b235cd2e7861da44a41212ae8d5768cc5550dfd52230401a40003f2 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + bn.js: ^5.2.1 + checksum: 8c9a134b76f3feb4ec26a5a27379efb4e156b8fb2de0678a67788a91c7f4e30abe9d948638458e4b20f2e42380da0adacc7c9389d05fce070692edc6ae9b4904 languageName: node linkType: hard -"@ethersproject/bytes@npm:5.4.0, @ethersproject/bytes@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/bytes@npm:5.4.0" +"@ethersproject/bytes@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/bytes@npm:5.7.0" dependencies: - "@ethersproject/logger": ^5.4.0 - checksum: be8678ec713858e6d944defc78b9950ab83a9cde22c51ea2658ee4a5aa176f1ce9c36dd6630a2a17dcf6bd098b1b33b7b1d3b8fe2edb8840af4028567ca68775 + "@ethersproject/logger": ^5.7.0 + checksum: 66ad365ceaab5da1b23b72225c71dce472cf37737af5118181fa8ab7447d696bea15ca22e3a0e8836fdd8cfac161afe321a7c67d0dde96f9f645ddd759676621 languageName: node linkType: hard -"@ethersproject/constants@npm:5.4.0, @ethersproject/constants@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/constants@npm:5.4.0" - dependencies: - "@ethersproject/bignumber": ^5.4.0 - checksum: 736f601d54b1f427cf5451ac463c5470929aac590a287ec40fa5d5f69582f2695b6bc4b476228d63030fb7f215a302fc6db690b2d55038207910232e17b09d89 - languageName: node - linkType: hard - -"@ethersproject/contracts@npm:5.4.0": - version: 5.4.0 - resolution: "@ethersproject/contracts@npm:5.4.0" +"@ethersproject/constants@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/constants@npm:5.7.0" dependencies: - "@ethersproject/abi": ^5.4.0 - "@ethersproject/abstract-provider": ^5.4.0 - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/address": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - checksum: 11764d70c9454d7e4cb071b16b3970363769223870fbaba7f16c93e8f09c66c175b7c8d3a70a3ceef68036c194f58922c8159517ac6e3eeb6e8b537549c74074 + "@ethersproject/bignumber": ^5.7.0 + checksum: 6d4b1355747cce837b3e76ec3bde70e4732736f23b04f196f706ebfa5d4d9c2be50904a390d4d40ce77803b98d03d16a9b6898418e04ba63491933ce08c4ba8a languageName: node linkType: hard -"@ethersproject/hash@npm:5.4.0, @ethersproject/hash@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/hash@npm:5.4.0" +"@ethersproject/contracts@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/contracts@npm:5.7.0" dependencies: - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/address": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - checksum: 20c48688568cc6bb3643bdc69626d0358d1d45994d2f4e38ee01823c0f0dbb47920e74e751bbbfe7c02995a7fd5afe4e2594c0a301fb579339cb3e908141f7b2 + "@ethersproject/abi": ^5.7.0 + "@ethersproject/abstract-provider": ^5.7.0 + "@ethersproject/abstract-signer": ^5.7.0 + "@ethersproject/address": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/constants": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/transactions": ^5.7.0 + checksum: 6ccf1121cba01b31e02f8c507cb971ab6bfed85706484a9ec09878ef1594a62215f43c4fdef8f4a4875b99c4a800bc95e3be69b1803f8ce479e07634b5a740c0 languageName: node linkType: hard -"@ethersproject/hdnode@npm:5.4.0, @ethersproject/hdnode@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/hdnode@npm:5.4.0" +"@ethersproject/hash@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/hash@npm:5.7.0" dependencies: - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/basex": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/pbkdf2": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/sha2": ^5.4.0 - "@ethersproject/signing-key": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - "@ethersproject/wordlists": ^5.4.0 - checksum: cfd3b1512800877223960ad4e8ce6eacc09486b6e07d74f109c37f6211a3bb77c528c684d3a2dadff933f12d5b8d9676659ef65baa9c5eab257d255d78743dbd + "@ethersproject/abstract-signer": ^5.7.0 + "@ethersproject/address": ^5.7.0 + "@ethersproject/base64": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/keccak256": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/strings": ^5.7.0 + checksum: 6e9fa8d14eb08171cd32f17f98cc108ec2aeca74a427655f0d689c550fee0b22a83b3b400fad7fb3f41cf14d4111f87f170aa7905bcbcd1173a55f21b06262ef languageName: node linkType: hard -"@ethersproject/json-wallets@npm:5.4.0, @ethersproject/json-wallets@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/json-wallets@npm:5.4.0" - dependencies: - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/address": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/hdnode": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/pbkdf2": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/random": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - aes-js: 3.0.0 - scrypt-js: 3.0.1 - checksum: 8bd933253212199d6594cc2b7777b0e110724e756a9693f4d07f3549355eb599a7ede98b52bd96d2b0f8985ed52ad5a6ff2148fc0aa5a78812535636e4e9dffa - languageName: node - linkType: hard - -"@ethersproject/keccak256@npm:5.4.0, @ethersproject/keccak256@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/keccak256@npm:5.4.0" +"@ethersproject/keccak256@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/keccak256@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - js-sha3: 0.5.7 - checksum: b76d2818734fb55b80c3b7fc07e761a594b721840c276a52b92e457e4f460802c2f6fe6e684ef444a1d28565351b5859a6e202751fafe111bccef2e596bf9a1e + "@ethersproject/bytes": ^5.7.0 + js-sha3: 0.8.0 + checksum: ff70950d82203aab29ccda2553422cbac2e7a0c15c986bd20a69b13606ed8bb6e4fdd7b67b8d3b27d4f841e8222cbaccd33ed34be29f866fec7308f96ed244c6 languageName: node linkType: hard -"@ethersproject/logger@npm:5.4.0, @ethersproject/logger@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/logger@npm:5.4.0" - checksum: dae12037fe91668b14e2e55fe6e6404d57f8e6a632788610bf8dab8553efad2343d10c61d556c5697ca6646ad628e4802e48d92da4f4011d97ff2d1875bb4de5 +"@ethersproject/logger@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/logger@npm:5.7.0" + checksum: 075ab2f605f1fd0813f2e39c3308f77b44a67732b36e712d9bc085f22a84aac4da4f71b39bee50fe78da3e1c812673fadc41180c9970fe5e486e91ea17befe0d languageName: node linkType: hard -"@ethersproject/networks@npm:5.4.1, @ethersproject/networks@npm:^5.4.0": - version: 5.4.1 - resolution: "@ethersproject/networks@npm:5.4.1" +"@ethersproject/networks@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/networks@npm:5.7.0" dependencies: - "@ethersproject/logger": ^5.4.0 - checksum: 8345c307590fc7eddbed97e30f4c1bdadc3081fa9d94768934f80a3b7587b9f1064ad0854ac05301c9836a7c61860588da809a76eeb99793800870893ab0dc59 + "@ethersproject/logger": ^5.7.0 + checksum: 4f4d77e7c59e79cfcba616315a5d0e634a7653acbd11bb06a0028f4bd009b19f9a31556148a1e38f7308f55d1a1d170eb9f065290de9f9cf104b34e91cc348b8 languageName: node linkType: hard -"@ethersproject/pbkdf2@npm:5.4.0, @ethersproject/pbkdf2@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/pbkdf2@npm:5.4.0" +"@ethersproject/properties@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/properties@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/sha2": ^5.4.0 - checksum: 596c6b8f920a147eb8f7c1b36d6119be3bf0b31c591cc844b3067300a7ee605d9b03959309a58a37c1ab64e112b4edf838dcac658c5163c5d17966700936c615 + "@ethersproject/logger": ^5.7.0 + checksum: 6ab0ccf0c3aadc9221e0cdc5306ce6cd0df7f89f77d77bccdd1277182c9ead0202cd7521329ba3acde130820bf8af299e17cf567d0d497c736ee918207bbf59f languageName: node linkType: hard -"@ethersproject/properties@npm:5.4.0, @ethersproject/properties@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/properties@npm:5.4.0" +"@ethersproject/providers@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/providers@npm:5.7.0" dependencies: - "@ethersproject/logger": ^5.4.0 - checksum: 618ff237e5f21853752acf0ec7cff80d681aeb2a6b1812ed83bb99a6dcf9a86c1afef90e1669f2d766aab0daa7e21692fb03cf84e0cda355cb4f6b12eb9b059f - languageName: node - linkType: hard - -"@ethersproject/providers@npm:5.4.1": - version: 5.4.1 - resolution: "@ethersproject/providers@npm:5.4.1" - dependencies: - "@ethersproject/abstract-provider": ^5.4.0 - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/address": ^5.4.0 - "@ethersproject/basex": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/hash": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/networks": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/random": ^5.4.0 - "@ethersproject/rlp": ^5.4.0 - "@ethersproject/sha2": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - "@ethersproject/web": ^5.4.0 + "@ethersproject/abstract-provider": ^5.7.0 + "@ethersproject/abstract-signer": ^5.7.0 + "@ethersproject/address": ^5.7.0 + "@ethersproject/base64": ^5.7.0 + "@ethersproject/basex": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/constants": ^5.7.0 + "@ethersproject/hash": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/networks": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/random": ^5.7.0 + "@ethersproject/rlp": ^5.7.0 + "@ethersproject/sha2": ^5.7.0 + "@ethersproject/strings": ^5.7.0 + "@ethersproject/transactions": ^5.7.0 + "@ethersproject/web": ^5.7.0 bech32: 1.1.4 ws: 7.4.6 - checksum: e0251db6ef04f0007d91c56d17e024bb9ec3adc81753f5f7e71ca9749b28f6ac22a55ecbb47f7843a20a71a8b0f346e60017561d1dc219b55cd9537f3c7addac + checksum: a6f80cea838424ceb367ff8e0f004f9fd6b43a87505da9d6aef33eb2bbc77cdb03ab51709ae83b7aa07d038fadf00634e08d8683fe6ae8b17b9351e3b30b26cb languageName: node linkType: hard -"@ethersproject/random@npm:5.4.0, @ethersproject/random@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/random@npm:5.4.0" +"@ethersproject/random@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/random@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - checksum: 7bf0150b639faac4f9c8c234083d2f1b5d3fbd530ab64d5602240c8873d856418e1512f41b8c39b771118ff7d06d257dd0ad473aca9e3886535baeeb5ac6b7e8 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + checksum: 017829c91cff6c76470852855108115b0b52c611b6be817ed1948d56ba42d6677803ec2012aa5ae298a7660024156a64c11fcf544e235e239ab3f89f0fff7345 languageName: node linkType: hard -"@ethersproject/rlp@npm:5.4.0, @ethersproject/rlp@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/rlp@npm:5.4.0" +"@ethersproject/rlp@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/rlp@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - checksum: d6c45c17f8062a93737267aca52c16725fa197706b5dade1f806f9be3e498d3f70101cad631dc979d7db94ee170f225fed03900df35676cfe6ba86b16136f046 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + checksum: bce165b0f7e68e4d091c9d3cf47b247cac33252df77a095ca4281d32d5eeaaa3695d9bc06b2b057c5015353a68df89f13a4a54a72e888e4beeabbe56b15dda6e languageName: node linkType: hard -"@ethersproject/sha2@npm:5.4.0, @ethersproject/sha2@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/sha2@npm:5.4.0" +"@ethersproject/sha2@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/sha2@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 hash.js: 1.1.7 - checksum: 253a5ad3894c3a0bcd1d7af6dc19fbd80680732bf05c708b9c27c26ffc0a8c2be04eaeabf98be6be18e7181a130b142ac391aceac705382cea7f24876f012671 + checksum: 09321057c022effbff4cc2d9b9558228690b5dd916329d75c4b1ffe32ba3d24b480a367a7cc92d0f0c0b1c896814d03351ae4630e2f1f7160be2bcfbde435dbc languageName: node linkType: hard -"@ethersproject/signing-key@npm:5.4.0, @ethersproject/signing-key@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/signing-key@npm:5.4.0" +"@ethersproject/signing-key@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/signing-key@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - bn.js: ^4.11.9 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + bn.js: ^5.2.1 elliptic: 6.5.4 hash.js: 1.1.7 - checksum: aa5666aec046f57cd6b66044b2ea34cd72e481b209cadbf7a2d09e1eb9123e0817398e0e31dad22acef72fa9e06faf78026169c82f800826bcf4fbbed2d7d5a3 + checksum: 8f8de09b0aac709683bbb49339bc0a4cd2f95598f3546436c65d6f3c3a847ffa98e06d35e9ed2b17d8030bd2f02db9b7bd2e11c5cf8a71aad4537487ab4cf03a languageName: node linkType: hard -"@ethersproject/solidity@npm:5.4.0": - version: 5.4.0 - resolution: "@ethersproject/solidity@npm:5.4.0" +"@ethersproject/strings@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/strings@npm:5.7.0" dependencies: - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/sha2": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - checksum: 62f8756a9b9e15073b4785f8880a3c248eba6397f33b6de1bd4ed7f83a362c5a61dfe5b2e602b30aec0b0f46efc27cbdd796de43b2c1b62db9e3d2fed43ec90a + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/constants": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + checksum: 5ff78693ae3fdf3cf23e1f6dc047a61e44c8197d2408c42719fef8cb7b7b3613a4eec88ac0ed1f9f5558c74fe0de7ae3195a29ca91a239c74b9f444d8e8b50df languageName: node linkType: hard -"@ethersproject/strings@npm:5.4.0, @ethersproject/strings@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/strings@npm:5.4.0" +"@ethersproject/transactions@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/transactions@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - checksum: f62ab89803f6cbc9c91093589e8e117b0c0857d8642d7d85bef1807f3ced7757127d3f271bf0bd7f644e02a31282842c1339f678b7f8a79c88ad3326d775db2a + "@ethersproject/address": ^5.7.0 + "@ethersproject/bignumber": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/constants": ^5.7.0 + "@ethersproject/keccak256": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/rlp": ^5.7.0 + "@ethersproject/signing-key": ^5.7.0 + checksum: a31b71996d2b283f68486241bff0d3ea3f1ba0e8f1322a8fffc239ccc4f4a7eb2ea9994b8fd2f093283fd75f87bae68171e01b6265261f821369aca319884a79 languageName: node linkType: hard -"@ethersproject/transactions@npm:5.4.0, @ethersproject/transactions@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/transactions@npm:5.4.0" - dependencies: - "@ethersproject/address": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/rlp": ^5.4.0 - "@ethersproject/signing-key": ^5.4.0 - checksum: 7407c93301fe634bf74150e1b4dc0636246ee4022ae988c003e1a52d0ad5cc6a693a6cb763b2280cb856f76e314b8650206cb1308a7a679e63bfbe8604294fe3 - languageName: node - linkType: hard - -"@ethersproject/units@npm:5.4.0": - version: 5.4.0 - resolution: "@ethersproject/units@npm:5.4.0" - dependencies: - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/constants": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - checksum: 47054df485b4b648a982186d280f0eef9489acbd0d1a4036cc8f9170b8c3c91552b5d8d21213cef206e76b475fc83c9318d87c50b4931e0495198637181f068d - languageName: node - linkType: hard - -"@ethersproject/wallet@npm:5.4.0": - version: 5.4.0 - resolution: "@ethersproject/wallet@npm:5.4.0" - dependencies: - "@ethersproject/abstract-provider": ^5.4.0 - "@ethersproject/abstract-signer": ^5.4.0 - "@ethersproject/address": ^5.4.0 - "@ethersproject/bignumber": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/hash": ^5.4.0 - "@ethersproject/hdnode": ^5.4.0 - "@ethersproject/json-wallets": ^5.4.0 - "@ethersproject/keccak256": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/random": ^5.4.0 - "@ethersproject/signing-key": ^5.4.0 - "@ethersproject/transactions": ^5.4.0 - "@ethersproject/wordlists": ^5.4.0 - checksum: 537bea004798951476b15752fad672d919e3130aeacaff3cf2497d466f1346e5fa15b6cd716c0c879ce68bc7f33e1bd355ce11032a94e9d30eef0666b6fd1ddf - languageName: node - linkType: hard - -"@ethersproject/web@npm:5.4.0, @ethersproject/web@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/web@npm:5.4.0" - dependencies: - "@ethersproject/base64": ^5.4.0 - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - checksum: 09954d42aaa91690448b8dacfb16d82351138f13c2bf05ab18c4e03c5c5c1df625bc094d781665ef5b034a24f5c0c305d6b01f4f5e6bf082e30933b3788d69ce - languageName: node - linkType: hard - -"@ethersproject/wordlists@npm:5.4.0, @ethersproject/wordlists@npm:^5.4.0": - version: 5.4.0 - resolution: "@ethersproject/wordlists@npm:5.4.0" +"@ethersproject/web@npm:^5.7.0": + version: 5.7.0 + resolution: "@ethersproject/web@npm:5.7.0" dependencies: - "@ethersproject/bytes": ^5.4.0 - "@ethersproject/hash": ^5.4.0 - "@ethersproject/logger": ^5.4.0 - "@ethersproject/properties": ^5.4.0 - "@ethersproject/strings": ^5.4.0 - checksum: db9fb8994a27cec040a44efa4a9c16af6443db71e809012a7dfa05c2ea2162c699a7f5e5ca9683580a490e90c55718aa110fa1eb79749a359f85794cc43d67b6 + "@ethersproject/base64": ^5.7.0 + "@ethersproject/bytes": ^5.7.0 + "@ethersproject/logger": ^5.7.0 + "@ethersproject/properties": ^5.7.0 + "@ethersproject/strings": ^5.7.0 + checksum: 9d4ca82f8b1295bbc1c59d58cb351641802d2f70f4b7d523fc726f51b0615296da6d6585dee5749b4d5e4a6a9af6d6650d46fe562d5b04f43a0af5c7f7f4a77e languageName: node linkType: hard @@ -1439,6 +1330,8 @@ __metadata: dependencies: "@ethereumjs/common": ^2.3.1 "@ethereumjs/tx": ^3.2.1 + "@ethersproject/contracts": ^5.7.0 + "@ethersproject/providers": ^5.7.0 "@keystonehq/bc-ur-registry-eth": ^0.9.0 "@keystonehq/metamask-airgapped-keyring": ^0.3.0 "@lavamoat/allow-scripts": ^2.0.2 @@ -1482,7 +1375,6 @@ __metadata: eth-sig-util: ^3.0.0 ethereumjs-util: ^7.0.10 ethereumjs-wallet: ^1.0.1 - ethers: ^5.4.1 ethjs-provider-http: ^0.1.6 ethjs-unit: ^0.1.6 fast-deep-equal: ^3.1.3 @@ -2375,13 +2267,6 @@ __metadata: languageName: node linkType: hard -"aes-js@npm:3.0.0": - version: 3.0.0 - resolution: "aes-js@npm:3.0.0" - checksum: 251e26d533cd1a915b44896b17d5ed68c24a02484cfdd2e74ec700a309267db96651ea4eb657bf20aac32a3baa61f6e34edf8e2fec2de440a655da9942d334b8 - languageName: node - linkType: hard - "aes-js@npm:^3.1.1": version: 3.1.2 resolution: "aes-js@npm:3.1.2" @@ -2998,6 +2883,13 @@ __metadata: languageName: node linkType: hard +"bn.js@npm:^5.2.1": + version: 5.2.1 + resolution: "bn.js@npm:5.2.1" + checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 + languageName: node + linkType: hard + "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -4959,44 +4851,6 @@ __metadata: languageName: node linkType: hard -"ethers@npm:^5.4.1": - version: 5.4.1 - resolution: "ethers@npm:5.4.1" - dependencies: - "@ethersproject/abi": 5.4.0 - "@ethersproject/abstract-provider": 5.4.0 - "@ethersproject/abstract-signer": 5.4.0 - "@ethersproject/address": 5.4.0 - "@ethersproject/base64": 5.4.0 - "@ethersproject/basex": 5.4.0 - "@ethersproject/bignumber": 5.4.0 - "@ethersproject/bytes": 5.4.0 - "@ethersproject/constants": 5.4.0 - "@ethersproject/contracts": 5.4.0 - "@ethersproject/hash": 5.4.0 - "@ethersproject/hdnode": 5.4.0 - "@ethersproject/json-wallets": 5.4.0 - "@ethersproject/keccak256": 5.4.0 - "@ethersproject/logger": 5.4.0 - "@ethersproject/networks": 5.4.1 - "@ethersproject/pbkdf2": 5.4.0 - "@ethersproject/properties": 5.4.0 - "@ethersproject/providers": 5.4.1 - "@ethersproject/random": 5.4.0 - "@ethersproject/rlp": 5.4.0 - "@ethersproject/sha2": 5.4.0 - "@ethersproject/signing-key": 5.4.0 - "@ethersproject/solidity": 5.4.0 - "@ethersproject/strings": 5.4.0 - "@ethersproject/transactions": 5.4.0 - "@ethersproject/units": 5.4.0 - "@ethersproject/wallet": 5.4.0 - "@ethersproject/web": 5.4.0 - "@ethersproject/wordlists": 5.4.0 - checksum: 061acd25e931c3749fb15ec665f25bede75ecbc054df9859713f902c04b46485c697c6f35a7de6d81ac05c863d7a650f3b3cb29afb26d002fd9e960abae24bd4 - languageName: node - linkType: hard - "ethjs-abi@npm:0.2.0": version: 0.2.0 resolution: "ethjs-abi@npm:0.2.0" @@ -7428,7 +7282,14 @@ __metadata: languageName: node linkType: hard -"js-sha3@npm:0.5.7, js-sha3@npm:^0.5.7": +"js-sha3@npm:0.8.0": + version: 0.8.0 + resolution: "js-sha3@npm:0.8.0" + checksum: 75df77c1fc266973f06cce8309ce010e9e9f07ec35ab12022ed29b7f0d9c8757f5a73e1b35aa24840dced0dea7059085aa143d817aea9e188e2a80d569d9adce + languageName: node + linkType: hard + +"js-sha3@npm:^0.5.7": version: 0.5.7 resolution: "js-sha3@npm:0.5.7" checksum: 973a28ea4b26cc7f12d2ab24f796e24ee4a71eef45a6634a052f6eb38cf8b2333db798e896e6e094ea6fa4dfe8e42a2a7942b425cf40da3f866623fd05bb91ea @@ -9960,7 +9821,7 @@ __metadata: languageName: node linkType: hard -"scrypt-js@npm:3.0.1, scrypt-js@npm:^3.0.0, scrypt-js@npm:^3.0.1": +"scrypt-js@npm:^3.0.0, scrypt-js@npm:^3.0.1": version: 3.0.1 resolution: "scrypt-js@npm:3.0.1" checksum: b7c7d1a68d6ca946f2fbb0778e0c4ec63c65501b54023b2af7d7e9f48fdb6c6580d6f7675cd53bda5944c5ebc057560d5a6365079752546865defb3b79dea454