@funkit/connect 5.1.4 → 5.2.1

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 (58) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/{chunk-IDAA2OY6.js → chunk-3LR6KLPU.js} +5 -4
  3. package/dist/{chunk-A7G4HZZY.js → chunk-CRPOYQ6X.js} +39 -4
  4. package/dist/{chunk-L55ALBJE.js → chunk-QMPPK7HO.js} +5 -4
  5. package/dist/components/Box/Box.d.ts +29 -29
  6. package/dist/components/Dropdown/BaseDropdown.css.d.ts +1 -1
  7. package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -3
  8. package/dist/components/FunBadge/FunBadge.d.ts +3 -3
  9. package/dist/components/FunButton/FunRedirectButton.d.ts +6 -0
  10. package/dist/components/FunInput/FunTwoFaInput.d.ts +2 -2
  11. package/dist/components/FunNotification/FunNotification.d.ts +2 -6
  12. package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +7 -0
  13. package/dist/components/YouPayYouReceive/YouPayYouReceive.d.ts +2 -1
  14. package/dist/config/getDefaultConfig.d.ts +291 -150
  15. package/dist/consts/funkit.d.ts +0 -6
  16. package/dist/css/sprinkles.css.d.ts +51 -35
  17. package/dist/domains/quote.d.ts +4 -10
  18. package/dist/domains/relay.d.ts +18 -0
  19. package/dist/hooks/useCheckoutDirectExecution.d.ts +22 -0
  20. package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -1
  21. package/dist/hooks/useRelayBypass.d.ts +16 -0
  22. package/dist/index.css +2513 -2423
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +1369 -1144
  25. package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +5 -1
  26. package/dist/providers/FunkitCheckoutContext.d.ts +2 -2
  27. package/dist/providers/FunkitThemeProvider.d.ts +33 -9
  28. package/dist/providers/GeneralWalletProvider.d.ts +10 -74
  29. package/dist/themes/baseTheme.js +1 -1
  30. package/dist/themes/darkTheme.js +2 -2
  31. package/dist/themes/lightTheme.js +2 -2
  32. package/dist/utils/checkout.d.ts +11 -16
  33. package/dist/utils/consts.d.ts +1 -0
  34. package/dist/utils/flags/config.d.ts +42 -4
  35. package/dist/utils/flags/types.d.ts +7 -0
  36. package/dist/utils/tokenIconUrl.d.ts +2 -0
  37. package/dist/wallets/walletConnectors/chunk-2UCNRD7H.js +70 -0
  38. package/dist/wallets/walletConnectors/chunk-3S2U24BJ.js +96 -0
  39. package/dist/wallets/walletConnectors/chunk-4WEHDI4Y.js +94 -0
  40. package/dist/wallets/walletConnectors/chunk-63YLN6R5.js +92 -0
  41. package/dist/wallets/walletConnectors/chunk-6ONTSPEY.js +98 -0
  42. package/dist/wallets/walletConnectors/chunk-A5APNTGL.js +99 -0
  43. package/dist/wallets/walletConnectors/chunk-AD2KIJB6.js +103 -0
  44. package/dist/wallets/walletConnectors/chunk-AXWP3GD4.js +100 -0
  45. package/dist/wallets/walletConnectors/chunk-DTRYS3MO.js +96 -0
  46. package/dist/wallets/walletConnectors/chunk-G73C6P5P.js +146 -0
  47. package/dist/wallets/walletConnectors/chunk-GSOYKKIS.js +92 -0
  48. package/dist/wallets/walletConnectors/chunk-HBA36GW3.js +95 -0
  49. package/dist/wallets/walletConnectors/chunk-IDKVN5CF.js +93 -0
  50. package/dist/wallets/walletConnectors/chunk-ISIBREBO.js +106 -0
  51. package/dist/wallets/walletConnectors/chunk-KR6JBW5E.js +87 -0
  52. package/dist/wallets/walletConnectors/chunk-LMZMXEXL.js +66 -0
  53. package/dist/wallets/walletConnectors/chunk-MSFKSQBY.js +110 -0
  54. package/dist/wallets/walletConnectors/chunk-W6N74MS3.js +69 -0
  55. package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +0 -23
  56. package/dist/wallets/walletConnectors/index.js +51 -51
  57. package/package.json +10 -8
  58. package/dist/components/SolanaDepositAlert/SolanaDepositAlert.d.ts +0 -6
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.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,92 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.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
+ };
@@ -0,0 +1,98 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.js";
9
+
10
+ // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
+ var bybitWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isBybitInjected = hasInjectedProvider({
16
+ namespace: "bybitWallet"
17
+ });
18
+ const shouldUseWalletConnect = !isBybitInjected;
19
+ const getUri = (uri) => {
20
+ return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
21
+ uri
22
+ )}`;
23
+ };
24
+ return {
25
+ id: "bybit",
26
+ name: "Bybit Wallet",
27
+ rdns: "com.bybit",
28
+ iconUrl: async () => (await import("./bybitWallet-GOPAS32Q.js")).default,
29
+ installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
30
+ iconBackground: "#000000",
31
+ downloadUrls: {
32
+ chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
33
+ browserExtension: "https://www.bybit.com/en/web3",
34
+ android: "https://play.google.com/store/apps/details?id=com.bybit.app",
35
+ ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
36
+ mobile: "https://www.bybit.com/en/web3",
37
+ qrCode: "https://www.bybit.com/en/web3"
38
+ },
39
+ mobile: {
40
+ getUri: shouldUseWalletConnect ? getUri : void 0
41
+ },
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => uri,
44
+ instructions: {
45
+ learnMoreUrl: "https://www.bybit.com/en/web3",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.bybit.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.bybit.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.bybit.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.bybit.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.bybit.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.bybit.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://www.bybit.com/en/web3",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.bybit.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.bybit.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.bybit.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.bybit.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.bybit.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.bybit.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
+ projectId,
89
+ walletConnectParameters
90
+ }) : getInjectedConnector({
91
+ namespace: "bybitWallet"
92
+ })
93
+ };
94
+ };
95
+
96
+ export {
97
+ bybitWallet
98
+ };
@@ -0,0 +1,99 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.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,103 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.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,100 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.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
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-WRA2DVJ7.js";
9
+
10
+ // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
+ var coin98Wallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoin98WalletInjected = hasInjectedProvider({
16
+ namespace: "coin98.provider",
17
+ flag: "isCoin98"
18
+ });
19
+ const shouldUseWalletConnect = !isCoin98WalletInjected;
20
+ return {
21
+ id: "coin98",
22
+ name: "Coin98 Wallet",
23
+ iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
24
+ installed: isCoin98WalletInjected,
25
+ iconAccent: "#CDA349",
26
+ iconBackground: "#fff",
27
+ rdns: "coin98.com",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
30
+ ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
31
+ mobile: "https://coin98.com/wallet",
32
+ qrCode: "https://coin98.com/wallet",
33
+ chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
34
+ browserExtension: "https://coin98.com/wallet"
35
+ },
36
+ mobile: {
37
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
38
+ },
39
+ qrCode: shouldUseWalletConnect ? {
40
+ getUri: (uri) => uri,
41
+ instructions: {
42
+ learnMoreUrl: "https://coin98.com/wallet",
43
+ steps: [
44
+ {
45
+ description: "wallet_connectors.coin98.qr_code.step1.description",
46
+ step: "install",
47
+ title: "wallet_connectors.coin98.qr_code.step1.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.coin98.qr_code.step2.description",
51
+ step: "create",
52
+ title: "wallet_connectors.coin98.qr_code.step2.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.coin98.qr_code.step3.description",
56
+ step: "scan",
57
+ title: "wallet_connectors.coin98.qr_code.step3.title"
58
+ }
59
+ ]
60
+ }
61
+ } : void 0,
62
+ extension: {
63
+ instructions: {
64
+ learnMoreUrl: "https://coin98.com/wallet",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.coin98.extension.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.coin98.extension.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.coin98.extension.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.coin98.extension.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.coin98.extension.step3.description",
78
+ step: "refresh",
79
+ title: "wallet_connectors.coin98.extension.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ }) : getInjectedConnector({
88
+ namespace: "coin98Wallet",
89
+ flag: "isCoin98"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ coin98Wallet
96
+ };