From c395be82b5f038ea9ab010fafa7adbfbdf77f9bd Mon Sep 17 00:00:00 2001 From: Gilbert Date: Sun, 21 Apr 2024 18:02:42 -0500 Subject: [PATCH 1/3] Signup with sdk --- packages/backend/package.json | 2 + packages/backend/src/index.ts | 9 +- packages/backend/src/routes/auth.ts | 8 +- packages/backend/src/server.ts | 51 +- packages/backend/src/utils.ts | 18 +- packages/frontend/.env.example | 2 + packages/frontend/package.json | 15 +- packages/frontend/public/dot-border-line.svg | 3 + packages/frontend/reload-dev.sh | 9 + packages/frontend/src/App.tsx | 34 +- .../frontend/src/components/CloudyFlow.tsx | 218 ++ .../shared/CustomIcon/AppleIcon.tsx | 29 + .../CustomIcon/ArrowRightCircleFilledIcon.tsx | 2 +- .../shared/CustomIcon/GoogleIcon.tsx | 38 + .../components/shared/CustomIcon/KeyIcon.tsx | 80 + .../components/shared/DotBorder/DotBorder.tsx | 19 + .../src/components/shared/DotBorder/index.ts | 1 + .../InlineNotification/InlineNotification.tsx | 3 +- .../src/components/shared/Sidebar/Sidebar.tsx | 7 +- .../src/context/Web3ModalProvider.tsx | 127 - .../frontend/src/context/Web3Provider.tsx | 36 + packages/frontend/src/index.css | 2 + packages/frontend/src/index.tsx | 5 +- packages/frontend/src/layouts/global.css | 6 + packages/frontend/src/pages/AuthPage.tsx | 28 + packages/frontend/src/pages/Login.tsx | 18 - packages/frontend/src/pages/Snow.css | 25 - packages/frontend/src/pages/SnowballLogin.tsx | 17 - .../frontend/src/pages/auth/CreatePasskey.tsx | 83 + packages/frontend/src/pages/auth/Done.tsx | 41 + packages/frontend/src/pages/auth/Login.tsx | 194 ++ packages/frontend/src/pages/auth/SignUp.tsx | 187 ++ .../frontend/src/pages/auth/SnowballAuth.tsx | 52 + packages/frontend/src/utils/siwe.ts | 37 + packages/frontend/src/utils/snowball.ts | 19 - packages/frontend/src/utils/use-snowball.ts | 32 +- packages/frontend/tailwind.config.js | 12 +- yarn.lock | 2099 ++++++++++++++++- 38 files changed, 3240 insertions(+), 328 deletions(-) create mode 100644 packages/frontend/public/dot-border-line.svg create mode 100755 packages/frontend/reload-dev.sh create mode 100644 packages/frontend/src/components/CloudyFlow.tsx create mode 100644 packages/frontend/src/components/shared/CustomIcon/AppleIcon.tsx create mode 100644 packages/frontend/src/components/shared/CustomIcon/GoogleIcon.tsx create mode 100644 packages/frontend/src/components/shared/CustomIcon/KeyIcon.tsx create mode 100644 packages/frontend/src/components/shared/DotBorder/DotBorder.tsx create mode 100644 packages/frontend/src/components/shared/DotBorder/index.ts delete mode 100644 packages/frontend/src/context/Web3ModalProvider.tsx create mode 100644 packages/frontend/src/context/Web3Provider.tsx create mode 100644 packages/frontend/src/layouts/global.css create mode 100644 packages/frontend/src/pages/AuthPage.tsx delete mode 100644 packages/frontend/src/pages/Login.tsx delete mode 100644 packages/frontend/src/pages/Snow.css delete mode 100644 packages/frontend/src/pages/SnowballLogin.tsx create mode 100644 packages/frontend/src/pages/auth/CreatePasskey.tsx create mode 100644 packages/frontend/src/pages/auth/Done.tsx create mode 100644 packages/frontend/src/pages/auth/Login.tsx create mode 100644 packages/frontend/src/pages/auth/SignUp.tsx create mode 100644 packages/frontend/src/pages/auth/SnowballAuth.tsx create mode 100644 packages/frontend/src/utils/siwe.ts delete mode 100644 packages/frontend/src/utils/snowball.ts diff --git a/packages/backend/package.json b/packages/backend/package.json index be7f3372..9aace9c7 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -13,6 +13,7 @@ "@types/semver": "^7.5.8", "apollo-server-core": "^3.13.0", "apollo-server-express": "^3.13.0", + "cookie-session": "^2.1.0", "cors": "^2.8.5", "debug": "^4.3.1", "express": "^4.18.2", @@ -45,6 +46,7 @@ "test:db:delete": "DEBUG=snowball:* ts-node ./test/delete-db.ts" }, "devDependencies": { + "@types/cookie-session": "^2.0.49", "@types/express-session": "^1.17.10", "@types/fs-extra": "^11.0.4", "better-sqlite3": "^9.2.2", diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index 30785d2f..c74cb6e7 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -9,8 +9,6 @@ import { Database } from './database'; import { createAndStartServer } from './server'; import { createResolvers } from './resolvers'; import { getConfig } from './utils'; -import { Config } from './config'; -import { DEFAULT_CONFIG_FILE_PATH } from './constants'; import { Service } from './service'; import { Registry } from './registry'; @@ -18,13 +16,12 @@ const log = debug('snowball:server'); const OAUTH_CLIENT_TYPE = 'oauth-app'; export const main = async (): Promise => { - // TODO: get config path using cli - const { server, database, gitHub, registryConfig, misc } = await getConfig(DEFAULT_CONFIG_FILE_PATH); + const { server, database, gitHub, registryConfig, misc } = await getConfig(); const app = new OAuthApp({ clientType: OAUTH_CLIENT_TYPE, clientId: gitHub.oAuth.clientId, - clientSecret: gitHub.oAuth.clientSecret + clientSecret: gitHub.oAuth.clientSecret, }); const db = new Database(database, misc); @@ -35,7 +32,7 @@ export const main = async (): Promise => { { gitHubConfig: gitHub, registryConfig }, db, app, - registry + registry, ); const typeDefs = fs diff --git a/packages/backend/src/routes/auth.ts b/packages/backend/src/routes/auth.ts index ab326f18..4d2da019 100644 --- a/packages/backend/src/routes/auth.ts +++ b/packages/backend/src/routes/auth.ts @@ -1,16 +1,12 @@ import { Router } from 'express'; -import { SiweMessage, generateNonce } from 'siwe'; +import { SiweMessage } from 'siwe'; const router = Router(); -router.get('/nonce', async (_, res) => { - res.send(generateNonce()); -}); - router.post('/validate', async (req, res) => { const { message, signature } = req.body; const { success, data } = await new SiweMessage(message).verify({ - signature + signature, }); if (success) { diff --git a/packages/backend/src/server.ts b/packages/backend/src/server.ts index 7a4df019..f89aa979 100644 --- a/packages/backend/src/server.ts +++ b/packages/backend/src/server.ts @@ -6,9 +6,9 @@ import { createServer } from 'http'; import { ApolloServerPluginDrainHttpServer, ApolloServerPluginLandingPageLocalDefault, - AuthenticationError + AuthenticationError, } from 'apollo-server-core'; -import session from 'express-session'; +import cookieSession from 'cookie-session'; import { TypeSource } from '@graphql-tools/utils'; import { makeExecutableSchema } from '@graphql-tools/schema'; @@ -32,7 +32,7 @@ export const createAndStartServer = async ( serverConfig: ServerConfig, typeDefs: TypeSource, resolvers: any, - service: Service + service: Service, ): Promise => { const { host, port, gqlPath = DEFAULT_GQL_PATH } = serverConfig; const { appOriginUrl, secret, domain, trustProxy } = serverConfig.session; @@ -45,7 +45,7 @@ export const createAndStartServer = async ( // Create the schema const schema = makeExecutableSchema({ typeDefs, - resolvers + resolvers, }); const server = new ApolloServer({ @@ -68,32 +68,18 @@ export const createAndStartServer = async ( plugins: [ // Proper shutdown for the HTTP server ApolloServerPluginDrainHttpServer({ httpServer }), - ApolloServerPluginLandingPageLocalDefault({ embed: true }) - ] + ApolloServerPluginLandingPageLocalDefault({ embed: true }), + ], }); await server.start(); - app.use(cors({ - origin: appOriginUrl, - credentials: true - })); - - const sessionOptions: session.SessionOptions = { - secret: secret, - resave: false, - saveUninitialized: true, - cookie: { - secure: new URL(appOriginUrl).protocol === 'https:', - // TODO: Set cookie maxAge and handle cookie expiry in frontend - // maxAge: SESSION_COOKIE_MAX_AGE, - sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax' - } - }; - - if (domain) { - sessionOptions.cookie!.domain = domain; - } + app.use( + cors({ + origin: appOriginUrl, + credentials: true, + }), + ); if (trustProxy) { // trust first proxy @@ -101,7 +87,14 @@ export const createAndStartServer = async ( } app.use( - session(sessionOptions) + cookieSession({ + secret: secret, + secure: new URL(appOriginUrl).protocol === 'https:', + // 23 hours (less than 24 hours to avoid sessionSigs expiration issues) + maxAge: 23 * 60 * 60 * 1000, + sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax', + domain: domain || undefined, + }), ); server.applyMiddleware({ @@ -109,8 +102,8 @@ export const createAndStartServer = async ( path: gqlPath, cors: { origin: [appOriginUrl], - credentials: true - } + credentials: true, + }, }); app.use(express.json()); diff --git a/packages/backend/src/utils.ts b/packages/backend/src/utils.ts index 8d2a8e8b..eafc698b 100644 --- a/packages/backend/src/utils.ts +++ b/packages/backend/src/utils.ts @@ -3,11 +3,18 @@ import path from 'path'; import toml from 'toml'; import debug from 'debug'; import { DataSource, DeepPartial, EntityTarget, ObjectLiteral } from 'typeorm'; +import { Config } from './config'; +import { DEFAULT_CONFIG_FILE_PATH } from './constants'; const log = debug('snowball:utils'); -export const getConfig = async ( - configFile: string +export async function getConfig() { + // TODO: get config path using cli + return await _getConfig(DEFAULT_CONFIG_FILE_PATH); +} + +const _getConfig = async ( + configFile: string, ): Promise => { const configFilePath = path.resolve(configFile); const fileExists = await fs.pathExists(configFilePath); @@ -41,7 +48,7 @@ export const loadAndSaveData = async ( entityType: EntityTarget, dataSource: DataSource, entities: any, - relations?: any | undefined + relations?: any | undefined, ): Promise => { const entityRepository = dataSource.getRepository(entityType); @@ -56,7 +63,7 @@ export const loadAndSaveData = async ( entity = { ...entity, - [field]: relations[field][entityData[valueIndex]] + [field]: relations[field][entityData[valueIndex]], }; } } @@ -67,4 +74,5 @@ export const loadAndSaveData = async ( return savedEntity; }; -export const sleep = async (ms: number): Promise => new Promise(resolve => setTimeout(resolve, ms)); +export const sleep = async (ms: number): Promise => + new Promise((resolve) => setTimeout(resolve, ms)); diff --git a/packages/frontend/.env.example b/packages/frontend/.env.example index c1424c02..e733834a 100644 --- a/packages/frontend/.env.example +++ b/packages/frontend/.env.example @@ -8,4 +8,6 @@ VITE_WALLET_CONNECT_ID= VITE_LIT_RELAY_API_KEY= +VITE_ALCHEMY_API_KEY= + LOCAL_SNOWBALL_SDK_DIR= diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 65eb6fec..84bca501 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -21,15 +21,18 @@ "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-tooltip": "^1.0.7", + "@snowballtools/auth": "0.1.0", + "@snowballtools/auth-lit": "0.1.0", + "@snowballtools/js-sdk": "0.1.0", + "@snowballtools/link-lit-alchemy-light": "0.1.0", "@snowballtools/material-tailwind-react-fork": "^2.1.10", + "@snowballtools/smartwallet-alchemy-light": "0.1.0", + "@snowballtools/types": "0.1.0", + "@snowballtools/utils": "0.1.0", "@tanstack/react-query": "^5.22.2", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", - "@types/jest": "^27.5.2", - "@types/node": "^16.18.68", - "@types/react": "^18.2.77", - "@types/react-dom": "^18.2.17", "@walletconnect/ethereum-provider": "^2.12.2", "@web3modal/siwe": "^4.0.5", "@web3modal/wagmi": "^4.0.5", @@ -57,14 +60,18 @@ "siwe": "^2.1.4", "tailwind-variants": "^0.2.0", "usehooks-ts": "^2.15.1", + "uuid": "^9.0.1", "viem": "^2.7.11", "wagmi": "^2.5.7", "web-vitals": "^2.1.4" }, "devDependencies": { + "@types/jest": "^27.5.2", "@types/luxon": "^3.3.7", + "@types/node": "^16.18.68", "@types/react": "^18.2.66", "@types/react-dom": "^18.2.22", + "@types/uuid": "^9.0.8", "@vitejs/plugin-react": "^4.2.1", "autoprefixer": "^10.4.19", "postcss": "^8.4.38", diff --git a/packages/frontend/public/dot-border-line.svg b/packages/frontend/public/dot-border-line.svg new file mode 100644 index 00000000..a028e284 --- /dev/null +++ b/packages/frontend/public/dot-border-line.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/frontend/reload-dev.sh b/packages/frontend/reload-dev.sh new file mode 100755 index 00000000..95bfa440 --- /dev/null +++ b/packages/frontend/reload-dev.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +(cd /Users/rabbit-m2/p/snowball/snowball-ts-sdk && NO_CLEAN=1 turbo build) + +(cd ../.. && ./scripts/yarn-file-for-local-dev.sh) + +rm -rf node_modules/.vite + +yarn dev diff --git a/packages/frontend/src/App.tsx b/packages/frontend/src/App.tsx index ed427bcb..50533798 100644 --- a/packages/frontend/src/App.tsx +++ b/packages/frontend/src/App.tsx @@ -8,8 +8,10 @@ import { } from './pages/org-slug/projects/routes'; import ProjectSearchLayout from './layouts/ProjectSearch'; import Index from './pages'; -import Login from './pages/Login'; +import AuthPage from './pages/AuthPage'; import { DashboardLayout } from './pages/org-slug/layout'; +import { useEffect } from 'react'; +import Web3Provider from 'context/Web3Provider'; const router = createBrowserRouter([ { @@ -45,12 +47,38 @@ const router = createBrowserRouter([ }, { path: '/login', - element: , + element: , + }, + { + path: '/signup', + element: , }, ]); function App() { - return ; + // Hacky way of checking session + // TODO: Handle redirect backs + useEffect(() => { + fetch(`${import.meta.env.VITE_SERVER_URL}/auth/session`, { + credentials: 'include', + }).then((res) => { + if (res.status !== 200) { + localStorage.clear(); + if ( + window.location.pathname !== '/login' && + window.location.pathname !== '/signup' + ) { + window.location.pathname = '/login'; + } + } + }); + }, []); + + return ( + + ; + + ); } export default App; diff --git a/packages/frontend/src/components/CloudyFlow.tsx b/packages/frontend/src/components/CloudyFlow.tsx new file mode 100644 index 00000000..fb34990a --- /dev/null +++ b/packages/frontend/src/components/CloudyFlow.tsx @@ -0,0 +1,218 @@ +import React from 'react'; +type Props = React.PropsWithChildren<{ + className?: string; + snowZIndex?: number; +}>; + +export const CloudyFlow = ({ className, children, snowZIndex }: Props) => { + return ( +
+ {children} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ); +}; diff --git a/packages/frontend/src/components/shared/CustomIcon/AppleIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/AppleIcon.tsx new file mode 100644 index 00000000..edbcf430 --- /dev/null +++ b/packages/frontend/src/components/shared/CustomIcon/AppleIcon.tsx @@ -0,0 +1,29 @@ +import { CustomIcon, CustomIconProps } from './CustomIcon'; + +export const AppleIcon: React.FC = (props) => { + return ( + + + + + + + + + + + ); +}; diff --git a/packages/frontend/src/components/shared/CustomIcon/ArrowRightCircleFilledIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/ArrowRightCircleFilledIcon.tsx index 842f2f3b..3782a9d2 100644 --- a/packages/frontend/src/components/shared/CustomIcon/ArrowRightCircleFilledIcon.tsx +++ b/packages/frontend/src/components/shared/CustomIcon/ArrowRightCircleFilledIcon.tsx @@ -3,11 +3,11 @@ import { CustomIcon, CustomIconProps } from './CustomIcon'; export const ArrowRightCircleFilledIcon = (props: CustomIconProps) => { return ( = (props) => { + return ( + + + + + + + ); +}; diff --git a/packages/frontend/src/components/shared/CustomIcon/KeyIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/KeyIcon.tsx new file mode 100644 index 00000000..eceb71db --- /dev/null +++ b/packages/frontend/src/components/shared/CustomIcon/KeyIcon.tsx @@ -0,0 +1,80 @@ +import { CustomIcon, CustomIconProps } from './CustomIcon'; + +export const KeyIcon = (props: CustomIconProps) => { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/packages/frontend/src/components/shared/DotBorder/DotBorder.tsx b/packages/frontend/src/components/shared/DotBorder/DotBorder.tsx new file mode 100644 index 00000000..cb8922cb --- /dev/null +++ b/packages/frontend/src/components/shared/DotBorder/DotBorder.tsx @@ -0,0 +1,19 @@ +import { ComponentPropsWithoutRef } from 'react'; +import { cn } from 'utils/classnames'; + +export interface DotBorderProps extends ComponentPropsWithoutRef<'div'> {} + +export const DotBorder = ({ className, ...props }: DotBorderProps) => { + const imageSrc = '/dot-border-line.svg'; + + return ( +
+
+
+ ); +}; diff --git a/packages/frontend/src/components/shared/DotBorder/index.ts b/packages/frontend/src/components/shared/DotBorder/index.ts new file mode 100644 index 00000000..fdef3775 --- /dev/null +++ b/packages/frontend/src/components/shared/DotBorder/index.ts @@ -0,0 +1 @@ +export * from './DotBorder'; diff --git a/packages/frontend/src/components/shared/InlineNotification/InlineNotification.tsx b/packages/frontend/src/components/shared/InlineNotification/InlineNotification.tsx index f24a4cfc..f331d342 100644 --- a/packages/frontend/src/components/shared/InlineNotification/InlineNotification.tsx +++ b/packages/frontend/src/components/shared/InlineNotification/InlineNotification.tsx @@ -52,7 +52,8 @@ export const InlineNotification = ({ // Render custom icon or default icon const renderIcon = useCallback(() => { - if (!icon) return ; + if (!icon) + return ; return cloneIcon(icon, { className: iconClass() }); }, [icon]); diff --git a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx index 63c47f8a..d7dc4aaa 100644 --- a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx +++ b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx @@ -85,8 +85,13 @@ export const Sidebar = ({ mobileOpen }: SidebarProps) => { )); }, [orgSlug]); - const handleLogOut = useCallback(() => { + const handleLogOut = useCallback(async () => { + await fetch(`${import.meta.env.VITE_SERVER_URL}/auth/logout`, { + method: 'POST', + credentials: 'include', + }); disconnect(); + localStorage.clear(); navigate('/login'); }, [disconnect, navigate]); diff --git a/packages/frontend/src/context/Web3ModalProvider.tsx b/packages/frontend/src/context/Web3ModalProvider.tsx deleted file mode 100644 index 51512ca0..00000000 --- a/packages/frontend/src/context/Web3ModalProvider.tsx +++ /dev/null @@ -1,127 +0,0 @@ -import { ReactNode } from 'react'; -import { SiweMessage } from 'siwe'; -import { WagmiProvider } from 'wagmi'; -import { arbitrum, mainnet } from 'wagmi/chains'; -import axios from 'axios'; - -import { createWeb3Modal } from '@web3modal/wagmi/react'; -import { defaultWagmiConfig } from '@web3modal/wagmi/react/config'; -import { createSIWEConfig } from '@web3modal/siwe'; -import type { - SIWECreateMessageArgs, - SIWEVerifyMessageArgs, -} from '@web3modal/siwe'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; - -const queryClient = new QueryClient(); - -const axiosInstance = axios.create({ - baseURL: import.meta.env.VITE_SERVER_URL, - headers: { - 'Content-Type': 'application/json', - 'Access-Control-Allow-Origin': '*', - }, - withCredentials: true, -}); - -const metadata = { - name: 'Snowball Tools', - description: 'Snowball Tools Dashboard', - url: window.location.origin, - icons: [ - 'https://raw.githubusercontent.com/snowball-tools/mediakit/main/assets/logo.svg', - ], -}; - -const chains = [mainnet, arbitrum] as const; -const config = defaultWagmiConfig({ - chains, - projectId: import.meta.env.VITE_WALLET_CONNECT_ID, - metadata, -}); - -const siweConfig = createSIWEConfig({ - createMessage: ({ nonce, address, chainId }: SIWECreateMessageArgs) => - new SiweMessage({ - version: '1', - domain: window.location.host, - uri: window.location.origin, - address, - chainId, - nonce, - // Human-readable ASCII assertion that the user will sign, and it must not contain `\n`. - statement: 'Sign in With Ethereum.', - }).prepareMessage(), - getNonce: async () => { - const nonce = (await axiosInstance.get('/auth/nonce')).data; - if (!nonce) { - throw new Error('Failed to get nonce!'); - } - - return nonce; - }, - getSession: async () => { - try { - const session = (await axiosInstance.get('/auth/session')).data; - const { address, chainId } = session; - - return { address, chainId }; - } catch (err) { - if (window.location.pathname !== '/login') { - window.location.href = '/login'; - } - - throw new Error('Failed to get session!'); - } - }, - verifyMessage: async ({ message, signature }: SIWEVerifyMessageArgs) => { - try { - const { success } = ( - await axiosInstance.post('/auth/validate', { - message, - signature, - }) - ).data; - - return success; - } catch (error) { - return false; - } - }, - signOut: async () => { - try { - const { success } = (await axiosInstance.post('/auth/logout')).data; - return success; - } catch (error) { - return false; - } - }, - onSignOut: () => { - window.location.href = '/login'; - }, - onSignIn: () => { - window.location.href = '/'; - }, -}); - -if (!import.meta.env.VITE_WALLET_CONNECT_ID) { - throw new Error('Error: REACT_APP_WALLET_CONNECT_ID env config is not set'); -} - -createWeb3Modal({ - siweConfig, - wagmiConfig: config, - projectId: import.meta.env.VITE_WALLET_CONNECT_ID, -}); - -export default function Web3ModalProvider({ - children, -}: { - children: ReactNode; -}) { - return ( - - {children} - - ); -} diff --git a/packages/frontend/src/context/Web3Provider.tsx b/packages/frontend/src/context/Web3Provider.tsx new file mode 100644 index 00000000..bfe7eed8 --- /dev/null +++ b/packages/frontend/src/context/Web3Provider.tsx @@ -0,0 +1,36 @@ +import { ReactNode } from 'react'; +import { WagmiProvider } from 'wagmi'; +import { arbitrum, mainnet } from 'wagmi/chains'; + +import { defaultWagmiConfig } from '@web3modal/wagmi/react/config'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +const queryClient = new QueryClient(); + +const metadata = { + name: 'Snowball Tools', + description: 'Snowball Tools Dashboard', + url: window.location.origin, + icons: [ + 'https://raw.githubusercontent.com/snowball-tools/mediakit/main/assets/logo.svg', + ], +}; + +const chains = [mainnet, arbitrum] as const; +const config = defaultWagmiConfig({ + chains, + projectId: import.meta.env.VITE_WALLET_CONNECT_ID, + metadata, +}); + +if (!import.meta.env.VITE_WALLET_CONNECT_ID) { + throw new Error('Error: REACT_APP_WALLET_CONNECT_ID env config is not set'); +} + +export default function Web3Provider({ children }: { children: ReactNode }) { + return ( + + {children} + + ); +} diff --git a/packages/frontend/src/index.css b/packages/frontend/src/index.css index 541fb61e..d2bf535e 100644 --- a/packages/frontend/src/index.css +++ b/packages/frontend/src/index.css @@ -1,7 +1,9 @@ +@import 'layouts/global.css'; @tailwind base; @tailwind components; @tailwind utilities; + @layer base { @font-face { font-family: 'Inter Display'; diff --git a/packages/frontend/src/index.tsx b/packages/frontend/src/index.tsx index 8dcaa1ce..43d476b5 100644 --- a/packages/frontend/src/index.tsx +++ b/packages/frontend/src/index.tsx @@ -13,7 +13,6 @@ import reportWebVitals from './reportWebVitals'; import { GQLClientProvider } from './context/GQLClientContext'; import { SERVER_GQL_PATH } from './constants'; import { Toaster } from 'components/shared/Toast'; -import Web3ModalProvider from './context/Web3ModalProvider'; const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement, ); @@ -30,9 +29,7 @@ root.render( - - - + diff --git a/packages/frontend/src/layouts/global.css b/packages/frontend/src/layouts/global.css new file mode 100644 index 00000000..1075299b --- /dev/null +++ b/packages/frontend/src/layouts/global.css @@ -0,0 +1,6 @@ +.flex-center { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} diff --git a/packages/frontend/src/pages/AuthPage.tsx b/packages/frontend/src/pages/AuthPage.tsx new file mode 100644 index 00000000..68bb3a4b --- /dev/null +++ b/packages/frontend/src/pages/AuthPage.tsx @@ -0,0 +1,28 @@ +import { CloudyFlow } from 'components/CloudyFlow'; +import { SnowballAuth } from './auth/SnowballAuth'; + +const AuthPage = () => { + return ( + +
+
+ snowball logo +
+ Snowball +
+
+
+
+
+ +
+
+
+ ); +}; + +export default AuthPage; diff --git a/packages/frontend/src/pages/Login.tsx b/packages/frontend/src/pages/Login.tsx deleted file mode 100644 index 69faf41b..00000000 --- a/packages/frontend/src/pages/Login.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import './Snow.css'; - -const Login = () => { - return ( -
-
- snowball logo - -
-
- ); -}; - -export default Login; diff --git a/packages/frontend/src/pages/Snow.css b/packages/frontend/src/pages/Snow.css deleted file mode 100644 index 8359e58d..00000000 --- a/packages/frontend/src/pages/Snow.css +++ /dev/null @@ -1,25 +0,0 @@ -.snow { - width: 100%; - height: 100vh; - border: 1px solid rgba(255, 255, 255, 0.1); - background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 50' style='enable-background:new 0 0 50 50%3B' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st1%7Bopacity:0.3%3Bfill:%23FFFFFF%3B%7D.st3%7Bopacity:0.1%3Bfill:%23FFFFFF%3B%7D%3C/style%3E%3Ccircle class='st1' cx='5' cy='8' r='1'/%3E%3Ccircle class='st1' cx='38' cy='3' r='1'/%3E%3Ccircle class='st1' cx='12' cy='4' r='1'/%3E%3Ccircle class='st1' cx='16' cy='16' r='1'/%3E%3Ccircle class='st1' cx='47' cy='46' r='1'/%3E%3Ccircle class='st1' cx='32' cy='10' r='1'/%3E%3Ccircle class='st1' cx='3' cy='46' r='1'/%3E%3Ccircle class='st1' cx='45' cy='13' r='1'/%3E%3Ccircle class='st1' cx='10' cy='28' r='1'/%3E%3Ccircle class='st1' cx='22' cy='35' r='1'/%3E%3Ccircle class='st1' cx='3' cy='21' r='1'/%3E%3Ccircle class='st1' cx='26' cy='20' r='1'/%3E%3Ccircle class='st1' cx='30' cy='45' r='1'/%3E%3Ccircle class='st1' cx='15' cy='45' r='1'/%3E%3Ccircle class='st1' cx='34' cy='36' r='1'/%3E%3Ccircle class='st1' cx='41' cy='32' r='1'/%3E%3C/svg%3E"); - background-position: 0px 0px; - animation: animatedBackground 230s linear infinite; -} - -.snow div { - width: 100%; - height: 100%; - background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 50 50' style='enable-background:new 0 0 50 50%3B' xml:space='preserve'%3E%3Cstyle type='text/css'%3E.st1%7Bopacity:0.7%3Bfill:%23FFFFFF%3B%7D.st3%7Bopacity:0.1%3Bfill:%23FFFFFF%3B%7D%3C/style%3E%3Ccircle class='st3' cx='4' cy='14' r='1'/%3E%3Ccircle class='st3' cx='43' cy='3' r='1'/%3E%3Ccircle class='st3' cx='31' cy='30' r='2'/%3E%3Ccircle class='st3' cx='19' cy='23' r='1'/%3E%3Ccircle class='st3' cx='37' cy='22' r='1'/%3E%3Ccircle class='st3' cx='43' cy='16' r='1'/%3E%3Ccircle class='st3' cx='8' cy='45' r='1'/%3E%3Ccircle class='st3' cx='29' cy='39' r='1'/%3E%3Ccircle class='st3' cx='13' cy='37' r='1'/%3E%3Ccircle class='st3' cx='47' cy='32' r='1'/%3E%3Ccircle class='st3' cx='15' cy='4' r='2'/%3E%3Ccircle class='st3' cx='9' cy='27' r='1'/%3E%3Ccircle class='st3' cx='30' cy='9' r='1'/%3E%3Ccircle class='st3' cx='25' cy='15' r='1'/%3E%3Ccircle class='st3' cx='21' cy='45' r='2'/%3E%3Ccircle class='st3' cx='42' cy='45' r='1'/%3E%3C/svg%3E"); - background-position: 0px 0px; - animation: animatedBackground 260s linear infinite; -} - -@keyframes animatedBackground { - 0% { - background-position: 0 0; - } - 100% { - background-position: 0px 11600px; - } -} diff --git a/packages/frontend/src/pages/SnowballLogin.tsx b/packages/frontend/src/pages/SnowballLogin.tsx deleted file mode 100644 index 828f9fc4..00000000 --- a/packages/frontend/src/pages/SnowballLogin.tsx +++ /dev/null @@ -1,17 +0,0 @@ -// import { useSnowball } from 'utils/use-snowball'; - -// export const SnowballLogin = () => { -// const snowball = useSnowball(); -// console.log(snowball); -// return ( -//
-//
-// snowball logo -//
-//
-// ); -// }; diff --git a/packages/frontend/src/pages/auth/CreatePasskey.tsx b/packages/frontend/src/pages/auth/CreatePasskey.tsx new file mode 100644 index 00000000..b976f973 --- /dev/null +++ b/packages/frontend/src/pages/auth/CreatePasskey.tsx @@ -0,0 +1,83 @@ +import { Button } from 'components/shared/Button'; +import { LoaderIcon } from 'components/shared/CustomIcon'; +import { KeyIcon } from 'components/shared/CustomIcon/KeyIcon'; +import { InlineNotification } from 'components/shared/InlineNotification'; +import { Input } from 'components/shared/Input'; +import { WavyBorder } from 'components/shared/WavyBorder'; +import { useState } from 'react'; +import { IconRight } from 'react-day-picker'; +import { useSnowball } from 'utils/use-snowball'; + +type Props = { + onDone: () => void; +}; + +export const CreatePasskey = ({}: Props) => { + const snowball = useSnowball(); + const [name, setName] = useState(''); + + const auth = snowball.auth.passkey; + const loading = !!auth.state.loading; + + async function createPasskey() { + await auth.register(name); + } + + return ( +
+
+
+ +
+
+
+ Create a passkey +
+
+ Passkeys allow you to sign in securely without using passwords. +
+
+
+ +
+
+
+
+
+ Give it a name +
+
+ { + setName(e.target.value); + }} + /> +
+ + {auth.state.error ? ( + + ) : ( + + )} +
+ +
+
+ ); +}; diff --git a/packages/frontend/src/pages/auth/Done.tsx b/packages/frontend/src/pages/auth/Done.tsx new file mode 100644 index 00000000..ab63b12f --- /dev/null +++ b/packages/frontend/src/pages/auth/Done.tsx @@ -0,0 +1,41 @@ +import { Button } from 'components/shared/Button'; +import { + ArrowRightCircleFilledIcon, + CheckRoundFilledIcon, +} from 'components/shared/CustomIcon'; +import { WavyBorder } from 'components/shared/WavyBorder'; + +type Props = { + continueTo: string; +}; +export const Done = ({ continueTo }: Props) => { + return ( +
+
+
+ +
+
+
+ You're in! +
+
+ It's time to get your next project rolling! +
+
+
+ +
+ +
+
+ ); +}; diff --git a/packages/frontend/src/pages/auth/Login.tsx b/packages/frontend/src/pages/auth/Login.tsx new file mode 100644 index 00000000..8b95143d --- /dev/null +++ b/packages/frontend/src/pages/auth/Login.tsx @@ -0,0 +1,194 @@ +import { Button } from 'components/shared/Button'; +import { + ArrowRightCircleFilledIcon, + GithubIcon, + LinkIcon, + LoaderIcon, + QuestionMarkRoundFilledIcon, +} from 'components/shared/CustomIcon'; +import { GoogleIcon } from 'components/shared/CustomIcon/GoogleIcon'; +import { DotBorder } from 'components/shared/DotBorder'; +import { WavyBorder } from 'components/shared/WavyBorder'; +import { useState } from 'react'; +import { CreatePasskey } from './CreatePasskey'; +import { AppleIcon } from 'components/shared/CustomIcon/AppleIcon'; +import { KeyIcon } from 'components/shared/CustomIcon/KeyIcon'; +import { useToast } from 'components/shared/Toast'; +import { Link } from 'react-router-dom'; + +type Provider = 'google' | 'github' | 'apple' | 'email' | 'passkey'; + +type Props = { + onDone: () => void; +}; + +export const Login = ({ onDone }: Props) => { + const [provider, setProvider] = useState(false); + + // const loading = snowball.auth.state.loading && provider; + const loading = provider; + const { toast } = useToast(); + + if (provider === 'email') { + return ; + } + + return ( +
+
+
+ Sign in to Snowball +
+
+ + +
+
+
+ +
+
+ Got a Passkey? +
+
+ Use it to sign in securely without using a password. +
+
+
+
+ + +
+ +
+
+ Lost your passkey? +
+
+ + +
+
+
+ +
+ +
+ OR +
+ +
+ +
+ + + + + +
+
+
+ Don't have an account? +
+
+ + Sign up now + +
+
+
+
+ ); +}; diff --git a/packages/frontend/src/pages/auth/SignUp.tsx b/packages/frontend/src/pages/auth/SignUp.tsx new file mode 100644 index 00000000..a9ac9588 --- /dev/null +++ b/packages/frontend/src/pages/auth/SignUp.tsx @@ -0,0 +1,187 @@ +import { Button } from 'components/shared/Button'; +import { + ArrowRightCircleFilledIcon, + GithubIcon, + LoaderIcon, +} from 'components/shared/CustomIcon'; +import { GoogleIcon } from 'components/shared/CustomIcon/GoogleIcon'; +import { DotBorder } from 'components/shared/DotBorder'; +import { WavyBorder } from 'components/shared/WavyBorder'; +import { useEffect, useState } from 'react'; +import { useSnowball } from 'utils/use-snowball'; +import { CreatePasskey } from './CreatePasskey'; +import { Input } from 'components/shared/Input'; +import { AppleIcon } from 'components/shared/CustomIcon/AppleIcon'; +import { Link } from 'react-router-dom'; +import { useToast } from 'components/shared/Toast'; +import { PKPEthersWallet } from '@lit-protocol/pkp-ethers'; +import { signInWithEthereum } from 'utils/siwe'; + +type Provider = 'google' | 'github' | 'apple' | 'email'; + +type Props = { + onDone: () => void; +}; + +export const SignUp = ({ onDone }: Props) => { + const [email, setEmail] = useState(''); + const [provider, setProvider] = useState(false); + + const { toast } = useToast(); + const snowball = useSnowball(); + + async function handleSignupRedirect() { + let wallet: PKPEthersWallet | undefined; + const google = snowball.auth.google; + if (google.canHandleOAuthRedirectBack()) { + setProvider('google'); + await google.handleOAuthRedirectBack(); + wallet = await google.getEthersWallet(); + await signInWithEthereum(wallet); + } + + if (wallet) { + onDone(); + } + } + + useEffect(() => { + handleSignupRedirect(); + }, []); + + const loading = provider; + const emailValid = /.@./.test(email); + + if (provider === 'email') { + return ; + } + + return ( +
+
+
+ Sign up to Snowball +
+
+ +
+
+ + + + + +
+ +
+ +
+ OR +
+ +
+ +
+
+
+ Email +
+ setEmail(e.target.value)} + disabled={!!loading} + /> +
+ + +
+
+ Already an user? +
+
+ + Sign in now + +
+
+
+
+
+ ); +}; diff --git a/packages/frontend/src/pages/auth/SnowballAuth.tsx b/packages/frontend/src/pages/auth/SnowballAuth.tsx new file mode 100644 index 00000000..69cb7987 --- /dev/null +++ b/packages/frontend/src/pages/auth/SnowballAuth.tsx @@ -0,0 +1,52 @@ +import { snowball } from 'utils/use-snowball'; +import { Login } from './Login'; +import { SignUp } from './SignUp'; +import { useEffect, useState } from 'react'; +import { Done } from './Done'; + +type Screen = 'login' | 'signup' | 'success'; + +const DASHBOARD_URL = '/'; + +export const SnowballAuth = () => { + const path = window.location.pathname; + const [screen, setScreen] = useState( + path === '/login' ? 'login' : 'signup', + ); + + useEffect(() => { + if (snowball.session) { + window.location.href = DASHBOARD_URL; + } + }, []); + + useEffect(() => { + if (path === '/login') { + setScreen('login'); + } else if (path === '/signup') { + setScreen('signup'); + } + }, [path]); + + if (screen === 'signup') { + return ( + { + setScreen('success'); + }} + /> + ); + } + if (screen === 'login') { + return ( + { + setScreen('success'); + }} + /> + ); + } + if (screen === 'success') { + return ; + } +}; diff --git a/packages/frontend/src/utils/siwe.ts b/packages/frontend/src/utils/siwe.ts new file mode 100644 index 00000000..b66e436c --- /dev/null +++ b/packages/frontend/src/utils/siwe.ts @@ -0,0 +1,37 @@ +import { SiweMessage } from 'siwe'; +import { PKPEthersWallet } from '@lit-protocol/pkp-ethers'; +import { v4 as uuid } from 'uuid'; + +const domain = window.location.host; +const origin = window.location.origin; + +export async function signInWithEthereum(wallet: PKPEthersWallet) { + const message = await createSiweMessage( + await wallet.getAddress(), + 'Sign in with Ethereum to the app.', + ); + const signature = await wallet.signMessage(message); + + const res = await fetch(`${import.meta.env.VITE_SERVER_URL}/auth/validate`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ message, signature }), + credentials: 'include', + }); + console.log(await res.text()); +} + +async function createSiweMessage(address: string, statement: string) { + const message = new SiweMessage({ + domain, + address, + statement, + uri: origin, + version: '1', + chainId: 1, + nonce: uuid().replace(/[^a-z0-9]/g, ''), + }); + return message.prepareMessage(); +} diff --git a/packages/frontend/src/utils/snowball.ts b/packages/frontend/src/utils/snowball.ts deleted file mode 100644 index c17731f8..00000000 --- a/packages/frontend/src/utils/snowball.ts +++ /dev/null @@ -1,19 +0,0 @@ -// import { LitGoogleAuth } from '@snowballtools/auth-lit'; -// import { Snowball, SnowballChain } from '@snowballtools/js-sdk'; -// // import { LinkLitAlchemyLight } from '@snowballtools/link-lit-alchemy-light'; - -// export const DOMAIN = import.meta.env.VITE_DOMAIN || 'localhost'; -// export const ORIGIN = -// import.meta.env.VITE_VERCEL_ENV === 'production' -// ? `https://${DOMAIN}` -// : `http://${DOMAIN}:3000`; - -// // prettier-ignore - -// export const snowball = Snowball.withAuth( -// LitGoogleAuth.configure({ -// litReplayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, -// }), -// ).create({ -// initialChain: SnowballChain.sepolia, -// }); diff --git a/packages/frontend/src/utils/use-snowball.ts b/packages/frontend/src/utils/use-snowball.ts index 6657a3b2..45e174b7 100644 --- a/packages/frontend/src/utils/use-snowball.ts +++ b/packages/frontend/src/utils/use-snowball.ts @@ -1,13 +1,25 @@ -// import { useEffect, useState } from 'react'; -// import { snowball } from './snowball'; +import { useEffect, useState } from 'react'; +import { Snowball, SnowballChain } from '@snowballtools/js-sdk'; +import { LitGoogleAuth, LitPasskeyAuth } from '@snowballtools/auth-lit'; -// export function useSnowball() { -// const [state, setState] = useState(100); +export const snowball = Snowball.withAuth({ + google: LitGoogleAuth.configure({ + litRelayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, + }), + passkey: LitPasskeyAuth.configure({ + litRelayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, + }), +}).create({ + initialChain: SnowballChain.sepolia, +}); -// useEffect(() => { -// // Subscribe and directly return the unsubscribe function -// return snowball.subscribe(() => setState(state + 1)); -// }, [snowball]); +export function useSnowball() { + const [state, setState] = useState(100); -// return snowball; -// } + useEffect(() => { + // Subscribe and directly return the unsubscribe function + return snowball.subscribe(() => setState(state + 1)); + }, [state]); + + return snowball; +} diff --git a/packages/frontend/tailwind.config.js b/packages/frontend/tailwind.config.js index 608f5b6b..15e99e8a 100644 --- a/packages/frontend/tailwind.config.js +++ b/packages/frontend/tailwind.config.js @@ -1,4 +1,5 @@ import withMT from '@snowballtools/material-tailwind-react-fork/utils/withMT'; +import colors from 'tailwindcss/colors' /** @type {import('tailwindcss').Config} */ export default withMT({ @@ -9,7 +10,11 @@ export default withMT({ ], theme: { extend: { - zIndex: { + screens: { + xxs: '400px', + xs: '480px', + }, + zIndex: { tooltip: '52', }, letterSpacing: { @@ -25,6 +30,8 @@ export default withMT({ '3xs': '0.5rem', }, colors: { + sky: colors.sky, // TODO: WHy is this necessary? We're already using tailwind v3 + slate: colors.slate, // TODO: WHy is this necessary? We're already using tailwind v3 emerald: { 100: '#d1fae5', 200: '#a9f1d0', @@ -173,6 +180,9 @@ export default withMT({ zIndex: { toast: '9999', }, + animation: { + 'spin': 'spin 3s linear infinite', + } }, }, plugins: [], diff --git a/yarn.lock b/yarn.lock index 069d780c..baa23f4b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,6 +12,46 @@ resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7" integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q== +"@adraffy/ens-normalize@1.10.1": + version "1.10.1" + resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" + integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== + +"@alchemy/aa-accounts@^3.6.1", "@alchemy/aa-accounts@^3.8.1": + version "3.8.1" + resolved "https://registry.yarnpkg.com/@alchemy/aa-accounts/-/aa-accounts-3.8.1.tgz#290e290b7047d8d29deb2b5959abaf839786f553" + integrity sha512-MoBbn+LTNBZIQTWlx0HIbXROJ9AcWhG0EOcbRMq0B+714/GogliJ5R/rUwQktxy+SfQa9K4Sh7q3kXFUgmFIdA== + dependencies: + "@alchemy/aa-core" "^3.8.1" + viem "2.8.6" + +"@alchemy/aa-alchemy@^3.6.1": + version "3.8.1" + resolved "https://registry.yarnpkg.com/@alchemy/aa-alchemy/-/aa-alchemy-3.8.1.tgz#05b76657d871d98f426fe3eb365f5e0b349eed37" + integrity sha512-EmE3g7nN74v6+u8EUonHDJDDRbI6XsPpXYaSBNJsf9erjnw001z1+2GnUZdqa4NFJlJGdCboxX1sM5RJFO2IXA== + dependencies: + "@alchemy/aa-core" "^3.8.1" + "@turnkey/http" "^2.6.2" + "@turnkey/iframe-stamper" "^1.0.0" + "@turnkey/viem" "^0.4.8" + "@turnkey/webauthn-stamper" "^0.4.3" + eventemitter3 "^5.0.1" + viem "2.8.6" + zustand "^4.5.2" + optionalDependencies: + "@alchemy/aa-accounts" "^3.8.1" + alchemy-sdk "^3.0.0" + +"@alchemy/aa-core@^3.6.1", "@alchemy/aa-core@^3.8.1": + version "3.8.1" + resolved "https://registry.yarnpkg.com/@alchemy/aa-core/-/aa-core-3.8.1.tgz#5c961fbb0f342ed54a1af0329b81172144e52530" + integrity sha512-ilcIAG3OheJ3pm+0djZRcYXgNebZw8w/VBo0gcfu2B6V5cUnF0PPUYmj1ORR1ZxwQrP1Gnnl9TM3Bv+c4U25GQ== + dependencies: + abitype "^0.8.3" + eventemitter3 "^5.0.1" + viem "2.8.6" + zod "^3.22.4" + "@alloc/quick-lru@^5.2.0": version "5.2.0" resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" @@ -153,6 +193,11 @@ dependencies: xss "^1.0.8" +"@assemblyscript/loader@^0.9.4": + version "0.9.4" + resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.9.4.tgz#a483c54c1253656bb33babd464e3154a173e1577" + integrity sha512-HazVq9zwTVwGmqdwYzu7WyQ6FQVZ7SwET0KKQuKm55jD0IfUpZgN0OPIiZG3zV1iSrVYcN0bdwLRXI/VNCYsUA== + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.1", "@babel/code-frame@^7.24.2": version "7.24.2" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" @@ -419,6 +464,14 @@ preact "^10.16.0" sha.js "^2.4.11" +"@confio/ics23@^0.6.8": + version "0.6.8" + resolved "https://registry.yarnpkg.com/@confio/ics23/-/ics23-0.6.8.tgz#2a6b4f1f2b7b20a35d9a0745bb5a446e72930b3d" + integrity sha512-wB6uo+3A50m0sW/EWcU64xpV/8wShZ6bMTa7pF8eYsTrSkQA7oLUIJcs/wb8g4y2Oyq701BaGiO6n/ak5WXO1w== + dependencies: + "@noble/hashes" "^1.0.0" + protobufjs "^6.8.8" + "@cosmjs/amino@0.28.13", "@cosmjs/amino@^0.28.1": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.28.13.tgz#b51417a23c1ff8ef8b85a6862eba8492c6c44f38" @@ -429,6 +482,16 @@ "@cosmjs/math" "0.28.13" "@cosmjs/utils" "0.28.13" +"@cosmjs/amino@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.30.1.tgz#7c18c14627361ba6c88e3495700ceea1f76baace" + integrity sha512-yNHnzmvAlkETDYIpeCTdVqgvrdt1qgkOXwuRVi8s27UKI5hfqyE9fJ/fuunXE6ZZPnKkjIecDznmuUOMrMvw4w== + dependencies: + "@cosmjs/crypto" "^0.30.1" + "@cosmjs/encoding" "^0.30.1" + "@cosmjs/math" "^0.30.1" + "@cosmjs/utils" "^0.30.1" + "@cosmjs/crypto@0.28.13", "@cosmjs/crypto@^0.28.1": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.28.13.tgz#541b6a36f616b2da5a568ead46d4e83841ceb412" @@ -442,6 +505,19 @@ elliptic "^6.5.3" libsodium-wrappers "^0.7.6" +"@cosmjs/crypto@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.30.1.tgz#21e94d5ca8f8ded16eee1389d2639cb5c43c3eb5" + integrity sha512-rAljUlake3MSXs9xAm87mu34GfBLN0h/1uPPV6jEwClWjNkAMotzjC0ab9MARy5FFAvYHL3lWb57bhkbt2GtzQ== + dependencies: + "@cosmjs/encoding" "^0.30.1" + "@cosmjs/math" "^0.30.1" + "@cosmjs/utils" "^0.30.1" + "@noble/hashes" "^1" + bn.js "^5.2.0" + elliptic "^6.5.4" + libsodium-wrappers "^0.7.6" + "@cosmjs/encoding@0.28.13", "@cosmjs/encoding@^0.28.1": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.28.13.tgz#7994e8e2c435beaf0690296ffb0f7f3eaec8150b" @@ -451,6 +527,23 @@ bech32 "^1.1.4" readonly-date "^1.0.0" +"@cosmjs/encoding@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.30.1.tgz#b5c4e0ef7ceb1f2753688eb96400ed70f35c6058" + integrity sha512-rXmrTbgqwihORwJ3xYhIgQFfMSrwLu1s43RIK9I8EBudPx3KmnmyAKzMOVsRDo9edLFNuZ9GIvysUCwQfq3WlQ== + dependencies: + base64-js "^1.3.0" + bech32 "^1.1.4" + readonly-date "^1.0.0" + +"@cosmjs/json-rpc@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.30.1.tgz#16f21305fc167598c8a23a45549b85106b2372bc" + integrity sha512-pitfC/2YN9t+kXZCbNuyrZ6M8abnCC2n62m+JtU9vQUfaEtVsgy+1Fk4TRQ175+pIWSdBMFi2wT8FWVEE4RhxQ== + dependencies: + "@cosmjs/stream" "^0.30.1" + xstream "^11.14.0" + "@cosmjs/math@0.28.13": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.28.13.tgz#50c05bc67007a04216f7f5e0c93f57270f8cc077" @@ -458,6 +551,13 @@ dependencies: bn.js "^5.2.0" +"@cosmjs/math@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.30.1.tgz#8b816ef4de5d3afa66cb9fdfb5df2357a7845b8a" + integrity sha512-yaoeI23pin9ZiPHIisa6qqLngfnBR/25tSaWpkTm8Cy10MX70UF5oN4+/t1heLaM6SSmRrhk3psRkV4+7mH51Q== + dependencies: + bn.js "^5.2.0" + "@cosmjs/proto-signing@^0.28.13": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.28.13.tgz#95ac12f0da0f0814f348f5ae996c3e96d015df61" @@ -471,11 +571,80 @@ cosmjs-types "^0.4.0" long "^4.0.0" +"@cosmjs/proto-signing@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.30.1.tgz#f0dda372488df9cd2677150b89b3e9c72b3cb713" + integrity sha512-tXh8pPYXV4aiJVhTKHGyeZekjj+K9s2KKojMB93Gcob2DxUjfKapFYBMJSgfKPuWUPEmyr8Q9km2hplI38ILgQ== + dependencies: + "@cosmjs/amino" "^0.30.1" + "@cosmjs/crypto" "^0.30.1" + "@cosmjs/encoding" "^0.30.1" + "@cosmjs/math" "^0.30.1" + "@cosmjs/utils" "^0.30.1" + cosmjs-types "^0.7.1" + long "^4.0.0" + +"@cosmjs/socket@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.30.1.tgz#00b22f4b5e2ab01f4d82ccdb7b2e59536bfe5ce0" + integrity sha512-r6MpDL+9N+qOS/D5VaxnPaMJ3flwQ36G+vPvYJsXArj93BjgyFB7BwWwXCQDzZ+23cfChPUfhbINOenr8N2Kow== + dependencies: + "@cosmjs/stream" "^0.30.1" + isomorphic-ws "^4.0.1" + ws "^7" + xstream "^11.14.0" + +"@cosmjs/stargate@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.30.1.tgz#e1b22e1226cffc6e93914a410755f1f61057ba04" + integrity sha512-RdbYKZCGOH8gWebO7r6WvNnQMxHrNXInY/gPHPzMjbQF6UatA6fNM2G2tdgS5j5u7FTqlCI10stNXrknaNdzog== + dependencies: + "@confio/ics23" "^0.6.8" + "@cosmjs/amino" "^0.30.1" + "@cosmjs/encoding" "^0.30.1" + "@cosmjs/math" "^0.30.1" + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stream" "^0.30.1" + "@cosmjs/tendermint-rpc" "^0.30.1" + "@cosmjs/utils" "^0.30.1" + cosmjs-types "^0.7.1" + long "^4.0.0" + protobufjs "~6.11.3" + xstream "^11.14.0" + +"@cosmjs/stream@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.30.1.tgz#ba038a2aaf41343696b1e6e759d8e03a9516ec1a" + integrity sha512-Fg0pWz1zXQdoxQZpdHRMGvUH5RqS6tPv+j9Eh7Q953UjMlrwZVo0YFLC8OTf/HKVf10E4i0u6aM8D69Q6cNkgQ== + dependencies: + xstream "^11.14.0" + +"@cosmjs/tendermint-rpc@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.30.1.tgz#c16378892ba1ac63f72803fdf7567eab9d4f0aa0" + integrity sha512-Z3nCwhXSbPZJ++v85zHObeUggrEHVfm1u18ZRwXxFE9ZMl5mXTybnwYhczuYOl7KRskgwlB+rID0WYACxj4wdQ== + dependencies: + "@cosmjs/crypto" "^0.30.1" + "@cosmjs/encoding" "^0.30.1" + "@cosmjs/json-rpc" "^0.30.1" + "@cosmjs/math" "^0.30.1" + "@cosmjs/socket" "^0.30.1" + "@cosmjs/stream" "^0.30.1" + "@cosmjs/utils" "^0.30.1" + axios "^0.21.2" + readonly-date "^1.0.0" + xstream "^11.14.0" + "@cosmjs/utils@0.28.13": version "0.28.13" resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.28.13.tgz#2fd2844ec832d7833811e2ae1691305d09791a08" integrity sha512-dVeMBiyg+46x7XBZEfJK8yTihphbCFpjVYmLJVqmTsHfJwymQ65cpyW/C+V/LgWARGK8hWQ/aX9HM5Ao8QmMSg== +"@cosmjs/utils@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.30.1.tgz#6d92582341be3c2ec8d82090253cfa4b7f959edb" + integrity sha512-KvvX58MGMWh7xA+N+deCfunkA/ZNDvFLw4YbOmX3f/XBIkqrVY7qlotfy2aNb1kgp6h4B6Yc8YawJPDTfvWX7g== + "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -867,7 +1036,7 @@ "@ethereumjs/util" "^8.1.0" ethereum-cryptography "^2.0.0" -"@ethereumjs/util@^8.1.0": +"@ethereumjs/util@^8.0.0", "@ethereumjs/util@^8.1.0": version "8.1.0" resolved "https://registry.yarnpkg.com/@ethereumjs/util/-/util-8.1.0.tgz#299df97fb6b034e0577ce9f94c7d9d1004409ed4" integrity sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA== @@ -964,7 +1133,7 @@ dependencies: "@ethersproject/bignumber" "^5.7.0" -"@ethersproject/contracts@5.7.0": +"@ethersproject/contracts@5.7.0", "@ethersproject/contracts@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e" integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg== @@ -1067,7 +1236,7 @@ dependencies: "@ethersproject/logger" "^5.7.0" -"@ethersproject/providers@5.7.2": +"@ethersproject/providers@5.7.2", "@ethersproject/providers@^5.7.0": version "5.7.2" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== @@ -1166,7 +1335,7 @@ "@ethersproject/rlp" "^5.7.0" "@ethersproject/signing-key" "^5.7.0" -"@ethersproject/units@5.7.0": +"@ethersproject/units@5.7.0", "@ethersproject/units@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg== @@ -1175,7 +1344,7 @@ "@ethersproject/constants" "^5.7.0" "@ethersproject/logger" "^5.7.0" -"@ethersproject/wallet@5.7.0": +"@ethersproject/wallet@5.7.0", "@ethersproject/wallet@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d" integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA== @@ -1421,7 +1590,15 @@ resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== -"@ipld/dag-cbor@^7.0.1": +"@ipld/dag-cbor@^6.0.3": + version "6.0.15" + resolved "https://registry.yarnpkg.com/@ipld/dag-cbor/-/dag-cbor-6.0.15.tgz#aebe7a26c391cae98c32faedb681b1519e3d2372" + integrity sha512-Vm3VTSTwlmGV92a3C5aeY+r2A18zbH2amehNhsX8PBa3muXICaWrN8Uri85A5hLH7D7ElhE8PdjxD6kNqUmTZA== + dependencies: + cborg "^1.5.4" + multiformats "^9.5.4" + +"@ipld/dag-cbor@^7.0.0", "@ipld/dag-cbor@^7.0.1": version "7.0.3" resolved "https://registry.yarnpkg.com/@ipld/dag-cbor/-/dag-cbor-7.0.3.tgz#aa31b28afb11a807c3d627828a344e5521ac4a1e" integrity sha512-1VVh2huHsuohdXC1bGJNE8WR72slZ9XE2T3wbBBq31dm7ZBatmKLLxrB+XAqafxfRFjv08RZmj/W/ZqaM13AuA== @@ -1429,7 +1606,7 @@ cborg "^1.6.0" multiformats "^9.5.4" -"@ipld/dag-json@^8.0.9": +"@ipld/dag-json@^8.0.1", "@ipld/dag-json@^8.0.9": version "8.0.11" resolved "https://registry.yarnpkg.com/@ipld/dag-json/-/dag-json-8.0.11.tgz#8d30cc2dfacb0aef04d327465d3df91e79e8b6ce" integrity sha512-Pea7JXeYHTWXRTIhBqBlhw7G53PJ7yta3G/sizGEZyzdeEwhZRr0od5IQ0r2ZxOt1Do+2czddjeEPp+YTxDwCA== @@ -1437,6 +1614,20 @@ cborg "^1.5.4" multiformats "^9.5.4" +"@ipld/dag-pb@^2.1.3": + version "2.1.18" + resolved "https://registry.yarnpkg.com/@ipld/dag-pb/-/dag-pb-2.1.18.tgz#12d63e21580e87c75fd1a2c62e375a78e355c16f" + integrity sha512-ZBnf2fuX9y3KccADURG5vb9FaOeMjFkCrNysB0PtftME/4iCTjxfaLoNq/IAh5fTqUOMXvryN6Jyka4ZGuMLIg== + dependencies: + multiformats "^9.5.4" + +"@ipld/dag-pb@^4.0.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@ipld/dag-pb/-/dag-pb-4.1.0.tgz#4ebec92eeb9e8f317b8ef971221c6dac7b12b302" + integrity sha512-LJU451Drqs5zjFm7jI4Hs3kHlilOqkjcSfPiQgVsZnWaYb2C7YdfhnclrVn/X+ucKejlU9BL3+gXFCZUXkMuCg== + dependencies: + multiformats "^13.1.0" + "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -1595,6 +1786,523 @@ resolved "https://registry.yarnpkg.com/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz#353ce4a76c83fadec272ea5674ede767650762fd" integrity sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g== +"@lit-protocol/access-control-conditions@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/access-control-conditions/-/access-control-conditions-3.0.32.tgz#e21c4e55327adcd2c7537ae30e733c0db30b5e33" + integrity sha512-m8xKM7Nh8WkXq7dWsJsjUEkMnbEo/iPDAX3kvZkPRoeo3RZ9abOBedfMsBIjx9R4hj/poyfC7TSGhstvoesGGQ== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/auth-browser@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/auth-browser/-/auth-browser-3.0.32.tgz#8c03645394fab27afd9fbe93a3adab70bed43a50" + integrity sha512-aY2BYZJJZQLZczM/WRcUbB5J54SXh4wn+P2+L9VpQTlKkshjgNLLeYOv705Y0uVaK1r9b2wTVjaMzZJPMZ4qXw== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + "@walletconnect/ethereum-provider" "2.9.2" + "@walletconnect/modal" "2.6.1" + ethers "^5.7.1" + jszip "^3.10.1" + lit-siwe "^1.1.8" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + tweetnacl "^1.0.3" + tweetnacl-util "^0.13.3" + uint8arrays "^4.0.3" + util "^0.12.4" + web-vitals "^3.0.4" + +"@lit-protocol/auth-helpers@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/auth-helpers/-/auth-helpers-3.0.32.tgz#1879796afee55e8c23950c9a10f2ca8bed5e1a89" + integrity sha512-QSnApvcDMkxSpRy6P46RSeCJcOJ05JC8WW++VeFkQbzRKcYU8lfkF39Xi6/I1h9sv2LFHrfbT7fY7ijPF7IjWA== + dependencies: + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + +"@lit-protocol/bls-sdk@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/bls-sdk/-/bls-sdk-3.0.32.tgz#53fee54b2d17363b92cc5f901a473c07f35ad58e" + integrity sha512-8wDcmMmeFA6YuxGn4wNCTrkTPyEBJ8qSXsXJCMHkuglwVgrI2rOK26PK/k++0mf1+i4C2TzKeF9V8GJagb/o3w== + dependencies: + pako "^2.1.0" + tslib "^2.3.0" + +"@lit-protocol/constants@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/constants/-/constants-3.0.32.tgz#c41bd2bc0b583bed747fcf518a9c712fde7174a3" + integrity sha512-hSna3+qRGuS9Hg6VrUnBUrLH+PZQINBQAEIwq2xQzWR234H1za1g9PNMibgjCfwcV2j9f6tiJgYoPAp4n0O21w== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/types" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + +"@lit-protocol/contracts-sdk@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/contracts-sdk/-/contracts-sdk-3.0.32.tgz#3254b128feb67e75f61ff180f66131ba12e47511" + integrity sha512-uqmTXQeele9HOWvu7ozQb7RvFjJxpDiQJOtqie17AR5O3J9DR6uASsr80uDP5zdlPnoouXnk22KNmsBsgvNo8g== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/types" "3.0.32" + bitcoinjs-lib "^6.1.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + jose "^4.14.4" + jszip "^3.10.1" + multiformats "^9.7.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/core@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/core/-/core-3.0.32.tgz#55a5834fa8c3dd3c5c03d3468146989d90c2edd2" + integrity sha512-YrtOJhTr7amaPE2CX5n7zgrKTF0opjS432YKQ8gyAwXUmlEyoNOBiGIa+HFLPgmw/AntQYV89zomjzx3hVgM7g== + dependencies: + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + bitcoinjs-lib "^6.1.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + jose "^4.14.4" + jszip "^3.10.1" + multiformats "^10.0.2" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/crypto@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/crypto/-/crypto-3.0.32.tgz#5febca628798fd49a002d5e4a43c8acb8f9e127d" + integrity sha512-Me7I2VVMg+dL0Q0x2Cqw6KTnYotRqGGNBuS/pay2kooI4UkheCz6ZnTt9eCtN7JF2pBIe0o/IFAzh1SFzSEZBQ== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/ecdsa-sdk@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/ecdsa-sdk/-/ecdsa-sdk-3.0.32.tgz#9ebac8ecfc275a6f2149fd56b1e13b3e8ed3bb7e" + integrity sha512-zuyE8ui+rIpM0MyoY5cPq9I+wQfxEouaRmbDplybaJc12UKWmnLDQCSQ4mPnZTs8FC5785Qfxj5VAe5CLQ+yEw== + dependencies: + pako "^2.1.0" + tslib "^2.3.0" + +"@lit-protocol/encryption@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/encryption/-/encryption-3.0.32.tgz#b167df877bd8e0778104c1767998a4c8491fa731" + integrity sha512-YMx3MQotn0cr26LcVNTLIPdl5xENP97TcsPsoXCaH7ArIOKXvmhqH3PbxfhyU9i/TTzCshDE18b0P9Od6oAwDQ== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + jszip "^3.10.1" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/lit-auth-client@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/lit-auth-client/-/lit-auth-client-3.0.32.tgz#223a498c4b109558583f4ffa1dadf418a3fbd89a" + integrity sha512-McEMljGVEHsiMSI2hzqjrv3B4vX4VSEcTPwMKzKC1k6w43Hi/0GsU1Q0RGtaqIkNyvs/m+BeMR43lOKWn9LDAg== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-browser" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/core" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/encryption" "3.0.32" + "@lit-protocol/lit-node-client" "3.0.32" + "@lit-protocol/lit-node-client-nodejs" "3.0.32" + "@lit-protocol/lit-third-party-libs" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + "@simplewebauthn/browser" "^7.2.0" + "@simplewebauthn/typescript-types" "^7.0.0" + "@walletconnect/ethereum-provider" "2.9.2" + "@walletconnect/modal" "2.6.1" + base64url "^3.0.1" + bitcoinjs-lib "^6.1.0" + blockstore-core "^3.0.0" + bs58 "^5.0.0" + cbor-web "^9.0.1" + date-and-time "^2.4.1" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + ipfs-unixfs-importer "^12.0.0" + jose "^4.14.4" + jszip "^3.10.1" + lit-siwe "^1.1.8" + multiformats "^10.0.2" + nanoid "3.3.4" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + uint8arrays "^4.0.3" + +"@lit-protocol/lit-node-client-nodejs@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/lit-node-client-nodejs/-/lit-node-client-nodejs-3.0.32.tgz#0627b094d1d7de8370da4ade0bd5ecab7894feae" + integrity sha512-vivyz7SFHBpWk0j0teTEy+lxGYEftHecJRNPcEagBW2pmyMCQBL4XrwFBNH+k9aaCo1Zx4Q9WnVH0H78otcuLg== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/core" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/encryption" "3.0.32" + "@lit-protocol/lit-third-party-libs" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + bitcoinjs-lib "^6.1.0" + blockstore-core "^3.0.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + ipfs-unixfs-importer "^12.0.0" + jose "^4.14.4" + jszip "^3.10.1" + lit-siwe "^1.1.8" + multiformats "^10.0.2" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/lit-node-client@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/lit-node-client/-/lit-node-client-3.0.32.tgz#84e8f1da5f10a8ba5a377d1421a045fd5830a1c4" + integrity sha512-YAlMvhHq2d1vdHNVbqho8pqzEWY2MtsFOMGHVG11711oLal1fyFDr4iGJ5KnxxvK6+In2Amv65jQVSr1wlkdVQ== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-browser" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/core" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/encryption" "3.0.32" + "@lit-protocol/lit-node-client-nodejs" "3.0.32" + "@lit-protocol/lit-third-party-libs" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + "@walletconnect/ethereum-provider" "2.9.2" + "@walletconnect/modal" "2.6.1" + bitcoinjs-lib "^6.1.0" + blockstore-core "^3.0.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + ipfs-unixfs-importer "^12.0.0" + jose "^4.14.4" + jszip "^3.10.1" + lit-siwe "^1.1.8" + multiformats "^10.0.2" + node-fetch "^2.6.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + uint8arrays "^4.0.3" + +"@lit-protocol/lit-third-party-libs@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/lit-third-party-libs/-/lit-third-party-libs-3.0.32.tgz#6813976bdf245df24431cd55065389fb739efe09" + integrity sha512-FtxJtuYLSKV6sesRA+GthEa/VrrEQag+oFM26mWu569SCBnsbMxaz2IJ3telpXKR8FXkaiIYXgsdkyEPj9KyNQ== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + blockstore-core "^3.0.0" + ipfs-unixfs-importer "^12.0.0" + tslib "^2.3.0" + +"@lit-protocol/logger@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/logger/-/logger-3.0.32.tgz#081ff6ac421cd3ab3bc993bb1c4b3c75b6deac50" + integrity sha512-18Vi6vbbenDMRhDGQTJolVG4rnhl5NQzplC327XYEkNN8lGR8bxbx9ajSC71anB5/XYtHy57yotMtvZTPK0uWg== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/types" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/misc-browser@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/misc-browser/-/misc-browser-3.0.32.tgz#3b38d2caf2286372ccce5a52d493c20b1579c652" + integrity sha512-r7YsHO+HOA1pvpMHJ3mptTDYSGizNyitqRSgk1vGoufk4jAsnXkGQS3HGfhcP0PADEWhiIo/tGVa9DSPlN58Sw== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + +"@lit-protocol/misc@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/misc/-/misc-3.0.32.tgz#80eb73665c80e7eae88bc3e8519a0c6a7e5d2c26" + integrity sha512-zH7Xr729/k6Yr8PqR0LWMro++C3guidvL1ukseht98gymVMwavKVmQg0+USDkXugzY6fKBIMzonOF4j5TK7zuw== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/types" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + uint8arrays "^4.0.3" + +"@lit-protocol/nacl@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/nacl/-/nacl-3.0.32.tgz#3b936c5bc8c45cc81f10d58e5a5aa69b271b66c2" + integrity sha512-LqIbqWlDVwqrhSpTdb60rvLQ1p3P5PI96N+8WfXPtdTVIOJLJFvKsqbwv5Atzkn3PaUURCWkmpIafEHxEmGIqg== + dependencies: + tslib "^2.3.0" + +"@lit-protocol/pkp-base@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/pkp-base/-/pkp-base-3.0.32.tgz#e89d8cb73de5dfb1ea11aae9d7def9f8350f339e" + integrity sha512-oBEs4mfYnRdsoctT+YOMGjU+07VvPM6C0XBnM1/w7XHnVcGWXv5Q0HVp/+mVNmqH8pDhYAA9R64IUEpsP8UcNQ== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-browser" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/core" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/encryption" "3.0.32" + "@lit-protocol/lit-node-client" "3.0.32" + "@lit-protocol/lit-node-client-nodejs" "3.0.32" + "@lit-protocol/lit-third-party-libs" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + "@walletconnect/ethereum-provider" "2.9.2" + "@walletconnect/modal" "2.6.1" + bitcoinjs-lib "^6.1.0" + blockstore-core "^3.0.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + ipfs-unixfs-importer "^12.0.0" + jose "^4.14.4" + jszip "^3.10.1" + lit-siwe "^1.1.8" + multiformats "^10.0.2" + node-fetch "^2.6.1" + secp256k1 "^5.0.0" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + uint8arrays "^4.0.3" + +"@lit-protocol/pkp-ethers@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/pkp-ethers/-/pkp-ethers-3.0.32.tgz#6dbbf6637a3a56c3749131443ad7fb0e377d314f" + integrity sha512-1CNwPZzv9RWkpjbElOJ/FNECO/6T2/rL9wPO3uCXPnpqvfWCe3gY+mB2agjm2goCIIFOfscOVdyP2aQOmyoJ4w== + dependencies: + "@cosmjs/proto-signing" "^0.30.1" + "@cosmjs/stargate" "^0.30.1" + "@lit-protocol/access-control-conditions" "3.0.32" + "@lit-protocol/auth-browser" "3.0.32" + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/bls-sdk" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/contracts-sdk" "3.0.32" + "@lit-protocol/core" "3.0.32" + "@lit-protocol/crypto" "3.0.32" + "@lit-protocol/ecdsa-sdk" "3.0.32" + "@lit-protocol/encryption" "3.0.32" + "@lit-protocol/lit-node-client" "3.0.32" + "@lit-protocol/lit-node-client-nodejs" "3.0.32" + "@lit-protocol/lit-third-party-libs" "3.0.32" + "@lit-protocol/logger" "3.0.32" + "@lit-protocol/misc" "3.0.32" + "@lit-protocol/misc-browser" "3.0.32" + "@lit-protocol/nacl" "3.0.32" + "@lit-protocol/pkp-base" "3.0.32" + "@lit-protocol/sev-snp-utils-sdk" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@lit-protocol/uint8arrays" "3.0.32" + "@metamask/eth-sig-util" "5.0.2" + "@walletconnect/ethereum-provider" "2.9.2" + "@walletconnect/modal" "2.6.1" + bitcoinjs-lib "^6.1.0" + blockstore-core "^3.0.0" + bs58 "^5.0.0" + date-and-time "^2.4.1" + ethers "^5.7.1" + ipfs-http-client "56.0.0" + ipfs-unixfs-importer "^12.0.0" + jose "^4.14.4" + jszip "^3.10.1" + lit-siwe "^1.1.8" + multiformats "^10.0.2" + node-fetch "^2.6.1" + secp256k1 "^5.0.0" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + uint8arrays "^4.0.3" + +"@lit-protocol/sev-snp-utils-sdk@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/sev-snp-utils-sdk/-/sev-snp-utils-sdk-3.0.32.tgz#c0e2a2f117b03170bd264408a7b892e14e31ec0f" + integrity sha512-H+DiTpWxgmcNqJuVKY3Ldy29J+42/+OwseIgOt21KldRk4Rymaa9O6hHaqEFSmjjJevMGzxJ+m0KzxWoM90GDg== + dependencies: + "@lit-protocol/uint8arrays" "3.0.32" + node-fetch "^2.6.1" + pako "^2.1.0" + tslib "^2.3.0" + +"@lit-protocol/types@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/types/-/types-3.0.32.tgz#6c0971a21dff6cb1a72ad5e70ab40f9a6caa92b6" + integrity sha512-rizsbqNzA+g8uP/Tfc3GPf+3ZCinYY886iTQbSY2wY7pj70ws3rmM9g/d5CS1laQvAhNlV6ak8uO9P0MVrppmg== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + ethers "^5.7.1" + jszip "^3.10.1" + siwe "^2.0.5" + siwe-recap "0.0.2-alpha.0" + tslib "^2.3.0" + +"@lit-protocol/uint8arrays@3.0.32": + version "3.0.32" + resolved "https://registry.yarnpkg.com/@lit-protocol/uint8arrays/-/uint8arrays-3.0.32.tgz#2962c3b1ef2dad9da03212c38f9de183ec401730" + integrity sha512-sZavZXFj9xSwMBnUp1xRii5n12LwpaxmYiDdIspo9yHCDTq60XNHgd2J+llk2Hge0H17MTnoPbICLwZlQ9YJmA== + dependencies: + tslib "^2.3.0" + "@lit/reactive-element@^1.3.0", "@lit/reactive-element@^1.6.0": version "1.6.3" resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.6.3.tgz#25b4eece2592132845d303e091bad9b04cdcfe03" @@ -1618,6 +2326,18 @@ "@metamask/safe-event-emitter" "^3.0.0" "@metamask/utils" "^5.0.1" +"@metamask/eth-sig-util@5.0.2": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@metamask/eth-sig-util/-/eth-sig-util-5.0.2.tgz#c518279a6e17a88135a13d53a0b970f145ff8bce" + integrity sha512-RU6fG/H6/UlBol221uBkq5C7w3TwLK611nEZliO2u+kO0vHKGBXnIPlhI0tzKUigjhUeOd9mhCNbNvhh0LKt9Q== + dependencies: + "@ethereumjs/util" "^8.0.0" + bn.js "^4.11.8" + ethereum-cryptography "^1.1.2" + ethjs-util "^0.1.6" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + "@metamask/eth-sig-util@^4.0.0", "@metamask/eth-sig-util@^4.0.1": version "4.0.1" resolved "https://registry.yarnpkg.com/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz#3ad61f6ea9ad73ba5b19db780d40d9aae5157088" @@ -1863,6 +2583,14 @@ "@motionone/dom" "^10.16.4" tslib "^2.3.1" +"@multiformats/murmur3@^2.0.0": + version "2.1.8" + resolved "https://registry.yarnpkg.com/@multiformats/murmur3/-/murmur3-2.1.8.tgz#81c1c15b6391109f3febfca4b3205196615a04e9" + integrity sha512-6vId1C46ra3R1sbJUOFCZnsUIveR9oF20yhPmAFxPm0JfrX3/ZRCgP3YDrBzlGoEppOXnA9czHeYc0T9mB6hbA== + dependencies: + multiformats "^13.0.0" + murmurhash3js-revisited "^3.0.0" + "@noble/curves@1.2.0", "@noble/curves@~1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" @@ -1877,6 +2605,18 @@ dependencies: "@noble/hashes" "1.3.3" +"@noble/curves@^1.3.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.0.tgz#f05771ef64da724997f69ee1261b2417a49522d6" + integrity sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg== + dependencies: + "@noble/hashes" "1.4.0" + +"@noble/hashes@1.2.0", "@noble/hashes@~1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" + integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== + "@noble/hashes@1.3.2": version "1.3.2" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" @@ -1887,11 +2627,16 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699" integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA== -"@noble/hashes@^1", "@noble/hashes@^1.1.2", "@noble/hashes@^1.2.0", "@noble/hashes@^1.3.1": +"@noble/hashes@1.4.0", "@noble/hashes@^1", "@noble/hashes@^1.0.0", "@noble/hashes@^1.1.2", "@noble/hashes@^1.2.0", "@noble/hashes@^1.3.1", "@noble/hashes@^1.3.2": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== +"@noble/secp256k1@1.7.1", "@noble/secp256k1@~1.7.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -3074,6 +3819,15 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.6.tgz#8ce5d304b436e4c84f896e0550c83e4d88cb917d" integrity sha512-ok9AWwhcgYuGG3Zfhyqg+zwl+Wn5uE+dwC0NV/2qQkx4dABbb/bx96vWu8NSj+BNjjSjno+JRYRjle1jV08k3g== +"@scure/bip32@1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.1.5.tgz#d2ccae16dcc2e75bc1d75f5ef3c66a338d1ba300" + integrity sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw== + dependencies: + "@noble/hashes" "~1.2.0" + "@noble/secp256k1" "~1.7.0" + "@scure/base" "~1.1.0" + "@scure/bip32@1.3.2": version "1.3.2" resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.2.tgz#90e78c027d5e30f0b22c1f8d50ff12f3fb7559f8" @@ -3092,6 +3846,14 @@ "@noble/hashes" "~1.3.2" "@scure/base" "~1.1.4" +"@scure/bip39@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.1.1.tgz#b54557b2e86214319405db819c4b6a370cf340c5" + integrity sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg== + dependencies: + "@noble/hashes" "~1.2.0" + "@scure/base" "~1.1.0" + "@scure/bip39@1.2.1": version "1.2.1" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.2.1.tgz#5cee8978656b272a917b7871c981e0541ad6ac2a" @@ -3181,11 +3943,72 @@ "@sigstore/core" "^1.1.0" "@sigstore/protobuf-specs" "^0.3.1" +"@simplewebauthn/browser@^7.2.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@simplewebauthn/browser/-/browser-7.4.0.tgz#3e25b5e9f45d03eb60d3e4f8812d8d2acfd7dba6" + integrity sha512-qqCZ99lFWjtyza8NCtCpRm3GU5u8/QFeBfMgW5+U/E8Qyc4lvUcuJ8JTbrhksVQLZWSY1c/6Xw11QZ5e+D1hNw== + dependencies: + "@simplewebauthn/typescript-types" "^7.4.0" + +"@simplewebauthn/typescript-types@^7.0.0", "@simplewebauthn/typescript-types@^7.4.0": + version "7.4.0" + resolved "https://registry.yarnpkg.com/@simplewebauthn/typescript-types/-/typescript-types-7.4.0.tgz#1f5d55e187cbd30727a75543caf1bade747625ce" + integrity sha512-8/ZjHeUPe210Bt5oyaOIGx4h8lHdsQs19BiOT44gi/jBEgK7uBGA0Fy7NRsyh777al3m6WM0mBf0UR7xd4R7WQ== + "@sinclair/typebox@^0.27.8": version "0.27.8" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== +"@snowballtools/auth-lit@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/auth-lit/-/auth-lit-0.1.0.tgz#1ed97cf55dd20c29b46ee3e5ad053662e17fdc41" + integrity sha512-WfGbdqd34I5wDcviSn9f8I1aTpY0ExJYGvkrwy/l0aeEotRBXoMDFNAM23RQN/aYzaewCOYGTPl1DJ1/hBYDyw== + dependencies: + "@lit-protocol/auth-helpers" "3.0.32" + "@lit-protocol/constants" "3.0.32" + "@lit-protocol/lit-auth-client" "3.0.32" + "@lit-protocol/lit-node-client" "3.0.32" + "@lit-protocol/pkp-ethers" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@snowballtools/auth" "*" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + +"@snowballtools/auth@*", "@snowballtools/auth@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/auth/-/auth-0.1.0.tgz#f6bca8e631d754b524525153769bf28fa956cfa8" + integrity sha512-jsviORyBcDporAFDCKGNHK4WCNBD68DdMJJ4wcnIa5DNXHjYLU4YYLqcbpccgnL1l+02o2nC/FyIwwDNcxWtjw== + dependencies: + "@lit-protocol/pkp-ethers" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + debug "*" + +"@snowballtools/js-sdk@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/js-sdk/-/js-sdk-0.1.0.tgz#69835d4c0fdb1023a2ff3e75d916eb23e98084e1" + integrity sha512-ejyzeRjUiffaWZiBwLhCi9vVyJp+eNBlTYQIwfTipAQlr1q0yCfCHJic2z2CIt2w6Vzayfgi2KRmNyQpRd3img== + dependencies: + "@snowballtools/auth" "*" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + +"@snowballtools/link-lit-alchemy-light@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/link-lit-alchemy-light/-/link-lit-alchemy-light-0.1.0.tgz#3198bd75ad8002f76481680b1c792a7a13b84111" + integrity sha512-f6CEaol7qunra+1Tnk0Yb/M7l/EmYg40dlA7C+lYr0TQcGmIBQhT3rWtuluAlIsmKDPm1Ri7CCGfAYD7ioR/JQ== + dependencies: + "@alchemy/aa-alchemy" "^3.6.1" + "@alchemy/aa-core" "^3.6.1" + "@lit-protocol/pkp-ethers" "3.0.32" + "@snowballtools/smartwallet-alchemy-light" "*" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + ethers "^6.11.1" + viem "2.x" + "@snowballtools/material-tailwind-react-fork@^2.1.10": version "2.1.10" resolved "https://registry.yarnpkg.com/@snowballtools/material-tailwind-react-fork/-/material-tailwind-react-fork-2.1.10.tgz#7a3e582122505157cb033168e48d6c93d93336e8" @@ -3201,11 +4024,46 @@ react-dom "18.2.0" tailwind-merge "1.8.1" +"@snowballtools/smartwallet-alchemy-light@*", "@snowballtools/smartwallet-alchemy-light@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/smartwallet-alchemy-light/-/smartwallet-alchemy-light-0.1.0.tgz#659be4924c15c015b56453c508ee78cd3d64f837" + integrity sha512-gR69Kq3Bl8qxmMqBjac5lINRlABH25U+oUmrzUsul9TtUdfJMtA/96jR48v6upliKyncGoSIf+KJQ8opA5DqHw== + dependencies: + "@alchemy/aa-accounts" "^3.6.1" + "@alchemy/aa-alchemy" "^3.6.1" + "@alchemy/aa-core" "^3.6.1" + "@lit-protocol/pkp-ethers" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + +"@snowballtools/types@*", "@snowballtools/types@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/types/-/types-0.1.0.tgz#b76b20f76cc4192b250712d148991f04d68bade6" + integrity sha512-lYLtUGjTO2BDqpM/KA83ojRB9sKw7IPQ9IVrd0FWJlyHtmQ5MvDRIcXJXO85lIUUe4SIkxXdrJMvda0GMDMV0A== + +"@snowballtools/utils@*", "@snowballtools/utils@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@snowballtools/utils/-/utils-0.1.0.tgz#1f0c69f357a899301d0716e0b30121242617c464" + integrity sha512-0dx3ct6pSbMdhSi/Yg3unM3sPuDIk+lv57YNvqRhv8e+wz+5IfRj0Bm12BB10Dav1PMJAXkLMYKJ5OYJJn6ALA== + dependencies: + "@alchemy/aa-core" "^3.6.1" + "@snowballtools/types" "*" + alchemy-sdk "^3.2.0" + viem "2.x" + "@socket.io/component-emitter@~3.1.0": version "3.1.1" resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.1.tgz#621270c02c0a5d4f4669eb1caa9723c91cf201de" integrity sha512-dzJtaDAAoXx4GCOJpbB2eG/Qj8VDpdwkLsWGzGm+0L7E8/434RyMbAHmk9ubXWVAb9nXmc44jUf8GKqVDiKezg== +"@spruceid/siwe-parser@1.1.3": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@spruceid/siwe-parser/-/siwe-parser-1.1.3.tgz#0eebe8bbd63c6de89cb44c06b6329b00b305df65" + integrity sha512-oQ8PcwDqjGWJvLmvAF2yzd6iniiWxK0Qtz+Dw+gLD/W5zOQJiKIUXwslHOm8VB8OOOKW9vfR3dnPBhHaZDvRsw== + dependencies: + apg-js "^4.1.1" + "@spruceid/siwe-parser@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@spruceid/siwe-parser/-/siwe-parser-2.1.0.tgz#59859ccfd02403179bcf115d9e02a7dc953a0820" @@ -3513,6 +4371,60 @@ "@tufjs/canonical-json" "2.0.0" minimatch "^9.0.3" +"@turnkey/api-key-stamper@0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@turnkey/api-key-stamper/-/api-key-stamper-0.4.0.tgz#03844adb9d08f4d0463e8d6e8dc9167a662b68e9" + integrity sha512-LyIiAXRuSL5UBa/Y95gHuh7j4uHzVMkI2+sHWM4/UWZat3nCoveU66h6SFXwF1BThA0poGgsKjWjsKNCJ89NPg== + dependencies: + "@noble/curves" "^1.3.0" + "@turnkey/encoding" "0.1.0" + sha256-uint8array "^0.10.7" + +"@turnkey/encoding@0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@turnkey/encoding/-/encoding-0.1.0.tgz#85461c3aa11c70882cc2b0853f5db40f576c3ac9" + integrity sha512-aLmLrWtvV1k9UyGzuzMpBFdwleCH8VpzXIriusVMrFLiQp+4uHCS9cwrEG1glg3207ewWFDtvgj31qLoJS29pg== + +"@turnkey/http@2.10.0", "@turnkey/http@^2.6.2": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@turnkey/http/-/http-2.10.0.tgz#9e8d0dc6279719e3efaf5ae1df7dc9fd5a111ecf" + integrity sha512-5I2VwOzxYGxmSy8UOZn8rsV23gmK8v93KqNZ/mjf4GrFQ69q8LCaAFmrH1Zo+/J7eq0/GQdxNqBHfJKLp5iihw== + dependencies: + "@turnkey/api-key-stamper" "0.4.0" + "@turnkey/encoding" "0.1.0" + "@turnkey/webauthn-stamper" "0.5.0" + cross-fetch "^3.1.5" + +"@turnkey/iframe-stamper@^1.0.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@turnkey/iframe-stamper/-/iframe-stamper-1.2.0.tgz#bba478e391a266833f1a5960b9f1df9de5934fb8" + integrity sha512-OXbCVVzypa0AXa6dcNpfu8Q0xY/sq2nGXwhesrUQmE7V5I5nYYHZE3sQv54lErToX6H6YyDR9Z1DuPzEUkYTjw== + +"@turnkey/viem@^0.4.8": + version "0.4.14" + resolved "https://registry.yarnpkg.com/@turnkey/viem/-/viem-0.4.14.tgz#bbc60bd8ce478401e9e7900357de7edc792acd14" + integrity sha512-YMREwb7QBBuge8wxdpFGKAl48e4W/rX84XR1E5GsD5HnypNPnfMu/AI7Np0cbQBA6IRuwY9HWu3HbDPU9kicDg== + dependencies: + "@turnkey/api-key-stamper" "0.4.0" + "@turnkey/http" "2.10.0" + cross-fetch "^4.0.0" + typescript "^5.1" + +"@turnkey/webauthn-stamper@0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@turnkey/webauthn-stamper/-/webauthn-stamper-0.5.0.tgz#014b8c20b1732af49dacb04f396edf010d3b7f47" + integrity sha512-iUbTUwD4f4ibdLy5PWWb7ITEz4S4VAP9/mNjFhoRY3cKVVTDfmykrVTKjPOIHWzDgAmLtgrLvySIIC9ZBVENBw== + dependencies: + sha256-uint8array "^0.10.7" + +"@turnkey/webauthn-stamper@^0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@turnkey/webauthn-stamper/-/webauthn-stamper-0.4.3.tgz#843499f0cf751c0421cb7630ea128b6f034a9446" + integrity sha512-hJuIpwny44TOrkFJiK8uA29RRO1A9xJK3KbN4PWqBxTLh1r7ntkl3zslc/qAkgnw6f+OREQbhQGoYkTdIX+7QA== + dependencies: + "@noble/hashes" "^1.3.2" + buffer "^6.0.3" + "@types/accepts@^1.3.5": version "1.3.7" resolved "https://registry.yarnpkg.com/@types/accepts/-/accepts-1.3.7.tgz#3b98b1889d2b2386604c2bbbe62e4fb51e95b265" @@ -3606,6 +4518,14 @@ dependencies: "@types/node" "*" +"@types/cookie-session@^2.0.49": + version "2.0.49" + resolved "https://registry.yarnpkg.com/@types/cookie-session/-/cookie-session-2.0.49.tgz#44ae62bd1d1506fbb3cc14470cdf6f74decea04b" + integrity sha512-4E/bBjlqLhU5l4iGPR+NkVJH593hpNsT4dC3DJDr+ODm6Qpe13kZQVkezRIb+TYDXaBMemS3yLQ+0leba3jlkQ== + dependencies: + "@types/express" "*" + "@types/keygrip" "*" + "@types/cors@2.8.12": version "2.8.12" resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.12.tgz#6b2c510a7ad7039e98e7b8d3d6598f4359e5c080" @@ -3765,6 +4685,11 @@ dependencies: "@types/node" "*" +"@types/keygrip@*": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@types/keygrip/-/keygrip-1.0.6.tgz#1749535181a2a9b02ac04a797550a8787345b740" + integrity sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ== + "@types/lodash.memoize@^4.1.7": version "4.1.9" resolved "https://registry.yarnpkg.com/@types/lodash.memoize/-/lodash.memoize-4.1.9.tgz#9f8912d39b6e450c0d342a2b74c99d331bf2016b" @@ -3792,7 +4717,7 @@ resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== -"@types/minimatch@^3.0.3": +"@types/minimatch@^3.0.3", "@types/minimatch@^3.0.4": version "3.0.5" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ== @@ -3819,6 +4744,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== +"@types/node@18.15.13": + version "18.15.13" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.13.tgz#f64277c341150c979e42b00e4ac289290c9df469" + integrity sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q== + "@types/node@^10.1.0": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" @@ -3866,7 +4796,7 @@ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== -"@types/react-dom@^18.0.0", "@types/react-dom@^18.2.17": +"@types/react-dom@^18.0.0", "@types/react-dom@^18.2.22": version "18.2.25" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.25.tgz#2946a30081f53e7c8d585eb138277245caedc521" integrity sha512-o/V48vf4MQh7juIKZU2QGDfli6p1+OOi5oXx36Hffpc9adsHeXjVp8rHuPkjd8VT8sOJ2Zp05HR7CdpGTIUFUA== @@ -3881,10 +4811,10 @@ "@types/prop-types" "*" csstype "^3.0.2" -"@types/react@^18.2.77": - version "18.2.77" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.77.tgz#af2f857b6a6dfb6ca89ec102ebc147b1f1616880" - integrity sha512-CUT9KUUF+HytDM7WiXKLF9qUSg4tGImwy4FXTlfEDPEkkNUzJ7rVFolYweJ9fS1ljoIaP7M7Rdjc5eUm/Yu5AA== +"@types/react@^18.2.66": + version "18.2.79" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.79.tgz#c40efb4f255711f554d47b449f796d1c7756d865" + integrity sha512-RwGAGXPl9kSXwdNTafkOEuFrTBD5SA2B3iEB96xi8+xu5ddUa/cpvyVCSNn+asgLCTHkb5ZxN8gbuibYJi4s1w== dependencies: "@types/prop-types" "*" csstype "^3.0.2" @@ -3945,6 +4875,11 @@ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.10.tgz#04ffa7f406ab628f7f7e97ca23e290cd8ab15efc" integrity sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA== +"@types/uuid@^9.0.8": + version "9.0.8" + resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.8.tgz#7545ba4fc3c003d6c756f651f3bf163d8f0f29ba" + integrity sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA== + "@types/yargs-parser@*": version "21.0.3" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" @@ -4082,6 +5017,28 @@ lodash.isequal "4.5.0" uint8arrays "^3.1.0" +"@walletconnect/core@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.9.2.tgz#c46734ca63771b28fd77606fd521930b7ecfc5e1" + integrity sha512-VARMPAx8sIgodeyngDHbealP3B621PQqjqKsByFUTOep8ZI1/R/20zU+cmq6j9RCrL+kLKZcrZqeVzs8Z7OlqQ== + dependencies: + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-provider" "1.0.13" + "@walletconnect/jsonrpc-types" "1.0.3" + "@walletconnect/jsonrpc-utils" "1.0.8" + "@walletconnect/jsonrpc-ws-connection" "1.0.13" + "@walletconnect/keyvaluestorage" "^1.0.2" + "@walletconnect/logger" "^2.0.1" + "@walletconnect/relay-api" "^1.0.9" + "@walletconnect/relay-auth" "^1.0.4" + "@walletconnect/safe-json" "^1.0.2" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.9.2" + "@walletconnect/utils" "2.9.2" + events "^3.3.0" + lodash.isequal "4.5.0" + uint8arrays "^3.1.0" + "@walletconnect/environment@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/environment/-/environment-1.0.1.tgz#1d7f82f0009ab821a2ba5ad5e5a7b8ae3b214cd7" @@ -4105,6 +5062,21 @@ "@walletconnect/utils" "2.11.2" events "^3.3.0" +"@walletconnect/ethereum-provider@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.9.2.tgz#fb3a6fca279bb4e98e75baa2fb9730545d41bb99" + integrity sha512-eO1dkhZffV1g7vpG19XUJTw09M/bwGUwwhy1mJ3AOPbOSbMPvwiCuRz2Kbtm1g9B0Jv15Dl+TvJ9vTgYF8zoZg== + dependencies: + "@walletconnect/jsonrpc-http-connection" "^1.0.7" + "@walletconnect/jsonrpc-provider" "^1.0.13" + "@walletconnect/jsonrpc-types" "^1.0.3" + "@walletconnect/jsonrpc-utils" "^1.0.8" + "@walletconnect/sign-client" "2.9.2" + "@walletconnect/types" "2.9.2" + "@walletconnect/universal-provider" "2.9.2" + "@walletconnect/utils" "2.9.2" + events "^3.3.0" + "@walletconnect/ethereum-provider@^2.12.2": version "2.12.2" resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.12.2.tgz#43195a14cd43f928b2fcbba6b1a08e17e7838c4f" @@ -4174,6 +5146,17 @@ "@walletconnect/jsonrpc-types" "^1.0.3" tslib "1.14.1" +"@walletconnect/jsonrpc-ws-connection@1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.13.tgz#23b0cdd899801bfbb44a6556936ec2b93ef2adf4" + integrity sha512-mfOM7uFH4lGtQxG+XklYuFBj6dwVvseTt5/ahOkkmpcAEgz2umuzu7fTR+h5EmjQBdrmYyEBOWADbeaFNxdySg== + dependencies: + "@walletconnect/jsonrpc-utils" "^1.0.6" + "@walletconnect/safe-json" "^1.0.2" + events "^3.3.0" + tslib "1.14.1" + ws "^7.5.1" + "@walletconnect/jsonrpc-ws-connection@1.0.14": version "1.0.14" resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.14.tgz#eec700e74766c7887de2bd76c91a0206628732aa" @@ -4184,7 +5167,7 @@ events "^3.3.0" ws "^7.5.1" -"@walletconnect/keyvaluestorage@^1.1.1": +"@walletconnect/keyvaluestorage@^1.0.2", "@walletconnect/keyvaluestorage@^1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz#dd2caddabfbaf80f6b8993a0704d8b83115a1842" integrity sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA== @@ -4201,6 +5184,13 @@ "@walletconnect/safe-json" "^1.0.2" pino "7.11.0" +"@walletconnect/modal-core@2.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.6.1.tgz#bc76055d0b644a2d4b98024324825c108a700905" + integrity sha512-f2hYlJ5pwzGvjyaZ6BoGR5uiMgXzWXt6w6ktt1N8lmY6PiYp8whZgqx2hTxVWwVlsGnaIfh6UHp1hGnANx0eTQ== + dependencies: + valtio "1.11.0" + "@walletconnect/modal-core@2.6.2": version "2.6.2" resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.6.2.tgz#d73e45d96668764e0c8668ea07a45bb8b81119e9" @@ -4208,6 +5198,16 @@ dependencies: valtio "1.11.2" +"@walletconnect/modal-ui@2.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.6.1.tgz#200c54c8dfe3c71321abb2724e18bb357dfd6371" + integrity sha512-RFUOwDAMijSK8B7W3+KoLKaa1l+KEUG0LCrtHqaB0H0cLnhEGdLR+kdTdygw+W8+yYZbkM5tXBm7MlFbcuyitA== + dependencies: + "@walletconnect/modal-core" "2.6.1" + lit "2.7.6" + motion "10.16.2" + qrcode "1.5.3" + "@walletconnect/modal-ui@2.6.2": version "2.6.2" resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.6.2.tgz#fa57c087c57b7f76aaae93deab0f84bb68b59cf9" @@ -4218,6 +5218,14 @@ motion "10.16.2" qrcode "1.5.3" +"@walletconnect/modal@2.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.6.1.tgz#066fdbfcff83b58c8a9da66ab4af0eb93e3626de" + integrity sha512-G84tSzdPKAFk1zimgV7JzIUFT5olZUVtI3GcOk77OeLYjlMfnDT23RVRHm5EyCrjkptnvpD0wQScXePOFd2Xcw== + dependencies: + "@walletconnect/modal-core" "2.6.1" + "@walletconnect/modal-ui" "2.6.1" + "@walletconnect/modal@2.6.2", "@walletconnect/modal@^2.6.2": version "2.6.2" resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.6.2.tgz#4b534a836f5039eeb3268b80be7217a94dd12651" @@ -4283,6 +5291,21 @@ "@walletconnect/utils" "2.12.2" events "^3.3.0" +"@walletconnect/sign-client@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.9.2.tgz#ff4c81c082c2078878367d07f24bcb20b1f7ab9e" + integrity sha512-anRwnXKlR08lYllFMEarS01hp1gr6Q9XUgvacr749hoaC/AwGVlxYFdM8+MyYr3ozlA+2i599kjbK/mAebqdXg== + dependencies: + "@walletconnect/core" "2.9.2" + "@walletconnect/events" "^1.0.1" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-utils" "1.0.8" + "@walletconnect/logger" "^2.0.1" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.9.2" + "@walletconnect/utils" "2.9.2" + events "^3.3.0" + "@walletconnect/time@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/time/-/time-1.0.2.tgz#6c5888b835750ecb4299d28eecc5e72c6d336523" @@ -4314,6 +5337,18 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" +"@walletconnect/types@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.9.2.tgz#d5fd5a61dc0f41cbdca59d1885b85207ac7bf8c5" + integrity sha512-7Rdn30amnJEEal4hk83cdwHUuxI1SWQ+K7fFFHBMqkuHLGi3tpMY6kpyfDxnUScYEZXqgRps4Jo5qQgnRqVM7A== + dependencies: + "@walletconnect/events" "^1.0.1" + "@walletconnect/heartbeat" "1.2.1" + "@walletconnect/jsonrpc-types" "1.0.3" + "@walletconnect/keyvaluestorage" "^1.0.2" + "@walletconnect/logger" "^2.0.1" + events "^3.3.0" + "@walletconnect/universal-provider@2.11.2": version "2.11.2" resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.11.2.tgz#bec3038f51445d707bbec75f0cb8af0a1f1e04db" @@ -4344,6 +5379,21 @@ "@walletconnect/utils" "2.12.2" events "^3.3.0" +"@walletconnect/universal-provider@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.9.2.tgz#40e54e98bc48b1f2f5f77eb5b7f05462093a8506" + integrity sha512-JmaolkO8D31UdRaQCHwlr8uIFUI5BYhBzqYFt54Mc6gbIa1tijGOmdyr6YhhFO70LPmS6gHIjljwOuEllmlrxw== + dependencies: + "@walletconnect/jsonrpc-http-connection" "^1.0.7" + "@walletconnect/jsonrpc-provider" "1.0.13" + "@walletconnect/jsonrpc-types" "^1.0.2" + "@walletconnect/jsonrpc-utils" "^1.0.7" + "@walletconnect/logger" "^2.0.1" + "@walletconnect/sign-client" "2.9.2" + "@walletconnect/types" "2.9.2" + "@walletconnect/utils" "2.9.2" + events "^3.3.0" + "@walletconnect/utils@2.11.2": version "2.11.2" resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.11.2.tgz#dee0f19adf5e38543612cbe9fa4de7ed28eb7e85" @@ -4384,6 +5434,26 @@ query-string "7.1.3" uint8arrays "^3.1.0" +"@walletconnect/utils@2.9.2": + version "2.9.2" + resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.9.2.tgz#035bdb859ee81a4bcc6420f56114cc5ec3e30afb" + integrity sha512-D44hwXET/8JhhIjqljY6qxSu7xXnlPrf63UN/Qfl98vDjWlYVcDl2+JIQRxD9GPastw0S8XZXdRq59XDXLuZBg== + dependencies: + "@stablelib/chacha20poly1305" "1.0.1" + "@stablelib/hkdf" "1.0.1" + "@stablelib/random" "^1.0.2" + "@stablelib/sha256" "1.0.1" + "@stablelib/x25519" "^1.0.3" + "@walletconnect/relay-api" "^1.0.9" + "@walletconnect/safe-json" "^1.0.2" + "@walletconnect/time" "^1.0.2" + "@walletconnect/types" "2.9.2" + "@walletconnect/window-getters" "^1.0.1" + "@walletconnect/window-metadata" "^1.0.1" + detect-browser "5.3.0" + query-string "7.1.3" + uint8arrays "^3.1.0" + "@walletconnect/window-getters@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/window-getters/-/window-getters-1.0.1.tgz#f36d1c72558a7f6b87ecc4451fc8bd44f63cbbdc" @@ -4579,6 +5649,11 @@ abitype@1.0.0: resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.0.tgz#237176dace81d90d018bebf3a45cb42f2a2d9e97" integrity sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ== +abitype@^0.8.3: + version "0.8.11" + resolved "https://registry.yarnpkg.com/abitype/-/abitype-0.8.11.tgz#66e1cf2cbf46f48d0e57132d7c1c392447536cc1" + integrity sha512-bM4v2dKvX08sZ9IU38IN5BKmN+ZkOSd2oI4a9f0ejHYZQYV6cDr7j+d95ga0z2XHG36Y4jzoG5Z7qDqxp7fi/A== + accepts@^1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -4607,6 +5682,11 @@ aes-js@3.0.0: resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw== +aes-js@4.0.0-beta.5: + version "4.0.0-beta.5" + resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" + integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== + agent-base@6, agent-base@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" @@ -4636,6 +5716,26 @@ aggregate-error@^3.0.0, aggregate-error@^3.1.0: clean-stack "^2.0.0" indent-string "^4.0.0" +alchemy-sdk@^3.0.0, alchemy-sdk@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/alchemy-sdk/-/alchemy-sdk-3.2.1.tgz#23ced2b6f44ce4960ca0950b3b328c0d12b0098e" + integrity sha512-ytCllr0E3TZxlYT2o/+i8AVEFJwRS7msXYvS3f/L47VEemkv0Hpz09XTqbjOcfur2PooEMcD8rn5oKrbwLyFrQ== + dependencies: + "@ethersproject/abi" "^5.7.0" + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/contracts" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/networks" "^5.7.0" + "@ethersproject/providers" "^5.7.0" + "@ethersproject/units" "^5.7.0" + "@ethersproject/wallet" "^5.7.0" + "@ethersproject/web" "^5.7.0" + axios "^1.6.5" + sturdy-websocket "^0.2.1" + websocket "^1.0.34" + ansi-colors@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" @@ -4687,6 +5787,11 @@ any-promise@^1.0.0: resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== +any-signal@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/any-signal/-/any-signal-3.0.1.tgz#49cae34368187a3472e31de28fb5cb1430caa9a6" + integrity sha512-xgZgJtKEa9YmDqXodIgl7Fl1C8yNXr8w6gXjqK3LW4GcEiYT+6AQfJSE/8SPsEpLLmcvbv8YU+qet94UewHxqg== + anymatch@^3.1.3, anymatch@~3.1.2: version "3.1.3" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" @@ -4953,6 +6058,13 @@ available-typed-arrays@^1.0.7: dependencies: possible-typed-array-names "^1.0.0" +axios@^0.21.2: + version "0.21.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" + integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== + dependencies: + follow-redirects "^1.14.0" + axios@^0.26.1: version "0.26.1" resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" @@ -4960,7 +6072,7 @@ axios@^0.26.1: dependencies: follow-redirects "^1.14.8" -axios@^1.6.0, axios@^1.6.7: +axios@^1.6.0, axios@^1.6.5, axios@^1.6.7: version "1.6.8" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66" integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ== @@ -4990,11 +6102,21 @@ base-x@^3.0.2, base-x@^3.0.8: dependencies: safe-buffer "^5.0.1" +base-x@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-4.0.0.tgz#d0e3b7753450c73f8ad2389b5c018a4af7b2224a" + integrity sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw== + base64-js@^1.3.0, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== +base64url@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/base64url/-/base64url-3.0.1.tgz#6399d572e2bc3f90a9a8b22d5dbb0a32d33f788d" + integrity sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A== + bech32@1.1.4, bech32@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" @@ -5040,6 +6162,11 @@ bindings@^1.3.0, bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" +bip174@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bip174/-/bip174-2.1.1.tgz#ef3e968cf76de234a546962bcf572cc150982f9f" + integrity sha512-mdFV5+/v0XyNYXjBS6CQPLo9ekCx4gtKZFnJm5PMto7Fs9hTTDpkkzOB7/FtluRI6JbUUAu+snTYfJRgHLZbZQ== + bip32@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/bip32/-/bip32-3.0.1.tgz#1d1121469cce6e910e0ec3a5a1990dd62687e2a3" @@ -5059,6 +6186,18 @@ bip39@^3.0.4: dependencies: "@noble/hashes" "^1.2.0" +bitcoinjs-lib@^6.1.0: + version "6.1.5" + resolved "https://registry.yarnpkg.com/bitcoinjs-lib/-/bitcoinjs-lib-6.1.5.tgz#3b03509ae7ddd80a440f10fc38c4a97f0a028d8c" + integrity sha512-yuf6xs9QX/E8LWE2aMJPNd0IxGofwfuVOiYdNUESkc+2bHHVKjhJd8qewqapeoolh9fihzHGoDCB5Vkr57RZCQ== + dependencies: + "@noble/hashes" "^1.2.0" + bech32 "^2.0.0" + bip174 "^2.1.1" + bs58check "^3.0.1" + typeforce "^1.11.3" + varuint-bitcoin "^1.1.2" + bl@^4.0.3, bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -5068,11 +6207,41 @@ bl@^4.0.3, bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" +bl@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-5.1.0.tgz#183715f678c7188ecef9fe475d90209400624273" + integrity sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ== + dependencies: + buffer "^6.0.3" + inherits "^2.0.4" + readable-stream "^3.4.0" + blakejs@^1.1.0: version "1.2.1" resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== +blob-to-it@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/blob-to-it/-/blob-to-it-1.0.4.tgz#f6caf7a4e90b7bb9215fa6a318ed6bd8ad9898cb" + integrity sha512-iCmk0W4NdbrWgRRuxOriU8aM5ijeVLI61Zulsmg/lUHNr7pYjoj+U77opLefNagevtrrbMt3JQ5Qip7ar178kA== + dependencies: + browser-readablestream-to-it "^1.0.3" + +blockstore-core@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/blockstore-core/-/blockstore-core-3.0.0.tgz#08f52d954fe079d2735b745d218e737071badd97" + integrity sha512-5ZZB5nh6kErcjZ/CTK6lCwTIGlPdkTXbD8+2xLC4Fm0WGh7g2e2lW2bfURw7mvnPtSX1xV+sN4V2ndowSgIiHQ== + dependencies: + err-code "^3.0.1" + interface-blockstore "^4.0.0" + interface-store "^3.0.0" + it-all "^2.0.0" + it-drain "^2.0.0" + it-filter "^2.0.0" + it-take "^2.0.0" + multiformats "^11.0.0" + bn.js@^4.11.0, bn.js@^4.11.8, bn.js@^4.11.9: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" @@ -5138,6 +6307,11 @@ brorand@^1.1.0: resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== +browser-readablestream-to-it@^1.0.0, browser-readablestream-to-it@^1.0.1, browser-readablestream-to-it@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/browser-readablestream-to-it/-/browser-readablestream-to-it-1.0.3.tgz#ac3e406c7ee6cdf0a502dd55db33bab97f7fba76" + integrity sha512-+12sHB+Br8HIh6VAMVEG5r3UXCyESIgDW7kzk3BjIXa43DVqVwL7GC5TW3jeh+72dtcH99pPVpw0X8i0jt+/kw== + browserify-aes@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" @@ -5167,6 +6341,13 @@ bs58@^4.0.0, bs58@^4.0.1: dependencies: base-x "^3.0.2" +bs58@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/bs58/-/bs58-5.0.0.tgz#865575b4d13c09ea2a84622df6c8cbeb54ffc279" + integrity sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ== + dependencies: + base-x "^4.0.0" + bs58check@<3.0.0, bs58check@^2.1.1, bs58check@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" @@ -5176,6 +6357,14 @@ bs58check@<3.0.0, bs58check@^2.1.1, bs58check@^2.1.2: create-hash "^1.1.0" safe-buffer "^5.1.2" +bs58check@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-3.0.1.tgz#2094d13720a28593de1cba1d8c4e48602fdd841c" + integrity sha512-hjuuJvoWEybo7Hn/0xOrczQKKEKD63WguEjlhLExYs2wUBcebDC1jDNK17eEAD2lYfw82d5ASC1d7K3SWszjaQ== + dependencies: + "@noble/hashes" "^1.2.0" + bs58 "^5.0.0" + btoa-lite@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" @@ -5196,7 +6385,7 @@ buffer-xor@^1.0.3: resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== -buffer@6.0.3, buffer@^6.0.3: +buffer@6.0.3, buffer@^6.0.1, buffer@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== @@ -5212,7 +6401,7 @@ buffer@^5.5.0: base64-js "^1.3.1" ieee754 "^1.1.13" -bufferutil@^4.0.8: +bufferutil@^4.0.1, bufferutil@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.8.tgz#1de6a71092d65d7766c4d8a522b261a6e787e8ea" integrity sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw== @@ -5349,6 +6538,16 @@ canonical-json@^0.0.4: resolved "https://registry.yarnpkg.com/canonical-json/-/canonical-json-0.0.4.tgz#6579c072c3db5c477ec41dc978fbf2b8f41074a3" integrity sha512-2sW7x0m/P7dqEnO0O87U7RTVQAaa7MELcd+Jd9FA6CYgYtwJ1TlDWIYMD8nuMkH1KoThsJogqgLyklrt9d/Azw== +canonicalize@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/canonicalize/-/canonicalize-2.0.0.tgz#32be2cef4446d67fd5348027a384cae28f17226a" + integrity sha512-ulDEYPv7asdKvqahuAY35c1selLdzDwHqugK92hfkzvlDCwXRRelDkR+Er33md/PtnpqHemgkuDPanZ4fiYZ8w== + +cbor-web@^9.0.1: + version "9.0.2" + resolved "https://registry.yarnpkg.com/cbor-web/-/cbor-web-9.0.2.tgz#1915f1ef1a72ea905db07480f71cf12ff601c661" + integrity sha512-N6gU2GsJS8RR5gy1d9wQcSPgn9FGJFY7KNvdDRlwHfz6kCxrQr2TDnrjXHmr6TFSl6Fd0FC4zRnityEldjRGvQ== + cborg@^1.5.4, cborg@^1.6.0: version "1.10.2" resolved "https://registry.yarnpkg.com/cborg/-/cborg-1.10.2.tgz#83cd581b55b3574c816f82696307c7512db759a1" @@ -5768,6 +6967,16 @@ cookie-es@^1.0.0: resolved "https://registry.yarnpkg.com/cookie-es/-/cookie-es-1.1.0.tgz#68f8d9f48aeb5a534f3896f80e792760d3d20def" integrity sha512-L2rLOcK0wzWSfSDA33YR+PUHDG10a8px7rUHKWbGLP4YfbsMed2KFUw5fczvDPbT98DDe3LEzviswl810apTEw== +cookie-session@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cookie-session/-/cookie-session-2.1.0.tgz#ae30b566b2f9f2d8ca2c4936513e6bf181830558" + integrity sha512-u73BDmR8QLGcs+Lprs0cfbcAPKl2HnPcjpwRXT41sEV4DRJ2+W0vJEEZkG31ofkx+HZflA70siRIjiTdIodmOQ== + dependencies: + cookies "0.9.1" + debug "3.2.7" + on-headers "~1.0.2" + safe-buffer "5.2.1" + cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" @@ -5783,6 +6992,14 @@ cookie@0.6.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== +cookies@0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/cookies/-/cookies-0.9.1.tgz#3ffed6f60bb4fb5f146feeedba50acc418af67e3" + integrity sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw== + dependencies: + depd "~2.0.0" + keygrip "~1.1.0" + copyfiles@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5" @@ -5846,6 +7063,14 @@ cosmjs-types@^0.5.1: long "^4.0.0" protobufjs "~6.11.2" +cosmjs-types@^0.7.1: + version "0.7.2" + resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.7.2.tgz#a757371abd340949c5bd5d49c6f8379ae1ffd7e2" + integrity sha512-vf2uLyktjr/XVAgEq0DjMxeAWh1yYREe7AMHDKd7EiHVqxBPCaBS+qEEQUkXbR9ndnckqr1sUG8BQhazh4X5lA== + dependencies: + long "^4.0.0" + protobufjs "~6.11.2" + crc-32@^1.2.0: version "1.2.2" resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" @@ -5966,11 +7191,32 @@ csstype@^3.0.2: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== +d@1, d@^1.0.1, d@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.2.tgz#2aefd554b81981e7dccf72d6842ae725cb17e5de" + integrity sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw== + dependencies: + es5-ext "^0.10.64" + type "^2.7.2" + +dag-jose@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/dag-jose/-/dag-jose-1.0.0.tgz#52e42d70cb5bee31ae4e8e3ab860615568d7ad73" + integrity sha512-U0b/YsIPBp6YZNTFrVjwLZAlY3qGRxZTIEcM/CcQmrVrCWq9MWQq9pheXVSPLIhF4SNwzp2SikPva4/BIrJY+g== + dependencies: + "@ipld/dag-cbor" "^6.0.3" + multiformats "^9.0.2" + dargs@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== +date-and-time@^2.4.1: + version "2.4.3" + resolved "https://registry.yarnpkg.com/date-and-time/-/date-and-time-2.4.3.tgz#116963998a8cecd478955ae053f31a6747a988df" + integrity sha512-xkS/imTmsyEdpp9ie5oV5UWolg3XkYWNySbT2W4ESWr6v4V8YrsHbhpk9fIeQcr0NFTnYbQJLXlgU1zrLItysA== + date-fns@^2.29.3: version "2.30.0" resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" @@ -5993,19 +7239,26 @@ dayjs@1.11.10, dayjs@^1.11.9: resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.10.tgz#68acea85317a6e164457d6d6947564029a6a16a0" integrity sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ== -debug@2.6.9: +debug@*, debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.3, debug@^4.3.4, 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" + +debug@2.6.9, debug@^2.2.0: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== dependencies: ms "2.0.0" -debug@4, debug@^4.1.0, debug@^4.3.1, debug@^4.3.3, debug@^4.3.4, 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== +debug@3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== dependencies: - ms "2.1.2" + ms "^2.1.1" decamelize-keys@^1.1.0: version "1.1.1" @@ -6242,6 +7495,15 @@ dlv@^1.1.3: resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== +dns-over-http-resolver@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/dns-over-http-resolver/-/dns-over-http-resolver-1.2.3.tgz#194d5e140a42153f55bb79ac5a64dd2768c36af9" + integrity sha512-miDiVSI6KSNbi4SVifzO/reD8rMnxgrlnkrlkugOLQpWQTe2qMdHsZp5DmfKjxNE+/T3VAAYLQUZMv9SMr6+AA== + dependencies: + debug "^4.3.1" + native-fetch "^3.0.0" + receptacle "^1.3.2" + dom-accessibility-api@^0.5.6, dom-accessibility-api@^0.5.9: version "0.5.16" resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453" @@ -6333,6 +7595,13 @@ ejs@^3.1.7: dependencies: jake "^10.8.5" +electron-fetch@^1.7.2: + version "1.9.1" + resolved "https://registry.yarnpkg.com/electron-fetch/-/electron-fetch-1.9.1.tgz#e28bfe78d467de3f2dec884b1d72b8b05322f30f" + integrity sha512-M9qw6oUILGVrcENMSRRefE1MbHPIz0h79EKIeJWK9v563aT9Qkh8aEHPO1H5vi970wPirNY+jO9OpFoLiMsMGA== + dependencies: + encoding "^0.1.13" + electron-to-chromium@^1.4.668: version "1.4.733" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.733.tgz#708d51ce01a7ed3b401d5ced85e9f5d504fd4217" @@ -6441,6 +7710,11 @@ err-code@^2.0.2: resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== +err-code@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/err-code/-/err-code-3.0.1.tgz#a444c7b992705f2b120ee320b09972eef331c920" + integrity sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA== + error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -6475,6 +7749,33 @@ es-get-iterator@^1.1.3: isarray "^2.0.5" stop-iteration-iterator "^1.0.0" +es5-ext@^0.10.35, es5-ext@^0.10.50, es5-ext@^0.10.62, es5-ext@^0.10.64, es5-ext@~0.10.14: + version "0.10.64" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.64.tgz#12e4ffb48f1ba2ea777f1fcdd1918ef73ea21714" + integrity sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg== + dependencies: + es6-iterator "^2.0.3" + es6-symbol "^3.1.3" + esniff "^2.0.1" + next-tick "^1.1.0" + +es6-iterator@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@^3.1.3: + version "3.1.4" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.4.tgz#f4e7d28013770b4208ecbf3e0bf14d3bcb557b8c" + integrity sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg== + dependencies: + d "^1.0.2" + ext "^1.7.0" + esbuild@^0.19.2: version "0.19.12" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04" @@ -6558,6 +7859,16 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +esniff@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/esniff/-/esniff-2.0.1.tgz#a4d4b43a5c71c7ec51c51098c1d8a29081f9b308" + integrity sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg== + dependencies: + d "^1.0.1" + es5-ext "^0.10.62" + event-emitter "^0.3.5" + type "^2.7.2" + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -6631,6 +7942,16 @@ ethereum-cryptography@^0.1.3: secp256k1 "^4.0.1" setimmediate "^1.0.5" +ethereum-cryptography@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz#5ccfa183e85fdaf9f9b299a79430c044268c9b3a" + integrity sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw== + dependencies: + "@noble/hashes" "1.2.0" + "@noble/secp256k1" "1.7.1" + "@scure/bip32" "1.1.5" + "@scure/bip39" "1.1.1" + ethereum-cryptography@^2.0.0: version "2.1.3" resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-2.1.3.tgz#1352270ed3b339fe25af5ceeadcf1b9c8e30768a" @@ -6662,7 +7983,7 @@ ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: ethjs-util "0.1.6" rlp "^2.2.3" -ethers@^5.6.2: +ethers@^5.6.2, ethers@^5.7.1: version "5.7.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== @@ -6698,6 +8019,19 @@ ethers@^5.6.2: "@ethersproject/web" "5.7.1" "@ethersproject/wordlists" "5.7.0" +ethers@^6.11.1: + version "6.11.1" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.11.1.tgz#96aae00b627c2e35f9b0a4d65c7ab658259ee6af" + integrity sha512-mxTAE6wqJQAbp5QAe/+o+rXOID7Nw91OZXvgpjDa1r4fAbq2Nu314oEZSbjoRLacuCzs7kUC3clEvkCQowffGg== + dependencies: + "@adraffy/ens-normalize" "1.10.1" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@types/node" "18.15.13" + aes-js "4.0.0-beta.5" + tslib "2.4.0" + ws "8.5.0" + ethjs-util@0.1.6, ethjs-util@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.6.tgz#f308b62f185f9fe6237132fb2a9818866a5cd536" @@ -6706,6 +8040,14 @@ ethjs-util@0.1.6, ethjs-util@^0.1.6: is-hex-prefixed "1.0.0" strip-hex-prefix "1.0.0" +event-emitter@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + integrity sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA== + dependencies: + d "1" + es5-ext "~0.10.14" + eventemitter2@^6.4.5, eventemitter2@^6.4.7: version "6.4.9" resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.9.tgz#41f2750781b4230ed58827bc119d293471ecb125" @@ -6871,6 +8213,13 @@ express@^4.18.2: utils-merge "1.0.1" vary "~1.1.2" +ext@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" + integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== + dependencies: + type "^2.7.2" + extension-port-stream@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/extension-port-stream/-/extension-port-stream-2.1.1.tgz#ec11f2a5ed95655d8c40805d7cb0c39939ee9ef4" @@ -6892,6 +8241,11 @@ fast-deep-equal@^2.0.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" integrity sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w== +fast-fifo@^1.0.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c" + integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ== + fast-glob@^3.2.9, fast-glob@^3.3.0: version "3.3.2" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" @@ -7018,7 +8372,7 @@ flat@^5.0.2: resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== -follow-redirects@^1.14.8, follow-redirects@^1.15.6: +follow-redirects@^1.14.0, follow-redirects@^1.14.8, follow-redirects@^1.15.6: version "1.15.6" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== @@ -7202,6 +8556,11 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2, get-intrinsic@ has-symbols "^1.0.3" hasown "^2.0.0" +get-iterator@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-iterator/-/get-iterator-1.0.2.tgz#cd747c02b4c084461fac14f48f6b45a80ed25c82" + integrity sha512-v+dm9bNVfOYsY1OrhaCrmyOcYoSeVvbt+hHZ0Au+T+p1y+0Uyj9aMaGIeUTT6xdpRbWzDeYKvfOslPhggQMcsg== + get-nonce@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3" @@ -7385,6 +8744,13 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globalthis@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz#5852882a52b80dc301b0660273e1ed082f0b6ccf" + integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== + dependencies: + define-properties "^1.1.3" + globby@11.1.0, globby@^11.0.3: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -7452,6 +8818,14 @@ h3@^1.10.2, h3@^1.11.1: uncrypto "^0.1.3" unenv "^1.9.0" +hamt-sharding@^3.0.0: + version "3.0.6" + resolved "https://registry.yarnpkg.com/hamt-sharding/-/hamt-sharding-3.0.6.tgz#3643107a3021af66ac95684aec87b196add5ba57" + integrity sha512-nZeamxfymIWLpVcAN0CRrb7uVq3hCOGj9IcL6NMA6VVCVWqj+h9Jo/SmaWuS92AEDf1thmHsM5D5c70hM3j2Tg== + dependencies: + sparse-array "^1.3.1" + uint8arrays "^5.0.1" + handlebars@^4.7.7: version "4.7.8" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" @@ -7759,6 +9133,11 @@ ignore@^5.0.4, ignore@^5.2.0, ignore@^5.2.4: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== +immediate@~3.0.5: + version "3.0.6" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" + integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== + import-fresh@^3.2.1, import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" @@ -7837,6 +9216,33 @@ inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^6.0.1" +interface-blockstore@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/interface-blockstore/-/interface-blockstore-4.0.1.tgz#0dda1774d72ca7e990dc1921cfc524b3e9d1b9ca" + integrity sha512-ROWKGJls7vLeFaQtI3hZVCJOkUoZ05xAi2t2qysM4d7dwVKrfm5jUOqWh8JgLL7Iup3XqJ0mKXXZuwJ3s03RSw== + dependencies: + interface-store "^3.0.0" + multiformats "^11.0.0" + +interface-datastore@^6.0.2: + version "6.1.1" + resolved "https://registry.yarnpkg.com/interface-datastore/-/interface-datastore-6.1.1.tgz#5150a00de2e7513eaadba58bcafd059cb50004c1" + integrity sha512-AmCS+9CT34pp2u0QQVXjKztkuq3y5T+BIciuiHDDtDZucZD8VudosnSdUyXJV6IsRkN5jc4RFDhCk1O6Q3Gxjg== + dependencies: + interface-store "^2.0.2" + nanoid "^3.0.2" + uint8arrays "^3.0.0" + +interface-store@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/interface-store/-/interface-store-2.0.2.tgz#83175fd2b0c501585ed96db54bb8ba9d55fce34c" + integrity sha512-rScRlhDcz6k199EkHqT8NpM87ebN89ICOzILoBHgaG36/WX50N32BnU/kpZgCGPLhARRAWUUX5/cyaIjt7Kipg== + +interface-store@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/interface-store/-/interface-store-3.0.4.tgz#670d95ef45f3b7061d154c3cbfaf39a538167ad7" + integrity sha512-OjHUuGXbH4eXSBx1TF1tTySvjLldPLzRSYYXJwrEQI+XfH5JWYZofr0gVMV4F8XTwC+4V7jomDYkvGRmDSRKqQ== + internal-slot@^1.0.4: version "1.0.7" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" @@ -7866,11 +9272,136 @@ ip-address@^9.0.5: jsbn "1.1.0" sprintf-js "^1.1.3" +ip-regex@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" + integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== + ipaddr.js@1.9.1: version "1.9.1" resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== +ipfs-core-types@^0.10.0, ipfs-core-types@^0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/ipfs-core-types/-/ipfs-core-types-0.10.3.tgz#89ebe98199d4d829f2b20104bfa3299f808c80fe" + integrity sha512-GNid2lRBjR5qgScCglgk7w9Hk3TZAwPHQXxOLQx72wgyc0jF2U5NXRoKW0GRvX8NPbHmsrFszForIqxd23I1Gw== + dependencies: + "@ipld/dag-pb" "^2.1.3" + interface-datastore "^6.0.2" + ipfs-unixfs "^6.0.3" + multiaddr "^10.0.0" + multiformats "^9.5.1" + +ipfs-core-utils@^0.14.0: + version "0.14.3" + resolved "https://registry.yarnpkg.com/ipfs-core-utils/-/ipfs-core-utils-0.14.3.tgz#d04c631c472507bdefc58d4e8d1d9109efbb411c" + integrity sha512-aBkewVhgAj3NWXPwu6imj0wADGiGVZmJzqKzODOJsibDjkx6FGdMv8kvvqtLnK8LS/dvSk9yk32IDtuDyYoV7Q== + dependencies: + any-signal "^3.0.0" + blob-to-it "^1.0.1" + browser-readablestream-to-it "^1.0.1" + debug "^4.1.1" + err-code "^3.0.1" + ipfs-core-types "^0.10.3" + ipfs-unixfs "^6.0.3" + ipfs-utils "^9.0.6" + it-all "^1.0.4" + it-map "^1.0.4" + it-peekable "^1.0.2" + it-to-stream "^1.0.0" + merge-options "^3.0.4" + multiaddr "^10.0.0" + multiaddr-to-uri "^8.0.0" + multiformats "^9.5.1" + nanoid "^3.1.23" + parse-duration "^1.0.0" + timeout-abort-controller "^3.0.0" + uint8arrays "^3.0.0" + +ipfs-http-client@56.0.0: + version "56.0.0" + resolved "https://registry.yarnpkg.com/ipfs-http-client/-/ipfs-http-client-56.0.0.tgz#f42fa2bbf987bfa128ce0025de5d668586f4a815" + integrity sha512-JF3on9c0hB9XHk/UCxbyC6rSpERuj8F/0QcN/HImZoHNUKZ0/T8DpgVopocKdmGi1gr3Izlop7poaXomSt8Nug== + dependencies: + "@ipld/dag-cbor" "^7.0.0" + "@ipld/dag-json" "^8.0.1" + "@ipld/dag-pb" "^2.1.3" + any-signal "^3.0.0" + dag-jose "^1.0.0" + debug "^4.1.1" + err-code "^3.0.1" + ipfs-core-types "^0.10.0" + ipfs-core-utils "^0.14.0" + ipfs-utils "^9.0.2" + it-first "^1.0.6" + it-last "^1.0.4" + merge-options "^3.0.4" + multiaddr "^10.0.0" + multiformats "^9.4.13" + parse-duration "^1.0.0" + stream-to-it "^0.2.2" + uint8arrays "^3.0.0" + +ipfs-unixfs-importer@^12.0.0: + version "12.0.1" + resolved "https://registry.yarnpkg.com/ipfs-unixfs-importer/-/ipfs-unixfs-importer-12.0.1.tgz#316a52d8a793e9e006b1ee43edc50b83e00ef306" + integrity sha512-//VPZOqbONtc1HNtb+sBrw+nIGijHEloSm1O3LVR5orSlhHQ8X7+OCkeqceFBhu40tPMe/TwgAPrkvh+fXL+bA== + dependencies: + "@ipld/dag-pb" "^4.0.0" + "@multiformats/murmur3" "^2.0.0" + err-code "^3.0.1" + hamt-sharding "^3.0.0" + interface-blockstore "^4.0.0" + ipfs-unixfs "^9.0.0" + it-all "^2.0.0" + it-batch "^2.0.0" + it-first "^2.0.0" + it-parallel-batch "^2.0.0" + merge-options "^3.0.4" + multiformats "^11.0.0" + rabin-wasm "^0.1.4" + uint8arraylist "^2.3.3" + uint8arrays "^4.0.2" + +ipfs-unixfs@^6.0.3: + version "6.0.9" + resolved "https://registry.yarnpkg.com/ipfs-unixfs/-/ipfs-unixfs-6.0.9.tgz#f6613b8e081d83faa43ed96e016a694c615a9374" + integrity sha512-0DQ7p0/9dRB6XCb0mVCTli33GzIzSVx5udpJuVM47tGcD+W+Bl4LsnoLswd3ggNnNEakMv1FdoFITiEnchXDqQ== + dependencies: + err-code "^3.0.1" + protobufjs "^6.10.2" + +ipfs-unixfs@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/ipfs-unixfs/-/ipfs-unixfs-9.0.1.tgz#d06e688e07ef4ce08d610337ba2fe8c143c386e7" + integrity sha512-jh2CbXyxID+v3jLml9CqMwjdSS9ZRnsGfQGGPOfem0/hT/L48xUeTPvh7qLFWkZcIMhZtG+fnS1teei8x5uGBg== + dependencies: + err-code "^3.0.1" + protobufjs "^7.0.0" + +ipfs-utils@^9.0.2, ipfs-utils@^9.0.6: + version "9.0.14" + resolved "https://registry.yarnpkg.com/ipfs-utils/-/ipfs-utils-9.0.14.tgz#24f5fda1f4567685eb32bca2543d518f95fd8704" + integrity sha512-zIaiEGX18QATxgaS0/EOQNoo33W0islREABAcxXE8n7y2MGAlB+hdsxXn4J0hGZge8IqVQhW8sWIb+oJz2yEvg== + dependencies: + any-signal "^3.0.0" + browser-readablestream-to-it "^1.0.0" + buffer "^6.0.1" + electron-fetch "^1.7.2" + err-code "^3.0.1" + is-electron "^2.2.0" + iso-url "^1.1.5" + it-all "^1.0.4" + it-glob "^1.0.1" + it-to-stream "^1.0.0" + merge-options "^3.0.4" + nanoid "^3.1.20" + native-fetch "^3.0.0" + node-fetch "^2.6.8" + react-native-fetch-api "^3.0.0" + stream-to-it "^0.2.2" + iron-webcrypto@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/iron-webcrypto/-/iron-webcrypto-1.1.0.tgz#f902f0cdbd77554b2195ecbb65558c311b01edfd" @@ -7973,6 +9504,11 @@ is-docker@^3.0.0: resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== +is-electron@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/is-electron/-/is-electron-2.2.2.tgz#3778902a2044d76de98036f5dc58089ac4d80bb9" + integrity sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg== + is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -8019,6 +9555,13 @@ is-interactive@^1.0.0: resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== +is-ip@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-3.1.0.tgz#2ae5ddfafaf05cb8008a62093cf29734f657c5d8" + integrity sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q== + dependencies: + ip-regex "^4.0.0" + is-lambda@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" @@ -8146,6 +9689,11 @@ is-typed-array@^1.1.3: dependencies: which-typed-array "^1.1.14" +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -8215,6 +9763,11 @@ isexe@^3.1.1: resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.1.tgz#4a407e2bd78ddfb14bea0c27c6f7072dde775f0d" integrity sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ== +iso-url@^1.1.5: + version "1.2.1" + resolved "https://registry.yarnpkg.com/iso-url/-/iso-url-1.2.1.tgz#db96a49d8d9a64a1c889fc07cc525d093afb1811" + integrity sha512-9JPDgCN4B7QPkLtYAAOrEuAWvP9rWvR5offAr0/SeF046wIkglqH3VXgYYP6NcsKslH80UIVgmPqNe3j7tG2ng== + isobject@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" @@ -8228,11 +9781,98 @@ isomorphic-unfetch@3.1.0: node-fetch "^2.6.1" unfetch "^4.2.0" +isomorphic-ws@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" + integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== + isows@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.3.tgz#93c1cf0575daf56e7120bab5c8c448b0809d0d74" integrity sha512-2cKei4vlmg2cxEjm3wVSqn8pcoRF/LX/wpifuuNquFO4SQmPwarClT+SUCA2lt+l581tTeZIPIZuIDo2jWN1fg== +it-all@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/it-all/-/it-all-1.0.6.tgz#852557355367606295c4c3b7eff0136f07749335" + integrity sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A== + +it-all@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-all/-/it-all-2.0.1.tgz#45d530ecf6e13fb81d7ba583cdfd55ffdb376b05" + integrity sha512-9UuJcCRZsboz+HBQTNOau80Dw+ryGaHYFP/cPYzFBJBFcfDathMYnhHk4t52en9+fcyDGPTdLB+lFc1wzQIroA== + +it-batch@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-batch/-/it-batch-2.0.1.tgz#a0822be9b18743c41d8525835f788a7f297ba41f" + integrity sha512-2gWFuPzamh9Dh3pW+OKjc7UwJ41W4Eu2AinVAfXDMfrC5gXfm3b1TF+1UzsygBUgKBugnxnGP+/fFRyn+9y1mQ== + +it-drain@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-drain/-/it-drain-2.0.1.tgz#f50f6ce5cb8592a9d6337c9b5e780348877b152d" + integrity sha512-ESuHV6MLUNxuSy0vGZpKhSRjW0ixczN1FhbVy7eGJHjX6U2qiiXTyMvDc0z/w+nifOOwPyI5DT9Rc3o9IaGqEQ== + +it-filter@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/it-filter/-/it-filter-2.0.2.tgz#c849b3de4a12a2de3cc45be734ee55f69a0ed284" + integrity sha512-gocw1F3siqupegsOzZ78rAc9C+sYlQbI2af/TmzgdrR613MyEJHbvfwBf12XRekGG907kqXSOGKPlxzJa6XV1Q== + +it-first@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/it-first/-/it-first-1.0.7.tgz#a4bef40da8be21667f7d23e44dae652f5ccd7ab1" + integrity sha512-nvJKZoBpZD/6Rtde6FXqwDqDZGF1sCADmr2Zoc0hZsIvnE449gRFnGctxDf09Bzc/FWnHXAdaHVIetY6lrE0/g== + +it-first@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-first/-/it-first-2.0.1.tgz#75d66b254c385ae3a1906def060a69006a437cef" + integrity sha512-noC1oEQcWZZMUwq7VWxHNLML43dM+5bviZpfmkxkXlvBe60z7AFRqpZSga9uQBo792jKv9otnn1IjA4zwgNARw== + +it-glob@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/it-glob/-/it-glob-1.0.2.tgz#bab9b04d6aaac42884502f3a0bfee84c7a29e15e" + integrity sha512-Ch2Dzhw4URfB9L/0ZHyY+uqOnKvBNeS/SMcRiPmJfpHiM0TsUZn+GkpcZxAoF3dJVdPm/PuIk3A4wlV7SUo23Q== + dependencies: + "@types/minimatch" "^3.0.4" + minimatch "^3.0.4" + +it-last@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/it-last/-/it-last-1.0.6.tgz#4106232e5905ec11e16de15a0e9f7037eaecfc45" + integrity sha512-aFGeibeiX/lM4bX3JY0OkVCFkAw8+n9lkukkLNivbJRvNz8lI3YXv5xcqhFUV2lDJiraEK3OXRDbGuevnnR67Q== + +it-map@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/it-map/-/it-map-1.0.6.tgz#6aa547e363eedcf8d4f69d8484b450bc13c9882c" + integrity sha512-XT4/RM6UHIFG9IobGlQPFQUrlEKkU4eBUFG3qhWhfAdh1JfF2x11ShCrKCdmZ0OiZppPfoLuzcfA4cey6q3UAQ== + +it-parallel-batch@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-parallel-batch/-/it-parallel-batch-2.0.1.tgz#23eb07bbeb73521253d7c8a1566b53137103077c" + integrity sha512-tXh567/JfDGJ90Zi//H9HkL7kY27ARp0jf2vu2jUI6PUVBWfsoT+gC4eT41/b4+wkJXSGgT8ZHnivAOlMfcNjA== + dependencies: + it-batch "^2.0.0" + +it-peekable@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/it-peekable/-/it-peekable-1.0.3.tgz#8ebe933767d9c5aa0ae4ef8e9cb3a47389bced8c" + integrity sha512-5+8zemFS+wSfIkSZyf0Zh5kNN+iGyccN02914BY4w/Dj+uoFEoPSvj5vaWn8pNZJNSxzjW0zHRxC3LUb2KWJTQ== + +it-take@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/it-take/-/it-take-2.0.1.tgz#f9e5ddf0b73a18ba00e62fb532d9d3cde3fe4ce6" + integrity sha512-DL7kpZNjuoeSTnB9dMAJ0Z3m2T29LRRAU+HIgkiQM+1jH3m8l9e/1xpWs8JHTlbKivbqSFrQMTc8KVcaQNmsaA== + +it-to-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/it-to-stream/-/it-to-stream-1.0.0.tgz#6c47f91d5b5df28bda9334c52782ef8e97fe3a4a" + integrity sha512-pLULMZMAB/+vbdvbZtebC0nWBTbG581lk6w8P7DfIIIKUfa8FbY7Oi0FxZcFPbxvISs7A9E+cMpLDBc1XhpAOA== + dependencies: + buffer "^6.0.3" + fast-fifo "^1.0.0" + get-iterator "^1.0.2" + p-defer "^3.0.0" + p-fifo "^1.0.0" + readable-stream "^3.6.0" + jackspeak@^2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8" @@ -8334,6 +9974,11 @@ jiti@^1.21.0: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== +jose@^4.14.4: + version "4.15.5" + resolved "https://registry.yarnpkg.com/jose/-/jose-4.15.5.tgz#6475d0f467ecd3c630a1b5dadd2735a7288df706" + integrity sha512-jc7BFxgKPKi94uOvEmzlSWFFe2+vASyXaKUpdQKatWAESU2MWjDfFf0fdfc83CDKcA5QecabZeNLyfhe3yKNkg== + joycon@^3.0.1: version "3.1.1" resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03" @@ -8486,6 +10131,16 @@ jsonwebtoken@^9.0.2: ms "^2.1.1" semver "^7.5.4" +jszip@^3.10.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2" + integrity sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g== + dependencies: + lie "~3.3.0" + pako "~1.0.2" + readable-stream "~2.3.6" + setimmediate "^1.0.5" + junk@3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/junk/-/junk-3.1.0.tgz#31499098d902b7e98c5d9b9c80f43457a88abfa1" @@ -8517,6 +10172,13 @@ keccak@^3.0.0, keccak@^3.0.3: node-gyp-build "^4.2.0" readable-stream "^3.6.0" +keygrip@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/keygrip/-/keygrip-1.1.0.tgz#871b1681d5e159c62a445b0c74b615e0917e7226" + integrity sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ== + dependencies: + tsscmp "1.0.6" + keyvaluestorage-interface@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/keyvaluestorage-interface/-/keyvaluestorage-interface-1.0.0.tgz#13ebdf71f5284ad54be94bd1ad9ed79adad515ff" @@ -8648,6 +10310,13 @@ libsodium@^0.7.13: resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.13.tgz#230712ec0b7447c57b39489c48a4af01985fb393" integrity sha512-mK8ju0fnrKXXfleL53vtp9xiPq5hKM0zbDQtcxQIsSmxNgSxqCj6R7Hl9PkrNe2j29T4yoDaF7DJLK9/i5iWUw== +lie@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" + integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ== + dependencies: + immediate "~3.0.5" + lilconfig@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" @@ -8717,7 +10386,7 @@ lit-element@^4.0.0: "@lit/reactive-element" "^2.0.4" lit-html "^3.1.2" -lit-html@^2.8.0: +lit-html@^2.7.0, lit-html@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.8.0.tgz#96456a4bb4ee717b9a7d2f94562a16509d39bffa" integrity sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q== @@ -8731,6 +10400,24 @@ lit-html@^3.1.0, lit-html@^3.1.2: dependencies: "@types/trusted-types" "^2.0.2" +lit-siwe@^1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/lit-siwe/-/lit-siwe-1.1.8.tgz#6a393069012816d629c518bb8aa410f1e4a78bd7" + integrity sha512-gXI8GG0GAClw6G7T9p4p6Kn9ywDo8j2d90ShaYArJdsqqO9gwXfzxF84SMeY+bpsNqqQ3FahrhEwTCHd6w7wNw== + dependencies: + "@spruceid/siwe-parser" "1.1.3" + "@stablelib/random" "^1.0.1" + apg-js "^4.1.1" + +lit@2.7.6: + version "2.7.6" + resolved "https://registry.yarnpkg.com/lit/-/lit-2.7.6.tgz#810007b876ed43e0c70124de91831921598b1665" + integrity sha512-1amFHA7t4VaaDe+vdQejSVBklwtH9svGoG6/dZi9JhxtJBBlqY5D1RV7iLUYY0trCqQc4NfhYYZilZiVHt7Hxg== + dependencies: + "@lit/reactive-element" "^1.6.0" + lit-element "^3.3.0" + lit-html "^2.7.0" + lit@2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/lit/-/lit-2.8.0.tgz#4d838ae03059bf9cafa06e5c61d8acc0081e974e" @@ -8879,7 +10566,7 @@ long@^4.0.0: resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.2.0: +long@^5.0.0, long@^5.2.0: version "5.2.3" resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== @@ -9369,7 +11056,46 @@ ms@2.1.3, ms@^2.0.0, ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -multiformats@^9.4.2, multiformats@^9.5.4: +multiaddr-to-uri@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/multiaddr-to-uri/-/multiaddr-to-uri-8.0.0.tgz#65efe4b1f9de5f6b681aa42ff36a7c8db7625e58" + integrity sha512-dq4p/vsOOUdVEd1J1gl+R2GFrXJQH8yjLtz4hodqdVbieg39LvBOdMQRdQnfbg5LSM/q1BYNVf5CBbwZFFqBgA== + dependencies: + multiaddr "^10.0.0" + +multiaddr@^10.0.0: + version "10.0.1" + resolved "https://registry.yarnpkg.com/multiaddr/-/multiaddr-10.0.1.tgz#0d15848871370860a4d266bb44d93b3dac5d90ef" + integrity sha512-G5upNcGzEGuTHkzxezPrrD6CaIHR9uo+7MwqhNVcXTs33IInon4y7nMiGxl2CY5hG7chvYQUQhz5V52/Qe3cbg== + dependencies: + dns-over-http-resolver "^1.2.3" + err-code "^3.0.1" + is-ip "^3.1.0" + multiformats "^9.4.5" + uint8arrays "^3.0.0" + varint "^6.0.0" + +multiformats@^10.0.2: + version "10.0.3" + resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-10.0.3.tgz#d4147d01f9a31271c6fb5d24adf9b01f9e656bba" + integrity sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw== + +multiformats@^11.0.0, multiformats@^11.0.2: + version "11.0.2" + resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-11.0.2.tgz#b14735efc42cd8581e73895e66bebb9752151b60" + integrity sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg== + +multiformats@^12.0.1: + version "12.1.3" + resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-12.1.3.tgz#cbf7a9861e11e74f8228b21376088cb43ba8754e" + integrity sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw== + +multiformats@^13.0.0, multiformats@^13.1.0: + version "13.1.0" + resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-13.1.0.tgz#5aa9d2175108a448fc3bdb54ba8a3d0b6cab3ac3" + integrity sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ== + +multiformats@^9.0.2, multiformats@^9.4.13, multiformats@^9.4.2, multiformats@^9.4.5, multiformats@^9.5.1, multiformats@^9.5.4, multiformats@^9.7.1: version "9.9.0" resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.9.0.tgz#c68354e7d21037a8f1f8833c8ccd68618e8f1d37" integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg== @@ -9385,6 +11111,11 @@ multimatch@5.0.0, multimatch@^5.0.0: arrify "^2.0.1" minimatch "^3.0.4" +murmurhash3js-revisited@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/murmurhash3js-revisited/-/murmurhash3js-revisited-3.0.0.tgz#6bd36e25de8f73394222adc6e41fa3fac08a5869" + integrity sha512-/sF3ee6zvScXMb1XFJ8gDsSnY+X8PbOyjIuBhtgis10W2Jx4ZjIhikUCIF9c4gpJxVnQIsPAFrSwTCuAjicP6g== + mute-stream@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" @@ -9414,11 +11145,16 @@ nanoid-dictionary@^5.0.0-beta.1: resolved "https://registry.yarnpkg.com/nanoid-dictionary/-/nanoid-dictionary-5.0.0-beta.1.tgz#f2a2aa05b04f7ac6a9327c62a96146e8aa1b025d" integrity sha512-xBkL9zzkNjzJ/UnmWyiOUDVX/COoi05eS0oU28RYKFFQhdnzO5dTOPbVZ/fCFgIOGr1zNinDHJ68mm/KQfcgcw== -nanoid@3, nanoid@^3.3.6, nanoid@^3.3.7: +nanoid@3, nanoid@^3.0.2, nanoid@^3.1.20, nanoid@^3.1.23, nanoid@^3.3.6, nanoid@^3.3.7: version "3.3.7" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== +nanoid@3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + napi-build-utils@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.2.tgz#b1fddc0b2c46e380a0b7a76f984dd47c41a13806" @@ -9429,6 +11165,11 @@ napi-wasm@^1.1.0: resolved "https://registry.yarnpkg.com/napi-wasm/-/napi-wasm-1.1.0.tgz#bbe617823765ae9c1bc12ff5942370eae7b2ba4e" integrity sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg== +native-fetch@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/native-fetch/-/native-fetch-3.0.0.tgz#06ccdd70e79e171c365c75117959cf4fe14a09bb" + integrity sha512-G3Z7vx0IFb/FQ4JxvtqGABsOTIqRWvgQz6e+erkB+JJD6LrszQtMozEHI4EkmgZQvnGHrpLVzUWk7t4sJCIkVw== + negotiator@0.6.3, negotiator@^0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" @@ -9439,6 +11180,11 @@ neo-async@^2.6.2: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== +next-tick@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" + integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== + node-abi@^3.3.0: version "3.57.0" resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.57.0.tgz#d772cb899236c0aa46778d0d25256917cf15eb15" @@ -9478,7 +11224,7 @@ node-fetch@2.6.7: dependencies: whatwg-url "^5.0.0" -node-fetch@^2.6.1, node-fetch@^2.6.12, node-fetch@^2.6.7: +node-fetch@^2.6.1, node-fetch@^2.6.12, node-fetch@^2.6.7, node-fetch@^2.6.8: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== @@ -9960,6 +11706,19 @@ os-tmpdir@~1.0.2: resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== +p-defer@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-3.0.0.tgz#d1dceb4ee9b2b604b1d94ffec83760175d4e6f83" + integrity sha512-ugZxsxmtTln604yeYd29EGrNhazN2lywetzpKhfmQjW/VJmhpDmWbiX+h0zL8V91R0UXkhb3KtPmyq9PZw3aYw== + +p-fifo@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-fifo/-/p-fifo-1.0.0.tgz#e29d5cf17c239ba87f51dde98c1d26a9cfe20a63" + integrity sha512-IjoCxXW48tqdtDFz6fqo5q1UfFVjjVZe8TC1QRflvNUJtNfCUhxOUw6MOVZhDPjqhSzc26xKdugsO17gmzd5+A== + dependencies: + fast-fifo "^1.0.0" + p-defer "^3.0.0" + p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" @@ -10071,6 +11830,16 @@ pacote@^17.0.5: ssri "^10.0.0" tar "^6.1.11" +pako@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pako/-/pako-2.1.0.tgz#266cc37f98c7d883545d11335c00fbd4062c9a86" + integrity sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug== + +pako@~1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" + integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== + parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" @@ -10078,6 +11847,11 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" +parse-duration@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/parse-duration/-/parse-duration-1.1.0.tgz#5192084c5d8f2a3fd676d04a451dbd2e05a1819c" + integrity sha512-z6t9dvSJYaPoQq7quMzdEagSFtpGu+utzHqqxmpVWNNZRIXnvqyCvn9XsTdh7c/w0Bqmdz3RB3YnRaKtpRtEXQ== + parse-entities@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8" @@ -10535,7 +12309,7 @@ property-information@^5.0.0: dependencies: xtend "^4.0.0" -protobufjs@~6.11.2: +protobufjs@^6.10.2, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: version "6.11.4" resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.4.tgz#29a412c38bf70d89e537b6d02d904a6f448173aa" integrity sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw== @@ -10554,6 +12328,24 @@ protobufjs@~6.11.2: "@types/node" ">=13.7.0" long "^4.0.0" +protobufjs@^7.0.0: + version "7.2.6" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.2.6.tgz#4a0ccd79eb292717aacf07530a07e0ed20278215" + integrity sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/node" ">=13.7.0" + long "^5.0.0" + protocols@^2.0.0, protocols@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" @@ -10649,6 +12441,18 @@ quick-lru@^4.0.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== +rabin-wasm@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/rabin-wasm/-/rabin-wasm-0.1.5.tgz#5b625ca007d6a2cbc1456c78ae71d550addbc9c9" + integrity sha512-uWgQTo7pim1Rnj5TuWcCewRDTf0PEFTSlaUjWP4eY9EbLV9em08v89oCz/WO+wRxpYuO36XEHp4wgYQnAgOHzA== + dependencies: + "@assemblyscript/loader" "^0.9.4" + bl "^5.0.0" + debug "^4.3.1" + minimist "^1.2.5" + node-fetch "^2.6.1" + readable-stream "^3.6.0" + radix3@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0" @@ -10767,6 +12571,13 @@ react-is@^18.0.0, react-is@^18.2.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== +react-native-fetch-api@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/react-native-fetch-api/-/react-native-fetch-api-3.0.0.tgz#81e1bb6562c292521bc4eca52fe1097f4c1ebab5" + integrity sha512-g2rtqPjdroaboDKTsJCTlcmtw54E25OjyaunUP0anOZn4Fuo2IKs8BVfe02zVggA/UysbmfSnRJIqtNkAgggNA== + dependencies: + p-defer "^3.0.0" + react-native-webview@^11.26.0: version "11.26.1" resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-11.26.1.tgz#658c09ed5162dc170b361e48c2dd26c9712879da" @@ -11003,6 +12814,13 @@ real-require@^0.1.0: resolved "https://registry.yarnpkg.com/real-require/-/real-require-0.1.0.tgz#736ac214caa20632847b7ca8c1056a0767df9381" integrity sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg== +receptacle@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/receptacle/-/receptacle-1.3.2.tgz#a7994c7efafc7a01d0e2041839dab6c4951360d2" + integrity sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A== + dependencies: + ms "^2.1.1" + rechoir@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" @@ -11114,6 +12932,11 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" +retimer@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/retimer/-/retimer-3.0.0.tgz#98b751b1feaf1af13eb0228f8ea68b8f9da530df" + integrity sha512-WKE0j11Pa0ZJI5YIk0nflGI7SQsfl2ljihVy7ogh7DeQSeYAUi0ubZ/yEueGtDfUPk6GH5LRw1hBdLq4IwUBWA== + retry@0.13.1: version "0.13.1" resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" @@ -11362,6 +13185,11 @@ sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: inherits "^2.0.1" safe-buffer "^5.0.1" +sha256-uint8array@^0.10.7: + version "0.10.7" + resolved "https://registry.yarnpkg.com/sha256-uint8array/-/sha256-uint8array-0.10.7.tgz#c751fc914f4227b26d996980562065fa4eadcf99" + integrity sha512-1Q6JQU4tX9NqsDGodej6pkrUVQVNapLZnvkwIhddH/JqzBZF1fSaxSWNY6sziXBE8aEa2twtGkXUrwzGeZCMpQ== + sha3@^2.1.1, sha3@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/sha3/-/sha3-2.1.4.tgz#000fac0fe7c2feac1f48a25e7a31b52a6492cc8f" @@ -11467,7 +13295,16 @@ simple-get@^4.0.0: once "^1.3.1" simple-concat "^1.0.0" -siwe@^2.1.4: +siwe-recap@0.0.2-alpha.0: + version "0.0.2-alpha.0" + resolved "https://registry.yarnpkg.com/siwe-recap/-/siwe-recap-0.0.2-alpha.0.tgz#75a0902c10a8ba5b4471f40e4eafb0afb2f8db59" + integrity sha512-xqFUnvrACWW/Q4s5HQ02avg8IyH2RcgkUzfvN4scYaaHErotLVtTGDZkSS0sn/oNK4MXRt83lTqredsvXgt8iA== + dependencies: + canonicalize "^2.0.0" + multiformats "^11.0.2" + siwe "^2.1.4" + +siwe@^2.0.5, siwe@^2.1.4: version "2.2.0" resolved "https://registry.yarnpkg.com/siwe/-/siwe-2.2.0.tgz#dc025007acb210179396f5f099e618f9d941cfd2" integrity sha512-P8It3ztpGJM4pum3larVVXpR6KeP7G1wnul4EEmuT3LSPVcab+kkX9reoFcErHRPcBt+eVyrEJkAYD50vVRJ0A== @@ -11582,6 +13419,11 @@ space-separated-tokens@^1.0.0: resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA== +sparse-array@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/sparse-array/-/sparse-array-1.3.2.tgz#0e1a8b71706d356bc916fe754ff496d450ec20b0" + integrity sha512-ZT711fePGn3+kQyLuv1fpd3rNSkNF8vd5Kv2D+qnOANeyKs3fx6bUMGWRPvgTTcYV64QMqZKZwcuaQSP3AZ0tg== + spdx-correct@^3.0.0: version "3.2.0" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" @@ -11685,6 +13527,13 @@ stream-shift@^1.0.2: resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.3.tgz#85b8fab4d71010fc3ba8772e8046cc49b8a3864b" integrity sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ== +stream-to-it@^0.2.2: + version "0.2.4" + resolved "https://registry.yarnpkg.com/stream-to-it/-/stream-to-it-0.2.4.tgz#d2fd7bfbd4a899b4c0d6a7e6a533723af5749bd0" + integrity sha512-4vEbkSs83OahpmBybNJXlJd7d6/RxzkkSdT3I0mnGt79Xd2Kk+e1JqbvAvsQfCeKj3aKb0QIWkyK3/n0j506vQ== + dependencies: + get-iterator "^1.0.2" + strict-uri-encode@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" @@ -11796,6 +13645,11 @@ strong-log-transformer@2.1.0, strong-log-transformer@^2.1.0: minimist "^1.2.0" through "^2.3.4" +sturdy-websocket@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/sturdy-websocket/-/sturdy-websocket-0.2.1.tgz#20a58fd53372ef96eaa08f3c61c91a10b07c7c05" + integrity sha512-NnzSOEKyv4I83qbuKw9ROtJrrT6Z/Xt7I0HiP/e6H6GnpeTDvzwGIGeJ8slai+VwODSHQDooW2CAilJwT9SpRg== + style-value-types@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-5.0.0.tgz#76c35f0e579843d523187989da866729411fc8ad" @@ -11866,6 +13720,11 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +symbol-observable@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-2.0.3.tgz#5b521d3d07a43c351055fa43b8355b62d33fd16a" + integrity sha512-sQV7phh2WCYAn81oAkakC5qjq2Ml0g8ozqz03wOGnx9dDlG1de6yrF+0RAzSJD8fPUow3PTSMf2SAbOGxb93BA== + symbol-observable@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" @@ -12017,6 +13876,13 @@ through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6: resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== +timeout-abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/timeout-abort-controller/-/timeout-abort-controller-3.0.0.tgz#dd57ffca041652c03769904f8d95afd93fb95595" + integrity sha512-O3e+2B8BKrQxU2YRyEjC/2yFdb33slI22WRdUaDx6rvysfi9anloNZyR2q0l6LnePo5qH7gSM7uZtvvwZbc2yA== + dependencies: + retimer "^3.0.0" + tiny-secp256k1@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz#7e224d2bee8ab8283f284e40e6b4acb74ffe047c" @@ -12129,6 +13995,11 @@ tslib@1.14.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== +tslib@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" + integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== + tslib@2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" @@ -12139,6 +14010,11 @@ tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== +tsscmp@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.6.tgz#85b99583ac3589ec4bfef825b5000aa911d605eb" + integrity sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA== + tsup@^8.0.2: version "8.0.2" resolved "https://registry.yarnpkg.com/tsup/-/tsup-8.0.2.tgz#c63192a08386515103e2c44ac5a23bdff75c5fa1" @@ -12184,6 +14060,11 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" +tweetnacl-util@^0.13.3: + version "0.13.5" + resolved "https://registry.yarnpkg.com/tweetnacl-util/-/tweetnacl-util-0.13.5.tgz#e39cd5d99709ee7125a18b03895b45a1299e475f" + integrity sha512-/4Q3hpPFAnbBjNLLOmdTdyvInBfZcQBTWy+LWbypmWxAKwOpSQOyyv4ZZts4CoiYtS8Skyix5CkOWytf7XNK9A== + tweetnacl-util@^0.15.1: version "0.15.1" resolved "https://registry.yarnpkg.com/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz#b80fcdb5c97bcc508be18c44a4be50f022eea00b" @@ -12227,12 +14108,24 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +type@^2.7.2: + version "2.7.2" + resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" + integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typeforce@^1.11.5: +typeforce@^1.11.3, typeforce@^1.11.5: version "1.18.0" resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== @@ -12258,7 +14151,7 @@ typeorm@^0.3.19: uuid "^9.0.0" yargs "^17.6.2" -"typescript@>=3 < 6", typescript@^5.3.3: +"typescript@>=3 < 6", typescript@^5.1, typescript@^5.3.3: version "5.4.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== @@ -12280,6 +14173,13 @@ uid-safe@~2.1.5: dependencies: random-bytes "~1.0.0" +uint8arraylist@^2.3.3: + version "2.4.8" + resolved "https://registry.yarnpkg.com/uint8arraylist/-/uint8arraylist-2.4.8.tgz#5a4d17f4defd77799cb38e93fd5db0f0dceddc12" + integrity sha512-vc1PlGOzglLF0eae1M8mLRTBivsvrGsdmJ5RbK3e+QRvRLOZfZhQROTwH/OfyF3+ZVUg9/8hE8bmKP2CvP9quQ== + dependencies: + uint8arrays "^5.0.1" + uint8arrays@^3.0.0, uint8arrays@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-3.1.1.tgz#2d8762acce159ccd9936057572dade9459f65ae0" @@ -12287,6 +14187,20 @@ uint8arrays@^3.0.0, uint8arrays@^3.1.0: dependencies: multiformats "^9.4.2" +uint8arrays@^4.0.2, uint8arrays@^4.0.3: + version "4.0.10" + resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-4.0.10.tgz#3ec5cde3348903c140e87532fc53f46b8f2e921f" + integrity sha512-AnJNUGGDJAgFw/eWu/Xb9zrVKEGlwJJCaeInlf3BkecE/zcTobk5YXYIPNQJO1q5Hh1QZrQQHf0JvcHqz2hqoA== + dependencies: + multiformats "^12.0.1" + +uint8arrays@^5.0.1: + version "5.0.3" + resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-5.0.3.tgz#92b894d9c4269ba97c51544d6e1f279fe6f80d1f" + integrity sha512-6LBuKji28kHjgPJMkQ6GDaBb1lRwIhyOYq6pDGwYMoDPfImE9SkuYENVmR0yu9yGgs2clHUSY9fKDukR+AXfqQ== + dependencies: + multiformats "^13.0.0" + uncrypto@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b" @@ -12432,6 +14346,13 @@ usehooks-ts@^2.15.1: dependencies: lodash.debounce "^4.0.8" +utf-8-validate@^5.0.2: + version "5.0.10" + resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" + integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ== + dependencies: + node-gyp-build "^4.3.0" + utf-8-validate@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-6.0.3.tgz#7d8c936d854e86b24d1d655f138ee27d2636d777" @@ -12502,6 +14423,14 @@ validate-npm-package-name@^3.0.0: dependencies: builtins "^1.0.3" +valtio@1.11.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.11.0.tgz#c029dcd17a0f99d2fbec933721fe64cfd32a31ed" + integrity sha512-65Yd0yU5qs86b5lN1eu/nzcTgQ9/6YnD6iO+DDaDbQLn1Zv2w12Gwk43WkPlUBxk5wL/6cD5YMFf7kj6HZ1Kpg== + dependencies: + proxy-compare "2.5.1" + use-sync-external-store "1.2.0" + valtio@1.11.2: version "1.11.2" resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.11.2.tgz#b8049c02dfe65620635d23ebae9121a741bb6530" @@ -12520,11 +14449,51 @@ value-or-promise@^1.0.12: resolved "https://registry.yarnpkg.com/value-or-promise/-/value-or-promise-1.0.12.tgz#0e5abfeec70148c78460a849f6b003ea7986f15c" integrity sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q== +varint@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/varint/-/varint-6.0.0.tgz#9881eb0ce8feaea6512439d19ddf84bf551661d0" + integrity sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg== + +varuint-bitcoin@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/varuint-bitcoin/-/varuint-bitcoin-1.1.2.tgz#e76c138249d06138b480d4c5b40ef53693e24e92" + integrity sha512-4EVb+w4rx+YfVM32HQX42AbbT7/1f5zwAYhIujKXKk8NQK+JfRVl3pqT3hjNn/L+RstigmGGKVwHA/P0wgITZw== + dependencies: + safe-buffer "^5.1.1" + vary@^1, vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== +viem@2.8.6: + version "2.8.6" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.8.6.tgz#7467a0f113b4b13dd53fde4797aec1e686672f03" + integrity sha512-LqxLOSFtXfbC3tsiZ8Km8jKR4ktTOLfigL2dR9IN28He2+QrNhYvvwGPz3P4hbfU12Wvuxo6mWGZ2L1lpNtvrA== + dependencies: + "@adraffy/ens-normalize" "1.10.0" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@scure/bip32" "1.3.2" + "@scure/bip39" "1.2.1" + abitype "1.0.0" + isows "1.0.3" + ws "8.13.0" + +viem@2.x, viem@^2.7.11: + version "2.9.16" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.16.tgz#2127871db1908a70798eddb820024b5f0ddc9152" + integrity sha512-FQRfN4G7uKEUs5DYvVrH/kZmTkwcSDpTBxnadpwG1EEP8nHm57WDpSaGN7PwSPVgJ6rMo5MENT5hgnqaNTlb2w== + dependencies: + "@adraffy/ens-normalize" "1.10.0" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@scure/bip32" "1.3.2" + "@scure/bip39" "1.2.1" + abitype "1.0.0" + isows "1.0.3" + ws "8.13.0" + viem@^1.0.0, viem@^1.1.4: version "1.21.4" resolved "https://registry.yarnpkg.com/viem/-/viem-1.21.4.tgz#883760e9222540a5a7e0339809202b45fe6a842d" @@ -12539,20 +14508,6 @@ viem@^1.0.0, viem@^1.1.4: isows "1.0.3" ws "8.13.0" -viem@^2.7.11: - version "2.9.16" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.16.tgz#2127871db1908a70798eddb820024b5f0ddc9152" - integrity sha512-FQRfN4G7uKEUs5DYvVrH/kZmTkwcSDpTBxnadpwG1EEP8nHm57WDpSaGN7PwSPVgJ6rMo5MENT5hgnqaNTlb2w== - dependencies: - "@adraffy/ens-normalize" "1.10.0" - "@noble/curves" "1.2.0" - "@noble/hashes" "1.3.2" - "@scure/bip32" "1.3.2" - "@scure/bip39" "1.2.1" - abitype "1.0.0" - isows "1.0.3" - ws "8.13.0" - vite@^5.2.0: version "5.2.8" resolved "https://registry.yarnpkg.com/vite/-/vite-5.2.8.tgz#a99e09939f1a502992381395ce93efa40a2844aa" @@ -12597,6 +14552,11 @@ web-vitals@^2.1.4: resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-2.1.4.tgz#76563175a475a5e835264d373704f9dde718290c" integrity sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg== +web-vitals@^3.0.4: + version "3.5.2" + resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-3.5.2.tgz#5bb58461bbc173c3f00c2ddff8bfe6e680999ca9" + integrity sha512-c0rhqNcHXRkY/ogGDJQxZ9Im9D19hDihbzSQJrsioex+KnFgmMzBiy57Z1EjkhX/+OjyBpclDCzz2ITtjokFmg== + webextension-polyfill-ts@^0.25.0: version "0.25.0" resolved "https://registry.yarnpkg.com/webextension-polyfill-ts/-/webextension-polyfill-ts-0.25.0.tgz#fff041626365dbd0e29c40b197e989a55ec221ca" @@ -12624,6 +14584,18 @@ webidl-conversions@^4.0.2: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== +websocket@^1.0.34: + version "1.0.34" + resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111" + integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ== + dependencies: + bufferutil "^4.0.1" + debug "^2.2.0" + es5-ext "^0.10.50" + typedarray-to-buffer "^3.1.5" + utf-8-validate "^5.0.2" + yaeti "^0.0.6" + whatwg-mimetype@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7" @@ -12808,7 +14780,12 @@ ws@8.13.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== -ws@^7.5.1: +ws@8.5.0: + version "8.5.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f" + integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== + +ws@^7, ws@^7.5.1: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== @@ -12831,6 +14808,14 @@ xss@^1.0.8: commander "^2.20.3" cssfilter "0.0.10" +xstream@^11.14.0: + version "11.14.0" + resolved "https://registry.yarnpkg.com/xstream/-/xstream-11.14.0.tgz#2c071d26b18310523b6877e86b4e54df068a9ae5" + integrity sha512-1bLb+kKKtKPbgTK6i/BaoAn03g47PpFstlbe1BA+y3pNS/LfvcaghS5BFf9+EE1J+KwSQsEpfJvFN5GqFtiNmw== + dependencies: + globalthis "^1.0.1" + symbol-observable "^2.0.3" + xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" @@ -12846,6 +14831,11 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yaeti@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577" + integrity sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug== + yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" @@ -12944,7 +14934,7 @@ zen-observable@0.8.15: resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15" integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ== -zod@3.22.4: +zod@3.22.4, zod@^3.22.4: version "3.22.4" resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg== @@ -12955,3 +14945,10 @@ zustand@4.4.1: integrity sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw== dependencies: use-sync-external-store "1.2.0" + +zustand@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.2.tgz#fddbe7cac1e71d45413b3682cdb47b48034c3848" + integrity sha512-2cN1tPkDVkwCy5ickKrI7vijSjPksFRfqS6237NzT0vqSsztTNnQdHw9mmN7uBdk3gceVXU0a+21jFzFzAc9+g== + dependencies: + use-sync-external-store "1.2.0" From d2daed4cac0187c599d526ceb80a0cf5c33eb7be Mon Sep 17 00:00:00 2001 From: Gilbert Date: Tue, 23 Apr 2024 21:10:20 -0500 Subject: [PATCH 2/3] Sign in with google --- packages/backend/src/routes/auth.ts | 42 ++++++--- packages/backend/src/server.ts | 2 +- packages/backend/src/service.ts | 10 ++- packages/frontend/package.json | 14 +-- packages/frontend/src/App.tsx | 8 +- packages/frontend/src/pages/auth/Login.tsx | 94 ++++++++++++++++++--- packages/frontend/src/pages/auth/SignUp.tsx | 80 ++++++++++++++---- packages/frontend/src/utils/siwe.ts | 19 +++-- packages/frontend/src/utils/use-snowball.ts | 9 +- yarn.lock | 14 +-- 10 files changed, 222 insertions(+), 70 deletions(-) diff --git a/packages/backend/src/routes/auth.ts b/packages/backend/src/routes/auth.ts index 4d2da019..e1214bbc 100644 --- a/packages/backend/src/routes/auth.ts +++ b/packages/backend/src/routes/auth.ts @@ -1,37 +1,55 @@ import { Router } from 'express'; import { SiweMessage } from 'siwe'; +import { Service } from '../service'; const router = Router(); router.post('/validate', async (req, res) => { - const { message, signature } = req.body; + const { message, signature, action } = req.body; const { success, data } = await new SiweMessage(message).verify({ signature, }); - if (success) { - req.session.address = data.address; - req.session.chainId = data.chainId; + if (!success) { + return res.send({ success }); } + const service: Service = req.app.get('service'); + const user = await service.getUserByEthAddress(data.address); + + if (action === 'signup') { + if (user) { + return res.send({ success: false, error: 'user_already_exists' }); + } + const newUser = await service.loadOrCreateUser(data.address); + req.session.userId = newUser.id; + } else if (action === 'login') { + if (!user) { + return res.send({ success: false, error: 'user_not_found' }); + } + req.session.userId = user.id; + } + + req.session.address = data.address; + res.send({ success }); }); router.get('/session', (req, res) => { - if (req.session.address && req.session.chainId) { - res.send({ address: req.session.address, chainId: req.session.chainId }); + if (req.session.address) { + res.send({ + userId: req.session.userId, + address: req.session.address, + }); } else { res.status(401).send({ error: 'Unauthorized: No active session' }); } }); router.post('/logout', (req, res) => { - req.session.destroy((err) => { - if (err) { - return res.send({ success: false }); - } - res.send({ success: true }); - }); + // This is how you clear cookie-session + (req as any).session = null; + res.send({ success: true }); }); export default router; diff --git a/packages/backend/src/server.ts b/packages/backend/src/server.ts index f89aa979..fa8b7d46 100644 --- a/packages/backend/src/server.ts +++ b/packages/backend/src/server.ts @@ -23,8 +23,8 @@ const log = debug('snowball:server'); declare module 'express-session' { interface SessionData { + userId: string; address: string; - chainId: number; } } diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index 5211585c..ff304fde 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -161,13 +161,17 @@ export class Service { }); } - async loadOrCreateUser (ethAddress: string): Promise { - // Get user by ETH address - let user = await this.db.getUser({ + async getUserByEthAddress (ethAddress: string): Promise { + return await this.db.getUser({ where: { ethAddress } }); + } + + async loadOrCreateUser (ethAddress: string): Promise { + // Get user by ETH address + let user = await this.getUserByEthAddress(ethAddress); if (!user) { const [org] = await this.db.getOrganizations({}); diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 84bca501..91b671f8 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -21,14 +21,14 @@ "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-tooltip": "^1.0.7", - "@snowballtools/auth": "0.1.0", - "@snowballtools/auth-lit": "0.1.0", - "@snowballtools/js-sdk": "0.1.0", - "@snowballtools/link-lit-alchemy-light": "0.1.0", + "@snowballtools/auth": "^0.1.0", + "@snowballtools/auth-lit": "^0.1.0", + "@snowballtools/js-sdk": "^0.1.0", + "@snowballtools/link-lit-alchemy-light": "^0.1.0", "@snowballtools/material-tailwind-react-fork": "^2.1.10", - "@snowballtools/smartwallet-alchemy-light": "0.1.0", - "@snowballtools/types": "0.1.0", - "@snowballtools/utils": "0.1.0", + "@snowballtools/smartwallet-alchemy-light": "^0.1.0", + "@snowballtools/types": "^0.1.0", + "@snowballtools/utils": "^0.1.0", "@tanstack/react-query": "^5.22.2", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", diff --git a/packages/frontend/src/App.tsx b/packages/frontend/src/App.tsx index 50533798..eae3b12c 100644 --- a/packages/frontend/src/App.tsx +++ b/packages/frontend/src/App.tsx @@ -64,10 +64,8 @@ function App() { }).then((res) => { if (res.status !== 200) { localStorage.clear(); - if ( - window.location.pathname !== '/login' && - window.location.pathname !== '/signup' - ) { + const path = window.location.pathname; + if (path !== '/login' && path !== '/signup') { window.location.pathname = '/login'; } } @@ -76,7 +74,7 @@ function App() { return ( - ; + ); } diff --git a/packages/frontend/src/pages/auth/Login.tsx b/packages/frontend/src/pages/auth/Login.tsx index 8b95143d..0757cf26 100644 --- a/packages/frontend/src/pages/auth/Login.tsx +++ b/packages/frontend/src/pages/auth/Login.tsx @@ -9,12 +9,15 @@ import { import { GoogleIcon } from 'components/shared/CustomIcon/GoogleIcon'; import { DotBorder } from 'components/shared/DotBorder'; import { WavyBorder } from 'components/shared/WavyBorder'; -import { useState } from 'react'; +import { useEffect, useState } from 'react'; import { CreatePasskey } from './CreatePasskey'; import { AppleIcon } from 'components/shared/CustomIcon/AppleIcon'; import { KeyIcon } from 'components/shared/CustomIcon/KeyIcon'; import { useToast } from 'components/shared/Toast'; import { Link } from 'react-router-dom'; +import { PKPEthersWallet } from '@lit-protocol/pkp-ethers'; +import { signInWithEthereum } from 'utils/siwe'; +import { useSnowball } from 'utils/use-snowball'; type Provider = 'google' | 'github' | 'apple' | 'email' | 'passkey'; @@ -23,6 +26,8 @@ type Props = { }; export const Login = ({ onDone }: Props) => { + const snowball = useSnowball(); + const [error, setError] = useState(''); const [provider, setProvider] = useState(false); // const loading = snowball.auth.state.loading && provider; @@ -33,6 +38,59 @@ export const Login = ({ onDone }: Props) => { return ; } + async function handleSigninRedirect() { + let wallet: PKPEthersWallet | undefined; + const { google } = snowball.auth; + if (google.canHandleOAuthRedirectBack()) { + setProvider('google'); + console.log('Handling google redirect back'); + try { + await google.handleOAuthRedirectBack(); + wallet = await google.getEthersWallet(); + const result = await signInWithEthereum(1, 'login', wallet); + if (result.error) { + setError(result.error); + setProvider(false); + wallet = undefined; + return; + } + } catch (err: any) { + setError(err.message); + console.log(err.message, err.name, err.details); + setProvider(false); + return; + } + } + // if (apple.canHandleOAuthRedirectBack()) { + // setProvider('apple'); + // console.log('Handling apple redirect back'); + // try { + // await apple.handleOAuthRedirectBack(); + // wallet = await apple.getEthersWallet(); + // const result = await signInWithEthereum(1, 'login', wallet); + // if (result.error) { + // setError(result.error); + // setProvider(false); + // wallet = undefined; + // return; + // } + // } catch (err: any) { + // setError(err.message); + // console.log(err.message, err.name, err.details); + // setProvider(false); + // return; + // } + // } + + if (wallet) { + window.location.pathname = '/'; + } + } + + useEffect(() => { + handleSigninRedirect(); + }, []); + return (
@@ -114,7 +172,7 @@ export const Login = ({ onDone }: Props) => { } onClick={() => { setProvider('google'); - // snowball.auth.createPasskey(); + snowball.auth.google.startOAuthRedirect(); }} className="flex-1 self-stretch" variant={'tertiary'} @@ -157,6 +215,7 @@ export const Login = ({ onDone }: Props) => { } onClick={async () => { setProvider('apple'); + // snowball.auth.apple.startOAuthRedirect(); await new Promise((resolve) => setTimeout(resolve, 800)); setProvider(false); toast({ @@ -175,17 +234,26 @@ export const Login = ({ onDone }: Props) => { Continue with Apple
-
-
- Don't have an account? -
-
- - Sign up now - + +
+ {error && ( +
+
Error: {error}
+
+ )} + +
+
+ Don't have an account? +
+
+ + Sign up now + +
diff --git a/packages/frontend/src/pages/auth/SignUp.tsx b/packages/frontend/src/pages/auth/SignUp.tsx index a9ac9588..bcfa48db 100644 --- a/packages/frontend/src/pages/auth/SignUp.tsx +++ b/packages/frontend/src/pages/auth/SignUp.tsx @@ -19,12 +19,15 @@ import { signInWithEthereum } from 'utils/siwe'; type Provider = 'google' | 'github' | 'apple' | 'email'; +type Err = { type: 'email' | 'provider'; message: string }; + type Props = { onDone: () => void; }; export const SignUp = ({ onDone }: Props) => { const [email, setEmail] = useState(''); + const [error, setError] = useState(); const [provider, setProvider] = useState(false); const { toast } = useToast(); @@ -32,13 +35,43 @@ export const SignUp = ({ onDone }: Props) => { async function handleSignupRedirect() { let wallet: PKPEthersWallet | undefined; - const google = snowball.auth.google; + const { google } = snowball.auth; if (google.canHandleOAuthRedirectBack()) { setProvider('google'); - await google.handleOAuthRedirectBack(); - wallet = await google.getEthersWallet(); - await signInWithEthereum(wallet); + try { + await google.handleOAuthRedirectBack(); + wallet = await google.getEthersWallet(); + const result = await signInWithEthereum(1, 'signup', wallet); + if (result.error) { + setError({ type: 'provider', message: result.error }); + setProvider(false); + wallet = undefined; + return; + } + } catch (err: any) { + setError({ type: 'provider', message: err.message }); + setProvider(false); + return; + } } + // if (apple.canHandleOAuthRedirectBack()) { + // setProvider('apple'); + // try { + // await apple.handleOAuthRedirectBack(); + // wallet = await apple.getEthersWallet(); + // const result = await signInWithEthereum(1, 'signup', wallet); + // if (result.error) { + // setError({ type: 'provider', message: result.error }); + // setProvider(false); + // wallet = undefined; + // return; + // } + // } catch (err: any) { + // setError({ type: 'provider', message: err.message }); + // setProvider(false); + // return; + // } + // } if (wallet) { onDone(); @@ -118,6 +151,7 @@ export const SignUp = ({ onDone }: Props) => { } onClick={async () => { setProvider('apple'); + // snowball.auth.apple.startOAuthRedirect(); await new Promise((resolve) => setTimeout(resolve, 800)); setProvider(false); toast({ @@ -137,6 +171,12 @@ export const SignUp = ({ onDone }: Props) => {
+ {error && error.type === 'provider' && ( +
+
Error: {error.message}
+
+ )} +
@@ -166,18 +206,26 @@ export const SignUp = ({ onDone }: Props) => { > Continue with Email - -
-
- Already an user? -
-
- - Sign in now - +
+ {error && error.type === 'email' && ( +
+
+ Error: {error.message} +
+
+ )} +
+
+ Already an user? +
+
+ + Sign in now + +
diff --git a/packages/frontend/src/utils/siwe.ts b/packages/frontend/src/utils/siwe.ts index b66e436c..4eccc740 100644 --- a/packages/frontend/src/utils/siwe.ts +++ b/packages/frontend/src/utils/siwe.ts @@ -5,8 +5,13 @@ import { v4 as uuid } from 'uuid'; const domain = window.location.host; const origin = window.location.origin; -export async function signInWithEthereum(wallet: PKPEthersWallet) { +export async function signInWithEthereum( + chainId: number, + action: 'signup' | 'login', + wallet: PKPEthersWallet, +) { const message = await createSiweMessage( + chainId, await wallet.getAddress(), 'Sign in with Ethereum to the app.', ); @@ -17,20 +22,24 @@ export async function signInWithEthereum(wallet: PKPEthersWallet) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ message, signature }), + body: JSON.stringify({ action, message, signature }), credentials: 'include', }); - console.log(await res.text()); + return (await res.json()) as { success: boolean; error?: string }; } -async function createSiweMessage(address: string, statement: string) { +async function createSiweMessage( + chainId: number, + address: string, + statement: string, +) { const message = new SiweMessage({ domain, address, statement, uri: origin, version: '1', - chainId: 1, + chainId, nonce: uuid().replace(/[^a-z0-9]/g, ''), }); return message.prepareMessage(); diff --git a/packages/frontend/src/utils/use-snowball.ts b/packages/frontend/src/utils/use-snowball.ts index 45e174b7..1b04f90b 100644 --- a/packages/frontend/src/utils/use-snowball.ts +++ b/packages/frontend/src/utils/use-snowball.ts @@ -1,11 +1,18 @@ import { useEffect, useState } from 'react'; import { Snowball, SnowballChain } from '@snowballtools/js-sdk'; -import { LitGoogleAuth, LitPasskeyAuth } from '@snowballtools/auth-lit'; +import { + // LitAppleAuth, + LitGoogleAuth, + LitPasskeyAuth, +} from '@snowballtools/auth-lit'; export const snowball = Snowball.withAuth({ google: LitGoogleAuth.configure({ litRelayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, }), + // apple: LitAppleAuth.configure({ + // litRelayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, + // }), passkey: LitPasskeyAuth.configure({ litRelayApiKey: import.meta.env.VITE_LIT_RELAY_API_KEY!, }), diff --git a/yarn.lock b/yarn.lock index baa23f4b..cbd9ec1b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3960,7 +3960,7 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== -"@snowballtools/auth-lit@0.1.0": +"@snowballtools/auth-lit@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/auth-lit/-/auth-lit-0.1.0.tgz#1ed97cf55dd20c29b46ee3e5ad053662e17fdc41" integrity sha512-WfGbdqd34I5wDcviSn9f8I1aTpY0ExJYGvkrwy/l0aeEotRBXoMDFNAM23RQN/aYzaewCOYGTPl1DJ1/hBYDyw== @@ -3975,7 +3975,7 @@ "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/auth@*", "@snowballtools/auth@0.1.0": +"@snowballtools/auth@*", "@snowballtools/auth@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/auth/-/auth-0.1.0.tgz#f6bca8e631d754b524525153769bf28fa956cfa8" integrity sha512-jsviORyBcDporAFDCKGNHK4WCNBD68DdMJJ4wcnIa5DNXHjYLU4YYLqcbpccgnL1l+02o2nC/FyIwwDNcxWtjw== @@ -3986,7 +3986,7 @@ "@snowballtools/utils" "*" debug "*" -"@snowballtools/js-sdk@0.1.0": +"@snowballtools/js-sdk@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/js-sdk/-/js-sdk-0.1.0.tgz#69835d4c0fdb1023a2ff3e75d916eb23e98084e1" integrity sha512-ejyzeRjUiffaWZiBwLhCi9vVyJp+eNBlTYQIwfTipAQlr1q0yCfCHJic2z2CIt2w6Vzayfgi2KRmNyQpRd3img== @@ -3995,7 +3995,7 @@ "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/link-lit-alchemy-light@0.1.0": +"@snowballtools/link-lit-alchemy-light@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/link-lit-alchemy-light/-/link-lit-alchemy-light-0.1.0.tgz#3198bd75ad8002f76481680b1c792a7a13b84111" integrity sha512-f6CEaol7qunra+1Tnk0Yb/M7l/EmYg40dlA7C+lYr0TQcGmIBQhT3rWtuluAlIsmKDPm1Ri7CCGfAYD7ioR/JQ== @@ -4024,7 +4024,7 @@ react-dom "18.2.0" tailwind-merge "1.8.1" -"@snowballtools/smartwallet-alchemy-light@*", "@snowballtools/smartwallet-alchemy-light@0.1.0": +"@snowballtools/smartwallet-alchemy-light@*", "@snowballtools/smartwallet-alchemy-light@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/smartwallet-alchemy-light/-/smartwallet-alchemy-light-0.1.0.tgz#659be4924c15c015b56453c508ee78cd3d64f837" integrity sha512-gR69Kq3Bl8qxmMqBjac5lINRlABH25U+oUmrzUsul9TtUdfJMtA/96jR48v6upliKyncGoSIf+KJQ8opA5DqHw== @@ -4037,12 +4037,12 @@ "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/types@*", "@snowballtools/types@0.1.0": +"@snowballtools/types@*", "@snowballtools/types@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/types/-/types-0.1.0.tgz#b76b20f76cc4192b250712d148991f04d68bade6" integrity sha512-lYLtUGjTO2BDqpM/KA83ojRB9sKw7IPQ9IVrd0FWJlyHtmQ5MvDRIcXJXO85lIUUe4SIkxXdrJMvda0GMDMV0A== -"@snowballtools/utils@*", "@snowballtools/utils@0.1.0": +"@snowballtools/utils@*", "@snowballtools/utils@^0.1.0": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/utils/-/utils-0.1.0.tgz#1f0c69f357a899301d0716e0b30121242617c464" integrity sha512-0dx3ct6pSbMdhSi/Yg3unM3sPuDIk+lv57YNvqRhv8e+wz+5IfRj0Bm12BB10Dav1PMJAXkLMYKJ5OYJJn6ALA== From e6b68dcce46c133f93daa0e1434d12a09388c679 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Tue, 23 Apr 2024 21:54:46 -0500 Subject: [PATCH 3/3] Bump snowball version --- packages/frontend/package.json | 14 +++---- yarn.lock | 71 ++++++++++++++++++++++++++-------- 2 files changed, 62 insertions(+), 23 deletions(-) diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 91b671f8..d3569752 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -21,14 +21,14 @@ "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-tooltip": "^1.0.7", - "@snowballtools/auth": "^0.1.0", - "@snowballtools/auth-lit": "^0.1.0", - "@snowballtools/js-sdk": "^0.1.0", - "@snowballtools/link-lit-alchemy-light": "^0.1.0", + "@snowballtools/auth": "^0.1.1", + "@snowballtools/auth-lit": "^0.1.1", + "@snowballtools/js-sdk": "^0.1.1", + "@snowballtools/link-lit-alchemy-light": "^0.1.1", "@snowballtools/material-tailwind-react-fork": "^2.1.10", - "@snowballtools/smartwallet-alchemy-light": "^0.1.0", - "@snowballtools/types": "^0.1.0", - "@snowballtools/utils": "^0.1.0", + "@snowballtools/smartwallet-alchemy-light": "^0.1.1", + "@snowballtools/types": "^0.1.1", + "@snowballtools/utils": "^0.1.1", "@tanstack/react-query": "^5.22.2", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", diff --git a/yarn.lock b/yarn.lock index cbd9ec1b..a58174d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3960,10 +3960,10 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== -"@snowballtools/auth-lit@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@snowballtools/auth-lit/-/auth-lit-0.1.0.tgz#1ed97cf55dd20c29b46ee3e5ad053662e17fdc41" - integrity sha512-WfGbdqd34I5wDcviSn9f8I1aTpY0ExJYGvkrwy/l0aeEotRBXoMDFNAM23RQN/aYzaewCOYGTPl1DJ1/hBYDyw== +"@snowballtools/auth-lit@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/auth-lit/-/auth-lit-0.1.1.tgz#838a13464740010b7fd5934851da27ebef853472" + integrity sha512-GQ20/oFuRKMFFrww6/m1/YUuzK/+7D3m2w2IdMGt47iKuGK3JkjJ+wSSWPws3rEWmluztfMBnTWYZpSc/udgNg== dependencies: "@lit-protocol/auth-helpers" "3.0.32" "@lit-protocol/constants" "3.0.32" @@ -3975,7 +3975,7 @@ "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/auth@*", "@snowballtools/auth@^0.1.0": +"@snowballtools/auth@*": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/auth/-/auth-0.1.0.tgz#f6bca8e631d754b524525153769bf28fa956cfa8" integrity sha512-jsviORyBcDporAFDCKGNHK4WCNBD68DdMJJ4wcnIa5DNXHjYLU4YYLqcbpccgnL1l+02o2nC/FyIwwDNcxWtjw== @@ -3986,19 +3986,30 @@ "@snowballtools/utils" "*" debug "*" -"@snowballtools/js-sdk@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@snowballtools/js-sdk/-/js-sdk-0.1.0.tgz#69835d4c0fdb1023a2ff3e75d916eb23e98084e1" - integrity sha512-ejyzeRjUiffaWZiBwLhCi9vVyJp+eNBlTYQIwfTipAQlr1q0yCfCHJic2z2CIt2w6Vzayfgi2KRmNyQpRd3img== +"@snowballtools/auth@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/auth/-/auth-0.1.1.tgz#d99226111e1648fc0a89ea062ae2fae850eef58e" + integrity sha512-ETLWkiLSpI7GBJd6a9pDPrQ9RJxvvSLUD0A5UgETH6T1gd+qY5FlJK1HfwdpbfBfyDShj4CaPTYKRXiTSZexfQ== + dependencies: + "@lit-protocol/pkp-ethers" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + debug "*" + +"@snowballtools/js-sdk@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/js-sdk/-/js-sdk-0.1.1.tgz#f463b34d49246b0cccff2fe6004fe7bd238e29fd" + integrity sha512-ViPvKeuOdbPVup5YYZUoWPRWVdM44EERzg1+gLi4tpdo0NjWC5gHr+w3+ESr88CV1Tr/vIn5HfOLxL5DT32qyw== dependencies: "@snowballtools/auth" "*" "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/link-lit-alchemy-light@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@snowballtools/link-lit-alchemy-light/-/link-lit-alchemy-light-0.1.0.tgz#3198bd75ad8002f76481680b1c792a7a13b84111" - integrity sha512-f6CEaol7qunra+1Tnk0Yb/M7l/EmYg40dlA7C+lYr0TQcGmIBQhT3rWtuluAlIsmKDPm1Ri7CCGfAYD7ioR/JQ== +"@snowballtools/link-lit-alchemy-light@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/link-lit-alchemy-light/-/link-lit-alchemy-light-0.1.1.tgz#55142771399578d7775e7d231a5cf26600a53b71" + integrity sha512-7vyxWLpkgLLGTaiFflklIz7dnluKwzTbF+EOsuHTFETHy+mt7GhgFkbG1/1EgxQ05oIccTtxzN/VclnZp06L5g== dependencies: "@alchemy/aa-alchemy" "^3.6.1" "@alchemy/aa-core" "^3.6.1" @@ -4024,7 +4035,7 @@ react-dom "18.2.0" tailwind-merge "1.8.1" -"@snowballtools/smartwallet-alchemy-light@*", "@snowballtools/smartwallet-alchemy-light@^0.1.0": +"@snowballtools/smartwallet-alchemy-light@*": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/smartwallet-alchemy-light/-/smartwallet-alchemy-light-0.1.0.tgz#659be4924c15c015b56453c508ee78cd3d64f837" integrity sha512-gR69Kq3Bl8qxmMqBjac5lINRlABH25U+oUmrzUsul9TtUdfJMtA/96jR48v6upliKyncGoSIf+KJQ8opA5DqHw== @@ -4037,12 +4048,30 @@ "@snowballtools/types" "*" "@snowballtools/utils" "*" -"@snowballtools/types@*", "@snowballtools/types@^0.1.0": +"@snowballtools/smartwallet-alchemy-light@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/smartwallet-alchemy-light/-/smartwallet-alchemy-light-0.1.1.tgz#b8b159247fc56c25af68b1aa1f19b51359cf58e6" + integrity sha512-KzjBrGrQO3oSZgZP8c9niAEV7N1D0LBMjc8hjVKG6ox9udw+e3u+rzRzEfqDZc8W19pvYxjoUq9jCdaU5zc+Kw== + dependencies: + "@alchemy/aa-accounts" "^3.6.1" + "@alchemy/aa-alchemy" "^3.6.1" + "@alchemy/aa-core" "^3.6.1" + "@lit-protocol/pkp-ethers" "3.0.32" + "@lit-protocol/types" "3.0.32" + "@snowballtools/types" "*" + "@snowballtools/utils" "*" + +"@snowballtools/types@*": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/types/-/types-0.1.0.tgz#b76b20f76cc4192b250712d148991f04d68bade6" integrity sha512-lYLtUGjTO2BDqpM/KA83ojRB9sKw7IPQ9IVrd0FWJlyHtmQ5MvDRIcXJXO85lIUUe4SIkxXdrJMvda0GMDMV0A== -"@snowballtools/utils@*", "@snowballtools/utils@^0.1.0": +"@snowballtools/types@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/types/-/types-0.1.1.tgz#b9162576ebf2e2a026303cd453786e381509ddbf" + integrity sha512-FmVk1fdwLRRPdFdDvgt+/NmWbviPKSTzsdmbPI5TbviDbVZPBCQImo1fYGq+5T5zK7WqN9ULAi04DbiPSpTVVA== + +"@snowballtools/utils@*": version "0.1.0" resolved "https://registry.yarnpkg.com/@snowballtools/utils/-/utils-0.1.0.tgz#1f0c69f357a899301d0716e0b30121242617c464" integrity sha512-0dx3ct6pSbMdhSi/Yg3unM3sPuDIk+lv57YNvqRhv8e+wz+5IfRj0Bm12BB10Dav1PMJAXkLMYKJ5OYJJn6ALA== @@ -4052,6 +4081,16 @@ alchemy-sdk "^3.2.0" viem "2.x" +"@snowballtools/utils@^0.1.1": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@snowballtools/utils/-/utils-0.1.1.tgz#30c64a317e5dba613bf8fdd66dc4067c362f6ec0" + integrity sha512-GL9G8EUJUB/MxW1aaUtS4/KaKpND8CyWOG46wQ1SdEhrWooCg8fsU/0mG/lS/E/uoAUoaP0aG+hxo8v/wxKI9g== + dependencies: + "@alchemy/aa-core" "^3.6.1" + "@snowballtools/types" "*" + alchemy-sdk "^3.2.0" + viem "2.x" + "@socket.io/component-emitter@~3.1.0": version "3.1.1" resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.1.tgz#621270c02c0a5d4f4669eb1caa9723c91cf201de"