-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathindex.ts
More file actions
29 lines (23 loc) · 766 Bytes
/
index.ts
File metadata and controls
29 lines (23 loc) · 766 Bytes
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
import {
CosmosWallet,
EthereumWallet,
ExtensionWallet,
selectWalletByPlatform,
SolanaWallet,
WCMobileWebWallet,
} from '@interchain-kit/core';
import { OneKeywalletExtensionInfo } from './registry';
export * from './registry';
const web = new ExtensionWallet(OneKeywalletExtensionInfo);
web.setNetworkWallet('cosmos', new CosmosWallet(OneKeywalletExtensionInfo));
web.setNetworkWallet('eip155', new EthereumWallet(OneKeywalletExtensionInfo));
web.setNetworkWallet('solana', new SolanaWallet(OneKeywalletExtensionInfo));
const onekeyWallet = selectWalletByPlatform(
{
mobileBrowser: new WCMobileWebWallet(OneKeywalletExtensionInfo),
inAppBrowser: web,
desktopBrowser: web,
},
OneKeywalletExtensionInfo
);
export { onekeyWallet };