astra-modal-test 1.0.11 → 1.0.13
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/README.md +224 -122
- package/dist/nodeflow-sdk.es.js +12646 -0
- package/package.json +10 -10
- package/dist/SwapController-Ck3TYcMp.js +0 -447
- package/dist/add-BmBLHIEe.js +0 -19
- package/dist/all-wallets-H2aaJ2oP.js +0 -10
- package/dist/app-store-Bvhe1BkA.js +0 -21
- package/dist/apple-BCIKns5c.js +0 -22
- package/dist/arrow-bottom-circle-Dpcn0z0p.js +0 -15
- package/dist/arrow-bottom-i1ChNkSf.js +0 -12
- package/dist/arrow-left-Dj8tzUf6.js +0 -12
- package/dist/arrow-right-DVd3R-0K.js +0 -12
- package/dist/arrow-top-DcD5wbZL.js +0 -12
- package/dist/astra-sdk.es.js +0 -9
- package/dist/bank-CToLOTy3.js +0 -18
- package/dist/bin-D8m48Dk5.js +0 -8
- package/dist/bitcoin-y6S4LO0p.js +0 -17
- package/dist/browser-DRhVaQQT.js +0 -18
- package/dist/card-BK0q3S4W.js +0 -18
- package/dist/ccip-CH1B6Zeh.js +0 -149
- package/dist/checkmark-C7H1vH4H.js +0 -15
- package/dist/checkmark-bold-DfvIWKpu.js +0 -12
- package/dist/chevron-bottom-CcAEP6cD.js +0 -12
- package/dist/chevron-left-DMnhSBVl.js +0 -12
- package/dist/chevron-right-pPhw9ZBC.js +0 -12
- package/dist/chevron-top-DjqOCRAL.js +0 -12
- package/dist/chrome-store-B-9bRAPM.js +0 -65
- package/dist/circle-SPbxfVZq.js +0 -8
- package/dist/clock-BLAT4wv4.js +0 -12
- package/dist/close-D1AyyJzy.js +0 -12
- package/dist/clsx.m-DCYaa4RU.js +0 -20
- package/dist/coinPlaceholder-DGk1in74.js +0 -12
- package/dist/compass-C0-SVkSt.js +0 -12
- package/dist/copy-CPcvwITz.js +0 -19
- package/dist/cursor-ChlOWEcO.js +0 -7
- package/dist/cursor-transparent-BJsEpe-G.js +0 -16
- package/dist/desktop-Z8iZvVCW.js +0 -13
- package/dist/disconnect-DkPQjiLk.js +0 -12
- package/dist/discord-CwRdgvGZ.js +0 -21
- package/dist/email-DA_5xt-j.js +0 -10
- package/dist/embedded-wallet-DYnGl5tL.js +0 -464
- package/dist/ethereum-Dwse3Umc.js +0 -14
- package/dist/etherscan-CNmwyrRn.js +0 -10
- package/dist/exclamation-triangle-CU8gn-bU.js +0 -8
- package/dist/extension-rikwXWrg.js +0 -12
- package/dist/external-link-mDp8JVE0.js +0 -12
- package/dist/facebook-c0IS1D9G.js +0 -30
- package/dist/farcaster-DpvSDnGl.js +0 -16
- package/dist/filters-B42-1BLn.js +0 -12
- package/dist/github-DvjZxkXF.js +0 -22
- package/dist/google-CLHf_zAz.js +0 -22
- package/dist/help-circle-BI5xgPAz.js +0 -16
- package/dist/id-BxI79dX4.js +0 -16
- package/dist/image-Cr1qAxG-.js +0 -8
- package/dist/index-C0USsgDi.js +0 -15911
- package/dist/index-C49-8bCQ.js +0 -709
- package/dist/index-CH4T0JAz.js +0 -10785
- package/dist/index-CWAoFGd1.js +0 -315
- package/dist/index-C_3PUMa7.js +0 -70
- package/dist/index-ChxXyuZj.js +0 -572
- package/dist/index-D7jufxlk.js +0 -33
- package/dist/index-DZiQey0J.js +0 -386
- package/dist/index-DtAG8k9M.js +0 -1060
- package/dist/index-Zh6wUpmX.js +0 -74596
- package/dist/index-utoSbRla.js +0 -21034
- package/dist/info-BUp5BYav.js +0 -7
- package/dist/info-circle-D5anzkYK.js +0 -16
- package/dist/lightbulb-DmuhLv29.js +0 -7
- package/dist/mail-D2hRmmgi.js +0 -12
- package/dist/mobile-Cq-9uJHv.js +0 -13
- package/dist/more-DJMBaB2z.js +0 -15
- package/dist/network-placeholder-3ip1roR0.js +0 -18
- package/dist/nftPlaceholder-C7r74zYS.js +0 -12
- package/dist/off-CJE6Z_MK.js +0 -8
- package/dist/onramp-BMRgbt2I.js +0 -917
- package/dist/play-store-CxusWynI.js +0 -36
- package/dist/plus-Bjkqj5g6.js +0 -17
- package/dist/qr-code-4C0zboga.js +0 -10
- package/dist/receive-Cc8moHBZ.js +0 -179
- package/dist/recycle-horizontal-BdSgk84g.js +0 -13
- package/dist/refresh-BsRodAS7.js +0 -12
- package/dist/reown-logo-DOVlqCDK.js +0 -16
- package/dist/search-BIyHtky-.js +0 -12
- package/dist/secp256k1-B2Gq-iIr.js +0 -1257
- package/dist/send-9eSi58hW.js +0 -19
- package/dist/send-CBFTcYtn.js +0 -1039
- package/dist/socials-CeOJULFV.js +0 -589
- package/dist/solana-BNptwYvn.js +0 -17
- package/dist/swapHorizontal-COlgqyzt.js +0 -12
- package/dist/swapHorizontalBold-Odce2JOe.js +0 -12
- package/dist/swapHorizontalMedium-B9nkEBPD.js +0 -20
- package/dist/swapHorizontalRoundedBold-DPMzz6nz.js +0 -12
- package/dist/swapVertical-FqQP9GBP.js +0 -12
- package/dist/swaps-BG9GOayX.js +0 -1713
- package/dist/telegram-BMY9Hs9Z.js +0 -20
- package/dist/three-dots-DDKmexHU.js +0 -9
- package/dist/transactions-C_GII6kW.js +0 -35
- package/dist/twitch-x_s0neNg.js +0 -22
- package/dist/twitterIcon-CKsSxEuJ.js +0 -10
- package/dist/ui-CZH-vf5h.js +0 -812
- package/dist/user-CZfvQDJ_.js +0 -7
- package/dist/verify-Bnvbadnx.js +0 -12
- package/dist/verify-filled-CnEopkW-.js +0 -12
- package/dist/w3m-modal-DkI2TPJW.js +0 -1041
- package/dist/wallet-B3oN4n4q.js +0 -12
- package/dist/wallet-placeholder-CI0oiAcd.js +0 -18
- package/dist/walletconnect-D4vMcjqO.js +0 -36
- package/dist/warning-circle-DjI8aRBs.js +0 -16
- package/dist/x-BgRWY62H.js +0 -16
- package/dist/x-mark-Cdqd-Hm4.js +0 -7
package/dist/index-CWAoFGd1.js
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { a6 as k, a7 as y, a8 as A, a9 as x, aa as U, ab as b, ac as I, ad as S } from "./index-Zh6wUpmX.js";
|
|
2
|
-
import { ae as O } from "./index-Zh6wUpmX.js";
|
|
3
|
-
q.type = "coinbaseWallet";
|
|
4
|
-
function q(d = {}) {
|
|
5
|
-
return d.version === "3" || d.headlessMode ? N(d) : L(d);
|
|
6
|
-
}
|
|
7
|
-
function L(d) {
|
|
8
|
-
let p, l, a, r;
|
|
9
|
-
return k((o) => ({
|
|
10
|
-
id: "coinbaseWalletSDK",
|
|
11
|
-
name: "Coinbase Wallet",
|
|
12
|
-
rdns: "com.coinbase.wallet",
|
|
13
|
-
type: q.type,
|
|
14
|
-
async connect({ chainId: t, ...i } = {}) {
|
|
15
|
-
try {
|
|
16
|
-
const n = await this.getProvider(), e = (await n.request({
|
|
17
|
-
method: "eth_requestAccounts",
|
|
18
|
-
params: "instantOnboarding" in i && i.instantOnboarding ? [{ onboarding: "instant" }] : []
|
|
19
|
-
})).map((s) => y(s));
|
|
20
|
-
l || (l = this.onAccountsChanged.bind(this), n.on("accountsChanged", l)), a || (a = this.onChainChanged.bind(this), n.on("chainChanged", a)), r || (r = this.onDisconnect.bind(this), n.on("disconnect", r));
|
|
21
|
-
let c = await this.getChainId();
|
|
22
|
-
if (t && c !== t) {
|
|
23
|
-
const s = await this.switchChain({ chainId: t }).catch((f) => {
|
|
24
|
-
if (f.code === b.code)
|
|
25
|
-
throw f;
|
|
26
|
-
return { id: c };
|
|
27
|
-
});
|
|
28
|
-
c = (s == null ? void 0 : s.id) ?? c;
|
|
29
|
-
}
|
|
30
|
-
return { accounts: e, chainId: c };
|
|
31
|
-
} catch (n) {
|
|
32
|
-
throw /(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(n.message) ? new b(n) : n;
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
async disconnect() {
|
|
36
|
-
var i;
|
|
37
|
-
const t = await this.getProvider();
|
|
38
|
-
l && (t.removeListener("accountsChanged", l), l = void 0), a && (t.removeListener("chainChanged", a), a = void 0), r && (t.removeListener("disconnect", r), r = void 0), t.disconnect(), (i = t.close) == null || i.call(t);
|
|
39
|
-
},
|
|
40
|
-
async getAccounts() {
|
|
41
|
-
return (await (await this.getProvider()).request({
|
|
42
|
-
method: "eth_accounts"
|
|
43
|
-
})).map((i) => y(i));
|
|
44
|
-
},
|
|
45
|
-
async getChainId() {
|
|
46
|
-
const i = await (await this.getProvider()).request({
|
|
47
|
-
method: "eth_chainId"
|
|
48
|
-
});
|
|
49
|
-
return Number(i);
|
|
50
|
-
},
|
|
51
|
-
async getProvider() {
|
|
52
|
-
if (!p) {
|
|
53
|
-
const t = (() => {
|
|
54
|
-
var e;
|
|
55
|
-
return typeof d.preference == "string" ? { options: d.preference } : {
|
|
56
|
-
...d.preference,
|
|
57
|
-
options: ((e = d.preference) == null ? void 0 : e.options) ?? "all"
|
|
58
|
-
};
|
|
59
|
-
})(), { createCoinbaseWalletSDK: i } = await import("./index-CH4T0JAz.js");
|
|
60
|
-
p = i({
|
|
61
|
-
...d,
|
|
62
|
-
appChainIds: o.chains.map((e) => e.id),
|
|
63
|
-
preference: t
|
|
64
|
-
}).getProvider();
|
|
65
|
-
}
|
|
66
|
-
return p;
|
|
67
|
-
},
|
|
68
|
-
async isAuthorized() {
|
|
69
|
-
try {
|
|
70
|
-
return !!(await this.getAccounts()).length;
|
|
71
|
-
} catch {
|
|
72
|
-
return !1;
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
async switchChain({ addEthereumChainParameter: t, chainId: i }) {
|
|
76
|
-
var c, s, f, w;
|
|
77
|
-
const n = o.chains.find((u) => u.id === i);
|
|
78
|
-
if (!n)
|
|
79
|
-
throw new A(new x());
|
|
80
|
-
const e = await this.getProvider();
|
|
81
|
-
try {
|
|
82
|
-
return await e.request({
|
|
83
|
-
method: "wallet_switchEthereumChain",
|
|
84
|
-
params: [{ chainId: U(n.id) }]
|
|
85
|
-
}), n;
|
|
86
|
-
} catch (u) {
|
|
87
|
-
if (u.code === 4902)
|
|
88
|
-
try {
|
|
89
|
-
let h;
|
|
90
|
-
t != null && t.blockExplorerUrls ? h = t.blockExplorerUrls : h = (c = n.blockExplorers) != null && c.default.url ? [(s = n.blockExplorers) == null ? void 0 : s.default.url] : [];
|
|
91
|
-
let v;
|
|
92
|
-
(f = t == null ? void 0 : t.rpcUrls) != null && f.length ? v = t.rpcUrls : v = [((w = n.rpcUrls.default) == null ? void 0 : w.http[0]) ?? ""];
|
|
93
|
-
const g = {
|
|
94
|
-
blockExplorerUrls: h,
|
|
95
|
-
chainId: U(i),
|
|
96
|
-
chainName: (t == null ? void 0 : t.chainName) ?? n.name,
|
|
97
|
-
iconUrls: t == null ? void 0 : t.iconUrls,
|
|
98
|
-
nativeCurrency: (t == null ? void 0 : t.nativeCurrency) ?? n.nativeCurrency,
|
|
99
|
-
rpcUrls: v
|
|
100
|
-
};
|
|
101
|
-
return await e.request({
|
|
102
|
-
method: "wallet_addEthereumChain",
|
|
103
|
-
params: [g]
|
|
104
|
-
}), n;
|
|
105
|
-
} catch (h) {
|
|
106
|
-
throw new b(h);
|
|
107
|
-
}
|
|
108
|
-
throw new A(u);
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
onAccountsChanged(t) {
|
|
112
|
-
t.length === 0 ? this.onDisconnect() : o.emitter.emit("change", {
|
|
113
|
-
accounts: t.map((i) => y(i))
|
|
114
|
-
});
|
|
115
|
-
},
|
|
116
|
-
onChainChanged(t) {
|
|
117
|
-
const i = Number(t);
|
|
118
|
-
o.emitter.emit("change", { chainId: i });
|
|
119
|
-
},
|
|
120
|
-
async onDisconnect(t) {
|
|
121
|
-
o.emitter.emit("disconnect");
|
|
122
|
-
const i = await this.getProvider();
|
|
123
|
-
l && (i.removeListener("accountsChanged", l), l = void 0), a && (i.removeListener("chainChanged", a), a = void 0), r && (i.removeListener("disconnect", r), r = void 0);
|
|
124
|
-
}
|
|
125
|
-
}));
|
|
126
|
-
}
|
|
127
|
-
function N(d) {
|
|
128
|
-
let l, a, r, o, t;
|
|
129
|
-
return k((i) => ({
|
|
130
|
-
id: "coinbaseWalletSDK",
|
|
131
|
-
name: "Coinbase Wallet",
|
|
132
|
-
rdns: "com.coinbase.wallet",
|
|
133
|
-
type: q.type,
|
|
134
|
-
async connect({ chainId: n } = {}) {
|
|
135
|
-
try {
|
|
136
|
-
const e = await this.getProvider(), c = (await e.request({
|
|
137
|
-
method: "eth_requestAccounts"
|
|
138
|
-
})).map((f) => y(f));
|
|
139
|
-
r || (r = this.onAccountsChanged.bind(this), e.on("accountsChanged", r)), o || (o = this.onChainChanged.bind(this), e.on("chainChanged", o)), t || (t = this.onDisconnect.bind(this), e.on("disconnect", t));
|
|
140
|
-
let s = await this.getChainId();
|
|
141
|
-
if (n && s !== n) {
|
|
142
|
-
const f = await this.switchChain({ chainId: n }).catch((w) => {
|
|
143
|
-
if (w.code === b.code)
|
|
144
|
-
throw w;
|
|
145
|
-
return { id: s };
|
|
146
|
-
});
|
|
147
|
-
s = (f == null ? void 0 : f.id) ?? s;
|
|
148
|
-
}
|
|
149
|
-
return { accounts: c, chainId: s };
|
|
150
|
-
} catch (e) {
|
|
151
|
-
throw /(user closed modal|accounts received is empty|user denied account)/i.test(e.message) ? new b(e) : e;
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
async disconnect() {
|
|
155
|
-
const n = await this.getProvider();
|
|
156
|
-
r && (n.removeListener("accountsChanged", r), r = void 0), o && (n.removeListener("chainChanged", o), o = void 0), t && (n.removeListener("disconnect", t), t = void 0), n.disconnect(), n.close();
|
|
157
|
-
},
|
|
158
|
-
async getAccounts() {
|
|
159
|
-
return (await (await this.getProvider()).request({
|
|
160
|
-
method: "eth_accounts"
|
|
161
|
-
})).map((e) => y(e));
|
|
162
|
-
},
|
|
163
|
-
async getChainId() {
|
|
164
|
-
const e = await (await this.getProvider()).request({
|
|
165
|
-
method: "eth_chainId"
|
|
166
|
-
});
|
|
167
|
-
return Number(e);
|
|
168
|
-
},
|
|
169
|
-
async getProvider() {
|
|
170
|
-
var n;
|
|
171
|
-
if (!a) {
|
|
172
|
-
const e = await (async () => {
|
|
173
|
-
const { default: u } = await import("./index-C0USsgDi.js").then((h) => h.i);
|
|
174
|
-
return typeof u != "function" && typeof u.default == "function" ? u.default : u;
|
|
175
|
-
})();
|
|
176
|
-
l = new e({ ...d, reloadOnDisconnect: !1 });
|
|
177
|
-
const c = (n = l.walletExtension) == null ? void 0 : n.getChainId(), s = i.chains.find((u) => d.chainId ? u.id === d.chainId : u.id === c) || i.chains[0], f = d.chainId || (s == null ? void 0 : s.id), w = d.jsonRpcUrl || (s == null ? void 0 : s.rpcUrls.default.http[0]);
|
|
178
|
-
a = l.makeWeb3Provider(w, f);
|
|
179
|
-
}
|
|
180
|
-
return a;
|
|
181
|
-
},
|
|
182
|
-
async isAuthorized() {
|
|
183
|
-
try {
|
|
184
|
-
return !!(await this.getAccounts()).length;
|
|
185
|
-
} catch {
|
|
186
|
-
return !1;
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
async switchChain({ addEthereumChainParameter: n, chainId: e }) {
|
|
190
|
-
var f, w, u, h;
|
|
191
|
-
const c = i.chains.find((v) => v.id === e);
|
|
192
|
-
if (!c)
|
|
193
|
-
throw new A(new x());
|
|
194
|
-
const s = await this.getProvider();
|
|
195
|
-
try {
|
|
196
|
-
return await s.request({
|
|
197
|
-
method: "wallet_switchEthereumChain",
|
|
198
|
-
params: [{ chainId: U(c.id) }]
|
|
199
|
-
}), c;
|
|
200
|
-
} catch (v) {
|
|
201
|
-
if (v.code === 4902)
|
|
202
|
-
try {
|
|
203
|
-
let g;
|
|
204
|
-
n != null && n.blockExplorerUrls ? g = n.blockExplorerUrls : g = (f = c.blockExplorers) != null && f.default.url ? [(w = c.blockExplorers) == null ? void 0 : w.default.url] : [];
|
|
205
|
-
let D;
|
|
206
|
-
(u = n == null ? void 0 : n.rpcUrls) != null && u.length ? D = n.rpcUrls : D = [((h = c.rpcUrls.default) == null ? void 0 : h.http[0]) ?? ""];
|
|
207
|
-
const _ = {
|
|
208
|
-
blockExplorerUrls: g,
|
|
209
|
-
chainId: U(e),
|
|
210
|
-
chainName: (n == null ? void 0 : n.chainName) ?? c.name,
|
|
211
|
-
iconUrls: n == null ? void 0 : n.iconUrls,
|
|
212
|
-
nativeCurrency: (n == null ? void 0 : n.nativeCurrency) ?? c.nativeCurrency,
|
|
213
|
-
rpcUrls: D
|
|
214
|
-
};
|
|
215
|
-
return await s.request({
|
|
216
|
-
method: "wallet_addEthereumChain",
|
|
217
|
-
params: [_]
|
|
218
|
-
}), c;
|
|
219
|
-
} catch (g) {
|
|
220
|
-
throw new b(g);
|
|
221
|
-
}
|
|
222
|
-
throw new A(v);
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
onAccountsChanged(n) {
|
|
226
|
-
n.length === 0 ? this.onDisconnect() : i.emitter.emit("change", {
|
|
227
|
-
accounts: n.map((e) => y(e))
|
|
228
|
-
});
|
|
229
|
-
},
|
|
230
|
-
onChainChanged(n) {
|
|
231
|
-
const e = Number(n);
|
|
232
|
-
i.emitter.emit("change", { chainId: e });
|
|
233
|
-
},
|
|
234
|
-
async onDisconnect(n) {
|
|
235
|
-
i.emitter.emit("disconnect");
|
|
236
|
-
const e = await this.getProvider();
|
|
237
|
-
r && (e.removeListener("accountsChanged", r), r = void 0), o && (e.removeListener("chainChanged", o), o = void 0), t && (e.removeListener("disconnect", t), t = void 0);
|
|
238
|
-
}
|
|
239
|
-
}));
|
|
240
|
-
}
|
|
241
|
-
C.type = "safe";
|
|
242
|
-
function C(d = {}) {
|
|
243
|
-
const { shimDisconnect: p = !1 } = d;
|
|
244
|
-
let l, a;
|
|
245
|
-
return k((r) => ({
|
|
246
|
-
id: "safe",
|
|
247
|
-
name: "Safe",
|
|
248
|
-
type: C.type,
|
|
249
|
-
async connect() {
|
|
250
|
-
var n;
|
|
251
|
-
const o = await this.getProvider();
|
|
252
|
-
if (!o)
|
|
253
|
-
throw new I();
|
|
254
|
-
const t = await this.getAccounts(), i = await this.getChainId();
|
|
255
|
-
return a || (a = this.onDisconnect.bind(this), o.on("disconnect", a)), p && await ((n = r.storage) == null ? void 0 : n.removeItem("safe.disconnected")), { accounts: t, chainId: i };
|
|
256
|
-
},
|
|
257
|
-
async disconnect() {
|
|
258
|
-
var t;
|
|
259
|
-
const o = await this.getProvider();
|
|
260
|
-
if (!o)
|
|
261
|
-
throw new I();
|
|
262
|
-
a && (o.removeListener("disconnect", a), a = void 0), p && await ((t = r.storage) == null ? void 0 : t.setItem("safe.disconnected", !0));
|
|
263
|
-
},
|
|
264
|
-
async getAccounts() {
|
|
265
|
-
const o = await this.getProvider();
|
|
266
|
-
if (!o)
|
|
267
|
-
throw new I();
|
|
268
|
-
return (await o.request({ method: "eth_accounts" })).map(y);
|
|
269
|
-
},
|
|
270
|
-
async getProvider() {
|
|
271
|
-
if (typeof window < "u" && (window == null ? void 0 : window.parent) !== window) {
|
|
272
|
-
if (!l) {
|
|
273
|
-
const { default: t } = await import("./index-DZiQey0J.js"), i = new t(d), n = await S(() => i.safe.getInfo(), {
|
|
274
|
-
timeout: d.unstable_getInfoTimeout ?? 10
|
|
275
|
-
});
|
|
276
|
-
if (!n)
|
|
277
|
-
throw new Error("Could not load Safe information");
|
|
278
|
-
const e = await (async () => {
|
|
279
|
-
const c = await import("./index-utoSbRla.js").then((s) => s.i);
|
|
280
|
-
return typeof c.SafeAppProvider != "function" && typeof c.default.SafeAppProvider == "function" ? c.default.SafeAppProvider : c.SafeAppProvider;
|
|
281
|
-
})();
|
|
282
|
-
l = new e(n, i);
|
|
283
|
-
}
|
|
284
|
-
return l;
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
async getChainId() {
|
|
288
|
-
const o = await this.getProvider();
|
|
289
|
-
if (!o)
|
|
290
|
-
throw new I();
|
|
291
|
-
return Number(o.chainId);
|
|
292
|
-
},
|
|
293
|
-
async isAuthorized() {
|
|
294
|
-
var o;
|
|
295
|
-
try {
|
|
296
|
-
return p && // If shim exists in storage, connector is disconnected
|
|
297
|
-
await ((o = r.storage) == null ? void 0 : o.getItem("safe.disconnected")) ? !1 : !!(await this.getAccounts()).length;
|
|
298
|
-
} catch {
|
|
299
|
-
return !1;
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
onAccountsChanged() {
|
|
303
|
-
},
|
|
304
|
-
onChainChanged() {
|
|
305
|
-
},
|
|
306
|
-
onDisconnect() {
|
|
307
|
-
r.emitter.emit("disconnect");
|
|
308
|
-
}
|
|
309
|
-
}));
|
|
310
|
-
}
|
|
311
|
-
export {
|
|
312
|
-
q as coinbaseWallet,
|
|
313
|
-
O as injected,
|
|
314
|
-
C as safe
|
|
315
|
-
};
|
package/dist/index-C_3PUMa7.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { E as g, F as c, G as h, H as p, I as x, J as w, K as u } from "./index-Zh6wUpmX.js";
|
|
2
|
-
const m = g`
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host > button,
|
|
8
|
-
:host > wui-flex {
|
|
9
|
-
gap: var(--wui-spacing-xxs);
|
|
10
|
-
padding: var(--wui-spacing-xs);
|
|
11
|
-
padding-right: var(--wui-spacing-1xs);
|
|
12
|
-
height: 40px;
|
|
13
|
-
border-radius: var(--wui-border-radius-l);
|
|
14
|
-
background: var(--wui-color-gray-glass-002);
|
|
15
|
-
border-width: 0px;
|
|
16
|
-
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host > button wui-image {
|
|
20
|
-
width: 24px;
|
|
21
|
-
height: 24px;
|
|
22
|
-
border-radius: var(--wui-border-radius-s);
|
|
23
|
-
box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
var l = function(o, t, r, s) {
|
|
27
|
-
var a = arguments.length, e = a < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, r) : s, n;
|
|
28
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, r, s);
|
|
29
|
-
else for (var d = o.length - 1; d >= 0; d--) (n = o[d]) && (e = (a < 3 ? n(e) : a > 3 ? n(t, r, e) : n(t, r)) || e);
|
|
30
|
-
return a > 3 && e && Object.defineProperty(t, r, e), e;
|
|
31
|
-
};
|
|
32
|
-
let i = class extends w {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments), this.text = "", this.loading = !1;
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return this.loading ? u` <wui-flex alignItems="center" gap="xxs" padding="xs">
|
|
38
|
-
<wui-shimmer width="24px" height="24px"></wui-shimmer>
|
|
39
|
-
<wui-shimmer width="40px" height="20px" borderRadius="4xs"></wui-shimmer>
|
|
40
|
-
</wui-flex>` : u`
|
|
41
|
-
<button>
|
|
42
|
-
${this.tokenTemplate()}
|
|
43
|
-
<wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text>
|
|
44
|
-
</button>
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
tokenTemplate() {
|
|
48
|
-
return this.imageSrc ? u`<wui-image src=${this.imageSrc}></wui-image>` : u`
|
|
49
|
-
<wui-icon-box
|
|
50
|
-
size="sm"
|
|
51
|
-
iconColor="fg-200"
|
|
52
|
-
backgroundColor="fg-300"
|
|
53
|
-
icon="networkPlaceholder"
|
|
54
|
-
></wui-icon-box>
|
|
55
|
-
`;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
i.styles = [c, h, m];
|
|
59
|
-
l([
|
|
60
|
-
p()
|
|
61
|
-
], i.prototype, "imageSrc", void 0);
|
|
62
|
-
l([
|
|
63
|
-
p()
|
|
64
|
-
], i.prototype, "text", void 0);
|
|
65
|
-
l([
|
|
66
|
-
p({ type: Boolean })
|
|
67
|
-
], i.prototype, "loading", void 0);
|
|
68
|
-
i = l([
|
|
69
|
-
x("wui-token-button")
|
|
70
|
-
], i);
|