@springmicro/auth 0.7.3 → 0.7.4
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/{Index-6c094240-hn_S7Xeg.js → Index-1e31d199-CO-3sUD-.js} +126 -126
- package/dist/{Index-64ac63ff-ChMmeIY7.js → Index-6078f122-CDowfR7U.js} +103 -103
- package/dist/{Web3Auth-CGD96zai.js → Web3Auth-C1gorwXx.js} +12642 -12734
- package/dist/{ccip-c78d2f16-DLcRlwod.js → ccip-c78d2f16-DUJGUJJo.js} +4 -4
- package/dist/hmac-CGR-aDxj.js +47 -0
- package/dist/{index-021f6a62-Zz543EDB.js → index-021f6a62-DBObZnNM.js} +33 -33
- package/dist/{index-40a497ea-Bn2mC0r7.js → index-40a497ea-BEwImqwN.js} +7 -7
- package/dist/{index-Ct7cFdFm.js → index-BIEw47XG.js} +12 -12
- package/dist/{index-62liFLUM.js → index-BLh7Sl_6.js} +1786 -1821
- package/dist/index-C2J9ZZ0N.js +547 -0
- package/dist/index-ClXLxv7Y.js +13504 -0
- package/dist/{index-C6leUA25.js → index-D0GY6Fny.js} +991 -994
- package/dist/index-DJiTRo2_.js +20860 -0
- package/dist/{index-BBx_mvyX.js → index-bH4yLInF.js} +2 -2
- package/dist/index-cTAxNlZn.js +3284 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +356 -319
- package/dist/number-9K9sKV6s.js +1291 -0
- package/dist/sha256-JJGtJ2gn.js +325 -0
- package/dist/{transactionRequest-be6a8ea9-CUKWo5mx.js → transactionRequest-be6a8ea9-_q5BIZxq.js} +39 -39
- package/package.json +2 -2
- package/dist/hashMessage-Bdgmx0rg.js +0 -2135
- package/dist/index-CAVvArYp.js +0 -12767
- package/dist/index-DA32_Pfh.js +0 -5846
- package/dist/index-Dna0rycp.js +0 -384
- package/dist/native-FDN9oNjc.js +0 -15
- package/dist/number-C-98SESp.js +0 -1529
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Y as
|
|
2
|
-
function
|
|
3
|
-
const o = getComputedStyle(i), a = o.transform === "none" ? "" : o.transform, [f, l] = o.transformOrigin.split(" ").map(parseFloat), s = e.left + e.width * f / t.width - (t.left + f), r = e.top + e.height * l / t.height - (t.top + l), { delay: c = 0, duration: d = (u) => Math.sqrt(u) * 120, easing: v =
|
|
1
|
+
import { Y as E, Z as N, $ as M, a0 as O, a1 as _, a2 as T, a3 as w, a4 as A, a5 as G, a6 as C, am as me, an as Z, ac as Y, ad as _e, ae as we, af as D, aJ as Ce, ab as m, a9 as h, aR as ze, ah as $, ax as Te, ay as je, az as Le, aI as xe, bg as Pe, ak as R, bh as Se, b5 as B, ai as F, a7 as g, a8 as S, at as be, aj as H, aa as L, bi as J, bj as W, aw as ye, aL as V, bk as Ie, ag as he, bl as U, bm as X, bn as Q, av as Re, aA as K, aB as I, bo as ee, bp as te, bq as Ee, br as x, aD as q, bs as Ne, bt as ge, aS as Me, bu as Oe, bf as ke, bv as De, aX as $e, aN as Fe } from "./Web3Auth-C1gorwXx.js";
|
|
2
|
+
function He(i, { from: e, to: t }, n = {}) {
|
|
3
|
+
const o = getComputedStyle(i), a = o.transform === "none" ? "" : o.transform, [f, l] = o.transformOrigin.split(" ").map(parseFloat), s = e.left + e.width * f / t.width - (t.left + f), r = e.top + e.height * l / t.height - (t.top + l), { delay: c = 0, duration: d = (u) => Math.sqrt(u) * 120, easing: v = ge } = n;
|
|
4
4
|
return {
|
|
5
5
|
delay: c,
|
|
6
|
-
duration:
|
|
6
|
+
duration: Fe(d) ? d(Math.sqrt(s * s + r * r)) : d,
|
|
7
7
|
easing: v,
|
|
8
8
|
css: (u, y) => {
|
|
9
9
|
const p = y * s, b = y * r, z = u + y * e.width / t.width, j = u + y * e.height / t.height;
|
|
@@ -11,10 +11,10 @@ function Fe(i, { from: e, to: t }, n = {}) {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Ae(i) {
|
|
15
15
|
O(i, "svelte-13cuwwo", "div.svelte-13cuwwo{box-sizing:content-box}.border.svelte-13cuwwo{border:2px solid;border-radius:120px;overflow:hidden}");
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Ge(i) {
|
|
18
18
|
let e, t;
|
|
19
19
|
return {
|
|
20
20
|
c() {
|
|
@@ -37,7 +37,7 @@ function Ve(i) {
|
|
|
37
37
|
`);
|
|
38
38
|
},
|
|
39
39
|
m(n, o) {
|
|
40
|
-
|
|
40
|
+
C(n, e, o), e.innerHTML = /*icon*/
|
|
41
41
|
i[0];
|
|
42
42
|
},
|
|
43
43
|
p(n, [o]) {
|
|
@@ -62,26 +62,26 @@ function Ve(i) {
|
|
|
62
62
|
justify-content: center;
|
|
63
63
|
`) && m(e, "style", t);
|
|
64
64
|
},
|
|
65
|
-
i:
|
|
66
|
-
o:
|
|
65
|
+
i: R,
|
|
66
|
+
o: R,
|
|
67
67
|
d(n) {
|
|
68
|
-
n &&
|
|
68
|
+
n && _(e);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ve(i, e, t) {
|
|
73
73
|
let { icon: n } = e, { borderColorVar: o } = e, { size: a } = e, { padding: f = 0 } = e, { background: l = "transparent" } = e;
|
|
74
74
|
return i.$$set = (s) => {
|
|
75
75
|
"icon" in s && t(0, n = s.icon), "borderColorVar" in s && t(1, o = s.borderColorVar), "size" in s && t(2, a = s.size), "padding" in s && t(3, f = s.padding), "background" in s && t(4, l = s.background);
|
|
76
76
|
}, [n, o, a, f, l];
|
|
77
77
|
}
|
|
78
|
-
class
|
|
78
|
+
class Be extends E {
|
|
79
79
|
constructor(e) {
|
|
80
80
|
super(), N(
|
|
81
81
|
this,
|
|
82
82
|
e,
|
|
83
|
-
Ae,
|
|
84
83
|
Ve,
|
|
84
|
+
Ge,
|
|
85
85
|
M,
|
|
86
86
|
{
|
|
87
87
|
icon: 0,
|
|
@@ -90,11 +90,11 @@ class We extends I {
|
|
|
90
90
|
padding: 3,
|
|
91
91
|
background: 4
|
|
92
92
|
},
|
|
93
|
-
|
|
93
|
+
Ae
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function We(i) {
|
|
98
98
|
O(i, "svelte-jvic9v", "div.notification-icons-wrapper.svelte-jvic9v{height:32px;width:32px}.border.svelte-jvic9v{border-radius:8px}div.notification-icon.svelte-jvic9v{padding:6px}div.pending-icon.svelte-jvic9v{animation:svelte-jvic9v-blink 2s ease-in infinite;height:100%;width:100%;padding:7px}@keyframes svelte-jvic9v-blink{from,to{opacity:1}50%{opacity:0.2}}div.border-action.svelte-jvic9v{height:32px;min-width:32px;border-radius:8px;overflow:hidden;will-change:transform}div.border-action.svelte-jvic9v:before{content:'';background-image:conic-gradient(#b1b7f2 20deg, #6370e5 120deg);height:140%;width:140%;position:absolute;left:-25%;top:-25%;animation:svelte-jvic9v-rotate 2s infinite linear}div.chain-icon-container.svelte-jvic9v{left:18px;top:18px}@keyframes svelte-jvic9v-rotate{100%{transform:rotate(-360deg)}}");
|
|
99
99
|
}
|
|
100
100
|
function ne(i) {
|
|
@@ -109,7 +109,7 @@ function ne(i) {
|
|
|
109
109
|
), v = r && oe(i);
|
|
110
110
|
return {
|
|
111
111
|
c() {
|
|
112
|
-
e = h("div"), d && d.c(), t = L(), n = h("div"), o = h("div"), s = L(), v && v.c(), m(o, "class", f =
|
|
112
|
+
e = h("div"), d && d.c(), t = L(), n = h("div"), o = h("div"), s = L(), v && v.c(), m(o, "class", f = B(`notification-icon flex items-center justify-center ${/*notification*/
|
|
113
113
|
i[1].type === "pending" ? "pending-icon" : ""}`) + " svelte-jvic9v"), m(n, "class", "flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"), m(n, "style", l = `background:${x[
|
|
114
114
|
/*notification*/
|
|
115
115
|
i[1].type
|
|
@@ -123,7 +123,7 @@ function ne(i) {
|
|
|
123
123
|
].borderColor}`}; `), m(e, "class", "relative");
|
|
124
124
|
},
|
|
125
125
|
m(u, y) {
|
|
126
|
-
|
|
126
|
+
C(u, e, y), d && d.m(e, null), g(e, t), g(e, n), g(n, o), o.innerHTML = a, g(e, s), v && v.m(e, null), c = !0;
|
|
127
127
|
},
|
|
128
128
|
p(u, y) {
|
|
129
129
|
/*notification*/
|
|
@@ -132,7 +132,7 @@ function ne(i) {
|
|
|
132
132
|
/*notification*/
|
|
133
133
|
u[1].type
|
|
134
134
|
].eventIcon + "") && (o.innerHTML = a), (!c || y & /*notification*/
|
|
135
|
-
2 && f !== (f =
|
|
135
|
+
2 && f !== (f = B(`notification-icon flex items-center justify-center ${/*notification*/
|
|
136
136
|
u[1].type === "pending" ? "pending-icon" : ""}`) + " svelte-jvic9v")) && m(o, "class", f), (!c || y & /*notification*/
|
|
137
137
|
2 && l !== (l = `background:${x[
|
|
138
138
|
/*notification*/
|
|
@@ -148,9 +148,9 @@ function ne(i) {
|
|
|
148
148
|
2 && (r = !/*notification*/
|
|
149
149
|
u[1].id.includes("customNotification") && !/*notification*/
|
|
150
150
|
u[1].id.includes("preflight")), r ? v ? (v.p(u, y), y & /*notification*/
|
|
151
|
-
2 && w(v, 1)) : (v = oe(u), v.c(), w(v, 1), v.m(e, null)) : v && (
|
|
151
|
+
2 && w(v, 1)) : (v = oe(u), v.c(), w(v, 1), v.m(e, null)) : v && (A(), T(v, 1, 1, () => {
|
|
152
152
|
v = null;
|
|
153
|
-
}),
|
|
153
|
+
}), G());
|
|
154
154
|
},
|
|
155
155
|
i(u) {
|
|
156
156
|
c || (w(v), c = !0);
|
|
@@ -159,7 +159,7 @@ function ne(i) {
|
|
|
159
159
|
T(v), c = !1;
|
|
160
160
|
},
|
|
161
161
|
d(u) {
|
|
162
|
-
u &&
|
|
162
|
+
u && _(e), d && d.d(), v && v.d();
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
}
|
|
@@ -170,16 +170,16 @@ function ie(i) {
|
|
|
170
170
|
e = h("div"), m(e, "class", "border-action absolute svelte-jvic9v");
|
|
171
171
|
},
|
|
172
172
|
m(t, n) {
|
|
173
|
-
|
|
173
|
+
C(t, e, n);
|
|
174
174
|
},
|
|
175
175
|
d(t) {
|
|
176
|
-
t &&
|
|
176
|
+
t && _(e);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
function oe(i) {
|
|
181
181
|
let e, t, n;
|
|
182
|
-
return t = new
|
|
182
|
+
return t = new Be({
|
|
183
183
|
props: {
|
|
184
184
|
icon: (
|
|
185
185
|
/*chainStyles*/
|
|
@@ -198,7 +198,7 @@ function oe(i) {
|
|
|
198
198
|
e = h("div"), H(t.$$.fragment), m(e, "class", "absolute chain-icon-container svelte-jvic9v");
|
|
199
199
|
},
|
|
200
200
|
m(o, a) {
|
|
201
|
-
|
|
201
|
+
C(o, e, a), F(t, e, null), n = !0;
|
|
202
202
|
},
|
|
203
203
|
p(o, a) {
|
|
204
204
|
const f = {};
|
|
@@ -215,7 +215,7 @@ function oe(i) {
|
|
|
215
215
|
T(t.$$.fragment, o), n = !1;
|
|
216
216
|
},
|
|
217
217
|
d(o) {
|
|
218
|
-
o &&
|
|
218
|
+
o && _(e), $(t);
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
}
|
|
@@ -229,14 +229,14 @@ function qe(i) {
|
|
|
229
229
|
n && n.c(), e = me();
|
|
230
230
|
},
|
|
231
231
|
m(o, a) {
|
|
232
|
-
n && n.m(o, a),
|
|
232
|
+
n && n.m(o, a), C(o, e, a), t = !0;
|
|
233
233
|
},
|
|
234
234
|
p(o, [a]) {
|
|
235
235
|
/*notification*/
|
|
236
236
|
o[1].type ? n ? (n.p(o, a), a & /*notification*/
|
|
237
|
-
2 && w(n, 1)) : (n = ne(o), n.c(), w(n, 1), n.m(e.parentNode, e)) : n && (
|
|
237
|
+
2 && w(n, 1)) : (n = ne(o), n.c(), w(n, 1), n.m(e.parentNode, e)) : n && (A(), T(n, 1, 1, () => {
|
|
238
238
|
n = null;
|
|
239
|
-
}),
|
|
239
|
+
}), G());
|
|
240
240
|
},
|
|
241
241
|
i(o) {
|
|
242
242
|
t || (w(n), t = !0);
|
|
@@ -245,19 +245,19 @@ function qe(i) {
|
|
|
245
245
|
T(n), t = !1;
|
|
246
246
|
},
|
|
247
247
|
d(o) {
|
|
248
|
-
n && n.d(o), o &&
|
|
248
|
+
n && n.d(o), o && _(e);
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
function Ke(i, e, t) {
|
|
253
|
-
let { chainStyles: n =
|
|
253
|
+
let { chainStyles: n = Re } = e, { notification: o } = e;
|
|
254
254
|
return i.$$set = (a) => {
|
|
255
255
|
"chainStyles" in a && t(0, n = a.chainStyles), "notification" in a && t(1, o = a.notification);
|
|
256
256
|
}, [n, o];
|
|
257
257
|
}
|
|
258
|
-
class Ye extends
|
|
258
|
+
class Ye extends E {
|
|
259
259
|
constructor(e) {
|
|
260
|
-
super(), N(this, e, Ke, qe, M, { chainStyles: 0, notification: 1 },
|
|
260
|
+
super(), N(this, e, Ke, qe, M, { chainStyles: 0, notification: 1 }, We);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
function Ze(i) {
|
|
@@ -277,12 +277,12 @@ function ae(i) {
|
|
|
277
277
|
), o, a;
|
|
278
278
|
return {
|
|
279
279
|
c() {
|
|
280
|
-
e =
|
|
281
|
-
`), t = h("span"), o =
|
|
280
|
+
e = I(`-
|
|
281
|
+
`), t = h("span"), o = I(n), a = I(`
|
|
282
282
|
ago`), m(t, "class", "svelte-pm7idu");
|
|
283
283
|
},
|
|
284
284
|
m(f, l) {
|
|
285
|
-
|
|
285
|
+
C(f, e, l), C(f, t, l), g(t, o), C(f, a, l);
|
|
286
286
|
},
|
|
287
287
|
p(f, l) {
|
|
288
288
|
l & /*currentTime, startTime*/
|
|
@@ -294,11 +294,11 @@ function ae(i) {
|
|
|
294
294
|
) + "") && K(o, n);
|
|
295
295
|
},
|
|
296
296
|
d(f) {
|
|
297
|
-
f &&
|
|
297
|
+
f && _(e), f && _(t), f && _(a);
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Je(i) {
|
|
302
302
|
let e, t = (
|
|
303
303
|
/*startTime*/
|
|
304
304
|
i[0] && ae(i)
|
|
@@ -308,22 +308,22 @@ function Ue(i) {
|
|
|
308
308
|
e = h("div"), t && t.c(), m(e, "class", "time svelte-pm7idu");
|
|
309
309
|
},
|
|
310
310
|
m(n, o) {
|
|
311
|
-
|
|
311
|
+
C(n, e, o), t && t.m(e, null);
|
|
312
312
|
},
|
|
313
313
|
p(n, [o]) {
|
|
314
314
|
/*startTime*/
|
|
315
315
|
n[0] ? t ? t.p(n, o) : (t = ae(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
|
|
316
316
|
},
|
|
317
|
-
i:
|
|
318
|
-
o:
|
|
317
|
+
i: R,
|
|
318
|
+
o: R,
|
|
319
319
|
d(n) {
|
|
320
|
-
n &&
|
|
320
|
+
n && _(e), t && t.d();
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ue(i, e, t) {
|
|
325
325
|
let n, o;
|
|
326
|
-
D(i,
|
|
326
|
+
D(i, ke, (r) => t(3, n = r)), D(i, De, (r) => t(4, o = r));
|
|
327
327
|
let { startTime: a } = e;
|
|
328
328
|
function f(r) {
|
|
329
329
|
const c = Math.floor(r / 1e3), d = c < 0 ? 0 : c;
|
|
@@ -336,15 +336,15 @@ function Xe(i, e, t) {
|
|
|
336
336
|
},
|
|
337
337
|
1e3
|
|
338
338
|
);
|
|
339
|
-
return
|
|
339
|
+
return he(() => {
|
|
340
340
|
clearInterval(s);
|
|
341
341
|
}), i.$$set = (r) => {
|
|
342
342
|
"startTime" in r && t(0, a = r.startTime);
|
|
343
343
|
}, [a, l, f];
|
|
344
344
|
}
|
|
345
|
-
class
|
|
345
|
+
class Xe extends E {
|
|
346
346
|
constructor(e) {
|
|
347
|
-
super(), N(this, e,
|
|
347
|
+
super(), N(this, e, Ue, Je, M, { startTime: 0 }, Ze);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function Qe(i) {
|
|
@@ -377,7 +377,7 @@ function re(i) {
|
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
379
|
let f = a(i), l = f(i);
|
|
380
|
-
return n = new
|
|
380
|
+
return n = new Xe({
|
|
381
381
|
props: {
|
|
382
382
|
startTime: (
|
|
383
383
|
/*notification*/
|
|
@@ -389,7 +389,7 @@ function re(i) {
|
|
|
389
389
|
e = h("span"), l.c(), t = L(), H(n.$$.fragment), m(e, "class", "hash-time svelte-1otz6tt");
|
|
390
390
|
},
|
|
391
391
|
m(s, r) {
|
|
392
|
-
|
|
392
|
+
C(s, e, r), l.m(e, null), g(e, t), F(n, e, null), o = !0;
|
|
393
393
|
},
|
|
394
394
|
p(s, r) {
|
|
395
395
|
f === (f = a(s)) && l ? l.p(s, r) : (l.d(1), l = f(s), l && (l.c(), l.m(e, t)));
|
|
@@ -405,7 +405,7 @@ function re(i) {
|
|
|
405
405
|
T(n.$$.fragment, s), o = !1;
|
|
406
406
|
},
|
|
407
407
|
d(s) {
|
|
408
|
-
s &&
|
|
408
|
+
s && _(e), l.d(), $(n);
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
@@ -416,10 +416,10 @@ function et(i) {
|
|
|
416
416
|
) + "", n;
|
|
417
417
|
return {
|
|
418
418
|
c() {
|
|
419
|
-
e = h("div"), n =
|
|
419
|
+
e = h("div"), n = I(t), m(e, "class", "address-hash svelte-1otz6tt");
|
|
420
420
|
},
|
|
421
421
|
m(o, a) {
|
|
422
|
-
|
|
422
|
+
C(o, e, a), g(e, n);
|
|
423
423
|
},
|
|
424
424
|
p(o, a) {
|
|
425
425
|
a & /*notification*/
|
|
@@ -429,7 +429,7 @@ function et(i) {
|
|
|
429
429
|
) + "") && K(n, t);
|
|
430
430
|
},
|
|
431
431
|
d(o) {
|
|
432
|
-
o &&
|
|
432
|
+
o && _(e);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
}
|
|
@@ -440,11 +440,11 @@ function tt(i) {
|
|
|
440
440
|
) + "", n, o;
|
|
441
441
|
return {
|
|
442
442
|
c() {
|
|
443
|
-
e = h("a"), n =
|
|
443
|
+
e = h("a"), n = I(t), m(e, "class", "address-hash svelte-1otz6tt"), m(e, "href", o = /*notification*/
|
|
444
444
|
i[0].link), m(e, "target", "_blank"), m(e, "rel", "noreferrer noopener");
|
|
445
445
|
},
|
|
446
446
|
m(a, f) {
|
|
447
|
-
|
|
447
|
+
C(a, e, f), g(e, n);
|
|
448
448
|
},
|
|
449
449
|
p(a, f) {
|
|
450
450
|
f & /*notification*/
|
|
@@ -456,7 +456,7 @@ function tt(i) {
|
|
|
456
456
|
a[0].link) && m(e, "href", o);
|
|
457
457
|
},
|
|
458
458
|
d(a) {
|
|
459
|
-
a &&
|
|
459
|
+
a && _(e);
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
}
|
|
@@ -472,10 +472,10 @@ function nt(i) {
|
|
|
472
472
|
), l, s = f && re(i);
|
|
473
473
|
return {
|
|
474
474
|
c() {
|
|
475
|
-
e = h("div"), t = h("span"), o =
|
|
475
|
+
e = h("div"), t = h("span"), o = I(n), a = L(), s && s.c(), m(t, "class", "transaction-status svelte-1otz6tt"), m(e, "class", "flex flex-column notify-transaction-data svelte-1otz6tt");
|
|
476
476
|
},
|
|
477
477
|
m(r, c) {
|
|
478
|
-
|
|
478
|
+
C(r, e, c), g(e, t), g(t, o), g(e, a), s && s.m(e, null), l = !0;
|
|
479
479
|
},
|
|
480
480
|
p(r, [c]) {
|
|
481
481
|
(!l || c & /*notification*/
|
|
@@ -485,9 +485,9 @@ function nt(i) {
|
|
|
485
485
|
r[0].id && !/*notification*/
|
|
486
486
|
r[0].id.includes("customNotification") && !/*notification*/
|
|
487
487
|
r[0].id.includes("preflight")), f ? s ? (s.p(r, c), c & /*notification*/
|
|
488
|
-
1 && w(s, 1)) : (s = re(r), s.c(), w(s, 1), s.m(e, null)) : s && (
|
|
488
|
+
1 && w(s, 1)) : (s = re(r), s.c(), w(s, 1), s.m(e, null)) : s && (A(), T(s, 1, 1, () => {
|
|
489
489
|
s = null;
|
|
490
|
-
}),
|
|
490
|
+
}), G());
|
|
491
491
|
},
|
|
492
492
|
i(r) {
|
|
493
493
|
l || (w(s), l = !0);
|
|
@@ -496,7 +496,7 @@ function nt(i) {
|
|
|
496
496
|
T(s), l = !1;
|
|
497
497
|
},
|
|
498
498
|
d(r) {
|
|
499
|
-
r &&
|
|
499
|
+
r && _(e), s && s.d();
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
502
|
}
|
|
@@ -506,7 +506,7 @@ function it(i, e, t) {
|
|
|
506
506
|
"notification" in o && t(0, n = o.notification);
|
|
507
507
|
}, [n];
|
|
508
508
|
}
|
|
509
|
-
class ot extends
|
|
509
|
+
class ot extends E {
|
|
510
510
|
constructor(e) {
|
|
511
511
|
super(), N(this, e, it, nt, M, { notification: 0 }, Qe);
|
|
512
512
|
}
|
|
@@ -524,11 +524,11 @@ const rt = ["txPool"], lt = ["main", "matic-main"], st = [
|
|
|
524
524
|
"D'CENT"
|
|
525
525
|
], le = (i) => rt.includes(i), se = (i) => lt.includes(i), ce = (i) => i && st.includes(i.label);
|
|
526
526
|
async function fe({ type: i, wallet: e, transaction: t }) {
|
|
527
|
-
const { from: n, input: o, value: a, to: f, nonce: l, gas: s, network: r } = t, c =
|
|
527
|
+
const { from: n, input: o, value: a, to: f, nonce: l, gas: s, network: r } = t, c = W[r], { gasPriceProbability: d } = Y.get().notify.replacement, { gas: v } = Z;
|
|
528
528
|
if (!v)
|
|
529
529
|
return;
|
|
530
530
|
const [u] = await v.get({
|
|
531
|
-
chains: [
|
|
531
|
+
chains: [W[r]],
|
|
532
532
|
endpoint: "blockPrices"
|
|
533
533
|
}), { maxFeePerGas: y, maxPriorityFeePerGas: p } = u.blockPrices[0].estimatedPrices.find(({ confidence: k }) => k === (i === "speedup" ? d == null ? void 0 : d.speedup : d == null ? void 0 : d.cancel)) || {};
|
|
534
534
|
if (!y || !p)
|
|
@@ -537,7 +537,7 @@ async function fe({ type: i, wallet: e, transaction: t }) {
|
|
|
537
537
|
return e.provider.request({
|
|
538
538
|
method: "eth_sendTransaction",
|
|
539
539
|
params: [
|
|
540
|
-
Object.assign({ type: "0x2", from: n, to: i === "cancel" ? n : f, chainId: parseInt(c), value:
|
|
540
|
+
Object.assign({ type: "0x2", from: n, to: i === "cancel" ? n : f, chainId: parseInt(c), value: Ee(BigInt(a)), nonce: te(l), gasLimit: te(s), maxFeePerGas: b, maxPriorityFeePerGas: z }, j)
|
|
541
541
|
]
|
|
542
542
|
});
|
|
543
543
|
}
|
|
@@ -572,7 +572,7 @@ function de(i) {
|
|
|
572
572
|
e = h("div"), t = h("button"), t.textContent = "Cancel", n = L(), o = h("button"), o.textContent = "Speed-up", m(t, "class", "dropdown-button svelte-ftkynd"), m(o, "class", "dropdown-button svelte-ftkynd"), m(e, "class", "dropdown-buttons flex items-center justify-end svelte-ftkynd");
|
|
573
573
|
},
|
|
574
574
|
m(l, s) {
|
|
575
|
-
|
|
575
|
+
C(l, e, s), g(e, t), g(e, n), g(e, o), a || (f = [
|
|
576
576
|
S(
|
|
577
577
|
t,
|
|
578
578
|
"click",
|
|
@@ -587,9 +587,9 @@ function de(i) {
|
|
|
587
587
|
)
|
|
588
588
|
], a = !0);
|
|
589
589
|
},
|
|
590
|
-
p:
|
|
590
|
+
p: R,
|
|
591
591
|
d(l) {
|
|
592
|
-
l &&
|
|
592
|
+
l && _(e), a = !1, ye(f);
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
}
|
|
@@ -601,7 +601,7 @@ function ft(i) {
|
|
|
601
601
|
/*notification*/
|
|
602
602
|
i[0]
|
|
603
603
|
),
|
|
604
|
-
chainStyles:
|
|
604
|
+
chainStyles: J[W[
|
|
605
605
|
/*notification*/
|
|
606
606
|
i[0].network
|
|
607
607
|
]]
|
|
@@ -619,7 +619,7 @@ function ft(i) {
|
|
|
619
619
|
return {
|
|
620
620
|
c() {
|
|
621
621
|
e = h("div"), t = h("div"), H(n.$$.fragment), o = L(), H(a.$$.fragment), f = L(), l = h("div"), s = h("div"), r = L(), c = h("div"), p && p.c(), m(s, "class", "flex items-center close-icon svelte-ftkynd"), m(l, "class", "notify-close-btn notify-close-btn-" + /*device*/
|
|
622
|
-
i[4].type + " pointer flex svelte-ftkynd"), m(t, "class", "flex bn-notify-notification-inner svelte-ftkynd"), m(c, "class", "dropdown svelte-ftkynd"),
|
|
622
|
+
i[4].type + " pointer flex svelte-ftkynd"), m(t, "class", "flex bn-notify-notification-inner svelte-ftkynd"), m(c, "class", "dropdown svelte-ftkynd"), V(
|
|
623
623
|
c,
|
|
624
624
|
"dropdown-visible",
|
|
625
625
|
/*hovered*/
|
|
@@ -635,7 +635,7 @@ function ft(i) {
|
|
|
635
635
|
i[7]
|
|
636
636
|
)
|
|
637
637
|
), m(e, "class", d = "bn-notify-notification bn-notify-notification-" + /*notification*/
|
|
638
|
-
i[0].type + "} svelte-ftkynd"),
|
|
638
|
+
i[0].type + "} svelte-ftkynd"), V(
|
|
639
639
|
e,
|
|
640
640
|
"bn-notify-clickable",
|
|
641
641
|
/*notification*/
|
|
@@ -643,7 +643,7 @@ function ft(i) {
|
|
|
643
643
|
);
|
|
644
644
|
},
|
|
645
645
|
m(b, z) {
|
|
646
|
-
|
|
646
|
+
C(b, e, z), g(e, t), F(n, t, null), g(t, o), F(a, t, null), g(t, f), g(t, l), g(l, s), s.innerHTML = at, g(e, r), g(e, c), p && p.m(c, null), v = !0, u || (y = [
|
|
647
647
|
S(l, "click", be(
|
|
648
648
|
/*click_handler*/
|
|
649
649
|
i[9]
|
|
@@ -673,7 +673,7 @@ function ft(i) {
|
|
|
673
673
|
z & /*notification*/
|
|
674
674
|
1 && (j.notification = /*notification*/
|
|
675
675
|
b[0]), z & /*notification*/
|
|
676
|
-
1 && (j.chainStyles =
|
|
676
|
+
1 && (j.chainStyles = J[W[
|
|
677
677
|
/*notification*/
|
|
678
678
|
b[0].network
|
|
679
679
|
]]), n.$set(j);
|
|
@@ -682,7 +682,7 @@ function ft(i) {
|
|
|
682
682
|
1 && (k.notification = /*notification*/
|
|
683
683
|
b[0]), a.$set(k), /*notification*/
|
|
684
684
|
b[0].eventCode === "txPool" ? p ? p.p(b, z) : (p = de(b), p.c(), p.m(c, null)) : p && (p.d(1), p = null), (!v || z & /*hovered, gas, actionableEventCode, notification, validGasNetwork, walletSupportsReplacement, wallet*/
|
|
685
|
-
165) &&
|
|
685
|
+
165) && V(
|
|
686
686
|
c,
|
|
687
687
|
"dropdown-visible",
|
|
688
688
|
/*hovered*/
|
|
@@ -700,7 +700,7 @@ function ft(i) {
|
|
|
700
700
|
), (!v || z & /*notification*/
|
|
701
701
|
1 && d !== (d = "bn-notify-notification bn-notify-notification-" + /*notification*/
|
|
702
702
|
b[0].type + "} svelte-ftkynd")) && m(e, "class", d), (!v || z & /*notification, notification*/
|
|
703
|
-
1) &&
|
|
703
|
+
1) && V(
|
|
704
704
|
e,
|
|
705
705
|
"bn-notify-clickable",
|
|
706
706
|
/*notification*/
|
|
@@ -714,24 +714,24 @@ function ft(i) {
|
|
|
714
714
|
T(n.$$.fragment, b), T(a.$$.fragment, b), v = !1;
|
|
715
715
|
},
|
|
716
716
|
d(b) {
|
|
717
|
-
b &&
|
|
717
|
+
b && _(e), $(n), $(a), p && p.d(), u = !1, ye(y);
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
function dt(i, e, t) {
|
|
722
722
|
let n, o;
|
|
723
|
-
D(i,
|
|
723
|
+
D(i, $e, (k) => t(15, n = k)), D(i, ke, (k) => t(3, o = k));
|
|
724
724
|
const { device: a, gas: f } = Z;
|
|
725
725
|
let { notification: l } = e, { updateParentOnRemove: s } = e, r, c = !1;
|
|
726
|
-
const d =
|
|
726
|
+
const d = Ie.getValue().find(({ hash: k }) => k === l.id), v = d && n.find(({ accounts: k }) => !!k.find(({ address: P }) => P.toLowerCase() === d.from.toLowerCase()));
|
|
727
727
|
function u(k) {
|
|
728
728
|
l != null && l.onClick && l.onClick(k);
|
|
729
729
|
}
|
|
730
|
-
|
|
730
|
+
he(() => {
|
|
731
731
|
clearTimeout(r);
|
|
732
732
|
});
|
|
733
733
|
const y = () => {
|
|
734
|
-
|
|
734
|
+
U(l.id), X(l.id), s();
|
|
735
735
|
}, p = async () => {
|
|
736
736
|
try {
|
|
737
737
|
await fe({ type: "cancel", wallet: v, transaction: d });
|
|
@@ -767,7 +767,7 @@ function dt(i, e, t) {
|
|
|
767
767
|
i.$$.dirty & /*notification*/
|
|
768
768
|
1 && l.autoDismiss && (r = setTimeout(
|
|
769
769
|
() => {
|
|
770
|
-
|
|
770
|
+
U(l.id), X(l.id);
|
|
771
771
|
},
|
|
772
772
|
l.autoDismiss
|
|
773
773
|
));
|
|
@@ -788,7 +788,7 @@ function dt(i, e, t) {
|
|
|
788
788
|
j
|
|
789
789
|
];
|
|
790
790
|
}
|
|
791
|
-
class ut extends
|
|
791
|
+
class ut extends E {
|
|
792
792
|
constructor(e) {
|
|
793
793
|
super(), N(this, e, dt, ft, M, { notification: 0, updateParentOnRemove: 1 }, ct);
|
|
794
794
|
}
|
|
@@ -837,7 +837,7 @@ function ve(i) {
|
|
|
837
837
|
)})`);
|
|
838
838
|
},
|
|
839
839
|
m(r, c) {
|
|
840
|
-
|
|
840
|
+
C(r, e, c);
|
|
841
841
|
for (let d = 0; d < t.length; d += 1)
|
|
842
842
|
t[d] && t[d].m(e, null);
|
|
843
843
|
f = !0;
|
|
@@ -846,11 +846,11 @@ function ve(i) {
|
|
|
846
846
|
if (c & /*position, cubicOut, notifications, updateScrollYOnRemove*/
|
|
847
847
|
517) {
|
|
848
848
|
l = /*notifications*/
|
|
849
|
-
r[2],
|
|
849
|
+
r[2], A();
|
|
850
850
|
for (let d = 0; d < t.length; d += 1) t[d].r();
|
|
851
|
-
t = Ce(t, c, s, 1, r, l, n, e,
|
|
851
|
+
t = Ce(t, c, s, 1, r, l, n, e, Ne, pe, null, ue);
|
|
852
852
|
for (let d = 0; d < t.length; d += 1) t[d].a();
|
|
853
|
-
|
|
853
|
+
G();
|
|
854
854
|
}
|
|
855
855
|
(!f || c & /*position, overflowY*/
|
|
856
856
|
33 && o !== (o = "bn-notify-" + /*position*/
|
|
@@ -879,14 +879,14 @@ function ve(i) {
|
|
|
879
879
|
f = !1;
|
|
880
880
|
},
|
|
881
881
|
d(r) {
|
|
882
|
-
r &&
|
|
882
|
+
r && _(e);
|
|
883
883
|
for (let c = 0; c < t.length; c += 1)
|
|
884
884
|
t[c].d();
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
888
|
function pe(i, e) {
|
|
889
|
-
let t, n, o, a, f, l, s, r =
|
|
889
|
+
let t, n, o, a, f, l, s, r = R, c, d, v;
|
|
890
890
|
return n = new ut({
|
|
891
891
|
props: {
|
|
892
892
|
notification: (
|
|
@@ -902,12 +902,12 @@ function pe(i, e) {
|
|
|
902
902
|
key: i,
|
|
903
903
|
first: null,
|
|
904
904
|
c() {
|
|
905
|
-
t = h("li"), H(n.$$.fragment), o = L(), m(t, "class", a =
|
|
905
|
+
t = h("li"), H(n.$$.fragment), o = L(), m(t, "class", a = B(`bn-notify-li-${/*position*/
|
|
906
906
|
e[0]} ${/*position*/
|
|
907
907
|
e[0].includes("top") ? "notification-list-top" : "notification-list-bottom"}`) + " svelte-1h8mmo3"), this.first = t;
|
|
908
908
|
},
|
|
909
909
|
m(u, y) {
|
|
910
|
-
|
|
910
|
+
C(u, t, y), F(n, t, null), g(t, o), c = !0, d || (v = S(t, "click", be(
|
|
911
911
|
/*click_handler*/
|
|
912
912
|
e[10]
|
|
913
913
|
)), d = !0);
|
|
@@ -918,7 +918,7 @@ function pe(i, e) {
|
|
|
918
918
|
y & /*notifications*/
|
|
919
919
|
4 && (p.notification = /*notification*/
|
|
920
920
|
e[12]), n.$set(p), (!c || y & /*position*/
|
|
921
|
-
1 && a !== (a =
|
|
921
|
+
1 && a !== (a = B(`bn-notify-li-${/*position*/
|
|
922
922
|
e[0]} ${/*position*/
|
|
923
923
|
e[0].includes("top") ? "notification-list-top" : "notification-list-bottom"}`) + " svelte-1h8mmo3")) && m(t, "class", a);
|
|
924
924
|
},
|
|
@@ -926,14 +926,14 @@ function pe(i, e) {
|
|
|
926
926
|
s = t.getBoundingClientRect();
|
|
927
927
|
},
|
|
928
928
|
f() {
|
|
929
|
-
|
|
929
|
+
Pe(t), r(), Se(t, s);
|
|
930
930
|
},
|
|
931
931
|
a() {
|
|
932
|
-
r(), r =
|
|
932
|
+
r(), r = Oe(t, s, He, { duration: 500 });
|
|
933
933
|
},
|
|
934
934
|
i(u) {
|
|
935
|
-
c || (w(n.$$.fragment, u), u &&
|
|
936
|
-
c && (l && l.end(1), f =
|
|
935
|
+
c || (w(n.$$.fragment, u), u && je(() => {
|
|
936
|
+
c && (l && l.end(1), f = Le(t, xe, {
|
|
937
937
|
duration: 1200,
|
|
938
938
|
delay: 300,
|
|
939
939
|
x: (
|
|
@@ -949,10 +949,10 @@ function pe(i, e) {
|
|
|
949
949
|
}), c = !0);
|
|
950
950
|
},
|
|
951
951
|
o(u) {
|
|
952
|
-
T(n.$$.fragment, u), f && f.invalidate(), l =
|
|
952
|
+
T(n.$$.fragment, u), f && f.invalidate(), l = Te(t, Me, { duration: 300, easing: ge }), c = !1;
|
|
953
953
|
},
|
|
954
954
|
d(u) {
|
|
955
|
-
u &&
|
|
955
|
+
u && _(t), $(n), u && l && l.end(), d = !1, v();
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
958
|
}
|
|
@@ -966,14 +966,14 @@ function pt(i) {
|
|
|
966
966
|
n && n.c(), e = me();
|
|
967
967
|
},
|
|
968
968
|
m(o, a) {
|
|
969
|
-
n && n.m(o, a),
|
|
969
|
+
n && n.m(o, a), C(o, e, a), t = !0;
|
|
970
970
|
},
|
|
971
971
|
p(o, [a]) {
|
|
972
972
|
/*notifications*/
|
|
973
973
|
o[2].length ? n ? (n.p(o, a), a & /*notifications*/
|
|
974
|
-
4 && w(n, 1)) : (n = ve(o), n.c(), w(n, 1), n.m(e.parentNode, e)) : n && (
|
|
974
|
+
4 && w(n, 1)) : (n = ve(o), n.c(), w(n, 1), n.m(e.parentNode, e)) : n && (A(), T(n, 1, 1, () => {
|
|
975
975
|
n = null;
|
|
976
|
-
}),
|
|
976
|
+
}), G());
|
|
977
977
|
},
|
|
978
978
|
i(o) {
|
|
979
979
|
t || (w(n), t = !0);
|
|
@@ -982,7 +982,7 @@ function pt(i) {
|
|
|
982
982
|
T(n), t = !1;
|
|
983
983
|
},
|
|
984
984
|
d(o) {
|
|
985
|
-
n && n.d(o), o &&
|
|
985
|
+
n && n.d(o), o && _(e);
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
}
|
|
@@ -1010,7 +1010,7 @@ function bt(i, e, t) {
|
|
|
1010
1010
|
};
|
|
1011
1011
|
}();
|
|
1012
1012
|
function y(p) {
|
|
1013
|
-
|
|
1013
|
+
ze.call(this, i, p);
|
|
1014
1014
|
}
|
|
1015
1015
|
return i.$$set = (p) => {
|
|
1016
1016
|
"position" in p && t(0, f = p.position), "sharedContainer" in p && t(1, l = p.sharedContainer), "notifications" in p && t(2, s = p.notifications);
|
|
@@ -1031,7 +1031,7 @@ function bt(i, e, t) {
|
|
|
1031
1031
|
y
|
|
1032
1032
|
];
|
|
1033
1033
|
}
|
|
1034
|
-
class ht extends
|
|
1034
|
+
class ht extends E {
|
|
1035
1035
|
constructor(e) {
|
|
1036
1036
|
super(), N(
|
|
1037
1037
|
this,
|