forked from TxnLab/use-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tsx
33 lines (30 loc) · 836 Bytes
/
providers.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use client'
import { NetworkId, WalletId, WalletManager, WalletProvider } from '@txnlab/use-wallet-react'
const walletManager = new WalletManager({
wallets: [
WalletId.DEFLY,
WalletId.DEFLY_WEB,
WalletId.EXODUS,
WalletId.PERA,
{
id: WalletId.WALLETCONNECT,
options: { projectId: 'fcfde0713d43baa0d23be0773c80a72b' }
},
{
id: WalletId.BIATEC,
options: { projectId: 'fcfde0713d43baa0d23be0773c80a72b' }
},
WalletId.KMD,
WalletId.KIBISIS,
WalletId.LUTE,
{
id: WalletId.MAGIC,
options: { apiKey: 'pk_live_D17FD8D89621B5F3' }
},
WalletId.MNEMONIC
],
defaultNetwork: NetworkId.TESTNET
})
export function Providers({ children }: { children: React.ReactNode }) {
return <WalletProvider manager={walletManager}>{children}</WalletProvider>
}