@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.
- package/dist/AzeretTRIALVF-BSJZFQYZ.ttf +0 -0
- package/dist/HafferTRIALRegular-W47O3WWZ.ttf +0 -0
- package/dist/HafferTrialMedium-OFFQV4LA.ttf +0 -0
- package/dist/HafferTrialSemiBold-BT324UAA.ttf +0 -0
- package/dist/{chunk-PLDENDHT.js → chunk-4W226UPS.js} +1 -1
- package/dist/{chunk-EC53OL4T.js → chunk-ADRE6DLX.js} +1 -1
- package/dist/{chunk-QOI66L3H.js → chunk-C5Q6FMMU.js} +25 -3
- package/dist/{chunk-6QDJ3EKF.js → chunk-QVWJRUFG.js} +25 -3
- package/dist/{walletConnectors-ZBKYSCH5.js → chunk-ZUNVBVVT.js} +485 -18
- package/dist/components/AccountModal/AccountModal.d.ts +2 -0
- package/dist/components/AccountModal/AccountModal.d.ts.map +1 -1
- package/dist/components/ActionModal/ActionModal.d.ts +9 -0
- package/dist/components/ActionModal/ActionModal.d.ts.map +1 -0
- package/dist/components/Box/Box.d.ts +12 -12
- package/dist/components/CloseIcon/index.d.ts +0 -1
- package/dist/components/CloseIcon/index.d.ts.map +1 -1
- package/dist/components/ConnectComp/Connect.d.ts.map +1 -1
- package/dist/components/ConnectComp/ContinueButton.d.ts.map +1 -1
- package/dist/components/ConnectComp/EmailInput.d.ts.map +1 -1
- package/dist/components/ConnectComp/Form.d.ts.map +1 -1
- package/dist/components/ConnectComp/HeaderWalletSelector.d.ts.map +1 -1
- package/dist/components/ConnectComp/SocialLogin.d.ts.map +1 -1
- package/dist/components/ConnectComp/WalletItem.d.ts.map +1 -1
- package/dist/components/ConnectModal/TomoConnectModal.d.ts.map +1 -1
- package/dist/components/ConnectOptions/ConnectDetails.d.ts.map +1 -1
- package/dist/components/FaucetModal/ClaimedButton.d.ts.map +1 -1
- package/dist/components/FaucetModal/FaucetModal.d.ts +2 -2
- package/dist/components/FaucetModal/FaucetModal.d.ts.map +1 -1
- package/dist/components/RainbowKitProvider/AccountContext.d.ts +3 -2
- package/dist/components/RainbowKitProvider/AccountContext.d.ts.map +1 -1
- package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/useNetworkOptions/index.d.ts +1 -1
- package/dist/components/useNetworkOptions/index.d.ts.map +1 -1
- package/dist/config/getDefaultConfig.d.ts +2 -0
- 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 +54 -12
- package/dist/css/sprinkles.css.d.ts.map +1 -1
- package/dist/hooks/useDogeOSBalance.d.ts +38 -37
- package/dist/hooks/useDogeOSBalance.d.ts.map +1 -1
- package/dist/index.css +911 -225
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1368 -1209
- package/dist/mydogeWallet-DW2L75P4.js +7 -0
- package/dist/onboard/pseudoOnboardState.d.ts.map +1 -1
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.d.ts.map +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.d.ts.map +1 -1
- package/dist/themes/lightTheme.js +2 -2
- package/dist/themes/midnightTheme.js +2 -2
- package/dist/types/utils.d.ts +5 -0
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/utils/loadScript.d.ts +2 -0
- package/dist/utils/loadScript.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 +27 -27
- package/dist/wallets/walletConnectors/mydogeWallet/mydogeWallet.js +1 -1
- package/dist/wallets/walletConnectors/mydogeWallet-DW2L75P4.js +7 -0
- package/package.json +4 -8
- package/dist/chunk-JLFKE47Q.js +0 -494
- package/dist/mydogeWallet-H2O7JJMN.js +0 -7
- package/dist/wallets/walletConnectors/mydogeWallet-H2O7JJMN.js +0 -7
package/dist/chunk-JLFKE47Q.js
DELETED
|
@@ -1,494 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/utils/browsers.ts
|
|
4
|
-
function isSafari() {
|
|
5
|
-
return typeof navigator !== "undefined" && typeof navigator.userAgent !== "undefined" && /Version\/([0-9._]+).*Safari/.test(navigator.userAgent);
|
|
6
|
-
}
|
|
7
|
-
function isArc() {
|
|
8
|
-
return typeof document !== "undefined" && getComputedStyle(document.body).getPropertyValue("--arc-palette-focus") !== "";
|
|
9
|
-
}
|
|
10
|
-
function getBrowser() {
|
|
11
|
-
if (typeof navigator === "undefined") return "Browser" /* Browser */;
|
|
12
|
-
const ua = navigator.userAgent?.toLowerCase();
|
|
13
|
-
if (navigator.brave?.isBrave) return "Brave" /* Brave */;
|
|
14
|
-
if (ua?.indexOf("edg/") > -1) return "Edge" /* Edge */;
|
|
15
|
-
if (ua?.indexOf("op") > -1) return "Opera" /* Opera */;
|
|
16
|
-
if (isArc()) return "Arc" /* Arc */;
|
|
17
|
-
if (ua?.indexOf("chrome") > -1) return "Chrome" /* Chrome */;
|
|
18
|
-
if (ua?.indexOf("firefox") > -1) return "Firefox" /* Firefox */;
|
|
19
|
-
if (isSafari()) return "Safari" /* Safari */;
|
|
20
|
-
return "Browser" /* Browser */;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// src/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.ts
|
|
24
|
-
import { createConnector } from "wagmi";
|
|
25
|
-
import { coinbaseWallet as coinbaseConnector } from "wagmi/connectors";
|
|
26
|
-
|
|
27
|
-
// src/utils/isMobile.ts
|
|
28
|
-
function isAndroid() {
|
|
29
|
-
return typeof navigator !== "undefined" && /android/i.test(navigator.userAgent);
|
|
30
|
-
}
|
|
31
|
-
function isSmallIOS() {
|
|
32
|
-
return typeof navigator !== "undefined" && /iPhone|iPod/.test(navigator.userAgent);
|
|
33
|
-
}
|
|
34
|
-
function isLargeIOS() {
|
|
35
|
-
return typeof navigator !== "undefined" && (/iPad/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
|
|
36
|
-
}
|
|
37
|
-
function isIOS() {
|
|
38
|
-
return isSmallIOS() || isLargeIOS();
|
|
39
|
-
}
|
|
40
|
-
function isMobile() {
|
|
41
|
-
return isAndroid() || isIOS();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// src/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.ts
|
|
45
|
-
var coinbaseWallet = ({ appName, appIcon }) => {
|
|
46
|
-
const getUri = (uri) => uri;
|
|
47
|
-
const ios = isIOS();
|
|
48
|
-
return {
|
|
49
|
-
id: "coinbase",
|
|
50
|
-
name: "Coinbase Wallet",
|
|
51
|
-
shortName: "Coinbase",
|
|
52
|
-
rdns: "com.coinbase.wallet",
|
|
53
|
-
iconUrl: async () => (await import("./coinbaseWallet-WWX6LF36.js")).default,
|
|
54
|
-
iconAccent: "#2c5ff6",
|
|
55
|
-
iconBackground: "#2c5ff6",
|
|
56
|
-
// If the coinbase wallet browser extension is not installed, a popup will appear
|
|
57
|
-
// prompting the user to connect or create a wallet via passkey. This means if you either have
|
|
58
|
-
// or don't have the coinbase wallet browser extension installed it'll do some action anyways
|
|
59
|
-
installed: true,
|
|
60
|
-
downloadUrls: {
|
|
61
|
-
android: "https://play.google.com/store/apps/details?id=org.toshi",
|
|
62
|
-
ios: "https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",
|
|
63
|
-
mobile: "https://coinbase.com/wallet/downloads",
|
|
64
|
-
qrCode: "https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",
|
|
65
|
-
chrome: "https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",
|
|
66
|
-
browserExtension: "https://coinbase.com/wallet"
|
|
67
|
-
},
|
|
68
|
-
...ios ? {} : {
|
|
69
|
-
qrCode: {
|
|
70
|
-
getUri,
|
|
71
|
-
instructions: {
|
|
72
|
-
learnMoreUrl: "https://coinbase.com/wallet/articles/getting-started-mobile",
|
|
73
|
-
steps: [
|
|
74
|
-
{
|
|
75
|
-
description: "wallet_connectors.coinbase.qr_code.step1.description",
|
|
76
|
-
step: "install",
|
|
77
|
-
title: "wallet_connectors.coinbase.qr_code.step1.title"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "wallet_connectors.coinbase.qr_code.step2.description",
|
|
81
|
-
step: "create",
|
|
82
|
-
title: "wallet_connectors.coinbase.qr_code.step2.title"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
description: "wallet_connectors.coinbase.qr_code.step3.description",
|
|
86
|
-
step: "scan",
|
|
87
|
-
title: "wallet_connectors.coinbase.qr_code.step3.title"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
extension: {
|
|
93
|
-
instructions: {
|
|
94
|
-
learnMoreUrl: "https://coinbase.com/wallet/articles/getting-started-extension",
|
|
95
|
-
steps: [
|
|
96
|
-
{
|
|
97
|
-
description: "wallet_connectors.coinbase.extension.step1.description",
|
|
98
|
-
step: "install",
|
|
99
|
-
title: "wallet_connectors.coinbase.extension.step1.title"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
description: "wallet_connectors.coinbase.extension.step2.description",
|
|
103
|
-
step: "create",
|
|
104
|
-
title: "wallet_connectors.coinbase.extension.step2.title"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
description: "wallet_connectors.coinbase.extension.step3.description",
|
|
108
|
-
step: "refresh",
|
|
109
|
-
title: "wallet_connectors.coinbase.extension.step3.title"
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
createConnector: (walletDetails) => {
|
|
116
|
-
const connector = coinbaseConnector({
|
|
117
|
-
appName,
|
|
118
|
-
appLogoUrl: appIcon,
|
|
119
|
-
preference: coinbaseWallet.preference
|
|
120
|
-
});
|
|
121
|
-
return createConnector((config) => ({
|
|
122
|
-
...connector(config),
|
|
123
|
-
...walletDetails
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// src/wallets/getWalletConnectConnector.ts
|
|
130
|
-
import { createConnector as createConnector2 } from "wagmi";
|
|
131
|
-
import { walletConnect } from "wagmi/connectors";
|
|
132
|
-
var walletConnectInstances = /* @__PURE__ */ new Map();
|
|
133
|
-
var getOrCreateWalletConnectInstance = ({
|
|
134
|
-
projectId,
|
|
135
|
-
walletConnectParameters,
|
|
136
|
-
rkDetailsShowQrModal
|
|
137
|
-
}) => {
|
|
138
|
-
let config = {
|
|
139
|
-
...walletConnectParameters ? walletConnectParameters : {},
|
|
140
|
-
projectId,
|
|
141
|
-
showQrModal: false
|
|
142
|
-
// Required. Otherwise WalletConnect modal (Web3Modal) will popup during time of connection for a wallet
|
|
143
|
-
};
|
|
144
|
-
if (rkDetailsShowQrModal) {
|
|
145
|
-
config = { ...config, showQrModal: true };
|
|
146
|
-
}
|
|
147
|
-
const serializedConfig = JSON.stringify(config);
|
|
148
|
-
const sharedWalletConnector = walletConnectInstances.get(serializedConfig);
|
|
149
|
-
if (sharedWalletConnector) {
|
|
150
|
-
return sharedWalletConnector;
|
|
151
|
-
}
|
|
152
|
-
const newWalletConnectInstance = walletConnect(config);
|
|
153
|
-
walletConnectInstances.set(serializedConfig, newWalletConnectInstance);
|
|
154
|
-
return newWalletConnectInstance;
|
|
155
|
-
};
|
|
156
|
-
function createWalletConnectConnector({
|
|
157
|
-
projectId,
|
|
158
|
-
walletDetails,
|
|
159
|
-
walletConnectParameters
|
|
160
|
-
}) {
|
|
161
|
-
return createConnector2((config) => ({
|
|
162
|
-
...getOrCreateWalletConnectInstance({
|
|
163
|
-
projectId,
|
|
164
|
-
walletConnectParameters,
|
|
165
|
-
// Used in `connectorsForWallets` to add another
|
|
166
|
-
// walletConnect wallet into rainbowkit with modal popup option
|
|
167
|
-
rkDetailsShowQrModal: walletDetails.rkDetails.showQrModal
|
|
168
|
-
})(config),
|
|
169
|
-
...walletDetails
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
172
|
-
function getWalletConnectConnector({
|
|
173
|
-
projectId,
|
|
174
|
-
walletConnectParameters
|
|
175
|
-
}) {
|
|
176
|
-
const exampleProjectId = "21fef48091f12692cad574a6f7753643";
|
|
177
|
-
if (!projectId || projectId === "") {
|
|
178
|
-
throw new Error(
|
|
179
|
-
"No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure"
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
if (projectId === "YOUR_PROJECT_ID") {
|
|
183
|
-
projectId = exampleProjectId;
|
|
184
|
-
}
|
|
185
|
-
return (walletDetails) => createWalletConnectConnector({
|
|
186
|
-
projectId,
|
|
187
|
-
walletDetails,
|
|
188
|
-
walletConnectParameters
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// src/wallets/getInjectedConnector.ts
|
|
193
|
-
import { createConnector as createConnector3 } from "wagmi";
|
|
194
|
-
import { injected } from "wagmi/connectors";
|
|
195
|
-
function getExplicitInjectedProvider(flag) {
|
|
196
|
-
const _window = typeof window !== "undefined" ? window : void 0;
|
|
197
|
-
if (typeof _window === "undefined" || typeof _window.ethereum === "undefined") return;
|
|
198
|
-
const providers = _window.ethereum.providers;
|
|
199
|
-
return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
|
|
200
|
-
}
|
|
201
|
-
function getWindowProviderNamespace(namespace) {
|
|
202
|
-
const providerSearch = (provider, namespace2) => {
|
|
203
|
-
const [property, ...path] = namespace2.split(".");
|
|
204
|
-
const _provider = provider[property];
|
|
205
|
-
if (_provider) {
|
|
206
|
-
if (path.length === 0) return _provider;
|
|
207
|
-
return providerSearch(_provider, path.join("."));
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
if (typeof window !== "undefined") return providerSearch(window, namespace);
|
|
211
|
-
}
|
|
212
|
-
function hasInjectedProvider({ flag, namespace }) {
|
|
213
|
-
if (namespace && typeof getWindowProviderNamespace(namespace) !== "undefined") return true;
|
|
214
|
-
if (flag && typeof getExplicitInjectedProvider(flag) !== "undefined") return true;
|
|
215
|
-
return false;
|
|
216
|
-
}
|
|
217
|
-
function getInjectedProvider({ flag, namespace }) {
|
|
218
|
-
const _window = typeof window !== "undefined" ? window : void 0;
|
|
219
|
-
if (typeof _window === "undefined") return;
|
|
220
|
-
if (namespace) {
|
|
221
|
-
const windowProvider = getWindowProviderNamespace(namespace);
|
|
222
|
-
if (windowProvider) return windowProvider;
|
|
223
|
-
}
|
|
224
|
-
const providers = _window.ethereum?.providers;
|
|
225
|
-
if (flag) {
|
|
226
|
-
const provider = getExplicitInjectedProvider(flag);
|
|
227
|
-
if (provider) return provider;
|
|
228
|
-
}
|
|
229
|
-
if (typeof providers !== "undefined" && providers.length > 0) return providers[0];
|
|
230
|
-
return _window.ethereum;
|
|
231
|
-
}
|
|
232
|
-
function createInjectedConnector(provider) {
|
|
233
|
-
return (walletDetails) => {
|
|
234
|
-
const injectedConfig = provider ? {
|
|
235
|
-
target: () => ({
|
|
236
|
-
id: walletDetails.rkDetails.id,
|
|
237
|
-
name: walletDetails.rkDetails.name,
|
|
238
|
-
provider
|
|
239
|
-
})
|
|
240
|
-
} : {};
|
|
241
|
-
return createConnector3((config) => ({
|
|
242
|
-
// Spread the injectedConfig object, which may be empty or contain the target function
|
|
243
|
-
...injected(injectedConfig)(config),
|
|
244
|
-
...walletDetails
|
|
245
|
-
}));
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
function getInjectedConnector({
|
|
249
|
-
flag,
|
|
250
|
-
namespace,
|
|
251
|
-
target
|
|
252
|
-
}) {
|
|
253
|
-
const provider = target ? target : getInjectedProvider({ flag, namespace });
|
|
254
|
-
return createInjectedConnector(provider);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
258
|
-
function isMetaMask(ethereum) {
|
|
259
|
-
if (!ethereum?.isMetaMask) return false;
|
|
260
|
-
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) return false;
|
|
261
|
-
if (ethereum.isApexWallet) return false;
|
|
262
|
-
if (ethereum.isAvalanche) return false;
|
|
263
|
-
if (ethereum.isBackpack) return false;
|
|
264
|
-
if (ethereum.isBifrost) return false;
|
|
265
|
-
if (ethereum.isBitKeep) return false;
|
|
266
|
-
if (ethereum.isBitski) return false;
|
|
267
|
-
if (ethereum.isBlockWallet) return false;
|
|
268
|
-
if (ethereum.isCoinbaseWallet) return false;
|
|
269
|
-
if (ethereum.isDawn) return false;
|
|
270
|
-
if (ethereum.isEnkrypt) return false;
|
|
271
|
-
if (ethereum.isExodus) return false;
|
|
272
|
-
if (ethereum.isFrame) return false;
|
|
273
|
-
if (ethereum.isFrontier) return false;
|
|
274
|
-
if (ethereum.isGamestop) return false;
|
|
275
|
-
if (ethereum.isHyperPay) return false;
|
|
276
|
-
if (ethereum.isImToken) return false;
|
|
277
|
-
if (ethereum.isKuCoinWallet) return false;
|
|
278
|
-
if (ethereum.isMathWallet) return false;
|
|
279
|
-
if (ethereum.isNestWallet) return false;
|
|
280
|
-
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
281
|
-
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) return false;
|
|
282
|
-
if (ethereum.isOpera) return false;
|
|
283
|
-
if (ethereum.isPhantom) return false;
|
|
284
|
-
if (ethereum.isPortal) return false;
|
|
285
|
-
if (ethereum.isRabby) return false;
|
|
286
|
-
if (ethereum.isRainbow) return false;
|
|
287
|
-
if (ethereum.isStatus) return false;
|
|
288
|
-
if (ethereum.isTalisman) return false;
|
|
289
|
-
if (ethereum.isTally) return false;
|
|
290
|
-
if (ethereum.isTokenPocket) return false;
|
|
291
|
-
if (ethereum.isTokenary) return false;
|
|
292
|
-
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
293
|
-
if (ethereum.isXDEFI) return false;
|
|
294
|
-
if (ethereum.isZeal) return false;
|
|
295
|
-
if (ethereum.isZerion) return false;
|
|
296
|
-
if (ethereum.__seif) return false;
|
|
297
|
-
return true;
|
|
298
|
-
}
|
|
299
|
-
var metaMaskWallet = ({ projectId, walletConnectParameters }) => {
|
|
300
|
-
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
301
|
-
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
302
|
-
const getUri = (uri) => {
|
|
303
|
-
return isAndroid() ? uri : isIOS() ? (
|
|
304
|
-
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
305
|
-
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
306
|
-
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
307
|
-
};
|
|
308
|
-
return {
|
|
309
|
-
id: "metaMask",
|
|
310
|
-
name: "MetaMask",
|
|
311
|
-
rdns: "io.metamask",
|
|
312
|
-
iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
|
|
313
|
-
iconAccent: "#f6851a",
|
|
314
|
-
iconBackground: "#fff",
|
|
315
|
-
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
316
|
-
downloadUrls: {
|
|
317
|
-
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
318
|
-
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
319
|
-
mobile: "https://metamask.io/download",
|
|
320
|
-
qrCode: "https://metamask.io/download",
|
|
321
|
-
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
322
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
323
|
-
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
324
|
-
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
325
|
-
browserExtension: "https://metamask.io/download"
|
|
326
|
-
},
|
|
327
|
-
mobile: {
|
|
328
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
329
|
-
},
|
|
330
|
-
qrCode: shouldUseWalletConnect ? {
|
|
331
|
-
getUri,
|
|
332
|
-
instructions: {
|
|
333
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
334
|
-
steps: [
|
|
335
|
-
{
|
|
336
|
-
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
337
|
-
step: "install",
|
|
338
|
-
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
342
|
-
step: "create",
|
|
343
|
-
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
347
|
-
step: "refresh",
|
|
348
|
-
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
}
|
|
352
|
-
} : void 0,
|
|
353
|
-
extension: {
|
|
354
|
-
instructions: {
|
|
355
|
-
learnMoreUrl: "https://metamask.io/faqs/",
|
|
356
|
-
steps: [
|
|
357
|
-
{
|
|
358
|
-
description: "wallet_connectors.metamask.extension.step1.description",
|
|
359
|
-
step: "install",
|
|
360
|
-
title: "wallet_connectors.metamask.extension.step1.title"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
description: "wallet_connectors.metamask.extension.step2.description",
|
|
364
|
-
step: "create",
|
|
365
|
-
title: "wallet_connectors.metamask.extension.step2.title"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
description: "wallet_connectors.metamask.extension.step3.description",
|
|
369
|
-
step: "refresh",
|
|
370
|
-
title: "wallet_connectors.metamask.extension.step3.title"
|
|
371
|
-
}
|
|
372
|
-
]
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
376
|
-
projectId,
|
|
377
|
-
walletConnectParameters
|
|
378
|
-
}) : getInjectedConnector({
|
|
379
|
-
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(isMetaMask) ?? window.ethereum : void 0
|
|
380
|
-
})
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
385
|
-
var rainbowWallet = ({ projectId, walletConnectParameters }) => {
|
|
386
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
387
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
388
|
-
const getUri = (uri) => {
|
|
389
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`;
|
|
390
|
-
};
|
|
391
|
-
return {
|
|
392
|
-
id: "rainbow",
|
|
393
|
-
name: "Rainbow",
|
|
394
|
-
rdns: "me.rainbow",
|
|
395
|
-
iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
|
|
396
|
-
iconBackground: "#0c2f78",
|
|
397
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
398
|
-
downloadUrls: {
|
|
399
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
400
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
401
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
402
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
403
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
404
|
-
},
|
|
405
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
406
|
-
qrCode: shouldUseWalletConnect ? {
|
|
407
|
-
getUri,
|
|
408
|
-
instructions: {
|
|
409
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
410
|
-
steps: [
|
|
411
|
-
{
|
|
412
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
413
|
-
step: "install",
|
|
414
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
418
|
-
step: "create",
|
|
419
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
423
|
-
step: "scan",
|
|
424
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
425
|
-
}
|
|
426
|
-
]
|
|
427
|
-
}
|
|
428
|
-
} : void 0,
|
|
429
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
430
|
-
projectId,
|
|
431
|
-
walletConnectParameters
|
|
432
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
// src/wallets/walletConnectors/safeWallet/safeWallet.ts
|
|
437
|
-
import { createConnector as createConnector4 } from "wagmi";
|
|
438
|
-
import { safe } from "wagmi/connectors";
|
|
439
|
-
var safeWallet = () => ({
|
|
440
|
-
id: "safe",
|
|
441
|
-
name: "Safe",
|
|
442
|
-
iconAccent: "#12ff80",
|
|
443
|
-
iconBackground: "#fff",
|
|
444
|
-
iconUrl: async () => (await import("./safeWallet-VUYZPLY4.js")).default,
|
|
445
|
-
installed: (
|
|
446
|
-
// Only allowed in iframe context
|
|
447
|
-
// borrowed from wagmi safe connector
|
|
448
|
-
!(typeof window === "undefined") && window?.parent !== window && window?.parent.location.href.includes("open?safe=")
|
|
449
|
-
),
|
|
450
|
-
downloadUrls: {
|
|
451
|
-
// We're opting not to provide a download prompt if the application is not
|
|
452
|
-
// already running as a Safe App within the context of the Safe browser,
|
|
453
|
-
// since it's unlikely to be a desired behavior for users.
|
|
454
|
-
},
|
|
455
|
-
createConnector: (walletDetails) => {
|
|
456
|
-
return createConnector4((config) => ({
|
|
457
|
-
...safe()(config),
|
|
458
|
-
...walletDetails
|
|
459
|
-
}));
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
// src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
|
|
464
|
-
var walletConnectWallet = ({ projectId, options }) => {
|
|
465
|
-
const getUri = (uri) => uri;
|
|
466
|
-
return {
|
|
467
|
-
id: "walletConnect",
|
|
468
|
-
name: "WalletConnect",
|
|
469
|
-
installed: void 0,
|
|
470
|
-
iconUrl: async () => (await import("./walletConnectWallet-FNSU4KNU.js")).default,
|
|
471
|
-
iconBackground: "#3b99fc",
|
|
472
|
-
qrCode: { getUri },
|
|
473
|
-
createConnector: getWalletConnectConnector({
|
|
474
|
-
projectId,
|
|
475
|
-
walletConnectParameters: options
|
|
476
|
-
})
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
export {
|
|
481
|
-
isSafari,
|
|
482
|
-
getBrowser,
|
|
483
|
-
isAndroid,
|
|
484
|
-
isIOS,
|
|
485
|
-
isMobile,
|
|
486
|
-
coinbaseWallet,
|
|
487
|
-
hasInjectedProvider,
|
|
488
|
-
getInjectedConnector,
|
|
489
|
-
getWalletConnectConnector,
|
|
490
|
-
metaMaskWallet,
|
|
491
|
-
rainbowWallet,
|
|
492
|
-
safeWallet,
|
|
493
|
-
walletConnectWallet
|
|
494
|
-
};
|