diff --git a/package.json b/package.json index a56921c..0a43a76 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "postpublish": "pinst --enable" }, "dependencies": { - "eth-hooks": "^4.0.48", + "eth-hooks": "^4.5.1", "ethers": "^5.6.4", "lodash.isequal": "^4.5.0", "merge-anything": "^5.0.2", diff --git a/src/components/address/address.tsx b/src/components/address/address.tsx new file mode 100644 index 0000000..60c0d44 --- /dev/null +++ b/src/components/address/address.tsx @@ -0,0 +1,31 @@ +import { useResolveEnsName } from 'eth-hooks/dapps'; +import { TEthersProvider } from 'eth-hooks/models'; + +export interface AddressProps { + address: string; + ensProvider?: TEthersProvider; + blockExplorer?: string; +} + +export interface AddressResult { + shortAddress: string; + ensName?: string; + explorerLink: string; +} + +const blockExplorerLink = (address: string, blockExplorer?: string): string => + `${blockExplorer || 'https://etherscan.io/'}address/${address}`; + +export const useAddress = (props: AddressProps): AddressResult => { + const address = props.address; + const [ensName] = useResolveEnsName(props.ensProvider, address); + const explorerLink = blockExplorerLink(address, props.blockExplorer); + + const shortAddress = address ? `${address.substring(0, 5)}...${address.substring(address.length - 4)}` : ''; + + return { + shortAddress, + ensName, + explorerLink, + }; +}; diff --git a/src/components/address/index.ts b/src/components/address/index.ts new file mode 100644 index 0000000..cef1680 --- /dev/null +++ b/src/components/address/index.ts @@ -0,0 +1 @@ +export * from './address'; diff --git a/src/index.ts b/src/index.ts index c8ad332..25611c7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,2 @@ export * from './components/eth-balance'; +export * from './components/address'; diff --git a/yarn.lock b/yarn.lock index 2b2400c..ac77649 100644 --- a/yarn.lock +++ b/yarn.lock @@ -284,20 +284,20 @@ __metadata: languageName: node linkType: hard -"@ethersproject/abi@npm:^5.6.1": - version: 5.6.2 - resolution: "@ethersproject/abi@npm:5.6.2" +"@ethersproject/abi@npm:5.6.4, @ethersproject/abi@npm:^5.6.3, @ethersproject/abi@npm:^5.6.4": + version: 5.6.4 + resolution: "@ethersproject/abi@npm:5.6.4" dependencies: - "@ethersproject/address": ^5.6.0 - "@ethersproject/bignumber": ^5.6.0 - "@ethersproject/bytes": ^5.6.0 - "@ethersproject/constants": ^5.6.0 - "@ethersproject/hash": ^5.6.0 - "@ethersproject/keccak256": ^5.6.0 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/constants": ^5.6.1 + "@ethersproject/hash": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 "@ethersproject/logger": ^5.6.0 "@ethersproject/properties": ^5.6.0 - "@ethersproject/strings": ^5.6.0 - checksum: 3c45a31ec3204beaeab0f2d8e1661908df59f1249b4d445d2a7662fc9d4309b46a7b5d460f47bcd487e315d889b81c469b48484170b36fb18398dd1e34fb9d2b + "@ethersproject/strings": ^5.6.1 + checksum: b5e70fa13a29e1143131a0ed25053a3d355c07353e13d436f42add33f40753b5541a088cf31a1ccca6448bb1d773a41ece0bf8367490d3f2ad394a4c26f4876f languageName: node linkType: hard @@ -316,6 +316,21 @@ __metadata: languageName: node linkType: hard +"@ethersproject/abstract-provider@npm:5.6.1, @ethersproject/abstract-provider@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/abstract-provider@npm:5.6.1" + dependencies: + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/networks": ^5.6.3 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/transactions": ^5.6.2 + "@ethersproject/web": ^5.6.1 + checksum: a1be8035d9e67fd41a336e2d38f5cf03b7a2590243749b4cf807ad73906b5a298e177ebe291cb5b54262ded4825169bf82968e0e5b09fbea17444b903faeeab0 + languageName: node + linkType: hard + "@ethersproject/abstract-signer@npm:5.6.0, @ethersproject/abstract-signer@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/abstract-signer@npm:5.6.0" @@ -329,6 +344,19 @@ __metadata: languageName: node linkType: hard +"@ethersproject/abstract-signer@npm:5.6.2, @ethersproject/abstract-signer@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/abstract-signer@npm:5.6.2" + dependencies: + "@ethersproject/abstract-provider": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + checksum: 09f3dd1309b37bb3803057d618e4a831668e010e22047f52f1719f2b6f50b63805f1bec112b1603880d6c6b7d403ed187611ff1b14ae1f151141ede186a04996 + languageName: node + linkType: hard + "@ethersproject/address@npm:5.6.0, @ethersproject/address@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/address@npm:5.6.0" @@ -342,6 +370,19 @@ __metadata: languageName: node linkType: hard +"@ethersproject/address@npm:5.6.1, @ethersproject/address@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/address@npm:5.6.1" + dependencies: + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/rlp": ^5.6.1 + checksum: 262096ef05a1b626c161a72698a5d8b06aebf821fe01a1651ab40f80c29ca2481b96be7f972745785fd6399906509458c4c9a38f3bc1c1cb5afa7d2f76f7309a + languageName: node + linkType: hard + "@ethersproject/base64@npm:5.6.0, @ethersproject/base64@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/base64@npm:5.6.0" @@ -351,6 +392,15 @@ __metadata: languageName: node linkType: hard +"@ethersproject/base64@npm:5.6.1, @ethersproject/base64@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/base64@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + checksum: d21c5c297e1b8bc48fe59012c0cd70a90df7772fac07d9cc3da499d71d174d9f48edfd83495d4a1496cb70e8d1b33fb5b549a9529c5c2f97bb3a07d3f33a3fe8 + languageName: node + linkType: hard + "@ethersproject/basex@npm:5.6.0, @ethersproject/basex@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/basex@npm:5.6.0" @@ -361,6 +411,16 @@ __metadata: languageName: node linkType: hard +"@ethersproject/basex@npm:5.6.1, @ethersproject/basex@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/basex@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/properties": ^5.6.0 + checksum: a14b75d2c25d0ac00ce0098e5bd338d4cce7a68c583839b2bc4e3512ffcb14498b18cbcb4e05b695d216d2a23814d0c335385f35b3118735cc4895234db5ae1c + languageName: node + linkType: hard + "@ethersproject/bignumber@npm:5.6.0, @ethersproject/bignumber@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/bignumber@npm:5.6.0" @@ -372,6 +432,17 @@ __metadata: languageName: node linkType: hard +"@ethersproject/bignumber@npm:5.6.2, @ethersproject/bignumber@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/bignumber@npm:5.6.2" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + bn.js: ^5.2.1 + checksum: 9cf31c10274f1b6d45b16aed29f43729e8f5edec38c8ec8bb90d6b44f0eae14fda6519536228d23916a375ce11e71a77279a912d653ea02503959910b6bf9de7 + languageName: node + linkType: hard + "@ethersproject/bytes@npm:5.6.1, @ethersproject/bytes@npm:^5.6.0, @ethersproject/bytes@npm:^5.6.1": version: 5.6.1 resolution: "@ethersproject/bytes@npm:5.6.1" @@ -390,6 +461,15 @@ __metadata: languageName: node linkType: hard +"@ethersproject/constants@npm:5.6.1, @ethersproject/constants@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/constants@npm:5.6.1" + dependencies: + "@ethersproject/bignumber": ^5.6.2 + checksum: 3c6abcee60f1620796dc40210a638b601ad8a2d3f6668a69c42a5ca361044f21296b16d1d43b8a00f7c28b385de4165983a8adf671e0983f5ef07459dfa84997 + languageName: node + linkType: hard + "@ethersproject/contracts@npm:5.6.0": version: 5.6.0 resolution: "@ethersproject/contracts@npm:5.6.0" @@ -408,21 +488,21 @@ __metadata: languageName: node linkType: hard -"@ethersproject/contracts@npm:^5.6.0": - version: 5.6.1 - resolution: "@ethersproject/contracts@npm:5.6.1" +"@ethersproject/contracts@npm:5.6.2, @ethersproject/contracts@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/contracts@npm:5.6.2" dependencies: - "@ethersproject/abi": ^5.6.0 - "@ethersproject/abstract-provider": ^5.6.0 - "@ethersproject/abstract-signer": ^5.6.0 - "@ethersproject/address": ^5.6.0 - "@ethersproject/bignumber": ^5.6.0 - "@ethersproject/bytes": ^5.6.0 - "@ethersproject/constants": ^5.6.0 + "@ethersproject/abi": ^5.6.3 + "@ethersproject/abstract-provider": ^5.6.1 + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/constants": ^5.6.1 "@ethersproject/logger": ^5.6.0 "@ethersproject/properties": ^5.6.0 - "@ethersproject/transactions": ^5.6.0 - checksum: 3e61f19e72acc60c763973baccaf75cb78fb7da0f403b92c8310d80107ba995e43d1625770dd91eb78e9501b7431874eb23ce34a57edf37918d8e939392bb221 + "@ethersproject/transactions": ^5.6.2 + checksum: c5a36ce3d0b88dc80db0135aaf39a71c0f14e262fd14172ae557d8943e69d3a2ba52c8f73f67639db0c235ea51155a97ff3584d431b92686f4c711b1004e6f87 languageName: node linkType: hard @@ -442,6 +522,22 @@ __metadata: languageName: node linkType: hard +"@ethersproject/hash@npm:5.6.1, @ethersproject/hash@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/hash@npm:5.6.1" + dependencies: + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/strings": ^5.6.1 + checksum: 1338b578a51bc5cb692c17b1cabc51e484e9e3e009c4ffec13032332fc7e746c115968de1c259133cdcdad55fa96c5c8a5144170190c62b968a3fedb5b1d2cdb + languageName: node + linkType: hard + "@ethersproject/hdnode@npm:5.6.0, @ethersproject/hdnode@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/hdnode@npm:5.6.0" @@ -462,6 +558,26 @@ __metadata: languageName: node linkType: hard +"@ethersproject/hdnode@npm:5.6.2, @ethersproject/hdnode@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/hdnode@npm:5.6.2" + dependencies: + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/basex": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/pbkdf2": ^5.6.1 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/sha2": ^5.6.1 + "@ethersproject/signing-key": ^5.6.2 + "@ethersproject/strings": ^5.6.1 + "@ethersproject/transactions": ^5.6.2 + "@ethersproject/wordlists": ^5.6.1 + checksum: b096882ac75d6738c085bf7cdaaf06b6b89055b8e98469df4abf00d600a6131299ec25ca3bc71986cc79d70ddf09ec00258e7ce7e94c45d5ffb83aa616eaaaae + languageName: node + linkType: hard + "@ethersproject/json-wallets@npm:5.6.0, @ethersproject/json-wallets@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/json-wallets@npm:5.6.0" @@ -483,6 +599,27 @@ __metadata: languageName: node linkType: hard +"@ethersproject/json-wallets@npm:5.6.1, @ethersproject/json-wallets@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/json-wallets@npm:5.6.1" + dependencies: + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/hdnode": ^5.6.2 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/pbkdf2": ^5.6.1 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/random": ^5.6.1 + "@ethersproject/strings": ^5.6.1 + "@ethersproject/transactions": ^5.6.2 + aes-js: 3.0.0 + scrypt-js: 3.0.1 + checksum: 811b3596aaf1c1a64a8acef0c4fe0123a660349e6cbd5e970b1f9461966fd06858be0f154543bbd962a0ef0d369db52c6254c6b5264c172d44315085a2a6c454 + languageName: node + linkType: hard + "@ethersproject/keccak256@npm:5.6.0, @ethersproject/keccak256@npm:^5.0.0-beta.130, @ethersproject/keccak256@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/keccak256@npm:5.6.0" @@ -493,6 +630,16 @@ __metadata: languageName: node linkType: hard +"@ethersproject/keccak256@npm:5.6.1, @ethersproject/keccak256@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/keccak256@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + js-sha3: 0.8.0 + checksum: fdc950e22a1aafc92fdf749cdc5b8952b85e8cee8872d807c5f40be31f58675d30e0eca5e676876b93f2cd22ac63a344d384d116827ee80928c24b7c299991f5 + languageName: node + linkType: hard + "@ethersproject/logger@npm:5.6.0, @ethersproject/logger@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/logger@npm:5.6.0" @@ -509,12 +656,12 @@ __metadata: languageName: node linkType: hard -"@ethersproject/networks@npm:^5.6.2": - version: 5.6.3 - resolution: "@ethersproject/networks@npm:5.6.3" +"@ethersproject/networks@npm:5.6.4, @ethersproject/networks@npm:^5.6.3, @ethersproject/networks@npm:^5.6.4": + version: 5.6.4 + resolution: "@ethersproject/networks@npm:5.6.4" dependencies: "@ethersproject/logger": ^5.6.0 - checksum: 94d2981eeed0accb69124cfb9a807552ada98b370415c9d906018bd70a33bc5a1286ff01eb2a3ce213c12334fcc7ab635ad0429f25a687b9b8f34d26d21df74b + checksum: d41c07497de4ace3f57e972428685a8703a867600cf01f2bc15a21fcb7f99afb3f05b3d8dbb29ac206473368f30d60b98dc445cc38403be4cbe6f804f70e5173 languageName: node linkType: hard @@ -528,6 +675,16 @@ __metadata: languageName: node linkType: hard +"@ethersproject/pbkdf2@npm:5.6.1, @ethersproject/pbkdf2@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/pbkdf2@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/sha2": ^5.6.1 + checksum: 316006373828a189bf22b7a08df7dd7ffe24e5f2c83e6d09d922ce663892cc14c7d27524dc4e51993d51e4464a7b7ce5e7b23453bdc85e3c6d4d5c41aa7227cf + languageName: node + linkType: hard + "@ethersproject/properties@npm:5.6.0, @ethersproject/properties@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/properties@npm:5.6.0" @@ -564,31 +721,31 @@ __metadata: languageName: node linkType: hard -"@ethersproject/providers@npm:^5.6.4": - version: 5.6.7 - resolution: "@ethersproject/providers@npm:5.6.7" +"@ethersproject/providers@npm:5.6.8, @ethersproject/providers@npm:^5.6.8": + version: 5.6.8 + resolution: "@ethersproject/providers@npm:5.6.8" dependencies: - "@ethersproject/abstract-provider": ^5.6.0 - "@ethersproject/abstract-signer": ^5.6.0 - "@ethersproject/address": ^5.6.0 - "@ethersproject/base64": ^5.6.0 - "@ethersproject/basex": ^5.6.0 - "@ethersproject/bignumber": ^5.6.0 - "@ethersproject/bytes": ^5.6.0 - "@ethersproject/constants": ^5.6.0 - "@ethersproject/hash": ^5.6.0 + "@ethersproject/abstract-provider": ^5.6.1 + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/address": ^5.6.1 + "@ethersproject/base64": ^5.6.1 + "@ethersproject/basex": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/constants": ^5.6.1 + "@ethersproject/hash": ^5.6.1 "@ethersproject/logger": ^5.6.0 - "@ethersproject/networks": ^5.6.0 + "@ethersproject/networks": ^5.6.3 "@ethersproject/properties": ^5.6.0 - "@ethersproject/random": ^5.6.0 - "@ethersproject/rlp": ^5.6.0 - "@ethersproject/sha2": ^5.6.0 - "@ethersproject/strings": ^5.6.0 - "@ethersproject/transactions": ^5.6.0 - "@ethersproject/web": ^5.6.0 + "@ethersproject/random": ^5.6.1 + "@ethersproject/rlp": ^5.6.1 + "@ethersproject/sha2": ^5.6.1 + "@ethersproject/strings": ^5.6.1 + "@ethersproject/transactions": ^5.6.2 + "@ethersproject/web": ^5.6.1 bech32: 1.1.4 ws: 7.4.6 - checksum: 1cab6ffe739fdc56d242ecbc674d1e3465f090e25752a94bd29c405ab59fa5a8a63ae25147cb5d06da9e77ee592796eb54b794ccc6347d3a3dddda66dcce3d74 + checksum: 27dc2005e1ae7a6d498bb0bbacc6ad1f7164a599cf5aaad7c51cfd7c4d36d0cc5c7c40ba504f9017c746e8a0f008f15ad24e9961816793b49755dcb5c01540c0 languageName: node linkType: hard @@ -602,6 +759,16 @@ __metadata: languageName: node linkType: hard +"@ethersproject/random@npm:5.6.1, @ethersproject/random@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/random@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + checksum: 55517d65eee6dcc0848ef10a825245d61553a6c1bec15d2f69d9430ce4568d9af32013e2aa96c8336545465a24a1fd04defbe9e9f76a5ee110dc5128d4111c11 + languageName: node + linkType: hard + "@ethersproject/rlp@npm:5.6.0, @ethersproject/rlp@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/rlp@npm:5.6.0" @@ -612,6 +779,16 @@ __metadata: languageName: node linkType: hard +"@ethersproject/rlp@npm:5.6.1, @ethersproject/rlp@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/rlp@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + checksum: 43a281d0e7842606e2337b5552c13f4b5dad209dce173de39ef6866e02c9d7b974f1cae945782f4c4b74a8e22d8272bfd0348c1cd1bfeb2c278078ef95565488 + languageName: node + linkType: hard + "@ethersproject/sha2@npm:5.6.0, @ethersproject/sha2@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/sha2@npm:5.6.0" @@ -623,6 +800,17 @@ __metadata: languageName: node linkType: hard +"@ethersproject/sha2@npm:5.6.1, @ethersproject/sha2@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/sha2@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + hash.js: 1.1.7 + checksum: 04313cb4a8e24ce8b5736f9d08906764fbfdab19bc64adef363cf570defa72926d8faae19aed805e1caee737f5efecdc60a4c89fd2b1ee2b3ba0eb9555cae3ae + languageName: node + linkType: hard + "@ethersproject/signing-key@npm:5.6.0, @ethersproject/signing-key@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/signing-key@npm:5.6.0" @@ -637,7 +825,21 @@ __metadata: languageName: node linkType: hard -"@ethersproject/solidity@npm:5.6.0, @ethersproject/solidity@npm:^5.6.0": +"@ethersproject/signing-key@npm:5.6.2, @ethersproject/signing-key@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/signing-key@npm:5.6.2" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + bn.js: ^5.2.1 + elliptic: 6.5.4 + hash.js: 1.1.7 + checksum: 7889d0934c9664f87e7b7e021794e2d2ddb2e81c1392498e154cf2d5909b922d74d3df78cec44187f63dc700eddad8f8ea5ded47d2082a212a591818014ca636 + languageName: node + linkType: hard + +"@ethersproject/solidity@npm:5.6.0": version: 5.6.0 resolution: "@ethersproject/solidity@npm:5.6.0" dependencies: @@ -651,6 +853,20 @@ __metadata: languageName: node linkType: hard +"@ethersproject/solidity@npm:5.6.1, @ethersproject/solidity@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/solidity@npm:5.6.1" + dependencies: + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/sha2": ^5.6.1 + "@ethersproject/strings": ^5.6.1 + checksum: a31bd7b98314824d15e28350ee1a21c10e32d2f71579b46c72eab06b895dba147efe966874444a30b17846f9c2ad74043152ec49d4401148262afffb30727087 + languageName: node + linkType: hard + "@ethersproject/strings@npm:5.6.0, @ethersproject/strings@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/strings@npm:5.6.0" @@ -662,6 +878,17 @@ __metadata: languageName: node linkType: hard +"@ethersproject/strings@npm:5.6.1, @ethersproject/strings@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/strings@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/constants": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + checksum: dcf33c2ddb22a48c3d7afc151a5f37e5a4da62a742a298988d517dc9adfaff9c5a0ebd8f476ec9792704cfc8142abd541e97432bc47cb121093edac7a5cfaf22 + languageName: node + linkType: hard + "@ethersproject/transactions@npm:5.6.0, @ethersproject/transactions@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/transactions@npm:5.6.0" @@ -679,7 +906,24 @@ __metadata: languageName: node linkType: hard -"@ethersproject/units@npm:5.6.0, @ethersproject/units@npm:^5.6.0": +"@ethersproject/transactions@npm:5.6.2, @ethersproject/transactions@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/transactions@npm:5.6.2" + dependencies: + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/constants": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/rlp": ^5.6.1 + "@ethersproject/signing-key": ^5.6.2 + checksum: 5cf13936ce406f97b71fc1e99090698c2e4276dcb17c5a022aa3c3f55825961edcb53d4a59166acab797275afa45fb93f1b9b602ebc709da6afa66853f849609 + languageName: node + linkType: hard + +"@ethersproject/units@npm:5.6.0": version: 5.6.0 resolution: "@ethersproject/units@npm:5.6.0" dependencies: @@ -690,6 +934,17 @@ __metadata: languageName: node linkType: hard +"@ethersproject/units@npm:5.6.1, @ethersproject/units@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/units@npm:5.6.1" + dependencies: + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/constants": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + checksum: 79cc7c35181fc3bd76fc33d95f1c8d2a20a6339dfc22745184967481b66e0782ee12bbf75b4269119152cbd23bf7980b900978d885b5da72cfb74cf897411065 + languageName: node + linkType: hard + "@ethersproject/wallet@npm:5.6.0": version: 5.6.0 resolution: "@ethersproject/wallet@npm:5.6.0" @@ -713,6 +968,29 @@ __metadata: languageName: node linkType: hard +"@ethersproject/wallet@npm:5.6.2, @ethersproject/wallet@npm:^5.6.2": + version: 5.6.2 + resolution: "@ethersproject/wallet@npm:5.6.2" + dependencies: + "@ethersproject/abstract-provider": ^5.6.1 + "@ethersproject/abstract-signer": ^5.6.2 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/hash": ^5.6.1 + "@ethersproject/hdnode": ^5.6.2 + "@ethersproject/json-wallets": ^5.6.1 + "@ethersproject/keccak256": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/random": ^5.6.1 + "@ethersproject/signing-key": ^5.6.2 + "@ethersproject/transactions": ^5.6.2 + "@ethersproject/wordlists": ^5.6.1 + checksum: 88603a4797b8f489c76671ff096ad3630ad1226640032594cfb3376398b41c1c4875076f1cf6521854c42e4496cafd2171e6dc301669cbf6c972ba13e97be5b0 + languageName: node + linkType: hard + "@ethersproject/web@npm:5.6.0, @ethersproject/web@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/web@npm:5.6.0" @@ -726,6 +1004,19 @@ __metadata: languageName: node linkType: hard +"@ethersproject/web@npm:5.6.1, @ethersproject/web@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/web@npm:5.6.1" + dependencies: + "@ethersproject/base64": ^5.6.1 + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/strings": ^5.6.1 + checksum: 4acb62bb04431f5a1b1ec27e88847087676dd2fd72ba40c789f2885493e5eed6b6d387d5b47d4cdfc2775bcbe714e04bfaf0d04a6f30e929310384362e6be429 + languageName: node + linkType: hard + "@ethersproject/wordlists@npm:5.6.0, @ethersproject/wordlists@npm:^5.6.0": version: 5.6.0 resolution: "@ethersproject/wordlists@npm:5.6.0" @@ -739,6 +1030,19 @@ __metadata: languageName: node linkType: hard +"@ethersproject/wordlists@npm:5.6.1, @ethersproject/wordlists@npm:^5.6.1": + version: 5.6.1 + resolution: "@ethersproject/wordlists@npm:5.6.1" + dependencies: + "@ethersproject/bytes": ^5.6.1 + "@ethersproject/hash": ^5.6.1 + "@ethersproject/logger": ^5.6.0 + "@ethersproject/properties": ^5.6.0 + "@ethersproject/strings": ^5.6.1 + checksum: 3be4f300705b3f4f2b1dfa3948aac2e5030ab6216086578ec5cd2fad130b6b30d2a6a3c54d94c6669601ed62b56e7052232bc0a934a451ef3320fd6513734729 + languageName: node + linkType: hard + "@gar/promisify@npm:^1.1.3": version: 1.1.3 resolution: "@gar/promisify@npm:1.1.3" @@ -1501,10 +1805,10 @@ __metadata: languageName: node linkType: hard -"@uniswap/token-lists@npm:^1.0.0-beta.28": - version: 1.0.0-beta.28 - resolution: "@uniswap/token-lists@npm:1.0.0-beta.28" - checksum: e867e3e20c12a9130aae8837986323446181b3c5d4f7344a57aa013fe2779bab0620be9938e9e99062a633e09d92e4b2b9ad33fe92e3051101923d91eb132054 +"@uniswap/token-lists@npm:^1.0.0-beta.30": + version: 1.0.0-beta.30 + resolution: "@uniswap/token-lists@npm:1.0.0-beta.30" + checksum: 4138b15eab65c2d20749ab7dcf37f838198a349c402c40d810bcb11ab35dfee6b905d5fb7167e676ac863a562ba0a075bf6dd7fcc1e88dffe8b07fc58ce336ca languageName: node linkType: hard @@ -2049,6 +2353,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" @@ -3814,7 +4125,7 @@ __metadata: eslint-plugin-react-hooks: ^4.5.0 eslint-plugin-testing-library: ^5.3.1 eslint-plugin-unused-imports: ^2.0.0 - eth-hooks: ^4.0.48 + eth-hooks: ^4.5.1 ethers: ^5.6.4 global-jsdom: ^8.4.0 husky: ^7.0.4 @@ -3852,38 +4163,40 @@ __metadata: languageName: unknown linkType: soft -"eth-hooks@npm:^4.0.48": - version: 4.2.21 - resolution: "eth-hooks@npm:4.2.21" +"eth-hooks@npm:^4.5.1": + version: 4.5.1 + resolution: "eth-hooks@npm:4.5.1" dependencies: - "@ethersproject/abi": ^5.6.1 - "@ethersproject/abstract-provider": ^5.6.0 - "@ethersproject/address": ^5.6.0 - "@ethersproject/bignumber": ^5.6.0 + "@ethersproject/abi": ^5.6.4 + "@ethersproject/abstract-provider": ^5.6.1 + "@ethersproject/address": ^5.6.1 + "@ethersproject/bignumber": ^5.6.2 "@ethersproject/bytes": ^5.6.1 - "@ethersproject/contracts": ^5.6.0 - "@ethersproject/networks": ^5.6.2 - "@ethersproject/providers": ^5.6.4 - "@ethersproject/signing-key": ^5.6.0 - "@ethersproject/solidity": ^5.6.0 - "@ethersproject/units": ^5.6.0 - "@uniswap/token-lists": ^1.0.0-beta.28 + "@ethersproject/contracts": ^5.6.2 + "@ethersproject/networks": ^5.6.4 + "@ethersproject/providers": ^5.6.8 + "@ethersproject/signing-key": ^5.6.2 + "@ethersproject/solidity": ^5.6.1 + "@ethersproject/units": ^5.6.1 + "@ethersproject/wallet": ^5.6.2 + "@uniswap/token-lists": ^1.0.0-beta.30 "@web3-react/abstract-connector": ^6.0.7 "@web3-react/core": ^6.1.9 "@web3-react/types": ^6.0.7 - ethers: ^5.6.4 + ethers: ^5.6.8 lodash.isequal: ^4.5.0 merge-anything: ^5.0.2 - react-query: ^3.38.* - ts-invariant: ^0.9.4 - use-debounce: ^8.0.0 - usehooks-ts: ^2.5.2 - web3modal: ^1.9.7 + react-query: ^3.39.2 + ts-invariant: ^0.10.3 + use-debounce: ^8.0.2 + usehooks-ts: ^2.6.0 + web3modal: ^1.9.8 + zustand: "https://pkg.csb.dev/pmndrs/zustand/commit/a9a05f74/zustand/_pkg.tgz" peerDependencies: "@uniswap/sdk": ^3 react: ">=17" react-dom: ">=17" - checksum: 5815a768ec5a590f12f8d16fcfaaefe82ff64b64fbaa4be69cd84ac084187adea8dad6ce18e031ba5e3bd7e3f3a006ff6c9973c86b9bbb4a1488083df7223360 + checksum: 6f6d2813ac90a2ecdd81cccc01ec6b6db38ec4001beed93f14df339d714c90ff0f427ab2b7ea6f8ff0372cb4ba36ebcb60db98331c0c3ad730e832082ed7a5e6 languageName: node linkType: hard @@ -3925,6 +4238,44 @@ __metadata: languageName: node linkType: hard +"ethers@npm:^5.6.8": + version: 5.6.9 + resolution: "ethers@npm:5.6.9" + dependencies: + "@ethersproject/abi": 5.6.4 + "@ethersproject/abstract-provider": 5.6.1 + "@ethersproject/abstract-signer": 5.6.2 + "@ethersproject/address": 5.6.1 + "@ethersproject/base64": 5.6.1 + "@ethersproject/basex": 5.6.1 + "@ethersproject/bignumber": 5.6.2 + "@ethersproject/bytes": 5.6.1 + "@ethersproject/constants": 5.6.1 + "@ethersproject/contracts": 5.6.2 + "@ethersproject/hash": 5.6.1 + "@ethersproject/hdnode": 5.6.2 + "@ethersproject/json-wallets": 5.6.1 + "@ethersproject/keccak256": 5.6.1 + "@ethersproject/logger": 5.6.0 + "@ethersproject/networks": 5.6.4 + "@ethersproject/pbkdf2": 5.6.1 + "@ethersproject/properties": 5.6.0 + "@ethersproject/providers": 5.6.8 + "@ethersproject/random": 5.6.1 + "@ethersproject/rlp": 5.6.1 + "@ethersproject/sha2": 5.6.1 + "@ethersproject/signing-key": 5.6.2 + "@ethersproject/solidity": 5.6.1 + "@ethersproject/strings": 5.6.1 + "@ethersproject/transactions": 5.6.2 + "@ethersproject/units": 5.6.1 + "@ethersproject/wallet": 5.6.2 + "@ethersproject/web": 5.6.1 + "@ethersproject/wordlists": 5.6.1 + checksum: e4a029ad55da2355cb7b0ff178b38b0df27f9013604b0600c246dba297223ac2ce8ef0380758fa535cd82ea46bceb4a71aeb29949e1693f3a9c60d4cdaceb208 + languageName: node + linkType: hard + "exec-sh@npm:^0.3.2": version: 0.3.6 resolution: "exec-sh@npm:0.3.6" @@ -7170,6 +7521,24 @@ __metadata: languageName: node linkType: hard +"react-query@npm:^3.39.2": + version: 3.39.2 + resolution: "react-query@npm:3.39.2" + dependencies: + "@babel/runtime": ^7.5.5 + broadcast-channel: ^3.4.1 + match-sorter: ^6.0.2 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + checksum: 83b199e66af28ab67ec4d22e51da42f02447186623db926b75d27a1c09a3383da6ddc9e5b83d82578fac7abdba7e6f265aecbffdb91db61981950d3d59409346 + languageName: node + linkType: hard + "react@npm:^16.8.6": version: 16.14.0 resolution: "react@npm:16.14.0" @@ -8451,6 +8820,15 @@ __metadata: languageName: node linkType: hard +"ts-invariant@npm:^0.10.3": + version: 0.10.3 + resolution: "ts-invariant@npm:0.10.3" + dependencies: + tslib: ^2.1.0 + checksum: bb07d56fe4aae69d8860e0301dfdee2d375281159054bc24bf1e49e513fb0835bf7f70a11351344d213a79199c5e695f37ebbf5a447188a377ce0cd81d91ddb5 + languageName: node + linkType: hard + "ts-invariant@npm:^0.9.4": version: 0.9.4 resolution: "ts-invariant@npm:0.9.4" @@ -8859,6 +9237,24 @@ __metadata: languageName: node linkType: hard +"use-debounce@npm:^8.0.2": + version: 8.0.3 + resolution: "use-debounce@npm:8.0.3" + peerDependencies: + react: ">=16.8.0" + checksum: 1790e540b53298e9abcf34d4a9bd4fc89a747644dcb65b42b02568a7c28cfa57d7756fae87c0b37b73261d2935b0c46ea5b53dfcbaf22e30f20728e36c703f9c + languageName: node + linkType: hard + +"use-sync-external-store@npm:1.2.0": + version: 1.2.0 + resolution: "use-sync-external-store@npm:1.2.0" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 5c639e0f8da3521d605f59ce5be9e094ca772bd44a4ce7322b055a6f58eeed8dda3c94cabd90c7a41fb6fa852210092008afe48f7038792fd47501f33299116a + languageName: node + linkType: hard + "use@npm:^3.1.0": version: 3.1.1 resolution: "use@npm:3.1.1" @@ -8875,6 +9271,15 @@ __metadata: languageName: node linkType: hard +"usehooks-ts@npm:^2.6.0": + version: 2.6.0 + resolution: "usehooks-ts@npm:2.6.0" + peerDependencies: + react: ">=16.9.0" + checksum: bc21886351a99389870a38cff1ce19521c5bed61c091873914f5de11ea32ed19cd1126ba1695e9bdf58045dc99343c6117465f02e91912e0762c76ac1a137756 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -8950,9 +9355,9 @@ __metadata: languageName: node linkType: hard -"web3modal@npm:^1.9.7": - version: 1.9.7 - resolution: "web3modal@npm:1.9.7" +"web3modal@npm:^1.9.8": + version: 1.9.8 + resolution: "web3modal@npm:1.9.8" dependencies: detect-browser: ^5.1.0 prop-types: ^15.7.2 @@ -8960,7 +9365,7 @@ __metadata: react-dom: ^16.8.6 styled-components: ^5.3.3 tslib: ^1.10.0 - checksum: 992b287058755a882f0d180dffe9970c1956b42a66ea9533f181d5b5c3ce15c5383298dc2cd3d31b3cc9080fad4d753ea7966fe0cb070ffc67535afa79f19710 + checksum: f7eadcb2d9e8c5cb13cb169c3cb99dfaa87ceb145044a759b20900e206250241c2f99f08939ec2ae6dde64c51840e562e6ae2b8fbf3c23ee1295e13036697574 languageName: node linkType: hard @@ -9264,3 +9669,20 @@ __metadata: checksum: f77b3d8d00310def622123df93d4ee654fc6a0096182af8bd60679ddcdfb3474c56c6c7190817c84a2785648cdee9d721c0154eb45698c62176c322fb46fc700 languageName: node linkType: hard + +"zustand@https://pkg.csb.dev/pmndrs/zustand/commit/a9a05f74/zustand/_pkg.tgz": + version: 4.0.0-rc.2 + resolution: "zustand@https://pkg.csb.dev/pmndrs/zustand/commit/a9a05f74/zustand/_pkg.tgz" + dependencies: + use-sync-external-store: 1.2.0 + peerDependencies: + immer: ">=9.0" + react: ">=16.8" + peerDependenciesMeta: + immer: + optional: true + react: + optional: true + checksum: 644770227781511d40d517c2eab4eaab2db017164c0cc48a663fa74159ca09b9db5d5c8af03cb623b84651993cb20284ed013fbe0421291ada0d21d84190a0ae + languageName: node + linkType: hard