@dogeos/dogeos-sdk 1.0.4 → 1.0.5-beta.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 (67) hide show
  1. package/dist/AzeretTRIALVF-BSJZFQYZ.ttf +0 -0
  2. package/dist/HafferTRIALRegular-W47O3WWZ.ttf +0 -0
  3. package/dist/HafferTrialMedium-OFFQV4LA.ttf +0 -0
  4. package/dist/HafferTrialSemiBold-BT324UAA.ttf +0 -0
  5. package/dist/{chunk-PLDENDHT.js → chunk-4W226UPS.js} +1 -1
  6. package/dist/{chunk-EC53OL4T.js → chunk-ADRE6DLX.js} +1 -1
  7. package/dist/{chunk-QOI66L3H.js → chunk-C5Q6FMMU.js} +25 -3
  8. package/dist/{chunk-6QDJ3EKF.js → chunk-QVWJRUFG.js} +25 -3
  9. package/dist/{walletConnectors-ZBKYSCH5.js → chunk-ZUNVBVVT.js} +485 -18
  10. package/dist/components/AccountModal/AccountModal.d.ts +2 -0
  11. package/dist/components/AccountModal/AccountModal.d.ts.map +1 -1
  12. package/dist/components/ActionModal/ActionModal.d.ts +9 -0
  13. package/dist/components/ActionModal/ActionModal.d.ts.map +1 -0
  14. package/dist/components/Box/Box.d.ts +12 -12
  15. package/dist/components/CloseIcon/index.d.ts +0 -1
  16. package/dist/components/CloseIcon/index.d.ts.map +1 -1
  17. package/dist/components/ConnectComp/Connect.d.ts.map +1 -1
  18. package/dist/components/ConnectComp/ContinueButton.d.ts.map +1 -1
  19. package/dist/components/ConnectComp/EmailInput.d.ts.map +1 -1
  20. package/dist/components/ConnectComp/Form.d.ts.map +1 -1
  21. package/dist/components/ConnectComp/HeaderWalletSelector.d.ts.map +1 -1
  22. package/dist/components/ConnectComp/SocialLogin.d.ts.map +1 -1
  23. package/dist/components/ConnectComp/WalletItem.d.ts.map +1 -1
  24. package/dist/components/ConnectModal/TomoConnectModal.d.ts.map +1 -1
  25. package/dist/components/ConnectOptions/ConnectDetails.d.ts.map +1 -1
  26. package/dist/components/FaucetModal/ClaimedButton.d.ts.map +1 -1
  27. package/dist/components/FaucetModal/FaucetModal.d.ts +2 -2
  28. package/dist/components/FaucetModal/FaucetModal.d.ts.map +1 -1
  29. package/dist/components/RainbowKitProvider/AccountContext.d.ts +3 -2
  30. package/dist/components/RainbowKitProvider/AccountContext.d.ts.map +1 -1
  31. package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts.map +1 -1
  32. package/dist/components/Toast/Toast.d.ts +17 -0
  33. package/dist/components/Toast/Toast.d.ts.map +1 -0
  34. package/dist/components/useNetworkOptions/index.d.ts +1 -1
  35. package/dist/components/useNetworkOptions/index.d.ts.map +1 -1
  36. package/dist/config/getDefaultConfig.d.ts +2 -0
  37. package/dist/config/getDefaultConfig.d.ts.map +1 -1
  38. package/dist/css/reset.css.d.ts.map +1 -1
  39. package/dist/css/sprinkles.css.d.ts +54 -12
  40. package/dist/css/sprinkles.css.d.ts.map +1 -1
  41. package/dist/hooks/useDogeOSBalance.d.ts +38 -37
  42. package/dist/hooks/useDogeOSBalance.d.ts.map +1 -1
  43. package/dist/index.css +911 -225
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +1368 -1209
  46. package/dist/mydogeWallet-DW2L75P4.js +7 -0
  47. package/dist/onboard/pseudoOnboardState.d.ts.map +1 -1
  48. package/dist/themes/baseTheme.d.ts +1 -1
  49. package/dist/themes/baseTheme.js +1 -1
  50. package/dist/themes/darkTheme.d.ts.map +1 -1
  51. package/dist/themes/darkTheme.js +2 -2
  52. package/dist/themes/lightTheme.d.ts.map +1 -1
  53. package/dist/themes/lightTheme.js +2 -2
  54. package/dist/themes/midnightTheme.js +2 -2
  55. package/dist/types/utils.d.ts +5 -0
  56. package/dist/types/utils.d.ts.map +1 -1
  57. package/dist/utils/loadScript.d.ts +2 -0
  58. package/dist/utils/loadScript.d.ts.map +1 -0
  59. package/dist/walletConnectors-DIHHLQWV.js +133 -0
  60. package/dist/wallets/walletConnectors/{chunk-CAS7KD2L.js → chunk-EUCCLFNY.js} +2 -2
  61. package/dist/wallets/walletConnectors/index.js +27 -27
  62. package/dist/wallets/walletConnectors/mydogeWallet/mydogeWallet.js +1 -1
  63. package/dist/wallets/walletConnectors/mydogeWallet-DW2L75P4.js +7 -0
  64. package/package.json +4 -8
  65. package/dist/chunk-JLFKE47Q.js +0 -494
  66. package/dist/mydogeWallet-H2O7JJMN.js +0 -7
  67. package/dist/wallets/walletConnectors/mydogeWallet-H2O7JJMN.js +0 -7
