@funkit/connect 6.0.4 → 6.0.5
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/CHANGELOG.md +7 -0
- package/dist/index.css +4 -4
- package/dist/index.js +82 -60
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +6 -1
- package/dist/utils/flags/config.d.ts +3 -26
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.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/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
- package/dist/wallets/walletConnectors/chunk-2GJQ4XZQ.js +0 -87
- package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +0 -70
- package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +0 -99
- package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +0 -94
- package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +0 -92
- package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +0 -93
- package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +0 -98
- package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +0 -100
- package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +0 -92
- package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +0 -106
- package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +0 -69
- package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +0 -218
- package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +0 -103
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
|
|
11
|
-
var bybitWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isBybitInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "bybitWallet"
|
|
17
|
-
});
|
|
18
|
-
const shouldUseWalletConnect = !isBybitInjected;
|
|
19
|
-
const getUri = (uri) => {
|
|
20
|
-
return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
|
|
21
|
-
uri
|
|
22
|
-
)}`;
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
id: "bybit",
|
|
26
|
-
name: "Bybit Wallet",
|
|
27
|
-
rdns: "com.bybit",
|
|
28
|
-
iconUrl: async () => (await import("./bybitWallet-GOPAS32Q.js")).default,
|
|
29
|
-
installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
|
|
30
|
-
iconBackground: "#000000",
|
|
31
|
-
downloadUrls: {
|
|
32
|
-
chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
|
|
33
|
-
browserExtension: "https://www.bybit.com/en/web3",
|
|
34
|
-
android: "https://play.google.com/store/apps/details?id=com.bybit.app",
|
|
35
|
-
ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
|
|
36
|
-
mobile: "https://www.bybit.com/en/web3",
|
|
37
|
-
qrCode: "https://www.bybit.com/en/web3"
|
|
38
|
-
},
|
|
39
|
-
mobile: {
|
|
40
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
41
|
-
},
|
|
42
|
-
qrCode: shouldUseWalletConnect ? {
|
|
43
|
-
getUri: (uri) => uri,
|
|
44
|
-
instructions: {
|
|
45
|
-
learnMoreUrl: "https://www.bybit.com/en/web3",
|
|
46
|
-
steps: [
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bybit.qr_code.step1.description",
|
|
49
|
-
step: "install",
|
|
50
|
-
title: "wallet_connectors.bybit.qr_code.step1.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bybit.qr_code.step2.description",
|
|
54
|
-
step: "create",
|
|
55
|
-
title: "wallet_connectors.bybit.qr_code.step2.title"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.bybit.qr_code.step3.description",
|
|
59
|
-
step: "scan",
|
|
60
|
-
title: "wallet_connectors.bybit.qr_code.step3.title"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
} : void 0,
|
|
65
|
-
extension: {
|
|
66
|
-
instructions: {
|
|
67
|
-
learnMoreUrl: "https://www.bybit.com/en/web3",
|
|
68
|
-
steps: [
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.bybit.extension.step1.description",
|
|
71
|
-
step: "install",
|
|
72
|
-
title: "wallet_connectors.bybit.extension.step1.title"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
description: "wallet_connectors.bybit.extension.step2.description",
|
|
76
|
-
step: "create",
|
|
77
|
-
title: "wallet_connectors.bybit.extension.step2.title"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "wallet_connectors.bybit.extension.step3.description",
|
|
81
|
-
step: "refresh",
|
|
82
|
-
title: "wallet_connectors.bybit.extension.step3.title"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
-
projectId,
|
|
89
|
-
walletConnectParameters
|
|
90
|
-
}) : getInjectedConnector({
|
|
91
|
-
namespace: "bybitWallet"
|
|
92
|
-
})
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export {
|
|
97
|
-
bybitWallet
|
|
98
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
|
-
import { isIOS } from "@funkit/utils";
|
|
12
|
-
var zerionWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isZerionInjected = hasInjectedProvider({
|
|
17
|
-
namespace: "zerionWallet",
|
|
18
|
-
flag: "isZerion"
|
|
19
|
-
});
|
|
20
|
-
const shouldUseWalletConnect = !isZerionInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
id: "zerion",
|
|
26
|
-
name: "Zerion",
|
|
27
|
-
rdns: "io.zerion.wallet",
|
|
28
|
-
iconUrl: async () => (await import("./zerionWallet-SEPREHKH.js")).default,
|
|
29
|
-
iconAccent: "#2962ef",
|
|
30
|
-
iconBackground: "#2962ef",
|
|
31
|
-
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
32
|
-
downloadUrls: {
|
|
33
|
-
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
34
|
-
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
35
|
-
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
36
|
-
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
37
|
-
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
38
|
-
browserExtension: "https://zerion.io/extension"
|
|
39
|
-
},
|
|
40
|
-
mobile: {
|
|
41
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
42
|
-
},
|
|
43
|
-
qrCode: shouldUseWalletConnect ? {
|
|
44
|
-
getUri,
|
|
45
|
-
instructions: {
|
|
46
|
-
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
47
|
-
steps: [
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
50
|
-
step: "install",
|
|
51
|
-
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
55
|
-
step: "create",
|
|
56
|
-
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
60
|
-
step: "scan",
|
|
61
|
-
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
} : void 0,
|
|
66
|
-
extension: {
|
|
67
|
-
instructions: {
|
|
68
|
-
learnMoreUrl: "https://help.zerion.io/en/",
|
|
69
|
-
steps: [
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.zerion.extension.step1.description",
|
|
72
|
-
step: "install",
|
|
73
|
-
title: "wallet_connectors.zerion.extension.step1.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.zerion.extension.step2.description",
|
|
77
|
-
step: "create",
|
|
78
|
-
title: "wallet_connectors.zerion.extension.step2.title"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "wallet_connectors.zerion.extension.step3.description",
|
|
82
|
-
step: "refresh",
|
|
83
|
-
title: "wallet_connectors.zerion.extension.step3.title"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
-
projectId,
|
|
90
|
-
walletConnectParameters
|
|
91
|
-
}) : getInjectedConnector({
|
|
92
|
-
namespace: "zerionWallet",
|
|
93
|
-
flag: "isZerion"
|
|
94
|
-
})
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
zerionWallet
|
|
100
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
-
var roninWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isRoninInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "ronin.provider"
|
|
17
|
-
});
|
|
18
|
-
return {
|
|
19
|
-
id: "ronin",
|
|
20
|
-
name: "Ronin Wallet",
|
|
21
|
-
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
22
|
-
iconBackground: "#ffffff",
|
|
23
|
-
rdns: "com.roninchain.wallet",
|
|
24
|
-
installed: isRoninInjected || void 0,
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
28
|
-
mobile: "https://wallet.roninchain.com",
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
30
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
31
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
32
|
-
browserExtension: "https://wallet.roninchain.com/",
|
|
33
|
-
qrCode: "https://wallet.roninchain.com/"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
|
|
37
|
-
},
|
|
38
|
-
qrCode: {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.ronin.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.ronin.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.ronin.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.ronin.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.ronin.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.ronin.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
})
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
roninWallet
|
|
92
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
11
|
-
import { isMobile } from "@funkit/utils";
|
|
12
|
-
var trustWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isTrustWalletInjected;
|
|
18
|
-
const getUriMobile = (uri) => {
|
|
19
|
-
return `trust://wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
const getUriQR = (uri) => {
|
|
22
|
-
return uri;
|
|
23
|
-
};
|
|
24
|
-
const mobileConnector = {
|
|
25
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
26
|
-
};
|
|
27
|
-
let qrConnector = void 0;
|
|
28
|
-
if (shouldUseWalletConnect) {
|
|
29
|
-
qrConnector = {
|
|
30
|
-
getUri: getUriQR,
|
|
31
|
-
instructions: {
|
|
32
|
-
learnMoreUrl: "https://trustwallet.com/",
|
|
33
|
-
steps: [
|
|
34
|
-
{
|
|
35
|
-
description: "wallet_connectors.trust.qr_code.step1.description",
|
|
36
|
-
step: "install",
|
|
37
|
-
title: "wallet_connectors.trust.qr_code.step1.title"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
description: "wallet_connectors.trust.qr_code.step2.description",
|
|
41
|
-
step: "create",
|
|
42
|
-
title: "wallet_connectors.trust.qr_code.step2.title"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.trust.qr_code.step3.description",
|
|
46
|
-
step: "scan",
|
|
47
|
-
title: "wallet_connectors.trust.qr_code.step3.title"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const extensionConnector = {
|
|
54
|
-
instructions: {
|
|
55
|
-
learnMoreUrl: "https://trustwallet.com/browser-extension",
|
|
56
|
-
steps: [
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.trust.extension.step1.description",
|
|
59
|
-
step: "install",
|
|
60
|
-
title: "wallet_connectors.trust.extension.step1.title"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
description: "wallet_connectors.trust.extension.step2.description",
|
|
64
|
-
step: "create",
|
|
65
|
-
title: "wallet_connectors.trust.extension.step2.title"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.trust.extension.step3.description",
|
|
69
|
-
step: "refresh",
|
|
70
|
-
title: "wallet_connectors.trust.extension.step3.title"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return {
|
|
76
|
-
id: "trust",
|
|
77
|
-
name: "Trust Wallet",
|
|
78
|
-
rdns: "com.trustwallet.app",
|
|
79
|
-
iconUrl: async () => (await import("./trustWallet-2N5TZJGC.js")).default,
|
|
80
|
-
// Note that we never resolve `installed` to `false` because the
|
|
81
|
-
// Trust Wallet provider falls back to other connection methods if
|
|
82
|
-
// the injected connector isn't available
|
|
83
|
-
installed: isTrustWalletInjected || void 0,
|
|
84
|
-
iconAccent: "#3375BB",
|
|
85
|
-
iconBackground: "#fff",
|
|
86
|
-
downloadUrls: {
|
|
87
|
-
android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
|
|
88
|
-
ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
|
|
89
|
-
mobile: "https://trustwallet.com/download",
|
|
90
|
-
qrCode: "https://trustwallet.com/download",
|
|
91
|
-
chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
|
|
92
|
-
browserExtension: "https://trustwallet.com/browser-extension"
|
|
93
|
-
},
|
|
94
|
-
mobile: mobileConnector,
|
|
95
|
-
qrCode: qrConnector,
|
|
96
|
-
extension: extensionConnector,
|
|
97
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
98
|
-
projectId,
|
|
99
|
-
walletConnectParameters
|
|
100
|
-
}) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
trustWallet
|
|
106
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.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
|
-
mobile: {
|
|
33
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
-
},
|
|
35
|
-
qrCode: shouldUseWalletConnect ? {
|
|
36
|
-
getUri: (uri) => uri,
|
|
37
|
-
instructions: {
|
|
38
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
-
steps: [
|
|
40
|
-
{
|
|
41
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
-
step: "install",
|
|
43
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
-
step: "create",
|
|
48
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
-
step: "scan",
|
|
53
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
} : void 0,
|
|
58
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
-
projectId,
|
|
60
|
-
walletConnectParameters
|
|
61
|
-
}) : getInjectedConnector({
|
|
62
|
-
flag: "isBifrost"
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
bifrostWallet
|
|
69
|
-
};
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
function isMetaMask(ethereum) {
|
|
13
|
-
if (!ethereum?.isMetaMask) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
if (ethereum.isApexWallet) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
if (ethereum.isAvalanche) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
if (ethereum.isBackpack) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
if (ethereum.isBifrost) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
if (ethereum.isBitKeep) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
if (ethereum.isBitski) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
if (ethereum.isBlockWallet) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
if (ethereum.isCoinbaseWallet) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
if (ethereum.isDawn) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
if (ethereum.isEnkrypt) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
if (ethereum.isExodus) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
if (ethereum.isFrame) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
if (ethereum.isFrontier) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
if (ethereum.isGamestop) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
if (ethereum.isHyperPay) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
if (ethereum.isImToken) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
if (ethereum.isKuCoinWallet) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
if (ethereum.isMathWallet) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
if (ethereum.isNestWallet) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
if (ethereum.isOpera) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
if (ethereum.isPhantom) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if (ethereum.isPortal) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
if (ethereum.isRabby) {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
if (ethereum.isRainbow) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
if (ethereum.isStatus) {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
if (ethereum.isTalisman) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
if (ethereum.isTally) {
|
|
104
|
-
return false;
|
|
105
|
-
}
|
|
106
|
-
if (ethereum.isTokenPocket) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
if (ethereum.isTokenary) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
113
|
-
return false;
|
|
114
|
-
}
|
|
115
|
-
if (ethereum.isXDEFI) {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
if (ethereum.isZeal) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
if (ethereum.isZerion) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
var metaMaskWallet = ({
|
|
127
|
-
projectId,
|
|
128
|
-
walletConnectParameters
|
|
129
|
-
}) => {
|
|
130
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
131
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
132
|
-
const getUri = (uri) => {
|
|
133
|
-
return isAndroid() ? uri : isIOS() ? (
|
|
134
|
-
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
135
|
-
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
136
|
-
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
137
|
-
};
|
|
138
|
-
return {
|
|
139
|
-
id: "metaMask",
|
|
140
|
-
name: "MetaMask",
|
|
141
|
-
rdns: "io.metamask",
|
|
142
|
-
iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
|
|
143
|
-
iconAccent: "#f6851a",
|
|
144
|
-
iconBackground: "#fff",
|
|
145
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
146
|
-
downloadUrls: {
|
|
147
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
148
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
149
|
-
mobile: "https://metamask.io/download",
|
|
150
|
-
qrCode: "https://metamask.io/download",
|
|
151
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
152
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
153
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
154
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
155
|
-
browserExtension: "https://metamask.io/download"
|
|
156
|
-
},
|
|
157
|
-
mobile: {
|
|
158
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
159
|
-
},
|
|
160
|
-
qrCode: shouldUseWalletConnect ? {
|
|
161
|
-
getUri,
|
|
162
|
-
instructions: {
|
|
163
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
164
|
-
steps: [
|
|
165
|
-
{
|
|
166
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
167
|
-
step: "install",
|
|
168
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
172
|
-
step: "create",
|
|
173
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
177
|
-
step: "refresh",
|
|
178
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
179
|
-
}
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
} : void 0,
|
|
183
|
-
extension: {
|
|
184
|
-
instructions: {
|
|
185
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
186
|
-
steps: [
|
|
187
|
-
{
|
|
188
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
189
|
-
step: "install",
|
|
190
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
194
|
-
step: "create",
|
|
195
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
199
|
-
step: "refresh",
|
|
200
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
206
|
-
projectId,
|
|
207
|
-
walletConnectParameters
|
|
208
|
-
}) : getInjectedConnector({
|
|
209
|
-
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
210
|
-
isMetaMask
|
|
211
|
-
) ?? window.ethereum : void 0
|
|
212
|
-
})
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export {
|
|
217
|
-
metaMaskWallet
|
|
218
|
-
};
|