@funkit/connect 9.7.2-next.1 → 9.9.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 (112) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/dist/__generated__/default_configs.d.ts +1 -1
  3. package/dist/__generated__/default_feature_gates.d.ts +2 -0
  4. package/dist/clients/chunk-LMEQD56M.js +289 -0
  5. package/dist/clients/fanatics.css +1 -1
  6. package/dist/clients/fanatics.js +55 -329
  7. package/dist/clients/lighter.css +4775 -4775
  8. package/dist/clients/lighter.d.ts +30 -34
  9. package/dist/clients/lighter.js +163 -69
  10. package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +19 -0
  11. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +2 -1
  12. package/dist/components/Dropdown/BaseDropdown.d.ts +11 -23
  13. package/dist/components/Dropdown/BaseDropdown.utils.d.ts +23 -0
  14. package/dist/components/Dropdown/ChainDropdown.d.ts +2 -1
  15. package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +9 -3
  16. package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
  17. package/dist/domains/asset.d.ts +0 -1
  18. package/dist/domains/quote.d.ts +9 -1
  19. package/dist/domains/quoteMode/exactOut.d.ts +2 -1
  20. package/dist/domains/quoteMode/resolveQuoteMode.d.ts +3 -1
  21. package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -8
  22. package/dist/hooks/useCheckoutDirectExecution.d.ts +8 -1
  23. package/dist/hooks/useIsStablecoin.d.ts +2 -0
  24. package/dist/hooks/useTokenAndChainDropdown.d.ts +13 -7
  25. package/dist/hooks/useTokenTransfer.d.ts +2 -2
  26. package/dist/index.css +99 -99
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +5847 -4800
  29. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -1
  30. package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +2 -2
  31. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +11 -1
  32. package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +5 -1
  33. package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
  34. package/dist/providers/FunkitCheckoutContext/types.d.ts +60 -2
  35. package/dist/providers/FunkitHistoryContext.d.ts +2 -2
  36. package/dist/providers/FunkitQuoteContext.d.ts +6 -0
  37. package/dist/utils/withdrawal.d.ts +6 -1
  38. package/dist/wallets/Wallet.d.ts +11 -0
  39. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  44. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/index.js +45 -45
  49. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  58. package/package.json +6 -5
  59. package/dist/chunk-64NZSUGQ.js +0 -368
  60. package/dist/chunk-B2B6HDIE.js +0 -238
  61. package/dist/chunk-OQNN7EMQ.js +0 -238
  62. package/dist/chunk-S65TG73G.js +0 -247
  63. package/dist/chunk-VLAOBEJN.js +0 -247
  64. package/dist/clients/chunk-3LSYVQXK.js +0 -289
  65. package/dist/clients/chunk-SBQ2UUPK.js +0 -214
  66. package/dist/clients/chunk-V526Q43Z.js +0 -271
  67. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +0 -1
  68. package/dist/hooks/track/CheckoutTrackingContext.d.ts +0 -60
  69. package/dist/hooks/useTokenChain.d.ts +0 -21
  70. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +0 -17
  71. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +0 -10
  72. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +0 -11
  73. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -9
  74. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +0 -15
  75. package/dist/modals/WithdrwalModal/types.d.ts +0 -5
  76. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +0 -24
  77. package/dist/wallets/walletConnectors/chunk-34HACM5U.js +0 -110
  78. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +0 -93
  79. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +0 -66
  80. package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +0 -87
  81. package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +0 -69
  82. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +0 -98
  83. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +0 -96
  84. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +0 -92
  85. package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +0 -218
  86. package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +0 -103
  87. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +0 -96
  88. package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +0 -98
  89. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +0 -69
  90. package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +0 -92
  91. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +0 -95
  92. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +0 -70
  93. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +0 -87
  94. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +0 -218
  95. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +0 -99
  96. package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +0 -94
  97. package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +0 -93
  98. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +0 -110
  99. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +0 -106
  100. package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +0 -100
  101. package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +0 -70
  102. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +0 -94
  103. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +0 -92
  104. package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +0 -106
  105. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +0 -100
  106. package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +0 -96
  107. package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +0 -95
  108. package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +0 -92
  109. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +0 -103
  110. package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +0 -96
  111. package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +0 -99
  112. package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +0 -66