@@ -1,18 +1,84 @@
1
1
  "use client";
2
- import {
3
- coinbaseWallet,
4
- getInjectedConnector,
5
- getWalletConnectConnector,
6
- hasInjectedProvider,
7
- isAndroid,
8
- isIOS,
9
- isMobile,
10
- isSafari,
11
- metaMaskWallet,
12
- rainbowWallet,
13
- safeWallet,
14
- walletConnectWallet
15
- } from "./chunk-JLFKE47Q.js";
2
+
3
+ // src/utils/isMobile.ts
4
+ function isAndroid() {
5
+ return typeof navigator !== "undefined" && /android/i.test(navigator.userAgent);
6
+ }
7
+ function isSmallIOS() {
8
+ return typeof navigator !== "undefined" && /iPhone|iPod/.test(navigator.userAgent);
9
+ }
10
+ function isLargeIOS() {
11
+ return typeof navigator !== "undefined" && (/iPad/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
12
+ }
13
+ function isIOS() {
14
+ return isSmallIOS() || isLargeIOS();
15
+ }
16
+ function isMobile() {
17
+ return isAndroid() || isIOS();
18
+ }
19
+
20
+ // src/wallets/getWalletConnectConnector.ts
21
+ import { createConnector } from "wagmi";
22
+ import { walletConnect } from "wagmi/connectors";
23
+ var walletConnectInstances = /* @__PURE__ */ new Map();
24
+ var getOrCreateWalletConnectInstance = ({
25
+ projectId,
26
+ walletConnectParameters,
27
+ rkDetailsShowQrModal
28
+ }) => {
29
+ let config = {
30
+ ...walletConnectParameters ? walletConnectParameters : {},
31
+ projectId,
32
+ showQrModal: false
33
+ // Required. Otherwise WalletConnect modal (Web3Modal) will popup during time of connection for a wallet
34
+ };
35
+ if (rkDetailsShowQrModal) {
36
+ config = { ...config, showQrModal: true };
37
+ }
38
+ const serializedConfig = JSON.stringify(config);
39
+ const sharedWalletConnector = walletConnectInstances.get(serializedConfig);
40
+ if (sharedWalletConnector) {
41
+ return sharedWalletConnector;
42
+ }
43
+ const newWalletConnectInstance = walletConnect(config);
44
+ walletConnectInstances.set(serializedConfig, newWalletConnectInstance);
45
+ return newWalletConnectInstance;
46
+ };
47
+ function createWalletConnectConnector({
48
+ projectId,
49
+ walletDetails,
50
+ walletConnectParameters
51
+ }) {
52
+ return createConnector((config) => ({
53
+ ...getOrCreateWalletConnectInstance({
54
+ projectId,
55
+ walletConnectParameters,
56
+ // Used in `connectorsForWallets` to add another
57
+ // walletConnect wallet into rainbowkit with modal popup option
58
+ rkDetailsShowQrModal: walletDetails.rkDetails.showQrModal
59
+ })(config),
60
+ ...walletDetails
61
+ }));
62
+ }
63
+ function getWalletConnectConnector({
64
+ projectId,
65
+ walletConnectParameters
66
+ }) {
67
+ const exampleProjectId = "21fef48091f12692cad574a6f7753643";
68
+ if (!projectId || projectId === "") {
69
+ throw new Error(
70
+ "No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure"
71
+ );
72
+ }
73
+ if (projectId === "YOUR_PROJECT_ID") {
74
+ projectId = exampleProjectId;
75
+ }
76
+ return (walletDetails) => createWalletConnectConnector({
77
+ projectId,
78
+ walletDetails,
79
+ walletConnectParameters
80
+ });
81
+ }
16
82
 
17
83
  // src/wallets/walletConnectors/argentWallet/argentWallet.ts
18
84
  var argentWallet = ({ projectId, walletConnectParameters }) => ({
@@ -60,6 +126,71 @@ var argentWallet = ({ projectId, walletConnectParameters }) => ({
60
126
  })
61
127
  });
62
128
 
129
+ // src/wallets/getInjectedConnector.ts
130
+ import { createConnector as createConnector2 } from "wagmi";
131
+ import { injected } from "wagmi/connectors";
132
+ function getExplicitInjectedProvider(flag) {
133
+ const _window = typeof window !== "undefined" ? window : void 0;
134
+ if (typeof _window === "undefined" || typeof _window.ethereum === "undefined") return;
135
+ const providers = _window.ethereum.providers;
136
+ return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
137
+ }
138
+ function getWindowProviderNamespace(namespace) {
139
+ const providerSearch = (provider, namespace2) => {
140
+ const [property, ...path] = namespace2.split(".");
141
+ const _provider = provider[property];
142
+ if (_provider) {
143
+ if (path.length === 0) return _provider;
144
+ return providerSearch(_provider, path.join("."));
145
+ }
146
+ };
147
+ if (typeof window !== "undefined") return providerSearch(window, namespace);
148
+ }
149
+ function hasInjectedProvider({ flag, namespace }) {
150
+ if (namespace && typeof getWindowProviderNamespace(namespace) !== "undefined") return true;
151
+ if (flag && typeof getExplicitInjectedProvider(flag) !== "undefined") return true;
152
+ return false;
153
+ }
154
+ function getInjectedProvider({ flag, namespace }) {
155
+ const _window = typeof window !== "undefined" ? window : void 0;
156
+ if (typeof _window === "undefined") return;
157
+ if (namespace) {
158
+ const windowProvider = getWindowProviderNamespace(namespace);
159
+ if (windowProvider) return windowProvider;
160
+ }
161
+ const providers = _window.ethereum?.providers;
162
+ if (flag) {
163
+ const provider = getExplicitInjectedProvider(flag);
164
+ if (provider) return provider;
165
+ }
166
+ if (typeof providers !== "undefined" && providers.length > 0) return providers[0];
167
+ return _window.ethereum;
168
+ }
169
+ function createInjectedConnector(provider) {
170
+ return (walletDetails) => {
171
+ const injectedConfig = provider ? {
172
+ target: () => ({
173
+ id: walletDetails.rkDetails.id,
174
+ name: walletDetails.rkDetails.name,
175
+ provider
176
+ })
177
+ } : {};
178
+ return createConnector2((config) => ({
179
+ // Spread the injectedConfig object, which may be empty or contain the target function
180
+ ...injected(injectedConfig)(config),
181
+ ...walletDetails
182
+ }));
183
+ };
184
+ }
185
+ function getInjectedConnector({
186
+ flag,
187
+ namespace,
188
+ target
189
+ }) {
190
+ const provider = target ? target : getInjectedProvider({ flag, namespace });
191
+ return createInjectedConnector(provider);
192
+ }
193
+
63
194
  // src/wallets/walletConnectors/berasigWallet/berasigWallet.ts
64
195
  var berasigWallet = ({ projectId, walletConnectParameters }) => {
65
196
  const isBerasigWalletInjected = hasInjectedProvider({
@@ -707,6 +838,93 @@ var coin98Wallet = ({ projectId, walletConnectParameters }) => {
707
838
  };
708
839
  };
709
840
 
841
+ // src/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.ts
842
+ import { createConnector as createConnector3 } from "wagmi";
843
+ import { coinbaseWallet as coinbaseConnector } from "wagmi/connectors";
844
+ var coinbaseWallet = ({ appName, appIcon }) => {
845
+ const getUri = (uri) => uri;
846
+ const ios = isIOS();
847
+ return {
848
+ id: "coinbase",
849
+ name: "Coinbase Wallet",
850
+ shortName: "Coinbase",
851
+ rdns: "com.coinbase.wallet",
852
+ iconUrl: async () => (await import("./coinbaseWallet-WWX6LF36.js")).default,
853
+ iconAccent: "#2c5ff6",
854
+ iconBackground: "#2c5ff6",
855
+ // If the coinbase wallet browser extension is not installed, a popup will appear
856
+ // prompting the user to connect or create a wallet via passkey. This means if you either have
857
+ // or don't have the coinbase wallet browser extension installed it'll do some action anyways
858
+ installed: true,
859
+ downloadUrls: {
860
+ android: "https://play.google.com/store/apps/details?id=org.toshi",
861
+ ios: "https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",
862
+ mobile: "https://coinbase.com/wallet/downloads",
863
+ qrCode: "https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",
864
+ chrome: "https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",
865
+ browserExtension: "https://coinbase.com/wallet"
866
+ },
867
+ ...ios ? {} : {
868
+ qrCode: {
869
+ getUri,
870
+ instructions: {
871
+ learnMoreUrl: "https://coinbase.com/wallet/articles/getting-started-mobile",
872
+ steps: [
873
+ {
874
+ description: "wallet_connectors.coinbase.qr_code.step1.description",
875
+ step: "install",
876
+ title: "wallet_connectors.coinbase.qr_code.step1.title"
877
+ },
878
+ {
879
+ description: "wallet_connectors.coinbase.qr_code.step2.description",
880
+ step: "create",
881
+ title: "wallet_connectors.coinbase.qr_code.step2.title"
882
+ },
883
+ {
884
+ description: "wallet_connectors.coinbase.qr_code.step3.description",
885
+ step: "scan",
886
+ title: "wallet_connectors.coinbase.qr_code.step3.title"
887
+ }
888
+ ]
889
+ }
890
+ },
891
+ extension: {
892
+ instructions: {
893
+ learnMoreUrl: "https://coinbase.com/wallet/articles/getting-started-extension",
894
+ steps: [
895
+ {
896
+ description: "wallet_connectors.coinbase.extension.step1.description",
897
+ step: "install",
898
+ title: "wallet_connectors.coinbase.extension.step1.title"
899
+ },
900
+ {
901
+ description: "wallet_connectors.coinbase.extension.step2.description",
902
+ step: "create",
903
+ title: "wallet_connectors.coinbase.extension.step2.title"
904
+ },
905
+ {
906
+ description: "wallet_connectors.coinbase.extension.step3.description",
907
+ step: "refresh",
908
+ title: "wallet_connectors.coinbase.extension.step3.title"
909
+ }
910
+ ]
911
+ }
912
+ }
913
+ },
914
+ createConnector: (walletDetails) => {
915
+ const connector = coinbaseConnector({
916
+ appName,
917
+ appLogoUrl: appIcon,
918
+ preference: coinbaseWallet.preference
919
+ });
920
+ return createConnector3((config) => ({
921
+ ...connector(config),
922
+ ...walletDetails
923
+ }));
924
+ }
925
+ };
926
+ };
927
+
710
928
  // src/wallets/walletConnectors/compassWallet/compassWallet.ts
711
929
  var compassWallet = () => {
712
930
  const isCompassInjected = hasInjectedProvider({ namespace: "compassEvm" });
@@ -1641,6 +1859,133 @@ var magicEdenWallet = () => {
1641
1859
  };
1642
1860
  };
1643
1861
 
1862
+ // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
1863
+ function isMetaMask(ethereum) {
1864
+ if (!ethereum?.isMetaMask) return false;
1865
+ if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) return false;
1866
+ if (ethereum.isApexWallet) return false;
1867
+ if (ethereum.isAvalanche) return false;
1868
+ if (ethereum.isBackpack) return false;
1869
+ if (ethereum.isBifrost) return false;
1870
+ if (ethereum.isBitKeep) return false;
1871
+ if (ethereum.isBitski) return false;
1872
+ if (ethereum.isBlockWallet) return false;
1873
+ if (ethereum.isCoinbaseWallet) return false;
1874
+ if (ethereum.isDawn) return false;
1875
+ if (ethereum.isEnkrypt) return false;
1876
+ if (ethereum.isExodus) return false;
1877
+ if (ethereum.isFrame) return false;
1878
+ if (ethereum.isFrontier) return false;
1879
+ if (ethereum.isGamestop) return false;
1880
+ if (ethereum.isHyperPay) return false;
1881
+ if (ethereum.isImToken) return false;
1882
+ if (ethereum.isKuCoinWallet) return false;
1883
+ if (ethereum.isMathWallet) return false;
1884
+ if (ethereum.isNestWallet) return false;
1885
+ if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
1886
+ if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) return false;
1887
+ if (ethereum.isOpera) return false;
1888
+ if (ethereum.isPhantom) return false;
1889
+ if (ethereum.isPortal) return false;
1890
+ if (ethereum.isRabby) return false;
1891
+ if (ethereum.isRainbow) return false;
1892
+ if (ethereum.isStatus) return false;
1893
+ if (ethereum.isTalisman) return false;
1894
+ if (ethereum.isTally) return false;
1895
+ if (ethereum.isTokenPocket) return false;
1896
+ if (ethereum.isTokenary) return false;
1897
+ if (ethereum.isTrust || ethereum.isTrustWallet) return false;
1898
+ if (ethereum.isXDEFI) return false;
1899
+ if (ethereum.isZeal) return false;
1900
+ if (ethereum.isZerion) return false;
1901
+ if (ethereum.__seif) return false;
1902
+ return true;
1903
+ }
1904
+ var metaMaskWallet = ({ projectId, walletConnectParameters }) => {
1905
+ const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
1906
+ const shouldUseWalletConnect = !isMetaMaskInjected;
1907
+ const getUri = (uri) => {
1908
+ return isAndroid() ? uri : isIOS() ? (
1909
+ // currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
1910
+ `metamask://wc?uri=${encodeURIComponent(uri)}`
1911
+ ) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
1912
+ };
1913
+ return {
1914
+ id: "metaMask",
1915
+ name: "MetaMask",
1916
+ rdns: "io.metamask",
1917
+ iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
1918
+ iconAccent: "#f6851a",
1919
+ iconBackground: "#fff",
1920
+ installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
1921
+ downloadUrls: {
1922
+ android: "https://play.google.com/store/apps/details?id=io.metamask",
1923
+ ios: "https://apps.apple.com/us/app/metamask/id1438144202",
1924
+ mobile: "https://metamask.io/download",
1925
+ qrCode: "https://metamask.io/download",
1926
+ chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
1927
+ edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
1928
+ firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
1929
+ opera: "https://addons.opera.com/extensions/details/metamask-10",
1930
+ browserExtension: "https://metamask.io/download"
1931
+ },
1932
+ mobile: {
1933
+ getUri: shouldUseWalletConnect ? getUri : void 0
1934
+ },
1935
+ qrCode: shouldUseWalletConnect ? {
1936
+ getUri,
1937
+ instructions: {
1938
+ learnMoreUrl: "https://metamask.io/faqs/",
1939
+ steps: [
1940
+ {
1941
+ description: "wallet_connectors.metamask.qr_code.step1.description",
1942
+ step: "install",
1943
+ title: "wallet_connectors.metamask.qr_code.step1.title"
1944
+ },
1945
+ {
1946
+ description: "wallet_connectors.metamask.qr_code.step2.description",
1947
+ step: "create",
1948
+ title: "wallet_connectors.metamask.qr_code.step2.title"
1949
+ },
1950
+ {
1951
+ description: "wallet_connectors.metamask.qr_code.step3.description",
1952
+ step: "refresh",
1953
+ title: "wallet_connectors.metamask.qr_code.step3.title"
1954
+ }
1955
+ ]
1956
+ }
1957
+ } : void 0,
1958
+ extension: {
1959
+ instructions: {
1960
+ learnMoreUrl: "https://metamask.io/faqs/",
1961
+ steps: [
1962
+ {
1963
+ description: "wallet_connectors.metamask.extension.step1.description",
1964
+ step: "install",
1965
+ title: "wallet_connectors.metamask.extension.step1.title"
1966
+ },
1967
+ {
1968
+ description: "wallet_connectors.metamask.extension.step2.description",
1969
+ step: "create",
1970
+ title: "wallet_connectors.metamask.extension.step2.title"
1971
+ },
1972
+ {
1973
+ description: "wallet_connectors.metamask.extension.step3.description",
1974
+ step: "refresh",
1975
+ title: "wallet_connectors.metamask.extension.step3.title"
1976
+ }
1977
+ ]
1978
+ }
1979
+ },
1980
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
1981
+ projectId,
1982
+ walletConnectParameters
1983
+ }) : getInjectedConnector({
1984
+ target: typeof window !== "undefined" ? window.ethereum?.providers?.find(isMetaMask) ?? window.ethereum : void 0
1985
+ })
1986
+ };
1987
+ };
1988
+
1644
1989
  // src/wallets/walletConnectors/mewWallet/mewWallet.ts
