Skip to content

Commit

Permalink
Siwe package (#1957)
Browse files Browse the repository at this point in the history
Co-authored-by: Ilja <[email protected]>
  • Loading branch information
glitch-txs and xzilja authored Feb 28, 2024
1 parent 642015e commit b7ad4fc
Show file tree
Hide file tree
Showing 41 changed files with 1,081 additions and 1,373 deletions.
10 changes: 5 additions & 5 deletions apps/laboratory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
"@sentry/react": "7.92.0",
"@tanstack/react-query": "5.17.19",
"@web3modal/ethers": "4.0.10",
"@web3modal/ethers5": "4.0.10",
"@web3modal/siwe": "4.0.10",
"@web3modal/wagmi": "4.0.10",
"framer-motion": "10.17.9",
"next": "14.0.4",
"next-auth": "4.24.5",
"react-icons": "4.12.0",
"siwe": "2.1.4",
"valtio": "1.11.2",
"viem": "2.5.0",
"wagmi": "2.5.6"
"ethers": "6.9.0",
"viem": "2.7.13",
"wagmi": "2.5.7"
},
"devDependencies": {
"@aws-sdk/client-cloudwatch": "3.509.0",
"@mailsac/api": "1.0.5",
"@playwright/test": "1.40.1",
"dotenv": "16.3.1",
"ethers": "6.9.0"
"dotenv": "16.3.1"
}
}
2 changes: 1 addition & 1 deletion apps/laboratory/src/components/Siwe/SiweData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@chakra-ui/react'
import { useEffect, useState } from 'react'
import { useSession } from 'next-auth/react'
import type { SIWESession } from '@web3modal/core'
import type { SIWESession } from '@web3modal/siwe'

export function SiweData() {
const [ready, setReady] = useState(false)
Expand Down
2 changes: 1 addition & 1 deletion apps/laboratory/src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SIWESession } from '@web3modal/core'
import type { SIWESession } from '@web3modal/siwe'
import type { NextApiRequest, NextApiResponse } from 'next'
import nextAuth from 'next-auth'
import credentialsProvider from 'next-auth/providers/credentials'
Expand Down
2 changes: 1 addition & 1 deletion apps/laboratory/src/utils/SiweUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SiweMessage } from 'siwe'
import { getCsrfToken, signIn, signOut, getSession } from 'next-auth/react'
import type { SIWEVerifyMessageArgs, SIWECreateMessageArgs, SIWESession } from '@web3modal/core'
import type { SIWEVerifyMessageArgs, SIWECreateMessageArgs, SIWESession } from '@web3modal/siwe'
import { createSIWEConfig } from '@web3modal/siwe'

export const siweConfig = createSIWEConfig({
Expand Down
2 changes: 2 additions & 0 deletions examples/html-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
},
"dependencies": {
"@web3modal/wagmi": "4.0.10",
"@wagmi/connectors": "4.1.14",
"@wagmi/core": "2.6.5",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/next-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"next": "14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "2.5.0",
"wagmi": "2.5.6"
"viem": "2.7.13",
"wagmi": "2.5.7"
},
"devDependencies": {
"@types/node": "20.11.5",
Expand Down
4 changes: 2 additions & 2 deletions examples/react-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"@web3modal/wagmi": "4.0.10",
"react": "18.2.0",
"react-dom": "18.2.0",
"viem": "2.5.0",
"vite": "5.0.12",
"wagmi": "2.5.6"
"viem": "2.7.13",
"wagmi": "2.5.7"
},
"devDependencies": {
"@vitejs/plugin-react": "4.2.1",
Expand Down
4 changes: 3 additions & 1 deletion examples/vue-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"build:examples": "vite build"
},
"dependencies": {
"@web3modal/wagmi": "4.0.10"
"@web3modal/wagmi": "4.0.10",
"@wagmi/connectors": "4.1.14",
"@wagmi/core": "2.6.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "5.0.2"
Expand Down
Loading

0 comments on commit b7ad4fc

Please sign in to comment.