@funkit/connect 0.1.13 → 0.1.15
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-IDQLTS4C.js} +231 -98
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +2 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +8 -4
- package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
- package/dist/components/index.js +3 -3
- package/dist/hooks/useCheckoutType.d.ts +5 -0
- package/dist/hooks/useFunListeners.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +1 -0
- package/dist/wallets/walletConnectors/index.js +41 -41
- package/package.json +4 -4
- package/dist/wallets/walletConnectors/chunk-2XHTO74O.js +0 -226
- package/dist/wallets/walletConnectors/chunk-4WS4ZSRN.js +0 -84
- package/dist/wallets/walletConnectors/chunk-BDKAIAQA.js +0 -71
- package/dist/wallets/walletConnectors/chunk-DBMFZSXN.js +0 -52
- package/dist/wallets/walletConnectors/chunk-FTTYELWN.js +0 -71
- package/dist/wallets/walletConnectors/chunk-JJICTRJY.js +0 -114
- package/dist/wallets/walletConnectors/chunk-KUXG7P5Q.js +0 -102
- package/dist/wallets/walletConnectors/chunk-LBSWP7R6.js +0 -81
- package/dist/wallets/walletConnectors/chunk-MDDT3PSR.js +0 -110
- package/dist/wallets/walletConnectors/chunk-Q6N2YWW4.js +0 -112
- package/dist/wallets/walletConnectors/chunk-RL5OHS6R.js +0 -113
- package/dist/wallets/walletConnectors/chunk-TORM2ZGA.js +0 -117
- package/dist/wallets/walletConnectors/chunk-VAR774R5.js +0 -105
- package/dist/wallets/walletConnectors/chunk-X6A7D2EA.js +0 -71
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.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
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isIOS
|
|
8
|
-
} from "./chunk-ZOLACFTK.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
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.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,114 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.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,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isMobile
|
|
8
|
-
} from "./chunk-ZOLACFTK.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,81 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.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,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-6T5K52ZY.js";
|
|
6
|
-
import {
|
|
7
|
-
isIOS
|
|
8
|
-
} from "./chunk-ZOLACFTK.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
|
-
};
|