@funkit/connect 9.11.0-next.0 → 9.12.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 +47 -0
  2. package/dist/__generated__/default_feature_gates.d.ts +2 -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.d.ts +0 -18
  7. package/dist/clients/lighter.js +5 -100
  8. package/dist/clients/polymarket.d.ts +97 -9
  9. package/dist/clients/polymarket.js +255 -37
  10. package/dist/components/Dialog/DialogContent.css.d.ts +1 -1
  11. package/dist/components/FunNotificationBanner/FunNotificationBanner.d.ts +1 -1
  12. package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +5 -4
  13. package/dist/components/TransactionStatus/AnimatedText.d.ts +4 -0
  14. package/dist/consts/bluvo.d.ts +27 -0
  15. package/dist/domains/swapped.d.ts +1 -1
  16. package/dist/hooks/queries/useErc20Asset.d.ts +2 -1
  17. package/dist/hooks/useAssetPrice.d.ts +6 -2
  18. package/dist/hooks/useCheckoutDirectExecution.d.ts +7 -1
  19. package/dist/hooks/useTokenTransfer.d.ts +2 -1
  20. package/dist/index.css +11 -11
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1541 -1070
  23. package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +1 -1
  24. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
  25. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +16 -0
  26. package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -2
  27. package/dist/providers/FunkitCheckoutContext/types.d.ts +21 -1
  28. package/dist/providers/FunkitStatsigProvider.d.ts +1 -0
  29. package/dist/wallets/Wallet.d.ts +11 -0
  30. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  35. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/index.js +68 -68
  40. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  49. package/package.json +16 -16
  50. package/dist/chunk-64NZSUGQ.js +0 -368
  51. package/dist/chunk-B2B6HDIE.js +0 -238
  52. package/dist/chunk-OQNN7EMQ.js +0 -238
  53. package/dist/chunk-S65TG73G.js +0 -247
  54. package/dist/chunk-VLAOBEJN.js +0 -247
  55. package/dist/clients/chunk-3LSYVQXK.js +0 -289
  56. package/dist/clients/chunk-5HU2XDR2.js +0 -289
  57. package/dist/clients/chunk-DKWYHSW3.js +0 -225
  58. package/dist/clients/chunk-IPK5DVIL.js +0 -229
  59. package/dist/clients/chunk-PVOHWTSR.js +0 -289
  60. package/dist/clients/chunk-SBQ2UUPK.js +0 -214
  61. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +0 -1
  62. package/dist/hooks/track/CheckoutTrackingContext.d.ts +0 -60
  63. package/dist/hooks/useTokenChain.d.ts +0 -21
  64. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +0 -17
  65. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +0 -10
  66. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +0 -11
  67. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -9
  68. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +0 -15
  69. package/dist/modals/WithdrwalModal/types.d.ts +0 -5
  70. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +0 -24
  71. package/dist/wallets/walletConnectors/chunk-3ZJN3PXP.js +0 -87
  72. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +0 -93
  73. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +0 -66
  74. package/dist/wallets/walletConnectors/chunk-55VS2NKG.js +0 -95
  75. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +0 -98
  76. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +0 -96
  77. package/dist/wallets/walletConnectors/chunk-7IEUTLHY.js +0 -98
  78. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +0 -92
  79. package/dist/wallets/walletConnectors/chunk-AZYMJ4C6.js +0 -70
  80. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +0 -96
  81. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +0 -69
  82. package/dist/wallets/walletConnectors/chunk-FWM4KTOV.js +0 -106
  83. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +0 -95
  84. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +0 -70
  85. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +0 -87
  86. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +0 -218
  87. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +0 -99
  88. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +0 -110
  89. package/dist/wallets/walletConnectors/chunk-IMNI4AGV.js +0 -99
  90. package/dist/wallets/walletConnectors/chunk-IRHK6SOW.js +0 -218
  91. package/dist/wallets/walletConnectors/chunk-J3PJOMO7.js +0 -96
  92. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +0 -106
  93. package/dist/wallets/walletConnectors/chunk-LEAZMT5Y.js +0 -92
  94. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +0 -94
  95. package/dist/wallets/walletConnectors/chunk-OD6B2ISG.js +0 -69
  96. package/dist/wallets/walletConnectors/chunk-OSOB6QYX.js +0 -92
  97. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +0 -92
  98. package/dist/wallets/walletConnectors/chunk-RZQ4B4Z7.js +0 -96
  99. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +0 -100
  100. package/dist/wallets/walletConnectors/chunk-UFYNHHDU.js +0 -100
  101. package/dist/wallets/walletConnectors/chunk-UYW6MV74.js +0 -93
  102. package/dist/wallets/walletConnectors/chunk-VMMROPXK.js +0 -110
  103. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +0 -103
  104. package/dist/wallets/walletConnectors/chunk-YGMU5VWD.js +0 -66
  105. package/dist/wallets/walletConnectors/chunk-ZJJWGKB6.js +0 -103
  106. package/dist/wallets/walletConnectors/chunk-ZL6XCMV5.js +0 -94
  107. /package/dist/clients/{chunk-GCAV3VTB.js → chunk-LMEQD56M.js} +0 -0
  108. /package/dist/{hooks → utils}/statsig/checkFeatureGate.d.ts +0 -0
