@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,103 +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/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
|
-
};
|