@funkit/connect 9.24.0-next.0 → 9.25.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 (108) hide show
  1. package/CHANGELOG.md +50 -4
  2. package/dist/clients/aave.d.ts +9 -0
  3. package/dist/clients/aave.js +4 -1
  4. package/dist/clients/{chunk-4HCOSF4M.js → chunk-7G3QEQFB.js} +2 -2
  5. package/dist/clients/{chunk-7FIVHWNC.js → chunk-7UIDHSYG.js} +47 -0
  6. package/dist/clients/{chunk-UUHGOBKZ.js → chunk-AHYOV7AV.js} +2 -1
  7. package/dist/clients/{chunk-S7FRYR55.js → chunk-ME4OAQIY.js} +1 -1
  8. package/dist/clients/{chunk-CEBG7XQ5.js → chunk-MXPZTW2H.js} +212 -1126
  9. package/dist/clients/chunk-SQ2RX7WY.js +1110 -0
  10. package/dist/clients/{chunk-KWIR3HO4.js → chunk-VJZW3MA3.js} +1 -1
  11. package/dist/clients/{chunk-MRBN4XCA.js → chunk-ZEXZQOAO.js} +1 -1
  12. package/dist/clients/fanatics.css +1 -1
  13. package/dist/clients/fanatics.js +4 -6
  14. package/dist/clients/lighter.css +2816 -1
  15. package/dist/clients/lighter.js +44 -28
  16. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +217 -222
  17. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -8
  18. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  19. package/dist/clients/polymarket/index.css +217 -222
  20. package/dist/clients/polymarket/index.js +7 -8
  21. package/dist/clients/polymarket/polymarket.js +2 -2
  22. package/dist/clients/polymarket/usePolymarketAccountBalances.js +2 -2
  23. package/dist/clients/rolly.js +1 -1
  24. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryContent.d.ts +1 -2
  25. package/dist/components/FunTooltip/FunTooltip.d.ts +10 -5
  26. package/dist/components/FunTransactionSummary/DestinationHealthFactorRow.d.ts +15 -0
  27. package/dist/components/FunTransactionSummary/DestinationYieldRows.d.ts +1 -0
  28. package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -1
  29. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +8 -1
  30. package/dist/domains/aave.d.ts +14 -9
  31. package/dist/domains/nado.d.ts +9 -0
  32. package/dist/hooks/track/CheckoutModalEvent.d.ts +0 -1
  33. package/dist/hooks/track/WithdrawModalEvent.d.ts +9 -1
  34. package/dist/hooks/useGetAssetHoldingsFromRpc.d.ts +23 -0
  35. package/dist/hooks/useInjectedAssetHoldings.d.ts +23 -0
  36. package/dist/hooks/useXstockAssetHoldings.d.ts +15 -0
  37. package/dist/hooks/useXstocksWrappedTokenAddress.d.ts +16 -0
  38. package/dist/index.css +11 -16
  39. package/dist/index.js +4696 -4117
  40. package/dist/modals/CheckoutModal/CheckoutComplete/CheckoutComplete.d.ts +1 -1
  41. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +0 -1
  42. package/dist/modals/CheckoutModal/InputAmount/useNadoDirectTransfer.d.ts +64 -0
  43. package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +1 -1
  44. package/dist/modals/CheckoutModal/stepTransition.d.ts +0 -3
  45. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +25 -4
  46. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +10 -1
  47. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +8 -1
  48. package/dist/modals/WithdrawalModal/WithdrawalSwappedIframeController.d.ts +11 -0
  49. package/dist/modals/WithdrawalModal/types.d.ts +1 -0
  50. package/dist/providers/FunkitCheckoutContext/types.d.ts +29 -12
  51. package/dist/utils/assets.d.ts +7 -0
  52. package/dist/utils/checkoutHistory.d.ts +1 -5
  53. package/dist/utils/customer.d.ts +6 -0
  54. package/dist/wallets/walletConnectors/index.js +50 -50
  55. package/package.json +6 -6
  56. package/dist/__generated__/default_configs.d.ts +0 -901
  57. package/dist/__generated__/default_feature_gates.d.ts +0 -20
  58. package/dist/clients/chunk-25ICASD7.js +0 -2371
  59. package/dist/clients/chunk-3GO74QTP.js +0 -2382
  60. package/dist/clients/chunk-7GWX2ZS4.js +0 -69
  61. package/dist/clients/chunk-7HNGV6JU.js +0 -54
  62. package/dist/clients/chunk-A32VN2DX.js +0 -2382
  63. package/dist/clients/chunk-ELLXM7RO.js +0 -186
  64. package/dist/clients/chunk-GGXTLJ7J.js +0 -290
  65. package/dist/clients/chunk-GUWXVR5S.js +0 -186
  66. package/dist/clients/chunk-HRWCNZJA.js +0 -230
  67. package/dist/clients/chunk-JBWB54MX.js +0 -69
  68. package/dist/clients/chunk-JD3FIVZ7.js +0 -69
  69. package/dist/clients/chunk-JTGKAPID.js +0 -2382
  70. package/dist/clients/chunk-L7PABCF2.js +0 -54
  71. package/dist/clients/chunk-LII3SVUH.js +0 -230
  72. package/dist/clients/chunk-NCUPPJ2Z.js +0 -2382
  73. package/dist/clients/chunk-NPPIETHZ.js +0 -54
  74. package/dist/clients/chunk-NUJ6ZM5F.js +0 -186
  75. package/dist/clients/chunk-UVWNEQMD.js +0 -186
  76. package/dist/clients/chunk-VVTNR7YH.js +0 -2382
  77. package/dist/clients/chunk-YYMIRDCQ.js +0 -230
  78. package/dist/clients/chunk-ZNVFASTH.js +0 -54
  79. package/dist/clients/nado.d.ts +0 -78
  80. package/dist/clients/nado.js +0 -107
  81. package/dist/clients/polymarket.d.ts +0 -161
  82. package/dist/clients/polymarket.js +0 -688
  83. package/dist/components/FunCheckoutHistory/FunCheckoutHistoryHelp.d.ts +0 -10
  84. package/dist/interfaces/logTransport.d.ts +0 -51
  85. package/dist/interfaces/swapped-transport.d.ts +0 -78
  86. package/dist/modals/CheckoutModal/CheckoutHelp/CheckoutHelp.d.ts +0 -9
  87. package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
  88. package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
  89. package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
  90. package/dist/utils/flags/resolver.d.ts +0 -34
  91. package/dist/wallets/walletConnectors/chunk-4NV5BYRP.js +0 -95
  92. package/dist/wallets/walletConnectors/chunk-AVDUNQUW.js +0 -96
  93. package/dist/wallets/walletConnectors/chunk-GUQM4QSL.js +0 -66
  94. package/dist/wallets/walletConnectors/chunk-IULPZP2Q.js +0 -69
  95. package/dist/wallets/walletConnectors/chunk-JPN6TWIT.js +0 -92
  96. package/dist/wallets/walletConnectors/chunk-KCRO2AGO.js +0 -106
  97. package/dist/wallets/walletConnectors/chunk-KI5Y2BBF.js +0 -94
  98. package/dist/wallets/walletConnectors/chunk-NR2OGDHQ.js +0 -103
  99. package/dist/wallets/walletConnectors/chunk-OEEGYENV.js +0 -87
  100. package/dist/wallets/walletConnectors/chunk-OX37G4YT.js +0 -98
  101. package/dist/wallets/walletConnectors/chunk-SWFF3TWJ.js +0 -100
  102. package/dist/wallets/walletConnectors/chunk-TKB2OY6G.js +0 -99
  103. package/dist/wallets/walletConnectors/chunk-W2LCLDPX.js +0 -70
  104. package/dist/wallets/walletConnectors/chunk-WAHGI5L7.js +0 -96
  105. package/dist/wallets/walletConnectors/chunk-WKNQMP4A.js +0 -93
  106. package/dist/wallets/walletConnectors/chunk-XCNHV3HS.js +0 -110
  107. package/dist/wallets/walletConnectors/chunk-YO2K4MBH.js +0 -218
  108. package/dist/wallets/walletConnectors/chunk-YQFGVZGR.js +0 -92