@@ -1,99 +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/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
- };
@@ -1,110 +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/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,99 +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/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
- };
@@ -1,218 +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/metaMaskWallet/metaMaskWallet.ts
11
- import { isAndroid, isIOS } from "@funkit/utils";
12
- function isMetaMask(ethereum) {
13
- if (!ethereum?.isMetaMask) {
14
- return false;
15
- }
16
- if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
17
- return false;
18
- }
19
- if (ethereum.isApexWallet) {
20
- return false;
21
- }
22
- if (ethereum.isAvalanche) {
23
- return false;
24
- }
25
- if (ethereum.isBackpack) {
26
- return false;
27
- }
28
- if (ethereum.isBifrost) {
29
- return false;
30
- }
31
- if (ethereum.isBitKeep) {
32
- return false;
33
- }
34
- if (ethereum.isBitski) {
35
- return false;
36
- }
37
- if (ethereum.isBlockWallet) {
38
- return false;
39
- }
40
- if (ethereum.isCoinbaseWallet) {
41
- return false;
42
- }
43
- if (ethereum.isDawn) {
44
- return false;
45
- }
46
- if (ethereum.isEnkrypt) {
47
- return false;
48
- }
49
- if (ethereum.isExodus) {
50
- return false;
51
- }
52
- if (ethereum.isFrame) {
53
- return false;
54
- }
55
- if (ethereum.isFrontier) {
56
- return false;
57
- }
58
- if (ethereum.isGamestop) {
59
- return false;
60
- }
61
- if (ethereum.isHyperPay) {
62
- return false;
63
- }
64
- if (ethereum.isImToken) {
65
- return false;
66
- }
67
- if (ethereum.isKuCoinWallet) {
68
- return false;
69
- }
70
- if (ethereum.isMathWallet) {
71
- return false;
72
- }
73
- if (ethereum.isNestWallet) {
74
- return false;
75
- }
76
- if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
77
- return false;
78
- }
79
- if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
80
- return false;
81
- }
82
- if (ethereum.isOpera) {
83
- return false;
84
- }
85
- if (ethereum.isPhantom) {
86
- return false;
87
- }
88
- if (ethereum.isPortal) {
89
- return false;
90
- }
91
- if (ethereum.isRabby) {
92
- return false;
93
- }
94
- if (ethereum.isRainbow) {
95
- return false;
96
- }
97
- if (ethereum.isStatus) {
98
- return false;
99
- }
100
- if (ethereum.isTalisman) {
101
- return false;
102
- }
103
- if (ethereum.isTally) {
104
- return false;
105
- }
106
- if (ethereum.isTokenPocket) {
107
- return false;
108
- }
109
- if (ethereum.isTokenary) {
110
- return false;
111
- }
112
- if (ethereum.isTrust || ethereum.isTrustWallet) {
113
- return false;
114
- }
115
- if (ethereum.isXDEFI) {
116
- return false;
117
- }
118
- if (ethereum.isZeal) {
119
- return false;
120
- }
121
- if (ethereum.isZerion) {
122
- return false;
123
- }
124
- return true;
125
- }
126
- var metaMaskWallet = ({
127
- projectId,
128
- walletConnectParameters
129
- }) => {
130
- const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
131
- const shouldUseWalletConnect = !isMetaMaskInjected;
132
- const getUri = (uri) => {
133
- return isAndroid() ? uri : isIOS() ? (
134
- // currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
135
- `metamask://wc?uri=${encodeURIComponent(uri)}`
136
- ) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
137
- };
138
- return {
139
- id: "metaMask",
140
- name: "MetaMask",
141
- rdns: "io.metamask",
142
- iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
143
- iconAccent: "#f6851a",
144
- iconBackground: "#fff",
145
- installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
146
- downloadUrls: {
147
- android: "https://play.google.com/store/apps/details?id=io.metamask",
148
- ios: "https://apps.apple.com/us/app/metamask/id1438144202",
149
- mobile: "https://metamask.io/download",
150
- qrCode: "https://metamask.io/download",
151
- chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
152
- edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
153
- firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
154
- opera: "https://addons.opera.com/extensions/details/metamask-10",
155
- browserExtension: "https://metamask.io/download"
156
- },
157
- mobile: {
158
- getUri: shouldUseWalletConnect ? getUri : void 0
159
- },
160
- qrCode: shouldUseWalletConnect ? {
161
- getUri,
162
- instructions: {
163
- learnMoreUrl: "https://metamask.io/faqs/",
164
- steps: [
165
- {
166
- description: "wallet_connectors.metamask.qr_code.step1.description",
167
- step: "install",
168
- title: "wallet_connectors.metamask.qr_code.step1.title"
169
- },
170
- {
171
- description: "wallet_connectors.metamask.qr_code.step2.description",
172
- step: "create",
173
- title: "wallet_connectors.metamask.qr_code.step2.title"
174
- },
175
- {
176
- description: "wallet_connectors.metamask.qr_code.step3.description",
177
- step: "refresh",
178
- title: "wallet_connectors.metamask.qr_code.step3.title"
179
- }
180
- ]
181
- }
182
- } : void 0,
183
- extension: {
184
- instructions: {
185
- learnMoreUrl: "https://metamask.io/faqs/",
186
- steps: [
187
- {
188
- description: "wallet_connectors.metamask.extension.step1.description",
189
- step: "install",
190
- title: "wallet_connectors.metamask.extension.step1.title"
191
- },
192
- {
193
- description: "wallet_connectors.metamask.extension.step2.description",
194
- step: "create",
195
- title: "wallet_connectors.metamask.extension.step2.title"
196
- },
197
- {
198
- description: "wallet_connectors.metamask.extension.step3.description",
199
- step: "refresh",
200
- title: "wallet_connectors.metamask.extension.step3.title"
201
- }
202
- ]
203
- }
204
- },
205
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
206
- projectId,
207
- walletConnectParameters
208
- }) : getInjectedConnector({
209
- target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
210
- isMetaMask
211
- ) ?? window.ethereum : void 0
212
- })
213
- };
214
- };
215
-
216
- export {
217
- metaMaskWallet
218
- };
@@ -1,96 +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/frontierWallet/frontierWallet.ts
11
- import { isAndroid } from "@funkit/utils";
12
- var frontierWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isFrontierInjected = hasInjectedProvider({
17
- namespace: "frontier.ethereum",
18
- flag: "isFrontier"
19
- });
20
- const shouldUseWalletConnect = !isFrontierInjected;
21
- return {
22
- id: "frontier",
23
- name: "Frontier Wallet",
24
- rdns: "xyz.frontier.wallet",
25
- installed: isFrontierInjected,
26
- iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
27
- iconBackground: "#CC703C",
28
- downloadUrls: {
29
- android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
30
- ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
31
- qrCode: "https://www.frontier.xyz/download",
32
- chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
33
- browserExtension: "https://www.frontier.xyz/download"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? (uri) => {
37
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
38
- } : void 0
39
- },
40
- qrCode: shouldUseWalletConnect ? {
41
- getUri: (uri) => {
42
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
43
- },
44
- instructions: {
45
- learnMoreUrl: "https://help.frontier.xyz/en/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.im_token.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.im_token.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.im_token.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.im_token.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.im_token.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.im_token.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- } : void 0,
65
- extension: {
66
- instructions: {
67
- learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
68
- steps: [
69
- {
70
- description: "wallet_connectors.frontier.extension.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.frontier.extension.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.frontier.extension.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.frontier.extension.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.frontier.extension.step3.description",
81
- step: "refresh",
82
- title: "wallet_connectors.frontier.extension.step3.title"
83
- }
84
- ]
85
- }
86
- },
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
88
- namespace: "frontier.ethereum",
89
- flag: "isFrontier"
90
- })
91
- };
92
- };
93
-
94
- export {
95
- frontierWallet
96
- };