mirror of
https://github.com/luxfhe/research-ocp-fhe.git
synced 2026-11-03 06:05:38 +00:00
24 lines
618 B
TypeScript
24 lines
618 B
TypeScript
import { cookieStorage, createStorage } from '@wagmi/core'
|
|
import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'
|
|
import { sepolia } from '@reown/appkit/networks'
|
|
|
|
// Get projectId from https://dashboard.reown.com
|
|
export const projectId = process.env.NEXT_PUBLIC_REOWN_PROJECT_ID
|
|
|
|
if (!projectId) {
|
|
throw new Error('Project ID is not defined')
|
|
}
|
|
|
|
export const networks = [sepolia]
|
|
|
|
//Set up the Wagmi Adapter (Config)
|
|
export const wagmiAdapter = new WagmiAdapter({
|
|
storage: createStorage({
|
|
storage: cookieStorage
|
|
}),
|
|
ssr: true,
|
|
projectId,
|
|
networks
|
|
})
|
|
|
|
export const config = wagmiAdapter.wagmiConfig |