1645
1990
  var mewWallet = () => {
1646
1991
  return {
@@ -2084,6 +2429,58 @@ var rabbyWallet = () => ({
2084
2429
  createConnector: getInjectedConnector({ flag: "isRabby" })
2085
2430
  });
2086
2431
 
2432
+ // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
2433
+ var rainbowWallet = ({ projectId, walletConnectParameters }) => {
2434
+ const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
2435
+ const shouldUseWalletConnect = !isRainbowInjected;
2436
+ const getUri = (uri) => {
2437
+ return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`;
2438
+ };
2439
+ return {
2440
+ id: "rainbow",
2441
+ name: "Rainbow",
2442
+ rdns: "me.rainbow",
2443
+ iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
2444
+ iconBackground: "#0c2f78",
2445
+ installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
2446
+ downloadUrls: {
2447
+ android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
2448
+ ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
2449
+ mobile: "https://rainbow.download?utm_source=rainbowkit",
2450
+ qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
2451
+ browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
2452
+ },
2453
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
2454
+ qrCode: shouldUseWalletConnect ? {
2455
+ getUri,
2456
+ instructions: {
2457
+ learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
2458
+ steps: [
2459
+ {
2460
+ description: "wallet_connectors.rainbow.qr_code.step1.description",
2461
+ step: "install",
2462
+ title: "wallet_connectors.rainbow.qr_code.step1.title"
2463
+ },
2464
+ {
2465
+ description: "wallet_connectors.rainbow.qr_code.step2.description",
2466
+ step: "create",
2467
+ title: "wallet_connectors.rainbow.qr_code.step2.title"
2468
+ },
2469
+ {
2470
+ description: "wallet_connectors.rainbow.qr_code.step3.description",
2471
+ step: "scan",
2472
+ title: "wallet_connectors.rainbow.qr_code.step3.title"
2473
+ }
2474
+ ]
2475
+ }
2476
+ } : void 0,
2477
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
2478
+ projectId,
2479
+ walletConnectParameters
2480
+ }) : getInjectedConnector({ flag: "isRainbow" })
2481
+ };
2482
+ };
2483
+
2087
2484
  // src/wallets/walletConnectors/ramperWallet/ramperWallet.ts
2088
2485
  var ramperWallet = () => {
2089
2486
  const isRamperWalletInjected = hasInjectedProvider({
@@ -2209,6 +2606,33 @@ var roninWallet = ({ projectId, walletConnectParameters }) => {
2209
2606
  };
2210
2607
  };
2211
2608
 
2609
+ // src/wallets/walletConnectors/safeWallet/safeWallet.ts
2610
+ import { createConnector as createConnector4 } from "wagmi";
2611
+ import { safe } from "wagmi/connectors";
2612
+ var safeWallet = () => ({
2613
+ id: "safe",
2614
+ name: "Safe",
2615
+ iconAccent: "#12ff80",
2616
+ iconBackground: "#fff",
2617
+ iconUrl: async () => (await import("./safeWallet-VUYZPLY4.js")).default,
2618
+ installed: (
2619
+ // Only allowed in iframe context
2620
+ // borrowed from wagmi safe connector
2621
+ !(typeof window === "undefined") && window?.parent !== window && window?.parent.location.href.includes("open?safe=")
2622
+ ),
2623
+ downloadUrls: {
2624
+ // We're opting not to provide a download prompt if the application is not
2625
+ // already running as a Safe App within the context of the Safe browser,
2626
+ // since it's unlikely to be a desired behavior for users.
2627
+ },
2628
+ createConnector: (walletDetails) => {
2629
+ return createConnector4((config) => ({
2630
+ ...safe()(config),
2631
+ ...walletDetails
2632
+ }));
2633
+ }
2634
+ });
2635
+
2212
2636
  // src/wallets/walletConnectors/safeheronWallet/safeheronWallet.ts
2213
2637
  var safeheronWallet = () => ({
2214
2638
  id: "safeheron",
@@ -2617,6 +3041,26 @@ var tokenPocketWallet = ({ projectId, walletConnectParameters }) => {
2617
3041
  };
2618
3042
  };
2619
3043
 
3044
+ // src/utils/browsers.ts
3045
+ function isSafari() {
3046
+ return typeof navigator !== "undefined" && typeof navigator.userAgent !== "undefined" && /Version\/([0-9._]+).*Safari/.test(navigator.userAgent);
3047
+ }
3048
+ function isArc() {
3049
+ return typeof document !== "undefined" && getComputedStyle(document.body).getPropertyValue("--arc-palette-focus") !== "";
3050
+ }
3051
+ function getBrowser() {
3052
+ if (typeof navigator === "undefined") return "Browser" /* Browser */;
3053
+ const ua = navigator.userAgent?.toLowerCase();
3054
+ if (navigator.brave?.isBrave) return "Brave" /* Brave */;
3055
+ if (ua?.indexOf("edg/") > -1) return "Edge" /* Edge */;
3056
+ if (ua?.indexOf("op") > -1) return "Opera" /* Opera */;
3057
+ if (isArc()) return "Arc" /* Arc */;
3058
+ if (ua?.indexOf("chrome") > -1) return "Chrome" /* Chrome */;
3059
+ if (ua?.indexOf("firefox") > -1) return "Firefox" /* Firefox */;
3060
+ if (isSafari()) return "Safari" /* Safari */;
3061
+ return "Browser" /* Browser */;
3062
+ }
3063
+
2620
3064
  // src/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.ts
2621
3065
  var tokenaryWallet = () => ({
2622
3066
  id: "tokenary",
@@ -2814,6 +3258,23 @@ var valoraWallet = ({ projectId, walletConnectParameters }) => ({
2814
3258
  })
2815
3259
  });
2816
3260
 
3261
+ // src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
3262
+ var walletConnectWallet = ({ projectId, options }) => {
3263
+ const getUri = (uri) => uri;
3264
+ return {
3265
+ id: "walletConnect",
3266
+ name: "WalletConnect",
3267
+ installed: void 0,
3268
+ iconUrl: async () => (await import("./walletConnectWallet-FNSU4KNU.js")).default,
3269
+ iconBackground: "#3b99fc",
3270
+ qrCode: { getUri },
3271
+ createConnector: getWalletConnectConnector({
3272
+ projectId,
3273
+ walletConnectParameters: options
3274
+ })
3275
+ };
3276
+ };
3277
+
2817
3278
  // src/wallets/walletConnectors/wigwamWallet/wigwamWallet.ts
2818
3279
  var wigwamWallet = () => {
2819
3280
  return {
@@ -3062,10 +3523,10 @@ var mydogeInstalled = false;
3062
3523
  var mydogeWallet = () => {
3063
3524
  mydogeInstalled = mydogeInstalled || hasInjectedProvider({ namespace: "mydoge.ethereum" });
3064
3525
  return {
3065
- id: "mydoge",
3526
+ id: "com.mydoge",
3066
3527
  name: "Mydoge",
3067
3528
  // rdns: "com.mydoge",
3068
- iconUrl: async () => (await import("./mydogeWallet-H2O7JJMN.js")).default,
3529
+ iconUrl: async () => (await import("./mydogeWallet-DW2L75P4.js")).default,
3069
3530
  iconBackground: "#fff",
3070
3531
  installed: mydogeInstalled,
3071
3532
  downloadUrls: {
@@ -3074,7 +3535,13 @@ var mydogeWallet = () => {
3074
3535
  createConnector: getInjectedConnector({ namespace: "mydoge.ethereum" })
3075
3536
  };
3076
3537
  };
3538
+
3077
3539
  export {
3540
+ isSafari,
3541
+ getBrowser,
3542
+ isIOS,
3543
+ isMobile,
3544
+ getWalletConnectConnector,
3078
3545
  argentWallet,
3079
3546
  berasigWallet,
3080
3547
  bestWallet,
@@ -3109,7 +3576,6 @@ export {
3109
3576
  magicEdenWallet,
3110
3577
  metaMaskWallet,
3111
3578
  mewWallet,
3112
- mydogeWallet,
3113
3579
  nestWallet,
3114
3580
  oktoWallet,
3115
3581
  okxWallet,
@@ -3138,5 +3604,6 @@ export {
3138
3604
  wigwamWallet,
3139
3605
  xdefiWallet,
3140
3606
  zealWallet,
3141
- zerionWallet
3607
+ zerionWallet,
3608
+ mydogeWallet
3142
3609
  };
@@ -1,4 +1,6 @@
1
+ import "@tomo-inc/token-list/dist/style.css";
1
2
  import React from "react";
3
+ import "./AccountModal.css";
2
4
  export interface AccountModalProps {
3
5
  open: boolean;
4
6
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AccountModal.d.ts","sourceRoot":"","sources":["../../../src/components/AccountModal/AccountModal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAgB7F,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAUD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,iBAAiB,4BA8QhE"}
1
+ {"version":3,"file":"AccountModal.d.ts","sourceRoot":"","sources":["../../../src/components/AccountModal/AccountModal.tsx"],"names":[],"mappings":"AAKA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,KAAwE,MAAM,OAAO,CAAC;AAiB7F,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAUD,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,iBAAiB,4BA4RhE"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const ActionModal: React.ForwardRefExoticComponent<{
4
+ opened: boolean;
5
+ setOpened: (opened: boolean) => void;
6
+ showSetting: boolean;
7
+ } & React.RefAttributes<unknown>>;
8
+ export default ActionModal;
9
+ //# sourceMappingURL=ActionModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionModal.d.ts","sourceRoot":"","sources":["../../../src/components/ActionModal/ActionModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAG/F,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,WAAW;YAML,OAAO;eACJ,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI;iBACvB,OAAO;iCA4DtB,CAAC;AAEH,eAAe,WAAW,CAAC"}