@funkit/connect 0.1.12 → 0.1.14

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 (95) hide show
  1. package/dist/{chunk-UOUEGWLS.js → chunk-47OHV4T2.js} +2 -2
  2. package/dist/{chunk-Q73FKLU4.js → chunk-C2QHNJBG.js} +2 -2
  3. package/dist/{chunk-JC32QCLG.js → chunk-OYE6VAAG.js} +4291 -4194
  4. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +3 -2
  5. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -1
  6. package/dist/components/FunKeyValue/FunKeyValue.d.ts +2 -1
  7. package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +2 -1
  8. package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +3 -1
  9. package/dist/components/FunOnramp/FunOnrampTokenPill.d.ts +7 -0
  10. package/dist/components/FunPayments/FunPaymentMethods.d.ts +5 -2
  11. package/dist/components/FunPayments/FunPayments.css.d.ts +1 -1
  12. package/dist/components/FunSelect/FunSelect.d.ts +3 -1
  13. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +10 -1
  14. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +21 -5
  15. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +2 -0
  16. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +5 -0
  17. package/dist/components/FunkitProvider/ModalContext.d.ts +0 -4
  18. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +7 -6
  19. package/dist/components/Icons/RedirectIcon.d.ts +2 -0
  20. package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +4 -1
  21. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +1 -1
  22. package/dist/components/ProfileDetails/{FunWalletProfileDetails.d.ts → WalletProfileDetails.d.ts} +2 -2
  23. package/dist/components/index.css +202 -164
  24. package/dist/components/index.js +3 -3
  25. package/dist/index.css +174 -136
  26. package/dist/index.js +3 -3
  27. package/dist/themes/darkTheme.js +1 -1
  28. package/dist/themes/lightTheme.js +1 -1
  29. package/dist/utils/checkout.d.ts +7 -2
  30. package/dist/utils/mesh.d.ts +5 -4
  31. package/dist/utils/moonpay.d.ts +1 -1
  32. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/{chunk-K5J2FLUB.js → chunk-2XHTO74O.js} +4 -4
  36. package/dist/wallets/walletConnectors/{chunk-CJA6ERXY.js → chunk-4W6RLMME.js} +4 -4
  37. package/dist/wallets/walletConnectors/{chunk-BG2VHSGN.js → chunk-4WS4ZSRN.js} +1 -1
  38. package/dist/wallets/walletConnectors/{chunk-OJAMLRYU.js → chunk-6T5K52ZY.js} +1 -1
  39. package/dist/wallets/walletConnectors/{chunk-WSYSB5XX.js → chunk-7EOFWORX.js} +1 -1
  40. package/dist/wallets/walletConnectors/{chunk-YUE47K7K.js → chunk-APZ6YBCA.js} +1 -1
  41. package/dist/wallets/walletConnectors/{chunk-FEDNFTC5.js → chunk-BDKAIAQA.js} +1 -1
  42. package/dist/wallets/walletConnectors/{chunk-API5X5WH.js → chunk-DBMFZSXN.js} +4 -4
  43. package/dist/wallets/walletConnectors/{chunk-G62ST53R.js → chunk-EHO4MJZJ.js} +1 -1
  44. package/dist/wallets/walletConnectors/{chunk-BUX4O2MX.js → chunk-FTTYELWN.js} +4 -4
  45. package/dist/wallets/walletConnectors/{chunk-J3HOIBZW.js → chunk-JJICTRJY.js} +4 -4
  46. package/dist/wallets/walletConnectors/{chunk-BBVH7CPS.js → chunk-KUXG7P5Q.js} +1 -1
  47. package/dist/wallets/walletConnectors/{chunk-363R4ANA.js → chunk-LBSWP7R6.js} +1 -1
  48. package/dist/wallets/walletConnectors/{chunk-KQ3NBNAM.js → chunk-LVMQKSKW.js} +1 -1
  49. package/dist/wallets/walletConnectors/{chunk-YK74CZ2K.js → chunk-MDDT3PSR.js} +1 -1
  50. package/dist/wallets/walletConnectors/{chunk-GAP7NFIO.js → chunk-NZ4YUZKF.js} +4 -4
  51. package/dist/wallets/walletConnectors/{chunk-JEVYZEBJ.js → chunk-PTF3JKWO.js} +1 -1
  52. package/dist/wallets/walletConnectors/{chunk-RZE4WHVP.js → chunk-Q6N2YWW4.js} +1 -1
  53. package/dist/wallets/walletConnectors/{chunk-SMDKR4XA.js → chunk-RL5OHS6R.js} +4 -4
  54. package/dist/wallets/walletConnectors/{chunk-3DY3HAMM.js → chunk-T3RIVRAX.js} +1 -1
  55. package/dist/wallets/walletConnectors/{chunk-TOIRQMDJ.js → chunk-TG2HN6KW.js} +1 -1
  56. package/dist/wallets/walletConnectors/{chunk-SMEQQ574.js → chunk-TORM2ZGA.js} +1 -1
  57. package/dist/wallets/walletConnectors/{chunk-PX5UW3Z2.js → chunk-TZR3P22N.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-QOK4O2YL.js → chunk-VAR774R5.js} +4 -4
  59. package/dist/wallets/walletConnectors/{chunk-3AGSQ2RN.js → chunk-X6A7D2EA.js} +4 -4
  60. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  62. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/index.js +54 -54
  67. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  73. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  80. package/package.json +3 -3
  81. package/dist/chunk-7BFJCGW2.js +0 -24994
  82. package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
  83. package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
  84. package/dist/wallets/walletConnectors/chunk-3EHPYNDW.js +0 -71
  85. package/dist/wallets/walletConnectors/chunk-5FDGJMHJ.js +0 -112
  86. package/dist/wallets/walletConnectors/chunk-AM2WFIQL.js +0 -110
  87. package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +0 -52
  88. package/dist/wallets/walletConnectors/chunk-EHO5SY4G.js +0 -226
  89. package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +0 -71
  90. package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +0 -71
  91. package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +0 -114
  92. package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +0 -102
  93. package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +0 -105
  94. package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +0 -113
  95. package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +0 -81
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/omniWallet/omniWallet.ts
11
- var omniWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "omni",
18
- name: "Omni",
19
- iconUrl: async () => (await import("./omniWallet-VF54LPLK.js")).default,
20
- iconBackground: "#000",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
23
- ios: "https://itunes.apple.com/us/app/id1569375204",
24
- mobile: "https://omniwallet.app.link",
25
- qrCode: "https://omniwallet.app.link"
26
- },
27
- createConnector: () => {
28
- const connector = getWalletConnectConnector({
29
- projectId,
30
- chains,
31
- version: walletConnectVersion,
32
- options: walletConnectOptions
33
- });
34
- return {
35
- connector,
36
- mobile: {
37
- getUri: async () => {
38
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
39
- return isAndroid() ? uri : `omni://wc?uri=${encodeURIComponent(uri)}`;
40
- }
41
- },
42
- qrCode: {
43
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
44
- instructions: {
45
- learnMoreUrl: "https://omni.app/support",
46
- steps: [
47
- {
48
- description: "wallet_connectors.omni.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.omni.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.omni.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.omni.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.omni.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.omni.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- }
65
- };
66
- }
67
- });
68
-
69
- export {
70
- omniWallet
71
- };
@@ -1,114 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var frontierWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isFrontierInjected = typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier;
20
- return {
21
- id: "frontier",
22
- name: "Frontier Wallet",
23
- installed: typeof window !== "undefined" && typeof window.frontier !== "undefined" && window?.frontier?.ethereum?.isFrontier ? true : void 0,
24
- iconUrl: async () => (await import("./frontierWallet-3CNZ2ST5.js")).default,
25
- iconBackground: "#CC703C",
26
- downloadUrls: {
27
- android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
28
- ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
29
- qrCode: "https://www.frontier.xyz/download",
30
- chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
31
- browserExtension: "https://www.frontier.xyz/download"
32
- },
33
- createConnector: () => {
34
- const shouldUseWalletConnect = !isFrontierInjected;
35
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
36
- chains,
37
- projectId,
38
- options: walletConnectOptions,
39
- version: walletConnectVersion
40
- }) : new InjectedConnector({ chains });
41
- const getUri = async () => {
42
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
43
- return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
44
- };
45
- return {
46
- connector: new InjectedConnector({
47
- chains,
48
- options: {
49
- getProvider: () => {
50
- const getFront = (frontier) => frontier?.ethereum ? frontier?.ethereum : void 0;
51
- if (typeof window === "undefined") {
52
- return;
53
- }
54
- return getFront(window.frontier);
55
- },
56
- ...options
57
- }
58
- }),
59
- mobile: {
60
- getUri: shouldUseWalletConnect ? getUri : void 0
61
- },
62
- qrCode: shouldUseWalletConnect ? {
63
- getUri,
64
- instructions: {
65
- learnMoreUrl: "https://help.frontier.xyz/en/",
66
- steps: [
67
- {
68
- description: "wallet_connectors.im_token.qr_code.step1.description",
69
- step: "install",
70
- title: "wallet_connectors.im_token.qr_code.step1.title"
71
- },
72
- {
73
- description: "wallet_connectors.im_token.qr_code.step2.description",
74
- step: "create",
75
- title: "wallet_connectors.im_token.qr_code.step2.title"
76
- },
77
- {
78
- description: "wallet_connectors.im_token.qr_code.step3.description",
79
- step: "scan",
80
- title: "wallet_connectors.im_token.qr_code.step3.title"
81
- }
82
- ]
83
- }
84
- } : void 0,
85
- extension: {
86
- instructions: {
87
- learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
88
- steps: [
89
- {
90
- description: "wallet_connectors.frontier.extension.step1.description",
91
- step: "install",
92
- title: "wallet_connectors.frontier.extension.step1.title"
93
- },
94
- {
95
- description: "wallet_connectors.frontier.extension.step2.description",
96
- step: "create",
97
- title: "wallet_connectors.frontier.extension.step2.title"
98
- },
99
- {
100
- description: "wallet_connectors.frontier.extension.step3.description",
101
- step: "refresh",
102
- title: "wallet_connectors.frontier.extension.step3.title"
103
- }
104
- ]
105
- }
106
- }
107
- };
108
- }
109
- };
110
- };
111
-
112
- export {
113
- frontierWallet
114
- };
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector,
7
- getWalletConnectUri
8
- } from "./chunk-OJAMLRYU.js";
9
-
10
- // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var tokenPocketWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2"
17
- }) => {
18
- const isTokenPocketInjected = typeof window !== "undefined" && window.ethereum?.isTokenPocket === true;
19
- const shouldUseWalletConnect = !isTokenPocketInjected;
20
- return {
21
- id: "tokenPocket",
22
- name: "TokenPocket",
23
- iconUrl: async () => (await import("./tokenPocketWallet-UYD66DEM.js")).default,
24
- iconBackground: "#2980FE",
25
- installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
26
- downloadUrls: {
27
- chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
28
- browserExtension: "https://extension.tokenpocket.pro/",
29
- android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
30
- ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
31
- qrCode: "https://tokenpocket.pro/en/download/app",
32
- mobile: "https://tokenpocket.pro/en/download/app"
33
- },
34
- createConnector: () => {
35
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
36
- chains,
37
- projectId,
38
- options: walletConnectOptions,
39
- version: walletConnectVersion
40
- }) : new InjectedConnector({ chains });
41
- const getUri = async () => {
42
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
43
- return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
44
- };
45
- return {
46
- connector,
47
- mobile: {
48
- getUri: shouldUseWalletConnect ? getUri : void 0
49
- },
50
- qrCode: shouldUseWalletConnect ? {
51
- getUri,
52
- instructions: {
53
- learnMoreUrl: "https://help.tokenpocket.pro/en/",
54
- steps: [
55
- {
56
- description: "wallet_connectors.token_pocket.qr_code.step1.description",
57
- step: "install",
58
- title: "wallet_connectors.token_pocket.qr_code.step1.title"
59
- },
60
- {
61
- description: "wallet_connectors.token_pocket.qr_code.step2.description",
62
- step: "create",
63
- title: "wallet_connectors.token_pocket.qr_code.step2.title"
64
- },
65
- {
66
- description: "wallet_connectors.token_pocket.qr_code.step3.description",
67
- step: "scan",
68
- title: "wallet_connectors.token_pocket.qr_code.step3.title"
69
- }
70
- ]
71
- }
72
- } : void 0,
73
- extension: {
74
- instructions: {
75
- learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
76
- steps: [
77
- {
78
- description: "wallet_connectors.token_pocket.extension.step1.description",
79
- step: "install",
80
- title: "wallet_connectors.token_pocket.extension.step1.title"
81
- },
82
- {
83
- description: "wallet_connectors.token_pocket.extension.step2.description",
84
- step: "create",
85
- title: "wallet_connectors.token_pocket.extension.step2.title"
86
- },
87
- {
88
- description: "wallet_connectors.token_pocket.extension.step3.description",
89
- step: "refresh",
90
- title: "wallet_connectors.token_pocket.extension.step3.title"
91
- }
92
- ]
93
- }
94
- }
95
- };
96
- }
97
- };
98
- };
99
-
100
- export {
101
- tokenPocketWallet
102
- };
@@ -1,105 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/ledgerWallet/ledgerWallet.ts
11
- var ledgerWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "ledger",
18
- iconBackground: "#000",
19
- iconAccent: "#000",
20
- name: "Ledger",
21
- iconUrl: async () => (await import("./ledgerWallet-DIS4VM6H.js")).default,
22
- downloadUrls: {
23
- android: "https://play.google.com/store/apps/details?id=com.ledger.live",
24
- ios: "https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",
25
- mobile: "https://www.ledger.com/ledger-live",
26
- qrCode: "https://r354.adj.st/?adj_t=t2esmlk",
27
- windows: "https://www.ledger.com/ledger-live/download",
28
- macos: "https://www.ledger.com/ledger-live/download",
29
- linux: "https://www.ledger.com/ledger-live/download",
30
- desktop: "https://www.ledger.com/ledger-live"
31
- },
32
- createConnector: () => {
33
- const connector = getWalletConnectConnector({
34
- projectId,
35
- chains,
36
- version: walletConnectVersion,
37
- options: walletConnectOptions
38
- });
39
- return {
40
- connector,
41
- mobile: {
42
- getUri: async () => {
43
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
44
- return isAndroid() ? uri : `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
45
- }
46
- },
47
- desktop: {
48
- getUri: async () => {
49
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
50
- return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
51
- },
52
- instructions: {
53
- learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
54
- steps: [
55
- {
56
- description: "wallet_connectors.ledger.desktop.step1.description",
57
- step: "install",
58
- title: "wallet_connectors.ledger.desktop.step1.title"
59
- },
60
- {
61
- description: "wallet_connectors.ledger.desktop.step2.description",
62
- step: "create",
63
- title: "wallet_connectors.ledger.desktop.step2.title"
64
- },
65
- {
66
- description: "wallet_connectors.ledger.desktop.step3.description",
67
- step: "connect",
68
- title: "wallet_connectors.ledger.desktop.step3.title"
69
- }
70
- ]
71
- }
72
- },
73
- qrCode: {
74
- getUri: async () => {
75
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
76
- return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
77
- },
78
- instructions: {
79
- learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
80
- steps: [
81
- {
82
- description: "wallet_connectors.ledger.qr_code.step1.description",
83
- step: "install",
84
- title: "wallet_connectors.ledger.qr_code.step1.title"
85
- },
86
- {
87
- description: "wallet_connectors.ledger.qr_code.step2.description",
88
- step: "create",
89
- title: "wallet_connectors.ledger.qr_code.step2.title"
90
- },
91
- {
92
- description: "wallet_connectors.ledger.qr_code.step3.description",
93
- step: "scan",
94
- title: "wallet_connectors.ledger.qr_code.step3.title"
95
- }
96
- ]
97
- }
98
- }
99
- };
100
- }
101
- });
102
-
103
- export {
104
- ledgerWallet
105
- };
@@ -1,113 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var okxWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isOKXInjected = typeof window !== "undefined" && typeof window.okxwallet !== "undefined";
20
- const shouldUseWalletConnect = !isOKXInjected;
21
- return {
22
- id: "okx",
23
- name: "OKX Wallet",
24
- iconUrl: async () => (await import("./okxWallet-GKYMI2XW.js")).default,
25
- iconAccent: "#000",
26
- iconBackground: "#000",
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
29
- ios: "https://itunes.apple.com/app/id1327268470?mt=8",
30
- mobile: "https://okx.com/download",
31
- qrCode: "https://okx.com/download",
32
- chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
33
- edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
34
- firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
35
- browserExtension: "https://okx.com/download"
36
- },
37
- createConnector: () => {
38
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
39
- projectId,
40
- chains,
41
- version: walletConnectVersion,
42
- options: walletConnectOptions
43
- }) : new InjectedConnector({
44
- chains,
45
- options: {
46
- getProvider: () => window.okxwallet,
47
- ...options
48
- }
49
- });
50
- return {
51
- connector,
52
- mobile: {
53
- getUri: shouldUseWalletConnect ? async () => {
54
- const uri = await getWalletConnectUri(
55
- connector,
56
- walletConnectVersion
57
- );
58
- return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
59
- } : void 0
60
- },
61
- qrCode: shouldUseWalletConnect ? {
62
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
63
- instructions: {
64
- learnMoreUrl: "https://okx.com/web3/",
65
- steps: [
66
- {
67
- description: "wallet_connectors.okx.qr_code.step1.description",
68
- step: "install",
69
- title: "wallet_connectors.okx.qr_code.step1.title"
70
- },
71
- {
72
- description: "wallet_connectors.okx.qr_code.step2.description",
73
- step: "create",
74
- title: "wallet_connectors.okx.qr_code.step2.title"
75
- },
76
- {
77
- description: "wallet_connectors.okx.qr_code.step3.description",
78
- step: "scan",
79
- title: "wallet_connectors.okx.qr_code.step3.title"
80
- }
81
- ]
82
- }
83
- } : void 0,
84
- extension: {
85
- instructions: {
86
- learnMoreUrl: "https://okx.com/web3/",
87
- steps: [
88
- {
89
- description: "wallet_connectors.okx.extension.step1.description",
90
- step: "install",
91
- title: "wallet_connectors.okx.extension.step1.title"
92
- },
93
- {
94
- description: "wallet_connectors.okx.extension.step2.description",
95
- step: "create",
96
- title: "wallet_connectors.okx.extension.step2.title"
97
- },
98
- {
99
- description: "wallet_connectors.okx.extension.step3.description",
100
- step: "refresh",
101
- title: "wallet_connectors.okx.extension.step3.title"
102
- }
103
- ]
104
- }
105
- }
106
- };
107
- }
108
- };
109
- };
110
-
111
- export {
112
- okxWallet
113
- };
@@ -1,81 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector,
7
- getWalletConnectUri
8
- } from "./chunk-OJAMLRYU.js";
9
-
10
- // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var bifrostWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isBifrostInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && window.ethereum.isBifrost;
20
- const shouldUseWalletConnect = !isBifrostInjected;
21
- return {
22
- id: "bifrostWallet",
23
- name: "Bifrost Wallet",
24
- iconUrl: async () => (await import("./bifrostWallet-5VPKXMCJ.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
- createConnector: () => {
33
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
34
- chains,
35
- projectId,
36
- options: walletConnectOptions,
37
- version: walletConnectVersion
38
- }) : new InjectedConnector({
39
- chains,
40
- options
41
- });
42
- const getUri = async () => {
43
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
44
- return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
45
- };
46
- return {
47
- connector,
48
- mobile: {
49
- getUri: shouldUseWalletConnect ? getUri : void 0
50
- },
51
- qrCode: shouldUseWalletConnect ? {
52
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
53
- instructions: {
54
- learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
55
- steps: [
56
- {
57
- description: "wallet_connectors.bifrost.qr_code.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.bifrost.qr_code.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.bifrost.qr_code.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.bifrost.qr_code.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.bifrost.qr_code.step3.description",
68
- step: "scan",
69
- title: "wallet_connectors.bifrost.qr_code.step3.title"
70
- }
71
- ]
72
- }
73
- } : void 0
74
- };
75
- }
76
- };
77
- };
78
-
79
- export {
80
- bifrostWallet
81
- };