From 66be29534b4e5282776d4ff7fe9878457d63cfc6 Mon Sep 17 00:00:00 2001 From: Michael Yankelev Date: Tue, 11 Oct 2022 13:47:54 +0200 Subject: [PATCH 1/3] update CustomAuth to latest version --- packages/common-components/package.json | 4 +- packages/files-ui/package.json | 10 +- .../src/Contexts/ThresholdKeyContext.tsx | 45 +- yarn.lock | 792 +++++++++++++----- 4 files changed, 602 insertions(+), 249 deletions(-) diff --git a/packages/common-components/package.json b/packages/common-components/package.json index b474fdaa60..ccac21a720 100644 --- a/packages/common-components/package.json +++ b/packages/common-components/package.json @@ -18,7 +18,7 @@ "dependencies": { "@material-ui/styles": "^4.11.2", "@types/react-scroll": "^1.8.2", - "@types/react-select": "^3.0.27", + "@types/react-select": "3.0.27", "a11y-react-emoji": "^1.1.2", "clsx": "^1.1.1", "normalize.css": "^8.0.1", @@ -27,7 +27,7 @@ "react-dropzone": "^11.2.4", "react-router-dom": "^5.2.0", "react-scroll": "^1.8.1", - "react-select": "^3.1.1", + "react-select": "3.1.1", "react-spinners": "^0.9.0", "reset-css": "^5.0.1", "rollup-plugin-babel": "^4.4.0" diff --git a/packages/files-ui/package.json b/packages/files-ui/package.json index 0f240f5b75..89c3846f19 100644 --- a/packages/files-ui/package.json +++ b/packages/files-ui/package.json @@ -15,10 +15,10 @@ "@sentry/react": "^5.28.0", "@stripe/react-stripe-js": "^1.4.1", "@stripe/stripe-js": "^1.18.0", - "@tkey/default": "5.1.0", - "@tkey/security-questions": "5.1.0", - "@tkey/web-storage": "5.1.0", - "@toruslabs/customauth": "7.0.2", + "@tkey/default": "7.0.0", + "@tkey/security-questions": "7.0.0", + "@tkey/web-storage": "7.0.0", + "@toruslabs/customauth": "11.0.0", "@types/filesystem": "^0.0.32", "@types/uuid": "^8.3.0", "axios": "0.26.1", @@ -106,4 +106,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx index 11736441b7..ae20c38c49 100644 --- a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx +++ b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx @@ -29,7 +29,7 @@ const TKEY_STORE_KEY = "csf.tkeyStore" const TORUS_USERINFO_KEY = "csf.userInfo" const PASSWORD_QUESTION = "What is your password?" -export type ThresholdKeyContextStatus = "initializing"|"initialized"|"awaiting confirmation"|"logging in"|"done" +export type ThresholdKeyContextStatus = "initializing" | "initialized" | "awaiting confirmation" | "logging in" | "done" export type BrowserShare = { shareIndex: string module: string @@ -48,7 +48,7 @@ export type TThresholdKeyContext = { hasPasswordShare: boolean shouldInitializeAccount: boolean pendingShareTransferRequests: ShareTransferRequest[] - login(loginType: IdentityProvider, tokenInfo?: {token: string; email: string}): Promise + login(loginType: IdentityProvider, tokenInfo?: { token: string; email: string }): Promise resetIsNewDevice(): void resetShouldInitialize(): void addPasswordShare(password: string): Promise @@ -92,8 +92,7 @@ export type ShareTransferRequest = { const ThresholdKeyContext = React.createContext(undefined) const maintenanceMode = process.env.REACT_APP_MAINTENANCE_MODE === "true" -const getProviderSpecificParams = (loginType: LOGIN_TYPE): -{typeOfLogin: LOGIN_TYPE; clientId: string; verifier: string; jwtParams?: any} => { +const getProviderSpecificParams = (loginType: LOGIN_TYPE): { typeOfLogin: LOGIN_TYPE; clientId: string; verifier: string; jwtParams?: any } => { switch (loginType) { case "google": { return { @@ -102,7 +101,7 @@ const getProviderSpecificParams = (loginType: LOGIN_TYPE): verifier: "chainsafe-uuid-testnet" } } - case "github":{ + case "github": { return { typeOfLogin: loginType, clientId: process.env.REACT_APP_AUTH0_CLIENT_ID || "", @@ -112,7 +111,7 @@ const getProviderSpecificParams = (loginType: LOGIN_TYPE): } } } - default:{ + default: { throw new Error(`${loginType} is unsupported`) } } @@ -151,7 +150,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f } )) : [] - , [keyDetails]) + , [keyDetails]) const browserShares = useMemo(() => parsedShares.filter((s) => s.module === WEB_STORAGE_MODULE_NAME).map(bs => ({ ...bs, @@ -208,9 +207,10 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f // The user will be required to log in to the respective service tkey = new ThresholdKey({ modules, - directParams: { + customAuthArgs: { baseUrl: `${window.location.origin}/serviceworker`, network: network, + networkUrl: network === "testnet" ? "https://nd-598-268-537.p2pify.com/9a34d9de132b22e6b71b52d3fde80ff1" : undefined, enableLogging: enableLogging, apiKey: apiKey }, @@ -286,7 +286,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f useEffect(() => { const loginWithThresholdKey = async () => { if (!userInfo) return - const decodedIdToken = jwtDecode<{exp: number}>(userInfo.userInfo.idToken || "") + const decodedIdToken = jwtDecode<{ exp: number }>(userInfo.userInfo.idToken || "") if (privateKey && dayjs.unix(decodedIdToken.exp).isAfter(dayjs())) { const pubKey = EthCrypto.publicKeyByPrivateKey(privateKey) setPublicKey(pubKey) @@ -308,7 +308,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f console.log("logging in using tkey") loginWithThresholdKey() } - // eslint-disable-next-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps }, [privateKey]) // Share Transfer poller @@ -333,7 +333,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f [] ) - if(pendingShareTransferRequests.length !== pendingRequests.length){ + if (pendingShareTransferRequests.length !== pendingRequests.length) { setPendingShareTransferRequests(pendingRequests) } } @@ -404,7 +404,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f const createJWT = useCallback((bucketId: string, nonceId: string, permission: NonceResponsePermission) => { - if(!privateKey) { + if (!privateKey) { console.error("no private key found") return } @@ -415,7 +415,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f const payload = { type: "link_sharing", permission, - iat: KJUR.jws.IntDate.get("now"), + iat: KJUR.jws.IntDate.get("now"), bucket_id: bucketId, nonce_id: nonceId } @@ -427,7 +427,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f return sJWT }, [privateKey]) - const login = async (loginType: IdentityProvider, tokenInfo?: {token: string; email: string}) => { + const login = async (loginType: IdentityProvider, tokenInfo?: { token: string; email: string }) => { if (!TKeySdk || maintenanceMode) return try { setStatus("awaiting confirmation") @@ -456,7 +456,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f verifierId: (loginType === "web3") ? address || "" : decodedToken.uuid, typeOfLogin: loginType !== "web3" && loginType !== "email" ? loginType : "jwt", accessToken: userInfo?.accessToken, - state: { } + state: {} } } setUserInfo(loginResponse) @@ -468,11 +468,11 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f sessionStorage.setItem(TORUS_POSTBOX_KEY, TKeySdk.serviceProvider.postboxKey.toString("hex")) setStatus("logging in") try { - const metadata = await TKeySdk.storageLayer.getMetadata({ + const metadata = await TKeySdk.storageLayer.getMetadata({ privKey: TKeySdk.serviceProvider.postboxKey }) console.log("metadata", metadata) - const keyNotFound = (metadata as {message: string}).message === "KEY_NOT_FOUND" + const keyNotFound = (metadata as { message: string }).message === "KEY_NOT_FOUND" if (keyNotFound) { console.log("New key") setIsNewKey(true) @@ -509,8 +509,8 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f const getIdentityToken = async ( loginType: IdentityProvider, - tokenInfo?: {token: string; email: string} - ): Promise<{identityToken: IdentityToken; userInfo: any}> => { + tokenInfo?: { token: string; email: string } + ): Promise<{ identityToken: IdentityToken; userInfo: any }> => { if (loginType === "email") { const uuidToken = await filesApiClient.generateServiceIdentityToken({ identity_provider: loginType, @@ -525,7 +525,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f let addressToUse = address - if (!isReady || !provider) { + if (!isReady || !provider) { const connected = await checkIsReady() if (!connected || !provider) throw new Error("Unable to connect to wallet.") @@ -534,7 +534,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f const signer = provider.getSigner() if (!signer) throw new Error("Signer undefined") - if(!addressToUse){ + if (!addressToUse) { // checkIsReady above doesn't make sure that the address is defined // we pull the address here to have it defined for sure addressToUse = await signer.getAddress() @@ -791,9 +791,10 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f [WEB_STORAGE_MODULE_NAME]: new WebStorageModule(true), [SHARE_TRANSFER_MODULE_NAME]: new ShareTransferModule() }, - directParams: { + customAuthArgs: { baseUrl: `${window.location.origin}/serviceworker`, network: network, + networkUrl: network === "testnet" ? "https://nd-598-268-537.p2pify.com/9a34d9de132b22e6b71b52d3fde80ff1" : undefined, enableLogging: enableLogging, apiKey: apiKey }, diff --git a/yarn.lock b/yarn.lock index bf92be63b4..7c8efb652b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1850,10 +1850,10 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.16.0": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" - integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw== +"@babel/runtime@^7.17.9": + version "7.19.4" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.19.4.tgz#a42f814502ee467d55b38dd1c256f53a7b885c78" + integrity sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA== dependencies: regenerator-runtime "^0.13.4" @@ -2390,6 +2390,21 @@ "@ethersproject/properties" "^5.0.3" "@ethersproject/strings" "^5.0.4" +"@ethersproject/abi@^5.6.3": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" + integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== + dependencies: + "@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" + "@ethersproject/abstract-provider@5.1.0", "@ethersproject/abstract-provider@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.1.0.tgz#1f24c56cda5524ef4ed3cfc562a01d6b6f8eeb0b" @@ -2455,6 +2470,19 @@ "@ethersproject/transactions" "^5.0.9" "@ethersproject/web" "^5.0.12" +"@ethersproject/abstract-provider@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" + integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== + dependencies: + "@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" + "@ethersproject/abstract-signer@5.1.0", "@ethersproject/abstract-signer@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.1.0.tgz#744c7a2d0ebe3cc0bc38294d0f53d5ca3f4e49e3" @@ -2510,6 +2538,17 @@ "@ethersproject/logger" "^5.0.5" "@ethersproject/properties" "^5.0.3" +"@ethersproject/abstract-signer@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" + integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== + dependencies: + "@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" + "@ethersproject/address@5.1.0", "@ethersproject/address@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.1.0.tgz#3854fd7ebcb6af7597de66f847c3345dae735b58" @@ -2565,6 +2604,17 @@ "@ethersproject/logger" "^5.0.8" "@ethersproject/rlp" "^5.0.7" +"@ethersproject/address@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" + integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== + dependencies: + "@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" + "@ethersproject/base64@5.1.0", "@ethersproject/base64@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.1.0.tgz#27240c174d0a4e13f6eae87416fd876caf7f42b6" @@ -2600,6 +2650,13 @@ dependencies: "@ethersproject/bytes" "^5.0.9" +"@ethersproject/base64@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" + integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/basex@5.1.0", "@ethersproject/basex@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.1.0.tgz#80da2e86f9da0cb5ccd446b337364d791f6a131c" @@ -2685,6 +2742,15 @@ "@ethersproject/logger" "^5.0.8" bn.js "^4.4.0" +"@ethersproject/bignumber@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" + integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + bn.js "^5.2.1" + "@ethersproject/bytes@5.1.0", "@ethersproject/bytes@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.1.0.tgz#55dfa9c4c21df1b1b538be3accb50fb76d5facfd" @@ -2720,6 +2786,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/bytes@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" + integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/constants@5.1.0", "@ethersproject/constants@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.1.0.tgz#4e7da6367ea0e9be87585d8b09f3fccf384b1452" @@ -2755,6 +2828,13 @@ dependencies: "@ethersproject/bignumber" "^5.0.13" +"@ethersproject/constants@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" + integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/contracts@5.1.1": version "5.1.1" resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.1.1.tgz#c66cb6d618fcbd73e20a6b808e8f768b2b781d0b" @@ -2897,6 +2977,21 @@ "@ethersproject/properties" "^5.0.4" "@ethersproject/strings" "^5.0.4" +"@ethersproject/hash@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" + integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== + dependencies: + "@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" + "@ethersproject/hdnode@5.1.0", "@ethersproject/hdnode@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.1.0.tgz#2bf5c4048935136ce83e9242e1bd570afcc0bc83" @@ -3122,6 +3217,14 @@ "@ethersproject/bytes" "^5.0.9" js-sha3 "0.5.7" +"@ethersproject/keccak256@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" + integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + js-sha3 "0.8.0" + "@ethersproject/logger@5.1.0", "@ethersproject/logger@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.1.0.tgz#4cdeeefac029373349d5818f39c31b82cc6d9bbf" @@ -3147,6 +3250,11 @@ resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.0.9.tgz#0e6a0b3ecc938713016954daf4ac7967467aa763" integrity sha512-kV3Uamv3XOH99Xf3kpIG3ZkS7mBNYcLDM00JSDtNgNB4BihuyxpQzIZPRIDmRi+95Z/R1Bb0X2kUNHa/kJoVrw== +"@ethersproject/logger@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" + integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== + "@ethersproject/networks@5.1.0", "@ethersproject/networks@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.1.0.tgz#f537290cb05aa6dc5e81e910926c04cfd5814bca" @@ -3182,6 +3290,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/networks@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" + integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/pbkdf2@5.1.0", "@ethersproject/pbkdf2@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.1.0.tgz#6b740a85dc780e879338af74856ca2c0d3b24d19" @@ -3257,6 +3372,13 @@ dependencies: "@ethersproject/logger" "^5.0.8" +"@ethersproject/properties@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" + integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== + dependencies: + "@ethersproject/logger" "^5.7.0" + "@ethersproject/providers@5.1.2": version "5.1.2" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.1.2.tgz#4e4459698903f911402fe91aa7544eb07f3921ed" @@ -3437,6 +3559,14 @@ "@ethersproject/bytes" "^5.0.9" "@ethersproject/logger" "^5.0.8" +"@ethersproject/rlp@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" + integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/sha2@5.1.0", "@ethersproject/sha2@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.1.0.tgz#6ca42d1a26884b3e32ffa943fe6494af7211506c" @@ -3537,6 +3667,18 @@ "@ethersproject/properties" "^5.0.7" elliptic "6.5.4" +"@ethersproject/signing-key@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" + integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== + dependencies: + "@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" + "@ethersproject/solidity@5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.1.0.tgz#095a9c75244edccb26c452c155736d363399b954" @@ -3626,6 +3768,15 @@ "@ethersproject/constants" "^5.0.8" "@ethersproject/logger" "^5.0.8" +"@ethersproject/strings@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" + integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/transactions@5.1.1", "@ethersproject/transactions@^5.1.0": version "5.1.1" resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.1.1.tgz#5a6bbb25fb062c3cc75eb0db12faefcdd3870813" @@ -3701,6 +3852,21 @@ "@ethersproject/rlp" "^5.0.7" "@ethersproject/signing-key" "^5.0.8" +"@ethersproject/transactions@^5.6.2", "@ethersproject/transactions@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" + integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== + dependencies: + "@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" + "@ethersproject/units@5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.1.0.tgz#b6ab3430ebc22adc3cb4839516496f167bee3ad5" @@ -3876,6 +4042,17 @@ "@ethersproject/properties" "^5.0.3" "@ethersproject/strings" "^5.0.4" +"@ethersproject/web@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" + integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== + dependencies: + "@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" + "@ethersproject/wordlists@5.1.0", "@ethersproject/wordlists@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.1.0.tgz#54eb9ef3a00babbff90ffe124e19c89e07e6aace" @@ -4789,6 +4966,11 @@ semver "^6.3.0" tiny-secp256k1 "^1.1.6" +"@socket.io/component-emitter@~3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553" + integrity sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg== + "@stablelib/binary@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@stablelib/binary/-/binary-1.0.1.tgz#c5900b94368baf00f811da5bdb1610963dfddf7f" @@ -5664,130 +5846,167 @@ dependencies: "@babel/runtime" "^7.10.2" -"@tkey/common-types@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/common-types/-/common-types-5.1.0.tgz#b8bacd387a1a10d8250fafb1ddf30998f10a826e" - integrity sha512-H/xnaxYq5vRqUWb/XT4uOAoyHN/bROkp6cnfJOy6uG+svlBQGQsqtuTc2pSNZGNg+9qS6EhUx+uwPsAZhWRjqg== +"@tkey/common-types@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/common-types/-/common-types-7.0.0.tgz#9db701f2a09c574bca0f872a312a9469fb881c8d" + integrity sha512-ZbfbtCbQqYAUUGL5ZuiJzKbNfWNIo1KZFwoHO+05fVc3sqIEePQP0/10rXcZrQ78AQH87gxWtSI+RIQAB1xHtw== dependencies: - "@toruslabs/customauth" "^7.0.0" + "@toruslabs/customauth" "^10.1.0" "@toruslabs/eccrypto" "^1.1.8" - bn.js "^5.2.0" + bn.js "^5.2.1" elliptic "^6.5.4" ts-custom-error "^3.2.0" - web3-utils "^1.7.0" + web3-utils "^1.7.4" -"@tkey/core@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/core/-/core-5.1.0.tgz#0783b5dc6f04f2f48fad1ae7f44b1938fd678353" - integrity sha512-m4Z65K6vyjM9Inf0kPOWkVrlNpX61tEwvYmzxGiFmYk4QRUNVgf3qdAikk3KCkOURokulJxlHtWyCZm1rMG/+g== +"@tkey/core@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/core/-/core-7.0.0.tgz#61f59955819c6d803d6106838a4620247942e261" + integrity sha512-2l+fYZbqqpn2ELaV8McK2mR4hK1HND8j1NNXlD0C7DuC/Z6sYXBTaTTMxqQCnVG/7uF2CEJxo/k/7xW54OI0fQ== dependencies: - "@tkey/common-types" "^5.1.0" + "@tkey/common-types" "^7.0.0" "@toruslabs/eccrypto" "^1.1.8" - "@toruslabs/http-helpers" "^2.2.0" - bn.js "^5.2.0" + "@toruslabs/http-helpers" "^3.1.0" + bn.js "^5.2.1" elliptic "^6.5.4" json-stable-stringify "^1.0.1" - web3-utils "^1.7.0" + web3-utils "^1.7.4" -"@tkey/default@5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/default/-/default-5.1.0.tgz#03d29f7c77844e7b7ea0a33ab7101a086bce8a51" - integrity sha512-puYRmEj5ZB8VdP3qO5nXrK6NC8ZV2luJVfZ4C+EJw8wGHIjvTrIQe/2alS0ZFLoVtLaMKOMLJHoSi+ndxVBjeg== - dependencies: - "@tkey/common-types" "^5.1.0" - "@tkey/core" "^5.1.0" - "@tkey/security-questions" "^5.1.0" - "@tkey/service-provider-base" "^5.1.0" - "@tkey/service-provider-torus" "^5.1.0" - "@tkey/share-serialization" "^5.1.0" - "@tkey/share-transfer" "^5.1.0" - "@tkey/storage-layer-torus" "^5.1.0" - bn.js "^5.2.0" - -"@tkey/security-questions@5.1.0", "@tkey/security-questions@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/security-questions/-/security-questions-5.1.0.tgz#d8e5050f1e9c9baa417b08eca6c045eed2b647d7" - integrity sha512-5iUfjcBt6o7ZK0iu/kQUUlJjXnn1lR/06DldwQiOErfAQ4FrbemA7/E3Nd6bUWrSJAcYRc1dvZC6cYV+m1mJSA== +"@tkey/default@7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/default/-/default-7.0.0.tgz#6a37a2f1f962046cc83fc4990c7c8565ab0d6a2a" + integrity sha512-/Ty8VvNeLES6KZP2KXDSDekZCHyy00WMwAT0jsOCFwJrAME2dHEo3Jr39kkTjPj9zo4d5OKXJN49MxzMoybIFA== + dependencies: + "@tkey/common-types" "^7.0.0" + "@tkey/core" "^7.0.0" + "@tkey/security-questions" "^7.0.0" + "@tkey/service-provider-base" "^7.0.0" + "@tkey/service-provider-torus" "^7.0.0" + "@tkey/share-serialization" "^7.0.0" + "@tkey/share-transfer" "^7.0.0" + "@tkey/storage-layer-torus" "^7.0.0" + bn.js "^5.2.1" + +"@tkey/security-questions@7.0.0", "@tkey/security-questions@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/security-questions/-/security-questions-7.0.0.tgz#a56dd09ed84c8a88c40fdb34e74aa6fc561537d0" + integrity sha512-AkTzq7Syi12Wstni3Kh/tCFI7DYOMVbTf6kf3INX2iNLZ6QlBjPI8T/4jB0bICJIL+1JV/gGgzxiVRXZDAEGpw== dependencies: - "@tkey/common-types" "^5.1.0" - bn.js "^5.2.0" - web3-utils "^1.7.0" + "@tkey/common-types" "^7.0.0" + bn.js "^5.2.1" + web3-utils "^1.7.4" -"@tkey/service-provider-base@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/service-provider-base/-/service-provider-base-5.1.0.tgz#25e5672d490ca0a1255dbfb8731f500033d8d154" - integrity sha512-/ng8W94uZHeIptgqh3BAHgXyd23IsRaWPn1/72o8Lvf/Zzi/K6baOmn8b9vcm26p0vBVzSRc8j9V0g8OyQ4tcQ== +"@tkey/service-provider-base@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/service-provider-base/-/service-provider-base-7.0.0.tgz#bdece171a611937f540189a448bdbdec4cc3a7f1" + integrity sha512-lDwvfVeVKiUrBm88MReLXSc5YOODrtcpFK6cFMIZNipbVby+KSqqQsX6RAyyLmuIdLLmwbIdlsFsL6NCI0q2UA== dependencies: - "@tkey/common-types" "^5.1.0" - bn.js "^5.2.0" + "@tkey/common-types" "^7.0.0" + bn.js "^5.2.1" elliptic "^6.5.4" -"@tkey/service-provider-torus@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/service-provider-torus/-/service-provider-torus-5.1.0.tgz#4d75db661c07370fee20a3e86072a2e4c600ead4" - integrity sha512-EucrT5e+vtSGd7I/iruOC+vfi8ugK82g3T4ji6f9uXVVoLdzMkayRcNo40uYIJ4ohzvbNpQXg0dcNES9cVDQcw== +"@tkey/service-provider-torus@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/service-provider-torus/-/service-provider-torus-7.0.0.tgz#0a110ec43640603c5918c1f8655fd0c1a40e8afa" + integrity sha512-d6zH0XIalUG7HwOgK/evV2Ppqxskm3WImqJf8+CjbY3oJLp8l1V5E0K5cXz3/TbwzKoZnpA1VOsU418CjVyqMw== dependencies: - "@tkey/common-types" "^5.1.0" - "@tkey/service-provider-base" "^5.1.0" - "@toruslabs/customauth" "^7.0.0" - bn.js "^5.2.0" + "@tkey/common-types" "^7.0.0" + "@tkey/service-provider-base" "^7.0.0" + "@toruslabs/customauth" "^10.1.0" + bn.js "^5.2.1" elliptic "^6.5.4" -"@tkey/share-serialization@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/share-serialization/-/share-serialization-5.1.0.tgz#1b807deff34901c0f1b6dea4c79ef0e3a8b8cee2" - integrity sha512-rMo/WQ+iSDkNoUGu3z4TjJMty3vfM/PtV8+quA1tE1pUpP1DMeLBg0uYWhsQik6KDElgARTOtsUzbh6ZWJlp+g== +"@tkey/share-serialization@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/share-serialization/-/share-serialization-7.0.0.tgz#7e77e46e96cfaee5e3d642ed0dba05cd2431a73e" + integrity sha512-pC+wbhM1nHak2mNFU+JUTv+YfEp0BbfCk6QCppSoWiboAGtEYa8lzYOeZB45v5Sf8zjerg7G2z6o+zmNwr6Mlg== dependencies: - "@tkey/common-types" "^5.1.0" + "@tkey/common-types" "^7.0.0" "@types/create-hash" "1.2.2" - bn.js "^5.2.0" + bn.js "^5.2.1" create-hash "^1.2.0" -"@tkey/share-transfer@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/share-transfer/-/share-transfer-5.1.0.tgz#96ce677f27e8e8af00e9c45eabeb869ae62a34e7" - integrity sha512-XXqp7TZE2388XQ97KzL5AxRJCcEtFSkti2xl0PG4vxx2ydv1wgfp0oR0r/kYrshfPaH6aCmDGwdJ+xSfHPIflw== +"@tkey/share-transfer@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/share-transfer/-/share-transfer-7.0.0.tgz#2d639c48f6dbae9e3433b7275fd84c3020fafe3d" + integrity sha512-eMArH8+WEdx3bWnbip6PXi+u/TfgbYkBdIy0eRdzwm4iOL2Xs/ReLd7D7POfSQ30XgryH9S4t4uvusUOQ7uWtA== dependencies: - "@tkey/common-types" "^5.1.0" + "@tkey/common-types" "^7.0.0" "@toruslabs/eccrypto" "^1.1.8" - "@toruslabs/http-helpers" "^2.2.0" - bn.js "^5.2.0" + "@toruslabs/http-helpers" "^3.1.0" + bn.js "^5.2.1" -"@tkey/storage-layer-torus@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/storage-layer-torus/-/storage-layer-torus-5.1.0.tgz#6d2108c7fcde81a6de74437f155e5e7caae2b648" - integrity sha512-AwcQj0HsVTCP29+KLZ6q+edcfXOEanHkXpQ7fIpI+Waq28k738qXWQtE8ApvaywA597nXpiy2kcIv9kYFERdqQ== +"@tkey/storage-layer-torus@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/storage-layer-torus/-/storage-layer-torus-7.0.0.tgz#25f440eea8a375fdc6b098b29a1f60b3dff6c3ef" + integrity sha512-xjLW4/8lpMDuLEHrqBBBKGVV5zokL4P2n+R90SPG/7KdHjlHGxexEWTwkRlqa4OEou/uc8U4BuI6NKkNpj1x8Q== dependencies: - "@tkey/common-types" "^5.1.0" - "@toruslabs/http-helpers" "^2.2.0" - bn.js "^5.2.0" + "@tkey/common-types" "^7.0.0" + "@toruslabs/http-helpers" "^3.1.0" + bn.js "^5.2.1" json-stable-stringify "^1.0.1" - web3-utils "^1.7.0" + web3-utils "^1.7.4" -"@tkey/web-storage@5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@tkey/web-storage/-/web-storage-5.1.0.tgz#7343bca2be3760af7e5cadc6a9d11b6e223a2cad" - integrity sha512-liolN8rfEt7S6Qgaj4LKC4STeHcvNcZ1N5odPjvQlyup6Owx7/xMh28n5FxDBgCjDXR/xjEV99OWs/KoPJk1CA== +"@tkey/web-storage@7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@tkey/web-storage/-/web-storage-7.0.0.tgz#e57bb3b192f5932e7e34c609af62d60889e2a026" + integrity sha512-Jlvb8rYsA6oamAEo5O1uYzE9qr2XeLGvg2OmCIbY2lxB156ykuo87PKDkphQAW9LHBGmQUTkQDy3RBLMTz/wZw== dependencies: - "@tkey/common-types" "^5.1.0" + "@tkey/common-types" "^7.0.0" "@types/bn.js" "^5.1.0" - bn.js "^5.2.0" + bn.js "^5.2.1" -"@toruslabs/customauth@7.0.2", "@toruslabs/customauth@^7.0.0": - version "7.0.2" - resolved "https://registry.yarnpkg.com/@toruslabs/customauth/-/customauth-7.0.2.tgz#0652bd9ab89f2f9fb021bb1d12a6f8f2ae8e0bd9" - integrity sha512-1+O0nD9hExfmRk8RL5D+luJ3Arpx3H8fz/vhuUIVVxC+ZaTu1W0m03cS9YUXKm7HeZI81cOI78KOvc0GsgjWwA== +"@toruslabs/broadcast-channel@^6.1.0": + version "6.1.0" + resolved "https://registry.yarnpkg.com/@toruslabs/broadcast-channel/-/broadcast-channel-6.1.0.tgz#27bc534e327594501c3cdb22f187abce93d99e8a" + integrity sha512-7aBVHA2RXI1RQaoMPTmb4jBVcQYp9/cxrMbQ90BEX1tDu11abS0MYjxR3ZfvyRQuU9RqRWeaG0leul5xouV6kA== + dependencies: + "@babel/runtime" "^7.17.9" + "@toruslabs/eccrypto" "^1.1.8" + "@toruslabs/metadata-helpers" "^3.0.0" + bowser "^2.11.0" + keccak "^3.0.2" + loglevel "^1.8.0" + oblivious-set "1.1.1" + socket.io-client "^4.5.1" + unload "^2.3.1" + +"@toruslabs/customauth@11.0.0": + version "11.0.0" + resolved "https://registry.yarnpkg.com/@toruslabs/customauth/-/customauth-11.0.0.tgz#62fdd95aeb0f02afa270d84c42d4bf9f63dc0be5" + integrity sha512-aGUDosRk7kl16EpEoz88Qchvdkk8qW7sZ8pIOiLElBzkqpD6o7Roz6SnnIYj4kx3wJQoWJB3ITPAY5CKgEluQA== dependencies: "@chaitanyapotti/register-service-worker" "^1.7.3" - "@toruslabs/fetch-node-details" "^5.0.1" - "@toruslabs/http-helpers" "^2.2.0" - "@toruslabs/torus.js" "^5.0.1" - broadcast-channel "^4.10.0" + "@toruslabs/broadcast-channel" "^6.1.0" + "@toruslabs/eccrypto" "^1.1.8" + "@toruslabs/fetch-node-details" "^8.0.0" + "@toruslabs/http-helpers" "^3.2.0" + "@toruslabs/metadata-helpers" "^3.0.0" + "@toruslabs/torus.js" "^6.2.0" + bowser "^2.11.0" events "^3.3.0" jwt-decode "^3.1.2" lodash.merge "^4.6.2" loglevel "^1.8.0" - web3-utils "^1.7.1" + web3-utils "^1.8.0" + +"@toruslabs/customauth@^10.1.0": + version "10.1.1" + resolved "https://registry.yarnpkg.com/@toruslabs/customauth/-/customauth-10.1.1.tgz#66c96d29fc9e04fe9ff923ef5000769d9f58a377" + integrity sha512-E6pfrOz6ZwgLK3w2nL8DIUiBUr/YU9V+lJ0S+qScb9fd04sRCTDmblvh0hmeM2kH3PCm7co9o4FxQ+7xp5vN+A== + dependencies: + "@chaitanyapotti/register-service-worker" "^1.7.3" + "@toruslabs/broadcast-channel" "^6.1.0" + "@toruslabs/eccrypto" "^1.1.8" + "@toruslabs/fetch-node-details" "^7.0.2" + "@toruslabs/http-helpers" "^3.1.0" + "@toruslabs/metadata-helpers" "^3.0.0" + "@toruslabs/torus.js" "^6.1.0" + bowser "^2.11.0" + events "^3.3.0" + jwt-decode "^3.1.2" + lodash.merge "^4.6.2" + loglevel "^1.8.0" + web3-utils "^1.7.5" "@toruslabs/eccrypto@^1.1.6": version "1.1.6" @@ -5841,13 +6060,21 @@ web3-eth-contract "^1.5.2" web3-utils "^1.5.2" -"@toruslabs/fetch-node-details@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-5.0.1.tgz#65132921ec3bc3cb78579b03a0c6b0abbf14cc50" - integrity sha512-d7JlzX+Cp9wEXdW4xvj2qClrgPYOKJqaWTzVJJ5gK+KBISaGywrHz1xYSTviHK98SMGoywOLrVAPcHJ1lhqrMQ== +"@toruslabs/fetch-node-details@^7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-7.0.2.tgz#6267f8fb943e5cb5366531ff4f9d4f394d6deed0" + integrity sha512-k4Ep4Gh56CCVWuHwO3zjh4Mq2cp/6JGV7tWafi3DIers2TIAI9Vdz8syTxi+jMVvSj2a9csJZF737ynqtZCkzw== + dependencies: + web3-eth-contract "^1.7.4" + web3-utils "^1.7.4" + +"@toruslabs/fetch-node-details@^8.0.0": + version "8.0.0" + resolved "https://registry.yarnpkg.com/@toruslabs/fetch-node-details/-/fetch-node-details-8.0.0.tgz#ca9dc1e1c0c0e444c15599e124a32ffdbe65629a" + integrity sha512-t+wsnK8z9dJH7vXgBvny0TB/v9mth+MXyPAmYaBY8trxx2NM8s+b2NJKjw5VJ0YmfXoLXPeJhc8dNVCD9JG//g== dependencies: - web3-eth-contract "^1.7.0" - web3-utils "^1.7.0" + web3-eth-contract "^1.8.0" + web3-utils "^1.8.0" "@toruslabs/http-helpers@^1.3.7": version "1.3.7" @@ -5863,14 +6090,25 @@ dependencies: deepmerge "^4.2.2" -"@toruslabs/http-helpers@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@toruslabs/http-helpers/-/http-helpers-2.2.0.tgz#c494984701ff60eb93c0eaef279daa93b5bcea81" - integrity sha512-xkzZZuE+DmWmJBTYneCrMJY24izNQCOdoJMpsXKQx20Va/rTQvNPbdkpx9LBf/pisk8jOwETNAfFQ8YTBc/bZw== +"@toruslabs/http-helpers@^3.0.0", "@toruslabs/http-helpers@^3.1.0", "@toruslabs/http-helpers@^3.2.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@toruslabs/http-helpers/-/http-helpers-3.2.0.tgz#9e33dd23936ef90852133372c831f03b7a8badc5" + integrity sha512-fCfvBHfYzd7AyOYlBo7wihh5nj6+4Ik6V5+nI7H63oiKICjMlByTXSauTUa/qm2mjZJn/OmVYeV5guPIgxoW1w== dependencies: lodash.merge "^4.6.2" loglevel "^1.8.0" +"@toruslabs/metadata-helpers@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@toruslabs/metadata-helpers/-/metadata-helpers-3.0.0.tgz#ebc613bcd05ed7cfcf4ac1eb01e9558500a2e590" + integrity sha512-0eWCIbKpaBx3/z3BDyWebxUisCS37Uxb0zxOEWizSXjGH/T6TJCrBeZFPmANN3hq47GoNCsRiku9cgfij1UMTQ== + dependencies: + "@toruslabs/eccrypto" "^1.1.8" + "@toruslabs/http-helpers" "^3.0.0" + elliptic "^6.5.4" + json-stable-stringify "^1.0.1" + keccak "^3.0.2" + "@toruslabs/torus-direct-web-sdk@4.15.1": version "4.15.1" resolved "https://registry.yarnpkg.com/@toruslabs/torus-direct-web-sdk/-/torus-direct-web-sdk-4.15.1.tgz#9d1011e8bf93c9d166f1b6d80f86706769159a4d" @@ -5938,18 +6176,19 @@ memory-cache "^0.2.0" web3-utils "^1.5.2" -"@toruslabs/torus.js@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-5.0.1.tgz#4c95275e7abac8956fc45c1d41837ee90a3a45cf" - integrity sha512-rhICMJuAIA/LiS/IuWCqKEqpP8nezw/Hhlphr0VIMelkaQTqAZbS/g1cwlAdPezenTS2CTULfx509pifMLMl/w== +"@toruslabs/torus.js@^6.1.0", "@toruslabs/torus.js@^6.2.0": + version "6.2.0" + resolved "https://registry.yarnpkg.com/@toruslabs/torus.js/-/torus.js-6.2.0.tgz#c3eba9dea53338d49cb1ee9d0ea80c06f2111082" + integrity sha512-syjZmlZedfaL9CnCatvUmTX4kgzkgs1jSGDgLXNcorH3A1pL5Ufp6+iwecaIk2QgPVT7FQNPLkAtAsiZMx8b2Q== dependencies: "@toruslabs/eccrypto" "^1.1.8" - "@toruslabs/http-helpers" "^2.2.0" - bn.js "^5.2.0" + "@toruslabs/http-helpers" "^3.2.0" + bn.js "^5.2.1" elliptic "^6.5.4" json-stable-stringify "^1.0.1" + keccak "^3.0.2" loglevel "^1.8.0" - web3-utils "^1.7.0" + web3-utils "^1.8.0" "@types/aria-query@^4.2.0": version "4.2.0" @@ -6340,7 +6579,7 @@ dependencies: "@types/react" "*" -"@types/react-select@^3.0.27": +"@types/react-select@3.0.27": version "3.0.27" resolved "https://registry.yarnpkg.com/@types/react-select/-/react-select-3.0.27.tgz#ef0f114458a5eb063e14e99cc6d8d17dec92de60" integrity sha512-UBZgS1O/BaXo27F6a5+OGMpOFmpsFWb5HyZ8DyuJ5EOCT57ZKwWS4ko9Eqxb3CzVsyKLAp5BXoZtHZbqaFN7ww== @@ -7175,6 +7414,11 @@ abab@^2.0.0: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.4.tgz#6dfa57b417ca06d21b2478f0e638302f99c2405c" integrity sha512-Eu9ELJWCz/c1e9gTiCY+FceWxcqzjYEbqMgtndnuSqZSUCOL73TWNK2mHfIj4Cw2E/ongOp+JISVNCmovt2KYQ== +abortcontroller-polyfill@^1.7.3: + version "1.7.5" + resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" + integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== + abstract-leveldown@~2.6.0: version "2.6.3" resolved "https://registry.yarnpkg.com/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz#1c5e8c6a5ef965ae8c35dfb3a8770c476b82c4b8" @@ -9055,6 +9299,11 @@ bn.js@^5.2.0: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.0.tgz#358860674396c6997771a9d051fcc1b57d4ae002" integrity sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw== +bn.js@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" + integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== + bnb-javascript-sdk-nobroadcast@^2.16.14: version "2.16.14" resolved "https://registry.yarnpkg.com/bnb-javascript-sdk-nobroadcast/-/bnb-javascript-sdk-nobroadcast-2.16.14.tgz#779ea8a50031d9a3fa3d701836228f6267319ccf" @@ -9167,6 +9416,11 @@ bowser@^2.10.0: resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.10.0.tgz#be3736f161c4bb8b10958027ab99465d2a811198" integrity sha512-OCsqTQboTEWWsUjcp5jLSw2ZHsBiv2C105iFs61bOT0Hnwi9p7/uuXdd7mu8RYcarREfdjNN+8LitmEHATsLYg== +bowser@^2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" + integrity sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA== + boxen@^4.1.0: version "4.2.0" resolved "https://registry.yarnpkg.com/boxen/-/boxen-4.2.0.tgz#e411b62357d6d6d36587c8ac3d5d974daa070e64" @@ -9226,20 +9480,6 @@ broadcast-channel@^3.7.0: rimraf "3.0.2" unload "2.2.0" -broadcast-channel@^4.10.0: - version "4.10.0" - resolved "https://registry.yarnpkg.com/broadcast-channel/-/broadcast-channel-4.10.0.tgz#d19fb902df227df40b1b580351713d30c302d198" - integrity sha512-hOUh312XyHk6JTVyX9cyXaH1UYs+2gHVtnW16oQAu9FL7ALcXGXc/YoJWqlkV8vUn14URQPMmRi4A9q4UrwVEQ== - dependencies: - "@babel/runtime" "^7.16.0" - detect-node "^2.1.0" - microseconds "0.2.0" - nano-time "1.0.0" - oblivious-set "1.0.0" - p-queue "6.6.2" - rimraf "3.0.2" - unload "2.3.1" - brorand@^1.0.1, brorand@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" @@ -10557,6 +10797,13 @@ cross-fetch@^2.1.0: node-fetch "2.1.2" whatwg-fetch "2.0.4" +cross-fetch@^3.1.4: + version "3.1.5" + resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f" + integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw== + dependencies: + node-fetch "2.6.7" + cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -11114,6 +11361,13 @@ debug@^4.3.1, debug@^4.3.2: dependencies: ms "2.1.2" +debug@~4.3.1, debug@~4.3.2: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + decamelize-keys@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9" @@ -11779,6 +12033,22 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0, end-of-stream@^1.4.0, end-of-stream@ dependencies: once "^1.4.0" +engine.io-client@~6.2.1: + version "6.2.2" + resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-6.2.2.tgz#c6c5243167f5943dcd9c4abee1bfc634aa2cbdd0" + integrity sha512-8ZQmx0LQGRTYkHuogVZuGSpDqYZtCM/nv8zQ68VZ+JkOpazJ7ICdsSpaO6iXwvaU30oFg5QJOJWj8zWqhbKjkQ== + dependencies: + "@socket.io/component-emitter" "~3.1.0" + debug "~4.3.1" + engine.io-parser "~5.0.3" + ws "~8.2.3" + xmlhttprequest-ssl "~2.0.0" + +engine.io-parser@~5.0.3: + version "5.0.4" + resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-5.0.4.tgz#0b13f704fa9271b3ec4f33112410d8f3f41d0fc0" + integrity sha512-+nVFp+5z1E3HcToEnO7ZIj3g+3k9389DvWtvJZz0T6/eOCPIyyxehFcedoYrZQrp0LgQbD9pPXhpMBKMd5QURg== + enhanced-resolve@^3.4.0: version "3.4.1" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz#0421e339fd71419b3da13d129b3979040230476e" @@ -16857,6 +17127,15 @@ keccak@^3.0.0: node-addon-api "^2.0.0" node-gyp-build "^4.2.0" +keccak@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.2.tgz#4c2c6e8c54e04f2670ee49fa734eb9da152206e0" + integrity sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ== + dependencies: + node-addon-api "^2.0.0" + node-gyp-build "^4.2.0" + readable-stream "^3.6.0" + key-encoder@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/key-encoder/-/key-encoder-2.0.3.tgz#77073bb48ff1fe2173bb2088b83b91152c8fa4ba" @@ -18354,6 +18633,13 @@ node-fetch@2.1.2: resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.2.tgz#ab884e8e7e57e38a944753cec706f788d1768bb5" integrity sha1-q4hOjn5X44qUR1POxwb3iNF2i7U= +node-fetch@2.6.7: + version "2.6.7" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + node-fetch@^2.6.0, node-fetch@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" @@ -18836,6 +19122,11 @@ oblivious-set@1.0.0: resolved "https://registry.yarnpkg.com/oblivious-set/-/oblivious-set-1.0.0.tgz#c8316f2c2fb6ff7b11b6158db3234c49f733c566" integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw== +oblivious-set@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/oblivious-set/-/oblivious-set-1.1.1.tgz#d9d38e9491d51f27a5c3ec1681d2ba40aa81e98b" + integrity sha512-Oh+8fK09mgGmAshFdH6hSVco6KZmd1tTwNFWj35OvzdmJTMZtAkbn05zar2iG3v6sDs1JLEtOiBGNb6BHwkb2w== + oboe@2.1.5: version "2.1.5" resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.5.tgz#5554284c543a2266d7a38f17e073821fbde393cd" @@ -19110,14 +19401,6 @@ p-map@^4.0.0: dependencies: aggregate-error "^3.0.0" -p-queue@6.6.2: - version "6.6.2" - resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-6.6.2.tgz#2068a9dcf8e67dd0ec3e7a2bcb76810faa85e426" - integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== - dependencies: - eventemitter3 "^4.0.4" - p-timeout "^3.2.0" - p-queue@^6.3.0: version "6.6.1" resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-6.6.1.tgz#578891ada028a61371ec2692b26614d1b7d2b10a" @@ -19138,7 +19421,7 @@ p-retry@^3.0.1: dependencies: retry "^0.12.0" -p-timeout@^3.1.0, p-timeout@^3.2.0: +p-timeout@^3.1.0: version "3.2.0" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== @@ -21110,6 +21393,13 @@ react-input-autosize@^2.2.2: dependencies: prop-types "^15.5.8" +react-input-autosize@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-3.0.0.tgz#6b5898c790d4478d69420b55441fcc31d5c50a85" + integrity sha512-nL9uS7jEs/zu8sqwFE5MAPx6pPkNAriACQ2rGLlqmKr2sPGtN7TXTyDdQt4lbNXVx7Uzadb40x8qotIuru6Rhg== + dependencies: + prop-types "^15.5.8" + react-inspector@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-4.0.1.tgz#0f888f78ff7daccbc7be5d452b20c96dc6d5fbb8" @@ -21326,7 +21616,7 @@ react-scroll@^1.8.1: lodash.throttle "^4.1.1" prop-types "^15.7.2" -react-select@^3.0.8, react-select@^3.1.1: +react-select@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/react-select/-/react-select-3.1.1.tgz#156a5b4a6c22b1e3d62a919cb1fd827adb4060bc" integrity sha512-HjC6jT2BhUxbIbxMZWqVcDibrEpdUJCfGicN0MMV+BQyKtCaPTgFekKWiOizSCy4jdsLMGjLqcFGJMhVGWB0Dg== @@ -21340,6 +21630,20 @@ react-select@^3.0.8, react-select@^3.1.1: react-input-autosize "^2.2.2" react-transition-group "^4.3.0" +react-select@^3.0.8: + version "3.2.0" + resolved "https://registry.yarnpkg.com/react-select/-/react-select-3.2.0.tgz#de9284700196f5f9b5277c5d850a9ce85f5c72fe" + integrity sha512-B/q3TnCZXEKItO0fFN/I0tWOX3WJvi/X2wtdffmwSQVRwg5BpValScTO1vdic9AxlUgmeSzib2hAZAwIUQUZGQ== + dependencies: + "@babel/runtime" "^7.4.4" + "@emotion/cache" "^10.0.9" + "@emotion/core" "^10.0.9" + "@emotion/css" "^10.0.9" + memoize-one "^5.0.0" + prop-types "^15.6.0" + react-input-autosize "^3.0.0" + react-transition-group "^4.3.0" + react-sizeme@^2.6.7: version "2.6.12" resolved "https://registry.yarnpkg.com/react-sizeme/-/react-sizeme-2.6.12.tgz#ed207be5476f4a85bf364e92042520499455453e" @@ -22989,6 +23293,24 @@ snapdragon@^0.8.1: source-map-resolve "^0.5.0" use "^3.1.0" +socket.io-client@^4.5.1: + version "4.5.2" + resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-4.5.2.tgz#9481518c560388c980c88b01e3cf62f367f04c96" + integrity sha512-naqYfFu7CLDiQ1B7AlLhRXKX3gdeaIMfgigwavDzgJoIUYulc1qHH5+2XflTsXTPY7BlPH5rppJyUjhjrKQKLg== + dependencies: + "@socket.io/component-emitter" "~3.1.0" + debug "~4.3.2" + engine.io-client "~6.2.1" + socket.io-parser "~4.2.0" + +socket.io-parser@~4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-4.2.1.tgz#01c96efa11ded938dcb21cbe590c26af5eff65e5" + integrity sha512-V4GrkLy+HeF1F/en3SpUaM+7XxYXpuMUWLGde1kSSh5nQMN4hLrbPIkD+otwh6q9R6NOQBN4AMaOZ2zVjui82g== + dependencies: + "@socket.io/component-emitter" "~3.1.0" + debug "~4.3.1" + sockjs-client@1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.4.0.tgz#c9f2568e19c8fd8173b4997ea3420e0bb306c7d5" @@ -24082,6 +24404,11 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + trezor-connect@^8.1.9: version "8.1.14" resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-8.1.14.tgz#6ce7c4c7569453a7f678b3fa9e1c4b7e90c5289e" @@ -24499,7 +24826,7 @@ unload@2.2.0: "@babel/runtime" "^7.6.2" detect-node "^2.0.4" -unload@2.3.1: +unload@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/unload/-/unload-2.3.1.tgz#9d16862d372a5ce5cb630ad1309c2fd6e35dacfe" integrity sha512-MUZEiDqvAN9AIDRbbBnVYVvfcR6DrjCqeU2YQMmliFZl9uaBUjTkhuDQkBiyAy8ad5bx1TXVbqZ3gg7namsWjA== @@ -24934,13 +25261,13 @@ web3-core-helpers@1.5.2: web3-eth-iban "1.5.2" web3-utils "1.5.2" -web3-core-helpers@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.7.1.tgz#6dc34eff6ad31149db6c7cc2babbf574a09970cd" - integrity sha512-xn7Sx+s4CyukOJdlW8bBBDnUCWndr+OCJAlUe/dN2wXiyaGRiCWRhuQZrFjbxLeBt1fYFH7uWyYHhYU6muOHgw== +web3-core-helpers@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.8.0.tgz#5dcfdda1a4ea277041d912003198f1334ca29d7c" + integrity sha512-nMAVwZB3rEp/khHI2BvFy0e/xCryf501p5NGjswmJtEM+Zrd3Biaw52JrB1qAZZIzCA8cmLKaOgdfamoDOpWdw== dependencies: - web3-eth-iban "1.7.1" - web3-utils "1.7.1" + web3-eth-iban "1.8.0" + web3-utils "1.8.0" web3-core-method@1.3.6: version "1.3.6" @@ -24966,16 +25293,16 @@ web3-core-method@1.5.2: web3-core-subscriptions "1.5.2" web3-utils "1.5.2" -web3-core-method@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.7.1.tgz#912c87d0f107d3f823932cf8a716852e3250e557" - integrity sha512-383wu5FMcEphBFl5jCjk502JnEg3ugHj7MQrsX7DY76pg5N5/dEzxeEMIJFCN6kr5Iq32NINOG3VuJIyjxpsEg== +web3-core-method@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.8.0.tgz#9c2da8896808917d1679c319f19e2174ba17086c" + integrity sha512-c94RAzo3gpXwf2rf8rL8C77jOzNWF4mXUoUfZYYsiY35cJFd46jQDPI00CB5+ZbICTiA5mlVzMj4e7jAsTqiLA== dependencies: - "@ethersproject/transactions" "^5.0.0-beta.135" - web3-core-helpers "1.7.1" - web3-core-promievent "1.7.1" - web3-core-subscriptions "1.7.1" - web3-utils "1.7.1" + "@ethersproject/transactions" "^5.6.2" + web3-core-helpers "1.8.0" + web3-core-promievent "1.8.0" + web3-core-subscriptions "1.8.0" + web3-utils "1.8.0" web3-core-promievent@1.3.6: version "1.3.6" @@ -24991,10 +25318,10 @@ web3-core-promievent@1.5.2: dependencies: eventemitter3 "4.0.4" -web3-core-promievent@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.7.1.tgz#7f78ec100a696954d0c882dac619fec28b2efc96" - integrity sha512-Vd+CVnpPejrnevIdxhCkzMEywqgVbhHk/AmXXceYpmwA6sX41c5a65TqXv1i3FWRJAz/dW7oKz9NAzRIBAO/kA== +web3-core-promievent@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.8.0.tgz#979765fd4d37ab0f158f0ee54037b279b737bd53" + integrity sha512-FGLyjAuOaAQ+ZhV6iuw9tg/9WvIkSZXKHQ4mdTyQ8MxVraOtFivOCbuLLsGgapfHYX+RPxsc1j1YzQjKoupagQ== dependencies: eventemitter3 "4.0.4" @@ -25021,16 +25348,16 @@ web3-core-requestmanager@1.5.2: web3-providers-ipc "1.5.2" web3-providers-ws "1.5.2" -web3-core-requestmanager@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.7.1.tgz#5cd7507276ca449538fe11cb4f363de8507502e5" - integrity sha512-/EHVTiMShpZKiq0Jka0Vgguxi3vxq1DAHKxg42miqHdUsz4/cDWay2wGALDR2x3ofDB9kqp7pb66HsvQImQeag== +web3-core-requestmanager@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.8.0.tgz#06189df80cf52d24a195a7ef655031afe8192df3" + integrity sha512-2AoYCs3Owl5foWcf4uKPONyqFygSl9T54L8b581U16nsUirjhoTUGK/PBhMDVcLCmW4QQmcY5A8oPFpkQc1TTg== dependencies: util "^0.12.0" - web3-core-helpers "1.7.1" - web3-providers-http "1.7.1" - web3-providers-ipc "1.7.1" - web3-providers-ws "1.7.1" + web3-core-helpers "1.8.0" + web3-providers-http "1.8.0" + web3-providers-ipc "1.8.0" + web3-providers-ws "1.8.0" web3-core-subscriptions@1.3.6: version "1.3.6" @@ -25049,13 +25376,13 @@ web3-core-subscriptions@1.5.2: eventemitter3 "4.0.4" web3-core-helpers "1.5.2" -web3-core-subscriptions@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.7.1.tgz#f7c834ee3544f4a5641a989304f61fde6a523e0b" - integrity sha512-NZBsvSe4J+Wt16xCf4KEtBbxA9TOwSVr8KWfUQ0tC2KMdDYdzNswl0Q9P58xaVuNlJ3/BH+uDFZJJ5E61BSA1Q== +web3-core-subscriptions@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.8.0.tgz#ff66ae4467c8cb4716367248bcefb1845c0f8b83" + integrity sha512-7lHVRzDdg0+Gcog55lG6Q3D8JV+jN+4Ly6F8cSn9xFUAwOkdbgdWsjknQG7t7CDWy21DQkvdiY2BJF8S68AqOA== dependencies: eventemitter3 "4.0.4" - web3-core-helpers "1.7.1" + web3-core-helpers "1.8.0" web3-core@1.3.6: version "1.3.6" @@ -25083,18 +25410,18 @@ web3-core@1.5.2: web3-core-requestmanager "1.5.2" web3-utils "1.5.2" -web3-core@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.7.1.tgz#ef9b7f03909387b9ab783f34cdc5ebcb50248368" - integrity sha512-HOyDPj+4cNyeNPwgSeUkhtS0F+Pxc2obcm4oRYPW5ku6jnTO34pjaij0us+zoY3QEusR8FfAKVK1kFPZnS7Dzw== +web3-core@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.8.0.tgz#90afce527ac1b1dff8cbed2acbc0336530b8aacf" + integrity sha512-9sCA+Z02ci6zoY2bAquFiDjujRwmSKHiSGi4B8IstML8okSytnzXk1izHYSynE7ahIkguhjWAuXFvX76F5rAbA== dependencies: - "@types/bn.js" "^4.11.5" + "@types/bn.js" "^5.1.0" "@types/node" "^12.12.6" bignumber.js "^9.0.0" - web3-core-helpers "1.7.1" - web3-core-method "1.7.1" - web3-core-requestmanager "1.7.1" - web3-utils "1.7.1" + web3-core-helpers "1.8.0" + web3-core-method "1.8.0" + web3-core-requestmanager "1.8.0" + web3-utils "1.8.0" web3-eth-abi@1.3.6: version "1.3.6" @@ -25113,13 +25440,13 @@ web3-eth-abi@1.5.2: "@ethersproject/abi" "5.0.7" web3-utils "1.5.2" -web3-eth-abi@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.7.1.tgz#6632003220a4defee4de8215dc703e43147382ea" - integrity sha512-8BVBOoFX1oheXk+t+uERBibDaVZ5dxdcefpbFTWcBs7cdm0tP8CD1ZTCLi5Xo+1bolVHNH2dMSf/nEAssq5pUA== +web3-eth-abi@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.8.0.tgz#47fdff00bfdfa72064c9c612ff6369986598196d" + integrity sha512-xPeMb2hS9YLQK/Q5YZpkcmzoRGM+/R8bogSrYHhNC3hjZSSU0YRH+1ZKK0f9YF4qDZaPMI8tKWIMSCDIpjG6fg== dependencies: - "@ethersproject/abi" "5.0.7" - web3-utils "1.7.1" + "@ethersproject/abi" "^5.6.3" + web3-utils "1.8.0" web3-eth-contract@^1.3.6: version "1.3.6" @@ -25150,19 +25477,19 @@ web3-eth-contract@^1.5.2: web3-eth-abi "1.5.2" web3-utils "1.5.2" -web3-eth-contract@^1.7.0: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.7.1.tgz#3f5147e5f1441ae388c985ba95023d02503378ae" - integrity sha512-HpnbkPYkVK3lOyos2SaUjCleKfbF0SP3yjw7l551rAAi5sIz/vwlEzdPWd0IHL7ouxXbO0tDn7jzWBRcD3sTbA== +web3-eth-contract@^1.7.4, web3-eth-contract@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.8.0.tgz#58f4ce0bde74e5ce87663502e409a92abad7b2c5" + integrity sha512-6xeXhW2YoCrz2Ayf2Vm4srWiMOB6LawkvxWJDnUWJ8SMATg4Pgu42C/j8rz/enXbYWt2IKuj0kk8+QszxQbK+Q== dependencies: - "@types/bn.js" "^4.11.5" - web3-core "1.7.1" - web3-core-helpers "1.7.1" - web3-core-method "1.7.1" - web3-core-promievent "1.7.1" - web3-core-subscriptions "1.7.1" - web3-eth-abi "1.7.1" - web3-utils "1.7.1" + "@types/bn.js" "^5.1.0" + web3-core "1.8.0" + web3-core-helpers "1.8.0" + web3-core-method "1.8.0" + web3-core-promievent "1.8.0" + web3-core-subscriptions "1.8.0" + web3-eth-abi "1.8.0" + web3-utils "1.8.0" web3-eth-iban@1.3.6: version "1.3.6" @@ -25180,13 +25507,13 @@ web3-eth-iban@1.5.2: bn.js "^4.11.9" web3-utils "1.5.2" -web3-eth-iban@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.7.1.tgz#2148dff256392491df36b175e393b03c6874cd31" - integrity sha512-XG4I3QXuKB/udRwZdNEhdYdGKjkhfb/uH477oFVMLBqNimU/Cw8yXUI5qwFKvBHM+hMQWfzPDuSDEDKC2uuiMg== +web3-eth-iban@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.8.0.tgz#3af8a0c95b5f7b0b81ab0bcd2075c1e5dda31520" + integrity sha512-4RbvUxcMpo/e5811sE3a6inJ2H4+FFqUVmlRYs0RaXaxiHweahSRBNcpO0UWgmlePTolj0rXqPT2oEr0DuC8kg== dependencies: - bn.js "^4.11.9" - web3-utils "1.7.1" + bn.js "^5.2.1" + web3-utils "1.8.0" web3-provider-engine@15.0.4: version "15.0.4" @@ -25288,13 +25615,15 @@ web3-providers-http@1.5.2: web3-core-helpers "1.5.2" xhr2-cookies "1.1.0" -web3-providers-http@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.7.1.tgz#3e00e013f013766aade28da29247daa1a937e759" - integrity sha512-dmiO6G4dgAa3yv+2VD5TduKNckgfR97VI9YKXVleWdcpBoKXe2jofhdvtafd42fpIoaKiYsErxQNcOC5gI/7Vg== +web3-providers-http@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.8.0.tgz#3fd1e569ead2095343fac17d53160a3bae674c23" + integrity sha512-/MqxwRzExohBWW97mqlCSW/+NHydGRyoEDUS1bAIF2YjfKFwyRtHgrEzOojzkC9JvB+8LofMvbXk9CcltpZapw== dependencies: - web3-core-helpers "1.7.1" - xhr2-cookies "1.1.0" + abortcontroller-polyfill "^1.7.3" + cross-fetch "^3.1.4" + es6-promise "^4.2.8" + web3-core-helpers "1.8.0" web3-providers-ipc@1.3.6: version "1.3.6" @@ -25313,13 +25642,13 @@ web3-providers-ipc@1.5.2: oboe "2.1.5" web3-core-helpers "1.5.2" -web3-providers-ipc@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.7.1.tgz#cde879a2ba57b1deac2e1030de90d185b793dd50" - integrity sha512-uNgLIFynwnd5M9ZC0lBvRQU5iLtU75hgaPpc7ZYYR+kjSk2jr2BkEAQhFVJ8dlqisrVmmqoAPXOEU0flYZZgNQ== +web3-providers-ipc@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.8.0.tgz#d339a24c4d764e459e425d3ac868a551ac33e3ea" + integrity sha512-tAXHtVXNUOgehaBU8pzAlB3qhjn/PRpjdzEjzHNFqtRRTwzSEKOJxFeEhaUA4FzHnTlbnrs8ujHWUitcp1elfg== dependencies: oboe "2.1.5" - web3-core-helpers "1.7.1" + web3-core-helpers "1.8.0" web3-providers-ws@1.3.6: version "1.3.6" @@ -25340,13 +25669,13 @@ web3-providers-ws@1.5.2: web3-core-helpers "1.5.2" websocket "^1.0.32" -web3-providers-ws@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.7.1.tgz#b6b3919ce155eff29b21bc3f205a098299a8c1b2" - integrity sha512-Uj0n5hdrh0ESkMnTQBsEUS2u6Unqdc7Pe4Zl+iZFb7Yn9cIGsPJBl7/YOP4137EtD5ueXAv+MKwzcelpVhFiFg== +web3-providers-ws@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.8.0.tgz#a0a73e0606981ea32bed40d215000a64753899de" + integrity sha512-bcZtSifsqyJxwkfQYamfdIRp4nhj9eJd7cxHg1uUkfLJK125WP96wyJL1xbPt7qt0MpfnTFn8/UuIqIB6nFENg== dependencies: eventemitter3 "4.0.4" - web3-core-helpers "1.7.1" + web3-core-helpers "1.8.0" websocket "^1.0.32" web3-utils@1.2.1: @@ -25389,12 +25718,12 @@ web3-utils@1.5.2, web3-utils@^1.5.2: randombytes "^2.1.0" utf8 "3.0.0" -web3-utils@1.7.1, web3-utils@^1.7.0, web3-utils@^1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.7.1.tgz#77d8bacaf426c66027d8aa4864d77f0ed211aacd" - integrity sha512-fef0EsqMGJUgiHPdX+KN9okVWshbIumyJPmR+btnD1HgvoXijKEkuKBv0OmUqjbeqmLKP2/N9EiXKJel5+E1Dw== +web3-utils@1.8.0, web3-utils@^1.7.4, web3-utils@^1.7.5, web3-utils@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.8.0.tgz#0a506f8c6af9a2ad6ba79689892662769534fc03" + integrity sha512-7nUIl7UWpLVka2f09CMbKOSEvorvHnaugIabU4mj7zfMvm0tSByLcEu3eyV9qgS11qxxLuOkzBIwCstTflhmpQ== dependencies: - bn.js "^4.11.9" + bn.js "^5.2.1" ethereum-bloom-filters "^1.0.6" ethereumjs-util "^7.1.0" ethjs-unit "0.1.6" @@ -25415,6 +25744,11 @@ web3-utils@^1.0.0-beta.31: randombytes "^2.1.0" utf8 "3.0.0" +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + webidl-conversions@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" @@ -25697,6 +26031,14 @@ whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + whatwg-url@^6.4.1: version "6.5.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" @@ -26062,6 +26404,11 @@ ws@^7.4.2: resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== +ws@~8.2.3: + version "8.2.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.3.tgz#63a56456db1b04367d0b721a0b80cae6d8becbba" + integrity sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA== + wsrun@^5.2.4: version "5.2.4" resolved "https://registry.yarnpkg.com/wsrun/-/wsrun-5.2.4.tgz#6eb6c3ccd3327721a8df073a5e3578fb0dea494e" @@ -26124,6 +26471,11 @@ xmlchars@^2.1.1: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== +xmlhttprequest-ssl@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67" + integrity sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A== + xmlhttprequest@1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz#67fe075c5c24fef39f9d65f5f7b7fe75171968fc" From 1a50c25b081ac9b41d5a3e10abbb65caea6ed20b Mon Sep 17 00:00:00 2001 From: Michael Yankelev Date: Tue, 11 Oct 2022 14:00:49 +0200 Subject: [PATCH 2/3] fix lint --- packages/files-ui/src/Contexts/ThresholdKeyContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx index ae20c38c49..33c61216df 100644 --- a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx +++ b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx @@ -150,7 +150,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f } )) : [] - , [keyDetails]) + , [keyDetails]) const browserShares = useMemo(() => parsedShares.filter((s) => s.module === WEB_STORAGE_MODULE_NAME).map(bs => ({ ...bs, From 39f457a9f9b302a13a7ca882dd8a5dcc2b61751c Mon Sep 17 00:00:00 2001 From: Michael Yankelev Date: Tue, 11 Oct 2022 15:00:24 +0200 Subject: [PATCH 3/3] fix lint again --- .../src/Contexts/ThresholdKeyContext.tsx | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx index 33c61216df..0fc3dc1010 100644 --- a/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx +++ b/packages/files-ui/src/Contexts/ThresholdKeyContext.tsx @@ -92,30 +92,31 @@ export type ShareTransferRequest = { const ThresholdKeyContext = React.createContext(undefined) const maintenanceMode = process.env.REACT_APP_MAINTENANCE_MODE === "true" -const getProviderSpecificParams = (loginType: LOGIN_TYPE): { typeOfLogin: LOGIN_TYPE; clientId: string; verifier: string; jwtParams?: any } => { - switch (loginType) { - case "google": { - return { - typeOfLogin: loginType, - clientId: process.env.REACT_APP_GOOGLE_CLIENT_ID || "", - verifier: "chainsafe-uuid-testnet" +const getProviderSpecificParams = + (loginType: LOGIN_TYPE): { typeOfLogin: LOGIN_TYPE; clientId: string; verifier: string; jwtParams?: any } => { + switch (loginType) { + case "google": { + return { + typeOfLogin: loginType, + clientId: process.env.REACT_APP_GOOGLE_CLIENT_ID || "", + verifier: "chainsafe-uuid-testnet" + } } - } - case "github": { - return { - typeOfLogin: loginType, - clientId: process.env.REACT_APP_AUTH0_CLIENT_ID || "", - verifier: "chainsafe-uuid-testnet", - jwtParams: { - domain: process.env.REACT_APP_AUTH0_DOMAIN || "" + case "github": { + return { + typeOfLogin: loginType, + clientId: process.env.REACT_APP_AUTH0_CLIENT_ID || "", + verifier: "chainsafe-uuid-testnet", + jwtParams: { + domain: process.env.REACT_APP_AUTH0_DOMAIN || "" + } } } - } - default: { - throw new Error(`${loginType} is unsupported`) + default: { + throw new Error(`${loginType} is unsupported`) + } } } -} const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = false, apiKey }: ThresholdKeyProviderProps) => { const { filesApiClient, thresholdKeyLogin, logout } = useFilesApi()