@funkit/connect 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UOUEGWLS.js → chunk-47OHV4T2.js} +2 -2
- package/dist/{chunk-Q73FKLU4.js → chunk-C2QHNJBG.js} +2 -2
- package/dist/{chunk-BQU2NRO5.js → chunk-OYE6VAAG.js} +56 -38
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +6 -2
- package/dist/components/index.js +3 -3
- package/dist/index.js +3 -3
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +57 -57
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +3 -3
- package/dist/wallets/walletConnectors/chunk-3XLDPS4Y.js +0 -102
- package/dist/wallets/walletConnectors/chunk-4EKX7Z25.js +0 -114
- package/dist/wallets/walletConnectors/chunk-6FQF7H7H.js +0 -112
- package/dist/wallets/walletConnectors/chunk-77KYAV4P.js +0 -110
- package/dist/wallets/walletConnectors/chunk-GHYJ56FA.js +0 -113
- package/dist/wallets/walletConnectors/chunk-GLB4HFDR.js +0 -105
- package/dist/wallets/walletConnectors/chunk-LEWQ7DQV.js +0 -71
- package/dist/wallets/walletConnectors/chunk-LL6T7V77.js +0 -81
- package/dist/wallets/walletConnectors/chunk-MOWIPEYK.js +0 -226
- package/dist/wallets/walletConnectors/chunk-NEDPCNTA.js +0 -71
- package/dist/wallets/walletConnectors/chunk-VW5SMBMG.js +0 -71
- package/dist/wallets/walletConnectors/chunk-XXTDCRCW.js +0 -52
- package/dist/wallets/walletConnectors/{chunk-YWKKNHO3.js → chunk-4W6RLMME.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IEAKLGB6.js → chunk-NZ4YUZKF.js} +4 -4
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isMobile
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var tokenPocketWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2"
|
|
17
|
-
}) => {
|
|
18
|
-
const isTokenPocketInjected = typeof window !== "undefined" && window.ethereum?.isTokenPocket === true;
|
|
19
|
-
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "tokenPocket",
|
|
22
|
-
name: "TokenPocket",
|
|
23
|
-
iconUrl: async () => (await import("./tokenPocketWallet-UYD66DEM.js")).default,
|
|
24
|
-
iconBackground: "#2980FE",
|
|
25
|
-
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
26
|
-
downloadUrls: {
|
|
27
|
-
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
28
|
-
browserExtension: "https://extension.tokenpocket.pro/",
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
30
|
-
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
31
|
-
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
32
|
-
mobile: "https://tokenpocket.pro/en/download/app"
|
|
33
|
-
},
|
|
34
|
-
createConnector: () => {
|
|
35
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
36
|
-
chains,
|
|
37
|
-
projectId,
|
|
38
|
-
options: walletConnectOptions,
|
|
39
|
-
version: walletConnectVersion
|
|
40
|
-
}) : new InjectedConnector({ chains });
|
|
41
|
-
const getUri = async () => {
|
|
42
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
43
|
-
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
connector,
|
|
47
|
-
mobile: {
|
|
48
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
49
|
-
},
|
|
50
|
-
qrCode: shouldUseWalletConnect ? {
|
|
51
|
-
getUri,
|
|
52
|
-
instructions: {
|
|
53
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
54
|
-
steps: [
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
57
|
-
step: "install",
|
|
58
|
-
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
62
|
-
step: "create",
|
|
63
|
-
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
67
|
-
step: "scan",
|
|
68
|
-
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
} : void 0,
|
|
73
|
-
extension: {
|
|
74
|
-
instructions: {
|
|
75
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
76
|
-
steps: [
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
79
|
-
step: "install",
|
|
80
|
-
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
84
|
-
step: "create",
|
|
85
|
-
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
89
|
-
step: "refresh",
|
|
90
|
-
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export {
|
|
101
|
-
tokenPocketWallet
|
|
102
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var frontierWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isFrontierInjected = typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier;
|
|
20
|
-
return {
|
|
21
|
-
id: "frontier",
|
|
22
|
-
name: "Frontier Wallet",
|
|
23
|
-
installed: typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier ? true : void 0,
|
|
24
|
-
iconUrl: async () => (await import("./frontierWallet-3CNZ2ST5.js")).default,
|
|
25
|
-
iconBackground: "#CC703C",
|
|
26
|
-
downloadUrls: {
|
|
27
|
-
android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
|
|
28
|
-
ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
|
|
29
|
-
qrCode: "https://www.frontier.xyz/download",
|
|
30
|
-
chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
|
|
31
|
-
browserExtension: "https://www.frontier.xyz/download"
|
|
32
|
-
},
|
|
33
|
-
createConnector: () => {
|
|
34
|
-
const shouldUseWalletConnect = !isFrontierInjected;
|
|
35
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
36
|
-
chains,
|
|
37
|
-
projectId,
|
|
38
|
-
options: walletConnectOptions,
|
|
39
|
-
version: walletConnectVersion
|
|
40
|
-
}) : new InjectedConnector({ chains });
|
|
41
|
-
const getUri = async () => {
|
|
42
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
43
|
-
return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
connector: new InjectedConnector({
|
|
47
|
-
chains,
|
|
48
|
-
options: {
|
|
49
|
-
getProvider: () => {
|
|
50
|
-
const getFront = (frontier) => frontier?.ethereum ? frontier?.ethereum : void 0;
|
|
51
|
-
if (typeof window === "undefined") {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
return getFront(window.frontier);
|
|
55
|
-
},
|
|
56
|
-
...options
|
|
57
|
-
}
|
|
58
|
-
}),
|
|
59
|
-
mobile: {
|
|
60
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
61
|
-
},
|
|
62
|
-
qrCode: shouldUseWalletConnect ? {
|
|
63
|
-
getUri,
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://help.frontier.xyz/en/",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.im_token.qr_code.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.im_token.qr_code.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.im_token.qr_code.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.im_token.qr_code.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.im_token.qr_code.step3.description",
|
|
79
|
-
step: "scan",
|
|
80
|
-
title: "wallet_connectors.im_token.qr_code.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
} : void 0,
|
|
85
|
-
extension: {
|
|
86
|
-
instructions: {
|
|
87
|
-
learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
|
|
88
|
-
steps: [
|
|
89
|
-
{
|
|
90
|
-
description: "wallet_connectors.frontier.extension.step1.description",
|
|
91
|
-
step: "install",
|
|
92
|
-
title: "wallet_connectors.frontier.extension.step1.title"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
description: "wallet_connectors.frontier.extension.step2.description",
|
|
96
|
-
step: "create",
|
|
97
|
-
title: "wallet_connectors.frontier.extension.step2.title"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
description: "wallet_connectors.frontier.extension.step3.description",
|
|
101
|
-
step: "refresh",
|
|
102
|
-
title: "wallet_connectors.frontier.extension.step3.title"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export {
|
|
113
|
-
frontierWallet
|
|
114
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var bitgetWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isBitKeepInjected = typeof window !== "undefined" && window.bitkeep !== void 0 && window.bitkeep.ethereum !== void 0 && window.bitkeep.ethereum.isBitKeep === true;
|
|
20
|
-
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "bitget",
|
|
23
|
-
name: "Bitget Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
25
|
-
iconAccent: "#f6851a",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
30
|
-
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
31
|
-
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
32
|
-
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
34
|
-
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
35
|
-
},
|
|
36
|
-
createConnector: () => {
|
|
37
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
38
|
-
chains,
|
|
39
|
-
options: walletConnectOptions,
|
|
40
|
-
projectId,
|
|
41
|
-
version: walletConnectVersion
|
|
42
|
-
}) : new InjectedConnector({
|
|
43
|
-
chains,
|
|
44
|
-
options: {
|
|
45
|
-
getProvider: () => window.bitkeep.ethereum,
|
|
46
|
-
...options
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const getUri = async () => {
|
|
50
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
51
|
-
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
52
|
-
};
|
|
53
|
-
return {
|
|
54
|
-
connector,
|
|
55
|
-
extension: {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.bitget.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.bitget.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.bitget.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.bitget.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.bitget.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.bitget.extension.step3.description"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
mobile: {
|
|
78
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
79
|
-
},
|
|
80
|
-
qrCode: shouldUseWalletConnect ? {
|
|
81
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
82
|
-
instructions: {
|
|
83
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
84
|
-
steps: [
|
|
85
|
-
{
|
|
86
|
-
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
87
|
-
step: "install",
|
|
88
|
-
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
92
|
-
step: "create",
|
|
93
|
-
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
97
|
-
step: "scan",
|
|
98
|
-
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
} : void 0
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
var bitKeepWallet = bitgetWallet;
|
|
108
|
-
|
|
109
|
-
export {
|
|
110
|
-
bitgetWallet,
|
|
111
|
-
bitKeepWallet
|
|
112
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isIOS
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var zerionWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isZerionInjected = typeof window !== "undefined" && (typeof window.ethereum !== "undefined" && window.ethereum.isZerion || typeof window.zerionWallet !== "undefined");
|
|
20
|
-
const shouldUseWalletConnect = !isZerionInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "zerion",
|
|
23
|
-
name: "Zerion",
|
|
24
|
-
iconUrl: async () => (await import("./zerionWallet-35GMAYN4.js")).default,
|
|
25
|
-
iconAccent: "#2962ef",
|
|
26
|
-
iconBackground: "#2962ef",
|
|
27
|
-
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
30
|
-
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
31
|
-
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
32
|
-
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
34
|
-
browserExtension: "https://zerion.io/extension"
|
|
35
|
-
},
|
|
36
|
-
createConnector: () => {
|
|
37
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
38
|
-
projectId,
|
|
39
|
-
chains,
|
|
40
|
-
version: walletConnectVersion,
|
|
41
|
-
options: walletConnectOptions
|
|
42
|
-
}) : new InjectedConnector({
|
|
43
|
-
chains,
|
|
44
|
-
options: {
|
|
45
|
-
getProvider: () => typeof window !== "undefined" ? window.zerionWallet || window.ethereum : void 0,
|
|
46
|
-
...options
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const getUri = async () => {
|
|
50
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
51
|
-
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
52
|
-
};
|
|
53
|
-
return {
|
|
54
|
-
connector,
|
|
55
|
-
mobile: {
|
|
56
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
57
|
-
},
|
|
58
|
-
qrCode: shouldUseWalletConnect ? {
|
|
59
|
-
getUri,
|
|
60
|
-
instructions: {
|
|
61
|
-
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
62
|
-
steps: [
|
|
63
|
-
{
|
|
64
|
-
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
65
|
-
step: "install",
|
|
66
|
-
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
70
|
-
step: "create",
|
|
71
|
-
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
75
|
-
step: "scan",
|
|
76
|
-
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
} : void 0,
|
|
81
|
-
extension: {
|
|
82
|
-
instructions: {
|
|
83
|
-
learnMoreUrl: "https://help.zerion.io/en/",
|
|
84
|
-
steps: [
|
|
85
|
-
{
|
|
86
|
-
description: "wallet_connectors.zerion.extension.step1.description",
|
|
87
|
-
step: "install",
|
|
88
|
-
title: "wallet_connectors.zerion.extension.step1.title"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
description: "wallet_connectors.zerion.extension.step2.description",
|
|
92
|
-
step: "create",
|
|
93
|
-
title: "wallet_connectors.zerion.extension.step2.title"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
description: "wallet_connectors.zerion.extension.step3.description",
|
|
97
|
-
step: "refresh",
|
|
98
|
-
title: "wallet_connectors.zerion.extension.step3.title"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
zerionWallet
|
|
110
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var okxWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isOKXInjected = typeof window !== "undefined" && typeof window.okxwallet !== "undefined";
|
|
20
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "okx",
|
|
23
|
-
name: "OKX Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./okxWallet-GKYMI2XW.js")).default,
|
|
25
|
-
iconAccent: "#000",
|
|
26
|
-
iconBackground: "#000",
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
29
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
30
|
-
mobile: "https://okx.com/download",
|
|
31
|
-
qrCode: "https://okx.com/download",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
33
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
34
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
35
|
-
browserExtension: "https://okx.com/download"
|
|
36
|
-
},
|
|
37
|
-
createConnector: () => {
|
|
38
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
39
|
-
projectId,
|
|
40
|
-
chains,
|
|
41
|
-
version: walletConnectVersion,
|
|
42
|
-
options: walletConnectOptions
|
|
43
|
-
}) : new InjectedConnector({
|
|
44
|
-
chains,
|
|
45
|
-
options: {
|
|
46
|
-
getProvider: () => window.okxwallet,
|
|
47
|
-
...options
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
connector,
|
|
52
|
-
mobile: {
|
|
53
|
-
getUri: shouldUseWalletConnect ? async () => {
|
|
54
|
-
const uri = await getWalletConnectUri(
|
|
55
|
-
connector,
|
|
56
|
-
walletConnectVersion
|
|
57
|
-
);
|
|
58
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
59
|
-
} : void 0
|
|
60
|
-
},
|
|
61
|
-
qrCode: shouldUseWalletConnect ? {
|
|
62
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
78
|
-
step: "scan",
|
|
79
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
} : void 0,
|
|
84
|
-
extension: {
|
|
85
|
-
instructions: {
|
|
86
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
87
|
-
steps: [
|
|
88
|
-
{
|
|
89
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
90
|
-
step: "install",
|
|
91
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
95
|
-
step: "create",
|
|
96
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
100
|
-
step: "refresh",
|
|
101
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export {
|
|
112
|
-
okxWallet
|
|
113
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-6T5K52ZY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/ledgerWallet/ledgerWallet.ts
|
|
11
|
-
var ledgerWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectOptions,
|
|
15
|
-
walletConnectVersion = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "ledger",
|
|
18
|
-
iconBackground: "#000",
|
|
19
|
-
iconAccent: "#000",
|
|
20
|
-
name: "Ledger",
|
|
21
|
-
iconUrl: async () => (await import("./ledgerWallet-DIS4VM6H.js")).default,
|
|
22
|
-
downloadUrls: {
|
|
23
|
-
android: "https://play.google.com/store/apps/details?id=com.ledger.live",
|
|
24
|
-
ios: "https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",
|
|
25
|
-
mobile: "https://www.ledger.com/ledger-live",
|
|
26
|
-
qrCode: "https://r354.adj.st/?adj_t=t2esmlk",
|
|
27
|
-
windows: "https://www.ledger.com/ledger-live/download",
|
|
28
|
-
macos: "https://www.ledger.com/ledger-live/download",
|
|
29
|
-
linux: "https://www.ledger.com/ledger-live/download",
|
|
30
|
-
desktop: "https://www.ledger.com/ledger-live"
|
|
31
|
-
},
|
|
32
|
-
createConnector: () => {
|
|
33
|
-
const connector = getWalletConnectConnector({
|
|
34
|
-
projectId,
|
|
35
|
-
chains,
|
|
36
|
-
version: walletConnectVersion,
|
|
37
|
-
options: walletConnectOptions
|
|
38
|
-
});
|
|
39
|
-
return {
|
|
40
|
-
connector,
|
|
41
|
-
mobile: {
|
|
42
|
-
getUri: async () => {
|
|
43
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
44
|
-
return isAndroid() ? uri : `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
desktop: {
|
|
48
|
-
getUri: async () => {
|
|
49
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
50
|
-
return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
51
|
-
},
|
|
52
|
-
instructions: {
|
|
53
|
-
learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
|
|
54
|
-
steps: [
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.ledger.desktop.step1.description",
|
|
57
|
-
step: "install",
|
|
58
|
-
title: "wallet_connectors.ledger.desktop.step1.title"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
description: "wallet_connectors.ledger.desktop.step2.description",
|
|
62
|
-
step: "create",
|
|
63
|
-
title: "wallet_connectors.ledger.desktop.step2.title"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.ledger.desktop.step3.description",
|
|
67
|
-
step: "connect",
|
|
68
|
-
title: "wallet_connectors.ledger.desktop.step3.title"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
qrCode: {
|
|
74
|
-
getUri: async () => {
|
|
75
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
76
|
-
return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
|
|
77
|
-
},
|
|
78
|
-
instructions: {
|
|
79
|
-
learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
|
|
80
|
-
steps: [
|
|
81
|
-
{
|
|
82
|
-
description: "wallet_connectors.ledger.qr_code.step1.description",
|
|
83
|
-
step: "install",
|
|
84
|
-
title: "wallet_connectors.ledger.qr_code.step1.title"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
description: "wallet_connectors.ledger.qr_code.step2.description",
|
|
88
|
-
step: "create",
|
|
89
|
-
title: "wallet_connectors.ledger.qr_code.step2.title"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
description: "wallet_connectors.ledger.qr_code.step3.description",
|
|
93
|
-
step: "scan",
|
|
94
|
-
title: "wallet_connectors.ledger.qr_code.step3.title"
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
ledgerWallet
|
|
105
|
-
};
|