@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,71 +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/argentWallet/argentWallet.ts
|
|
11
|
-
var argentWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectOptions,
|
|
15
|
-
walletConnectVersion = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "argent",
|
|
18
|
-
name: "Argent",
|
|
19
|
-
iconUrl: async () => (await import("./argentWallet-5OEFC7BD.js")).default,
|
|
20
|
-
iconBackground: "#fff",
|
|
21
|
-
downloadUrls: {
|
|
22
|
-
android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
|
|
23
|
-
ios: "https://apps.apple.com/us/app/argent/id1358741926",
|
|
24
|
-
mobile: "https://argent.xyz/download-argent",
|
|
25
|
-
qrCode: "https://argent.link/app"
|
|
26
|
-
},
|
|
27
|
-
createConnector: () => {
|
|
28
|
-
const connector = getWalletConnectConnector({
|
|
29
|
-
projectId,
|
|
30
|
-
chains,
|
|
31
|
-
version: walletConnectVersion,
|
|
32
|
-
options: walletConnectOptions
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
connector,
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: async () => {
|
|
38
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
39
|
-
return isAndroid() ? uri : `argent://app/wc?uri=${encodeURIComponent(uri)}`;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
qrCode: {
|
|
43
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://argent.xyz/learn/what-is-a-crypto-wallet/",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.argent.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.argent.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.argent.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.argent.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.argent.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.argent.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
argentWallet
|
|
71
|
-
};
|
|
@@ -1,81 +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/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isBifrostInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && window.ethereum.isBifrost;
|
|
20
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5VPKXMCJ.js")).default,
|
|
25
|
-
iconBackground: "#fff",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
-
},
|
|
32
|
-
createConnector: () => {
|
|
33
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
34
|
-
chains,
|
|
35
|
-
projectId,
|
|
36
|
-
options: walletConnectOptions,
|
|
37
|
-
version: walletConnectVersion
|
|
38
|
-
}) : new InjectedConnector({
|
|
39
|
-
chains,
|
|
40
|
-
options
|
|
41
|
-
});
|
|
42
|
-
const getUri = async () => {
|
|
43
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
44
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
45
|
-
};
|
|
46
|
-
return {
|
|
47
|
-
connector,
|
|
48
|
-
mobile: {
|
|
49
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
50
|
-
},
|
|
51
|
-
qrCode: shouldUseWalletConnect ? {
|
|
52
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
68
|
-
step: "scan",
|
|
69
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
} : void 0
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
bifrostWallet
|
|
81
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid,
|
|
4
|
-
isIOS
|
|
5
|
-
} from "./chunk-ZOLACFTK.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector,
|
|
8
|
-
getWalletConnectUri
|
|
9
|
-
} from "./chunk-6T5K52ZY.js";
|
|
10
|
-
|
|
11
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
12
|
-
import { MetaMaskConnector } from "wagmi/connectors/metaMask";
|
|
13
|
-
function isMetaMask(ethereum) {
|
|
14
|
-
if (!ethereum?.isMetaMask) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (ethereum.isApexWallet) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
if (ethereum.isAvalanche) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
if (ethereum.isBackpack) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
if (ethereum.isBifrost) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
if (ethereum.isBitKeep) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
if (ethereum.isBitski) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
if (ethereum.isBlockWallet) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
if (ethereum.isCoinbaseWallet) {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
if (ethereum.isDawn) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
if (ethereum.isEnkrypt) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
if (ethereum.isExodus) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
if (ethereum.isFrame) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
if (ethereum.isFrontier) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
if (ethereum.isGamestop) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
if (ethereum.isHyperPay) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
if (ethereum.isImToken) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
if (ethereum.isKuCoinWallet) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
if (ethereum.isMathWallet) {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
if (ethereum.isOpera) {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
if (ethereum.isPhantom) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
if (ethereum.isPortal) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
if (ethereum.isRabby) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
if (ethereum.isRainbow) {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
if (ethereum.isStatus) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
if (ethereum.isTalisman) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
if (ethereum.isTally) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
if (ethereum.isTokenPocket) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
if (ethereum.isTokenary) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
if (ethereum.isXDEFI) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
if (ethereum.isZeal) {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
if (ethereum.isZerion) {
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
return true;
|
|
123
|
-
}
|
|
124
|
-
var metaMaskWallet = ({
|
|
125
|
-
chains,
|
|
126
|
-
projectId,
|
|
127
|
-
walletConnectOptions,
|
|
128
|
-
walletConnectVersion = "2",
|
|
129
|
-
...options
|
|
130
|
-
}) => {
|
|
131
|
-
const providers = typeof window !== "undefined" && window.ethereum?.providers;
|
|
132
|
-
const isMetaMaskInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && (window.ethereum.providers?.some(isMetaMask) || window.ethereum.isMetaMask);
|
|
133
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
134
|
-
return {
|
|
135
|
-
id: "metaMask",
|
|
136
|
-
name: "MetaMask",
|
|
137
|
-
iconUrl: async () => (await import("./metaMaskWallet-ORHUNQRP.js")).default,
|
|
138
|
-
iconAccent: "#f6851a",
|
|
139
|
-
iconBackground: "#fff",
|
|
140
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
141
|
-
downloadUrls: {
|
|
142
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
143
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
144
|
-
mobile: "https://metamask.io/download",
|
|
145
|
-
qrCode: "https://metamask.io/download",
|
|
146
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
147
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
148
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
149
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
150
|
-
browserExtension: "https://metamask.io/download"
|
|
151
|
-
},
|
|
152
|
-
createConnector: () => {
|
|
153
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
154
|
-
projectId,
|
|
155
|
-
chains,
|
|
156
|
-
version: walletConnectVersion,
|
|
157
|
-
options: walletConnectOptions
|
|
158
|
-
}) : new MetaMaskConnector({
|
|
159
|
-
chains,
|
|
160
|
-
options: {
|
|
161
|
-
getProvider: () => providers ? providers.find(isMetaMask) : typeof window !== "undefined" ? window.ethereum : void 0,
|
|
162
|
-
...options
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
const getUri = async () => {
|
|
166
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
167
|
-
return isAndroid() ? uri : isIOS() ? `metamask://wc?uri=${encodeURIComponent(uri)}` : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
168
|
-
};
|
|
169
|
-
return {
|
|
170
|
-
connector,
|
|
171
|
-
mobile: {
|
|
172
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
173
|
-
},
|
|
174
|
-
qrCode: shouldUseWalletConnect ? {
|
|
175
|
-
getUri,
|
|
176
|
-
instructions: {
|
|
177
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
178
|
-
steps: [
|
|
179
|
-
{
|
|
180
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
181
|
-
step: "install",
|
|
182
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
186
|
-
step: "create",
|
|
187
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
191
|
-
step: "refresh",
|
|
192
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
} : void 0,
|
|
197
|
-
extension: {
|
|
198
|
-
instructions: {
|
|
199
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
200
|
-
steps: [
|
|
201
|
-
{
|
|
202
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
203
|
-
step: "install",
|
|
204
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
208
|
-
step: "create",
|
|
209
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
213
|
-
step: "refresh",
|
|
214
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
export {
|
|
225
|
-
metaMaskWallet
|
|
226
|
-
};
|
|
@@ -1,71 +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/omniWallet/omniWallet.ts
|
|
11
|
-
var omniWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectOptions,
|
|
15
|
-
walletConnectVersion = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "omni",
|
|
18
|
-
name: "Omni",
|
|
19
|
-
iconUrl: async () => (await import("./omniWallet-VF54LPLK.js")).default,
|
|
20
|
-
iconBackground: "#000",
|
|
21
|
-
downloadUrls: {
|
|
22
|
-
android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
|
|
23
|
-
ios: "https://itunes.apple.com/us/app/id1569375204",
|
|
24
|
-
mobile: "https://omniwallet.app.link",
|
|
25
|
-
qrCode: "https://omniwallet.app.link"
|
|
26
|
-
},
|
|
27
|
-
createConnector: () => {
|
|
28
|
-
const connector = getWalletConnectConnector({
|
|
29
|
-
projectId,
|
|
30
|
-
chains,
|
|
31
|
-
version: walletConnectVersion,
|
|
32
|
-
options: walletConnectOptions
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
connector,
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: async () => {
|
|
38
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
39
|
-
return isAndroid() ? uri : `omni://wc?uri=${encodeURIComponent(uri)}`;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
qrCode: {
|
|
43
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://omni.app/support",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.omni.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.omni.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.omni.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.omni.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.omni.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.omni.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
omniWallet
|
|
71
|
-
};
|
|
@@ -1,71 +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/oktoWallet/oktoWallet.ts
|
|
11
|
-
var oktoWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectOptions,
|
|
15
|
-
walletConnectVersion = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "Okto",
|
|
18
|
-
name: "Okto",
|
|
19
|
-
iconUrl: async () => (await import("./oktoWallet-3LTNTBG3.js")).default,
|
|
20
|
-
iconBackground: "#fff",
|
|
21
|
-
downloadUrls: {
|
|
22
|
-
android: "https://play.google.com/store/apps/details?id=im.okto.contractwalletclient",
|
|
23
|
-
ios: "https://apps.apple.com/in/app/okto-wallet/id6450688229",
|
|
24
|
-
mobile: "https://okto.tech/",
|
|
25
|
-
qrCode: "https://okto.tech/"
|
|
26
|
-
},
|
|
27
|
-
createConnector: () => {
|
|
28
|
-
const connector = getWalletConnectConnector({
|
|
29
|
-
projectId,
|
|
30
|
-
chains,
|
|
31
|
-
version: walletConnectVersion,
|
|
32
|
-
options: walletConnectOptions
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
connector,
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: async () => {
|
|
38
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
39
|
-
return isAndroid() ? uri : `okto://wc?uri=${encodeURIComponent(uri)}`;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
qrCode: {
|
|
43
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://okto.tech/",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.okto.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.okto.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.okto.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.okto.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.okto.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.okto.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
oktoWallet
|
|
71
|
-
};
|
|
@@ -1,52 +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/walletConnectWallet/walletConnectWallet.ts
|
|
11
|
-
var walletConnectWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
options,
|
|
14
|
-
projectId,
|
|
15
|
-
version = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "walletConnect",
|
|
18
|
-
name: "WalletConnect",
|
|
19
|
-
iconUrl: async () => (await import("./walletConnectWallet-D6ZADJM7.js")).default,
|
|
20
|
-
iconBackground: "#3b99fc",
|
|
21
|
-
createConnector: () => {
|
|
22
|
-
const ios = isIOS();
|
|
23
|
-
const connector = version === "1" ? getWalletConnectConnector({
|
|
24
|
-
version: "1",
|
|
25
|
-
chains,
|
|
26
|
-
options: {
|
|
27
|
-
qrcode: ios,
|
|
28
|
-
...options
|
|
29
|
-
}
|
|
30
|
-
}) : getWalletConnectConnector({
|
|
31
|
-
version: "2",
|
|
32
|
-
chains,
|
|
33
|
-
projectId,
|
|
34
|
-
options: {
|
|
35
|
-
showQrModal: ios,
|
|
36
|
-
...options
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const getUri = async () => getWalletConnectUri(connector, version);
|
|
40
|
-
return {
|
|
41
|
-
connector,
|
|
42
|
-
...ios ? {} : {
|
|
43
|
-
mobile: { getUri },
|
|
44
|
-
qrCode: { getUri }
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
walletConnectWallet
|
|
52
|
-
};
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
getInjectedConnector,
|
|
4
4
|
hasInjectedProvider
|
|
5
5
|
} from "./chunk-UZ5XLPAW.js";
|
|
6
|
-
import {
|
|
7
|
-
isMobile
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
6
|
import {
|
|
10
7
|
getWalletConnectConnector,
|
|
11
8
|
getWalletConnectUri
|
|
12
9
|
} from "./chunk-6T5K52ZY.js";
|
|
10
|
+
import {
|
|
11
|
+
isMobile
|
|
12
|
+
} from "./chunk-ZOLACFTK.js";
|
|
13
13
|
|
|
14
14
|
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
15
15
|
var trustWallet = ({
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
getInjectedConnector,
|
|
4
4
|
hasInjectedProvider
|
|
5
5
|
} from "./chunk-UZ5XLPAW.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-ZOLACFTK.js";
|
|
10
6
|
import {
|
|
11
7
|
getWalletConnectConnector,
|
|
12
8
|
getWalletConnectUri
|
|
13
9
|
} from "./chunk-6T5K52ZY.js";
|
|
10
|
+
import {
|
|
11
|
+
isAndroid,
|
|
12
|
+
isIOS
|
|
13
|
+
} from "./chunk-ZOLACFTK.js";
|
|
14
14
|
|
|
15
15
|
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
16
16
|
var rainbowWallet = ({
|