@@ -1,92 +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/roninWallet/roninWallet.ts
11
- var roninWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isRoninInjected = hasInjectedProvider({
16
- namespace: "ronin.provider"
17
- });
18
- return {
19
- id: "ronin",
20
- name: "Ronin Wallet",
21
- iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
- iconBackground: "#ffffff",
23
- rdns: "com.roninchain.wallet",
24
- installed: isRoninInjected || void 0,
25
- downloadUrls: {
26
- android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
- ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
- mobile: "https://wallet.roninchain.com",
29
- chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
- edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
- firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
- browserExtension: "https://wallet.roninchain.com/",
33
- qrCode: "https://wallet.roninchain.com/"
34
- },
35
- mobile: {
36
- getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
- },
38
- qrCode: {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://wallet.roninchain.com/",
42
- steps: [
43
- {
44
- description: "wallet_connectors.ronin.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.ronin.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.ronin.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.ronin.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.ronin.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.ronin.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- },
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://wallet.roninchain.com/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.ronin.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.ronin.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.ronin.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.ronin.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.ronin.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.ronin.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- })
87
- };
88
- };
89
-
90
- export {
91
- roninWallet
92
- };
@@ -1,106 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-YYYRPQHB.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-FMVNQKZL.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,100 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-MAPXJUOO.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-BAVE62IL.js";
9
-
10
- // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
11
- import { isIOS } from "@funkit/utils";
12
- var zerionWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isZerionInjected = hasInjectedProvider({
17
- namespace: "zerionWallet",
18
- flag: "isZerion"
19
- });
20
- const shouldUseWalletConnect = !isZerionInjected;
21
- const getUri = (uri) => {
22
- return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
23
- };
24
- return {
25
- id: "zerion",
26
- name: "Zerion",
27
- rdns: "io.zerion.wallet",
28
- iconUrl: async () => (await import("./zerionWallet-SEPREHKH.js")).default,
29
- iconAccent: "#2962ef",
30
- iconBackground: "#2962ef",
31
- installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
32
- downloadUrls: {
33
- android: "https://play.google.com/store/apps/details?id=io.zerion.android",
34
- ios: "https://apps.apple.com/app/apple-store/id1456732565",
35
- mobile: "https://link.zerion.io/pt3gdRP0njb",
36
- qrCode: "https://link.zerion.io/pt3gdRP0njb",
37
- chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
38
- browserExtension: "https://zerion.io/extension"
39
- },
40
- mobile: {
41
- getUri: shouldUseWalletConnect ? getUri : void 0
42
- },
43
- qrCode: shouldUseWalletConnect ? {
44
- getUri,
45
- instructions: {
46
- learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
47
- steps: [
48
- {
49
- description: "wallet_connectors.zerion.qr_code.step1.description",
50
- step: "install",
51
- title: "wallet_connectors.zerion.qr_code.step1.title"
52
- },
53
- {
54
- description: "wallet_connectors.zerion.qr_code.step2.description",
55
- step: "create",
56
- title: "wallet_connectors.zerion.qr_code.step2.title"
57
- },
58
- {
59
- description: "wallet_connectors.zerion.qr_code.step3.description",
60
- step: "scan",
61
- title: "wallet_connectors.zerion.qr_code.step3.title"
62
- }
63
- ]
64
- }
65
- } : void 0,
66
- extension: {
67
- instructions: {
68
- learnMoreUrl: "https://help.zerion.io/en/",
69
- steps: [
70
- {
71
- description: "wallet_connectors.zerion.extension.step1.description",
72
- step: "install",
73
- title: "wallet_connectors.zerion.extension.step1.title"
74
- },
75
- {
76
- description: "wallet_connectors.zerion.extension.step2.description",
77
- step: "create",
78
- title: "wallet_connectors.zerion.extension.step2.title"
79
- },
80
- {
81
- description: "wallet_connectors.zerion.extension.step3.description",
82
- step: "refresh",
83
- title: "wallet_connectors.zerion.extension.step3.title"
84
- }
85
- ]
86
- }
87
- },
88
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
89
- projectId,
90
- walletConnectParameters
91
- }) : getInjectedConnector({
92
- namespace: "zerionWallet",
93
- flag: "isZerion"
94
- })
95
- };
96
- };
97
-
98
- export {
99
- zerionWallet
100
- };
@@ -1,96 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-YYYRPQHB.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-FMVNQKZL.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
- };
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-YYYRPQHB.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-FMVNQKZL.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
- };
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-YYYRPQHB.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-FMVNQKZL.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
- };
@@ -1,103 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-MAPXJUOO.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-BAVE62IL.js";
9
-
10
- // src/wallets/walletConnectors/subWallet/subWallet.ts
11
- var subWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
- const shouldUseWalletConnect = !isSubWalletInjected;
17
- const getUriMobile = (uri) => {
18
- return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
- };
20
- const getUriQR = (uri) => {
21
- return uri;
22
- };
23
- const mobileConnector = {
24
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
- };
26
- let qrConnector = void 0;
27
- if (shouldUseWalletConnect) {
28
- qrConnector = {
29
- getUri: getUriQR,
30
- instructions: {
31
- learnMoreUrl: "https://www.subwallet.app/",
32
- steps: [
33
- {
34
- description: "wallet_connectors.subwallet.qr_code.step1.description",
35
- step: "install",
36
- title: "wallet_connectors.subwallet.qr_code.step1.title"
37
- },
38
- {
39
- description: "wallet_connectors.subwallet.qr_code.step2.description",
40
- step: "create",
41
- title: "wallet_connectors.subwallet.qr_code.step2.title"
42
- },
43
- {
44
- description: "wallet_connectors.subwallet.qr_code.step3.description",
45
- step: "scan",
46
- title: "wallet_connectors.subwallet.qr_code.step3.title"
47
- }
48
- ]
49
- }
50
- };
51
- }
52
- const extensionConnector = {
53
- instructions: {
54
- learnMoreUrl: "https://www.subwallet.app/",
55
- steps: [
56
- {
57
- description: "wallet_connectors.subwallet.extension.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.subwallet.extension.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.subwallet.extension.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.subwallet.extension.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.subwallet.extension.step3.description",
68
- step: "refresh",
69
- title: "wallet_connectors.subwallet.extension.step3.title"
70
- }
71
- ]
72
- }
73
- };
74
- return {
75
- id: "subwallet",
76
- name: "SubWallet",
77
- rdns: "app.subwallet",
78
- iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
79
- iconBackground: "#fff",
80
- installed: isSubWalletInjected || void 0,
81
- downloadUrls: {
82
- browserExtension: "https://www.subwallet.app/download",
83
- chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
84
- firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
85
- edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
86
- mobile: "https://www.subwallet.app/download",
87
- android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
88
- ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
89
- qrCode: "https://www.subwallet.app/download"
90
- },
91
- mobile: mobileConnector,
92
- qrCode: qrConnector,
93
- extension: extensionConnector,
94
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
95
- projectId,
96
- walletConnectParameters
97
- }) : getInjectedConnector({ namespace: "SubWallet" })
98
- };
99
- };
100
-
101
- export {
102
- subWallet
103
- };