@funkit/connect 9.7.0 → 9.7.2-next.0

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/__generated__/default_configs.d.ts +3 -5
  3. package/dist/__generated__/default_feature_gates.d.ts +3 -0
  4. package/dist/chunk-64NZSUGQ.js +368 -0
  5. package/dist/chunk-B2B6HDIE.js +238 -0
  6. package/dist/chunk-OQNN7EMQ.js +238 -0
  7. package/dist/chunk-S65TG73G.js +247 -0
  8. package/dist/chunk-VLAOBEJN.js +247 -0
  9. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  10. package/dist/clients/fanatics.css +1 -1
  11. package/dist/clients/lighter.d.ts +138 -0
  12. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
  13. package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -4
  14. package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
  15. package/dist/hooks/track/CheckoutModalEvent.d.ts +3 -1
  16. package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
  17. package/dist/hooks/useIsUserUnderComplianceReview.d.ts +1 -0
  18. package/dist/hooks/useTokenChain.d.ts +21 -0
  19. package/dist/index.css +10 -10
  20. package/dist/index.js +745 -656
  21. package/dist/modals/CheckoutModal/SourceChange/ComplianceReviewBanner.d.ts +6 -0
  22. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +2 -1
  23. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +2 -1
  24. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
  25. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
  26. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
  27. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
  28. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
  29. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  30. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
  31. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
  32. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
  33. package/dist/modals/WithdrwalModal/types.d.ts +5 -0
  34. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  35. package/dist/utils/flags/config.d.ts +7 -0
  36. package/dist/wallets/walletConnectors/chunk-3ZJN3PXP.js +87 -0
  37. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
  38. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
  39. package/dist/wallets/walletConnectors/chunk-55VS2NKG.js +95 -0
  40. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
  41. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
  42. package/dist/wallets/walletConnectors/chunk-7IEUTLHY.js +98 -0
  43. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
  44. package/dist/wallets/walletConnectors/chunk-AZYMJ4C6.js +70 -0
  45. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
  46. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
  47. package/dist/wallets/walletConnectors/chunk-FWM4KTOV.js +106 -0
  48. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
  49. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
  50. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
  51. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
  52. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
  53. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
  54. package/dist/wallets/walletConnectors/chunk-IMNI4AGV.js +99 -0
  55. package/dist/wallets/walletConnectors/chunk-IRHK6SOW.js +218 -0
  56. package/dist/wallets/walletConnectors/chunk-J3PJOMO7.js +96 -0
  57. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
  58. package/dist/wallets/walletConnectors/chunk-LEAZMT5Y.js +92 -0
  59. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
  60. package/dist/wallets/walletConnectors/chunk-OD6B2ISG.js +69 -0
  61. package/dist/wallets/walletConnectors/chunk-OSOB6QYX.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
  63. package/dist/wallets/walletConnectors/chunk-RZQ4B4Z7.js +96 -0
  64. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
  65. package/dist/wallets/walletConnectors/chunk-UFYNHHDU.js +100 -0
  66. package/dist/wallets/walletConnectors/chunk-UYW6MV74.js +93 -0
  67. package/dist/wallets/walletConnectors/chunk-VMMROPXK.js +110 -0
  68. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
  69. package/dist/wallets/walletConnectors/chunk-YGMU5VWD.js +66 -0
  70. package/dist/wallets/walletConnectors/chunk-ZJJWGKB6.js +103 -0
  71. package/dist/wallets/walletConnectors/chunk-ZL6XCMV5.js +94 -0
  72. package/dist/wallets/walletConnectors/index.js +44 -44
  73. package/package.json +4 -4
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.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
+ };
@@ -0,0 +1,93 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.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
+ };
@@ -0,0 +1,110 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.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
+ };
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.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
+ };
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.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
+ };
@@ -0,0 +1,103 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.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
+ };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.js";
9
+
10
+ // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var okxWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
17
+ const shouldUseWalletConnect = !isOKXInjected;
18
+ return {
19
+ id: "okx",
20
+ name: "OKX Wallet",
21
+ rdns: "com.okex.wallet",
22
+ iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
23
+ iconAccent: "#000",
24
+ iconBackground: "#000",
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
27
+ ios: "https://itunes.apple.com/app/id1327268470?mt=8",
28
+ mobile: "https://okx.com/download",
29
+ qrCode: "https://okx.com/download",
30
+ chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
31
+ edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
32
+ firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
33
+ browserExtension: "https://okx.com/download"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => uri,
42
+ instructions: {
43
+ learnMoreUrl: "https://okx.com/web3/",
44
+ steps: [
45
+ {
46
+ description: "wallet_connectors.okx.qr_code.step1.description",
47
+ step: "install",
48
+ title: "wallet_connectors.okx.qr_code.step1.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.okx.qr_code.step2.description",
52
+ step: "create",
53
+ title: "wallet_connectors.okx.qr_code.step2.title"
54
+ },
55
+ {
56
+ description: "wallet_connectors.okx.qr_code.step3.description",
57
+ step: "scan",
58
+ title: "wallet_connectors.okx.qr_code.step3.title"
59
+ }
60
+ ]
61
+ }
62
+ } : void 0,
63
+ extension: {
64
+ instructions: {
65
+ learnMoreUrl: "https://okx.com/web3/",
66
+ steps: [
67
+ {
68
+ description: "wallet_connectors.okx.extension.step1.description",
69
+ step: "install",
70
+ title: "wallet_connectors.okx.extension.step1.title"
71
+ },
72
+ {
73
+ description: "wallet_connectors.okx.extension.step2.description",
74
+ step: "create",
75
+ title: "wallet_connectors.okx.extension.step2.title"
76
+ },
77
+ {
78
+ description: "wallet_connectors.okx.extension.step3.description",
79
+ step: "refresh",
80
+ title: "wallet_connectors.okx.extension.step3.title"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
+ projectId,
87
+ walletConnectParameters
88
+ }) : getInjectedConnector({ namespace: "okxwallet" })
89
+ };
90
+ };
91
+
92
+ export {
93
+ okxWallet
94
+ };