diff --git a/.env.example b/.env.example index ef9c9122f..fc27bb226 100644 --- a/.env.example +++ b/.env.example @@ -41,8 +41,11 @@ NEXT_PUBLIC_SITE_URL=http://localhost:3000 # disable grillchat NEXT_PUBLIC_GRILLCHAT_DISABLE=true -# web3auth client id -NEXT_PUBLIC_WEB3AUTH_CLIENT_ID_ZTG=BHyRKGUvkWeDLXdLO1FBFZDqLtSMPuDN-zMWN1_Yb9KMZKWriIu-7ZxMBPBT72P-ER6FH_a-rlesWwY8Vgm0fjg +# web3auth +NEXT_PUBLIC_WEB3AUTH_CLIENT_ID= +NEXT_PUBLIC_AUTH0_CLIENT_ID= +NEXT_PUBLIC_DISCORD_CLIENT_ID= +NEXT_PUBLIC_AUTH0_DOMAIN= NEXT_PUBLIC_OTHER_TAGS=["Coindesk"] diff --git a/components/account/Account.tsx b/components/account/Account.tsx index f4c17cdaa..10f06b0a9 100644 --- a/components/account/Account.tsx +++ b/components/account/Account.tsx @@ -27,7 +27,7 @@ export const Account = () => { diff --git a/components/account/AccountButton.tsx b/components/account/AccountButton.tsx index 996d3b193..6e8911e08 100644 --- a/components/account/AccountButton.tsx +++ b/components/account/AccountButton.tsx @@ -13,7 +13,6 @@ import { useUserLocation } from "lib/hooks/useUserLocation"; import { useWallet } from "lib/state/wallet"; import { formatNumberLocalized, shortenAddress } from "lib/util"; import { FaNetworkWired } from "react-icons/fa"; - import Link from "next/link"; import { useRouter } from "next/router"; import React, { FC, Fragment, PropsWithChildren, useState } from "react"; @@ -89,6 +88,7 @@ const AccountButton: FC<{ isNovaWallet, getProxyFor, realAddress, + walletId, } = useWallet(); const proxy = getProxyFor(activeAccount?.address); @@ -342,7 +342,9 @@ const AccountButton: FC<{
{ - accountModals.openAccountSelect(); + walletId === "web3auth" + ? accountModals.openWalletSelect() + : accountModals.openAccountSelect(); }} > diff --git a/components/account/AccountModalContent.tsx b/components/account/AccountModalContent.tsx index a489b3b81..03cfb56ec 100644 --- a/components/account/AccountModalContent.tsx +++ b/components/account/AccountModalContent.tsx @@ -9,7 +9,6 @@ import { useChainConstants } from "lib/hooks/queries/useChainConstants"; const AccountModalContent: FC = () => { const { activeAccount, disconnectWallet, accounts, selectAccount } = useWallet(); - const { data: activeBalance } = useZtgBalance(activeAccount?.address); const { data: constants } = useChainConstants(); diff --git a/components/account/AccountSelect.tsx b/components/account/AccountSelect.tsx index 152cbeb25..dc5e89125 100644 --- a/components/account/AccountSelect.tsx +++ b/components/account/AccountSelect.tsx @@ -1,7 +1,6 @@ -import { Unpacked } from "@zeitgeistpm/utility/dist/array"; import { useWallet } from "lib/state/wallet"; -import React, { FC, useEffect, useMemo, useState } from "react"; +import React, { FC } from "react"; import Select, { components, ControlProps, @@ -14,7 +13,6 @@ import Select, { import CopyIcon from "../ui/CopyIcon"; import AccountSelectOption from "./AccountSelectOption"; import AccountSelectValue from "./AccountSelectValue"; -import { useAccountModals } from "lib/state/account"; export type AccountOption = { label: string; value: string }; diff --git a/components/account/WalletIcon.tsx b/components/account/WalletIcon.tsx new file mode 100644 index 000000000..7e0ca11f8 --- /dev/null +++ b/components/account/WalletIcon.tsx @@ -0,0 +1,47 @@ +import Image from "next/image"; + +interface WalletIconProps { + extensionName: string; + logoAlt: string; + logoSrc: string; + onClick?: () => void; + hasError?: boolean; + error?: any; + className?: string; +} + +const WalletIcon = ({ + logoAlt, + logoSrc, + extensionName, + onClick, + hasError, + error, + className, +}: WalletIconProps) => { + return ( + + ); +}; + +export default WalletIcon; diff --git a/components/account/WalletSelect.tsx b/components/account/WalletSelect.tsx index 1423ac834..1e7bfdd33 100644 --- a/components/account/WalletSelect.tsx +++ b/components/account/WalletSelect.tsx @@ -2,12 +2,17 @@ import { BaseDotsamaWallet } from "@talismn/connect-wallets"; import { useAccountModals } from "lib/state/account"; import { usePrevious } from "lib/hooks/usePrevious"; import { supportedWallets, useWallet } from "lib/state/wallet"; +import Web3wallet from "components/web3wallet"; +import WalletIcon from "./WalletIcon"; +import { userConfigAtom } from "lib/state/wallet"; +import { useAtom } from "jotai"; import { useEffect } from "react"; -import { Download } from "react-feather"; const WalletSelect = () => { - const { selectWallet, errors, accounts, connected } = useWallet(); + const { selectWallet, errors, accounts, connected, walletId } = useWallet(); + const [userConfig] = useAtom(userConfigAtom); + const accountModals = useAccountModals(); const wasConnected = usePrevious(connected); @@ -22,56 +27,59 @@ const WalletSelect = () => { }; useEffect(() => { - if (!wasConnected && connected && accounts.length) { + if ( + !wasConnected && + connected && + accounts.length && + walletId !== "web3auth" + ) { accountModals.openAccountSelect(); + } else if ( + !wasConnected && + connected && + accounts.length && + walletId === "web3auth" + ) { + accountModals.closeWalletSelect(); } }, [wasConnected, connected, accounts, errors]); + return ( -
-
- Connect Wallet -
- {supportedWallets.map((wallet, idx) => { - const error = errors.find( - (e) => e.extensionName === wallet.extensionName, - ); - const hasError = error != null; - return ( -
-
{ - handleSelectWallet(wallet); - }} - > - {wallet.logo?.alt} +

+ {userConfig?.selectedAddress + ? "Log back in to Zeitgeist" + : "Create Account"} +

+

+ {userConfig?.selectedAddress + ? "Use one of the following options to log in and start using Prediction Markets." + : "Use one of the following options to create a wallet and start using Prediction Markets."} +

+ +

Crypto Wallet

+
+ {supportedWallets + .filter((w) => w.extensionName !== "web3auth") + .map((wallet) => { + const error = errors.find( + (e) => e.extensionName === wallet.extensionName, + ); + const hasError = error != null; + return ( + { + handleSelectWallet(wallet); + }} + extensionName={wallet.extensionName} + logoAlt={wallet.logo?.alt} + logoSrc={wallet.logo?.src} + hasError={hasError} + error={error} /> -
- {wallet.title} -
- {!wallet.installed && wallet.extensionName !== "web3auth" && ( -
- -
- )} - {hasError && ( -
- {error.type === "NoAccounts" && - "No accounts on this wallet. Please add account in wallet extension."} - {error.type === "InteractionDenied" && - "Not allowed to interact with extension. Please change permission settings."} -
- )} -
-
- ); - })} + ); + })} +
); }; diff --git a/components/portfolio/TransferButton.tsx b/components/portfolio/TransferButton.tsx index e7b33fe2f..e8ecb1c79 100644 --- a/components/portfolio/TransferButton.tsx +++ b/components/portfolio/TransferButton.tsx @@ -3,7 +3,6 @@ import Decimal from "decimal.js"; import React, { useMemo, useState } from "react"; import { Controller, useForm } from "react-hook-form"; import type { ApiPromise } from "@polkadot/api"; -import { encodeAddress } from "@polkadot/keyring"; import { AssetId, IOForeignAssetId, ZTG, isRpcSdk } from "@zeitgeistpm/sdk"; import AddressInput, { AddressOption } from "components/ui/AddressInput"; import AssetInput from "components/ui/AssetInput"; diff --git a/components/web3wallet/index.tsx b/components/web3wallet/index.tsx new file mode 100644 index 000000000..cb39560f6 --- /dev/null +++ b/components/web3wallet/index.tsx @@ -0,0 +1,54 @@ +import WalletIcon from "components/account/WalletIcon"; +import useWeb3Wallet from "lib/hooks/useWeb3Wallet"; +import { useState } from "react"; + +const Web3wallet = () => { + const { loginGoogle, loginTwitter, loginDiscord, loginEmail } = + useWeb3Wallet(); + const [email, setEmail] = useState(""); + + return ( +
+

Social

+
+ + + +
+

Email

+ setEmail(e.target.value)} + /> + +
+
+
+ ); +}; + +export default Web3wallet; diff --git a/lib/hooks/queries/useAccountTokenPositions.ts b/lib/hooks/queries/useAccountTokenPositions.ts index 53f4efc7e..8f2f62147 100644 --- a/lib/hooks/queries/useAccountTokenPositions.ts +++ b/lib/hooks/queries/useAccountTokenPositions.ts @@ -1,7 +1,6 @@ import { useQuery } from "@tanstack/react-query"; -import { isIndexedSdk, isRpcSdk } from "@zeitgeistpm/sdk"; +import { isRpcSdk } from "@zeitgeistpm/sdk"; import { useSdkv2 } from "../useSdkv2"; -import { encodeAddress } from "@polkadot/util-crypto"; export const positionsRootKey = "account-token-positions"; diff --git a/lib/hooks/queries/useFeePayingAsset.ts b/lib/hooks/queries/useFeePayingAsset.ts index 70e0931e1..7e019273b 100644 --- a/lib/hooks/queries/useFeePayingAsset.ts +++ b/lib/hooks/queries/useFeePayingAsset.ts @@ -32,7 +32,6 @@ export const useFeePayingAsset = ( const { data: constants } = useChainConstants(); const { data: assetMetadata } = useAllAssetMetadata(); const { assetSelection } = useFeePayingAssetSelection(); - const enabled = !!nativeBalance && !!foreignAssetBalances && @@ -79,6 +78,7 @@ export const useFeePayingAsset = ( sufficientBalance: true, }; } else if (IOForeignAssetId.is(assetSelection.value)) { + console.log(IOForeignAssetId.is(assetSelection.value)); const balance = foreignAssetBalances.find( (asset) => IOForeignAssetId.is(assetSelection.value) && @@ -110,7 +110,6 @@ export const useFeePayingAsset = ( enabled: enabled, }, ); - return query; }; diff --git a/lib/hooks/useWeb3Wallet.ts b/lib/hooks/useWeb3Wallet.ts new file mode 100644 index 000000000..dfe346bf5 --- /dev/null +++ b/lib/hooks/useWeb3Wallet.ts @@ -0,0 +1,173 @@ +import { WALLET_ADAPTERS, IProvider } from "@web3auth/base"; +import { Keyring } from "@polkadot/keyring"; +import { cryptoWaitReady } from "@polkadot/util-crypto"; +import { useWallet } from "lib/state/wallet"; +import { web3authAtom } from "lib/state/util/web3auth-config"; +import { useAtom } from "jotai"; +import { openloginAdapter, clientId } from "lib/state/util/web3auth-config"; +import { useNotifications } from "lib/state/notifications"; +interface loginOptions { + loginProvider: string; + extraLoginOptions: { + domain: string; + verifierIdField: "email" | "sub"; + isVerifierIdCaseSensitive?: boolean; + login_hint?: string; + connection: string; + }; +} + +const auth0Domain = process.env.NEXT_PUBLIC_AUTH0_DOMAIN; + +const useWeb3Wallet = () => { + const [web3auth] = useAtom(web3authAtom); + const notificationStore = useNotifications(); + const { selectWallet, disconnectWallet, walletId } = useWallet(); + + const initWeb3Auth = async () => { + if (!clientId) { + return; + } + try { + if (web3auth) { + web3auth.configureAdapter(openloginAdapter); + await web3auth.init(); + if (walletId === "web3auth" && web3auth.provider) { + await getKeypair(web3auth.provider); + } + } + } catch (error) { + return; + } + }; + + const login = async (loginOptions: loginOptions) => { + if (!web3auth || !auth0Domain) { + notificationStore.pushNotification( + `Error connecting: please try another login method or check back later.`, + { + type: "Error", + autoRemove: true, + lifetime: 5, + }, + ); + return; + } + if (web3auth.connected) { + await web3auth.logout(); + } + await web3auth.init(); + try { + const web3authProvider = await web3auth.connectTo( + WALLET_ADAPTERS.OPENLOGIN, + loginOptions, + ); + if (web3authProvider) { + await getKeypair(web3authProvider); + } + } catch { + notificationStore.pushNotification( + `Error connecting: please try again later.`, + { + type: "Error", + autoRemove: true, + lifetime: 5, + }, + ); + } + }; + + const loginGoogle = () => { + if (!auth0Domain) { + return; + } + login({ + loginProvider: "auth0google", + extraLoginOptions: { + domain: auth0Domain, + verifierIdField: "email", + isVerifierIdCaseSensitive: false, + connection: "google-oauth2", + }, + }); + }; + + const loginTwitter = () => { + if (!auth0Domain) { + return; + } + login({ + loginProvider: "auth0twitter", + extraLoginOptions: { + domain: auth0Domain, + verifierIdField: "sub", + connection: "twitter", + }, + }); + }; + + const loginDiscord = () => { + if (!auth0Domain) { + return; + } + login({ + loginProvider: "discord", + extraLoginOptions: { + domain: "", + verifierIdField: "email", + isVerifierIdCaseSensitive: false, + connection: "discord", + }, + }); + }; + + const loginEmail = (email?: string) => { + if (!auth0Domain) { + return; + } + login({ + loginProvider: "auth0emailpasswordless", + extraLoginOptions: { + domain: auth0Domain, + verifierIdField: "email", + isVerifierIdCaseSensitive: false, + login_hint: email, + connection: "email", + }, + }); + }; + + const getKeypair = async (provider: IProvider) => { + if (!provider) { + return; + } + await cryptoWaitReady(); + const privateKey = await provider.request({ + method: "private_key", + }); + const keyring = new Keyring({ ss58Format: 73, type: "sr25519" }); + const keyPair = keyring.addFromUri("0x" + privateKey); + if (keyPair) { + selectWallet("web3auth", keyPair); + } + }; + + const logoutWeb3Auth = async () => { + if (!web3auth) { + return; + } + await web3auth.logout(); + disconnectWallet(); + }; + + return { + loginEmail, + loginGoogle, + loginTwitter, + loginDiscord, + logoutWeb3Auth, + initWeb3Auth, + }; +}; + +export default useWeb3Wallet; diff --git a/lib/state/account.tsx b/lib/state/account.tsx index 682ea02ff..1f3db9793 100644 --- a/lib/state/account.tsx +++ b/lib/state/account.tsx @@ -16,7 +16,10 @@ export const useAccountModals = () => { return { ...state, openAccountSelect: () => { - setState({ ...state, accountSelectModalOpen: true }); + setState({ + ...state, + accountSelectModalOpen: true, + }); }, openWalletSelect: () => { if (disclaimerAccepted) { diff --git a/lib/state/util/web3auth-config.ts b/lib/state/util/web3auth-config.ts index c96c18987..ed5c06771 100644 --- a/lib/state/util/web3auth-config.ts +++ b/lib/state/util/web3auth-config.ts @@ -1,9 +1,23 @@ import { BaseDotsamaWallet } from "@talismn/connect-wallets"; import { CHAIN_NAMESPACES } from "@web3auth/base"; -import { Web3Auth } from "@web3auth/modal"; +import { Web3AuthNoModal } from "@web3auth/no-modal"; import { atom } from "jotai"; +import { OpenloginAdapter } from "@web3auth/openlogin-adapter"; +import { CommonPrivateKeyProvider } from "@web3auth/base-provider"; +import { TypeOfLogin } from "@web3auth/openlogin-adapter"; -export const clientId = process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID_ZTG; +interface LoginConfig { + [key: string]: { + verifier: string; + verifierSubIdentifier: string; + typeOfLogin: TypeOfLogin; + clientId: string; + }; +} + +export const clientId = process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID; +const auth0ClientID = process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID; +const discordClientID = process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID; class Web3AuthWallet extends BaseDotsamaWallet { constructor({ extensionName, title, installUrl, logo }) { @@ -41,31 +55,61 @@ const chainConfig = { ticker: "DOT", tickerName: "Polkadot", }; -export const web3AuthInstance = + +export const web3authNoModal = clientId && clientId.length > 0 - ? new Web3Auth({ + ? new Web3AuthNoModal({ clientId, chainConfig, - web3AuthNetwork: "cyan", - // Settings for whitelabel version of web3auth modal - // uiConfig: { - // loginMethodsOrder: [ - // "google", - // "facebook", - // "twitter", - // "discord", - // "twitch", - // "email_passwordless", - // ], - // appName: "Zeitgeist", - // mode: "dark", - // logoLight: "https://web3auth.io/images/w3a-L-Favicon-1.svg", - // logoDark: "https://web3auth.io/images/w3a-D-Favicon-1.svg", - // defaultLanguage: "en", - // loginGridCol: 3, - // primaryButton: "externalLogin", - // }, + web3AuthNetwork: "sapphire_devnet", }) : null; -export const web3authAtom = atom(web3AuthInstance); +const privateKeyProvider = new CommonPrivateKeyProvider({ + config: { chainConfig }, +}); + +const loginConfig: LoginConfig = { + ...(auth0ClientID + ? { + auth0google: { + verifier: "auth-aggregate", + verifierSubIdentifier: "auth0-google", + typeOfLogin: "jwt", + clientId: auth0ClientID, + }, + auth0twitter: { + verifier: "auth-aggregate", + verifierSubIdentifier: "auth0-twitter", + typeOfLogin: "jwt", + clientId: auth0ClientID, + }, + auth0emailpasswordless: { + verifier: "auth-aggregate", + verifierSubIdentifier: "auth0-passwordless", + typeOfLogin: "jwt", + clientId: auth0ClientID, + }, + } + : {}), + ...(discordClientID + ? { + discord: { + verifier: "auth-aggregate", + verifierSubIdentifier: "discord", + typeOfLogin: "discord", + clientId: discordClientID, + }, + } + : {}), +}; + +export const openloginAdapter = new OpenloginAdapter({ + privateKeyProvider, + adapterSettings: { + clientId, + loginConfig, + }, +}); + +export const web3authAtom = atom(web3authNoModal); diff --git a/lib/state/wallet.tsx b/lib/state/wallet.tsx index a10e51e38..f05aad28d 100644 --- a/lib/state/wallet.tsx +++ b/lib/state/wallet.tsx @@ -1,4 +1,3 @@ -import { Keyring } from "@polkadot/api"; import { InjectedAccount } from "@polkadot/extension-inject/types"; import { KeyringPair } from "@polkadot/keyring/types"; import { stringToHex, u8aToHex } from "@polkadot/util"; @@ -9,7 +8,6 @@ import { SubWallet, TalismanWallet, } from "@talismn/connect-wallets"; -import { IProvider } from "@web3auth/base"; import { KeyringPairOrExtSigner } from "@zeitgeistpm/rpc"; import { tryCatch } from "@zeitgeistpm/utility/dist/option"; import { atom, getDefaultStore, useAtom } from "jotai"; @@ -18,15 +16,13 @@ import { PollingTimeout, poll } from "lib/util/poll"; import { isString } from "lodash-es"; import { useMemo } from "react"; import { persistentAtom } from "./util/persistent-atom"; - -//Web3Auth import { isNotNull } from "@zeitgeistpm/utility/dist/null"; import { Notification, pushNotification, removeNotification, } from "./notifications"; -import { web3AuthWalletInstance, web3authAtom } from "./util/web3auth-config"; +import { web3AuthWalletInstance } from "./util/web3auth-config"; const DAPP_NAME = "zeitgeist"; @@ -58,7 +54,7 @@ export type UseWallet = WalletState & { * @param wallet the selected wallet id or instance * @returns void */ - selectWallet: (wallet: string) => void; + selectWallet: (wallet: string, keyPair?: KeyringPair) => void; /** * Select an address. * @param account the address to select @@ -79,10 +75,8 @@ export type UseWallet = WalletState & { */ getProxyFor: (address?: string) => ProxyConfig | undefined; /** - * Sets up web3 auth wallet + * Sign a raw transaction. */ - loadWeb3AuthWallet: () => void; - signRaw: (data: string) => Promise; }; @@ -170,7 +164,7 @@ export const walletAtom = atom({ * * @warning - when adding migrations all previous migrations in the list will have to left in place. */ -const userConfigAtom = persistentAtom({ +export const userConfigAtom = persistentAtom({ store, key: "wallet-user-config", defaultValue: {}, @@ -241,9 +235,40 @@ let currentErrorNotification: Readonly | null = null; * @returns Promise - whether the wallet was enabled */ -const enableWallet = async (walletId: string) => { +const enableWallet = async (walletId: string, keyPair?: KeyringPair) => { if (accountsSubscriptionUnsub) accountsSubscriptionUnsub(); + if (walletId === "web3auth" && !keyPair) { + return; + } + + if (walletId === "web3auth" && keyPair) { + store.set(walletAtom, (state) => { + return { + ...state, + wallet: { ...keyPair }, + connected: true, + walletId: "web3auth", + accounts: + [keyPair?.address].map((account) => { + return { + address: encodeAddress(account, 73), + }; + }) ?? [], + errors: + [keyPair?.address].length === 0 + ? [ + { + extensionName: "web3auth", + type: "NoAccounts", + }, + ] + : [], + }; + }); + return; + } + const wallet = supportedWallets.find((w) => w.extensionName === walletId); if (!isPresent(wallet)) { @@ -362,36 +387,11 @@ const enableWallet = async (walletId: string) => { } }; -const enabledWeb3Wallet = (keyPair: KeyringPair) => { - store.set(walletAtom, (state) => { - return { - ...state, - wallet: { ...keyPair }, - connected: true, - accounts: - [keyPair?.address].map((account) => { - return { - address: encodeAddress(account, 73), - }; - }) ?? [], - errors: - [keyPair?.address].length === 0 - ? [ - { - extensionName: "web3auth", - type: "NoAccounts", - }, - ] - : [], - }; - }); -}; - /** * Enable wallet on first load if wallet id is set. */ const initialWalletId = store.get(userConfigAtom).walletId; -if (initialWalletId && initialWalletId !== "web3auth") { +if (initialWalletId) { enableWallet(initialWalletId); } @@ -402,43 +402,19 @@ if (initialWalletId && initialWalletId !== "web3auth") { export const useWallet = (): UseWallet => { const [userConfig, setUserConfig] = useAtom(userConfigAtom); const [walletState, setWalletState] = useAtom(walletAtom); - const [web3auth] = useAtom(web3authAtom); - - const loadWeb3AuthWallet = async () => { - if (!web3auth) { - return; - } - web3auth.status === "not_ready" && (await web3auth.initModal()); - await web3auth.connect(); - - if (web3auth.provider) { - const getKeypair = async (provider: IProvider) => { - await cryptoWaitReady(); - const privateKey = await provider.request({ - method: "private_key", - }); - const keyring = new Keyring({ ss58Format: 73, type: "sr25519" }); - const keyPair = keyring.addFromUri("0x" + privateKey); - return keyPair; - }; - const keyPair = await getKeypair(web3auth.provider); - keyPair && enabledWeb3Wallet(keyPair); - } - }; - - const selectWallet = async (wallet: BaseDotsamaWallet | string) => { + const selectWallet = ( + wallet: BaseDotsamaWallet | string, + keyPair?: KeyringPair, + ) => { setUserConfig({ ...userConfig, walletId: isString(wallet) ? wallet : wallet.extensionName, }); - if (wallet === "web3auth") { - loadWeb3AuthWallet(); + enableWallet(wallet, keyPair); } else { - const error = await enableWallet( - isString(wallet) ? wallet : wallet.extensionName, - ); + enableWallet(isString(wallet) ? wallet : wallet.extensionName); } }; @@ -447,23 +423,18 @@ export const useWallet = (): UseWallet => { disconnectWalletStateTransition(walletState, userConfig); setWalletState(newWalletState); setUserConfig(newUserConfigState); - if (web3auth?.status === "connected") { - await web3auth.logout(); - } }; const getSigner = (): KeyringPairOrExtSigner | undefined => { if (!walletState.wallet) { return; } - if (walletState.wallet instanceof BaseDotsamaWallet) { return { address: activeAccount?.address, signer: walletState.wallet.signer, }; } - return walletState.wallet; }; @@ -542,7 +513,6 @@ export const useWallet = (): UseWallet => { realAddress, selectAccount, activeAccount: activeAccount, - loadWeb3AuthWallet, getSigner, selectWallet, disconnectWallet, diff --git a/package.json b/package.json index 25ec51164..e2df72198 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@plaiceholder/next": "^2.5.0", "@polkadot/api": "^10.10.1", "@polkadot/extension-dapp": "^0.44.6", + "@polkadot/keyring": "^12.6.2", "@polkadot/ui-keyring": "^2.4.1", "@portabletext/react": "^3.0.11", "@sanity/client": "^6.10.0", @@ -38,7 +39,9 @@ "@tanstack/react-query-devtools": "^4.19.1", "@vercel/og": "^0.5.19", "@walletconnect/sign-client": "^2.10.2", - "@web3auth/modal": "^7.0.4", + "@web3auth/base": "^7.3.1", + "@web3auth/no-modal": "^7.3.1", + "@web3auth/openlogin-adapter": "^7.3.1", "@yornaath/batshit": "^0.8.0", "@yornaath/batshit-devtools-react": "^0.5.4", "@zeitgeistpm/augment-api": "3.1.3", diff --git a/pages/_app.tsx b/pages/_app.tsx index 1317e1de0..e6ca405b7 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -16,6 +16,7 @@ import { hotjar } from "react-hotjar"; // font optimization from @next/font import { inter, kanit, roboto_mono } from "lib/util/fonts"; import { useWallet } from "lib/state/wallet"; +import useWeb3Wallet from "lib/hooks/useWeb3Wallet"; // environment variables set in .env.local or vercel interface const fathomSiteId = process.env["NEXT_PUBLIC_FATHOM_SITE_ID"]; @@ -28,6 +29,7 @@ const MyApp = ({ Component, pageProps }) => { const Layout = Component.Layout ? Component.Layout : React.Fragment; const router = useRouter(); const wallet = useWallet(); + const { initWeb3Auth } = useWeb3Wallet(); useEffect(() => { if (!isProduction) { @@ -59,12 +61,10 @@ const MyApp = ({ Component, pageProps }) => { }, []); useEffect(() => { - if (wallet.walletId === "web3auth") { - const init = async () => { - await wallet.loadWeb3AuthWallet(); - }; - init(); - } + const init = async () => { + await initWeb3Auth(); + }; + init(); }, []); return ( diff --git a/public/icons/discord.svg b/public/icons/discord.svg new file mode 100644 index 000000000..4cadbc7f7 --- /dev/null +++ b/public/icons/discord.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/icons/facebook-f.svg b/public/icons/facebook-f.svg new file mode 100644 index 000000000..e19a18f90 --- /dev/null +++ b/public/icons/facebook-f.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/public/icons/google-g.svg b/public/icons/google-g.svg new file mode 100644 index 000000000..088288fa3 --- /dev/null +++ b/public/icons/google-g.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/icons/x-logo.svg b/public/icons/x-logo.svg new file mode 100644 index 000000000..437e2bfdd --- /dev/null +++ b/public/icons/x-logo.svg @@ -0,0 +1,3 @@ + + + diff --git a/yarn.lock b/yarn.lock index 032699a11..241ae8c06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -209,7 +209,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.20.6, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.22.10, @babel/runtime@npm:^7.22.5, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.8.7": +"@babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.13, @babel/runtime@npm:^7.20.6, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.22.10, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.2, @babel/runtime@npm:^7.8.7": version: 7.23.2 resolution: "@babel/runtime@npm:7.23.2" dependencies: @@ -750,16 +750,6 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/common@npm:^4.0.0": - version: 4.0.0 - resolution: "@ethereumjs/common@npm:4.0.0" - dependencies: - "@ethereumjs/util": ^9.0.0 - crc: ^4.3.2 - checksum: 3fa2f6a55ff5a2406241fc1ffbdc6f60cfa139edaf9afac2164d25ca35e31a0d2901de40a517f42e5a466aab316f9187c5b787f33f3260e746b13209c910c67f - languageName: node - linkType: hard - "@ethereumjs/rlp@npm:^4.0.1": version: 4.0.1 resolution: "@ethereumjs/rlp@npm:4.0.1" @@ -769,12 +759,12 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/rlp@npm:^5.0.0": - version: 5.0.0 - resolution: "@ethereumjs/rlp@npm:5.0.0" +"@ethereumjs/rlp@npm:^5.0.1": + version: 5.0.1 + resolution: "@ethereumjs/rlp@npm:5.0.1" bin: - rlp: bin/rlp - checksum: 86d42f88945f25fc2874f80efc4d4c37cc85fc375920134392b658c0140346fb22b815e73680b87d1fea3ae55ad6ca42ea9fec7150583be496577b01bffb9e58 + rlp: bin/rlp.cjs + checksum: eddff08718c3b8312007ef51a951dff6b2c1152f9f9ea6fb9eec65d50caf3fa53f5894d79d6d450eef70a5ef3b0688be044912096aa8d263345a0d9debb4d477 languageName: node linkType: hard @@ -790,23 +780,6 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/tx@npm:^5.0.0": - version: 5.0.0 - resolution: "@ethereumjs/tx@npm:5.0.0" - dependencies: - "@ethereumjs/common": ^4.0.0 - "@ethereumjs/rlp": ^5.0.0 - "@ethereumjs/util": ^9.0.0 - ethereum-cryptography: ^2.1.2 - peerDependencies: - c-kzg: ^2.1.0 - peerDependenciesMeta: - c-kzg: - optional: true - checksum: 1f642781cca8251fb036ef9b77e95c8e3e8e7b1996d295e01f9875a581ccf25fa38eea270d032a8ab4cb1b6d716b50496b7400ccc37875b896912e6fd0300de8 - languageName: node - linkType: hard - "@ethereumjs/util@npm:^8.1.0": version: 8.1.0 resolution: "@ethereumjs/util@npm:8.1.0" @@ -818,18 +791,18 @@ __metadata: languageName: node linkType: hard -"@ethereumjs/util@npm:^9.0.0": - version: 9.0.0 - resolution: "@ethereumjs/util@npm:9.0.0" +"@ethereumjs/util@npm:^9.0.1": + version: 9.0.1 + resolution: "@ethereumjs/util@npm:9.0.1" dependencies: - "@ethereumjs/rlp": ^5.0.0 + "@ethereumjs/rlp": ^5.0.1 ethereum-cryptography: ^2.1.2 peerDependencies: - c-kzg: ^2.1.0 + c-kzg: ^2.1.2 peerDependenciesMeta: c-kzg: optional: true - checksum: c0e2a50aac614a8167df060f0fe6d7b9805adebd83df81a26b596c92eb76454e2e6f25d8f5b9e49cb629355020a8a07feb4d6c1b8238990dcf82e256153bf328 + checksum: 3569dcc0106f5e962e62811be66b5f49529c9d1a29671908568528b2b45d6cae03cb497fc755a1ae4144170f749133308494be42255ac98b61c930d143ed26f4 languageName: node linkType: hard @@ -1135,39 +1108,7 @@ __metadata: languageName: node linkType: hard -"@metamask/abi-utils@npm:^2.0.2": - version: 2.0.2 - resolution: "@metamask/abi-utils@npm:2.0.2" - dependencies: - "@metamask/utils": ^8.0.0 - superstruct: ^1.0.3 - checksum: 5ec153e7691a4e1dc8738a0ba1a99a354ddb13851fa88a40a19f002f6308310e71c2cee28c3a25d9f7f67e839c7dffe4760e93e308dd17fa725b08d0dc73a3d4 - languageName: node - linkType: hard - -"@metamask/detect-provider@npm:^2.0.0": - version: 2.0.0 - resolution: "@metamask/detect-provider@npm:2.0.0" - checksum: 45d3128069310e6cdb9a572b31da88b3fddb0aa78f94deba71657efd7e40d0680912a4ee0291a7a0e9ab66681aba271e74de87c5464d979f115726c740db641b - languageName: node - linkType: hard - -"@metamask/eth-sig-util@npm:^7.0.0": - version: 7.0.0 - resolution: "@metamask/eth-sig-util@npm:7.0.0" - dependencies: - "@ethereumjs/util": ^8.1.0 - "@metamask/abi-utils": ^2.0.2 - "@metamask/utils": ^8.1.0 - ethereum-cryptography: ^2.1.2 - ethjs-util: ^0.1.6 - tweetnacl: ^1.0.3 - tweetnacl-util: ^0.15.1 - checksum: bcb6bd23333e0b4dcb49f8772483dcb4c27e75405a2b111f1eafe0b341b221cf86ba4843e91c567d8836e80b6049d8e2f89c6766c62bbd256533e0f256f6d846 - languageName: node - linkType: hard - -"@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.1.0": +"@metamask/rpc-errors@npm:^6.1.0": version: 6.1.0 resolution: "@metamask/rpc-errors@npm:6.1.0" dependencies: @@ -1177,7 +1118,7 @@ __metadata: languageName: node linkType: hard -"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0": +"@metamask/utils@npm:^8.1.0": version: 8.2.0 resolution: "@metamask/utils@npm:8.2.0" dependencies: @@ -1335,6 +1276,15 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.3.0": + version: 1.3.0 + resolution: "@noble/curves@npm:1.3.0" + dependencies: + "@noble/hashes": 1.3.3 + checksum: b65342ee66c4a440eee2978524412eabba9a9efdd16d6370e15218c6a7d80bddf35e66bb57ed52c0dfd32cb9a717b439ab3a72db618f1a0066dfebe3fd12a421 + languageName: node + linkType: hard + "@noble/hashes@npm:1.2.0": version: 1.2.0 resolution: "@noble/hashes@npm:1.2.0" @@ -1356,6 +1306,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:1.3.3, @noble/hashes@npm:^1.3.3": + version: 1.3.3 + resolution: "@noble/hashes@npm:1.3.3" + checksum: 8a6496d1c0c64797339bc694ad06cdfaa0f9e56cd0c3f68ae3666cfb153a791a55deb0af9c653c7ed2db64d537aa3e3054629740d2f2338bb1dcb7ab60cd205b + languageName: node + linkType: hard + "@noble/secp256k1@npm:1.7.1": version: 1.7.1 resolution: "@noble/secp256k1@npm:1.7.1" @@ -1588,6 +1545,20 @@ __metadata: languageName: node linkType: hard +"@polkadot/keyring@npm:^12.6.2": + version: 12.6.2 + resolution: "@polkadot/keyring@npm:12.6.2" + dependencies: + "@polkadot/util": 12.6.2 + "@polkadot/util-crypto": 12.6.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.6.2 + "@polkadot/util-crypto": 12.6.2 + checksum: b8591690cdd2b9c0fea5de88efe0be19190466572ecb696cc284eec61343b1a2fe0b61a7cfad54933730a132f65d7444619bcb2c8620f38bc0246bfaaa5026f4 + languageName: node + linkType: hard + "@polkadot/networks@npm:10.4.2, @polkadot/networks@npm:^10.4.2": version: 10.4.2 resolution: "@polkadot/networks@npm:10.4.2" @@ -1610,6 +1581,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/networks@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/networks@npm:12.6.2" + dependencies: + "@polkadot/util": 12.6.2 + "@substrate/ss58-registry": ^1.44.0 + tslib: ^2.6.2 + checksum: 7f3dbdd02d8429f82c36ce284ca279af663d45c1a40ce4ce1e38ec2a06fc9d6d27c66d374f32b91ae3058257f33d60701481c9e95ceab19bd2eb70d83465b026 + languageName: node + linkType: hard + "@polkadot/rpc-augment@npm:10.10.1": version: 10.10.1 resolution: "@polkadot/rpc-augment@npm:10.10.1" @@ -1896,6 +1878,26 @@ __metadata: languageName: node linkType: hard +"@polkadot/util-crypto@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/util-crypto@npm:12.6.2" + dependencies: + "@noble/curves": ^1.3.0 + "@noble/hashes": ^1.3.3 + "@polkadot/networks": 12.6.2 + "@polkadot/util": 12.6.2 + "@polkadot/wasm-crypto": ^7.3.2 + "@polkadot/wasm-util": ^7.3.2 + "@polkadot/x-bigint": 12.6.2 + "@polkadot/x-randomvalues": 12.6.2 + "@scure/base": ^1.1.5 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.6.2 + checksum: 63d4bd9bdc3a7089a0a68555cd6a510b8da3cfab142a8f96ba4b43d5d1db2a543433079bc88c2daf15a329d19ba2cc60f6cca6dbebaefd25e96169cb6343794b + languageName: node + linkType: hard + "@polkadot/util@npm:10.4.2, @polkadot/util@npm:^10.4.2": version: 10.4.2 resolution: "@polkadot/util@npm:10.4.2" @@ -1926,6 +1928,21 @@ __metadata: languageName: node linkType: hard +"@polkadot/util@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/util@npm:12.6.2" + dependencies: + "@polkadot/x-bigint": 12.6.2 + "@polkadot/x-global": 12.6.2 + "@polkadot/x-textdecoder": 12.6.2 + "@polkadot/x-textencoder": 12.6.2 + "@types/bn.js": ^5.1.5 + bn.js: ^5.2.1 + tslib: ^2.6.2 + checksum: a42a226f3c299026458d82e48516abf59c1cd8638167edaa3fc1a17aec0ebab203e0ad68a096a4a4fa188afd55093535a98e5083d682a79242a3c5ad79342599 + languageName: node + linkType: hard + "@polkadot/wasm-bridge@npm:6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-bridge@npm:6.4.1" @@ -1951,6 +1968,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-bridge@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-bridge@npm:7.3.2" + dependencies: + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: 8c68b78cbd62347ebdf3fa66f2ffd1f7e883df71d770f5099ff652b083a79f1d7e9e7826a6acd8e986e9da0b07c0170a3f77b6a35726c6b24d856e3f8d08d201 + languageName: node + linkType: hard + "@polkadot/wasm-crypto-asmjs@npm:6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-crypto-asmjs@npm:6.4.1" @@ -1973,6 +2003,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-asmjs@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-asmjs@npm:7.3.2" + dependencies: + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + checksum: 669ea001565301f9b1a8feecb0e301c854fc318e5605316b57be7e83d717e7ee8ac460001cd44b18075a3d028c32c4a605c0e0e2e95ae00865282321b009ed26 + languageName: node + linkType: hard + "@polkadot/wasm-crypto-init@npm:6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-crypto-init@npm:6.4.1" @@ -2004,6 +2045,22 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-init@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-init@npm:7.3.2" + dependencies: + "@polkadot/wasm-bridge": 7.3.2 + "@polkadot/wasm-crypto-asmjs": 7.3.2 + "@polkadot/wasm-crypto-wasm": 7.3.2 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: af7bc62bba16f1fbbfd76601ecf18ed8f4dfc685807e2e89ef8e8d02f824d1a1ed1635e9c2448c6c12a9a183192b18943f9ce077d6b7781c4d43cdb5c45c9161 + languageName: node + linkType: hard + "@polkadot/wasm-crypto-wasm@npm:6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-crypto-wasm@npm:6.4.1" @@ -2028,6 +2085,18 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto-wasm@npm:7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto-wasm@npm:7.3.2" + dependencies: + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + checksum: e112ea3d4f8858a95fdaad47341b422db3db3256b7e7d709d1c3e0bc4c4bbdf81028eaa556b688078b32ff15be33af093b903c680f54eb1552072afede621a6a + languageName: node + linkType: hard + "@polkadot/wasm-crypto@npm:^6.3.1, @polkadot/wasm-crypto@npm:^6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-crypto@npm:6.4.1" @@ -2062,6 +2131,23 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-crypto@npm:^7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-crypto@npm:7.3.2" + dependencies: + "@polkadot/wasm-bridge": 7.3.2 + "@polkadot/wasm-crypto-asmjs": 7.3.2 + "@polkadot/wasm-crypto-init": 7.3.2 + "@polkadot/wasm-crypto-wasm": 7.3.2 + "@polkadot/wasm-util": 7.3.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + "@polkadot/x-randomvalues": "*" + checksum: 574006cdcc3e76af28cc79102726a79fdcd765ca5b45cbc4807d70917d82131b59f50b5cc07bd165b2863ed131b8764fef74b00c68ba5ec30a21c04c72061f8f + languageName: node + linkType: hard + "@polkadot/wasm-util@npm:6.4.1": version: 6.4.1 resolution: "@polkadot/wasm-util@npm:6.4.1" @@ -2084,6 +2170,17 @@ __metadata: languageName: node linkType: hard +"@polkadot/wasm-util@npm:7.3.2, @polkadot/wasm-util@npm:^7.3.2": + version: 7.3.2 + resolution: "@polkadot/wasm-util@npm:7.3.2" + dependencies: + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": "*" + checksum: 44bd445043714aac6d184ce02d62fbdb97a117fd4d8bdbf3f2c1d14f6911a7d87ed6bb4682035eb757524ade995f7f4f8aaa07c8a194f761884ded25a6b383a9 + languageName: node + linkType: hard + "@polkadot/x-bigint@npm:10.4.2, @polkadot/x-bigint@npm:^10.4.2": version: 10.4.2 resolution: "@polkadot/x-bigint@npm:10.4.2" @@ -2104,6 +2201,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-bigint@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/x-bigint@npm:12.6.2" + dependencies: + "@polkadot/x-global": 12.6.2 + tslib: ^2.6.2 + checksum: 12b2d5c3a7b994f5bd4f7aeda9e268384b04bd080892400c65b88fb5aa4951df6c4abe3baf9820f3adf3da92e2add710858dd35dcd597d2527bbfd1cd0efe534 + languageName: node + linkType: hard + "@polkadot/x-fetch@npm:^10.4.2": version: 10.4.2 resolution: "@polkadot/x-fetch@npm:10.4.2" @@ -2145,6 +2252,15 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-global@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/x-global@npm:12.6.2" + dependencies: + tslib: ^2.6.2 + checksum: eb17e039cb1668743c84f5eafbf518cf6248e93090e4877f81f338b418b3e6b0173f2414c62bd9cbe7bf8911ec566527ca7c49c4354ba90d57e62e90195329d0 + languageName: node + linkType: hard + "@polkadot/x-randomvalues@npm:10.4.2": version: 10.4.2 resolution: "@polkadot/x-randomvalues@npm:10.4.2" @@ -2168,6 +2284,19 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-randomvalues@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/x-randomvalues@npm:12.6.2" + dependencies: + "@polkadot/x-global": 12.6.2 + tslib: ^2.6.2 + peerDependencies: + "@polkadot/util": 12.6.2 + "@polkadot/wasm-util": "*" + checksum: 7faccf2dbcf0c7383b5ecfd7beb098c8c8ad5cf4c8f5bafd601657f8271af8f00b66741531ecf8b2f7c59911d96f77e358184a7c5034c70bf387a8e929a4c210 + languageName: node + linkType: hard + "@polkadot/x-textdecoder@npm:10.4.2": version: 10.4.2 resolution: "@polkadot/x-textdecoder@npm:10.4.2" @@ -2188,6 +2317,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-textdecoder@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/x-textdecoder@npm:12.6.2" + dependencies: + "@polkadot/x-global": 12.6.2 + tslib: ^2.6.2 + checksum: c7e4b7f7ff943095a96bef3e3e56216d33d6ff38c965931356a06d01594b2c523ccbeada697a31b5457b134e578618f35425e0883f45187adffa98df99a45f27 + languageName: node + linkType: hard + "@polkadot/x-textencoder@npm:10.4.2": version: 10.4.2 resolution: "@polkadot/x-textencoder@npm:10.4.2" @@ -2208,6 +2347,16 @@ __metadata: languageName: node linkType: hard +"@polkadot/x-textencoder@npm:12.6.2": + version: 12.6.2 + resolution: "@polkadot/x-textencoder@npm:12.6.2" + dependencies: + "@polkadot/x-global": 12.6.2 + tslib: ^2.6.2 + checksum: d3eacdc0eb2e1ef8b8132d52a1f1033be62bc64360753a117f2e6517ccf7c9cde628558bbd016a73836eacd91cb1e2ac382dce0ce9c8d32c2f7db3fcc8863911 + languageName: node + linkType: hard + "@polkadot/x-ws@npm:^10.4.2": version: 10.4.2 resolution: "@polkadot/x-ws@npm:10.4.2" @@ -2468,6 +2617,13 @@ __metadata: languageName: node linkType: hard +"@scure/base@npm:^1.1.5": + version: 1.1.5 + resolution: "@scure/base@npm:1.1.5" + checksum: 9e9ee6088cb3aa0fb91f5a48497d26682c7829df3019b1251d088d166d7a8c0f941c68aaa8e7b96bbad20c71eb210397cb1099062cde3e29d4bad6b975c18519 + languageName: node + linkType: hard + "@scure/bip32@npm:1.3.1": version: 1.3.1 resolution: "@scure/bip32@npm:1.3.1" @@ -2538,38 +2694,6 @@ __metadata: languageName: node linkType: hard -"@solana/buffer-layout@npm:^4.0.0": - version: 4.0.1 - resolution: "@solana/buffer-layout@npm:4.0.1" - dependencies: - buffer: ~6.0.3 - checksum: bf846888e813187243d4008a7a9f58b49d16cbd995b9d7f1b72898aa510ed77b1ce5e8468e7b2fd26dd81e557a4e74a666e21fccb95f123c1f740d41138bbacd - languageName: node - linkType: hard - -"@solana/web3.js@npm:^1.78.4": - version: 1.87.3 - resolution: "@solana/web3.js@npm:1.87.3" - dependencies: - "@babel/runtime": ^7.23.2 - "@noble/curves": ^1.2.0 - "@noble/hashes": ^1.3.1 - "@solana/buffer-layout": ^4.0.0 - agentkeepalive: ^4.3.0 - bigint-buffer: ^1.1.5 - bn.js: ^5.2.1 - borsh: ^0.7.0 - bs58: ^4.0.1 - buffer: 6.0.3 - fast-stable-stringify: ^1.0.0 - jayson: ^4.1.0 - node-fetch: ^2.6.12 - rpc-websockets: ^7.5.1 - superstruct: ^0.14.2 - checksum: 221f2f5e4e7b331beb250efc32213e6ef6ad0fe2621504c4c63d82dbb7272137b1f435bdc2cf4282c70734704744384b8b31e88a1001686addbed19e1c423329 - languageName: node - linkType: hard - "@stablelib/aead@npm:^1.0.1": version: 1.0.1 resolution: "@stablelib/aead@npm:1.0.1" @@ -2792,6 +2916,13 @@ __metadata: languageName: node linkType: hard +"@substrate/ss58-registry@npm:^1.44.0": + version: 1.46.0 + resolution: "@substrate/ss58-registry@npm:1.46.0" + checksum: 10e9bfd8d509abf78759d3e62cc41de515fc832dc2eab503071dda4cf0fb71c9d52247d0c32f93af6f8c4463add50d7f7f3483b52cbf43de621ac255226efb5f + languageName: node + linkType: hard + "@swc/helpers@npm:0.5.2": version: 0.5.2 resolution: "@swc/helpers@npm:0.5.2" @@ -2909,15 +3040,15 @@ __metadata: languageName: node linkType: hard -"@toruslabs/base-controllers@npm:^4.0.1, @toruslabs/base-controllers@npm:^4.2.0": - version: 4.6.0 - resolution: "@toruslabs/base-controllers@npm:4.6.0" +"@toruslabs/base-controllers@npm:^4.11.0": + version: 4.11.0 + resolution: "@toruslabs/base-controllers@npm:4.11.0" dependencies: - "@ethereumjs/util": ^9.0.0 + "@ethereumjs/util": ^9.0.1 "@metamask/rpc-errors": ^6.1.0 "@toruslabs/broadcast-channel": ^9.0.1 - "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin-jrpc": ^5.3.0 + "@toruslabs/http-helpers": ^6.0.0 + "@toruslabs/openlogin-jrpc": ^6.1.0 async-mutex: ^0.4.0 bignumber.js: ^9.1.2 bowser: ^2.11.0 @@ -2925,7 +3056,7 @@ __metadata: loglevel: ^1.8.1 peerDependencies: "@babel/runtime": 7.x - checksum: a522829d32e68292b07e2fd7f022866398e0ef9fc169fabdd7680919c39f371493037d458610d1290fa201f1e273f201227118de9464f7c9fc1b7996038d97f3 + checksum: 59010f116bcbb42e5613751ed0badc98a8edf697bdd6f5ff1a6f907d3327e18e667ea3cb2cd910792ef8579e09f0874ad3e478963b3e0171a07b53bfb73a2d36 languageName: node linkType: hard @@ -2940,22 +3071,6 @@ __metadata: languageName: node linkType: hard -"@toruslabs/broadcast-channel@npm:^8.0.0": - version: 8.0.0 - resolution: "@toruslabs/broadcast-channel@npm:8.0.0" - dependencies: - "@babel/runtime": ^7.22.10 - "@toruslabs/eccrypto": ^4.0.0 - "@toruslabs/metadata-helpers": ^5.0.0 - bowser: ^2.11.0 - loglevel: ^1.8.1 - oblivious-set: 1.1.1 - socket.io-client: ^4.7.2 - unload: ^2.4.1 - checksum: 83aad22a50a3bd839626dd7a015be3690755b1bfeb946f5f3e84c046d255543cbdcb0b04928be0814014b1a5959853e6a6a9e8e1bdb182199f64870136607d2b - languageName: node - linkType: hard - "@toruslabs/broadcast-channel@npm:^9.0.1": version: 9.0.1 resolution: "@toruslabs/broadcast-channel@npm:9.0.1" @@ -2972,12 +3087,12 @@ __metadata: languageName: node linkType: hard -"@toruslabs/constants@npm:^13.0.1": - version: 13.0.3 - resolution: "@toruslabs/constants@npm:13.0.3" +"@toruslabs/constants@npm:^13.0.4, @toruslabs/constants@npm:^13.1.0": + version: 13.1.0 + resolution: "@toruslabs/constants@npm:13.1.0" peerDependencies: "@babel/runtime": 7.x - checksum: 78f438e39f61c1f28dcb07d66a3a85729a0cf68139f3ee71f77e41ca68df652c363886fc9ff8e0736b5bfa9426acfa05ea99d1bb37775d15fba3de45ecfa142e + checksum: aa5e502d34e3d9180630d50a823276c2aad3f7724f91f9e2bc101d0bf7f59ac4bda8be690b09eebd7310f38b937845730529da6204076d6692f63a0850ca3950 languageName: node linkType: hard @@ -3006,6 +3121,22 @@ __metadata: languageName: node linkType: hard +"@toruslabs/http-helpers@npm:^6.0.0": + version: 6.0.0 + resolution: "@toruslabs/http-helpers@npm:6.0.0" + dependencies: + lodash.merge: ^4.6.2 + loglevel: ^1.8.1 + peerDependencies: + "@babel/runtime": ^7.x + "@sentry/types": ^7.x + peerDependenciesMeta: + "@sentry/types": + optional: true + checksum: 1dbe04be08d3cf76a27be19a91d4fa17d494e4614112913b18913a8ee7ffe7ace83650b60f7f23891248b517d2966754bbef6e90ca13cb9cd9033f1ab6f6b745 + languageName: node + linkType: hard + "@toruslabs/metadata-helpers@npm:5.0.0, @toruslabs/metadata-helpers@npm:^5.0.0": version: 5.0.0 resolution: "@toruslabs/metadata-helpers@npm:5.0.0" @@ -3021,32 +3152,39 @@ __metadata: languageName: node linkType: hard -"@toruslabs/openlogin-ed25519@npm:^5.0.0": - version: 5.0.0 - resolution: "@toruslabs/openlogin-ed25519@npm:5.0.0" +"@toruslabs/openlogin-jrpc@npm:^6.1.0": + version: 6.2.0 + resolution: "@toruslabs/openlogin-jrpc@npm:6.2.0" dependencies: - "@toruslabs/tweetnacl-js": ^1.0.4 + "@metamask/rpc-errors": ^6.1.0 + "@toruslabs/openlogin-utils": ^6.2.0 + end-of-stream: ^1.4.4 + events: ^3.3.0 + fast-safe-stringify: ^2.1.1 + once: ^1.4.0 + pump: ^3.0.0 + readable-stream: ^4.4.2 peerDependencies: "@babel/runtime": 7.x - checksum: b11af70fe66a62d07661fb608accb0d88cef25a5d8a3d7da24a09e2540f7b2b6d30c2d05b875bbc837b4fe3ec486af3fe9e4870cc794af5caf70c50a8dd5264d + checksum: fb98dea3d21cd3fc842c182be9e09dbc85b8300be0ce50c5821b69a12c03872865d9375eaaaf8de60caaf70765fcd6c10e38bc00ddc391ebc96f64af4d825182 languageName: node linkType: hard -"@toruslabs/openlogin-jrpc@npm:^5.0.2, @toruslabs/openlogin-jrpc@npm:^5.2.0, @toruslabs/openlogin-jrpc@npm:^5.3.0": - version: 5.3.0 - resolution: "@toruslabs/openlogin-jrpc@npm:5.3.0" +"@toruslabs/openlogin-jrpc@npm:^6.2.2": + version: 6.2.5 + resolution: "@toruslabs/openlogin-jrpc@npm:6.2.5" dependencies: - "@metamask/rpc-errors": ^6.0.0 - "@toruslabs/openlogin-utils": ^5.3.0 + "@metamask/rpc-errors": ^6.1.0 + "@toruslabs/openlogin-utils": ^6.2.5 end-of-stream: ^1.4.4 events: ^3.3.0 fast-safe-stringify: ^2.1.1 once: ^1.4.0 pump: ^3.0.0 - readable-stream: ^4.4.2 + readable-stream: ^4.5.2 peerDependencies: "@babel/runtime": 7.x - checksum: 130e5b27ca7e63754978fd35d9889a4611dd7df249b55b6af50fac35455a7acb602e4f3771f4cb0ed37b3bdd3a03100f12ef2139cb7d8d4dbbaf8231f96565c8 + checksum: f4cfe725077146cd092e9f172e0c0fb0a929643808bc83664547fbc09bce1fb4f116b609713b0891329fac030a986f7f938f3365121974b980d7d25efed4ff9c languageName: node linkType: hard @@ -3063,78 +3201,61 @@ __metadata: languageName: node linkType: hard -"@toruslabs/openlogin-utils@npm:^5.2.0, @toruslabs/openlogin-utils@npm:^5.3.0": - version: 5.3.0 - resolution: "@toruslabs/openlogin-utils@npm:5.3.0" +"@toruslabs/openlogin-utils@npm:^6.2.0": + version: 6.2.0 + resolution: "@toruslabs/openlogin-utils@npm:6.2.0" dependencies: - "@toruslabs/constants": ^13.0.1 + "@toruslabs/constants": ^13.0.4 base64url: ^3.0.1 peerDependencies: "@babel/runtime": 7.x - checksum: 706d84f83bd85846e81e68a6b12b70bea2b4073365063e5e7b69e73ea9fa5ac9e1e5e3670008a68564889759ccd86883923e9cac31a9ca3400c71aea001bdee4 + checksum: 6d7951aad91905321ba1bebc4c8a27e896e9c0dfcb7c14cd6662d3d3818aa4d33616574453ea887b2150cd5f0400b942dc0fbe8db73f770b611aa9f3c3ec087d languageName: node linkType: hard -"@toruslabs/openlogin@npm:^5.2.0": - version: 5.3.0 - resolution: "@toruslabs/openlogin@npm:5.3.0" +"@toruslabs/openlogin-utils@npm:^6.2.2, @toruslabs/openlogin-utils@npm:^6.2.5": + version: 6.2.5 + resolution: "@toruslabs/openlogin-utils@npm:6.2.5" dependencies: - "@toruslabs/broadcast-channel": ^8.0.0 - "@toruslabs/eccrypto": ^4.0.0 - "@toruslabs/metadata-helpers": ^5.0.0 - "@toruslabs/openlogin-session-manager": ^3.0.0 - "@toruslabs/openlogin-utils": ^5.3.0 - bowser: ^2.11.0 - events: ^3.3.0 - loglevel: ^1.8.1 - ts-custom-error: ^3.3.1 + "@toruslabs/constants": ^13.1.0 + base64url: ^3.0.1 peerDependencies: "@babel/runtime": 7.x - checksum: 5243151247de43f6ce0070d627c7696a4d980c5f1f8443ed40f9cefdd10c62419fede50aa9f029a87e7eec778c82f365e75aebce02c746d4984c54960deb6a1a + checksum: 9d6949a391b1edcb154a4b7774ba1932aad5af1cf949a706d7f0099ae42179615262cd10e2fcfc3aba1daa0c6672059c132f5fa64e82f659eeb9d9ca0eb00aba languageName: node linkType: hard -"@toruslabs/solana-embed@npm:^2.0.0": - version: 2.0.0 - resolution: "@toruslabs/solana-embed@npm:2.0.0" +"@toruslabs/openlogin@npm:^6.2.2": + version: 6.2.5 + resolution: "@toruslabs/openlogin@npm:6.2.5" dependencies: - "@solana/web3.js": ^1.78.4 - "@toruslabs/base-controllers": ^4.0.1 - "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin-jrpc": ^5.0.2 - eth-rpc-errors: ^4.0.3 - fast-deep-equal: ^3.1.3 - lodash-es: ^4.17.21 + "@toruslabs/eccrypto": ^4.0.0 + "@toruslabs/metadata-helpers": ^5.0.0 + "@toruslabs/openlogin-session-manager": ^3.0.0 + "@toruslabs/openlogin-utils": ^6.2.5 + "@toruslabs/secure-pub-sub": ^0.0.1 + bowser: ^2.11.0 + events: ^3.3.0 loglevel: ^1.8.1 - pump: ^3.0.0 + ts-custom-error: ^3.3.1 peerDependencies: "@babel/runtime": 7.x - checksum: d3acda17e691cf45413759936412ff0280a6b8222ef4f1a1f1eef49ec32c2a751a7ee45851efec0a0add7a5ec4185bf814c8951e866d1c4b081becabbdd68e57 + checksum: 76e1c9a6833b1246edf924043f90f92fc78f2f9862f76dfb2f118c6ae4026f39e62d97e6dcac8113b2a29124024001be04a4bf25c8a70b7c065d38656278e09a languageName: node linkType: hard -"@toruslabs/torus-embed@npm:^4.0.2": - version: 4.0.4 - resolution: "@toruslabs/torus-embed@npm:4.0.4" +"@toruslabs/secure-pub-sub@npm:^0.0.1": + version: 0.0.1 + resolution: "@toruslabs/secure-pub-sub@npm:0.0.1" dependencies: - "@metamask/rpc-errors": ^6.0.0 + "@toruslabs/eccrypto": ^4.0.0 "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin-jrpc": ^5.0.2 - fast-deep-equal: ^3.1.3 - lodash.merge: ^4.6.2 + "@toruslabs/metadata-helpers": ^5.0.0 loglevel: ^1.8.1 - pump: ^3.0.0 - readable-stream: ^4.4.2 + socket.io-client: ^4.7.2 peerDependencies: "@babel/runtime": 7.x - checksum: e3177bba5e67e281bec3bf79f190483fccae3565d8a7acd248d0df36a915da86da929b5f98deab21039fe7eaeddb9f70062a620288db712fc1bf84f2fecf5d34 - languageName: node - linkType: hard - -"@toruslabs/tweetnacl-js@npm:^1.0.4": - version: 1.0.4 - resolution: "@toruslabs/tweetnacl-js@npm:1.0.4" - checksum: 9094f55bfab6e4798bc59be20d31d4c1009f8aeb2432fc491e8dab7d6891b87cdffe5edf37c011fafb87c95bb464327b7f5a4e155b44a58d81659d0bcd804ff7 + checksum: 726cf979a377b8e45cd36ca22ea46a6125c90a2703a6fae6c3458c79f7a1ebda7a5870a233d755522ca096423b1af41528bf36a6ebbc40bece84e319fca5e7ab languageName: node linkType: hard @@ -3194,6 +3315,15 @@ __metadata: languageName: node linkType: hard +"@types/bn.js@npm:^5.1.5": + version: 5.1.5 + resolution: "@types/bn.js@npm:5.1.5" + dependencies: + "@types/node": "*" + checksum: c87b28c4af74545624f8a3dae5294b16aa190c222626e8d4b2e327b33b1a3f1eeb43e7a24d914a9774bca43d8cd6e1cb0325c1f4b3a244af6693a024e1d918e6 + languageName: node + linkType: hard + "@types/chai-subset@npm:^1.3.3": version: 1.3.5 resolution: "@types/chai-subset@npm:1.3.5" @@ -3210,15 +3340,6 @@ __metadata: languageName: node linkType: hard -"@types/connect@npm:^3.4.33": - version: 3.4.37 - resolution: "@types/connect@npm:3.4.37" - dependencies: - "@types/node": "*" - checksum: 79ef1f79a28235ea7cbefa153914318d7b46d60041a932681b613abd706591108f4f17ddd2072ee8ec23ba9a3fb068a6c3bbdca66b95de1a7e6039bd940ae988 - languageName: node - linkType: hard - "@types/d3-array@npm:^3.0.3": version: 3.0.9 resolution: "@types/d3-array@npm:3.0.9" @@ -3390,13 +3511,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^12.12.54": - version: 12.20.55 - resolution: "@types/node@npm:12.20.55" - checksum: e4f86785f4092706e0d3b0edff8dca5a13b45627e4b36700acd8dfe6ad53db71928c8dee914d4276c7fd3b6ccd829aa919811c9eb708a2c8e4c6eb3701178c37 - languageName: node - linkType: hard - "@types/node@npm:^18.0.0": version: 18.18.7 resolution: "@types/node@npm:18.18.7" @@ -3514,15 +3628,6 @@ __metadata: languageName: node linkType: hard -"@types/ws@npm:^7.4.4": - version: 7.4.7 - resolution: "@types/ws@npm:7.4.7" - dependencies: - "@types/node": "*" - checksum: b4c9b8ad209620c9b21e78314ce4ff07515c0cadab9af101c1651e7bfb992d7fd933bd8b9c99d110738fd6db523ed15f82f29f50b45510288da72e964dedb1a3 - languageName: node - linkType: hard - "@vercel/og@npm:^0.5.19": version: 0.5.20 resolution: "@vercel/og@npm:0.5.20" @@ -3711,15 +3816,6 @@ __metadata: languageName: node linkType: hard -"@walletconnect/legacy-types@npm:2.0.0": - version: 2.0.0 - resolution: "@walletconnect/legacy-types@npm:2.0.0" - dependencies: - "@walletconnect/jsonrpc-types": ^1.0.2 - checksum: 358d789f8a50e689edcfd8eb668fcdf8e1f03ab08757b12fad0e658ce7ef62268f8022502b476bce69e5165aa4454c4ad1ea41f17244ab8d0fcd9026bd94707c - languageName: node - linkType: hard - "@walletconnect/logger@npm:^2.0.1": version: 2.0.1 resolution: "@walletconnect/logger@npm:2.0.1" @@ -3803,7 +3899,7 @@ __metadata: languageName: node linkType: hard -"@walletconnect/utils@npm:2.10.4, @walletconnect/utils@npm:^2.10.2": +"@walletconnect/utils@npm:2.10.4": version: 2.10.4 resolution: "@walletconnect/utils@npm:2.10.4" dependencies: @@ -3821,292 +3917,99 @@ __metadata: detect-browser: 5.3.0 query-string: 7.1.3 uint8arrays: ^3.1.0 - checksum: 1701cce1ee0b5dd051104325877faef99167bd80597a4e3ac9b7474b2caea1285025bc47b82c48cda471ba8724d77c20ca978ee03af8fc5ea1a7a0d284fa79ac - languageName: node - linkType: hard - -"@walletconnect/window-getters@npm:^1.0.1": - version: 1.0.1 - resolution: "@walletconnect/window-getters@npm:1.0.1" - dependencies: - tslib: 1.14.1 - checksum: fae312c4e1be5574d97f071de58e6aa0d0296869761499caf9d4a9a5fd2643458af32233a2120521b00873a599ff88457d405bd82ced5fb5bd6dc3191c07a3e5 - languageName: node - linkType: hard - -"@walletconnect/window-metadata@npm:^1.0.1": - version: 1.0.1 - resolution: "@walletconnect/window-metadata@npm:1.0.1" - dependencies: - "@walletconnect/window-getters": ^1.0.1 - tslib: 1.14.1 - checksum: e82aea7195c6fe95c00e87bb38051c5549838c2e8302da94f1afa48206f79f0b620166c9820f847494505d282d1568e2086a1561b0493d2d0a1fa115f9106aef - languageName: node - linkType: hard - -"@web3auth/base-evm-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/base-evm-adapter@npm:7.0.4" - dependencies: - "@web3auth/base": ^7.0.4 - peerDependencies: - "@babel/runtime": ^7.x - checksum: 6ba9f629176c3c07a9180fd059d71ba8a7a57ce57a64aa7fac732e8a99f5cc217445d4ed69e5a03f31b96a877bfaf420c047ac602fc0326e50302139a2162e11 - languageName: node - linkType: hard - -"@web3auth/base-plugin@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/base-plugin@npm:7.0.4" - dependencies: - "@web3auth/base": ^7.0.4 - checksum: 28a4dcb772094380737507b59ce09fa6053ad7a84e13aa57a560cbf0cf45c457408690b95c788a6b8482ed39dcfe04d0b639e19f9040a39c56ea74a0605f0601 - languageName: node - linkType: hard - -"@web3auth/base-provider@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/base-provider@npm:7.0.4" - dependencies: - "@metamask/rpc-errors": ^6.0.0 - "@toruslabs/base-controllers": ^4.2.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@web3auth/base": ^7.0.4 - json-rpc-random-id: ^1.0.1 - peerDependencies: - "@babel/runtime": 7.x - checksum: 7e945943b2f4d4a2a13ed231e4bb846038d60cde364182dedae32a73c62940f67151461f1605fa925e1857bfa9c5582583d3226085962919cc3ec8808830b277 - languageName: node - linkType: hard - -"@web3auth/base-solana-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/base-solana-adapter@npm:7.0.4" - dependencies: - "@web3auth/base": ^7.0.4 - bs58: ^5.0.0 - peerDependencies: - "@babel/runtime": ^7.x - checksum: 72f0abc686392b5bf2b96ae3f5fc271029697e614d76278c93bc85c0e7b747d8a8b345d90a90c277cfccee38d8321a7457fcfae059dfb035bed015b2d47f51e8 - languageName: node - linkType: hard - -"@web3auth/base@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/base@npm:7.0.4" - dependencies: - "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin": ^5.2.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@toruslabs/openlogin-utils": ^5.2.0 - jwt-decode: ^3.1.2 - loglevel: ^1.8.1 - ts-custom-error: ^3.3.1 - peerDependencies: - "@babel/runtime": ^7.x - checksum: b2021a570f007f04b2a0d86287e6d6d1a9b9e15fbb2e366b98fe4568186d45487039636c059aaab33f8739efcc4de1060d13d95a7b862bc516c3559bb8139936 - languageName: node - linkType: hard - -"@web3auth/ethereum-provider@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/ethereum-provider@npm:7.0.4" - dependencies: - "@ethereumjs/common": ^4.0.0 - "@ethereumjs/tx": ^5.0.0 - "@ethereumjs/util": ^9.0.0 - "@metamask/eth-sig-util": ^7.0.0 - "@metamask/rpc-errors": ^6.0.0 - "@toruslabs/base-controllers": ^4.2.0 - "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@walletconnect/legacy-types": 2.0.0 - "@walletconnect/utils": ^2.10.2 - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - assert: ^2.1.0 - bignumber.js: ^9.1.2 - bn.js: ^5.2.1 - jsonschema: ^1.4.1 - peerDependencies: - "@babel/runtime": 7.x - checksum: 9386e0744f743a153a97b9b7ccf7b3205c35d449c5e88ba93c79a0c4aa991d19323099b263b349b979dadeac601e64cc48d5c5c79de4895be530392ca26b0105 - languageName: node - linkType: hard - -"@web3auth/metamask-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/metamask-adapter@npm:7.0.4" - dependencies: - "@metamask/detect-provider": ^2.0.0 - "@web3auth/base": ^7.0.4 - "@web3auth/base-evm-adapter": ^7.0.4 - peerDependencies: - "@babel/runtime": ^7.x - checksum: 0b27d207cee7cf7b1c2fd3111795b57dd263e6f5d201ee604f96075a3f1e5dd6d26863c129dc0bdf96aad1cb087c9d9a23118e3b3287d50b652592e22881da33 + checksum: 1701cce1ee0b5dd051104325877faef99167bd80597a4e3ac9b7474b2caea1285025bc47b82c48cda471ba8724d77c20ca978ee03af8fc5ea1a7a0d284fa79ac languageName: node linkType: hard -"@web3auth/modal@npm:^7.0.4": - version: 7.0.5 - resolution: "@web3auth/modal@npm:7.0.5" +"@walletconnect/window-getters@npm:^1.0.1": + version: 1.0.1 + resolution: "@walletconnect/window-getters@npm:1.0.1" dependencies: - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - "@web3auth/ethereum-provider": ^7.0.4 - "@web3auth/metamask-adapter": ^7.0.4 - "@web3auth/no-modal": ^7.0.4 - "@web3auth/openlogin-adapter": ^7.0.4 - "@web3auth/phantom-adapter": ^7.0.4 - "@web3auth/solana-provider": ^7.0.4 - "@web3auth/torus-evm-adapter": ^7.0.4 - "@web3auth/torus-solana-adapter": ^7.0.4 - "@web3auth/ui": ^7.0.5 - "@web3auth/wallet-connect-v2-adapter": ^7.0.4 - peerDependencies: - "@babel/runtime": 7.x - "@solana/web3.js": ^1.x - checksum: 88134cf7ebd165671359b8ed112f18e97588caec02c615d5581b340ce527ee030119c1291b8ffb0d6d4005f15edbf90f9c8ddd7a467a4db425421c79b085f810 + tslib: 1.14.1 + checksum: fae312c4e1be5574d97f071de58e6aa0d0296869761499caf9d4a9a5fd2643458af32233a2120521b00873a599ff88457d405bd82ced5fb5bd6dc3191c07a3e5 languageName: node linkType: hard -"@web3auth/no-modal@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/no-modal@npm:7.0.4" +"@walletconnect/window-metadata@npm:^1.0.1": + version: 1.0.1 + resolution: "@walletconnect/window-metadata@npm:1.0.1" dependencies: - "@toruslabs/openlogin": ^5.2.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@toruslabs/openlogin-utils": ^5.2.0 - "@web3auth/base": ^7.0.4 - "@web3auth/base-plugin": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - peerDependencies: - "@babel/runtime": ^7.x - checksum: 2217cc8cdf02a92a40a887c6ab15e06ff027f3eb615b8bc01bec668a915bdee259bca9c9c25e83bf0489b60068f48dd2ff3836f9f408cb362261102d703f534b + "@walletconnect/window-getters": ^1.0.1 + tslib: 1.14.1 + checksum: e82aea7195c6fe95c00e87bb38051c5549838c2e8302da94f1afa48206f79f0b620166c9820f847494505d282d1568e2086a1561b0493d2d0a1fa115f9106aef languageName: node linkType: hard -"@web3auth/openlogin-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/openlogin-adapter@npm:7.0.4" +"@web3auth/base-plugin@npm:^7.3.1": + version: 7.3.1 + resolution: "@web3auth/base-plugin@npm:7.3.1" dependencies: - "@toruslabs/openlogin": ^5.2.0 - "@toruslabs/openlogin-utils": ^5.2.0 - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - lodash.merge: ^4.6.2 - peerDependencies: - "@babel/runtime": ^7.x - "@solana/web3.js": ^1.x - checksum: cd919db55d964e6d1a7e447db8a9febacc428b2c5c52ed497d4dee70d7571a398d8a1e28d7fb7262e33495b3dd498c3557f056ea2b8242df08fb39ba5c3a25dd + "@web3auth/base": ^7.3.1 + checksum: 6e2e2c4ce1bf105163057ccd53f0a24cd4b6430aaf929a4d367bc8d8da80c3b34c4de79fa26ae2176dd70eda0937cc5b8a53e9a8a5a419fc0690af8dbfdd7d55 languageName: node linkType: hard -"@web3auth/phantom-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/phantom-adapter@npm:7.0.4" +"@web3auth/base-provider@npm:^7.3.1": + version: 7.3.1 + resolution: "@web3auth/base-provider@npm:7.3.1" dependencies: - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - "@web3auth/base-solana-adapter": ^7.0.4 - "@web3auth/solana-provider": ^7.0.4 - bn.js: ^5.2.1 - peerDependencies: - "@babel/runtime": ^7.x - "@solana/web3.js": ^1.x - checksum: aa5cd85ff3ae4b3226b5c98167fcb824ca6223a45adc20a9b94d91e24bffbac0fbb414dbd56b25c8a6b23a9141e182bb5ddd813095ea9cfdf842c82aa6be356c - languageName: node - linkType: hard - -"@web3auth/solana-provider@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/solana-provider@npm:7.0.4" - dependencies: - "@metamask/rpc-errors": ^6.0.0 - "@toruslabs/base-controllers": ^4.2.0 - "@toruslabs/openlogin-ed25519": ^5.0.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@toruslabs/tweetnacl-js": ^1.0.4 - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - bn.js: ^5.2.1 - bs58: ^5.0.0 + "@metamask/rpc-errors": ^6.1.0 + "@toruslabs/base-controllers": ^4.11.0 + "@toruslabs/openlogin-jrpc": ^6.2.2 + "@web3auth/base": ^7.3.1 json-rpc-random-id: ^1.0.1 peerDependencies: - "@babel/runtime": ^7.x - "@solana/web3.js": ^1.x - checksum: fd197a692f999f0659707bc2409762fbc969a7345e358f5efbec6d4d92b0994085a8800fd0e8b6ec32362ed61d594d8a01c7513c5d4ad02a4ab3bac5a4b970dc - languageName: node - linkType: hard - -"@web3auth/torus-evm-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/torus-evm-adapter@npm:7.0.4" - dependencies: - "@toruslabs/torus-embed": ^4.0.2 - "@web3auth/base": ^7.0.4 - "@web3auth/base-evm-adapter": ^7.0.4 - peerDependencies: - "@babel/runtime": ^7.x - checksum: e8a297d57ee0f3a8e07b546c6b823f132328e3c935a2a93d2a02c67a0845ba35eefcb28de1abe9c015d565564105e4ea8415e53873096157a1251274f4c52090 + "@babel/runtime": 7.x + checksum: 84c42bf4e7d332a218f5c96f9923a5f81cd3a6a185053b8519357a431ff177036bef48a71680556d7bf93b75e1d45931c806baf81fbae9a8a5e45eeffbf1c153 languageName: node linkType: hard -"@web3auth/torus-solana-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/torus-solana-adapter@npm:7.0.4" +"@web3auth/base@npm:^7.3.1": + version: 7.3.1 + resolution: "@web3auth/base@npm:7.3.1" dependencies: - "@toruslabs/solana-embed": ^2.0.0 - "@web3auth/base": ^7.0.4 - "@web3auth/base-provider": ^7.0.4 - "@web3auth/base-solana-adapter": ^7.0.4 - "@web3auth/solana-provider": ^7.0.4 + "@toruslabs/http-helpers": ^6.0.0 + "@toruslabs/openlogin": ^6.2.2 + "@toruslabs/openlogin-jrpc": ^6.2.2 + "@toruslabs/openlogin-utils": ^6.2.2 + jwt-decode: ^4.0.0 + loglevel: ^1.8.1 + ts-custom-error: ^3.3.1 peerDependencies: "@babel/runtime": ^7.x - "@solana/web3.js": ^1.x - checksum: 330ee3bd7913b43f291a177294b79652d87d260419bb9acba19d2a42bcb604f73a58f77927fcb48f8e4ccdbc1b791eada48eb87094d66c48affbbb0155e8c8d3 + checksum: f5da17e47d4fcccdaa632ab929ac4a45efc930a46e78ff32371486bf037df421ac04cffb7d89b86c38ee426bb13ec77a9f48ab8ac3e73b895c9dd3e1ece5c9c9 languageName: node linkType: hard -"@web3auth/ui@npm:^7.0.5": - version: 7.0.5 - resolution: "@web3auth/ui@npm:7.0.5" +"@web3auth/no-modal@npm:^7.3.1": + version: 7.3.1 + resolution: "@web3auth/no-modal@npm:7.3.1" dependencies: - "@toruslabs/http-helpers": ^5.0.0 - "@toruslabs/openlogin": ^5.2.0 - "@toruslabs/openlogin-jrpc": ^5.2.0 - "@toruslabs/openlogin-utils": ^5.2.0 - "@web3auth/base": ^7.0.4 - bowser: ^2.11.0 - classnames: ^2.3.2 - copy-to-clipboard: ^3.3.3 - i18next: ^23.5.1 - lodash.clonedeep: ^4.5.0 - lodash.merge: ^4.6.2 - react-i18next: ^13.2.2 - react-qrcode-logo: ^2.9.0 + "@toruslabs/openlogin": ^6.2.2 + "@toruslabs/openlogin-jrpc": ^6.2.2 + "@toruslabs/openlogin-utils": ^6.2.2 + "@web3auth/base": ^7.3.1 + "@web3auth/base-plugin": ^7.3.1 + "@web3auth/base-provider": ^7.3.1 peerDependencies: "@babel/runtime": ^7.x - react: ^18.x - react-dom: ^18.x - checksum: c77bf39437837f244ba5647427c9de5e5d336245b33ab4ee893c2abe6660563f9126cfa74086bd25a20a685b0ab0ce9e91278e161cbf77c2aeee35f9a12a1530 + checksum: a3d7343658e35a5953829684a8637035dfb57983c6c0d13562715a9cef4d88358966d942ab67d1b2a44a1ebb7e1e028db7a07fe564075dd3eb5b239b0be0d52e languageName: node linkType: hard -"@web3auth/wallet-connect-v2-adapter@npm:^7.0.4": - version: 7.0.4 - resolution: "@web3auth/wallet-connect-v2-adapter@npm:7.0.4" +"@web3auth/openlogin-adapter@npm:^7.3.1": + version: 7.3.1 + resolution: "@web3auth/openlogin-adapter@npm:7.3.1" dependencies: - "@web3auth/base": ^7.0.4 - "@web3auth/base-evm-adapter": ^7.0.4 - "@web3auth/ethereum-provider": ^7.0.4 + "@toruslabs/openlogin": ^6.2.2 + "@toruslabs/openlogin-utils": ^6.2.2 + "@web3auth/base": ^7.3.1 + "@web3auth/base-provider": ^7.3.1 lodash.merge: ^4.6.2 peerDependencies: "@babel/runtime": ^7.x - "@walletconnect/sign-client": ^2.x - "@walletconnect/types": ^2.x - "@walletconnect/utils": ^2.x - checksum: 8ba5418847021b94079840ffd19ae8cdbf864193082d19ac2c17186f917da3a244a3a77207497e7d741f00b2c4a83d05cc7416e248852fce471fd14d13201e92 + "@solana/web3.js": ^1.x + checksum: 38f8bde41dc91173b158ce8660107b852d9deb187a66cffd5195f5fc186bd25e95d4ef6928963ac07ceeccfca44644cb29f71f4a1e68678fbbfdf6b112af1b33 languageName: node linkType: hard @@ -4333,6 +4236,7 @@ __metadata: "@playwright/test": ^1.28.1 "@polkadot/api": ^10.10.1 "@polkadot/extension-dapp": ^0.44.6 + "@polkadot/keyring": ^12.6.2 "@polkadot/ui-keyring": ^2.4.1 "@polkadot/wasm-crypto": ^6.3.1 "@portabletext/react": ^3.0.11 @@ -4354,7 +4258,9 @@ __metadata: "@types/react-dom": ^18.0.11 "@vercel/og": ^0.5.19 "@walletconnect/sign-client": ^2.10.2 - "@web3auth/modal": ^7.0.4 + "@web3auth/base": ^7.3.1 + "@web3auth/no-modal": ^7.3.1 + "@web3auth/openlogin-adapter": ^7.3.1 "@yornaath/batshit": ^0.8.0 "@yornaath/batshit-devtools-react": ^0.5.4 "@zeitgeistpm/augment-api": 3.1.3 @@ -4552,15 +4458,6 @@ __metadata: languageName: node linkType: hard -"agentkeepalive@npm:^4.3.0": - version: 4.5.0 - resolution: "agentkeepalive@npm:4.5.0" - dependencies: - humanize-ms: ^1.2.1 - checksum: 13278cd5b125e51eddd5079f04d6fe0914ac1b8b91c1f3db2c1822f99ac1a7457869068997784342fe455d59daaff22e14fb7b8c3da4e741896e7e31faf92481 - languageName: node - linkType: hard - "aggregate-error@npm:^3.0.0": version: 3.1.0 resolution: "aggregate-error@npm:3.1.0" @@ -4703,19 +4600,6 @@ __metadata: languageName: node linkType: hard -"assert@npm:^2.1.0": - version: 2.1.0 - resolution: "assert@npm:2.1.0" - dependencies: - call-bind: ^1.0.2 - is-nan: ^1.3.2 - object-is: ^1.1.5 - object.assign: ^4.1.4 - util: ^0.12.5 - checksum: 1ed1cabba9abe55f4109b3f7292b4e4f3cf2953aad8dc148c0b3c3bd676675c31b1abb32ef563b7d5a19d1715bf90d1e5f09fad2a4ee655199468902da80f7c2 - languageName: node - linkType: hard - "assertion-error@npm:^1.1.0": version: 1.1.0 resolution: "assertion-error@npm:1.1.0" @@ -4866,22 +4750,6 @@ __metadata: languageName: node linkType: hard -"base-x@npm:^3.0.2": - version: 3.0.9 - resolution: "base-x@npm:3.0.9" - dependencies: - safe-buffer: ^5.0.1 - checksum: 957101d6fd09e1903e846fd8f69fd7e5e3e50254383e61ab667c725866bec54e5ece5ba49ce385128ae48f9ec93a26567d1d5ebb91f4d56ef4a9cc0d5a5481e8 - languageName: node - linkType: hard - -"base-x@npm:^4.0.0": - version: 4.0.0 - resolution: "base-x@npm:4.0.0" - checksum: b25db9e07eb1998472a20557c7f00c797dc0595f79df95155ab74274e7fa98b9f2659b3ee547ac8773666b7f69540656793aeb97ad2b1ceccdb6fa5faaf69ac0 - languageName: node - linkType: hard - "base64-js@npm:0.0.8": version: 0.0.8 resolution: "base64-js@npm:0.0.8" @@ -4903,16 +4771,6 @@ __metadata: languageName: node linkType: hard -"bigint-buffer@npm:^1.1.5": - version: 1.1.5 - resolution: "bigint-buffer@npm:1.1.5" - dependencies: - bindings: ^1.3.0 - node-gyp: latest - checksum: d010c9f57758bcdaccb435d88b483ffcc95fe8bbc6e7fb3a44fb5221f29c894ffaf4a3c5a4a530e0e7d6608203c2cde9b79ee4f2386cd6d4462d1070bc8c9f4e - languageName: node - linkType: hard - "bignumber.js@npm:^9.0.0, bignumber.js@npm:^9.0.1, bignumber.js@npm:^9.1.2": version: 9.1.2 resolution: "bignumber.js@npm:9.1.2" @@ -4927,7 +4785,7 @@ __metadata: languageName: node linkType: hard -"bindings@npm:^1.3.0, bindings@npm:^1.5.0": +"bindings@npm:^1.5.0": version: 1.5.0 resolution: "bindings@npm:1.5.0" dependencies: @@ -5004,7 +4862,7 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.2.0, bn.js@npm:^5.2.1": +"bn.js@npm:^5.2.1": version: 5.2.1 resolution: "bn.js@npm:5.2.1" checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3 @@ -5033,17 +4891,6 @@ __metadata: languageName: node linkType: hard -"borsh@npm:^0.7.0": - version: 0.7.0 - resolution: "borsh@npm:0.7.0" - dependencies: - bn.js: ^5.2.0 - bs58: ^4.0.0 - text-encoding-utf-8: ^1.0.2 - checksum: e98bfb5f7cfb820819c2870b884dac58dd4b4ce6a86c286c8fbf5c9ca582e73a8c6094df67e81a28c418ff07a309c6b118b2e27fdfea83fd92b8100c741da0b5 - languageName: node - linkType: hard - "bowser@npm:^2.11.0": version: 2.11.0 resolution: "bowser@npm:2.11.0" @@ -5114,25 +4961,17 @@ __metadata: languageName: node linkType: hard -"bs58@npm:^4.0.0, bs58@npm:^4.0.1": - version: 4.0.1 - resolution: "bs58@npm:4.0.1" - dependencies: - base-x: ^3.0.2 - checksum: b3c5365bb9e0c561e1a82f1a2d809a1a692059fae016be233a6127ad2f50a6b986467c3a50669ce4c18929dcccb297c5909314dd347a25a68c21b68eb3e95ac2 - languageName: node - linkType: hard - -"bs58@npm:^5.0.0": - version: 5.0.0 - resolution: "bs58@npm:5.0.0" +"buffer@npm:^5.4.3, buffer@npm:^5.5.0, buffer@npm:^5.6.0": + version: 5.7.1 + resolution: "buffer@npm:5.7.1" dependencies: - base-x: ^4.0.0 - checksum: 2475cb0684e07077521aac718e604a13e0f891d58cff923d437a2f7e9e28703ab39fce9f84c7c703ab369815a675f11e3bd394d38643bfe8969fbe42e6833d45 + base64-js: ^1.3.1 + ieee754: ^1.1.13 + checksum: e2cf8429e1c4c7b8cbd30834ac09bd61da46ce35f5c22a78e6c2f04497d6d25541b16881e30a019c6fd3154150650ccee27a308eff3e26229d788bbdeb08ab84 languageName: node linkType: hard -"buffer@npm:6.0.3, buffer@npm:^6.0.1, buffer@npm:^6.0.3, buffer@npm:~6.0.3": +"buffer@npm:^6.0.1, buffer@npm:^6.0.3": version: 6.0.3 resolution: "buffer@npm:6.0.3" dependencies: @@ -5142,16 +4981,6 @@ __metadata: languageName: node linkType: hard -"buffer@npm:^5.4.3, buffer@npm:^5.5.0, buffer@npm:^5.6.0": - version: 5.7.1 - resolution: "buffer@npm:5.7.1" - dependencies: - base64-js: ^1.3.1 - ieee754: ^1.1.13 - checksum: e2cf8429e1c4c7b8cbd30834ac09bd61da46ce35f5c22a78e6c2f04497d6d25541b16881e30a019c6fd3154150650ccee27a308eff3e26229d788bbdeb08ab84 - languageName: node - linkType: hard - "bufferutil@npm:^4.0.1": version: 4.0.8 resolution: "bufferutil@npm:4.0.8" @@ -5368,7 +5197,7 @@ __metadata: languageName: node linkType: hard -"classnames@npm:^2.2.5, classnames@npm:^2.3.2": +"classnames@npm:^2.2.5": version: 2.3.2 resolution: "classnames@npm:2.3.2" checksum: 2c62199789618d95545c872787137262e741f9db13328e216b093eea91c85ef2bfb152c1f9e63027204e2559a006a92eb74147d46c800a9f96297ae1d9f96f4e @@ -5502,7 +5331,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^2.15.0, commander@npm:^2.20.3": +"commander@npm:^2.15.0": version: 2.20.3 resolution: "commander@npm:2.20.3" checksum: ab8c07884e42c3a8dbc5dd9592c606176c7eb5c1ca5ff274bcf907039b2c41de3626f684ea75ccf4d361ba004bbaff1f577d5384c155f3871e456bdf27becf9e @@ -5553,7 +5382,7 @@ __metadata: languageName: node linkType: hard -"copy-to-clipboard@npm:^3.3.1, copy-to-clipboard@npm:^3.3.3": +"copy-to-clipboard@npm:^3.3.1": version: 3.3.3 resolution: "copy-to-clipboard@npm:3.3.3" dependencies: @@ -5604,18 +5433,6 @@ __metadata: languageName: node linkType: hard -"crc@npm:^4.3.2": - version: 4.3.2 - resolution: "crc@npm:4.3.2" - peerDependencies: - buffer: ">=6.0.3" - peerDependenciesMeta: - buffer: - optional: true - checksum: 8231cc25331727083ffd22da3575110fc49b4dc8725de973bd43261d4426aba134ed3a75cc247f7c5e97a6e171f87dffc3325b82890e86d032de2e6bcef09c32 - languageName: node - linkType: hard - "create-require@npm:^1.1.0": version: 1.1.1 resolution: "create-require@npm:1.1.1" @@ -6031,13 +5848,6 @@ __metadata: languageName: node linkType: hard -"delay@npm:^5.0.0": - version: 5.0.0 - resolution: "delay@npm:5.0.0" - checksum: 62f151151ecfde0d9afbb8a6be37a6d103c4cb24f35a20ef3fe56f920b0d0d0bb02bc9c0a3084d0179ef669ca332b91155f2ee4d9854622cd2cdba5fc95285f9 - languageName: node - linkType: hard - "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -6412,22 +6222,6 @@ __metadata: languageName: node linkType: hard -"es6-promise@npm:^4.0.3": - version: 4.2.8 - resolution: "es6-promise@npm:4.2.8" - checksum: 95614a88873611cb9165a85d36afa7268af5c03a378b35ca7bda9508e1d4f1f6f19a788d4bc755b3fd37c8ebba40782018e02034564ff24c9d6fa37e959ad57d - languageName: node - linkType: hard - -"es6-promisify@npm:^5.0.0": - version: 5.0.0 - resolution: "es6-promisify@npm:5.0.0" - dependencies: - es6-promise: ^4.0.3 - checksum: fbed9d791598831413be84a5374eca8c24800ec71a16c1c528c43a98e2dadfb99331483d83ae6094ddb9b87e6f799a15d1553cebf756047e0865c753bc346b92 - languageName: node - linkType: hard - "es6-symbol@npm:^3.1.1, es6-symbol@npm:^3.1.3": version: 3.1.3 resolution: "es6-symbol@npm:3.1.3" @@ -6554,15 +6348,6 @@ __metadata: languageName: node linkType: hard -"eth-rpc-errors@npm:^4.0.3": - version: 4.0.3 - resolution: "eth-rpc-errors@npm:4.0.3" - dependencies: - fast-safe-stringify: ^2.0.6 - checksum: 5fa31d1a10fdb340733b9a55e38e7687222c501052ca20743cef4d0c911a9bbcc0cad54aa6bf3e4b428604c071ff519803060e1cbc79ddb7c9257c11d407d32a - languageName: node - linkType: hard - "ethereum-cryptography@npm:^2.0.0, ethereum-cryptography@npm:^2.1.2": version: 2.1.2 resolution: "ethereum-cryptography@npm:2.1.2" @@ -6575,16 +6360,6 @@ __metadata: languageName: node linkType: hard -"ethjs-util@npm:^0.1.6": - version: 0.1.6 - resolution: "ethjs-util@npm:0.1.6" - dependencies: - is-hex-prefixed: 1.0.0 - strip-hex-prefix: 1.0.0 - checksum: 1f42959e78ec6f49889c49c8a98639e06f52a15966387dd39faf2930db48663d026efb7db2702dcffe7f2a99c4a0144b7ce784efdbf733f4077aae95de76d65f - languageName: node - linkType: hard - "event-source-polyfill@npm:1.0.31": version: 1.0.31 resolution: "event-source-polyfill@npm:1.0.31" @@ -6703,13 +6478,6 @@ __metadata: languageName: node linkType: hard -"eyes@npm:^0.1.8": - version: 0.1.8 - resolution: "eyes@npm:0.1.8" - checksum: c31703a92bf36ba75ee8d379ee7985c24ee6149f3a6175f44cec7a05b178c38bce9836d3ca48c9acb0329a960ac2c4b2ead4e60cdd4fe6e8c92cad7cd6913687 - languageName: node - linkType: hard - "fast-deep-equal@npm:^3.1.3": version: 3.1.3 resolution: "fast-deep-equal@npm:3.1.3" @@ -6765,13 +6533,6 @@ __metadata: languageName: node linkType: hard -"fast-stable-stringify@npm:^1.0.0": - version: 1.0.0 - resolution: "fast-stable-stringify@npm:1.0.0" - checksum: ef1203d246a7e8ac15e2bfbda0a89fa375947bccf9f7910be0ea759856dbe8ea5024a0d8cc2cceabe18a9cb67e95927b78bb6173a3ae37ec55a518cf36e5244b - languageName: node - linkType: hard - "fastq@npm:^1.6.0": version: 1.15.0 resolution: "fastq@npm:1.15.0" @@ -7435,15 +7196,6 @@ __metadata: languageName: node linkType: hard -"html-parse-stringify@npm:^3.0.1": - version: 3.0.1 - resolution: "html-parse-stringify@npm:3.0.1" - dependencies: - void-elements: 3.1.0 - checksum: 334fdebd4b5c355dba8e95284cead6f62bf865a2359da2759b039db58c805646350016d2017875718bc3c4b9bf81a0d11be5ee0cf4774a3a5a7b97cde21cfd67 - languageName: node - linkType: hard - "http-cache-semantics@npm:^4.1.1": version: 4.1.1 resolution: "http-cache-semantics@npm:4.1.1" @@ -7492,15 +7244,6 @@ __metadata: languageName: node linkType: hard -"humanize-ms@npm:^1.2.1": - version: 1.2.1 - resolution: "humanize-ms@npm:1.2.1" - dependencies: - ms: ^2.0.0 - checksum: 9c7a74a2827f9294c009266c82031030eae811ca87b0da3dceb8d6071b9bde22c9f3daef0469c3c533cc67a97d8a167cd9fc0389350e5f415f61a79b171ded16 - languageName: node - linkType: hard - "humanize-string@npm:^2.1.0": version: 2.1.0 resolution: "humanize-string@npm:2.1.0" @@ -7510,15 +7253,6 @@ __metadata: languageName: node linkType: hard -"i18next@npm:^23.5.1": - version: 23.6.0 - resolution: "i18next@npm:23.6.0" - dependencies: - "@babel/runtime": ^7.22.5 - checksum: 0898be75ce56a5901eb9763c8cd941a23cfc24fbe7b32ba0479c08f58c40c1c88c95596430154a6250087ec76d150335144b2cb637ebaa443490b9af7b6e275e - languageName: node - linkType: hard - "iconv-lite@npm:^0.6.2": version: 0.6.3 resolution: "iconv-lite@npm:0.6.3" @@ -8135,13 +7869,6 @@ __metadata: languageName: node linkType: hard -"is-hex-prefixed@npm:1.0.0": - version: 1.0.0 - resolution: "is-hex-prefixed@npm:1.0.0" - checksum: 5ac58e6e528fb029cc43140f6eeb380fad23d0041cc23154b87f7c9a1b728bcf05909974e47248fd0b7fcc11ba33cf7e58d64804883056fabd23e2b898be41de - languageName: node - linkType: hard - "is-ip@npm:^3.1.0": version: 3.1.0 resolution: "is-ip@npm:3.1.0" @@ -8165,16 +7892,6 @@ __metadata: languageName: node linkType: hard -"is-nan@npm:^1.3.2": - version: 1.3.2 - resolution: "is-nan@npm:1.3.2" - dependencies: - call-bind: ^1.0.0 - define-properties: ^1.1.3 - checksum: 5dfadcef6ad12d3029d43643d9800adbba21cf3ce2ec849f734b0e14ee8da4070d82b15fdb35138716d02587c6578225b9a22779cab34888a139cc43e4e3610a - languageName: node - linkType: hard - "is-number-object@npm:^1.0.4": version: 1.0.7 resolution: "is-number-object@npm:1.0.7" @@ -8379,15 +8096,6 @@ __metadata: languageName: node linkType: hard -"isomorphic-ws@npm:^4.0.1": - version: 4.0.1 - resolution: "isomorphic-ws@npm:4.0.1" - peerDependencies: - ws: "*" - checksum: d7190eadefdc28bdb93d67b5f0c603385aaf87724fa2974abb382ac1ec9756ed2cfb27065cbe76122879c2d452e2982bc4314317f3d6c737ddda6c047328771a - languageName: node - linkType: hard - "it-all@npm:^1.0.4, it-all@npm:^1.0.5": version: 1.0.6 resolution: "it-all@npm:1.0.6" @@ -8590,28 +8298,6 @@ __metadata: languageName: node linkType: hard -"jayson@npm:^4.1.0": - version: 4.1.0 - resolution: "jayson@npm:4.1.0" - dependencies: - "@types/connect": ^3.4.33 - "@types/node": ^12.12.54 - "@types/ws": ^7.4.4 - JSONStream: ^1.3.5 - commander: ^2.20.3 - delay: ^5.0.0 - es6-promisify: ^5.0.0 - eyes: ^0.1.8 - isomorphic-ws: ^4.0.1 - json-stringify-safe: ^5.0.1 - uuid: ^8.3.2 - ws: ^7.4.5 - bin: - jayson: bin/jayson.js - checksum: 86464322fbdc6db65d2bb4fc278cb6c86fad5c2a506065490d39459f09ba0d30f2b4fb740b33828a1424791419b6c8bd295dc54d361a4ad959bf70cc62b1ca7e - languageName: node - linkType: hard - "jiti@npm:^1.19.1": version: 1.20.0 resolution: "jiti@npm:1.20.0" @@ -8801,17 +8487,10 @@ __metadata: languageName: node linkType: hard -"jsonschema@npm:^1.4.1": - version: 1.4.1 - resolution: "jsonschema@npm:1.4.1" - checksum: 1ef02a6cd9bc32241ec86bbf1300bdbc3b5f2d8df6eb795517cf7d1cd9909e7beba1e54fdf73990fd66be98a182bda9add9607296b0cb00b1348212988e424b2 - languageName: node - linkType: hard - -"jwt-decode@npm:^3.1.2": - version: 3.1.2 - resolution: "jwt-decode@npm:3.1.2" - checksum: 20a4b072d44ce3479f42d0d2c8d3dabeb353081ba4982e40b83a779f2459a70be26441be6c160bfc8c3c6eadf9f6380a036fbb06ac5406b5674e35d8c4205eeb +"jwt-decode@npm:^4.0.0": + version: 4.0.0 + resolution: "jwt-decode@npm:4.0.0" + checksum: 390e2edcb31a92e86c8cbdd1edeea4c0d62acd371f8a8f0a8878e499390c0ecf4c658b365c4e941e4ef37d0170e4ca650aaa49f99a45c0b9695a235b210154b0 languageName: node linkType: hard @@ -8916,14 +8595,7 @@ __metadata: languageName: node linkType: hard -"lodash.clonedeep@npm:^4.5.0": - version: 4.5.0 - resolution: "lodash.clonedeep@npm:4.5.0" - checksum: 92c46f094b064e876a23c97f57f81fbffd5d760bf2d8a1c61d85db6d1e488c66b0384c943abee4f6af7debf5ad4e4282e74ff83177c9e63d8ff081a4837c3489 - languageName: node - linkType: hard - -"lodash.isequal@npm:4.5.0, lodash.isequal@npm:^4.5.0": +"lodash.isequal@npm:4.5.0": version: 4.5.0 resolution: "lodash.isequal@npm:4.5.0" checksum: da27515dc5230eb1140ba65ff8de3613649620e8656b19a6270afe4866b7bd461d9ba2ac8a48dcc57f7adac4ee80e1de9f965d89d4d81a0ad52bb3eec2609644 @@ -9443,7 +9115,7 @@ __metadata: languageName: node linkType: hard -"ms@npm:^2.0.0, ms@npm:^2.1.1, ms@npm:^2.1.3": +"ms@npm:^2.1.1, ms@npm:^2.1.3": version: 2.1.3 resolution: "ms@npm:2.1.3" checksum: aa92de608021b242401676e35cfa5aa42dd70cbdc082b916da7fb925c542173e36bce97ea3e804923fe92c0ad991434e4a38327e15a1b5b5f945d66df615ae6d @@ -10828,13 +10500,6 @@ __metadata: languageName: node linkType: hard -"qrcode-generator@npm:^1.4.1": - version: 1.4.4 - resolution: "qrcode-generator@npm:1.4.4" - checksum: 860cfdd2a7a608d34e92cab99774cc08182e1911432f30ed36d16f8a5cdabd7fdf40239caed91fa2691cfe66c8d95c1340a2fc9cc439eed07a9f2eb328c6f527 - languageName: node - linkType: hard - "qrcode@npm:^1.5.3": version: 1.5.3 resolution: "qrcode@npm:1.5.3" @@ -11057,24 +10722,6 @@ __metadata: languageName: node linkType: hard -"react-i18next@npm:^13.2.2": - version: 13.3.1 - resolution: "react-i18next@npm:13.3.1" - dependencies: - "@babel/runtime": ^7.22.5 - html-parse-stringify: ^3.0.1 - peerDependencies: - i18next: ">= 23.2.3" - react: ">= 16.8.0" - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - checksum: 71a9ae4968d701aa8c11009389f49548058abb16e96d0e0f4107206fe2dfd2df6c43e44b3209824ea42b8d2aefa8fe5ebc56e019a40947b39c3cb703e5293a87 - languageName: node - linkType: hard - "react-icons@npm:^4.9.0": version: 4.11.0 resolution: "react-icons@npm:4.11.0" @@ -11130,19 +10777,6 @@ __metadata: languageName: node linkType: hard -"react-qrcode-logo@npm:^2.9.0": - version: 2.9.0 - resolution: "react-qrcode-logo@npm:2.9.0" - dependencies: - lodash.isequal: ^4.5.0 - qrcode-generator: ^1.4.1 - peerDependencies: - react: ">=16.4.1" - react-dom: ">=16.4.1" - checksum: 24dbabb24091c13062981da8336e92f1ed2bf576b1eee1fcc8945dc6e4bde94fdec887da8380cbe49fe10bfdeb06eda393f135a15a4ecf13c45472bdfd2510a5 - languageName: node - linkType: hard - "react-quill@npm:^2.0.0": version: 2.0.0 resolution: "react-quill@npm:2.0.0" @@ -11380,6 +11014,19 @@ __metadata: languageName: node linkType: hard +"readable-stream@npm:^4.5.2": + version: 4.5.2 + resolution: "readable-stream@npm:4.5.2" + dependencies: + abort-controller: ^3.0.0 + buffer: ^6.0.3 + events: ^3.3.0 + process: ^0.11.10 + string_decoder: ^1.3.0 + checksum: c4030ccff010b83e4f33289c535f7830190773e274b3fcb6e2541475070bdfd69c98001c3b0cb78763fc00c8b62f514d96c2b10a8bd35d5ce45203a25fa1d33a + languageName: node + linkType: hard + "readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" @@ -11634,25 +11281,6 @@ __metadata: languageName: node linkType: hard -"rpc-websockets@npm:^7.5.1": - version: 7.6.2 - resolution: "rpc-websockets@npm:7.6.2" - dependencies: - "@babel/runtime": ^7.17.2 - bufferutil: ^4.0.1 - eventemitter3: ^4.0.7 - utf-8-validate: ^5.0.2 - uuid: ^8.3.2 - ws: ^8.5.0 - dependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: fa82613df99fd0a19a02f87c002808bc39fc0c040a17decf9ea6710bd22e21db507ac98edc335739ca0636cdf84459eaed69576e2c0c08fc12c65233c981318f - languageName: node - linkType: hard - "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" @@ -12296,15 +11924,6 @@ __metadata: languageName: node linkType: hard -"strip-hex-prefix@npm:1.0.0": - version: 1.0.0 - resolution: "strip-hex-prefix@npm:1.0.0" - dependencies: - is-hex-prefixed: 1.0.0 - checksum: 4cafe7caee1d281d3694d14920fd5d3c11adf09371cef7e2ccedd5b83efd9e9bd2219b5d6ce6e809df6e0f437dc9d30db1192116580875698aad164a6d6b285b - languageName: node - linkType: hard - "strip-indent@npm:^3.0.0": version: 3.0.0 resolution: "strip-indent@npm:3.0.0" @@ -12534,13 +12153,6 @@ __metadata: languageName: node linkType: hard -"text-encoding-utf-8@npm:^1.0.2": - version: 1.0.2 - resolution: "text-encoding-utf-8@npm:1.0.2" - checksum: ec4c15d50e738c5dba7327ad432ebf0725ec75d4d69c0bd55609254c5a3bc5341272d7003691084a0a73d60d981c8eb0e87603676fdb6f3fed60f4c9192309f9 - languageName: node - linkType: hard - "text-hex@npm:1.0.x": version: 1.0.0 resolution: "text-hex@npm:1.0.0" @@ -12842,13 +12454,6 @@ __metadata: languageName: node linkType: hard -"tweetnacl-util@npm:^0.15.1": - version: 0.15.1 - resolution: "tweetnacl-util@npm:0.15.1" - checksum: ae6aa8a52cdd21a95103a4cc10657d6a2040b36c7a6da7b9d3ab811c6750a2d5db77e8c36969e75fdee11f511aa2b91c552496c6e8e989b6e490e54aca2864fc - languageName: node - linkType: hard - "tweetnacl@npm:1.x.x, tweetnacl@npm:^1.0.3": version: 1.0.3 resolution: "tweetnacl@npm:1.0.3" @@ -13138,7 +12743,7 @@ __metadata: languageName: node linkType: hard -"util@npm:^0.12.3, util@npm:^0.12.5": +"util@npm:^0.12.3": version: 0.12.5 resolution: "util@npm:0.12.5" dependencies: @@ -13151,15 +12756,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:^8.3.2": - version: 8.3.2 - resolution: "uuid@npm:8.3.2" - bin: - uuid: dist/bin/uuid - checksum: 5575a8a75c13120e2f10e6ddc801b2c7ed7d8f3c8ac22c7ed0c7b2ba6383ec0abda88c905085d630e251719e0777045ae3236f04c812184b7c765f63a70e58df - languageName: node - linkType: hard - "v8-compile-cache-lib@npm:^3.0.1": version: 3.0.1 resolution: "v8-compile-cache-lib@npm:3.0.1" @@ -13336,13 +12932,6 @@ __metadata: languageName: node linkType: hard -"void-elements@npm:3.1.0": - version: 3.1.0 - resolution: "void-elements@npm:3.1.0" - checksum: 0390f818107fa8fce55bb0a5c3f661056001c1d5a2a48c28d582d4d847347c2ab5b7f8272314cac58acf62345126b6b09bea623a185935f6b1c3bbce0dfd7f7f - languageName: node - linkType: hard - "wait-on@npm:7.0.1": version: 7.0.1 resolution: "wait-on@npm:7.0.1" @@ -13594,7 +13183,7 @@ __metadata: languageName: node linkType: hard -"ws@npm:^7.3.1, ws@npm:^7.4.5, ws@npm:^7.5.1": +"ws@npm:^7.3.1, ws@npm:^7.5.1": version: 7.5.9 resolution: "ws@npm:7.5.9" peerDependencies: @@ -13609,7 +13198,7 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.14.1, ws@npm:^8.5.0, ws@npm:^8.8.1": +"ws@npm:^8.14.1, ws@npm:^8.8.1": version: 8.14.2 resolution: "ws@npm:8.14.2" peerDependencies: