@dogeos/dogeos-sdk 1.0.4-beta.0 → 1.0.4-beta.2
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.
- package/dist/{chunk-KX7YXF2E.js → chunk-4QQWBTY6.js} +4 -1
- package/dist/{chunk-57LUK2D5.js → chunk-GTSOSA32.js} +4 -1
- package/dist/{walletConnectors-ZBKYSCH5.js → chunk-ZUNVBVVT.js} +485 -18
- package/dist/components/AccountModal/AccountModal.d.ts.map +1 -1
- package/dist/components/AllChainsAddressModal/AllChainsAddressModal.d.ts +9 -0
- package/dist/components/AllChainsAddressModal/AllChainsAddressModal.d.ts.map +1 -0
- package/dist/components/AllChainsAddressModal/EvmChainItem.d.ts +21 -0
- package/dist/components/AllChainsAddressModal/EvmChainItem.d.ts.map +1 -0
- package/dist/components/Box/Box.d.ts +12 -12
- package/dist/components/ConnectComp/EmailInput.d.ts.map +1 -1
- package/dist/components/ConnectComp/Form.d.ts.map +1 -1
- package/dist/components/ConnectComp/SocialLogin.d.ts.map +1 -1
- package/dist/components/ConnectModal/TomoConnectModal.d.ts.map +1 -1
- package/dist/components/FaucetModal/ClaimedButton.d.ts.map +1 -1
- package/dist/components/FaucetModal/FaucetModal.d.ts.map +1 -1
- package/dist/components/QRCode/QRCode.d.ts +2 -4
- package/dist/components/QRCode/QRCode.d.ts.map +1 -1
- package/dist/components/RainbowKitProvider/provideRainbowKitChains.d.ts +11 -0
- package/dist/components/RainbowKitProvider/provideRainbowKitChains.d.ts.map +1 -1
- package/dist/components/useNetworkOptions/index.d.ts +2 -2
- package/dist/components/useNetworkOptions/index.d.ts.map +1 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts.map +1 -1
- package/dist/css/reset.css.d.ts.map +1 -1
- package/dist/css/sprinkles.css.d.ts +18 -12
- package/dist/css/sprinkles.css.d.ts.map +1 -1
- package/dist/hooks/useDogeOSBalance.d.ts +48 -46
- package/dist/hooks/useDogeOSBalance.d.ts.map +1 -1
- package/dist/index.css +510 -397
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1100 -1168
- package/dist/mydogeWallet-DW2L75P4.js +7 -0
- package/dist/themes/darkTheme.d.ts.map +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts.map +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/customChains.d.ts +1597 -0
- package/dist/utils/customChains.d.ts.map +1 -0
- package/dist/utils/getAddressByChainId.d.ts +2 -0
- package/dist/utils/getAddressByChainId.d.ts.map +1 -0
- package/dist/walletConnectors-DIHHLQWV.js +133 -0
- package/dist/wallets/walletConnectors/{chunk-CAS7KD2L.js → chunk-EUCCLFNY.js} +2 -2
- package/dist/wallets/walletConnectors/index.js +14 -14
- package/dist/wallets/walletConnectors/mydogeWallet/mydogeWallet.js +1 -1
- package/dist/wallets/walletConnectors/mydogeWallet-DW2L75P4.js +7 -0
- package/package.json +7 -6
- package/dist/avalanche-MXEFEDSW.js +0 -7
- package/dist/berachain-5CWJ6ANK.js +0 -7
- package/dist/blast-TN2WIMWF.js +0 -7
- package/dist/celo-E6XU57FO.js +0 -7
- package/dist/chunk-JLFKE47Q.js +0 -494
- package/dist/cronos-ROYR77VZ.js +0 -7
- package/dist/flow-NBCRNYVF.js +0 -7
- package/dist/gnosis-T7U5EW2Q.js +0 -7
- package/dist/hardhat-NEEC6JX7.js +0 -7
- package/dist/incSepolia-S5JYGQC6.js +0 -7
- package/dist/klaytn-QTDBZIB3.js +0 -7
- package/dist/manta-5V6W5D7G.js +0 -7
- package/dist/mantle-KBL3OIYT.js +0 -7
- package/dist/mydogeWallet-H2O7JJMN.js +0 -7
- package/dist/reddio-EM5W5KAD.js +0 -7
- package/dist/ronin-PNHX5V6H.js +0 -7
- package/dist/scroll-NMZWDUQH.js +0 -7
- package/dist/story-3V2DS7IG.js +0 -7
- package/dist/wallets/walletConnectors/mydogeWallet-H2O7JJMN.js +0 -7
- package/dist/xLayerMainnet-HFA3QTJU.js +0 -7
- package/dist/xdc-X7V4QFNF.js +0 -7
- package/dist/zetachain-BMJKVYBN.js +0 -7
- package/dist/zkSync-JL26RB7U.js +0 -7
- package/dist/zora-YZH32HP3.js +0 -7
- /package/dist/{HafferTrialRegular-W47O3WWZ.ttf → HafferTRIALRegular-W47O3WWZ.ttf} +0 -0
|
@@ -56,6 +56,7 @@ var darkTheme = ({
|
|
|
56
56
|
textT3: "rgba(255, 255, 255, 0.5)",
|
|
57
57
|
textT4: "rgba(255, 255, 255, 0.4)",
|
|
58
58
|
textT5: "rgba(255, 255, 255, 0.4)",
|
|
59
|
+
textT6: "rgba(255, 255, 255, 0.6)",
|
|
59
60
|
bg1: "#121214",
|
|
60
61
|
bg2: "#121214",
|
|
61
62
|
buttonBg1: "#FED70B",
|
|
@@ -65,13 +66,15 @@ var darkTheme = ({
|
|
|
65
66
|
bgL1: "rgba(252, 237, 149, 0.1)",
|
|
66
67
|
bgL2: "rgba(255, 255, 255, 0.1)",
|
|
67
68
|
bgL3: "#2F2F2F",
|
|
69
|
+
bgL4: "rgba(255, 255, 255, 0.05)",
|
|
68
70
|
bgYellow: "rgba(252, 237, 149, 0.4)",
|
|
69
71
|
bg3: "#6e6e6e",
|
|
70
72
|
borderBg1: "rgba(255, 255, 255, 0.1)",
|
|
71
73
|
borderL2: "rgba(255, 255, 255, 0)",
|
|
72
74
|
hoverBg1: "rgba(252, 237, 149, 0.4)",
|
|
73
75
|
tagBg1: "rgba(245, 248, 255, 1)",
|
|
74
|
-
tagText1: "#1263FF"
|
|
76
|
+
tagText1: "#1263FF",
|
|
77
|
+
hoverBg2: "#FCED9566"
|
|
75
78
|
},
|
|
76
79
|
shadows: {
|
|
77
80
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -55,6 +55,7 @@ var lightTheme = ({
|
|
|
55
55
|
textT3: "rgba(30, 20, 5, 0.6)",
|
|
56
56
|
textT4: "#A6A6A6",
|
|
57
57
|
textT5: "rgba(30, 20, 5, 0.2)",
|
|
58
|
+
textT6: "#616184",
|
|
58
59
|
bg1: "#FFFFFF",
|
|
59
60
|
bg2: "#F6F7F9",
|
|
60
61
|
buttonBg1: "#FED70B",
|
|
@@ -64,13 +65,15 @@ var lightTheme = ({
|
|
|
64
65
|
bgL1: "#FFFAD9",
|
|
65
66
|
bgL2: "#FFFFFF",
|
|
66
67
|
bgL3: "#FFFFFF",
|
|
68
|
+
bgL4: "#F3F4F8",
|
|
67
69
|
bgYellow: "#FFFAD9",
|
|
68
70
|
bg3: "#F5F5FA",
|
|
69
71
|
borderBg1: "rgba(246, 247, 249, 1)",
|
|
70
72
|
borderL2: "#F6F7F9",
|
|
71
73
|
hoverBg1: "#FCED9566",
|
|
72
74
|
tagBg1: "rgba(245, 248, 255, 1)",
|
|
73
|
-
tagText1: "#6A97EE"
|
|
75
|
+
tagText1: "#6A97EE",
|
|
76
|
+
hoverBg2: "#FCED95"
|
|
74
77
|
},
|
|
75
78
|
shadows: {
|
|
76
79
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -1,18 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
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-
|
|
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 +1 @@
|
|
|
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;
|
|
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;AAgB7F,OAAO,oBAAoB,CAAC;AAI5B,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,4BAqThE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
export interface AllChainsAddressModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
userInfo: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function AllChainsAddressModal({ open, onClose, userInfo }: AllChainsAddressModalProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=AllChainsAddressModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllChainsAddressModal.d.ts","sourceRoot":"","sources":["../../../src/components/AllChainsAddressModal/AllChainsAddressModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,aAAa,CAAC;AAErB,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;CACf;AA2ED,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,0BAA0B,qBA8B5F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface EvmChainItemProps {
|
|
3
|
+
chain: {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
userInfo: any;
|
|
8
|
+
onCopy: (address: string) => void;
|
|
9
|
+
ChainItem: React.ComponentType<{
|
|
10
|
+
chain: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
logo: React.ReactNode | string;
|
|
14
|
+
};
|
|
15
|
+
address: string;
|
|
16
|
+
onCopy: (address: string) => void;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export declare const EvmChainItem: ({ chain, userInfo, onCopy, ChainItem }: EvmChainItemProps) => React.JSX.Element | null;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=EvmChainItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvmChainItem.d.ts","sourceRoot":"","sources":["../../../src/components/AllChainsAddressModal/EvmChainItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,UAAU,iBAAiB;IACzB,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;SAAE,CAAC;QACpE,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;KACnC,CAAC,CAAC;CACJ;AAED,eAAO,MAAM,YAAY,GAAI,wCAAwC,iBAAiB,6BAqBrF,CAAC"}
|