@funkit/connect 9.11.0-next.0 → 9.11.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 (94) hide show
  1. package/CHANGELOG.md +15 -4
  2. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  3. package/dist/clients/fanatics.css +1 -1
  4. package/dist/clients/fanatics.js +1 -1
  5. package/dist/clients/lighter.css +1 -1
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/polymarket.js +74 -27
  8. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +5 -4
  9. package/dist/consts/bluvo.d.ts +27 -0
  10. package/dist/domains/swapped.d.ts +1 -1
  11. package/dist/hooks/useTokenTransfer.d.ts +2 -1
  12. package/dist/index.css +10 -10
  13. package/dist/index.js +2662 -2343
  14. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +1 -1
  15. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  16. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  21. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/index.js +68 -68
  26. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  35. package/package.json +5 -5
  36. package/dist/chunk-64NZSUGQ.js +0 -368
  37. package/dist/chunk-B2B6HDIE.js +0 -238
  38. package/dist/chunk-OQNN7EMQ.js +0 -238
  39. package/dist/chunk-S65TG73G.js +0 -247
  40. package/dist/chunk-VLAOBEJN.js +0 -247
  41. package/dist/clients/chunk-3LSYVQXK.js +0 -289
  42. package/dist/clients/chunk-5HU2XDR2.js +0 -289
  43. package/dist/clients/chunk-DKWYHSW3.js +0 -225
  44. package/dist/clients/chunk-IPK5DVIL.js +0 -229
  45. package/dist/clients/chunk-PVOHWTSR.js +0 -289
  46. package/dist/clients/chunk-SBQ2UUPK.js +0 -214
  47. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +0 -1
  48. package/dist/hooks/statsig/checkFeatureGate.d.ts +0 -19
  49. package/dist/hooks/track/CheckoutTrackingContext.d.ts +0 -60
  50. package/dist/hooks/useTokenChain.d.ts +0 -21
  51. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +0 -17
  52. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +0 -10
  53. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +0 -11
  54. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -9
  55. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +0 -15
  56. package/dist/modals/WithdrwalModal/types.d.ts +0 -5
  57. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +0 -24
  58. package/dist/wallets/walletConnectors/chunk-3ZJN3PXP.js +0 -87
  59. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +0 -93
  60. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +0 -66
  61. package/dist/wallets/walletConnectors/chunk-55VS2NKG.js +0 -95
  62. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +0 -98
  63. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +0 -96
  64. package/dist/wallets/walletConnectors/chunk-7IEUTLHY.js +0 -98
  65. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +0 -92
  66. package/dist/wallets/walletConnectors/chunk-AZYMJ4C6.js +0 -70
  67. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +0 -96
  68. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +0 -69
  69. package/dist/wallets/walletConnectors/chunk-FWM4KTOV.js +0 -106
  70. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +0 -95
  71. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +0 -70
  72. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +0 -87
  73. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +0 -218
  74. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +0 -99
  75. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +0 -110
  76. package/dist/wallets/walletConnectors/chunk-IMNI4AGV.js +0 -99
  77. package/dist/wallets/walletConnectors/chunk-IRHK6SOW.js +0 -218
  78. package/dist/wallets/walletConnectors/chunk-J3PJOMO7.js +0 -96
  79. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +0 -106
  80. package/dist/wallets/walletConnectors/chunk-LEAZMT5Y.js +0 -92
  81. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +0 -94
  82. package/dist/wallets/walletConnectors/chunk-OD6B2ISG.js +0 -69
  83. package/dist/wallets/walletConnectors/chunk-OSOB6QYX.js +0 -92
  84. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +0 -92
  85. package/dist/wallets/walletConnectors/chunk-RZQ4B4Z7.js +0 -96
  86. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +0 -100
  87. package/dist/wallets/walletConnectors/chunk-UFYNHHDU.js +0 -100
  88. package/dist/wallets/walletConnectors/chunk-UYW6MV74.js +0 -93
  89. package/dist/wallets/walletConnectors/chunk-VMMROPXK.js +0 -110
  90. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +0 -103
  91. package/dist/wallets/walletConnectors/chunk-YGMU5VWD.js +0 -66
  92. package/dist/wallets/walletConnectors/chunk-ZJJWGKB6.js +0 -103
  93. package/dist/wallets/walletConnectors/chunk-ZL6XCMV5.js +0 -94
  94. /package/dist/clients/{chunk-GCAV3VTB.js → chunk-LMEQD56M.js} +0 -0
@@ -1,100 +0,0 @@
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/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,100 +0,0 @@
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
- };
@@ -1,93 +0,0 @@
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
- };
@@ -1,110 +0,0 @@
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
- };
@@ -1,103 +0,0 @@
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
- };
@@ -1,66 +0,0 @@
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
- };
@@ -1,103 +0,0 @@
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
- };