@funkit/connect 11.6.0 → 12.0.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 (133) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/{chunk-67BKQQNG.js → chunk-2RND3WWH.js} +1 -1
  3. package/dist/{chunk-L67HP4HQ.js → chunk-53FF4ZHH.js} +1 -1
  4. package/dist/{chunk-4YEAUICE.js → chunk-DH3DS4FX.js} +1 -0
  5. package/dist/clients/chunk-27VBRE7W.js +4907 -0
  6. package/dist/clients/{chunk-UPB4JKJG.js → chunk-37Q6DUR7.js} +12 -7
  7. package/dist/clients/chunk-3DHSLLCU.js +331 -0
  8. package/dist/clients/{chunk-DUBZPIDN.js → chunk-3J2GOB5X.js} +1 -1
  9. package/dist/clients/{chunk-LYZLETOM.js → chunk-A5JW3UI6.js} +1 -1
  10. package/dist/clients/chunk-BCNE3ZKM.js +190 -0
  11. package/dist/clients/chunk-BWJC2WD7.js +4899 -0
  12. package/dist/clients/{chunk-ZQZDPRWC.js → chunk-DYV3LRSE.js} +1 -1
  13. package/dist/clients/{chunk-Y7WLUPTX.js → chunk-EQA5U4V6.js} +8 -8
  14. package/dist/clients/chunk-EYMFEWQL.js +30 -0
  15. package/dist/clients/chunk-FPOGADLJ.js +4899 -0
  16. package/dist/clients/chunk-HB7S3NDI.js +15 -0
  17. package/dist/clients/chunk-HDFCM5UL.js +15 -0
  18. package/dist/clients/{chunk-IYCZWLAF.js → chunk-IAIRECDV.js} +8 -37
  19. package/dist/clients/chunk-JVR4CX6N.js +296 -0
  20. package/dist/clients/chunk-NEKHTWTT.js +331 -0
  21. package/dist/clients/chunk-PA7WW6VC.js +296 -0
  22. package/dist/clients/chunk-R6UAC2TB.js +190 -0
  23. package/dist/clients/chunk-RHOSJED2.js +335 -0
  24. package/dist/clients/chunk-SKDFSMAO.js +30 -0
  25. package/dist/clients/chunk-TI2NG2Z6.js +30 -0
  26. package/dist/clients/chunk-TZFXFVDW.js +296 -0
  27. package/dist/clients/chunk-VE6QD5IM.js +149 -0
  28. package/dist/clients/chunk-VXX2XK5J.js +190 -0
  29. package/dist/clients/{chunk-WNZ6QV5Q.js → chunk-WXSFLUPZ.js} +79 -15
  30. package/dist/clients/chunk-XSRAZSYG.js +15 -0
  31. package/dist/clients/fanatics.css +4686 -4659
  32. package/dist/clients/fanatics.js +7 -9
  33. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  34. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  35. package/dist/clients/internal/nado/withdrawalForm.css +4712 -4682
  36. package/dist/clients/internal/nado/withdrawalForm.js +37 -13
  37. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  38. package/dist/clients/lighter.css +4712 -4682
  39. package/dist/clients/lighter.js +50 -30
  40. package/dist/clients/mallard.js +4 -4
  41. package/dist/clients/nado.js +3 -3
  42. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +28 -19
  43. package/dist/clients/polymarket/createPolymarketDepositConfig.js +5 -4
  44. package/dist/clients/polymarket/index.d.ts +0 -1
  45. package/dist/clients/polymarket/index.js +4 -17
  46. package/dist/clients/polymarket/polymarket.d.ts +12 -27
  47. package/dist/clients/polymarket/polymarket.js +1 -1
  48. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  49. package/dist/components/Box/Box.d.ts +15 -15
  50. package/dist/components/Dialog/Dialog.d.ts +8 -1
  51. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  52. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +10 -0
  53. package/dist/components/ModalHeaderTabs/ModalHeaderTabs.d.ts +23 -0
  54. package/dist/consts/polymarket.d.ts +14 -0
  55. package/dist/css/sprinkles.css.d.ts +17 -15
  56. package/dist/domains/polymarketPerps.d.ts +14 -0
  57. package/dist/hooks/queries/useFops.d.ts +3 -1
  58. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  59. package/dist/hooks/track/analytics/checkout.d.ts +10 -0
  60. package/dist/hooks/track/analytics/events.d.ts +20 -1
  61. package/dist/hooks/track/analytics/quote.d.ts +3 -1
  62. package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +2 -1
  63. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +0 -16
  64. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +12 -1
  65. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  66. package/dist/hooks/useFittedText.d.ts +19 -0
  67. package/dist/hooks/usePolymarketAccountBalances.d.ts +13 -25
  68. package/dist/hooks/useTextMeasurer.d.ts +1 -1
  69. package/dist/hooks/useUpdateActiveFunkitCheckout.d.ts +10 -0
  70. package/dist/index.css +4712 -4682
  71. package/dist/index.js +5121 -3752
  72. package/dist/modals/CheckoutModal/CheckoutModalPrefetchedHooks.d.ts +2 -1
  73. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
  74. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +6 -1
  75. package/dist/modals/PolymarketPerpsTransfer/DirectionSwapButton.d.ts +1 -11
  76. package/dist/modals/PolymarketPerpsTransfer/PerpsHeaderTabs.d.ts +29 -0
  77. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.css.d.ts +9 -0
  78. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.d.ts +15 -0
  79. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferBody.d.ts +12 -0
  80. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsPrefetch.d.ts +7 -0
  81. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +16 -2
  82. package/dist/modals/PolymarketPerpsTransfer/TransferAccountsCard.d.ts +12 -0
  83. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +8 -1
  84. package/dist/modals/PolymarketPerpsTransfer/TransferPercentOptions.d.ts +13 -0
  85. package/dist/modals/PolymarketPerpsTransfer/usePerpsHeaderTabsState.d.ts +28 -0
  86. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +31 -5
  87. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +6 -0
  88. package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +17 -0
  89. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +2 -1
  90. package/dist/providers/FunkitCheckoutContext/index.d.ts +13 -1
  91. package/dist/providers/FunkitCheckoutContext/types.d.ts +44 -20
  92. package/dist/providers/FunkitShadowHostProvider.d.ts +31 -0
  93. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  94. package/dist/providers/FunkitThemeStyle.d.ts +12 -0
  95. package/dist/shadow/loadShadowCss.d.ts +9 -0
  96. package/dist/shadow/useMountShadowHost.d.ts +18 -0
  97. package/dist/shadow/useShadowCss.d.ts +6 -0
  98. package/dist/shadow-css.js +1 -1
  99. package/dist/themes/baseTheme.js +1 -1
  100. package/dist/themes/darkTheme.js +2 -2
  101. package/dist/themes/lightTheme.js +2 -2
  102. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  103. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  104. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  105. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  106. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  107. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  108. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  109. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  110. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  111. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  112. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  113. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  114. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  115. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  116. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  117. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  118. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  119. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  120. package/dist/wallets/walletConnectors/index.js +33 -33
  121. package/package.json +5 -5
  122. package/dist/clients/chunk-DSZHYQPX.js +0 -31
  123. package/dist/clients/chunk-FNB7OPJI.js +0 -1316
  124. package/dist/clients/chunk-HZP4DXIZ.js +0 -231
  125. package/dist/clients/chunk-LUHEVXPD.js +0 -109
  126. package/dist/clients/chunk-SX3CX34W.js +0 -1177
  127. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +0 -17545
  128. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +0 -30
  129. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +0 -20
  130. package/dist/clients/polymarket/index.css +0 -17545
  131. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferRows.d.ts +0 -10
  132. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.css.d.ts +0 -13
  133. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.d.ts +0 -27
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,93 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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,66 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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,95 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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,94 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.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
+ };
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-OLZ7626J.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-N4IJLYFY.js";
9
+
10
+ // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
+ var clvWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
16
+ const shouldUseWalletConnect = !isCLVInjected;
17
+ return {
18
+ id: "clv",
19
+ name: "CLV",
20
+ iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
21
+ iconBackground: "#fff",
22
+ iconAccent: "#BDFDE2",
23
+ installed: isCLVInjected,
24
+ downloadUrls: {
25
+ chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
26
+ ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
27
+ mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
28
+ qrCode: "https://clv.org/"
29
+ },
30
+ extension: {
31
+ instructions: {
32
+ learnMoreUrl: "https://clv.org/",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.clv.extension.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.clv.extension.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.clv.extension.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.clv.extension.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.clv.extension.step3.description",
46
+ step: "refresh",
47
+ title: "wallet_connectors.clv.extension.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ mobile: {
53
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
54
+ },
55
+ qrCode: shouldUseWalletConnect ? {
56
+ getUri: (uri) => uri,
57
+ instructions: {
58
+ learnMoreUrl: "https://clv.org/",
59
+ steps: [
60
+ {
61
+ description: "wallet_connectors.clv.qr_code.step1.description",
62
+ step: "install",
63
+ title: "wallet_connectors.clv.qr_code.step1.title"
64
+ },
65
+ {
66
+ description: "wallet_connectors.clv.qr_code.step2.description",
67
+ step: "create",
68
+ title: "wallet_connectors.clv.qr_code.step2.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.clv.qr_code.step3.description",
72
+ step: "scan",
73
+ title: "wallet_connectors.clv.qr_code.step3.title"
74
+ }
75
+ ]
76
+ }
77
+ } : void 0,
78
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
79
+ projectId,
80
+ walletConnectParameters
81
+ }) : getInjectedConnector({ namespace: "clover" })
82
+ };
83
+ };
84
+
85
+ export {
86
+ clvWallet
87
+ };