@funkit/connect 4.1.1 → 4.1.2

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 (127) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/{chunk-2QK6Y7FR.js → chunk-C7BDNBKV.js} +1 -0
  3. package/dist/{chunk-JFHTYZ23.js → chunk-QCYFMAKN.js} +1 -0
  4. package/dist/components/Avatar/Avatar.d.ts +2 -1
  5. package/dist/components/Box/Box.d.ts +7 -7
  6. package/dist/components/CopyAddress/CopyAddressButton.d.ts +5 -0
  7. package/dist/components/CopyAddress/CopyDisplayedAddress.d.ts +5 -0
  8. package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +5 -0
  9. package/dist/components/CopyAddress/LabelledCopyAddressButton.d.ts +6 -0
  10. package/dist/components/Dropdown/BaseDropdown.css.d.ts +5 -0
  11. package/dist/components/Dropdown/BaseDropdown.d.ts +7 -1
  12. package/dist/components/FunButton/FunButton.css.d.ts +3 -3
  13. package/dist/components/FunButton/FunLinkButton.d.ts +9 -4
  14. package/dist/components/FunInput/FunInput.css.d.ts +1 -0
  15. package/dist/components/FunInput/FunInput.d.ts +0 -1
  16. package/dist/components/FunNotification/FunNotification.css.d.ts +2 -0
  17. package/dist/components/FunNotification/FunNotification.d.ts +0 -1
  18. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.css.d.ts +1 -0
  19. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +6 -2
  20. package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -3
  21. package/dist/components/FunTooltip/FunTooltip.css.d.ts +4 -0
  22. package/dist/components/FunTooltip/FunTooltip.d.ts +4 -1
  23. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.css.d.ts +2 -0
  24. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +0 -1
  25. package/dist/components/FunTransactionSummary/PaymentFeesSummary.css.d.ts +2 -0
  26. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +1 -1
  27. package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +3 -1
  28. package/dist/consts/customers.d.ts +0 -4
  29. package/dist/consts/layout.d.ts +5 -0
  30. package/dist/css/sprinkles.css.d.ts +9 -7
  31. package/dist/domains/clientMetadata.d.ts +5 -3
  32. package/dist/domains/feeEstimate.d.ts +10 -0
  33. package/dist/domains/paymentMethods.d.ts +1 -0
  34. package/dist/domains/quote.d.ts +5 -0
  35. package/dist/hooks/useCheckoutQuoteNotification.d.ts +2 -2
  36. package/dist/hooks/useCheckoutTimeEstimate.d.ts +7 -0
  37. package/dist/hooks/useCopyToClipboard.d.ts +4 -0
  38. package/dist/hooks/usePaymentSources.d.ts +6 -0
  39. package/dist/index.css +524 -459
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.js +6777 -6966
  42. package/dist/locales/index.d.ts +0 -3
  43. package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +5 -3
  44. package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
  45. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -3
  46. package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +7 -0
  47. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +4 -2
  48. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +0 -1
  49. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +0 -1
  50. package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +2 -1
  51. package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
  52. package/dist/modals/ProfileDetails/ProfileDetails.d.ts +0 -1
  53. package/dist/providers/FunkitCheckoutContext.d.ts +7 -34
  54. package/dist/providers/FunkitFlagsProvider.d.ts +2 -2
  55. package/dist/providers/FunkitProvider.d.ts +2 -1
  56. package/dist/providers/FunkitQuoteContext.d.ts +45 -0
  57. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  58. package/dist/providers/provideFunkitConnectChains.d.ts +1 -1
  59. package/dist/themes/darkTheme.js +1 -1
  60. package/dist/themes/lightTheme.js +1 -1
  61. package/dist/utils/address.d.ts +6 -0
  62. package/dist/utils/assets.d.ts +1 -10
  63. package/dist/utils/checkout.d.ts +4 -13
  64. package/dist/utils/checkoutHistory.d.ts +1 -1
  65. package/dist/utils/flags/config.d.ts +19 -46
  66. package/dist/utils/funLogger.d.ts +3 -1
  67. package/dist/utils/moonpay.d.ts +12 -0
  68. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  69. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  70. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  71. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  72. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  73. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  74. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  75. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  76. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  77. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  78. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  79. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  80. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  81. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  82. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  83. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  84. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  85. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  86. package/dist/wallets/walletConnectors/index.js +33 -33
  87. package/package.json +6 -8
  88. package/dist/ar_AR-26YWBMAY.js +0 -7
  89. package/dist/arbitrum-EUTVMZS6.js +0 -7
  90. package/dist/avalanche-6CKETBV4.js +0 -7
  91. package/dist/base-FG2B7H5W.js +0 -7
  92. package/dist/blast-VGAGZQAP.js +0 -7
  93. package/dist/bsc-BUTATTVT.js +0 -7
  94. package/dist/chunk-FRCBBARC.js +0 -1184
  95. package/dist/components/CopyAddress/CopyAddress.d.ts +0 -12
  96. package/dist/cronos-DEE5V35Y.js +0 -7
  97. package/dist/dydx-CLPISBCB.js +0 -7
  98. package/dist/en_US-45SPICME.js +0 -7
  99. package/dist/es_419-ZOOWMI2O.js +0 -7
  100. package/dist/ethereum-4YOWVRNC.js +0 -7
  101. package/dist/fr_FR-FC4AERJX.js +0 -1057
  102. package/dist/hardhat-WRPL5WKN.js +0 -7
  103. package/dist/hi_IN-VKOWQKED.js +0 -7
  104. package/dist/id_ID-JEPISG6J.js +0 -7
  105. package/dist/ja_JP-GJBWIN4W.js +0 -7
  106. package/dist/klaytn-NEGYZJPB.js +0 -7
  107. package/dist/ko_KR-G6COLOAZ.js +0 -7
  108. package/dist/locales/I18n.d.ts +0 -25
  109. package/dist/manta-G75LJIRI.js +0 -7
  110. package/dist/mantle-LQ3XH3KY.js +0 -7
  111. package/dist/optimism-TIC2YA7E.js +0 -7
  112. package/dist/polygon-NDHYUKMH.js +0 -7
  113. package/dist/providers/I18nContext.d.ts +0 -11
  114. package/dist/pt_BR-52CJXY6T.js +0 -7
  115. package/dist/ronin-O6KMJHPZ.js +0 -7
  116. package/dist/ru_RU-AEJUH3PG.js +0 -1057
  117. package/dist/scroll-G3S4ZVYZ.js +0 -7
  118. package/dist/th_TH-4TFH5TB7.js +0 -1057
  119. package/dist/tr_TR-WG4WEQOS.js +0 -1057
  120. package/dist/uk_UA-2JYNNASB.js +0 -1057
  121. package/dist/utils/deposit.d.ts +0 -12
  122. package/dist/utils/isDydxAddress.d.ts +0 -6
  123. package/dist/xdc-E3X4E3NM.js +0 -7
  124. package/dist/zetachain-2J22B4NG.js +0 -7
  125. package/dist/zh_CN-HFGZOTOB.js +0 -7
  126. package/dist/zkSync-76EOKZ5Y.js +0 -7
  127. package/dist/zora-73DYEWFN.js +0 -7
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.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,94 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.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,103 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/subWallet/subWallet.ts
11
+ var subWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
+ const shouldUseWalletConnect = !isSubWalletInjected;
17
+ const getUriMobile = (uri) => {
18
+ return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
+ };
20
+ const getUriQR = (uri) => {
21
+ return uri;
22
+ };
23
+ const mobileConnector = {
24
+ getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
+ };
26
+ let qrConnector = void 0;
27
+ if (shouldUseWalletConnect) {
28
+ qrConnector = {
29
+ getUri: getUriQR,
30
+ instructions: {
31
+ learnMoreUrl: "https://www.subwallet.app/",
32
+ steps: [
33
+ {
34
+ description: "wallet_connectors.subwallet.qr_code.step1.description",
35
+ step: "install",
36
+ title: "wallet_connectors.subwallet.qr_code.step1.title"
37
+ },
38
+ {
39
+ description: "wallet_connectors.subwallet.qr_code.step2.description",
40
+ step: "create",
41
+ title: "wallet_connectors.subwallet.qr_code.step2.title"
42
+ },
43
+ {
44
+ description: "wallet_connectors.subwallet.qr_code.step3.description",
45
+ step: "scan",
46
+ title: "wallet_connectors.subwallet.qr_code.step3.title"
47
+ }
48
+ ]
49
+ }
50
+ };
51
+ }
52
+ const extensionConnector = {
53
+ instructions: {
54
+ learnMoreUrl: "https://www.subwallet.app/",
55
+ steps: [
56
+ {
57
+ description: "wallet_connectors.subwallet.extension.step1.description",
58
+ step: "install",
59
+ title: "wallet_connectors.subwallet.extension.step1.title"
60
+ },
61
+ {
62
+ description: "wallet_connectors.subwallet.extension.step2.description",
63
+ step: "create",
64
+ title: "wallet_connectors.subwallet.extension.step2.title"
65
+ },
66
+ {
67
+ description: "wallet_connectors.subwallet.extension.step3.description",
68
+ step: "refresh",
69
+ title: "wallet_connectors.subwallet.extension.step3.title"
70
+ }
71
+ ]
72
+ }
73
+ };
74
+ return {
75
+ id: "subwallet",
76
+ name: "SubWallet",
77
+ rdns: "app.subwallet",
78
+ iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
79
+ iconBackground: "#fff",
80
+ installed: isSubWalletInjected || void 0,
81
+ downloadUrls: {
82
+ browserExtension: "https://www.subwallet.app/download",
83
+ chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
84
+ firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
85
+ edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
86
+ mobile: "https://www.subwallet.app/download",
87
+ android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
88
+ ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
89
+ qrCode: "https://www.subwallet.app/download"
90
+ },
91
+ mobile: mobileConnector,
92
+ qrCode: qrConnector,
93
+ extension: extensionConnector,
94
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
95
+ projectId,
96
+ walletConnectParameters
97
+ }) : getInjectedConnector({ namespace: "SubWallet" })
98
+ };
99
+ };
100
+
101
+ export {
102
+ subWallet
103
+ };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.js";
9
+
10
+ // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var bifrostWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
17
+ const shouldUseWalletConnect = !isBifrostInjected;
18
+ const getUri = (uri) => {
19
+ return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
20
+ };
21
+ return {
22
+ id: "bifrostWallet",
23
+ name: "Bifrost Wallet",
24
+ iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
25
+ iconBackground: "#fff",
26
+ installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
29
+ ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
30
+ qrCode: "https://bifrostwallet.com/#download-app"
31
+ },
32
+ mobile: {
33
+ getUri: shouldUseWalletConnect ? getUri : void 0
34
+ },
35
+ qrCode: shouldUseWalletConnect ? {
36
+ getUri: (uri) => uri,
37
+ instructions: {
38
+ learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
39
+ steps: [
40
+ {
41
+ description: "wallet_connectors.bifrost.qr_code.step1.description",
42
+ step: "install",
43
+ title: "wallet_connectors.bifrost.qr_code.step1.title"
44
+ },
45
+ {
46
+ description: "wallet_connectors.bifrost.qr_code.step2.description",
47
+ step: "create",
48
+ title: "wallet_connectors.bifrost.qr_code.step2.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.bifrost.qr_code.step3.description",
52
+ step: "scan",
53
+ title: "wallet_connectors.bifrost.qr_code.step3.title"
54
+ }
55
+ ]
56
+ }
57
+ } : void 0,
58
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
59
+ projectId,
60
+ walletConnectParameters
61
+ }) : getInjectedConnector({
62
+ flag: "isBifrost"
63
+ })
64
+ };
65
+ };
66
+
67
+ export {
68
+ bifrostWallet
69
+ };
@@ -0,0 +1,110 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.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,99 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.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
+ };
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-23WIEY36.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
+ };