@@ -1,106 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/trustWallet/trustWallet.ts
11
- import { isMobile } from "@funkit/utils";
12
- var trustWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
17
- const shouldUseWalletConnect = !isTrustWalletInjected;
18
- const getUriMobile = (uri) => {
19
- return `trust://wc?uri=${encodeURIComponent(uri)}`;
20
- };
21
- const getUriQR = (uri) => {
22
- return uri;
23
- };
24
- const mobileConnector = {
25
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
26
- };
27
- let qrConnector = void 0;
28
- if (shouldUseWalletConnect) {
29
- qrConnector = {
30
- getUri: getUriQR,
31
- instructions: {
32
- learnMoreUrl: "https://trustwallet.com/",
33
- steps: [
34
- {
35
- description: "wallet_connectors.trust.qr_code.step1.description",
36
- step: "install",
37
- title: "wallet_connectors.trust.qr_code.step1.title"
38
- },
39
- {
40
- description: "wallet_connectors.trust.qr_code.step2.description",
41
- step: "create",
42
- title: "wallet_connectors.trust.qr_code.step2.title"
43
- },
44
- {
45
- description: "wallet_connectors.trust.qr_code.step3.description",
46
- step: "scan",
47
- title: "wallet_connectors.trust.qr_code.step3.title"
48
- }
49
- ]
50
- }
51
- };
52
- }
53
- const extensionConnector = {
54
- instructions: {
55
- learnMoreUrl: "https://trustwallet.com/browser-extension",
56
- steps: [
57
- {
58
- description: "wallet_connectors.trust.extension.step1.description",
59
- step: "install",
60
- title: "wallet_connectors.trust.extension.step1.title"
61
- },
62
- {
63
- description: "wallet_connectors.trust.extension.step2.description",
64
- step: "create",
65
- title: "wallet_connectors.trust.extension.step2.title"
66
- },
67
- {
68
- description: "wallet_connectors.trust.extension.step3.description",
69
- step: "refresh",
70
- title: "wallet_connectors.trust.extension.step3.title"
71
- }
72
- ]
73
- }
74
- };
75
- return {
76
- id: "trust",
77
- name: "Trust Wallet",
78
- rdns: "com.trustwallet.app",
79
- iconUrl: async () => (await import("./trustWallet-2N5TZJGC.js")).default,
80
- // Note that we never resolve `installed` to `false` because the
81
- // Trust Wallet provider falls back to other connection methods if
82
- // the injected connector isn't available
83
- installed: isTrustWalletInjected || void 0,
84
- iconAccent: "#3375BB",
85
- iconBackground: "#fff",
86
- downloadUrls: {
87
- android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
88
- ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
89
- mobile: "https://trustwallet.com/download",
90
- qrCode: "https://trustwallet.com/download",
91
- chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
92
- browserExtension: "https://trustwallet.com/browser-extension"
93
- },
94
- mobile: mobileConnector,
95
- qrCode: qrConnector,
96
- extension: extensionConnector,
97
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
98
- projectId,
99
- walletConnectParameters
100
- }) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
101
- };
102
- };
103
-
104
- export {
105
- trustWallet
106
- };
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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
- };
@@ -1,103 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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,87 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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
- };
@@ -1,98 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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
- };
@@ -1,100 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.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,99 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-N4IJLYFY.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-OLZ7626J.js";
9
-
10
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var bitgetWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isBitKeepInjected = hasInjectedProvider({
17
- namespace: "bitkeep.ethereum",
18
- flag: "isBitKeep"
19
- });
20
- const shouldUseWalletConnect = !isBitKeepInjected;
21
- return {
22
- id: "bitget",
23
- name: "Bitget Wallet",
24
- rdns: "com.bitget.web3",
25
- iconUrl: async () => (await import("./bitgetWallet-CBQAJOIK.js")).default,
26
- iconAccent: "#f6851a",
27
- iconBackground: "#fff",
28
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
29
- downloadUrls: {
30
- android: "https://web3.bitget.com/en/wallet-download?type=0",
31
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
32
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
33
- qrCode: "https://web3.bitget.com/en/wallet-download",
34
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
35
- browserExtension: "https://web3.bitget.com/en/wallet-download"
36
- },
37
- extension: {
38
- instructions: {
39
- learnMoreUrl: "https://web3.bitget.com/en/academy",
40
- steps: [
41
- {
42
- description: "wallet_connectors.bitget.extension.step1.description",
43
- step: "install",
44
- title: "wallet_connectors.bitget.extension.step1.title"
45
- },
46
- {
47
- description: "wallet_connectors.bitget.extension.step2.description",
48
- step: "create",
49
- title: "wallet_connectors.bitget.extension.step2.title"
50
- },
51
- {
52
- description: "wallet_connectors.bitget.extension.step3.description",
53
- step: "refresh",
54
- title: "wallet_connectors.bitget.extension.step3.description"
55
- }
56
- ]
57
- }
58
- },
59
- mobile: {
60
- getUri: shouldUseWalletConnect ? (uri) => {
61
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
62
- } : void 0
63
- },
64
- qrCode: shouldUseWalletConnect ? {
65
- getUri: (uri) => uri,
66
- instructions: {
67
- learnMoreUrl: "https://web3.bitget.com/en/academy",
68
- steps: [
69
- {
70
- description: "wallet_connectors.bitget.qr_code.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.bitget.qr_code.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.bitget.qr_code.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.bitget.qr_code.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.bitget.qr_code.step3.description",
81
- step: "scan",
82
- title: "wallet_connectors.bitget.qr_code.step3.title"
83
- }
84
- ]
85
- }
86
- } : void 0,
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
- projectId,
89
- walletConnectParameters
90
- }) : getInjectedConnector({
91
- namespace: "bitkeep.ethereum",
92
- flag: "isBitKeep"
93
- })
94
- };
95
- };
96
-
97
- export {
98
- bitgetWallet
99
- };