@funkit/connect 3.5.0 → 3.5.1
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 +6 -0
- package/dist/index.js +1 -2
- package/dist/providers/FunkitCheckoutContext.d.ts +1 -1
- 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 +78 -78
- 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 +1 -1
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-C7PUODSS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-DWOWRRNZ.js +0 -73
- package/dist/wallets/walletConnectors/chunk-HA5KAB4M.js +0 -71
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-N2UFM6FI.js +0 -95
- package/dist/wallets/walletConnectors/chunk-NMB62FCH.js +0 -108
- package/dist/wallets/walletConnectors/chunk-QQEO4YQS.js +0 -149
- package/dist/wallets/walletConnectors/chunk-R6TLOQL3.js +0 -98
- package/dist/wallets/walletConnectors/chunk-RMNN2RIV.js +0 -102
- package/dist/wallets/walletConnectors/chunk-SIPHIY4F.js +0 -101
- package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/subWallet/subWallet.ts
|
|
11
|
-
var subWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
|
|
16
|
-
const shouldUseWalletConnect = !isSubWalletInjected;
|
|
17
|
-
const getUriMobile = (uri) => {
|
|
18
|
-
return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
19
|
-
};
|
|
20
|
-
const getUriQR = (uri) => {
|
|
21
|
-
return uri;
|
|
22
|
-
};
|
|
23
|
-
const mobileConnector = {
|
|
24
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
25
|
-
};
|
|
26
|
-
let qrConnector = void 0;
|
|
27
|
-
if (shouldUseWalletConnect) {
|
|
28
|
-
qrConnector = {
|
|
29
|
-
getUri: getUriQR,
|
|
30
|
-
instructions: {
|
|
31
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
32
|
-
steps: [
|
|
33
|
-
{
|
|
34
|
-
description: "wallet_connectors.subwallet.qr_code.step1.description",
|
|
35
|
-
step: "install",
|
|
36
|
-
title: "wallet_connectors.subwallet.qr_code.step1.title"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
description: "wallet_connectors.subwallet.qr_code.step2.description",
|
|
40
|
-
step: "create",
|
|
41
|
-
title: "wallet_connectors.subwallet.qr_code.step2.title"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.subwallet.qr_code.step3.description",
|
|
45
|
-
step: "scan",
|
|
46
|
-
title: "wallet_connectors.subwallet.qr_code.step3.title"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
const extensionConnector = {
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://www.subwallet.app/",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.subwallet.extension.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.subwallet.extension.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.subwallet.extension.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.subwallet.extension.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.subwallet.extension.step3.description",
|
|
68
|
-
step: "refresh",
|
|
69
|
-
title: "wallet_connectors.subwallet.extension.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return {
|
|
75
|
-
id: "subwallet",
|
|
76
|
-
name: "SubWallet",
|
|
77
|
-
rdns: "app.subwallet",
|
|
78
|
-
iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
|
|
79
|
-
iconBackground: "#fff",
|
|
80
|
-
installed: isSubWalletInjected || void 0,
|
|
81
|
-
downloadUrls: {
|
|
82
|
-
browserExtension: "https://www.subwallet.app/download",
|
|
83
|
-
chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
84
|
-
firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
|
|
85
|
-
edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
|
|
86
|
-
mobile: "https://www.subwallet.app/download",
|
|
87
|
-
android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
|
|
88
|
-
ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
|
|
89
|
-
qrCode: "https://www.subwallet.app/download"
|
|
90
|
-
},
|
|
91
|
-
mobile: mobileConnector,
|
|
92
|
-
qrCode: qrConnector,
|
|
93
|
-
extension: extensionConnector,
|
|
94
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
95
|
-
projectId,
|
|
96
|
-
walletConnectParameters
|
|
97
|
-
}) : getInjectedConnector({ namespace: "SubWallet" })
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
subWallet
|
|
103
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
|
|
11
|
-
var safepalWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSafePalWalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "safepalProvider",
|
|
17
|
-
flag: "isSafePal"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isSafePalWalletInjected;
|
|
20
|
-
const getUriMobile = (uri) => {
|
|
21
|
-
return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
const getUriQR = async (uri) => {
|
|
24
|
-
return uri;
|
|
25
|
-
};
|
|
26
|
-
const mobileConnector = {
|
|
27
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
28
|
-
};
|
|
29
|
-
let qrConnector = void 0;
|
|
30
|
-
if (shouldUseWalletConnect) {
|
|
31
|
-
qrConnector = {
|
|
32
|
-
getUri: getUriQR,
|
|
33
|
-
instructions: {
|
|
34
|
-
learnMoreUrl: "https://safepal.com/",
|
|
35
|
-
steps: [
|
|
36
|
-
{
|
|
37
|
-
description: "wallet_connectors.safepal.qr_code.step1.description",
|
|
38
|
-
step: "install",
|
|
39
|
-
title: "wallet_connectors.safepal.qr_code.step1.title"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.safepal.qr_code.step2.description",
|
|
43
|
-
step: "create",
|
|
44
|
-
title: "wallet_connectors.safepal.qr_code.step2.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.safepal.qr_code.step3.description",
|
|
48
|
-
step: "scan",
|
|
49
|
-
title: "wallet_connectors.safepal.qr_code.step3.title"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const extensionConnector = {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://www.safepal.com/download?product=2",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.safepal.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.safepal.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.safepal.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.safepal.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.safepal.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.safepal.extension.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
id: "safepal",
|
|
79
|
-
name: "SafePal Wallet",
|
|
80
|
-
iconUrl: async () => (await import("./safepalWallet-7YULGM2L.js")).default,
|
|
81
|
-
// Note that we never resolve `installed` to `false` because the
|
|
82
|
-
// SafePal Wallet provider falls back to other connection methods if
|
|
83
|
-
// the injected connector isn't available
|
|
84
|
-
installed: isSafePalWalletInjected,
|
|
85
|
-
iconAccent: "#3375BB",
|
|
86
|
-
iconBackground: "#fff",
|
|
87
|
-
downloadUrls: {
|
|
88
|
-
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
|
|
89
|
-
ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
|
|
90
|
-
mobile: "https://www.safepal.com/en/download",
|
|
91
|
-
qrCode: "https://www.safepal.com/en/download",
|
|
92
|
-
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
93
|
-
browserExtension: "https://www.safepal.com/download?product=2"
|
|
94
|
-
},
|
|
95
|
-
mobile: mobileConnector,
|
|
96
|
-
...qrConnector ? qrConnector : {},
|
|
97
|
-
extension: extensionConnector,
|
|
98
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
99
|
-
projectId,
|
|
100
|
-
walletConnectParameters
|
|
101
|
-
}) : getInjectedConnector({
|
|
102
|
-
namespace: "safepalProvider",
|
|
103
|
-
flag: "isSafePal"
|
|
104
|
-
})
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
safepalWallet
|
|
110
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
14
|
-
var gateWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
19
|
-
const shouldUseWalletConnect = !isGateInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "gate",
|
|
22
|
-
name: "Gate Wallet",
|
|
23
|
-
rdns: "io.gate.wallet",
|
|
24
|
-
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
25
|
-
iconAccent: "#fff",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
30
|
-
mobile: "https://www.gate.io/mobileapp",
|
|
31
|
-
qrCode: "https://www.gate.io/web3",
|
|
32
|
-
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
33
|
-
browserExtension: "https://www.gate.io/web3"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => uri,
|
|
42
|
-
instructions: {
|
|
43
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
44
|
-
steps: [
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
47
|
-
step: "install",
|
|
48
|
-
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
52
|
-
step: "create",
|
|
53
|
-
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
57
|
-
step: "scan",
|
|
58
|
-
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
} : void 0,
|
|
63
|
-
extension: {
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.gate.extension.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.gate.extension.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.gate.extension.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.gate.extension.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.gate.extension.step3.description",
|
|
79
|
-
step: "refresh",
|
|
80
|
-
title: "wallet_connectors.gate.extension.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
-
projectId,
|
|
87
|
-
walletConnectParameters
|
|
88
|
-
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
gateWallet
|
|
94
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid,
|
|
4
|
-
isIOS
|
|
5
|
-
} from "./chunk-RETKWSKD.js";
|
|
6
|
-
import {
|
|
7
|
-
getInjectedConnector,
|
|
8
|
-
hasInjectedProvider
|
|
9
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-23WIEY36.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
-
var rainbowWallet = ({
|
|
16
|
-
projectId,
|
|
17
|
-
walletConnectParameters
|
|
18
|
-
}) => {
|
|
19
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
20
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
23
|
-
uri
|
|
24
|
-
)}&connector=rainbowkit`;
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
id: "rainbow",
|
|
28
|
-
name: "Rainbow",
|
|
29
|
-
rdns: "me.rainbow",
|
|
30
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
31
|
-
iconBackground: "#0c2f78",
|
|
32
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
33
|
-
downloadUrls: {
|
|
34
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
35
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
36
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
37
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
38
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
39
|
-
},
|
|
40
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
41
|
-
qrCode: shouldUseWalletConnect ? {
|
|
42
|
-
getUri,
|
|
43
|
-
instructions: {
|
|
44
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
45
|
-
steps: [
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
48
|
-
step: "install",
|
|
49
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
53
|
-
step: "create",
|
|
54
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
58
|
-
step: "scan",
|
|
59
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
} : void 0,
|
|
64
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
65
|
-
projectId,
|
|
66
|
-
walletConnectParameters
|
|
67
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
rainbowWallet
|
|
73
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid
|
|
4
|
-
} from "./chunk-RETKWSKD.js";
|
|
5
|
-
import {
|
|
6
|
-
getInjectedConnector,
|
|
7
|
-
hasInjectedProvider
|
|
8
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
-
var bifrostWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
19
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
20
|
-
const getUri = (uri) => {
|
|
21
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "bifrostWallet",
|
|
25
|
-
name: "Bifrost Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
27
|
-
iconBackground: "#fff",
|
|
28
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
29
|
-
downloadUrls: {
|
|
30
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
31
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
32
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
33
|
-
},
|
|
34
|
-
mobile: {
|
|
35
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
36
|
-
},
|
|
37
|
-
qrCode: shouldUseWalletConnect ? {
|
|
38
|
-
getUri: (uri) => uri,
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
54
|
-
step: "scan",
|
|
55
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
} : void 0,
|
|
60
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
61
|
-
projectId,
|
|
62
|
-
walletConnectParameters
|
|
63
|
-
}) : getInjectedConnector({
|
|
64
|
-
flag: "isBifrost"
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
bifrostWallet
|
|
71
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coreWallet/coreWallet.ts
|
|
11
|
-
var coreWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoreInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "avalanche",
|
|
17
|
-
flag: "isAvalanche"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoreInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "core",
|
|
22
|
-
name: "Core",
|
|
23
|
-
rdns: "app.core.extension",
|
|
24
|
-
iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default,
|
|
25
|
-
iconBackground: "#1A1A1C",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
|
|
30
|
-
mobile: "https://core.app/?downloadCoreMobile=1",
|
|
31
|
-
qrCode: "https://core.app/?downloadCoreMobile=1",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
|
|
33
|
-
browserExtension: "https://extension.core.app/"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
37
|
-
},
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.core.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.core.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.core.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.core.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.core.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.core.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://extension.core.app/",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.core.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.core.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.core.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.core.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.core.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.core.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
}) : getInjectedConnector({
|
|
87
|
-
namespace: "avalanche",
|
|
88
|
-
flag: "isAvalanche"
|
|
89
|
-
})
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export {
|
|
94
|
-
coreWallet
|
|
95
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
|
-
var coin98Wallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "coin98.provider",
|
|
17
|
-
flag: "isCoin98"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "coin98",
|
|
22
|
-
name: "Coin98 Wallet",
|
|
23
|
-
iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
|
|
24
|
-
installed: isCoin98WalletInjected,
|
|
25
|
-
iconAccent: "#CDA349",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
rdns: "coin98.com",
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
-
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
-
mobile: "https://coin98.com/wallet",
|
|
32
|
-
qrCode: "https://coin98.com/wallet",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
-
browserExtension: "https://coin98.com/wallet"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri: (uri) => uri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({
|
|
88
|
-
namespace: "coin98Wallet",
|
|
89
|
-
flag: "isCoin98"
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
coin98Wallet
|
|
96
|
-
};
|