@funkit/connect 6.0.3 → 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 +21 -0
- package/dist/domains/relay.d.ts +7 -13
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +6 -0
- package/dist/index.js +213 -174
- 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/index.js +41 -41
- package/package.json +5 -5
- 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,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/gateWallet/gateWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var gateWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isGateInjected;
|
|
18
|
-
return {
|
|
19
|
-
id: "gate",
|
|
20
|
-
name: "Gate Wallet",
|
|
21
|
-
rdns: "io.gate.wallet",
|
|
22
|
-
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
23
|
-
iconAccent: "#fff",
|
|
24
|
-
iconBackground: "#fff",
|
|
25
|
-
downloadUrls: {
|
|
26
|
-
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
27
|
-
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
28
|
-
mobile: "https://www.gate.io/mobileapp",
|
|
29
|
-
qrCode: "https://www.gate.io/web3",
|
|
30
|
-
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
31
|
-
browserExtension: "https://www.gate.io/web3"
|
|
32
|
-
},
|
|
33
|
-
mobile: {
|
|
34
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
35
|
-
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
36
|
-
} : void 0
|
|
37
|
-
},
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri: (uri) => uri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
extension: {
|
|
62
|
-
instructions: {
|
|
63
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
64
|
-
steps: [
|
|
65
|
-
{
|
|
66
|
-
description: "wallet_connectors.gate.extension.step1.description",
|
|
67
|
-
step: "install",
|
|
68
|
-
title: "wallet_connectors.gate.extension.step1.title"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.gate.extension.step2.description",
|
|
72
|
-
step: "create",
|
|
73
|
-
title: "wallet_connectors.gate.extension.step2.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.gate.extension.step3.description",
|
|
77
|
-
step: "refresh",
|
|
78
|
-
title: "wallet_connectors.gate.extension.step3.title"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
-
projectId,
|
|
85
|
-
walletConnectParameters
|
|
86
|
-
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export {
|
|
91
|
-
gateWallet
|
|
92
|
-
};
|
|
@@ -1,66 +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/foxWallet/foxWallet.ts
|
|
11
|
-
var foxWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isFoxInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "foxwallet.ethereum"
|
|
17
|
-
});
|
|
18
|
-
const shouldUseWalletConnect = !isFoxInjected;
|
|
19
|
-
return {
|
|
20
|
-
id: "foxwallet",
|
|
21
|
-
name: "FoxWallet",
|
|
22
|
-
iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
|
|
23
|
-
iconBackground: "#fff",
|
|
24
|
-
downloadUrls: {
|
|
25
|
-
android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
|
|
26
|
-
ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
|
|
27
|
-
qrCode: "https://foxwallet.com/download"
|
|
28
|
-
},
|
|
29
|
-
mobile: {
|
|
30
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
31
|
-
return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
32
|
-
} : void 0
|
|
33
|
-
},
|
|
34
|
-
qrCode: shouldUseWalletConnect ? {
|
|
35
|
-
getUri: (uri) => uri,
|
|
36
|
-
instructions: {
|
|
37
|
-
learnMoreUrl: "https://foxwallet.com",
|
|
38
|
-
steps: [
|
|
39
|
-
{
|
|
40
|
-
description: "wallet_connectors.fox.qr_code.step1.description",
|
|
41
|
-
step: "install",
|
|
42
|
-
title: "wallet_connectors.fox.qr_code.step1.title"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.fox.qr_code.step2.description",
|
|
46
|
-
step: "create",
|
|
47
|
-
title: "wallet_connectors.fox.qr_code.step2.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.fox.qr_code.step3.description",
|
|
51
|
-
step: "scan",
|
|
52
|
-
title: "wallet_connectors.fox.qr_code.step3.title"
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
} : void 0,
|
|
57
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
58
|
-
projectId,
|
|
59
|
-
walletConnectParameters
|
|
60
|
-
}) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
foxWallet
|
|
66
|
-
};
|
|
@@ -1,110 +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/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,93 +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/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
-
import { isMobile } from "@funkit/utils";
|
|
12
|
-
var tokenPocketWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
17
|
-
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "tokenPocket",
|
|
23
|
-
name: "TokenPocket",
|
|
24
|
-
rdns: "pro.tokenpocket",
|
|
25
|
-
iconUrl: async () => (await import("./tokenPocketWallet-FLFG3JUQ.js")).default,
|
|
26
|
-
iconBackground: "#2980FE",
|
|
27
|
-
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
30
|
-
browserExtension: "https://extension.tokenpocket.pro/",
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
32
|
-
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
33
|
-
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
34
|
-
mobile: "https://tokenpocket.pro/en/download/app"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
tokenPocketWallet
|
|
93
|
-
};
|
|
@@ -1,95 +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/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-DNSG5Q7V.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
|
-
};
|
|
@@ -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
|
-
};
|