@orbs-network/spot-react 1.1.0 → 1.1.1
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/{ccip-CCga95lb.js → ccip-Iir5d-bD.js} +1 -1
- package/dist/{index-DS8wke7C.js → index-vqnb3pZa.js} +433 -434
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-history-order.d.ts +4 -8
- package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -1
- package/dist/spot-react.js +1 -1
- package/dist/spot-react.umd.cjs +16 -16
- package/package.json +1 -1
|
@@ -2189,7 +2189,7 @@ function A1() {
|
|
|
2189
2189
|
return _i = { config: r, abis: n, raw: e }, _i;
|
|
2190
2190
|
}
|
|
2191
2191
|
var Vp = A1();
|
|
2192
|
-
const
|
|
2192
|
+
const es = (e, t) => {
|
|
2193
2193
|
if (!e || !t) return "";
|
|
2194
2194
|
const n = _(10).pow(e || 0);
|
|
2195
2195
|
return _(t).times(n).idiv(n).div(n).toFixed();
|
|
@@ -2198,10 +2198,10 @@ _(0);
|
|
|
2198
2198
|
_(1);
|
|
2199
2199
|
_(10);
|
|
2200
2200
|
_(1e18);
|
|
2201
|
-
function
|
|
2201
|
+
function ts(e, t) {
|
|
2202
2202
|
return e == t || e.toLowerCase() == t.toLowerCase();
|
|
2203
2203
|
}
|
|
2204
|
-
const wa = (e) => !!p1.find((t) =>
|
|
2204
|
+
const wa = (e) => !!p1.find((t) => ts(t, e || ""));
|
|
2205
2205
|
function T1(e) {
|
|
2206
2206
|
return [
|
|
2207
2207
|
Je.Years,
|
|
@@ -2212,7 +2212,7 @@ function T1(e) {
|
|
|
2212
2212
|
Je.Minutes
|
|
2213
2213
|
].find((n) => n <= e) || Je.Minutes;
|
|
2214
2214
|
}
|
|
2215
|
-
const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0" : _(e).decimalPlaces(0).toFixed(),
|
|
2215
|
+
const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0" : _(e).decimalPlaces(0).toFixed(), ls = (e) => Object.values(Le).find((t) => t.id === e), P1 = (e) => {
|
|
2216
2216
|
if (!e) return;
|
|
2217
2217
|
const t = e.map((a) => He(a)), n = Object.entries(f1).filter(([a]) => t.includes(a)).flatMap(([, a]) => a), r = e.map((a) => a.exchangeAddress), s = new Set(
|
|
2218
2218
|
[...r, ...n].map((a) => a.toLowerCase())
|
|
@@ -2221,15 +2221,15 @@ const or = (e) => e ? e.value * e.unit : 0, S1 = (e) => !e || e === "NaN" ? "0"
|
|
|
2221
2221
|
}, qp = (e, t) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + z1(t) : (e.fillDelay || 0) * 1e3, Jo = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), B1 = (e) => Q1().filter((t) => t.name === e).map((t) => t.chainId), Kp = (e = "", t = "", n = 18, r = 18) => {
|
|
2222
2222
|
if (!_(e || 0).gt(0) || !_(t || 0).gt(0))
|
|
2223
2223
|
return "";
|
|
2224
|
-
const s =
|
|
2224
|
+
const s = es(n, e), a = es(r, t);
|
|
2225
2225
|
return _(a).div(s).toFixed();
|
|
2226
2226
|
}, U1 = (e, t, n) => {
|
|
2227
2227
|
if (e.type === he.TWAP_MARKET) return "";
|
|
2228
|
-
const r =
|
|
2228
|
+
const r = es(t, e.srcAmountPerTrade), s = es(n, e.dstMinAmountPerTrade);
|
|
2229
2229
|
return _(s).div(r).toFixed();
|
|
2230
2230
|
}, I1 = (e, t, n) => {
|
|
2231
2231
|
if (e.type === he.TWAP_MARKET) return "";
|
|
2232
|
-
const r =
|
|
2232
|
+
const r = es(t, e.srcAmountPerTrade), s = es(n, e.triggerPricePerTrade);
|
|
2233
2233
|
return _(s).div(r).toFixed();
|
|
2234
2234
|
}, F1 = (e, t, n) => {
|
|
2235
2235
|
if (!e || !t || !n) return;
|
|
@@ -3212,7 +3212,7 @@ const Tb = async ({
|
|
|
3212
3212
|
Cb({ chainId: e, orders: a, signal: t })
|
|
3213
3213
|
]), c = a.map((d) => {
|
|
3214
3214
|
const p = o == null ? void 0 : o.filter(
|
|
3215
|
-
(f) => f.TWAP_id === Number(d.Contract_id) &&
|
|
3215
|
+
(f) => f.TWAP_id === Number(d.Contract_id) && ts(f.exchange, d.exchange) && ts(f.twapAddress, d.twapAddress)
|
|
3216
3216
|
);
|
|
3217
3217
|
return wb(
|
|
3218
3218
|
d,
|
|
@@ -3228,7 +3228,7 @@ const Tb = async ({
|
|
|
3228
3228
|
}, Sb = (e, t, n) => {
|
|
3229
3229
|
var i;
|
|
3230
3230
|
const r = (i = n == null ? void 0 : n.find(
|
|
3231
|
-
(c) => c.twapId === e.Contract_id.toString() &&
|
|
3231
|
+
(c) => c.twapId === e.Contract_id.toString() && ts(c.twapAddress, e.twapAddress)
|
|
3232
3232
|
)) == null ? void 0 : i.status, a = Qp(t).reduce((c, l) => c.plus(l.inAmount), new _(0)).toFixed(), o = Jp(e.ask_srcAmount, a);
|
|
3233
3233
|
return Pb(o, e.ask_deadline * 1e3, r);
|
|
3234
3234
|
}, Jp = (e, t) => {
|
|
@@ -3246,10 +3246,10 @@ const Tb = async ({
|
|
|
3246
3246
|
}) => (await Promise.all([
|
|
3247
3247
|
s ? Tb({ chainId: n, signal: e, page: t, limit: r, filters: { accounts: [a], configs: s.twapConfig ? [s.twapConfig] : [] } }) : Promise.resolve([]),
|
|
3248
3248
|
yb({ chainId: n, signal: e, account: a, exchange: s == null ? void 0 : s.adapter, isDev: o })
|
|
3249
|
-
]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.
|
|
3249
|
+
]).then(([l, d]) => [...l, ...d])).sort((l, d) => d.createdAt - l.createdAt), Ub = "1.1.1", Ib = {
|
|
3250
3250
|
version: Ub
|
|
3251
3251
|
};
|
|
3252
|
-
var
|
|
3252
|
+
var us = class {
|
|
3253
3253
|
constructor() {
|
|
3254
3254
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
3255
3255
|
}
|
|
@@ -3344,7 +3344,7 @@ function nd(e, t) {
|
|
|
3344
3344
|
if (r) {
|
|
3345
3345
|
if (t.queryHash !== Al(o, t.options))
|
|
3346
3346
|
return !1;
|
|
3347
|
-
} else if (
|
|
3347
|
+
} else if (!$s(t.queryKey, o))
|
|
3348
3348
|
return !1;
|
|
3349
3349
|
}
|
|
3350
3350
|
if (n !== "all") {
|
|
@@ -3362,7 +3362,7 @@ function rd(e, t) {
|
|
|
3362
3362
|
if (n) {
|
|
3363
3363
|
if (cr(t.options.mutationKey) !== cr(a))
|
|
3364
3364
|
return !1;
|
|
3365
|
-
} else if (
|
|
3365
|
+
} else if (!$s(t.options.mutationKey, a))
|
|
3366
3366
|
return !1;
|
|
3367
3367
|
}
|
|
3368
3368
|
return !(r && t.state.status !== r || s && !s(t));
|
|
@@ -3376,8 +3376,8 @@ function cr(e) {
|
|
|
3376
3376
|
(t, n) => Cc(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
3377
3377
|
);
|
|
3378
3378
|
}
|
|
3379
|
-
function
|
|
3380
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
3379
|
+
function $s(e, t) {
|
|
3380
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => $s(e[n], t[n])) : !1;
|
|
3381
3381
|
}
|
|
3382
3382
|
var Rb = Object.prototype.hasOwnProperty;
|
|
3383
3383
|
function kc(e, t) {
|
|
@@ -3463,13 +3463,13 @@ function e0(e, t) {
|
|
|
3463
3463
|
function t0(e, t) {
|
|
3464
3464
|
return typeof e == "function" ? e(...t) : !!e;
|
|
3465
3465
|
}
|
|
3466
|
-
var Wn, Tn,
|
|
3466
|
+
var Wn, Tn, Hr, Ip, $b = (Ip = class extends us {
|
|
3467
3467
|
constructor() {
|
|
3468
3468
|
super();
|
|
3469
3469
|
Z(this, Wn);
|
|
3470
3470
|
Z(this, Tn);
|
|
3471
|
-
Z(this,
|
|
3472
|
-
V(this,
|
|
3471
|
+
Z(this, Hr);
|
|
3472
|
+
V(this, Hr, (t) => {
|
|
3473
3473
|
if (!ir && window.addEventListener) {
|
|
3474
3474
|
const n = () => t();
|
|
3475
3475
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
@@ -3479,7 +3479,7 @@ var Wn, Tn, Lr, Ip, $b = (Ip = class extends ls {
|
|
|
3479
3479
|
});
|
|
3480
3480
|
}
|
|
3481
3481
|
onSubscribe() {
|
|
3482
|
-
I(this, Tn) || this.setEventListener(I(this,
|
|
3482
|
+
I(this, Tn) || this.setEventListener(I(this, Hr));
|
|
3483
3483
|
}
|
|
3484
3484
|
onUnsubscribe() {
|
|
3485
3485
|
var t;
|
|
@@ -3487,7 +3487,7 @@ var Wn, Tn, Lr, Ip, $b = (Ip = class extends ls {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
setEventListener(t) {
|
|
3489
3489
|
var n;
|
|
3490
|
-
V(this,
|
|
3490
|
+
V(this, Hr, t), (n = I(this, Tn)) == null || n.call(this), V(this, Tn, t((r) => {
|
|
3491
3491
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
3492
3492
|
}));
|
|
3493
3493
|
}
|
|
@@ -3504,7 +3504,7 @@ var Wn, Tn, Lr, Ip, $b = (Ip = class extends ls {
|
|
|
3504
3504
|
var t;
|
|
3505
3505
|
return typeof I(this, Wn) == "boolean" ? I(this, Wn) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
3506
3506
|
}
|
|
3507
|
-
}, Wn = new WeakMap(), Tn = new WeakMap(),
|
|
3507
|
+
}, Wn = new WeakMap(), Tn = new WeakMap(), Hr = new WeakMap(), Ip), Tl = new $b();
|
|
3508
3508
|
function Ac() {
|
|
3509
3509
|
let e, t;
|
|
3510
3510
|
const n = new Promise((s, a) => {
|
|
@@ -3587,13 +3587,13 @@ function Hb() {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
|
-
var Be = Hb(),
|
|
3590
|
+
var Be = Hb(), Gr, Sn, jr, Fp, Gb = (Fp = class extends us {
|
|
3591
3591
|
constructor() {
|
|
3592
3592
|
super();
|
|
3593
|
-
Z(this,
|
|
3593
|
+
Z(this, Gr, !0);
|
|
3594
3594
|
Z(this, Sn);
|
|
3595
|
-
Z(this,
|
|
3596
|
-
V(this,
|
|
3595
|
+
Z(this, jr);
|
|
3596
|
+
V(this, jr, (t) => {
|
|
3597
3597
|
if (!ir && window.addEventListener) {
|
|
3598
3598
|
const n = () => t(!0), r = () => t(!1);
|
|
3599
3599
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -3603,7 +3603,7 @@ var Be = Hb(), Hr, Sn, Gr, Fp, Gb = (Fp = class extends ls {
|
|
|
3603
3603
|
});
|
|
3604
3604
|
}
|
|
3605
3605
|
onSubscribe() {
|
|
3606
|
-
I(this, Sn) || this.setEventListener(I(this,
|
|
3606
|
+
I(this, Sn) || this.setEventListener(I(this, jr));
|
|
3607
3607
|
}
|
|
3608
3608
|
onUnsubscribe() {
|
|
3609
3609
|
var t;
|
|
@@ -3611,17 +3611,17 @@ var Be = Hb(), Hr, Sn, Gr, Fp, Gb = (Fp = class extends ls {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
setEventListener(t) {
|
|
3613
3613
|
var n;
|
|
3614
|
-
V(this,
|
|
3614
|
+
V(this, jr, t), (n = I(this, Sn)) == null || n.call(this), V(this, Sn, t(this.setOnline.bind(this)));
|
|
3615
3615
|
}
|
|
3616
3616
|
setOnline(t) {
|
|
3617
|
-
I(this,
|
|
3617
|
+
I(this, Gr) !== t && (V(this, Gr, t), this.listeners.forEach((r) => {
|
|
3618
3618
|
r(t);
|
|
3619
3619
|
}));
|
|
3620
3620
|
}
|
|
3621
3621
|
isOnline() {
|
|
3622
|
-
return I(this,
|
|
3622
|
+
return I(this, Gr);
|
|
3623
3623
|
}
|
|
3624
|
-
},
|
|
3624
|
+
}, Gr = new WeakMap(), Sn = new WeakMap(), jr = new WeakMap(), Fp), zo = new Gb();
|
|
3625
3625
|
function jb(e) {
|
|
3626
3626
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
3627
3627
|
}
|
|
@@ -3713,12 +3713,12 @@ var Zn, Dp, s0 = (Dp = class {
|
|
|
3713
3713
|
clearGcTimeout() {
|
|
3714
3714
|
I(this, Zn) && (Gn.clearTimeout(I(this, Zn)), V(this, Zn, void 0));
|
|
3715
3715
|
}
|
|
3716
|
-
}, Zn = new WeakMap(), Dp), Xn,
|
|
3716
|
+
}, Zn = new WeakMap(), Dp), Xn, Vr, yt, Qn, De, ma, Jn, Tt, en, Op, Vb = (Op = class extends s0 {
|
|
3717
3717
|
constructor(t) {
|
|
3718
3718
|
super();
|
|
3719
3719
|
Z(this, Tt);
|
|
3720
3720
|
Z(this, Xn);
|
|
3721
|
-
Z(this,
|
|
3721
|
+
Z(this, Vr);
|
|
3722
3722
|
Z(this, yt);
|
|
3723
3723
|
Z(this, Qn);
|
|
3724
3724
|
Z(this, De);
|
|
@@ -3858,12 +3858,12 @@ var Zn, Dp, s0 = (Dp = class {
|
|
|
3858
3858
|
};
|
|
3859
3859
|
return s(k), k;
|
|
3860
3860
|
})();
|
|
3861
|
-
(l = this.options.behavior) == null || l.onFetch(i, this), V(this,
|
|
3861
|
+
(l = this.options.behavior) == null || l.onFetch(i, this), V(this, Vr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = i.fetchOptions) == null ? void 0 : d.meta)) && re(this, Tt, en).call(this, { type: "fetch", meta: (p = i.fetchOptions) == null ? void 0 : p.meta }), V(this, De, r0({
|
|
3862
3862
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
3863
3863
|
fn: i.fetchFn,
|
|
3864
3864
|
onCancel: (k) => {
|
|
3865
3865
|
k instanceof Tc && k.revert && this.setState({
|
|
3866
|
-
...I(this,
|
|
3866
|
+
...I(this, Vr),
|
|
3867
3867
|
fetchStatus: "idle"
|
|
3868
3868
|
}), r.abort();
|
|
3869
3869
|
},
|
|
@@ -3920,7 +3920,7 @@ var Zn, Dp, s0 = (Dp = class {
|
|
|
3920
3920
|
this.scheduleGc();
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
|
-
}, Xn = new WeakMap(),
|
|
3923
|
+
}, Xn = new WeakMap(), Vr = new WeakMap(), yt = new WeakMap(), Qn = new WeakMap(), De = new WeakMap(), ma = new WeakMap(), Jn = new WeakMap(), Tt = new WeakSet(), en = function(t) {
|
|
3924
3924
|
const n = (r) => {
|
|
3925
3925
|
switch (t.type) {
|
|
3926
3926
|
case "failed":
|
|
@@ -3956,7 +3956,7 @@ var Zn, Dp, s0 = (Dp = class {
|
|
|
3956
3956
|
fetchFailureReason: null
|
|
3957
3957
|
}
|
|
3958
3958
|
};
|
|
3959
|
-
return V(this,
|
|
3959
|
+
return V(this, Vr, t.manual ? s : void 0), s;
|
|
3960
3960
|
case "error":
|
|
3961
3961
|
const a = t.error;
|
|
3962
3962
|
return {
|
|
@@ -4024,7 +4024,7 @@ function id(e) {
|
|
|
4024
4024
|
fetchStatus: "idle"
|
|
4025
4025
|
};
|
|
4026
4026
|
}
|
|
4027
|
-
var Xe, ce, ha, Ge, Yn,
|
|
4027
|
+
var Xe, ce, ha, Ge, Yn, qr, nn, Pn, ba, Kr, Wr, er, tr, Bn, Zr, de, Ms, Sc, Pc, Bc, Uc, Ic, Fc, Dc, o0, Mp, qb = (Mp = class extends us {
|
|
4028
4028
|
constructor(t, n) {
|
|
4029
4029
|
super();
|
|
4030
4030
|
Z(this, de);
|
|
@@ -4033,25 +4033,25 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4033
4033
|
Z(this, ha);
|
|
4034
4034
|
Z(this, Ge);
|
|
4035
4035
|
Z(this, Yn);
|
|
4036
|
-
Z(this,
|
|
4036
|
+
Z(this, qr);
|
|
4037
4037
|
Z(this, nn);
|
|
4038
4038
|
Z(this, Pn);
|
|
4039
4039
|
Z(this, ba);
|
|
4040
|
-
Z(this,
|
|
4040
|
+
Z(this, Kr);
|
|
4041
4041
|
// This property keeps track of the last query with defined data.
|
|
4042
4042
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
4043
|
-
Z(this,
|
|
4043
|
+
Z(this, Wr);
|
|
4044
4044
|
Z(this, er);
|
|
4045
4045
|
Z(this, tr);
|
|
4046
4046
|
Z(this, Bn);
|
|
4047
|
-
Z(this,
|
|
4047
|
+
Z(this, Zr, /* @__PURE__ */ new Set());
|
|
4048
4048
|
this.options = n, V(this, Xe, t), V(this, Pn, null), V(this, nn, Ac()), this.bindMethods(), this.setOptions(n);
|
|
4049
4049
|
}
|
|
4050
4050
|
bindMethods() {
|
|
4051
4051
|
this.refetch = this.refetch.bind(this);
|
|
4052
4052
|
}
|
|
4053
4053
|
onSubscribe() {
|
|
4054
|
-
this.listeners.size === 1 && (I(this, ce).addObserver(this), cd(I(this, ce), this.options) ? re(this, de,
|
|
4054
|
+
this.listeners.size === 1 && (I(this, ce).addObserver(this), cd(I(this, ce), this.options) ? re(this, de, Ms).call(this) : this.updateResult(), re(this, de, Uc).call(this));
|
|
4055
4055
|
}
|
|
4056
4056
|
onUnsubscribe() {
|
|
4057
4057
|
this.hasListeners() || this.destroy();
|
|
@@ -4090,13 +4090,13 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4090
4090
|
r,
|
|
4091
4091
|
this.options,
|
|
4092
4092
|
n
|
|
4093
|
-
) && re(this, de,
|
|
4093
|
+
) && re(this, de, Ms).call(this), this.updateResult(), s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || On(this.options.staleTime, I(this, ce)) !== On(n.staleTime, I(this, ce))) && re(this, de, Sc).call(this);
|
|
4094
4094
|
const a = re(this, de, Pc).call(this);
|
|
4095
4095
|
s && (I(this, ce) !== r || xt(this.options.enabled, I(this, ce)) !== xt(n.enabled, I(this, ce)) || a !== I(this, Bn)) && re(this, de, Bc).call(this, a);
|
|
4096
4096
|
}
|
|
4097
4097
|
getOptimisticResult(t) {
|
|
4098
4098
|
const n = I(this, Xe).getQueryCache().build(I(this, Xe), t), r = this.createResult(n, t);
|
|
4099
|
-
return Wb(this, r) && (V(this, Ge, r), V(this,
|
|
4099
|
+
return Wb(this, r) && (V(this, Ge, r), V(this, qr, this.options), V(this, Yn, I(this, ce).state)), r;
|
|
4100
4100
|
}
|
|
4101
4101
|
getCurrentResult() {
|
|
4102
4102
|
return I(this, Ge);
|
|
@@ -4111,7 +4111,7 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4111
4111
|
});
|
|
4112
4112
|
}
|
|
4113
4113
|
trackProp(t) {
|
|
4114
|
-
I(this,
|
|
4114
|
+
I(this, Zr).add(t);
|
|
4115
4115
|
}
|
|
4116
4116
|
getCurrentQuery() {
|
|
4117
4117
|
return I(this, ce);
|
|
@@ -4126,14 +4126,14 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4126
4126
|
return r.fetch().then(() => this.createResult(r, n));
|
|
4127
4127
|
}
|
|
4128
4128
|
fetch(t) {
|
|
4129
|
-
return re(this, de,
|
|
4129
|
+
return re(this, de, Ms).call(this, {
|
|
4130
4130
|
...t,
|
|
4131
4131
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
4132
4132
|
}).then(() => (this.updateResult(), I(this, Ge)));
|
|
4133
4133
|
}
|
|
4134
4134
|
createResult(t, n) {
|
|
4135
4135
|
var b;
|
|
4136
|
-
const r = I(this, ce), s = this.options, a = I(this, Ge), o = I(this, Yn), i = I(this,
|
|
4136
|
+
const r = I(this, ce), s = this.options, a = I(this, Ge), o = I(this, Yn), i = I(this, qr), l = t !== r ? t.state : I(this, ha), { state: d } = t;
|
|
4137
4137
|
let p = { ...d }, f = !1, m;
|
|
4138
4138
|
if (n._optimisticResults) {
|
|
4139
4139
|
const x = this.hasListeners(), C = !x && cd(t, n), E = x && ld(t, r, n, s);
|
|
@@ -4148,8 +4148,8 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4148
4148
|
if (n.placeholderData !== void 0 && m === void 0 && P === "pending") {
|
|
4149
4149
|
let x;
|
|
4150
4150
|
a != null && a.isPlaceholderData && n.placeholderData === (i == null ? void 0 : i.placeholderData) ? (x = a.data, B = !0) : x = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
4151
|
-
(b = I(this,
|
|
4152
|
-
I(this,
|
|
4151
|
+
(b = I(this, Wr)) == null ? void 0 : b.state.data,
|
|
4152
|
+
I(this, Wr)
|
|
4153
4153
|
) : n.placeholderData, x !== void 0 && (P = "success", m = vc(
|
|
4154
4154
|
a == null ? void 0 : a.data,
|
|
4155
4155
|
x,
|
|
@@ -4158,14 +4158,14 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4158
4158
|
}
|
|
4159
4159
|
if (n.select && m !== void 0 && !B)
|
|
4160
4160
|
if (a && m === (o == null ? void 0 : o.data) && n.select === I(this, ba))
|
|
4161
|
-
m = I(this,
|
|
4161
|
+
m = I(this, Kr);
|
|
4162
4162
|
else
|
|
4163
4163
|
try {
|
|
4164
|
-
V(this, ba, n.select), m = n.select(m), m = vc(a == null ? void 0 : a.data, m, n), V(this,
|
|
4164
|
+
V(this, ba, n.select), m = n.select(m), m = vc(a == null ? void 0 : a.data, m, n), V(this, Kr, m), V(this, Pn, null);
|
|
4165
4165
|
} catch (x) {
|
|
4166
4166
|
V(this, Pn, x);
|
|
4167
4167
|
}
|
|
4168
|
-
I(this, Pn) && (y = I(this, Pn), m = I(this,
|
|
4168
|
+
I(this, Pn) && (y = I(this, Pn), m = I(this, Kr), g = Date.now(), P = "error");
|
|
4169
4169
|
const v = p.fetchStatus === "fetching", U = P === "pending", k = P === "error", O = U && v, N = m !== void 0, h = {
|
|
4170
4170
|
status: P,
|
|
4171
4171
|
fetchStatus: p.fetchStatus,
|
|
@@ -4217,17 +4217,17 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4217
4217
|
}
|
|
4218
4218
|
updateResult() {
|
|
4219
4219
|
const t = I(this, Ge), n = this.createResult(I(this, ce), this.options);
|
|
4220
|
-
if (V(this, Yn, I(this, ce).state), V(this,
|
|
4220
|
+
if (V(this, Yn, I(this, ce).state), V(this, qr, this.options), I(this, Yn).data !== void 0 && V(this, Wr, I(this, ce)), No(n, t))
|
|
4221
4221
|
return;
|
|
4222
4222
|
V(this, Ge, n);
|
|
4223
4223
|
const r = () => {
|
|
4224
4224
|
if (!t)
|
|
4225
4225
|
return !0;
|
|
4226
4226
|
const { notifyOnChangeProps: s } = this.options, a = typeof s == "function" ? s() : s;
|
|
4227
|
-
if (a === "all" || !a && !I(this,
|
|
4227
|
+
if (a === "all" || !a && !I(this, Zr).size)
|
|
4228
4228
|
return !0;
|
|
4229
4229
|
const o = new Set(
|
|
4230
|
-
a ?? I(this,
|
|
4230
|
+
a ?? I(this, Zr)
|
|
4231
4231
|
);
|
|
4232
4232
|
return this.options.throwOnError && o.add("error"), Object.keys(I(this, Ge)).some((i) => {
|
|
4233
4233
|
const c = i;
|
|
@@ -4239,7 +4239,7 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4239
4239
|
onQueryUpdate() {
|
|
4240
4240
|
this.updateResult(), this.hasListeners() && re(this, de, Uc).call(this);
|
|
4241
4241
|
}
|
|
4242
|
-
}, Xe = new WeakMap(), ce = new WeakMap(), ha = new WeakMap(), Ge = new WeakMap(), Yn = new WeakMap(),
|
|
4242
|
+
}, Xe = new WeakMap(), ce = new WeakMap(), ha = new WeakMap(), Ge = new WeakMap(), Yn = new WeakMap(), qr = new WeakMap(), nn = new WeakMap(), Pn = new WeakMap(), ba = new WeakMap(), Kr = new WeakMap(), Wr = new WeakMap(), er = new WeakMap(), tr = new WeakMap(), Bn = new WeakMap(), Zr = new WeakMap(), de = new WeakSet(), Ms = function(t) {
|
|
4243
4243
|
re(this, de, Dc).call(this);
|
|
4244
4244
|
let n = I(this, ce).fetch(
|
|
4245
4245
|
this.options,
|
|
@@ -4262,7 +4262,7 @@ var Xe, ce, ha, Ge, Yn, Vr, nn, Pn, ba, qr, Kr, er, tr, Bn, Wr, de, Os, Sc, Pc,
|
|
|
4262
4262
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(I(this, ce)) : this.options.refetchInterval) ?? !1;
|
|
4263
4263
|
}, Bc = function(t) {
|
|
4264
4264
|
re(this, de, Fc).call(this), V(this, Bn, t), !(ir || xt(this.options.enabled, I(this, ce)) === !1 || !Ec(I(this, Bn)) || I(this, Bn) === 0) && V(this, tr, Gn.setInterval(() => {
|
|
4265
|
-
(this.options.refetchIntervalInBackground || Tl.isFocused()) && re(this, de,
|
|
4265
|
+
(this.options.refetchIntervalInBackground || Tl.isFocused()) && re(this, de, Ms).call(this);
|
|
4266
4266
|
}, I(this, Bn)));
|
|
4267
4267
|
}, Uc = function() {
|
|
4268
4268
|
re(this, de, Sc).call(this), re(this, de, Bc).call(this, re(this, de, Pc).call(this));
|
|
@@ -4619,7 +4619,7 @@ function i0() {
|
|
|
4619
4619
|
submittedAt: 0
|
|
4620
4620
|
};
|
|
4621
4621
|
}
|
|
4622
|
-
var rn, St, xa, Np, Qb = (Np = class extends
|
|
4622
|
+
var rn, St, xa, Np, Qb = (Np = class extends us {
|
|
4623
4623
|
constructor(t = {}) {
|
|
4624
4624
|
super();
|
|
4625
4625
|
Z(this, rn);
|
|
@@ -4718,7 +4718,7 @@ function qa(e) {
|
|
|
4718
4718
|
var t;
|
|
4719
4719
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
4720
4720
|
}
|
|
4721
|
-
var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends
|
|
4721
|
+
var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends us {
|
|
4722
4722
|
constructor(t, n) {
|
|
4723
4723
|
super();
|
|
4724
4724
|
Z(this, dn);
|
|
@@ -4811,7 +4811,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends ls {
|
|
|
4811
4811
|
d(I(this, Un));
|
|
4812
4812
|
});
|
|
4813
4813
|
});
|
|
4814
|
-
}, _p), Lt, zp, Yb = (zp = class extends
|
|
4814
|
+
}, _p), Lt, zp, Yb = (zp = class extends us {
|
|
4815
4815
|
constructor(t = {}) {
|
|
4816
4816
|
super();
|
|
4817
4817
|
Z(this, Lt);
|
|
@@ -4883,28 +4883,28 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends ls {
|
|
|
4883
4883
|
});
|
|
4884
4884
|
});
|
|
4885
4885
|
}
|
|
4886
|
-
}, Lt = new WeakMap(), zp), we, In, Fn,
|
|
4886
|
+
}, Lt = new WeakMap(), zp), we, In, Fn, Xr, Qr, Dn, Jr, Yr, $p, ey = ($p = class {
|
|
4887
4887
|
constructor(e = {}) {
|
|
4888
4888
|
Z(this, we);
|
|
4889
4889
|
Z(this, In);
|
|
4890
4890
|
Z(this, Fn);
|
|
4891
|
-
Z(this, Zr);
|
|
4892
4891
|
Z(this, Xr);
|
|
4893
|
-
Z(this, Dn);
|
|
4894
4892
|
Z(this, Qr);
|
|
4893
|
+
Z(this, Dn);
|
|
4895
4894
|
Z(this, Jr);
|
|
4896
|
-
|
|
4895
|
+
Z(this, Yr);
|
|
4896
|
+
V(this, we, e.queryCache || new Yb()), V(this, In, e.mutationCache || new Qb()), V(this, Fn, e.defaultOptions || {}), V(this, Xr, /* @__PURE__ */ new Map()), V(this, Qr, /* @__PURE__ */ new Map()), V(this, Dn, 0);
|
|
4897
4897
|
}
|
|
4898
4898
|
mount() {
|
|
4899
|
-
Ha(this, Dn)._++, I(this, Dn) === 1 && (V(this,
|
|
4899
|
+
Ha(this, Dn)._++, I(this, Dn) === 1 && (V(this, Jr, Tl.subscribe(async (e) => {
|
|
4900
4900
|
e && (await this.resumePausedMutations(), I(this, we).onFocus());
|
|
4901
|
-
})), V(this,
|
|
4901
|
+
})), V(this, Yr, zo.subscribe(async (e) => {
|
|
4902
4902
|
e && (await this.resumePausedMutations(), I(this, we).onOnline());
|
|
4903
4903
|
})));
|
|
4904
4904
|
}
|
|
4905
4905
|
unmount() {
|
|
4906
4906
|
var e, t;
|
|
4907
|
-
Ha(this, Dn)._--, I(this, Dn) === 0 && ((e = I(this,
|
|
4907
|
+
Ha(this, Dn)._--, I(this, Dn) === 0 && ((e = I(this, Jr)) == null || e.call(this), V(this, Jr, void 0), (t = I(this, Yr)) == null || t.call(this), V(this, Yr, void 0));
|
|
4908
4908
|
}
|
|
4909
4909
|
isFetching(e) {
|
|
4910
4910
|
return I(this, we).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -5041,27 +5041,27 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends ls {
|
|
|
5041
5041
|
V(this, Fn, e);
|
|
5042
5042
|
}
|
|
5043
5043
|
setQueryDefaults(e, t) {
|
|
5044
|
-
I(this,
|
|
5044
|
+
I(this, Xr).set(cr(e), {
|
|
5045
5045
|
queryKey: e,
|
|
5046
5046
|
defaultOptions: t
|
|
5047
5047
|
});
|
|
5048
5048
|
}
|
|
5049
5049
|
getQueryDefaults(e) {
|
|
5050
|
-
const t = [...I(this,
|
|
5050
|
+
const t = [...I(this, Xr).values()], n = {};
|
|
5051
5051
|
return t.forEach((r) => {
|
|
5052
|
-
|
|
5052
|
+
$s(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
5053
5053
|
}), n;
|
|
5054
5054
|
}
|
|
5055
5055
|
setMutationDefaults(e, t) {
|
|
5056
|
-
I(this,
|
|
5056
|
+
I(this, Qr).set(cr(e), {
|
|
5057
5057
|
mutationKey: e,
|
|
5058
5058
|
defaultOptions: t
|
|
5059
5059
|
});
|
|
5060
5060
|
}
|
|
5061
5061
|
getMutationDefaults(e) {
|
|
5062
|
-
const t = [...I(this,
|
|
5062
|
+
const t = [...I(this, Qr).values()], n = {};
|
|
5063
5063
|
return t.forEach((r) => {
|
|
5064
|
-
|
|
5064
|
+
$s(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
|
|
5065
5065
|
}), n;
|
|
5066
5066
|
}
|
|
5067
5067
|
defaultQueryOptions(e) {
|
|
@@ -5089,7 +5089,7 @@ var sn, Un, Qe, an, dn, Do, Mc, _p, Jb = (_p = class extends ls {
|
|
|
5089
5089
|
clear() {
|
|
5090
5090
|
I(this, we).clear(), I(this, In).clear();
|
|
5091
5091
|
}
|
|
5092
|
-
}, we = new WeakMap(), In = new WeakMap(), Fn = new WeakMap(),
|
|
5092
|
+
}, we = new WeakMap(), In = new WeakMap(), Fn = new WeakMap(), Xr = new WeakMap(), Qr = new WeakMap(), Dn = new WeakMap(), Jr = new WeakMap(), Yr = new WeakMap(), $p), c0 = Re.createContext(
|
|
5093
5093
|
void 0
|
|
5094
5094
|
), Pl = (e) => {
|
|
5095
5095
|
const t = Re.useContext(c0);
|
|
@@ -5624,7 +5624,7 @@ class jy extends rt {
|
|
|
5624
5624
|
});
|
|
5625
5625
|
}
|
|
5626
5626
|
}
|
|
5627
|
-
class
|
|
5627
|
+
class ds extends rt {
|
|
5628
5628
|
constructor({ signature: t, type: n }) {
|
|
5629
5629
|
super(`Invalid ${n} signature.`, {
|
|
5630
5630
|
details: t
|
|
@@ -5776,7 +5776,7 @@ function $c(e, t = {}) {
|
|
|
5776
5776
|
function Xy(e, t = {}) {
|
|
5777
5777
|
const n = Sy(e);
|
|
5778
5778
|
if (!n)
|
|
5779
|
-
throw new
|
|
5779
|
+
throw new ds({ signature: e, type: "function" });
|
|
5780
5780
|
const r = at(n.parameters), s = [], a = r.length;
|
|
5781
5781
|
for (let i = 0; i < a; i++)
|
|
5782
5782
|
s.push(fn(r[i], {
|
|
@@ -5805,7 +5805,7 @@ function Xy(e, t = {}) {
|
|
|
5805
5805
|
function Qy(e, t = {}) {
|
|
5806
5806
|
const n = Ay(e);
|
|
5807
5807
|
if (!n)
|
|
5808
|
-
throw new
|
|
5808
|
+
throw new ds({ signature: e, type: "event" });
|
|
5809
5809
|
const r = at(n.parameters), s = [], a = r.length;
|
|
5810
5810
|
for (let o = 0; o < a; o++)
|
|
5811
5811
|
s.push(fn(r[o], {
|
|
@@ -5818,7 +5818,7 @@ function Qy(e, t = {}) {
|
|
|
5818
5818
|
function Jy(e, t = {}) {
|
|
5819
5819
|
const n = Cy(e);
|
|
5820
5820
|
if (!n)
|
|
5821
|
-
throw new
|
|
5821
|
+
throw new ds({ signature: e, type: "error" });
|
|
5822
5822
|
const r = at(n.parameters), s = [], a = r.length;
|
|
5823
5823
|
for (let o = 0; o < a; o++)
|
|
5824
5824
|
s.push(fn(r[o], { structs: t, type: "error" }));
|
|
@@ -5827,7 +5827,7 @@ function Jy(e, t = {}) {
|
|
|
5827
5827
|
function Yy(e, t = {}) {
|
|
5828
5828
|
const n = Uy(e);
|
|
5829
5829
|
if (!n)
|
|
5830
|
-
throw new
|
|
5830
|
+
throw new ds({ signature: e, type: "constructor" });
|
|
5831
5831
|
const r = at(n.parameters), s = [], a = r.length;
|
|
5832
5832
|
for (let o = 0; o < a; o++)
|
|
5833
5833
|
s.push(fn(r[o], { structs: t, type: "constructor" }));
|
|
@@ -5840,7 +5840,7 @@ function Yy(e, t = {}) {
|
|
|
5840
5840
|
function e6(e) {
|
|
5841
5841
|
const t = Fy(e);
|
|
5842
5842
|
if (!t)
|
|
5843
|
-
throw new
|
|
5843
|
+
throw new ds({ signature: e, type: "fallback" });
|
|
5844
5844
|
return {
|
|
5845
5845
|
type: "fallback",
|
|
5846
5846
|
stateMutability: t.stateMutability ?? "nonpayable"
|
|
@@ -5934,7 +5934,7 @@ function Bl(e) {
|
|
|
5934
5934
|
continue;
|
|
5935
5935
|
const c = Py(i);
|
|
5936
5936
|
if (!c)
|
|
5937
|
-
throw new
|
|
5937
|
+
throw new ds({ signature: i, type: "struct" });
|
|
5938
5938
|
const l = c.properties.split(";"), d = [], p = l.length;
|
|
5939
5939
|
for (let f = 0; f < p; f++) {
|
|
5940
5940
|
const y = l[f].trim();
|
|
@@ -6056,7 +6056,7 @@ function xe(e) {
|
|
|
6056
6056
|
return Gt(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6057
6057
|
}
|
|
6058
6058
|
const k0 = "2.43.3";
|
|
6059
|
-
let
|
|
6059
|
+
let Es = {
|
|
6060
6060
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: n }) => t ? `${e ?? "https://viem.sh"}${t}${n ? `#${n}` : ""}` : void 0,
|
|
6061
6061
|
version: `viem@${k0}`
|
|
6062
6062
|
}, z = class Lc extends Error {
|
|
@@ -6065,13 +6065,13 @@ let ws = {
|
|
|
6065
6065
|
const r = (() => {
|
|
6066
6066
|
var c;
|
|
6067
6067
|
return n.cause instanceof Lc ? n.cause.details : (c = n.cause) != null && c.message ? n.cause.message : n.details;
|
|
6068
|
-
})(), s = n.cause instanceof Lc && n.cause.docsPath || n.docsPath, a = (i =
|
|
6068
|
+
})(), s = n.cause instanceof Lc && n.cause.docsPath || n.docsPath, a = (i = Es.getDocsUrl) == null ? void 0 : i.call(Es, { ...n, docsPath: s }), o = [
|
|
6069
6069
|
t || "An error occurred.",
|
|
6070
6070
|
"",
|
|
6071
6071
|
...n.metaMessages ? [...n.metaMessages, ""] : [],
|
|
6072
6072
|
...a ? [`Docs: ${a}`] : [],
|
|
6073
6073
|
...r ? [`Details: ${r}`] : [],
|
|
6074
|
-
...
|
|
6074
|
+
...Es.version ? [`Version: ${Es.version}`] : []
|
|
6075
6075
|
].join(`
|
|
6076
6076
|
`);
|
|
6077
6077
|
super(o, n.cause ? { cause: n.cause } : void 0), Object.defineProperty(this, "details", {
|
|
@@ -6272,7 +6272,7 @@ class kd extends z {
|
|
|
6272
6272
|
});
|
|
6273
6273
|
}
|
|
6274
6274
|
}
|
|
6275
|
-
class
|
|
6275
|
+
class ns extends z {
|
|
6276
6276
|
constructor(t, { docsPath: n } = {}) {
|
|
6277
6277
|
super([
|
|
6278
6278
|
`Function ${t ? `"${t}" ` : ""}not found on ABI.`,
|
|
@@ -6521,7 +6521,7 @@ function it(e, t = {}) {
|
|
|
6521
6521
|
}
|
|
6522
6522
|
const P6 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
6523
6523
|
function le(e, t = {}) {
|
|
6524
|
-
return typeof e == "number" || typeof e == "bigint" ? H(e, t) : typeof e == "string" ?
|
|
6524
|
+
return typeof e == "number" || typeof e == "bigint" ? H(e, t) : typeof e == "string" ? rs(e, t) : typeof e == "boolean" ? I0(e, t) : Pe(e, t);
|
|
6525
6525
|
}
|
|
6526
6526
|
function I0(e, t = {}) {
|
|
6527
6527
|
const n = `0x${Number(e)}`;
|
|
@@ -6553,7 +6553,7 @@ function H(e, t = {}) {
|
|
|
6553
6553
|
return r ? yr(i, { size: r }) : i;
|
|
6554
6554
|
}
|
|
6555
6555
|
const B6 = /* @__PURE__ */ new TextEncoder();
|
|
6556
|
-
function
|
|
6556
|
+
function rs(e, t = {}) {
|
|
6557
6557
|
const n = B6.encode(e);
|
|
6558
6558
|
return Pe(n, t);
|
|
6559
6559
|
}
|
|
@@ -6626,7 +6626,7 @@ const _6 = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), z6 = (e, t, n, r) =>
|
|
|
6626
6626
|
function j6(e) {
|
|
6627
6627
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
6628
6628
|
}
|
|
6629
|
-
function
|
|
6629
|
+
function Ls(e) {
|
|
6630
6630
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
6631
6631
|
throw new Error("positive integer expected, got " + e);
|
|
6632
6632
|
}
|
|
@@ -6639,9 +6639,9 @@ function lr(e, ...t) {
|
|
|
6639
6639
|
function V6(e) {
|
|
6640
6640
|
if (typeof e != "function" || typeof e.create != "function")
|
|
6641
6641
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
6642
|
-
|
|
6642
|
+
Ls(e.outputLen), Ls(e.blockLen);
|
|
6643
6643
|
}
|
|
6644
|
-
function
|
|
6644
|
+
function ss(e, t = !0) {
|
|
6645
6645
|
if (e.destroyed)
|
|
6646
6646
|
throw new Error("Hash instance has been destroyed");
|
|
6647
6647
|
if (t && e.finished)
|
|
@@ -6710,12 +6710,12 @@ function J6(e = 32) {
|
|
|
6710
6710
|
return Uint8Array.from(Pr.randomBytes(e));
|
|
6711
6711
|
throw new Error("crypto.getRandomValues must be defined");
|
|
6712
6712
|
}
|
|
6713
|
-
const Y6 = BigInt(0),
|
|
6714
|
-
for (let e = 0, t =
|
|
6713
|
+
const Y6 = BigInt(0), ks = BigInt(1), e2 = BigInt(2), t2 = BigInt(7), n2 = BigInt(256), r2 = BigInt(113), O0 = [], M0 = [], R0 = [];
|
|
6714
|
+
for (let e = 0, t = ks, n = 1, r = 0; e < 24; e++) {
|
|
6715
6715
|
[n, r] = [r, (2 * n + 3 * r) % 5], O0.push(2 * (5 * r + n)), M0.push((e + 1) * (e + 2) / 2 % 64);
|
|
6716
6716
|
let s = Y6;
|
|
6717
6717
|
for (let a = 0; a < 7; a++)
|
|
6718
|
-
t = (t <<
|
|
6718
|
+
t = (t << ks ^ (t >> t2) * r2) % n2, t & e2 && (s ^= ks << (ks << /* @__PURE__ */ BigInt(a)) - ks);
|
|
6719
6719
|
R0.push(s);
|
|
6720
6720
|
}
|
|
6721
6721
|
const N0 = F0(R0, !0), s2 = N0[0], a2 = N0[1], Bd = (e, t, n) => n > 32 ? R6(e, t, n) : O6(e, t, n), Ud = (e, t, n) => n > 32 ? N6(e, t, n) : M6(e, t, n);
|
|
@@ -6747,7 +6747,7 @@ function o2(e, t = 24) {
|
|
|
6747
6747
|
class Fl extends Il {
|
|
6748
6748
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
6749
6749
|
constructor(t, n, r, s = !1, a = 24) {
|
|
6750
|
-
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = a,
|
|
6750
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = a, Ls(r), !(0 < t && t < 200))
|
|
6751
6751
|
throw new Error("only keccak-f1600 function is supported");
|
|
6752
6752
|
this.state = new Uint8Array(200), this.state32 = q6(this.state);
|
|
6753
6753
|
}
|
|
@@ -6758,7 +6758,7 @@ class Fl extends Il {
|
|
|
6758
6758
|
Pd(this.state32), o2(this.state32, this.rounds), Pd(this.state32), this.posOut = 0, this.pos = 0;
|
|
6759
6759
|
}
|
|
6760
6760
|
update(t) {
|
|
6761
|
-
|
|
6761
|
+
ss(this), t = ni(t), lr(t);
|
|
6762
6762
|
const { blockLen: n, state: r } = this, s = t.length;
|
|
6763
6763
|
for (let a = 0; a < s; ) {
|
|
6764
6764
|
const o = Math.min(n - this.pos, s - a);
|
|
@@ -6776,7 +6776,7 @@ class Fl extends Il {
|
|
|
6776
6776
|
t[r] ^= n, (n & 128) !== 0 && r === s - 1 && this.keccak(), t[s - 1] ^= 128, this.keccak();
|
|
6777
6777
|
}
|
|
6778
6778
|
writeInto(t) {
|
|
6779
|
-
|
|
6779
|
+
ss(this, !1), lr(t), this.finish();
|
|
6780
6780
|
const n = this.state, { blockLen: r } = this;
|
|
6781
6781
|
for (let s = 0, a = t.length; s < a; ) {
|
|
6782
6782
|
this.posOut >= r && this.keccak();
|
|
@@ -6791,7 +6791,7 @@ class Fl extends Il {
|
|
|
6791
6791
|
return this.writeInto(t);
|
|
6792
6792
|
}
|
|
6793
6793
|
xof(t) {
|
|
6794
|
-
return
|
|
6794
|
+
return Ls(t), this.xofInto(new Uint8Array(t));
|
|
6795
6795
|
}
|
|
6796
6796
|
digestInto(t) {
|
|
6797
6797
|
if (D0(t, this), this.finished)
|
|
@@ -6861,7 +6861,7 @@ let Ue = class extends z {
|
|
|
6861
6861
|
name: "InvalidAddressError"
|
|
6862
6862
|
});
|
|
6863
6863
|
}
|
|
6864
|
-
},
|
|
6864
|
+
}, ps = class extends Map {
|
|
6865
6865
|
constructor(t) {
|
|
6866
6866
|
super(), Object.defineProperty(this, "maxSize", {
|
|
6867
6867
|
enumerable: !0,
|
|
@@ -6882,7 +6882,7 @@ let Ue = class extends z {
|
|
|
6882
6882
|
return this;
|
|
6883
6883
|
}
|
|
6884
6884
|
};
|
|
6885
|
-
const Gi = /* @__PURE__ */ new
|
|
6885
|
+
const Gi = /* @__PURE__ */ new ps(8192);
|
|
6886
6886
|
function ka(e, t) {
|
|
6887
6887
|
if (Gi.has(`${e}.${t}`))
|
|
6888
6888
|
return Gi.get(`${e}.${t}`);
|
|
@@ -6897,7 +6897,7 @@ function Dl(e, t) {
|
|
|
6897
6897
|
throw new Ue({ address: e });
|
|
6898
6898
|
return ka(e, t);
|
|
6899
6899
|
}
|
|
6900
|
-
const p2 = /^0x[a-fA-F0-9]{40}$/, ji = /* @__PURE__ */ new
|
|
6900
|
+
const p2 = /^0x[a-fA-F0-9]{40}$/, ji = /* @__PURE__ */ new ps(8192);
|
|
6901
6901
|
function be(e, t) {
|
|
6902
6902
|
const { strict: n = !0 } = t ?? {}, r = `${e}.${n}`;
|
|
6903
6903
|
if (ji.has(r))
|
|
@@ -7099,7 +7099,7 @@ function w2(e, { signed: t, size: n = 256 }) {
|
|
|
7099
7099
|
};
|
|
7100
7100
|
}
|
|
7101
7101
|
function E2(e) {
|
|
7102
|
-
const t =
|
|
7102
|
+
const t = rs(e), n = Math.ceil(xe(t) / 32), r = [];
|
|
7103
7103
|
for (let s = 0; s < n; s++)
|
|
7104
7104
|
r.push(Mn(ur(t, s * 32, (s + 1) * 32), {
|
|
7105
7105
|
dir: "right"
|
|
@@ -7278,11 +7278,11 @@ function C2(e) {
|
|
|
7278
7278
|
name: r
|
|
7279
7279
|
});
|
|
7280
7280
|
if (!a)
|
|
7281
|
-
throw new
|
|
7281
|
+
throw new ns(r, { docsPath: Dd });
|
|
7282
7282
|
s = a;
|
|
7283
7283
|
}
|
|
7284
7284
|
if (s.type !== "function")
|
|
7285
|
-
throw new
|
|
7285
|
+
throw new ns(void 0, { docsPath: Dd });
|
|
7286
7286
|
return {
|
|
7287
7287
|
abi: [s],
|
|
7288
7288
|
functionName: Ca(Bt(s))
|
|
@@ -7538,7 +7538,7 @@ function F2(e, t, { length: n, staticPosition: r }) {
|
|
|
7538
7538
|
if (!n) {
|
|
7539
7539
|
const o = ln(e.readBytes(jc)), i = r + o, c = i + Md;
|
|
7540
7540
|
e.setPosition(i);
|
|
7541
|
-
const l = ln(e.readBytes(Md)), d =
|
|
7541
|
+
const l = ln(e.readBytes(Md)), d = Hs(t);
|
|
7542
7542
|
let p = 0;
|
|
7543
7543
|
const f = [];
|
|
7544
7544
|
for (let m = 0; m < l; ++m) {
|
|
@@ -7550,7 +7550,7 @@ function F2(e, t, { length: n, staticPosition: r }) {
|
|
|
7550
7550
|
}
|
|
7551
7551
|
return e.setPosition(r + 32), [f, 32];
|
|
7552
7552
|
}
|
|
7553
|
-
if (
|
|
7553
|
+
if (Hs(t)) {
|
|
7554
7554
|
const o = ln(e.readBytes(jc)), i = r + o, c = [];
|
|
7555
7555
|
for (let l = 0; l < n; ++l) {
|
|
7556
7556
|
e.setPosition(i + l * 32);
|
|
@@ -7597,7 +7597,7 @@ function M2(e, t) {
|
|
|
7597
7597
|
function R2(e, t, { staticPosition: n }) {
|
|
7598
7598
|
const r = t.components.length === 0 || t.components.some(({ name: o }) => !o), s = r ? [] : {};
|
|
7599
7599
|
let a = 0;
|
|
7600
|
-
if (
|
|
7600
|
+
if (Hs(t)) {
|
|
7601
7601
|
const o = ln(e.readBytes(jc)), i = n + o;
|
|
7602
7602
|
for (let c = 0; c < t.components.length; ++c) {
|
|
7603
7603
|
const l = t.components[c];
|
|
@@ -7626,15 +7626,15 @@ function N2(e, { staticPosition: t }) {
|
|
|
7626
7626
|
const a = e.readBytes(s, 32), o = U2(tt(a));
|
|
7627
7627
|
return e.setPosition(t + 32), [o, 32];
|
|
7628
7628
|
}
|
|
7629
|
-
function
|
|
7629
|
+
function Hs(e) {
|
|
7630
7630
|
var r;
|
|
7631
7631
|
const { type: t } = e;
|
|
7632
7632
|
if (t === "string" || t === "bytes" || t.endsWith("[]"))
|
|
7633
7633
|
return !0;
|
|
7634
7634
|
if (t === "tuple")
|
|
7635
|
-
return (r = e.components) == null ? void 0 : r.some(
|
|
7635
|
+
return (r = e.components) == null ? void 0 : r.some(Hs);
|
|
7636
7636
|
const n = Rl(e.type);
|
|
7637
|
-
return !!(n &&
|
|
7637
|
+
return !!(n && Hs({ ...e, type: n[1] }));
|
|
7638
7638
|
}
|
|
7639
7639
|
function _2(e) {
|
|
7640
7640
|
const { abi: t, data: n } = e, r = ur(n, 0, 4);
|
|
@@ -8017,7 +8017,7 @@ class oi extends z {
|
|
|
8017
8017
|
}), this.data = t;
|
|
8018
8018
|
}
|
|
8019
8019
|
}
|
|
8020
|
-
class
|
|
8020
|
+
class _s extends z {
|
|
8021
8021
|
constructor({ body: t, cause: n, details: r, headers: s, status: a, url: o }) {
|
|
8022
8022
|
super("HTTP request failed.", {
|
|
8023
8023
|
cause: n,
|
|
@@ -8116,55 +8116,55 @@ class ut extends st {
|
|
|
8116
8116
|
}), this.data = n.data;
|
|
8117
8117
|
}
|
|
8118
8118
|
}
|
|
8119
|
-
class
|
|
8119
|
+
class Gs extends st {
|
|
8120
8120
|
constructor(t) {
|
|
8121
8121
|
super(t, {
|
|
8122
|
-
code:
|
|
8122
|
+
code: Gs.code,
|
|
8123
8123
|
name: "ParseRpcError",
|
|
8124
8124
|
shortMessage: "Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."
|
|
8125
8125
|
});
|
|
8126
8126
|
}
|
|
8127
8127
|
}
|
|
8128
|
-
Object.defineProperty(
|
|
8128
|
+
Object.defineProperty(Gs, "code", {
|
|
8129
8129
|
enumerable: !0,
|
|
8130
8130
|
configurable: !0,
|
|
8131
8131
|
writable: !0,
|
|
8132
8132
|
value: -32700
|
|
8133
8133
|
});
|
|
8134
|
-
class
|
|
8134
|
+
class js extends st {
|
|
8135
8135
|
constructor(t) {
|
|
8136
8136
|
super(t, {
|
|
8137
|
-
code:
|
|
8137
|
+
code: js.code,
|
|
8138
8138
|
name: "InvalidRequestRpcError",
|
|
8139
8139
|
shortMessage: "JSON is not a valid request object."
|
|
8140
8140
|
});
|
|
8141
8141
|
}
|
|
8142
8142
|
}
|
|
8143
|
-
Object.defineProperty(
|
|
8143
|
+
Object.defineProperty(js, "code", {
|
|
8144
8144
|
enumerable: !0,
|
|
8145
8145
|
configurable: !0,
|
|
8146
8146
|
writable: !0,
|
|
8147
8147
|
value: -32600
|
|
8148
8148
|
});
|
|
8149
|
-
class
|
|
8149
|
+
class Vs extends st {
|
|
8150
8150
|
constructor(t, { method: n } = {}) {
|
|
8151
8151
|
super(t, {
|
|
8152
|
-
code:
|
|
8152
|
+
code: Vs.code,
|
|
8153
8153
|
name: "MethodNotFoundRpcError",
|
|
8154
8154
|
shortMessage: `The method${n ? ` "${n}"` : ""} does not exist / is not available.`
|
|
8155
8155
|
});
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
|
-
Object.defineProperty(
|
|
8158
|
+
Object.defineProperty(Vs, "code", {
|
|
8159
8159
|
enumerable: !0,
|
|
8160
8160
|
configurable: !0,
|
|
8161
8161
|
writable: !0,
|
|
8162
8162
|
value: -32601
|
|
8163
8163
|
});
|
|
8164
|
-
class
|
|
8164
|
+
class qs extends st {
|
|
8165
8165
|
constructor(t) {
|
|
8166
8166
|
super(t, {
|
|
8167
|
-
code:
|
|
8167
|
+
code: qs.code,
|
|
8168
8168
|
name: "InvalidParamsRpcError",
|
|
8169
8169
|
shortMessage: [
|
|
8170
8170
|
"Invalid parameters were provided to the RPC method.",
|
|
@@ -8174,7 +8174,7 @@ class Vs extends st {
|
|
|
8174
8174
|
});
|
|
8175
8175
|
}
|
|
8176
8176
|
}
|
|
8177
|
-
Object.defineProperty(
|
|
8177
|
+
Object.defineProperty(qs, "code", {
|
|
8178
8178
|
enumerable: !0,
|
|
8179
8179
|
configurable: !0,
|
|
8180
8180
|
writable: !0,
|
|
@@ -8214,10 +8214,10 @@ Object.defineProperty(Nn, "code", {
|
|
|
8214
8214
|
writable: !0,
|
|
8215
8215
|
value: -32e3
|
|
8216
8216
|
});
|
|
8217
|
-
class
|
|
8217
|
+
class Ks extends st {
|
|
8218
8218
|
constructor(t) {
|
|
8219
8219
|
super(t, {
|
|
8220
|
-
code:
|
|
8220
|
+
code: Ks.code,
|
|
8221
8221
|
name: "ResourceNotFoundRpcError",
|
|
8222
8222
|
shortMessage: "Requested resource not found."
|
|
8223
8223
|
}), Object.defineProperty(this, "name", {
|
|
@@ -8228,37 +8228,37 @@ class qs extends st {
|
|
|
8228
8228
|
});
|
|
8229
8229
|
}
|
|
8230
8230
|
}
|
|
8231
|
-
Object.defineProperty(
|
|
8231
|
+
Object.defineProperty(Ks, "code", {
|
|
8232
8232
|
enumerable: !0,
|
|
8233
8233
|
configurable: !0,
|
|
8234
8234
|
writable: !0,
|
|
8235
8235
|
value: -32001
|
|
8236
8236
|
});
|
|
8237
|
-
class
|
|
8237
|
+
class Ws extends st {
|
|
8238
8238
|
constructor(t) {
|
|
8239
8239
|
super(t, {
|
|
8240
|
-
code:
|
|
8240
|
+
code: Ws.code,
|
|
8241
8241
|
name: "ResourceUnavailableRpcError",
|
|
8242
8242
|
shortMessage: "Requested resource not available."
|
|
8243
8243
|
});
|
|
8244
8244
|
}
|
|
8245
8245
|
}
|
|
8246
|
-
Object.defineProperty(
|
|
8246
|
+
Object.defineProperty(Ws, "code", {
|
|
8247
8247
|
enumerable: !0,
|
|
8248
8248
|
configurable: !0,
|
|
8249
8249
|
writable: !0,
|
|
8250
8250
|
value: -32002
|
|
8251
8251
|
});
|
|
8252
|
-
class
|
|
8252
|
+
class Zs extends st {
|
|
8253
8253
|
constructor(t) {
|
|
8254
8254
|
super(t, {
|
|
8255
|
-
code:
|
|
8255
|
+
code: Zs.code,
|
|
8256
8256
|
name: "TransactionRejectedRpcError",
|
|
8257
8257
|
shortMessage: "Transaction creation failed."
|
|
8258
8258
|
});
|
|
8259
8259
|
}
|
|
8260
8260
|
}
|
|
8261
|
-
Object.defineProperty(
|
|
8261
|
+
Object.defineProperty(Zs, "code", {
|
|
8262
8262
|
enumerable: !0,
|
|
8263
8263
|
configurable: !0,
|
|
8264
8264
|
writable: !0,
|
|
@@ -8279,31 +8279,31 @@ Object.defineProperty(jn, "code", {
|
|
|
8279
8279
|
writable: !0,
|
|
8280
8280
|
value: -32004
|
|
8281
8281
|
});
|
|
8282
|
-
class
|
|
8282
|
+
class as extends st {
|
|
8283
8283
|
constructor(t) {
|
|
8284
8284
|
super(t, {
|
|
8285
|
-
code:
|
|
8285
|
+
code: as.code,
|
|
8286
8286
|
name: "LimitExceededRpcError",
|
|
8287
8287
|
shortMessage: "Request exceeds defined limit."
|
|
8288
8288
|
});
|
|
8289
8289
|
}
|
|
8290
8290
|
}
|
|
8291
|
-
Object.defineProperty(
|
|
8291
|
+
Object.defineProperty(as, "code", {
|
|
8292
8292
|
enumerable: !0,
|
|
8293
8293
|
configurable: !0,
|
|
8294
8294
|
writable: !0,
|
|
8295
8295
|
value: -32005
|
|
8296
8296
|
});
|
|
8297
|
-
class
|
|
8297
|
+
class Xs extends st {
|
|
8298
8298
|
constructor(t) {
|
|
8299
8299
|
super(t, {
|
|
8300
|
-
code:
|
|
8300
|
+
code: Xs.code,
|
|
8301
8301
|
name: "JsonRpcVersionUnsupportedError",
|
|
8302
8302
|
shortMessage: "Version of JSON-RPC protocol is not supported."
|
|
8303
8303
|
});
|
|
8304
8304
|
}
|
|
8305
8305
|
}
|
|
8306
|
-
Object.defineProperty(
|
|
8306
|
+
Object.defineProperty(Xs, "code", {
|
|
8307
8307
|
enumerable: !0,
|
|
8308
8308
|
configurable: !0,
|
|
8309
8309
|
writable: !0,
|
|
@@ -8324,181 +8324,181 @@ Object.defineProperty(_r, "code", {
|
|
|
8324
8324
|
writable: !0,
|
|
8325
8325
|
value: 4001
|
|
8326
8326
|
});
|
|
8327
|
-
class
|
|
8327
|
+
class Qs extends ut {
|
|
8328
8328
|
constructor(t) {
|
|
8329
8329
|
super(t, {
|
|
8330
|
-
code:
|
|
8330
|
+
code: Qs.code,
|
|
8331
8331
|
name: "UnauthorizedProviderError",
|
|
8332
8332
|
shortMessage: "The requested method and/or account has not been authorized by the user."
|
|
8333
8333
|
});
|
|
8334
8334
|
}
|
|
8335
8335
|
}
|
|
8336
|
-
Object.defineProperty(
|
|
8336
|
+
Object.defineProperty(Qs, "code", {
|
|
8337
8337
|
enumerable: !0,
|
|
8338
8338
|
configurable: !0,
|
|
8339
8339
|
writable: !0,
|
|
8340
8340
|
value: 4100
|
|
8341
8341
|
});
|
|
8342
|
-
class
|
|
8342
|
+
class Js extends ut {
|
|
8343
8343
|
constructor(t, { method: n } = {}) {
|
|
8344
8344
|
super(t, {
|
|
8345
|
-
code:
|
|
8345
|
+
code: Js.code,
|
|
8346
8346
|
name: "UnsupportedProviderMethodError",
|
|
8347
8347
|
shortMessage: `The Provider does not support the requested method${n ? ` " ${n}"` : ""}.`
|
|
8348
8348
|
});
|
|
8349
8349
|
}
|
|
8350
8350
|
}
|
|
8351
|
-
Object.defineProperty(
|
|
8351
|
+
Object.defineProperty(Js, "code", {
|
|
8352
8352
|
enumerable: !0,
|
|
8353
8353
|
configurable: !0,
|
|
8354
8354
|
writable: !0,
|
|
8355
8355
|
value: 4200
|
|
8356
8356
|
});
|
|
8357
|
-
class
|
|
8357
|
+
class Ys extends ut {
|
|
8358
8358
|
constructor(t) {
|
|
8359
8359
|
super(t, {
|
|
8360
|
-
code:
|
|
8360
|
+
code: Ys.code,
|
|
8361
8361
|
name: "ProviderDisconnectedError",
|
|
8362
8362
|
shortMessage: "The Provider is disconnected from all chains."
|
|
8363
8363
|
});
|
|
8364
8364
|
}
|
|
8365
8365
|
}
|
|
8366
|
-
Object.defineProperty(
|
|
8366
|
+
Object.defineProperty(Ys, "code", {
|
|
8367
8367
|
enumerable: !0,
|
|
8368
8368
|
configurable: !0,
|
|
8369
8369
|
writable: !0,
|
|
8370
8370
|
value: 4900
|
|
8371
8371
|
});
|
|
8372
|
-
class
|
|
8372
|
+
class ea extends ut {
|
|
8373
8373
|
constructor(t) {
|
|
8374
8374
|
super(t, {
|
|
8375
|
-
code:
|
|
8375
|
+
code: ea.code,
|
|
8376
8376
|
name: "ChainDisconnectedError",
|
|
8377
8377
|
shortMessage: "The Provider is not connected to the requested chain."
|
|
8378
8378
|
});
|
|
8379
8379
|
}
|
|
8380
8380
|
}
|
|
8381
|
-
Object.defineProperty(
|
|
8381
|
+
Object.defineProperty(ea, "code", {
|
|
8382
8382
|
enumerable: !0,
|
|
8383
8383
|
configurable: !0,
|
|
8384
8384
|
writable: !0,
|
|
8385
8385
|
value: 4901
|
|
8386
8386
|
});
|
|
8387
|
-
class
|
|
8387
|
+
class ta extends ut {
|
|
8388
8388
|
constructor(t) {
|
|
8389
8389
|
super(t, {
|
|
8390
|
-
code:
|
|
8390
|
+
code: ta.code,
|
|
8391
8391
|
name: "SwitchChainError",
|
|
8392
8392
|
shortMessage: "An error occurred when attempting to switch chain."
|
|
8393
8393
|
});
|
|
8394
8394
|
}
|
|
8395
8395
|
}
|
|
8396
|
-
Object.defineProperty(
|
|
8396
|
+
Object.defineProperty(ta, "code", {
|
|
8397
8397
|
enumerable: !0,
|
|
8398
8398
|
configurable: !0,
|
|
8399
8399
|
writable: !0,
|
|
8400
8400
|
value: 4902
|
|
8401
8401
|
});
|
|
8402
|
-
class
|
|
8402
|
+
class os extends ut {
|
|
8403
8403
|
constructor(t) {
|
|
8404
8404
|
super(t, {
|
|
8405
|
-
code:
|
|
8405
|
+
code: os.code,
|
|
8406
8406
|
name: "UnsupportedNonOptionalCapabilityError",
|
|
8407
8407
|
shortMessage: "This Wallet does not support a capability that was not marked as optional."
|
|
8408
8408
|
});
|
|
8409
8409
|
}
|
|
8410
8410
|
}
|
|
8411
|
-
Object.defineProperty(
|
|
8411
|
+
Object.defineProperty(os, "code", {
|
|
8412
8412
|
enumerable: !0,
|
|
8413
8413
|
configurable: !0,
|
|
8414
8414
|
writable: !0,
|
|
8415
8415
|
value: 5700
|
|
8416
8416
|
});
|
|
8417
|
-
class
|
|
8417
|
+
class na extends ut {
|
|
8418
8418
|
constructor(t) {
|
|
8419
8419
|
super(t, {
|
|
8420
|
-
code:
|
|
8420
|
+
code: na.code,
|
|
8421
8421
|
name: "UnsupportedChainIdError",
|
|
8422
8422
|
shortMessage: "This Wallet does not support the requested chain ID."
|
|
8423
8423
|
});
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
Object.defineProperty(
|
|
8426
|
+
Object.defineProperty(na, "code", {
|
|
8427
8427
|
enumerable: !0,
|
|
8428
8428
|
configurable: !0,
|
|
8429
8429
|
writable: !0,
|
|
8430
8430
|
value: 5710
|
|
8431
8431
|
});
|
|
8432
|
-
class
|
|
8432
|
+
class ra extends ut {
|
|
8433
8433
|
constructor(t) {
|
|
8434
8434
|
super(t, {
|
|
8435
|
-
code:
|
|
8435
|
+
code: ra.code,
|
|
8436
8436
|
name: "DuplicateIdError",
|
|
8437
8437
|
shortMessage: "There is already a bundle submitted with this ID."
|
|
8438
8438
|
});
|
|
8439
8439
|
}
|
|
8440
8440
|
}
|
|
8441
|
-
Object.defineProperty(
|
|
8441
|
+
Object.defineProperty(ra, "code", {
|
|
8442
8442
|
enumerable: !0,
|
|
8443
8443
|
configurable: !0,
|
|
8444
8444
|
writable: !0,
|
|
8445
8445
|
value: 5720
|
|
8446
8446
|
});
|
|
8447
|
-
class
|
|
8447
|
+
class sa extends ut {
|
|
8448
8448
|
constructor(t) {
|
|
8449
8449
|
super(t, {
|
|
8450
|
-
code:
|
|
8450
|
+
code: sa.code,
|
|
8451
8451
|
name: "UnknownBundleIdError",
|
|
8452
8452
|
shortMessage: "This bundle id is unknown / has not been submitted"
|
|
8453
8453
|
});
|
|
8454
8454
|
}
|
|
8455
8455
|
}
|
|
8456
|
-
Object.defineProperty(
|
|
8456
|
+
Object.defineProperty(sa, "code", {
|
|
8457
8457
|
enumerable: !0,
|
|
8458
8458
|
configurable: !0,
|
|
8459
8459
|
writable: !0,
|
|
8460
8460
|
value: 5730
|
|
8461
8461
|
});
|
|
8462
|
-
class
|
|
8462
|
+
class aa extends ut {
|
|
8463
8463
|
constructor(t) {
|
|
8464
8464
|
super(t, {
|
|
8465
|
-
code:
|
|
8465
|
+
code: aa.code,
|
|
8466
8466
|
name: "BundleTooLargeError",
|
|
8467
8467
|
shortMessage: "The call bundle is too large for the Wallet to process."
|
|
8468
8468
|
});
|
|
8469
8469
|
}
|
|
8470
8470
|
}
|
|
8471
|
-
Object.defineProperty(
|
|
8471
|
+
Object.defineProperty(aa, "code", {
|
|
8472
8472
|
enumerable: !0,
|
|
8473
8473
|
configurable: !0,
|
|
8474
8474
|
writable: !0,
|
|
8475
8475
|
value: 5740
|
|
8476
8476
|
});
|
|
8477
|
-
class
|
|
8477
|
+
class oa extends ut {
|
|
8478
8478
|
constructor(t) {
|
|
8479
8479
|
super(t, {
|
|
8480
|
-
code:
|
|
8480
|
+
code: oa.code,
|
|
8481
8481
|
name: "AtomicReadyWalletRejectedUpgradeError",
|
|
8482
8482
|
shortMessage: "The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."
|
|
8483
8483
|
});
|
|
8484
8484
|
}
|
|
8485
8485
|
}
|
|
8486
|
-
Object.defineProperty(
|
|
8486
|
+
Object.defineProperty(oa, "code", {
|
|
8487
8487
|
enumerable: !0,
|
|
8488
8488
|
configurable: !0,
|
|
8489
8489
|
writable: !0,
|
|
8490
8490
|
value: 5750
|
|
8491
8491
|
});
|
|
8492
|
-
class
|
|
8492
|
+
class is extends ut {
|
|
8493
8493
|
constructor(t) {
|
|
8494
8494
|
super(t, {
|
|
8495
|
-
code:
|
|
8495
|
+
code: is.code,
|
|
8496
8496
|
name: "AtomicityNotSupportedError",
|
|
8497
8497
|
shortMessage: "The wallet does not support atomic execution but the request requires it."
|
|
8498
8498
|
});
|
|
8499
8499
|
}
|
|
8500
8500
|
}
|
|
8501
|
-
Object.defineProperty(
|
|
8501
|
+
Object.defineProperty(is, "code", {
|
|
8502
8502
|
enumerable: !0,
|
|
8503
8503
|
configurable: !0,
|
|
8504
8504
|
writable: !0,
|
|
@@ -8802,7 +8802,7 @@ Object.defineProperty(Yc, "nodeMessage", {
|
|
|
8802
8802
|
writable: !0,
|
|
8803
8803
|
value: /transaction type not valid/
|
|
8804
8804
|
});
|
|
8805
|
-
let
|
|
8805
|
+
let cs = class extends z {
|
|
8806
8806
|
constructor({ cause: t, maxPriorityFeePerGas: n, maxFeePerGas: r } = {}) {
|
|
8807
8807
|
super([
|
|
8808
8808
|
`The provided tip (\`maxPriorityFeePerGas\`${n ? ` = ${nt(n)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r ? ` = ${nt(r)} gwei` : ""}).`
|
|
@@ -8813,7 +8813,7 @@ let is = class extends z {
|
|
|
8813
8813
|
});
|
|
8814
8814
|
}
|
|
8815
8815
|
};
|
|
8816
|
-
Object.defineProperty(
|
|
8816
|
+
Object.defineProperty(cs, "nodeMessage", {
|
|
8817
8817
|
enumerable: !0,
|
|
8818
8818
|
configurable: !0,
|
|
8819
8819
|
writable: !0,
|
|
@@ -8841,7 +8841,7 @@ function ci(e, t) {
|
|
|
8841
8841
|
}) : qc.nodeMessage.test(n) ? new qc({
|
|
8842
8842
|
cause: e,
|
|
8843
8843
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas
|
|
8844
|
-
}) : Kc.nodeMessage.test(n) ? new Kc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Wc.nodeMessage.test(n) ? new Wc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Zc.nodeMessage.test(n) ? new Zc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Xc.nodeMessage.test(n) ? new Xc({ cause: e }) : Qc.nodeMessage.test(n) ? new Qc({ cause: e, gas: t == null ? void 0 : t.gas }) : Jc.nodeMessage.test(n) ? new Jc({ cause: e, gas: t == null ? void 0 : t.gas }) : Yc.nodeMessage.test(n) ? new Yc({ cause: e }) :
|
|
8844
|
+
}) : Kc.nodeMessage.test(n) ? new Kc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Wc.nodeMessage.test(n) ? new Wc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Zc.nodeMessage.test(n) ? new Zc({ cause: e, nonce: t == null ? void 0 : t.nonce }) : Xc.nodeMessage.test(n) ? new Xc({ cause: e }) : Qc.nodeMessage.test(n) ? new Qc({ cause: e, gas: t == null ? void 0 : t.gas }) : Jc.nodeMessage.test(n) ? new Jc({ cause: e, gas: t == null ? void 0 : t.gas }) : Yc.nodeMessage.test(n) ? new Yc({ cause: e }) : cs.nodeMessage.test(n) ? new cs({
|
|
8845
8845
|
cause: e,
|
|
8846
8846
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
|
|
8847
8847
|
maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
|
|
@@ -8960,7 +8960,7 @@ function qt(e) {
|
|
|
8960
8960
|
if (n && n > fr)
|
|
8961
8961
|
throw new _n({ maxFeePerGas: n });
|
|
8962
8962
|
if (r && n && r > n)
|
|
8963
|
-
throw new
|
|
8963
|
+
throw new cs({ maxFeePerGas: n, maxPriorityFeePerGas: r });
|
|
8964
8964
|
}
|
|
8965
8965
|
class rf extends z {
|
|
8966
8966
|
constructor() {
|
|
@@ -9200,7 +9200,7 @@ class cf extends Il {
|
|
|
9200
9200
|
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = r, this.isLE = s, this.buffer = new Uint8Array(t), this.view = Hi(this.buffer);
|
|
9201
9201
|
}
|
|
9202
9202
|
update(t) {
|
|
9203
|
-
|
|
9203
|
+
ss(this), t = ni(t), lr(t);
|
|
9204
9204
|
const { view: n, buffer: r, blockLen: s } = this, a = t.length;
|
|
9205
9205
|
for (let o = 0; o < a; ) {
|
|
9206
9206
|
const i = Math.min(s - this.pos, a - o);
|
|
@@ -9215,7 +9215,7 @@ class cf extends Il {
|
|
|
9215
9215
|
return this.length += t.length, this.roundClean(), this;
|
|
9216
9216
|
}
|
|
9217
9217
|
digestInto(t) {
|
|
9218
|
-
|
|
9218
|
+
ss(this), D0(t, this), this.finished = !0;
|
|
9219
9219
|
const { buffer: n, view: r, blockLen: s, isLE: a } = this;
|
|
9220
9220
|
let { pos: o } = this;
|
|
9221
9221
|
n[o++] = 128, Rn(this.buffer.subarray(o)), this.padOffset > s - o && (this.process(r, 0), o = 0);
|
|
@@ -9704,7 +9704,7 @@ const tu = [
|
|
|
9704
9704
|
"gas",
|
|
9705
9705
|
"nonce",
|
|
9706
9706
|
"type"
|
|
9707
|
-
], Hd = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new
|
|
9707
|
+
], Hd = /* @__PURE__ */ new Map(), Vi = /* @__PURE__ */ new ps(128);
|
|
9708
9708
|
async function Pa(e, t) {
|
|
9709
9709
|
var k, O, N;
|
|
9710
9710
|
let n = t;
|
|
@@ -10124,11 +10124,11 @@ function kr(e) {
|
|
|
10124
10124
|
if (r) {
|
|
10125
10125
|
const i = gr({ abi: t, args: n, name: r });
|
|
10126
10126
|
if (!i)
|
|
10127
|
-
throw new
|
|
10127
|
+
throw new ns(r, { docsPath: qi });
|
|
10128
10128
|
a = i;
|
|
10129
10129
|
}
|
|
10130
10130
|
if (a.type !== "function")
|
|
10131
|
-
throw new
|
|
10131
|
+
throw new ns(void 0, { docsPath: qi });
|
|
10132
10132
|
if (!a.outputs)
|
|
10133
10133
|
throw new T0(a.name, { docsPath: qi });
|
|
10134
10134
|
const o = Aa(a.outputs, s);
|
|
@@ -10146,7 +10146,7 @@ function ou(e) {
|
|
|
10146
10146
|
if (!Ua(e))
|
|
10147
10147
|
throw new Error("Uint8Array expected");
|
|
10148
10148
|
}
|
|
10149
|
-
function
|
|
10149
|
+
function ia(e, t) {
|
|
10150
10150
|
if (typeof t != "boolean")
|
|
10151
10151
|
throw new Error(e + " boolean expected, got " + t);
|
|
10152
10152
|
}
|
|
@@ -10163,7 +10163,7 @@ const Ef = (
|
|
|
10163
10163
|
// @ts-ignore
|
|
10164
10164
|
typeof Uint8Array.from([]).toHex == "function" && typeof Uint8Array.fromHex == "function"
|
|
10165
10165
|
), O5 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
10166
|
-
function
|
|
10166
|
+
function ca(e) {
|
|
10167
10167
|
if (ou(e), Ef)
|
|
10168
10168
|
return e.toHex();
|
|
10169
10169
|
let t = "";
|
|
@@ -10200,10 +10200,10 @@ function Go(e) {
|
|
|
10200
10200
|
return r;
|
|
10201
10201
|
}
|
|
10202
10202
|
function sr(e) {
|
|
10203
|
-
return wf(
|
|
10203
|
+
return wf(ca(e));
|
|
10204
10204
|
}
|
|
10205
10205
|
function kf(e) {
|
|
10206
|
-
return ou(e), wf(
|
|
10206
|
+
return ou(e), wf(ca(Uint8Array.from(e).reverse()));
|
|
10207
10207
|
}
|
|
10208
10208
|
function Ia(e, t) {
|
|
10209
10209
|
return Go(e.toString(16).padStart(t * 2, "0"));
|
|
@@ -10418,7 +10418,7 @@ K.setStaticOptions(K.defaultStaticOptions);
|
|
|
10418
10418
|
function vf(e, t) {
|
|
10419
10419
|
return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause ? vf(e.cause, t) : t ? null : e;
|
|
10420
10420
|
}
|
|
10421
|
-
function
|
|
10421
|
+
function fs(e, t) {
|
|
10422
10422
|
if (Mr(e) > t)
|
|
10423
10423
|
throw new sx({
|
|
10424
10424
|
givenSize: Mr(e),
|
|
@@ -10559,7 +10559,7 @@ function Ln(e, t = {}) {
|
|
|
10559
10559
|
}
|
|
10560
10560
|
function Sf(e, t = {}) {
|
|
10561
10561
|
const { size: n } = t, r = q5.encode(e);
|
|
10562
|
-
return typeof n == "number" ? (
|
|
10562
|
+
return typeof n == "number" ? (fs(r, n), X5(r, n)) : r;
|
|
10563
10563
|
}
|
|
10564
10564
|
function X5(e, t) {
|
|
10565
10565
|
return $5(e, { dir: "right", size: t });
|
|
@@ -10576,27 +10576,27 @@ function J5(e, t, n, r = {}) {
|
|
|
10576
10576
|
}
|
|
10577
10577
|
function Y5(e, t = {}) {
|
|
10578
10578
|
const { size: n } = t;
|
|
10579
|
-
typeof n < "u" &&
|
|
10579
|
+
typeof n < "u" && fs(e, n);
|
|
10580
10580
|
const r = Me(e, t);
|
|
10581
10581
|
return ve(r, t);
|
|
10582
10582
|
}
|
|
10583
10583
|
function ex(e, t = {}) {
|
|
10584
10584
|
const { size: n } = t;
|
|
10585
10585
|
let r = e;
|
|
10586
|
-
if (typeof n < "u" && (
|
|
10586
|
+
if (typeof n < "u" && (fs(r, n), r = Pf(r)), r.length > 1 || r[0] > 1)
|
|
10587
10587
|
throw new rx(r);
|
|
10588
10588
|
return !!r[0];
|
|
10589
10589
|
}
|
|
10590
10590
|
function un(e, t = {}) {
|
|
10591
10591
|
const { size: n } = t;
|
|
10592
|
-
typeof n < "u" &&
|
|
10592
|
+
typeof n < "u" && fs(e, n);
|
|
10593
10593
|
const r = Me(e, t);
|
|
10594
|
-
return
|
|
10594
|
+
return la(r, t);
|
|
10595
10595
|
}
|
|
10596
10596
|
function tx(e, t = {}) {
|
|
10597
10597
|
const { size: n } = t;
|
|
10598
10598
|
let r = e;
|
|
10599
|
-
return typeof n < "u" && (
|
|
10599
|
+
return typeof n < "u" && (fs(r, n), r = Bf(r)), V5.decode(r);
|
|
10600
10600
|
}
|
|
10601
10601
|
function Pf(e) {
|
|
10602
10602
|
return Af(e, { dir: "left" });
|
|
@@ -10736,14 +10736,14 @@ function ve(e, t = {}) {
|
|
|
10736
10736
|
const s = (e.length - 2) / 2, a = (1n << BigInt(s) * 8n) - 1n, o = a >> 1n;
|
|
10737
10737
|
return r <= o ? r : r - a - 1n;
|
|
10738
10738
|
}
|
|
10739
|
-
function
|
|
10739
|
+
function la(e, t = {}) {
|
|
10740
10740
|
const { signed: n, size: r } = t;
|
|
10741
10741
|
return Number(!n && !r ? e : ve(e, t));
|
|
10742
10742
|
}
|
|
10743
10743
|
function Ff(e, t = {}) {
|
|
10744
10744
|
const { size: n } = t;
|
|
10745
10745
|
let r = Ln(e);
|
|
10746
|
-
return n && (
|
|
10746
|
+
return n && (fs(r, n), r = Bf(r)), new TextDecoder().decode(r);
|
|
10747
10747
|
}
|
|
10748
10748
|
function At(e, t = {}) {
|
|
10749
10749
|
const { strict: n = !1 } = t;
|
|
@@ -11424,7 +11424,7 @@ class Lf extends z {
|
|
|
11424
11424
|
});
|
|
11425
11425
|
}
|
|
11426
11426
|
}
|
|
11427
|
-
let
|
|
11427
|
+
let ms = class extends z {
|
|
11428
11428
|
constructor({ chainId: t }) {
|
|
11429
11429
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
11430
11430
|
}
|
|
@@ -11444,7 +11444,7 @@ function bi(e) {
|
|
|
11444
11444
|
const a = xr(s.inputs, n);
|
|
11445
11445
|
return ct([r, a]);
|
|
11446
11446
|
}
|
|
11447
|
-
function
|
|
11447
|
+
function hs({ blockNumber: e, chain: t, contract: n }) {
|
|
11448
11448
|
var s;
|
|
11449
11449
|
const r = (s = t == null ? void 0 : t.contracts) == null ? void 0 : s[n];
|
|
11450
11450
|
if (!r)
|
|
@@ -11566,7 +11566,7 @@ async function yi(e, t) {
|
|
|
11566
11566
|
});
|
|
11567
11567
|
return J === "0x" ? { data: void 0 } : { data: J };
|
|
11568
11568
|
} catch (F) {
|
|
11569
|
-
const S = kx(F), { offchainLookup: M, offchainLookupSignature: $ } = await import("./ccip-
|
|
11569
|
+
const S = kx(F), { offchainLookup: M, offchainLookupSignature: $ } = await import("./ccip-Iir5d-bD.js");
|
|
11570
11570
|
if (e.ccipRead !== !1 && (S == null ? void 0 : S.slice(0, 10)) === $ && k)
|
|
11571
11571
|
return { data: await M(e, { data: S, to: k }) };
|
|
11572
11572
|
throw C && (S == null ? void 0 : S.slice(0, 10)) === "0x101bb98d" ? new Q2({ factory: f }) : uu(F, {
|
|
@@ -11588,7 +11588,7 @@ async function wx(e, t) {
|
|
|
11588
11588
|
if (t.multicallAddress)
|
|
11589
11589
|
return t.multicallAddress;
|
|
11590
11590
|
if (e.chain)
|
|
11591
|
-
return
|
|
11591
|
+
return hs({
|
|
11592
11592
|
blockNumber: a,
|
|
11593
11593
|
chain: e.chain,
|
|
11594
11594
|
contract: "multicall3"
|
|
@@ -11762,7 +11762,7 @@ function mn(e, t, n) {
|
|
|
11762
11762
|
async function al(e) {
|
|
11763
11763
|
return new Promise((t) => setTimeout(t, e));
|
|
11764
11764
|
}
|
|
11765
|
-
function
|
|
11765
|
+
function bs(e, { emitOnBegin: t, initialWaitTime: n, interval: r }) {
|
|
11766
11766
|
let s = !0;
|
|
11767
11767
|
const a = () => s = !1;
|
|
11768
11768
|
return (async () => {
|
|
@@ -11849,7 +11849,7 @@ function Ux(e, t) {
|
|
|
11849
11849
|
let U;
|
|
11850
11850
|
i !== void 0 && (U = i - 1n);
|
|
11851
11851
|
let k, O = !1;
|
|
11852
|
-
const N =
|
|
11852
|
+
const N = bs(async () => {
|
|
11853
11853
|
var R;
|
|
11854
11854
|
if (!O) {
|
|
11855
11855
|
try {
|
|
@@ -12002,7 +12002,7 @@ async function fu(e, { serializedTransaction: t }) {
|
|
|
12002
12002
|
params: [t]
|
|
12003
12003
|
}, { retryCount: 0 });
|
|
12004
12004
|
}
|
|
12005
|
-
const Ji = new
|
|
12005
|
+
const Ji = new ps(128);
|
|
12006
12006
|
async function wi(e, t) {
|
|
12007
12007
|
var v, U, k, O;
|
|
12008
12008
|
const { account: n = e.account, chain: r = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: d, maxFeePerGas: p, maxPriorityFeePerGas: f, nonce: m, type: y, value: g, ...P } = t;
|
|
@@ -12113,8 +12113,8 @@ async function wi(e, t) {
|
|
|
12113
12113
|
});
|
|
12114
12114
|
}
|
|
12115
12115
|
}
|
|
12116
|
-
async function
|
|
12117
|
-
return
|
|
12116
|
+
async function ua(e, t) {
|
|
12117
|
+
return ua.internal(e, wi, "sendTransaction", t);
|
|
12118
12118
|
}
|
|
12119
12119
|
(function(e) {
|
|
12120
12120
|
async function t(n, r, s, a) {
|
|
@@ -12147,7 +12147,7 @@ async function la(e, t) {
|
|
|
12147
12147
|
}
|
|
12148
12148
|
}
|
|
12149
12149
|
e.internal = t;
|
|
12150
|
-
})(
|
|
12150
|
+
})(ua || (ua = {}));
|
|
12151
12151
|
class Ix extends z {
|
|
12152
12152
|
constructor(t) {
|
|
12153
12153
|
super(`Call bundle failed with status: ${t.statusCode}`, {
|
|
@@ -12238,13 +12238,13 @@ async function Kf(e, t) {
|
|
|
12238
12238
|
m.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))) {
|
|
12239
12239
|
if (r && Object.values(r).some((v) => !v.optional)) {
|
|
12240
12240
|
const v = "non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";
|
|
12241
|
-
throw new
|
|
12241
|
+
throw new os(new z(v, {
|
|
12242
12242
|
details: v
|
|
12243
12243
|
}));
|
|
12244
12244
|
}
|
|
12245
12245
|
if (i && p.length > 1) {
|
|
12246
12246
|
const B = "`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";
|
|
12247
|
-
throw new
|
|
12247
|
+
throw new is(new z(B, {
|
|
12248
12248
|
details: B
|
|
12249
12249
|
}));
|
|
12250
12250
|
}
|
|
@@ -12331,7 +12331,7 @@ async function Zf(e, t) {
|
|
|
12331
12331
|
} = t, l = Ie(["waitForCallsStatus", e.uid, n]), { promise: d, resolve: p, reject: f } = du();
|
|
12332
12332
|
let m;
|
|
12333
12333
|
const y = mn(l, { resolve: p, reject: f }, (g) => {
|
|
12334
|
-
const P =
|
|
12334
|
+
const P = bs(async () => {
|
|
12335
12335
|
const B = (v) => {
|
|
12336
12336
|
clearTimeout(m), P(), v(), y();
|
|
12337
12337
|
};
|
|
@@ -12453,11 +12453,11 @@ function Ox(e) {
|
|
|
12453
12453
|
if (n) {
|
|
12454
12454
|
const o = gr({ abi: t, name: n });
|
|
12455
12455
|
if (!o)
|
|
12456
|
-
throw new
|
|
12456
|
+
throw new ns(n, { docsPath: ec });
|
|
12457
12457
|
s = o;
|
|
12458
12458
|
}
|
|
12459
12459
|
if (s.type !== "function")
|
|
12460
|
-
throw new
|
|
12460
|
+
throw new ns(void 0, { docsPath: ec });
|
|
12461
12461
|
if (!s.outputs)
|
|
12462
12462
|
throw new T0(s.name, { docsPath: ec });
|
|
12463
12463
|
const a = (() => {
|
|
@@ -12540,7 +12540,7 @@ async function zx(e, t) {
|
|
|
12540
12540
|
return t.universalResolverAddress;
|
|
12541
12541
|
if (!c)
|
|
12542
12542
|
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
12543
|
-
return
|
|
12543
|
+
return hs({
|
|
12544
12544
|
blockNumber: n,
|
|
12545
12545
|
chain: c,
|
|
12546
12546
|
contract: "ensUniversalResolver"
|
|
@@ -12595,7 +12595,7 @@ class $x extends z {
|
|
|
12595
12595
|
});
|
|
12596
12596
|
}
|
|
12597
12597
|
}
|
|
12598
|
-
class
|
|
12598
|
+
class Cs extends z {
|
|
12599
12599
|
constructor({ reason: t }) {
|
|
12600
12600
|
super(`ENS NFT avatar URI is invalid. ${t}`, {
|
|
12601
12601
|
name: "EnsAvatarInvalidNftUriError"
|
|
@@ -12692,17 +12692,17 @@ function Wx(e) {
|
|
|
12692
12692
|
t.startsWith("did:nft:") && (t = t.replace("did:nft:", "").replace(/_/g, "/"));
|
|
12693
12693
|
const [n, r, s] = t.split("/"), [a, o] = n.split(":"), [i, c] = r.split(":");
|
|
12694
12694
|
if (!a || a.toLowerCase() !== "eip155")
|
|
12695
|
-
throw new
|
|
12695
|
+
throw new Cs({ reason: "Only EIP-155 supported" });
|
|
12696
12696
|
if (!o)
|
|
12697
|
-
throw new
|
|
12697
|
+
throw new Cs({ reason: "Chain ID not found" });
|
|
12698
12698
|
if (!c)
|
|
12699
|
-
throw new
|
|
12699
|
+
throw new Cs({
|
|
12700
12700
|
reason: "Contract address not found"
|
|
12701
12701
|
});
|
|
12702
12702
|
if (!s)
|
|
12703
|
-
throw new
|
|
12703
|
+
throw new Cs({ reason: "Token ID not found" });
|
|
12704
12704
|
if (!i)
|
|
12705
|
-
throw new
|
|
12705
|
+
throw new Cs({ reason: "ERC namespace not found" });
|
|
12706
12706
|
return {
|
|
12707
12707
|
chainID: Number.parseInt(o, 10),
|
|
12708
12708
|
namespace: i.toLowerCase(),
|
|
@@ -12770,7 +12770,7 @@ async function tm(e, t) {
|
|
|
12770
12770
|
return t.universalResolverAddress;
|
|
12771
12771
|
if (!c)
|
|
12772
12772
|
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
12773
|
-
return
|
|
12773
|
+
return hs({
|
|
12774
12774
|
blockNumber: n,
|
|
12775
12775
|
chain: c,
|
|
12776
12776
|
contract: "ensUniversalResolver"
|
|
@@ -12838,7 +12838,7 @@ async function Yx(e, t) {
|
|
|
12838
12838
|
return t.universalResolverAddress;
|
|
12839
12839
|
if (!c)
|
|
12840
12840
|
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
12841
|
-
return
|
|
12841
|
+
return hs({
|
|
12842
12842
|
blockNumber: r,
|
|
12843
12843
|
chain: c,
|
|
12844
12844
|
contract: "ensUniversalResolver"
|
|
@@ -12868,7 +12868,7 @@ async function e8(e, t) {
|
|
|
12868
12868
|
return t.universalResolverAddress;
|
|
12869
12869
|
if (!a)
|
|
12870
12870
|
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
12871
|
-
return
|
|
12871
|
+
return hs({
|
|
12872
12872
|
blockNumber: n,
|
|
12873
12873
|
chain: a,
|
|
12874
12874
|
contract: "ensUniversalResolver"
|
|
@@ -13108,7 +13108,7 @@ function d8(e) {
|
|
|
13108
13108
|
if (!be(s))
|
|
13109
13109
|
throw new Ue({ address: s });
|
|
13110
13110
|
if (r < 0)
|
|
13111
|
-
throw new
|
|
13111
|
+
throw new ms({ chainId: r });
|
|
13112
13112
|
}
|
|
13113
13113
|
gu(e);
|
|
13114
13114
|
}
|
|
@@ -13133,18 +13133,18 @@ function p8(e) {
|
|
|
13133
13133
|
function gu(e) {
|
|
13134
13134
|
const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: r, to: s } = e;
|
|
13135
13135
|
if (t <= 0)
|
|
13136
|
-
throw new
|
|
13136
|
+
throw new ms({ chainId: t });
|
|
13137
13137
|
if (s && !be(s))
|
|
13138
13138
|
throw new Ue({ address: s });
|
|
13139
13139
|
if (r && r > fr)
|
|
13140
13140
|
throw new _n({ maxFeePerGas: r });
|
|
13141
13141
|
if (n && r && n > r)
|
|
13142
|
-
throw new
|
|
13142
|
+
throw new cs({ maxFeePerGas: r, maxPriorityFeePerGas: n });
|
|
13143
13143
|
}
|
|
13144
13144
|
function f8(e) {
|
|
13145
13145
|
const { chainId: t, maxPriorityFeePerGas: n, gasPrice: r, maxFeePerGas: s, to: a } = e;
|
|
13146
13146
|
if (t <= 0)
|
|
13147
|
-
throw new
|
|
13147
|
+
throw new ms({ chainId: t });
|
|
13148
13148
|
if (a && !be(a))
|
|
13149
13149
|
throw new Ue({ address: a });
|
|
13150
13150
|
if (n || s)
|
|
@@ -13157,7 +13157,7 @@ function m8(e) {
|
|
|
13157
13157
|
if (a && !be(a))
|
|
13158
13158
|
throw new Ue({ address: a });
|
|
13159
13159
|
if (typeof t < "u" && t <= 0)
|
|
13160
|
-
throw new
|
|
13160
|
+
throw new ms({ chainId: t });
|
|
13161
13161
|
if (n || s)
|
|
13162
13162
|
throw new z("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
13163
13163
|
if (r && r > fr)
|
|
@@ -13199,7 +13199,7 @@ function h8(e, t) {
|
|
|
13199
13199
|
p ?? "0x",
|
|
13200
13200
|
f,
|
|
13201
13201
|
m,
|
|
13202
|
-
...
|
|
13202
|
+
...ys(e, t)
|
|
13203
13203
|
])
|
|
13204
13204
|
]);
|
|
13205
13205
|
}
|
|
@@ -13231,7 +13231,7 @@ function b8(e, t) {
|
|
|
13231
13231
|
y,
|
|
13232
13232
|
i ? H(i) : "0x",
|
|
13233
13233
|
f ?? [],
|
|
13234
|
-
...
|
|
13234
|
+
...ys(e, t)
|
|
13235
13235
|
], P = [], B = [], v = [];
|
|
13236
13236
|
if (m)
|
|
13237
13237
|
for (let U = 0; U < m.length; U++) {
|
|
@@ -13257,7 +13257,7 @@ function y8(e, t) {
|
|
|
13257
13257
|
o ? H(o) : "0x",
|
|
13258
13258
|
d ?? "0x",
|
|
13259
13259
|
p,
|
|
13260
|
-
...
|
|
13260
|
+
...ys(e, t)
|
|
13261
13261
|
];
|
|
13262
13262
|
return ct([
|
|
13263
13263
|
"0x02",
|
|
@@ -13276,7 +13276,7 @@ function x8(e, t) {
|
|
|
13276
13276
|
i ? H(i) : "0x",
|
|
13277
13277
|
s ?? "0x",
|
|
13278
13278
|
d,
|
|
13279
|
-
...
|
|
13279
|
+
...ys(e, t)
|
|
13280
13280
|
];
|
|
13281
13281
|
return ct([
|
|
13282
13282
|
"0x01",
|
|
@@ -13319,7 +13319,7 @@ function g8(e, t) {
|
|
|
13319
13319
|
]);
|
|
13320
13320
|
return jt(l);
|
|
13321
13321
|
}
|
|
13322
|
-
function
|
|
13322
|
+
function ys(e, t) {
|
|
13323
13323
|
const n = t ?? e, { v: r, yParity: s } = n;
|
|
13324
13324
|
if (typeof n.r > "u")
|
|
13325
13325
|
return [];
|
|
@@ -13340,7 +13340,7 @@ function w8(e) {
|
|
|
13340
13340
|
r ? le(r) : "0x",
|
|
13341
13341
|
o,
|
|
13342
13342
|
s ? le(s) : "0x",
|
|
13343
|
-
...
|
|
13343
|
+
...ys({}, a)
|
|
13344
13344
|
]);
|
|
13345
13345
|
}
|
|
13346
13346
|
return t;
|
|
@@ -13351,7 +13351,7 @@ async function E8({ address: e, authorization: t, signature: n }) {
|
|
|
13351
13351
|
signature: n
|
|
13352
13352
|
}));
|
|
13353
13353
|
}
|
|
13354
|
-
const eo = /* @__PURE__ */ new
|
|
13354
|
+
const eo = /* @__PURE__ */ new ps(8192);
|
|
13355
13355
|
function k8(e, { enabled: t = !0, id: n }) {
|
|
13356
13356
|
if (!t || !n)
|
|
13357
13357
|
return e();
|
|
@@ -13375,7 +13375,7 @@ function C8(e, t = {}) {
|
|
|
13375
13375
|
throw new jn(new Error("method not supported"), {
|
|
13376
13376
|
method: l
|
|
13377
13377
|
});
|
|
13378
|
-
const d = s ?
|
|
13378
|
+
const d = s ? rs(`${c}.${Ie(n)}`) : void 0;
|
|
13379
13379
|
return k8(() => qo(async () => {
|
|
13380
13380
|
try {
|
|
13381
13381
|
return await e(n);
|
|
@@ -13383,17 +13383,17 @@ function C8(e, t = {}) {
|
|
|
13383
13383
|
const m = f;
|
|
13384
13384
|
switch (m.code) {
|
|
13385
13385
|
// -32700
|
|
13386
|
-
case Hs.code:
|
|
13387
|
-
throw new Hs(m);
|
|
13388
|
-
// -32600
|
|
13389
13386
|
case Gs.code:
|
|
13390
13387
|
throw new Gs(m);
|
|
13391
|
-
// -
|
|
13388
|
+
// -32600
|
|
13392
13389
|
case js.code:
|
|
13393
|
-
throw new js(m
|
|
13394
|
-
// -
|
|
13390
|
+
throw new js(m);
|
|
13391
|
+
// -32601
|
|
13395
13392
|
case Vs.code:
|
|
13396
|
-
throw new Vs(m);
|
|
13393
|
+
throw new Vs(m, { method: n.method });
|
|
13394
|
+
// -32602
|
|
13395
|
+
case qs.code:
|
|
13396
|
+
throw new qs(m);
|
|
13397
13397
|
// -32603
|
|
13398
13398
|
case dr.code:
|
|
13399
13399
|
throw new dr(m);
|
|
@@ -13401,64 +13401,64 @@ function C8(e, t = {}) {
|
|
|
13401
13401
|
case Nn.code:
|
|
13402
13402
|
throw new Nn(m);
|
|
13403
13403
|
// -32001
|
|
13404
|
-
case qs.code:
|
|
13405
|
-
throw new qs(m);
|
|
13406
|
-
// -32002
|
|
13407
13404
|
case Ks.code:
|
|
13408
13405
|
throw new Ks(m);
|
|
13409
|
-
// -
|
|
13406
|
+
// -32002
|
|
13410
13407
|
case Ws.code:
|
|
13411
13408
|
throw new Ws(m);
|
|
13409
|
+
// -32003
|
|
13410
|
+
case Zs.code:
|
|
13411
|
+
throw new Zs(m);
|
|
13412
13412
|
// -32004
|
|
13413
13413
|
case jn.code:
|
|
13414
13414
|
throw new jn(m, {
|
|
13415
13415
|
method: n.method
|
|
13416
13416
|
});
|
|
13417
13417
|
// -32005
|
|
13418
|
-
case
|
|
13419
|
-
throw new
|
|
13418
|
+
case as.code:
|
|
13419
|
+
throw new as(m);
|
|
13420
13420
|
// -32006
|
|
13421
|
-
case
|
|
13422
|
-
throw new
|
|
13421
|
+
case Xs.code:
|
|
13422
|
+
throw new Xs(m);
|
|
13423
13423
|
// 4001
|
|
13424
13424
|
case _r.code:
|
|
13425
13425
|
throw new _r(m);
|
|
13426
13426
|
// 4100
|
|
13427
|
-
case Xs.code:
|
|
13428
|
-
throw new Xs(m);
|
|
13429
|
-
// 4200
|
|
13430
13427
|
case Qs.code:
|
|
13431
13428
|
throw new Qs(m);
|
|
13432
|
-
//
|
|
13429
|
+
// 4200
|
|
13433
13430
|
case Js.code:
|
|
13434
13431
|
throw new Js(m);
|
|
13435
|
-
//
|
|
13432
|
+
// 4900
|
|
13436
13433
|
case Ys.code:
|
|
13437
13434
|
throw new Ys(m);
|
|
13438
|
-
//
|
|
13435
|
+
// 4901
|
|
13439
13436
|
case ea.code:
|
|
13440
13437
|
throw new ea(m);
|
|
13441
|
-
//
|
|
13442
|
-
case as.code:
|
|
13443
|
-
throw new as(m);
|
|
13444
|
-
// 5710
|
|
13438
|
+
// 4902
|
|
13445
13439
|
case ta.code:
|
|
13446
13440
|
throw new ta(m);
|
|
13447
|
-
//
|
|
13441
|
+
// 5700
|
|
13442
|
+
case os.code:
|
|
13443
|
+
throw new os(m);
|
|
13444
|
+
// 5710
|
|
13448
13445
|
case na.code:
|
|
13449
13446
|
throw new na(m);
|
|
13450
|
-
//
|
|
13447
|
+
// 5720
|
|
13451
13448
|
case ra.code:
|
|
13452
13449
|
throw new ra(m);
|
|
13453
|
-
//
|
|
13450
|
+
// 5730
|
|
13454
13451
|
case sa.code:
|
|
13455
13452
|
throw new sa(m);
|
|
13456
|
-
//
|
|
13453
|
+
// 5740
|
|
13457
13454
|
case aa.code:
|
|
13458
13455
|
throw new aa(m);
|
|
13456
|
+
// 5750
|
|
13457
|
+
case oa.code:
|
|
13458
|
+
throw new oa(m);
|
|
13459
13459
|
// 5760
|
|
13460
|
-
case
|
|
13461
|
-
throw new
|
|
13460
|
+
case is.code:
|
|
13461
|
+
throw new is(m);
|
|
13462
13462
|
// CAIP-25: User Rejected Error
|
|
13463
13463
|
// https://docs.walletconnect.com/2.0/specs/clients/sign/error-codes#rejected-caip-25
|
|
13464
13464
|
case 5e3:
|
|
@@ -13470,7 +13470,7 @@ function C8(e, t = {}) {
|
|
|
13470
13470
|
}, {
|
|
13471
13471
|
delay: ({ count: f, error: m }) => {
|
|
13472
13472
|
var y;
|
|
13473
|
-
if (m && m instanceof
|
|
13473
|
+
if (m && m instanceof _s) {
|
|
13474
13474
|
const g = (y = m == null ? void 0 : m.headers) == null ? void 0 : y.get("Retry-After");
|
|
13475
13475
|
if (g != null && g.match(/\d/))
|
|
13476
13476
|
return Number.parseInt(g, 10) * 1e3;
|
|
@@ -13483,7 +13483,7 @@ function C8(e, t = {}) {
|
|
|
13483
13483
|
};
|
|
13484
13484
|
}
|
|
13485
13485
|
function v8(e) {
|
|
13486
|
-
return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code ===
|
|
13486
|
+
return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === as.code || e.code === dr.code : e instanceof _s && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
|
|
13487
13487
|
}
|
|
13488
13488
|
function u(e) {
|
|
13489
13489
|
const t = {
|
|
@@ -13583,7 +13583,7 @@ function P8(e, t = {}) {
|
|
|
13583
13583
|
}
|
|
13584
13584
|
}
|
|
13585
13585
|
if (!m.ok)
|
|
13586
|
-
throw new
|
|
13586
|
+
throw new _s({
|
|
13587
13587
|
body: r,
|
|
13588
13588
|
details: Ie(y.error) || m.statusText,
|
|
13589
13589
|
headers: m.headers,
|
|
@@ -13592,7 +13592,7 @@ function P8(e, t = {}) {
|
|
|
13592
13592
|
});
|
|
13593
13593
|
return y;
|
|
13594
13594
|
} catch (m) {
|
|
13595
|
-
throw m instanceof
|
|
13595
|
+
throw m instanceof _s || m instanceof Nd ? m : new _s({
|
|
13596
13596
|
body: r,
|
|
13597
13597
|
cause: m,
|
|
13598
13598
|
url: e
|
|
@@ -13604,7 +13604,7 @@ function P8(e, t = {}) {
|
|
|
13604
13604
|
const B8 = `Ethereum Signed Message:
|
|
13605
13605
|
`;
|
|
13606
13606
|
function U8(e) {
|
|
13607
|
-
const t = typeof e == "string" ?
|
|
13607
|
+
const t = typeof e == "string" ? rs(e) : typeof e.raw == "string" ? e.raw : Pe(e.raw), n = rs(`${B8}${xe(t)}`);
|
|
13608
13608
|
return wt([n, t]);
|
|
13609
13609
|
}
|
|
13610
13610
|
function am(e, t) {
|
|
@@ -14081,7 +14081,7 @@ function s3(e, t, n) {
|
|
|
14081
14081
|
if (!s) {
|
|
14082
14082
|
const c = un(e.readBytes(ll)), l = a + c, d = l + op;
|
|
14083
14083
|
e.setPosition(l);
|
|
14084
|
-
const p = un(e.readBytes(op)), f =
|
|
14084
|
+
const p = un(e.readBytes(op)), f = da(t);
|
|
14085
14085
|
let m = 0;
|
|
14086
14086
|
const y = [];
|
|
14087
14087
|
for (let g = 0; g < p; ++g) {
|
|
@@ -14094,7 +14094,7 @@ function s3(e, t, n) {
|
|
|
14094
14094
|
}
|
|
14095
14095
|
return e.setPosition(a + 32), [y, 32];
|
|
14096
14096
|
}
|
|
14097
|
-
if (
|
|
14097
|
+
if (da(t)) {
|
|
14098
14098
|
const c = un(e.readBytes(ll)), l = a + c, d = [];
|
|
14099
14099
|
for (let p = 0; p < s; ++p) {
|
|
14100
14100
|
e.setPosition(l + p * 32);
|
|
@@ -14143,7 +14143,7 @@ function i3(e, t) {
|
|
|
14143
14143
|
function c3(e, t, n) {
|
|
14144
14144
|
const { checksumAddress: r, staticPosition: s } = n, a = t.components.length === 0 || t.components.some(({ name: c }) => !c), o = a ? [] : {};
|
|
14145
14145
|
let i = 0;
|
|
14146
|
-
if (
|
|
14146
|
+
if (da(t)) {
|
|
14147
14147
|
const c = un(e.readBytes(ll)), l = s + c;
|
|
14148
14148
|
for (let d = 0; d < t.components.length; ++d) {
|
|
14149
14149
|
const p = t.components[d];
|
|
@@ -14353,15 +14353,15 @@ function vu(e) {
|
|
|
14353
14353
|
[t[2] ? Number(t[2]) : null, t[1]]
|
|
14354
14354
|
) : void 0;
|
|
14355
14355
|
}
|
|
14356
|
-
function
|
|
14356
|
+
function da(e) {
|
|
14357
14357
|
var r;
|
|
14358
14358
|
const { type: t } = e;
|
|
14359
14359
|
if (t === "string" || t === "bytes" || t.endsWith("[]"))
|
|
14360
14360
|
return !0;
|
|
14361
14361
|
if (t === "tuple")
|
|
14362
|
-
return (r = e.components) == null ? void 0 : r.some(
|
|
14362
|
+
return (r = e.components) == null ? void 0 : r.some(da);
|
|
14363
14363
|
const n = vu(e.type);
|
|
14364
|
-
return !!(n &&
|
|
14364
|
+
return !!(n && da({
|
|
14365
14365
|
...e,
|
|
14366
14366
|
type: n[1]
|
|
14367
14367
|
}));
|
|
@@ -14803,10 +14803,10 @@ class Em extends Il {
|
|
|
14803
14803
|
this.oHash.update(a), Rn(a);
|
|
14804
14804
|
}
|
|
14805
14805
|
update(t) {
|
|
14806
|
-
return
|
|
14806
|
+
return ss(this), this.iHash.update(t), this;
|
|
14807
14807
|
}
|
|
14808
14808
|
digestInto(t) {
|
|
14809
|
-
|
|
14809
|
+
ss(this), lr(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
|
14810
14810
|
}
|
|
14811
14811
|
digest() {
|
|
14812
14812
|
const t = new Uint8Array(this.oHash.outputLen);
|
|
@@ -14871,7 +14871,7 @@ function M3(e) {
|
|
|
14871
14871
|
for (; t % Vn === et; )
|
|
14872
14872
|
t /= Vn, n++;
|
|
14873
14873
|
let r = Vn;
|
|
14874
|
-
const s =
|
|
14874
|
+
const s = xs(e);
|
|
14875
14875
|
for (; lp(s, r) === 1; )
|
|
14876
14876
|
if (r++ > 1e3)
|
|
14877
14877
|
throw new Error("Cannot find square root: probably non-prime P");
|
|
@@ -14952,11 +14952,11 @@ function lp(e, t) {
|
|
|
14952
14952
|
return s ? 1 : a ? 0 : -1;
|
|
14953
14953
|
}
|
|
14954
14954
|
function Pm(e, t) {
|
|
14955
|
-
t !== void 0 &&
|
|
14955
|
+
t !== void 0 && Ls(t);
|
|
14956
14956
|
const n = t !== void 0 ? t : e.toString(2).length, r = Math.ceil(n / 8);
|
|
14957
14957
|
return { nBitLength: n, nByteLength: r };
|
|
14958
14958
|
}
|
|
14959
|
-
function
|
|
14959
|
+
function xs(e, t, n = !1, r = {}) {
|
|
14960
14960
|
if (e <= et)
|
|
14961
14961
|
throw new Error("invalid field: expected ORDER > 0, got " + e);
|
|
14962
14962
|
const { nBitLength: s, nByteLength: a } = Pm(e, t);
|
|
@@ -15200,7 +15200,7 @@ function Dm(e) {
|
|
|
15200
15200
|
}
|
|
15201
15201
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
15202
15202
|
function pp(e) {
|
|
15203
|
-
e.lowS !== void 0 &&
|
|
15203
|
+
e.lowS !== void 0 && ia("lowS", e.lowS), e.prehash !== void 0 && ia("prehash", e.prehash);
|
|
15204
15204
|
}
|
|
15205
15205
|
function V3(e) {
|
|
15206
15206
|
const t = Dm(e);
|
|
@@ -15319,13 +15319,13 @@ const tn = {
|
|
|
15319
15319
|
}
|
|
15320
15320
|
};
|
|
15321
15321
|
function oc(e, t) {
|
|
15322
|
-
return
|
|
15322
|
+
return ca(Ia(e, t));
|
|
15323
15323
|
}
|
|
15324
15324
|
const on = BigInt(0), Oe = BigInt(1);
|
|
15325
15325
|
BigInt(2);
|
|
15326
15326
|
const ic = BigInt(3), K3 = BigInt(4);
|
|
15327
15327
|
function W3(e) {
|
|
15328
|
-
const t = V3(e), { Fp: n } = t, r =
|
|
15328
|
+
const t = V3(e), { Fp: n } = t, r = xs(t.n, t.nBitLength), s = t.toBytes || ((U, k, O) => {
|
|
15329
15329
|
const N = k.toAffine();
|
|
15330
15330
|
return jo(Uint8Array.from([4]), n.toBytes(N.x), n.toBytes(N.y));
|
|
15331
15331
|
}), a = t.fromBytes || ((U) => {
|
|
@@ -15351,7 +15351,7 @@ function W3(e) {
|
|
|
15351
15351
|
function p(U) {
|
|
15352
15352
|
const { allowedPrivateKeyLengths: k, nByteLength: O, wrapPrivateKey: N, n: R } = t;
|
|
15353
15353
|
if (k && typeof U != "bigint") {
|
|
15354
|
-
if (Ua(U) && (U =
|
|
15354
|
+
if (Ua(U) && (U = ca(U)), typeof U != "string" || !k.includes(U.length))
|
|
15355
15355
|
throw new Error("invalid private key");
|
|
15356
15356
|
U = U.padStart(O * 2, "0");
|
|
15357
15357
|
}
|
|
@@ -15579,10 +15579,10 @@ function W3(e) {
|
|
|
15579
15579
|
return k === Oe ? this : O ? O(g, this) : this.multiplyUnsafe(t.h);
|
|
15580
15580
|
}
|
|
15581
15581
|
toRawBytes(k = !0) {
|
|
15582
|
-
return
|
|
15582
|
+
return ia("isCompressed", k), this.assertValidity(), s(g, this, k);
|
|
15583
15583
|
}
|
|
15584
15584
|
toHex(k = !0) {
|
|
15585
|
-
return
|
|
15585
|
+
return ia("isCompressed", k), ca(this.toRawBytes(k));
|
|
15586
15586
|
}
|
|
15587
15587
|
}
|
|
15588
15588
|
g.BASE = new g(t.Gx, t.Gy, n.ONE), g.ZERO = new g(n.ZERO, n.ONE, n.ZERO);
|
|
@@ -15619,7 +15619,7 @@ function X3(e) {
|
|
|
15619
15619
|
...t,
|
|
15620
15620
|
toBytes(w, A, F) {
|
|
15621
15621
|
const S = A.toAffine(), M = n.toBytes(S.x), $ = jo;
|
|
15622
|
-
return
|
|
15622
|
+
return ia("isCompressed", F), F ? $(Uint8Array.from([A.hasEvenY() ? 2 : 3]), M) : $(Uint8Array.from([4]), M, n.toBytes(S.y));
|
|
15623
15623
|
},
|
|
15624
15624
|
fromBytes(w) {
|
|
15625
15625
|
const A = w.length, F = w[0], S = w.subarray(1);
|
|
@@ -15869,7 +15869,7 @@ function eg(e) {
|
|
|
15869
15869
|
throw new Error("Cannot find square root");
|
|
15870
15870
|
return N;
|
|
15871
15871
|
}
|
|
15872
|
-
const ml =
|
|
15872
|
+
const ml = xs(Om, void 0, void 0, { sqrt: eg }), Na = Ci({
|
|
15873
15873
|
a: J3,
|
|
15874
15874
|
b: BigInt(7),
|
|
15875
15875
|
Fp: ml,
|
|
@@ -16130,7 +16130,7 @@ function zm(e) {
|
|
|
16130
16130
|
}
|
|
16131
16131
|
function gg(e) {
|
|
16132
16132
|
zm(e);
|
|
16133
|
-
const t =
|
|
16133
|
+
const t = la(oe(e, -64, -32)), n = oe(e, -t - 64, -64), r = oe(e, 0, -t - 64), [s, a, o] = E3(xg, n);
|
|
16134
16134
|
return {
|
|
16135
16135
|
authorization: dg({
|
|
16136
16136
|
address: s.delegation,
|
|
@@ -16265,7 +16265,7 @@ async function Bg(e, t) {
|
|
|
16265
16265
|
if (p)
|
|
16266
16266
|
return null;
|
|
16267
16267
|
if (e.chain)
|
|
16268
|
-
return
|
|
16268
|
+
return hs({
|
|
16269
16269
|
blockNumber: a,
|
|
16270
16270
|
chain: e.chain,
|
|
16271
16271
|
contract: "multicall3"
|
|
@@ -17031,7 +17031,7 @@ function jm(e, { emitOnBegin: t = !1, emitMissed: n = !1, onBlockNumber: r, onEr
|
|
|
17031
17031
|
n,
|
|
17032
17032
|
o
|
|
17033
17033
|
]);
|
|
17034
|
-
return mn(p, { onBlockNumber: r, onError: s }, (f) =>
|
|
17034
|
+
return mn(p, { onBlockNumber: r, onError: s }, (f) => bs(async () => {
|
|
17035
17035
|
var m;
|
|
17036
17036
|
try {
|
|
17037
17037
|
const y = await q(e, Oa, "getBlockNumber")({ cacheTime: 0 });
|
|
@@ -17194,7 +17194,7 @@ function Xg(e, { blockTag: t = e.experimental_blockTag ?? "latest", emitMissed:
|
|
|
17194
17194
|
d,
|
|
17195
17195
|
c
|
|
17196
17196
|
]);
|
|
17197
|
-
return mn(y, { onBlock: s, onError: a }, (g) =>
|
|
17197
|
+
return mn(y, { onBlock: s, onError: a }, (g) => bs(async () => {
|
|
17198
17198
|
var P;
|
|
17199
17199
|
try {
|
|
17200
17200
|
const B = await q(e, Pt, "getBlock")({
|
|
@@ -17282,7 +17282,7 @@ function Qg(e, { address: t, args: n, batch: r = !0, event: s, events: a, fromBl
|
|
|
17282
17282
|
let v;
|
|
17283
17283
|
o !== void 0 && (v = o - 1n);
|
|
17284
17284
|
let U, k = !1;
|
|
17285
|
-
const O =
|
|
17285
|
+
const O = bs(async () => {
|
|
17286
17286
|
var N;
|
|
17287
17287
|
if (!k) {
|
|
17288
17288
|
try {
|
|
@@ -17399,7 +17399,7 @@ function Jg(e, { batch: t = !0, onError: n, onTransactions: r, poll: s, pollingI
|
|
|
17399
17399
|
]);
|
|
17400
17400
|
return mn(l, { onTransactions: r, onError: n }, (d) => {
|
|
17401
17401
|
let p;
|
|
17402
|
-
const f =
|
|
17402
|
+
const f = bs(async () => {
|
|
17403
17403
|
var m;
|
|
17404
17404
|
try {
|
|
17405
17405
|
if (!p)
|
|
@@ -17659,7 +17659,7 @@ async function fw(e, t) {
|
|
|
17659
17659
|
timeout: r
|
|
17660
17660
|
});
|
|
17661
17661
|
}
|
|
17662
|
-
const lc = new
|
|
17662
|
+
const lc = new ps(128);
|
|
17663
17663
|
async function Km(e, t) {
|
|
17664
17664
|
var O, N, R, h;
|
|
17665
17665
|
const { account: n = e.account, chain: r = e.chain, accessList: s, authorizationList: a, blobs: o, data: i, gas: c, gasPrice: l, maxFeePerBlobGas: d, maxFeePerGas: p, maxPriorityFeePerGas: f, nonce: m, pollingInterval: y, throwOnReceiptRevert: g, type: P, value: B, ...v } = t, U = t.timeout ?? Math.max(((r == null ? void 0 : r.blockTime) ?? 0) * 3, 5e3);
|
|
@@ -17813,7 +17813,7 @@ async function bw(e, { account: t = e.account, message: n }) {
|
|
|
17813
17813
|
const r = fe(t);
|
|
17814
17814
|
if (r.signMessage)
|
|
17815
17815
|
return r.signMessage({ message: n });
|
|
17816
|
-
const s = typeof n == "string" ?
|
|
17816
|
+
const s = typeof n == "string" ? rs(n) : n.raw instanceof Uint8Array ? le(n.raw) : n.raw;
|
|
17817
17817
|
return e.request({
|
|
17818
17818
|
method: "personal_sign",
|
|
17819
17819
|
params: [s, r.address]
|
|
@@ -17889,7 +17889,7 @@ async function ww(e, t) {
|
|
|
17889
17889
|
}, { retryCount: 0 });
|
|
17890
17890
|
}
|
|
17891
17891
|
async function Ew(e, t) {
|
|
17892
|
-
return
|
|
17892
|
+
return ua.internal(e, Km, "sendTransactionSync", t);
|
|
17893
17893
|
}
|
|
17894
17894
|
function kw(e) {
|
|
17895
17895
|
return {
|
|
@@ -17919,7 +17919,7 @@ function kw(e) {
|
|
|
17919
17919
|
switchChain: (t) => gw(e, t),
|
|
17920
17920
|
waitForCallsStatus: (t) => Zf(e, t),
|
|
17921
17921
|
watchAsset: (t) => ww(e, t),
|
|
17922
|
-
writeContract: (t) =>
|
|
17922
|
+
writeContract: (t) => ua(e, t),
|
|
17923
17923
|
writeContractSync: (t) => Ew(e, t)
|
|
17924
17924
|
};
|
|
17925
17925
|
}
|
|
@@ -18044,7 +18044,7 @@ function Sw(e) {
|
|
|
18044
18044
|
yParity: a
|
|
18045
18045
|
};
|
|
18046
18046
|
}
|
|
18047
|
-
const
|
|
18047
|
+
const Lr = (e, t) => !t || !e || _(e).isNaN() ? "" : Cg(e, t).toString(), gt = (e, t) => {
|
|
18048
18048
|
try {
|
|
18049
18049
|
if (!t || !e || _(e).isNaN()) return "";
|
|
18050
18050
|
const n = _(e).toFixed();
|
|
@@ -18065,7 +18065,7 @@ const da = (e, t) => !t || !e || _(e).isNaN() ? "" : Cg(e, t).toString(), gt = (
|
|
|
18065
18065
|
if (e != null && e.message)
|
|
18066
18066
|
return ((n = (t = e.message) == null ? void 0 : t.toLowerCase()) == null ? void 0 : n.includes("rejected")) || ((s = (r = e.message) == null ? void 0 : r.toLowerCase()) == null ? void 0 : s.includes("denied"));
|
|
18067
18067
|
}, Pw = (e, t) => {
|
|
18068
|
-
const n =
|
|
18068
|
+
const n = ls(t);
|
|
18069
18069
|
return n && wa(e.address) ? n.wToken : e;
|
|
18070
18070
|
};
|
|
18071
18071
|
function Bw(e) {
|
|
@@ -18075,14 +18075,14 @@ function Xm(e) {
|
|
|
18075
18075
|
return e ? e / 6e4 : 0;
|
|
18076
18076
|
}
|
|
18077
18077
|
const sD = (e, t) => e ? he.TWAP_MARKET : t === 1 ? he.LIMIT : he.TWAP_LIMIT, Qm = (e, t, n) => {
|
|
18078
|
-
const r =
|
|
18079
|
-
return wa((e == null ? void 0 : e.address) || "") &&
|
|
18078
|
+
const r = ls(n);
|
|
18079
|
+
return wa((e == null ? void 0 : e.address) || "") && ts((t == null ? void 0 : t.address) || "", (r == null ? void 0 : r.wToken.address) || "");
|
|
18080
18080
|
}, Jm = (e, t, n) => {
|
|
18081
|
-
const r =
|
|
18082
|
-
return
|
|
18081
|
+
const r = ls(n);
|
|
18082
|
+
return ts((e == null ? void 0 : e.address) || "", (r == null ? void 0 : r.wToken.address) || "") && wa((t == null ? void 0 : t.address) || "");
|
|
18083
18083
|
}, za = (e, t) => {
|
|
18084
18084
|
if (!t) return "";
|
|
18085
|
-
const n =
|
|
18085
|
+
const n = ls(t);
|
|
18086
18086
|
return `${n == null ? void 0 : n.explorer}/tx/${e}`;
|
|
18087
18087
|
}, Uw = /* @__PURE__ */ u({
|
|
18088
18088
|
id: 16600,
|
|
@@ -18285,7 +18285,7 @@ function th(e) {
|
|
|
18285
18285
|
if (!eh(e))
|
|
18286
18286
|
throw new Rw();
|
|
18287
18287
|
if (!t || t <= 0)
|
|
18288
|
-
throw new
|
|
18288
|
+
throw new ms({ chainId: t });
|
|
18289
18289
|
if (n && !be(n))
|
|
18290
18290
|
throw new Ue({ address: n });
|
|
18291
18291
|
if (r && !be(r))
|
|
@@ -19542,7 +19542,7 @@ const L = {
|
|
|
19542
19542
|
apiUrl: "https://www.ftnscan.com/api"
|
|
19543
19543
|
}
|
|
19544
19544
|
}
|
|
19545
|
-
}),
|
|
19545
|
+
}), vs = 1, sh = /* @__PURE__ */ u({
|
|
19546
19546
|
...L,
|
|
19547
19547
|
id: 8453,
|
|
19548
19548
|
name: "Base",
|
|
@@ -19562,12 +19562,12 @@ const L = {
|
|
|
19562
19562
|
contracts: {
|
|
19563
19563
|
...L.contracts,
|
|
19564
19564
|
disputeGameFactory: {
|
|
19565
|
-
[
|
|
19565
|
+
[vs]: {
|
|
19566
19566
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
19567
19567
|
}
|
|
19568
19568
|
},
|
|
19569
19569
|
l2OutputOracle: {
|
|
19570
|
-
[
|
|
19570
|
+
[vs]: {
|
|
19571
19571
|
address: "0x56315b90c40730925ec5485cf004d835058518A0"
|
|
19572
19572
|
}
|
|
19573
19573
|
},
|
|
@@ -19576,19 +19576,19 @@ const L = {
|
|
|
19576
19576
|
blockCreated: 5022
|
|
19577
19577
|
},
|
|
19578
19578
|
portal: {
|
|
19579
|
-
[
|
|
19579
|
+
[vs]: {
|
|
19580
19580
|
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
|
|
19581
19581
|
blockCreated: 17482143
|
|
19582
19582
|
}
|
|
19583
19583
|
},
|
|
19584
19584
|
l1StandardBridge: {
|
|
19585
|
-
[
|
|
19585
|
+
[vs]: {
|
|
19586
19586
|
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
|
|
19587
19587
|
blockCreated: 17482143
|
|
19588
19588
|
}
|
|
19589
19589
|
}
|
|
19590
19590
|
},
|
|
19591
|
-
sourceId:
|
|
19591
|
+
sourceId: vs
|
|
19592
19592
|
}), GE = /* @__PURE__ */ u({
|
|
19593
19593
|
...sh,
|
|
19594
19594
|
experimental_preconfirmationTime: 200,
|
|
@@ -19654,7 +19654,7 @@ const L = {
|
|
|
19654
19654
|
},
|
|
19655
19655
|
testnet: !0,
|
|
19656
19656
|
sourceId: ro
|
|
19657
|
-
}),
|
|
19657
|
+
}), As = 11155111, ah = /* @__PURE__ */ u({
|
|
19658
19658
|
...L,
|
|
19659
19659
|
id: 84532,
|
|
19660
19660
|
network: "base-sepolia",
|
|
@@ -19675,23 +19675,23 @@ const L = {
|
|
|
19675
19675
|
contracts: {
|
|
19676
19676
|
...L.contracts,
|
|
19677
19677
|
disputeGameFactory: {
|
|
19678
|
-
[
|
|
19678
|
+
[As]: {
|
|
19679
19679
|
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
19680
19680
|
}
|
|
19681
19681
|
},
|
|
19682
19682
|
l2OutputOracle: {
|
|
19683
|
-
[
|
|
19683
|
+
[As]: {
|
|
19684
19684
|
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
19685
19685
|
}
|
|
19686
19686
|
},
|
|
19687
19687
|
portal: {
|
|
19688
|
-
[
|
|
19688
|
+
[As]: {
|
|
19689
19689
|
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
19690
19690
|
blockCreated: 4446677
|
|
19691
19691
|
}
|
|
19692
19692
|
},
|
|
19693
19693
|
l1StandardBridge: {
|
|
19694
|
-
[
|
|
19694
|
+
[As]: {
|
|
19695
19695
|
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
19696
19696
|
blockCreated: 4446677
|
|
19697
19697
|
}
|
|
@@ -19702,7 +19702,7 @@ const L = {
|
|
|
19702
19702
|
}
|
|
19703
19703
|
},
|
|
19704
19704
|
testnet: !0,
|
|
19705
|
-
sourceId:
|
|
19705
|
+
sourceId: As
|
|
19706
19706
|
}), qE = /* @__PURE__ */ u({
|
|
19707
19707
|
...ah,
|
|
19708
19708
|
experimental_preconfirmationTime: 200,
|
|
@@ -20702,14 +20702,14 @@ async function z7(e, t) {
|
|
|
20702
20702
|
function oh(e) {
|
|
20703
20703
|
return e === 0 || e === 0n || e === void 0 || e === null || e === "0" || e === "" || typeof e == "string" && (tt(e).toLowerCase() === "0x" || tt(e).toLowerCase() === "0x00");
|
|
20704
20704
|
}
|
|
20705
|
-
function
|
|
20705
|
+
function Rs(e) {
|
|
20706
20706
|
return !oh(e);
|
|
20707
20707
|
}
|
|
20708
20708
|
function $7(e) {
|
|
20709
20709
|
return typeof e.maxFeePerGas < "u" && typeof e.maxPriorityFeePerGas < "u";
|
|
20710
20710
|
}
|
|
20711
20711
|
function ih(e) {
|
|
20712
|
-
return e.type === "cip64" ? !0 : $7(e) &&
|
|
20712
|
+
return e.type === "cip64" ? !0 : $7(e) && Rs(e.feeCurrency);
|
|
20713
20713
|
}
|
|
20714
20714
|
const L7 = {
|
|
20715
20715
|
block: /* @__PURE__ */ ql({
|
|
@@ -20766,7 +20766,7 @@ function j7(e, t) {
|
|
|
20766
20766
|
p ?? "0x",
|
|
20767
20767
|
Ma(l),
|
|
20768
20768
|
d,
|
|
20769
|
-
...
|
|
20769
|
+
...ys(e, t)
|
|
20770
20770
|
];
|
|
20771
20771
|
return ct([
|
|
20772
20772
|
"0x7b",
|
|
@@ -20777,16 +20777,16 @@ const V7 = fr;
|
|
|
20777
20777
|
function q7(e) {
|
|
20778
20778
|
const { chainId: t, maxPriorityFeePerGas: n, gasPrice: r, maxFeePerGas: s, to: a, feeCurrency: o } = e;
|
|
20779
20779
|
if (t <= 0)
|
|
20780
|
-
throw new
|
|
20780
|
+
throw new ms({ chainId: t });
|
|
20781
20781
|
if (a && !be(a))
|
|
20782
20782
|
throw new Ue({ address: a });
|
|
20783
20783
|
if (r)
|
|
20784
20784
|
throw new z("`gasPrice` is not a valid CIP-64 Transaction attribute.");
|
|
20785
|
-
if (
|
|
20785
|
+
if (Rs(s) && s > V7)
|
|
20786
20786
|
throw new _n({ maxFeePerGas: s });
|
|
20787
|
-
if (
|
|
20788
|
-
throw new
|
|
20789
|
-
if (
|
|
20787
|
+
if (Rs(n) && Rs(s) && n > s)
|
|
20788
|
+
throw new cs({ maxFeePerGas: s, maxPriorityFeePerGas: n });
|
|
20789
|
+
if (Rs(o) && !be(o))
|
|
20790
20790
|
throw new z("`feeCurrency` MUST be a token address for CIP-64 transactions.");
|
|
20791
20791
|
if (oh(o))
|
|
20792
20792
|
throw new z("`feeCurrency` must be provided for CIP-64 transactions.");
|
|
@@ -28032,7 +28032,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28032
28032
|
}
|
|
28033
28033
|
},
|
|
28034
28034
|
testnet: !1
|
|
28035
|
-
}),
|
|
28035
|
+
}), Ts = 1, XA = /* @__PURE__ */ u({
|
|
28036
28036
|
...L,
|
|
28037
28037
|
id: 10,
|
|
28038
28038
|
name: "OP Mainnet",
|
|
@@ -28052,12 +28052,12 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28052
28052
|
contracts: {
|
|
28053
28053
|
...L.contracts,
|
|
28054
28054
|
disputeGameFactory: {
|
|
28055
|
-
[
|
|
28055
|
+
[Ts]: {
|
|
28056
28056
|
address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9"
|
|
28057
28057
|
}
|
|
28058
28058
|
},
|
|
28059
28059
|
l2OutputOracle: {
|
|
28060
|
-
[
|
|
28060
|
+
[Ts]: {
|
|
28061
28061
|
address: "0xdfe97868233d1aa22e815a266982f2cf17685a27"
|
|
28062
28062
|
}
|
|
28063
28063
|
},
|
|
@@ -28066,17 +28066,17 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28066
28066
|
blockCreated: 4286263
|
|
28067
28067
|
},
|
|
28068
28068
|
portal: {
|
|
28069
|
-
[
|
|
28069
|
+
[Ts]: {
|
|
28070
28070
|
address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"
|
|
28071
28071
|
}
|
|
28072
28072
|
},
|
|
28073
28073
|
l1StandardBridge: {
|
|
28074
|
-
[
|
|
28074
|
+
[Ts]: {
|
|
28075
28075
|
address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"
|
|
28076
28076
|
}
|
|
28077
28077
|
}
|
|
28078
28078
|
},
|
|
28079
|
-
sourceId:
|
|
28079
|
+
sourceId: Ts
|
|
28080
28080
|
}), wo = 5, QA = /* @__PURE__ */ u({
|
|
28081
28081
|
...L,
|
|
28082
28082
|
id: 420,
|
|
@@ -28118,7 +28118,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28118
28118
|
},
|
|
28119
28119
|
testnet: !0,
|
|
28120
28120
|
sourceId: wo
|
|
28121
|
-
}),
|
|
28121
|
+
}), Ss = 11155111, JA = /* @__PURE__ */ u({
|
|
28122
28122
|
...L,
|
|
28123
28123
|
id: 11155420,
|
|
28124
28124
|
name: "OP Sepolia",
|
|
@@ -28138,12 +28138,12 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28138
28138
|
contracts: {
|
|
28139
28139
|
...L.contracts,
|
|
28140
28140
|
disputeGameFactory: {
|
|
28141
|
-
[
|
|
28141
|
+
[Ss]: {
|
|
28142
28142
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
28143
28143
|
}
|
|
28144
28144
|
},
|
|
28145
28145
|
l2OutputOracle: {
|
|
28146
|
-
[
|
|
28146
|
+
[Ss]: {
|
|
28147
28147
|
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
28148
28148
|
}
|
|
28149
28149
|
},
|
|
@@ -28152,18 +28152,18 @@ const h4 = /* @__PURE__ */ u({
|
|
|
28152
28152
|
blockCreated: 1620204
|
|
28153
28153
|
},
|
|
28154
28154
|
portal: {
|
|
28155
|
-
[
|
|
28155
|
+
[Ss]: {
|
|
28156
28156
|
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
28157
28157
|
}
|
|
28158
28158
|
},
|
|
28159
28159
|
l1StandardBridge: {
|
|
28160
|
-
[
|
|
28160
|
+
[Ss]: {
|
|
28161
28161
|
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
28162
28162
|
}
|
|
28163
28163
|
}
|
|
28164
28164
|
},
|
|
28165
28165
|
testnet: !0,
|
|
28166
|
-
sourceId:
|
|
28166
|
+
sourceId: Ss
|
|
28167
28167
|
}), YA = /* @__PURE__ */ u({
|
|
28168
28168
|
id: 62050,
|
|
28169
28169
|
name: "Optopia",
|
|
@@ -30657,7 +30657,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30657
30657
|
}
|
|
30658
30658
|
},
|
|
30659
30659
|
testnet: !0
|
|
30660
|
-
}),
|
|
30660
|
+
}), Ps = 1, oP = /* @__PURE__ */ u({
|
|
30661
30661
|
...L,
|
|
30662
30662
|
id: 2192,
|
|
30663
30663
|
network: "snaxchain-mainnet",
|
|
@@ -30678,12 +30678,12 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30678
30678
|
contracts: {
|
|
30679
30679
|
...L.contracts,
|
|
30680
30680
|
disputeGameFactory: {
|
|
30681
|
-
[
|
|
30681
|
+
[Ps]: {
|
|
30682
30682
|
address: "0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"
|
|
30683
30683
|
}
|
|
30684
30684
|
},
|
|
30685
30685
|
l2OutputOracle: {
|
|
30686
|
-
[
|
|
30686
|
+
[Ps]: {
|
|
30687
30687
|
address: "0x2172e492Fc807F5d5645D0E3543f139ECF539294"
|
|
30688
30688
|
}
|
|
30689
30689
|
},
|
|
@@ -30691,18 +30691,18 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30691
30691
|
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
30692
30692
|
},
|
|
30693
30693
|
portal: {
|
|
30694
|
-
[
|
|
30694
|
+
[Ps]: {
|
|
30695
30695
|
address: "0x79f446D024d74D0Bb6E699C131c703463c5D65E9"
|
|
30696
30696
|
}
|
|
30697
30697
|
},
|
|
30698
30698
|
l1StandardBridge: {
|
|
30699
|
-
[
|
|
30699
|
+
[Ps]: {
|
|
30700
30700
|
address: "0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"
|
|
30701
30701
|
}
|
|
30702
30702
|
}
|
|
30703
30703
|
},
|
|
30704
|
-
sourceId:
|
|
30705
|
-
}),
|
|
30704
|
+
sourceId: Ps
|
|
30705
|
+
}), Bs = 11155111, iP = /* @__PURE__ */ u({
|
|
30706
30706
|
...L,
|
|
30707
30707
|
id: 13001,
|
|
30708
30708
|
network: "snaxchain-testnet",
|
|
@@ -30723,12 +30723,12 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30723
30723
|
contracts: {
|
|
30724
30724
|
...L.contracts,
|
|
30725
30725
|
disputeGameFactory: {
|
|
30726
|
-
[
|
|
30726
|
+
[Bs]: {
|
|
30727
30727
|
address: "0x206a75d89d45F146C54020F132FF93bEDD09f55E"
|
|
30728
30728
|
}
|
|
30729
30729
|
},
|
|
30730
30730
|
l2OutputOracle: {
|
|
30731
|
-
[
|
|
30731
|
+
[Bs]: {
|
|
30732
30732
|
address: "0x60e3A368a4cdCEf85ffB964e372726F56A46221e"
|
|
30733
30733
|
}
|
|
30734
30734
|
},
|
|
@@ -30736,18 +30736,18 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30736
30736
|
address: "0xca11bde05977b3631167028862be2a173976ca11"
|
|
30737
30737
|
},
|
|
30738
30738
|
portal: {
|
|
30739
|
-
[
|
|
30739
|
+
[Bs]: {
|
|
30740
30740
|
address: "0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"
|
|
30741
30741
|
}
|
|
30742
30742
|
},
|
|
30743
30743
|
l1StandardBridge: {
|
|
30744
|
-
[
|
|
30744
|
+
[Bs]: {
|
|
30745
30745
|
address: "0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"
|
|
30746
30746
|
}
|
|
30747
30747
|
}
|
|
30748
30748
|
},
|
|
30749
30749
|
testnet: !0,
|
|
30750
|
-
sourceId:
|
|
30750
|
+
sourceId: Bs
|
|
30751
30751
|
}), cP = /* @__PURE__ */ u({
|
|
30752
30752
|
id: 5031,
|
|
30753
30753
|
name: "Somnia",
|
|
@@ -30788,7 +30788,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30788
30788
|
}
|
|
30789
30789
|
},
|
|
30790
30790
|
testnet: !0
|
|
30791
|
-
}),
|
|
30791
|
+
}), Us = 1, uP = /* @__PURE__ */ u({
|
|
30792
30792
|
...L,
|
|
30793
30793
|
id: 1868,
|
|
30794
30794
|
name: "Soneium Mainnet",
|
|
@@ -30808,23 +30808,23 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30808
30808
|
contracts: {
|
|
30809
30809
|
...L.contracts,
|
|
30810
30810
|
disputeGameFactory: {
|
|
30811
|
-
[
|
|
30811
|
+
[Us]: {
|
|
30812
30812
|
address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
|
|
30813
30813
|
}
|
|
30814
30814
|
},
|
|
30815
30815
|
l2OutputOracle: {
|
|
30816
|
-
[
|
|
30816
|
+
[Us]: {
|
|
30817
30817
|
address: "0x0000000000000000000000000000000000000000"
|
|
30818
30818
|
}
|
|
30819
30819
|
},
|
|
30820
30820
|
portal: {
|
|
30821
|
-
[
|
|
30821
|
+
[Us]: {
|
|
30822
30822
|
address: "0x88e529a6ccd302c948689cd5156c83d4614fae92",
|
|
30823
30823
|
blockCreated: 7061266
|
|
30824
30824
|
}
|
|
30825
30825
|
},
|
|
30826
30826
|
l1StandardBridge: {
|
|
30827
|
-
[
|
|
30827
|
+
[Us]: {
|
|
30828
30828
|
address: "0xeb9bf100225c214efc3e7c651ebbadcf85177607",
|
|
30829
30829
|
blockCreated: 7061266
|
|
30830
30830
|
}
|
|
@@ -30834,8 +30834,8 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30834
30834
|
blockCreated: 1
|
|
30835
30835
|
}
|
|
30836
30836
|
},
|
|
30837
|
-
sourceId:
|
|
30838
|
-
}),
|
|
30837
|
+
sourceId: Us
|
|
30838
|
+
}), Is = 11155111, dP = /* @__PURE__ */ u({
|
|
30839
30839
|
...L,
|
|
30840
30840
|
id: 1946,
|
|
30841
30841
|
name: "Soneium Minato Testnet",
|
|
@@ -30855,23 +30855,23 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30855
30855
|
contracts: {
|
|
30856
30856
|
...L.contracts,
|
|
30857
30857
|
disputeGameFactory: {
|
|
30858
|
-
[
|
|
30858
|
+
[Is]: {
|
|
30859
30859
|
address: "0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"
|
|
30860
30860
|
}
|
|
30861
30861
|
},
|
|
30862
30862
|
l2OutputOracle: {
|
|
30863
|
-
[
|
|
30863
|
+
[Is]: {
|
|
30864
30864
|
address: "0x710e5286C746eC38beeB7538d0146f60D27be343"
|
|
30865
30865
|
}
|
|
30866
30866
|
},
|
|
30867
30867
|
portal: {
|
|
30868
|
-
[
|
|
30868
|
+
[Is]: {
|
|
30869
30869
|
address: "0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",
|
|
30870
30870
|
blockCreated: 6466136
|
|
30871
30871
|
}
|
|
30872
30872
|
},
|
|
30873
30873
|
l1StandardBridge: {
|
|
30874
|
-
[
|
|
30874
|
+
[Is]: {
|
|
30875
30875
|
address: "0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",
|
|
30876
30876
|
blockCreated: 6466136
|
|
30877
30877
|
}
|
|
@@ -30882,7 +30882,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
30882
30882
|
}
|
|
30883
30883
|
},
|
|
30884
30884
|
testnet: !0,
|
|
30885
|
-
sourceId:
|
|
30885
|
+
sourceId: Is
|
|
30886
30886
|
}), pP = /* @__PURE__ */ u({
|
|
30887
30887
|
id: 19,
|
|
30888
30888
|
name: "Songbird Canary-Network",
|
|
@@ -31347,7 +31347,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31347
31347
|
}
|
|
31348
31348
|
},
|
|
31349
31349
|
testnet: !1
|
|
31350
|
-
}),
|
|
31350
|
+
}), Fs = 1, IP = /* @__PURE__ */ u({
|
|
31351
31351
|
...L,
|
|
31352
31352
|
id: 5330,
|
|
31353
31353
|
name: "Superseed",
|
|
@@ -31367,25 +31367,25 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31367
31367
|
contracts: {
|
|
31368
31368
|
...L.contracts,
|
|
31369
31369
|
disputeGameFactory: {
|
|
31370
|
-
[
|
|
31370
|
+
[Fs]: {
|
|
31371
31371
|
address: "0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",
|
|
31372
31372
|
blockCreated: 20737481
|
|
31373
31373
|
}
|
|
31374
31374
|
},
|
|
31375
31375
|
l2OutputOracle: {
|
|
31376
|
-
[
|
|
31376
|
+
[Fs]: {
|
|
31377
31377
|
address: "0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",
|
|
31378
31378
|
blockCreated: 20737481
|
|
31379
31379
|
}
|
|
31380
31380
|
},
|
|
31381
31381
|
portal: {
|
|
31382
|
-
[
|
|
31382
|
+
[Fs]: {
|
|
31383
31383
|
address: "0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",
|
|
31384
31384
|
blockCreated: 20737481
|
|
31385
31385
|
}
|
|
31386
31386
|
},
|
|
31387
31387
|
l1StandardBridge: {
|
|
31388
|
-
[
|
|
31388
|
+
[Fs]: {
|
|
31389
31389
|
address: "0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",
|
|
31390
31390
|
blockCreated: 20737481
|
|
31391
31391
|
}
|
|
@@ -31394,7 +31394,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31394
31394
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
31395
31395
|
}
|
|
31396
31396
|
},
|
|
31397
|
-
sourceId:
|
|
31397
|
+
sourceId: Fs
|
|
31398
31398
|
}), fc = 11155111, FP = /* @__PURE__ */ u({
|
|
31399
31399
|
...L,
|
|
31400
31400
|
id: 53302,
|
|
@@ -31900,7 +31900,7 @@ const h4 = /* @__PURE__ */ u({
|
|
|
31900
31900
|
testnet: !0
|
|
31901
31901
|
});
|
|
31902
31902
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
31903
|
-
const lh =
|
|
31903
|
+
const lh = xs(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")), nB = lh.create(BigInt("-3")), rB = BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"), sB = Ci({
|
|
31904
31904
|
a: nB,
|
|
31905
31905
|
b: rB,
|
|
31906
31906
|
Fp: lh,
|
|
@@ -31909,7 +31909,7 @@ const lh = ys(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffff
|
|
|
31909
31909
|
Gy: BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),
|
|
31910
31910
|
h: BigInt(1),
|
|
31911
31911
|
lowS: !1
|
|
31912
|
-
}, Ql), uh =
|
|
31912
|
+
}, Ql), uh = xs(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")), aB = uh.create(BigInt("-3")), oB = BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");
|
|
31913
31913
|
Ci({
|
|
31914
31914
|
a: aB,
|
|
31915
31915
|
b: oB,
|
|
@@ -31920,7 +31920,7 @@ Ci({
|
|
|
31920
31920
|
h: BigInt(1),
|
|
31921
31921
|
lowS: !1
|
|
31922
31922
|
}, A5);
|
|
31923
|
-
const dh =
|
|
31923
|
+
const dh = xs(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")), iB = dh.create(BigInt("-3")), cB = BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");
|
|
31924
31924
|
Ci({
|
|
31925
31925
|
a: iB,
|
|
31926
31926
|
b: cB,
|
|
@@ -32004,7 +32004,7 @@ function pB(e) {
|
|
|
32004
32004
|
});
|
|
32005
32005
|
}
|
|
32006
32006
|
const xl = "0x01", gl = "0x02", fh = "0x03", qn = "0x7777777777777777777777777777777777777777777777777777777777777777";
|
|
32007
|
-
function
|
|
32007
|
+
function gs(e) {
|
|
32008
32008
|
const t = e.endsWith(qn.slice(2)) ? oe(e, 0, -Te(qn)) : e;
|
|
32009
32009
|
if (Te(t) === 65) {
|
|
32010
32010
|
const o = Pu(t);
|
|
@@ -32013,7 +32013,7 @@ function xs(e) {
|
|
|
32013
32013
|
const r = oe(t, 0, 1), s = oe(t, 1), a = Te(s);
|
|
32014
32014
|
if (r === xl) {
|
|
32015
32015
|
if (a !== 129)
|
|
32016
|
-
throw new
|
|
32016
|
+
throw new Ns({
|
|
32017
32017
|
reason: `Invalid P256 signature envelope size: expected 129 bytes, got ${a} bytes`,
|
|
32018
32018
|
serialized: t
|
|
32019
32019
|
});
|
|
@@ -32023,7 +32023,7 @@ function xs(e) {
|
|
|
32023
32023
|
x: ve(oe(s, 64, 96)),
|
|
32024
32024
|
y: ve(oe(s, 96, 128))
|
|
32025
32025
|
},
|
|
32026
|
-
prehash:
|
|
32026
|
+
prehash: la(oe(s, 128, 129)) !== 0,
|
|
32027
32027
|
signature: {
|
|
32028
32028
|
r: ve(oe(s, 0, 32)),
|
|
32029
32029
|
s: ve(oe(s, 32, 64))
|
|
@@ -32033,7 +32033,7 @@ function xs(e) {
|
|
|
32033
32033
|
}
|
|
32034
32034
|
if (r === gl) {
|
|
32035
32035
|
if (a < 128)
|
|
32036
|
-
throw new
|
|
32036
|
+
throw new Ns({
|
|
32037
32037
|
reason: `Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${a} bytes`,
|
|
32038
32038
|
serialized: t
|
|
32039
32039
|
});
|
|
@@ -32049,7 +32049,7 @@ function xs(e) {
|
|
|
32049
32049
|
}
|
|
32050
32050
|
}
|
|
32051
32051
|
if (!c || !l)
|
|
32052
|
-
throw new
|
|
32052
|
+
throw new Ns({
|
|
32053
32053
|
reason: "Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",
|
|
32054
32054
|
serialized: t
|
|
32055
32055
|
});
|
|
@@ -32071,21 +32071,21 @@ function xs(e) {
|
|
|
32071
32071
|
};
|
|
32072
32072
|
}
|
|
32073
32073
|
if (r === fh) {
|
|
32074
|
-
const o = oe(s, 0, 20), i =
|
|
32074
|
+
const o = oe(s, 0, 20), i = gs(oe(s, 20));
|
|
32075
32075
|
return {
|
|
32076
32076
|
userAddress: o,
|
|
32077
32077
|
inner: i,
|
|
32078
32078
|
type: "keychain"
|
|
32079
32079
|
};
|
|
32080
32080
|
}
|
|
32081
|
-
throw new
|
|
32081
|
+
throw new Ns({
|
|
32082
32082
|
reason: `Unknown signature type identifier: ${r}. Expected ${xl} (P256) or ${gl} (WebAuthn)`,
|
|
32083
32083
|
serialized: t
|
|
32084
32084
|
});
|
|
32085
32085
|
}
|
|
32086
32086
|
function $a(e) {
|
|
32087
32087
|
if (typeof e == "string")
|
|
32088
|
-
return
|
|
32088
|
+
return gs(e);
|
|
32089
32089
|
if (typeof e == "object" && e !== null && "r" in e && "s" in e && "yParity" in e)
|
|
32090
32090
|
return { signature: e, type: "secp256k1" };
|
|
32091
32091
|
const t = Nu(e);
|
|
@@ -32128,7 +32128,7 @@ function Pi(e) {
|
|
|
32128
32128
|
}
|
|
32129
32129
|
}
|
|
32130
32130
|
if (!r || !s)
|
|
32131
|
-
throw new
|
|
32131
|
+
throw new Ns({
|
|
32132
32132
|
reason: "Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",
|
|
32133
32133
|
serialized: t
|
|
32134
32134
|
});
|
|
@@ -32277,7 +32277,7 @@ class fa extends K {
|
|
|
32277
32277
|
});
|
|
32278
32278
|
}
|
|
32279
32279
|
}
|
|
32280
|
-
let
|
|
32280
|
+
let Ns = class extends K {
|
|
32281
32281
|
constructor({ reason: t, serialized: n }) {
|
|
32282
32282
|
super(`Unable to deserialize signature envelope: ${t}`, {
|
|
32283
32283
|
metaMessages: [`Serialized: ${n}`]
|
|
@@ -32320,7 +32320,7 @@ function yB(e) {
|
|
|
32320
32320
|
chainId: t === "0x" ? 0 : Number(t),
|
|
32321
32321
|
nonce: r === "0x" ? 0n : BigInt(r)
|
|
32322
32322
|
};
|
|
32323
|
-
return s && (a.signature =
|
|
32323
|
+
return s && (a.signature = gs(s)), hB(a);
|
|
32324
32324
|
}
|
|
32325
32325
|
function xB(e) {
|
|
32326
32326
|
const t = [];
|
|
@@ -32392,10 +32392,10 @@ function vB(e) {
|
|
|
32392
32392
|
}
|
|
32393
32393
|
})(), l = {
|
|
32394
32394
|
address: a,
|
|
32395
|
-
expiry: typeof o < "u" ?
|
|
32395
|
+
expiry: typeof o < "u" ? la(o) : void 0,
|
|
32396
32396
|
type: c,
|
|
32397
32397
|
...r !== "0x" ? { chainId: ve(r) } : {},
|
|
32398
|
-
...typeof o < "u" ? { expiry:
|
|
32398
|
+
...typeof o < "u" ? { expiry: la(o) } : {},
|
|
32399
32399
|
...typeof i < "u" ? {
|
|
32400
32400
|
limits: i.map(([d, p]) => ({
|
|
32401
32401
|
token: d,
|
|
@@ -32403,7 +32403,7 @@ function vB(e) {
|
|
|
32403
32403
|
}))
|
|
32404
32404
|
} : {}
|
|
32405
32405
|
};
|
|
32406
|
-
return n && (l.signature =
|
|
32406
|
+
return n && (l.signature = gs(n)), CB(l);
|
|
32407
32407
|
}
|
|
32408
32408
|
function AB(e) {
|
|
32409
32409
|
const { address: t, chainId: n = 0n, expiry: r, limits: s, type: a, signature: o } = e;
|
|
@@ -32676,7 +32676,7 @@ function GB(e) {
|
|
|
32676
32676
|
});
|
|
32677
32677
|
}
|
|
32678
32678
|
(i == null ? void 0 : i.length) !== 0 && i !== "0x" && (U.accessList = DB(i)), (y == null ? void 0 : y.length) !== 0 && y !== "0x" && (U.authorizationList = xB(y)), m !== "0x" && m !== void 0 && (m === "0x00" || Zo(m) ? U.feePayerSignature = null : U.feePayerSignature = sg(m)), B && (U.keyAuthorization = vB(B));
|
|
32679
|
-
const k = v ?
|
|
32679
|
+
const k = v ? gs(v) : void 0;
|
|
32680
32680
|
return k && (U = {
|
|
32681
32681
|
...U,
|
|
32682
32682
|
signature: k
|
|
@@ -32691,7 +32691,7 @@ function jB(e, t = {}) {
|
|
|
32691
32691
|
type: "tempo"
|
|
32692
32692
|
};
|
|
32693
32693
|
}
|
|
32694
|
-
function
|
|
32694
|
+
function zs(e, t = {}) {
|
|
32695
32695
|
const { accessList: n, authorizationList: r, calls: s, chainId: a, feeToken: o, gas: i, keyAuthorization: c, nonce: l, nonceKey: d, maxFeePerGas: p, maxPriorityFeePerGas: f, validBefore: m, validAfter: y } = e;
|
|
32696
32696
|
zu(e);
|
|
32697
32697
|
const g = OB(n), P = t.signature || e.signature, B = kB(r), v = s.map((O) => [
|
|
@@ -32726,7 +32726,7 @@ function VB(e) {
|
|
|
32726
32726
|
return qB(e, { presign: !0 });
|
|
32727
32727
|
}
|
|
32728
32728
|
function qB(e, t = {}) {
|
|
32729
|
-
const n =
|
|
32729
|
+
const n = zs({
|
|
32730
32730
|
...e,
|
|
32731
32731
|
...t.presign ? {
|
|
32732
32732
|
signature: void 0
|
|
@@ -32735,7 +32735,7 @@ function qB(e, t = {}) {
|
|
|
32735
32735
|
return Ra(n);
|
|
32736
32736
|
}
|
|
32737
32737
|
function KB(e, t) {
|
|
32738
|
-
const { sender: n } = t, r =
|
|
32738
|
+
const { sender: n } = t, r = zs({ ...e, signature: void 0 }, {
|
|
32739
32739
|
sender: n,
|
|
32740
32740
|
format: "feePayer"
|
|
32741
32741
|
});
|
|
@@ -32838,18 +32838,18 @@ async function QB(e, t) {
|
|
|
32838
32838
|
}), m = await e.feePayer.sign({
|
|
32839
32839
|
hash: f
|
|
32840
32840
|
});
|
|
32841
|
-
return
|
|
32841
|
+
return zs(d, {
|
|
32842
32842
|
feePayerSignature: Ai(m)
|
|
32843
32843
|
});
|
|
32844
32844
|
}
|
|
32845
32845
|
if (s === !0) {
|
|
32846
|
-
const d =
|
|
32846
|
+
const d = zs(c, {
|
|
32847
32847
|
feePayerSignature: null,
|
|
32848
32848
|
signature: n
|
|
32849
32849
|
});
|
|
32850
32850
|
return e.from && n ? Ee(d, e.from, "0xfeefeefeefee") : d;
|
|
32851
32851
|
}
|
|
32852
|
-
return
|
|
32852
|
+
return zs(
|
|
32853
32853
|
// If we have specified a fee payer, the user will not be signing over the fee token.
|
|
32854
32854
|
// Defer the fee token signing to the fee payer.
|
|
32855
32855
|
{ ...c, ...s ? { feeToken: void 0 } : {} },
|
|
@@ -32980,7 +32980,7 @@ const Lu = {
|
|
|
32980
32980
|
async verifyHash(e, t) {
|
|
32981
32981
|
const { address: n, hash: r, signature: s } = t;
|
|
32982
32982
|
if (typeof s == "string" && s.endsWith(qn.slice(2))) {
|
|
32983
|
-
const a =
|
|
32983
|
+
const a = gs(s);
|
|
32984
32984
|
if (a.type !== "keychain") {
|
|
32985
32985
|
const o = await Ko(e, {
|
|
32986
32986
|
address: n,
|
|
@@ -33928,7 +33928,7 @@ const Lu = {
|
|
|
33928
33928
|
}
|
|
33929
33929
|
},
|
|
33930
33930
|
testnet: !0
|
|
33931
|
-
}),
|
|
33931
|
+
}), Ds = 1, YU = /* @__PURE__ */ u({
|
|
33932
33932
|
...L,
|
|
33933
33933
|
id: 480,
|
|
33934
33934
|
name: "World Chain",
|
|
@@ -33956,29 +33956,29 @@ const Lu = {
|
|
|
33956
33956
|
blockCreated: 0
|
|
33957
33957
|
},
|
|
33958
33958
|
disputeGameFactory: {
|
|
33959
|
-
[
|
|
33959
|
+
[Ds]: {
|
|
33960
33960
|
address: "0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"
|
|
33961
33961
|
}
|
|
33962
33962
|
},
|
|
33963
33963
|
l2OutputOracle: {
|
|
33964
|
-
[
|
|
33964
|
+
[Ds]: {
|
|
33965
33965
|
address: "0x19A6d1E9034596196295CF148509796978343c5D"
|
|
33966
33966
|
}
|
|
33967
33967
|
},
|
|
33968
33968
|
portal: {
|
|
33969
|
-
[
|
|
33969
|
+
[Ds]: {
|
|
33970
33970
|
address: "0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"
|
|
33971
33971
|
}
|
|
33972
33972
|
},
|
|
33973
33973
|
l1StandardBridge: {
|
|
33974
|
-
[
|
|
33974
|
+
[Ds]: {
|
|
33975
33975
|
address: "0x470458C91978D2d929704489Ad730DC3E3001113"
|
|
33976
33976
|
}
|
|
33977
33977
|
}
|
|
33978
33978
|
},
|
|
33979
33979
|
testnet: !1,
|
|
33980
|
-
sourceId:
|
|
33981
|
-
}),
|
|
33980
|
+
sourceId: Ds
|
|
33981
|
+
}), Os = 11155111, eI = /* @__PURE__ */ u({
|
|
33982
33982
|
...L,
|
|
33983
33983
|
id: 4801,
|
|
33984
33984
|
name: "World Chain Sepolia",
|
|
@@ -34006,28 +34006,28 @@ const Lu = {
|
|
|
34006
34006
|
blockCreated: 0
|
|
34007
34007
|
},
|
|
34008
34008
|
disputeGameFactory: {
|
|
34009
|
-
[
|
|
34009
|
+
[Os]: {
|
|
34010
34010
|
address: "0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"
|
|
34011
34011
|
}
|
|
34012
34012
|
},
|
|
34013
34013
|
l2OutputOracle: {
|
|
34014
|
-
[
|
|
34014
|
+
[Os]: {
|
|
34015
34015
|
address: "0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"
|
|
34016
34016
|
}
|
|
34017
34017
|
},
|
|
34018
34018
|
portal: {
|
|
34019
|
-
[
|
|
34019
|
+
[Os]: {
|
|
34020
34020
|
address: "0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"
|
|
34021
34021
|
}
|
|
34022
34022
|
},
|
|
34023
34023
|
l1StandardBridge: {
|
|
34024
|
-
[
|
|
34024
|
+
[Os]: {
|
|
34025
34025
|
address: "0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"
|
|
34026
34026
|
}
|
|
34027
34027
|
}
|
|
34028
34028
|
},
|
|
34029
34029
|
testnet: !0,
|
|
34030
|
-
sourceId:
|
|
34030
|
+
sourceId: Os
|
|
34031
34031
|
}), tI = /* @__PURE__ */ u({
|
|
34032
34032
|
id: 103,
|
|
34033
34033
|
name: "WorldLand Mainnet",
|
|
@@ -35829,7 +35829,7 @@ const kh = Lp(null), GI = new ey({
|
|
|
35829
35829
|
return {
|
|
35830
35830
|
isLoading: !1,
|
|
35831
35831
|
noLiquidity: !1,
|
|
35832
|
-
value:
|
|
35832
|
+
value: Lr(s || "0", t == null ? void 0 : t.decimals)
|
|
35833
35833
|
};
|
|
35834
35834
|
if (_(e.value || 0).isZero() || _(s || 0).isZero())
|
|
35835
35835
|
return e;
|
|
@@ -35960,9 +35960,9 @@ function ZI(e, t = 6, n = 8) {
|
|
|
35960
35960
|
return e || "";
|
|
35961
35961
|
}
|
|
35962
35962
|
}
|
|
35963
|
-
const Ch = (e, t) => W(() =>
|
|
35963
|
+
const Ch = (e, t) => W(() => Lr(t, e), [e, t]), Ui = (e, t) => W(() => gt(t, e), [e, t]), Hu = () => {
|
|
35964
35964
|
const { chainId: e } = X();
|
|
35965
|
-
return W(() =>
|
|
35965
|
+
return W(() => ls(e), [e]);
|
|
35966
35966
|
}, lD = (e) => {
|
|
35967
35967
|
const t = Hu();
|
|
35968
35968
|
return W(() => {
|
|
@@ -36160,7 +36160,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36160
36160
|
const { srcUsd1Token: o, dstUsd1Token: i } = X(), { isInverted: c } = ju(), l = W(() => _((() => {
|
|
36161
36161
|
if (e !== void 0) {
|
|
36162
36162
|
const P = c ? _(e).isZero() ? _(0) : _(1).div(e) : _(e);
|
|
36163
|
-
return
|
|
36163
|
+
return Lr(P.toFixed(), t);
|
|
36164
36164
|
}
|
|
36165
36165
|
if (r !== void 0 && _(n || "0").gt(0) && !_(n || "0").isNaN()) {
|
|
36166
36166
|
const P = _(n || "0"), B = _(r || 0).div(100);
|
|
@@ -36418,28 +36418,27 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36418
36418
|
recipient: e.maker || "",
|
|
36419
36419
|
srcAmount: e.srcAmount || "",
|
|
36420
36420
|
srcAmountUI: gt(e.srcAmount, t == null ? void 0 : t.decimals),
|
|
36421
|
-
|
|
36422
|
-
dstAmount: "",
|
|
36423
|
-
dstAmountUI: "",
|
|
36424
|
-
dstAmountUsd: "",
|
|
36425
|
-
limitPrice: da(s, n == null ? void 0 : n.decimals),
|
|
36421
|
+
limitPrice: Lr(s, n == null ? void 0 : n.decimals),
|
|
36426
36422
|
limitPriceUI: s || "",
|
|
36427
|
-
limitPriceUsd: "",
|
|
36428
36423
|
sizePerTrade: e.srcAmountPerTrade || "",
|
|
36429
36424
|
sizePerTradeUI: gt(e.srcAmountPerTrade, t == null ? void 0 : t.decimals),
|
|
36430
36425
|
minDestAmountPerTrade: e.dstMinAmountPerTrade || "",
|
|
36431
|
-
minDestAmountPerTradeUI: gt(
|
|
36426
|
+
minDestAmountPerTradeUI: gt(
|
|
36427
|
+
e.dstMinAmountPerTrade,
|
|
36428
|
+
n == null ? void 0 : n.decimals
|
|
36429
|
+
),
|
|
36432
36430
|
dstMinAmount: e.dstMinAmountTotal,
|
|
36433
36431
|
dstMinAmountUI: gt(e.dstMinAmountTotal, n == null ? void 0 : n.decimals),
|
|
36434
|
-
|
|
36435
|
-
triggerPrice: da(a, n == null ? void 0 : n.decimals),
|
|
36432
|
+
triggerPrice: Lr(a, n == null ? void 0 : n.decimals),
|
|
36436
36433
|
triggerPriceUI: a || "",
|
|
36437
36434
|
id: e.id,
|
|
36438
|
-
amountInFilled:
|
|
36439
|
-
|
|
36440
|
-
|
|
36435
|
+
amountInFilled: e.srcAmountFilled,
|
|
36436
|
+
amountInFilledUI: gt(e.srcAmountFilled, t == null ? void 0 : t.decimals),
|
|
36437
|
+
amountOutFilled: e.dstAmountFilled,
|
|
36438
|
+
amountOutFilledUI: gt(e.dstAmountFilled, n == null ? void 0 : n.decimals),
|
|
36441
36439
|
progress: e.progress,
|
|
36442
|
-
executionPrice: o,
|
|
36440
|
+
executionPrice: Lr(o, n == null ? void 0 : n.decimals),
|
|
36441
|
+
executionPriceUI: o,
|
|
36443
36442
|
version: e.version
|
|
36444
36443
|
};
|
|
36445
36444
|
}, [
|
|
@@ -36507,7 +36506,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36507
36506
|
}, Th = () => {
|
|
36508
36507
|
const { module: e, marketPrice: t } = X(), n = Ii().amountWei, r = vr().amountWei, s = ne((a) => a.state.isMarketOrder);
|
|
36509
36508
|
return e === te.LIMIT || !s ? n || "" : e === te.STOP_LOSS || e === te.TAKE_PROFIT ? r || "" : t || "";
|
|
36510
|
-
},
|
|
36509
|
+
}, ws = () => {
|
|
36511
36510
|
const { srcToken: e, dstToken: t, dstUsd1Token: n } = X(), r = Th(), s = xn().amountWei, a = W(() => F1(s || "", r, (e == null ? void 0 : e.decimals) || 0), [s, r, e == null ? void 0 : e.decimals]), o = Ui(t == null ? void 0 : t.decimals, a);
|
|
36512
36511
|
return {
|
|
36513
36512
|
amountWei: a,
|
|
@@ -36525,7 +36524,7 @@ const YI = (e, t) => W(() => ZI(e == null ? void 0 : e.toString(), t), [e, t]),
|
|
|
36525
36524
|
usd: zn(i, n)
|
|
36526
36525
|
};
|
|
36527
36526
|
}, xD = () => {
|
|
36528
|
-
const { typedInputAmount: e, marketPriceLoading: t, dstToken: n } = X(), { amountUI: r, usd: s } =
|
|
36527
|
+
const { typedInputAmount: e, marketPriceLoading: t, dstToken: n } = X(), { amountUI: r, usd: s } = ws(), o = JI() ? e : r;
|
|
36529
36528
|
return {
|
|
36530
36529
|
value: o,
|
|
36531
36530
|
valueWei: Ch(n == null ? void 0 : n.decimals, o),
|
|
@@ -36637,10 +36636,10 @@ const wD = () => {
|
|
|
36637
36636
|
const e = ne((n) => n.state.currentTime), t = Gu().duration;
|
|
36638
36637
|
return W(() => _1(e, t), [e, t]);
|
|
36639
36638
|
}, hF = () => {
|
|
36640
|
-
const { srcUsd1Token: e, dstUsd1Token: t } = X(), n = xn().amountUI, r =
|
|
36639
|
+
const { srcUsd1Token: e, dstUsd1Token: t } = X(), n = xn().amountUI, r = ws().amountUI, s = zn(n, e), a = zn(r, t);
|
|
36641
36640
|
return { srcAmountUsd: s, dstAmountUsd: a };
|
|
36642
36641
|
}, bF = () => {
|
|
36643
|
-
const { fees: e, dstUsd1Token: t } = X(), { amountUI: n } =
|
|
36642
|
+
const { fees: e, dstUsd1Token: t } = X(), { amountUI: n } = ws(), r = W(() => !e || !n ? "" : _(n).multipliedBy(e).dividedBy(100).toFixed(), [n, e]);
|
|
36644
36643
|
return {
|
|
36645
36644
|
amount: r,
|
|
36646
36645
|
percent: e,
|
|
@@ -36715,7 +36714,7 @@ const wD = () => {
|
|
|
36715
36714
|
var g;
|
|
36716
36715
|
return nb({
|
|
36717
36716
|
chainId: r,
|
|
36718
|
-
srcToken: wa((e == null ? void 0 : e.address) || "") ? ((g =
|
|
36717
|
+
srcToken: wa((e == null ? void 0 : e.address) || "") ? ((g = ls(r)) == null ? void 0 : g.wToken.address) || "" : (e == null ? void 0 : e.address) || "",
|
|
36719
36718
|
dstToken: (t == null ? void 0 : t.address) || "",
|
|
36720
36719
|
srcAmount: c,
|
|
36721
36720
|
deadlineMillis: p,
|
|
@@ -36758,7 +36757,7 @@ const wD = () => {
|
|
|
36758
36757
|
pricePerChunkWei: P,
|
|
36759
36758
|
amountUI: B,
|
|
36760
36759
|
usd: v
|
|
36761
|
-
} = vr(), { milliseconds: U } = Cr(), { amountWei: k, amountUI: O } =
|
|
36760
|
+
} = vr(), { milliseconds: U } = Cr(), { amountWei: k, amountUI: O } = ws(), { srcAmountUsd: N, dstAmountUsd: R } = hF(), {
|
|
36762
36761
|
amount: h,
|
|
36763
36762
|
percent: b,
|
|
36764
36763
|
usd: x
|
|
@@ -36996,7 +36995,7 @@ function vF(e) {
|
|
|
36996
36995
|
};
|
|
36997
36996
|
}
|
|
36998
36997
|
const AF = () => {
|
|
36999
|
-
const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = kF().mutateAsync, o = wF().mutateAsync, i = EF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = Yo(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } =
|
|
36998
|
+
const { srcToken: e, dstToken: t, chainId: n, callbacks: r, marketPrice: s } = X(), a = kF().mutateAsync, o = wF().mutateAsync, i = EF().mutateAsync, { mutateAsync: c } = Sh(), { update: l } = Yo(), { amountWei: d, amountUI: p } = xn(), { amountUI: f } = ws(), m = CF().mutate;
|
|
37000
36999
|
return hn({
|
|
37001
37000
|
mutationFn: async () => {
|
|
37002
37001
|
var g, P;
|
|
@@ -37061,7 +37060,7 @@ const AF = () => {
|
|
|
37061
37060
|
}
|
|
37062
37061
|
});
|
|
37063
37062
|
}, kD = () => {
|
|
37064
|
-
const e = Yo(), { amountUI: t } = xn(), { amountUI: n } =
|
|
37063
|
+
const e = Yo(), { amountUI: t } = xn(), { amountUI: n } = ws(), { srcToken: r, dstToken: s } = X(), a = AF(), o = ne((c) => c.resetState), i = ke(
|
|
37065
37064
|
() => a.mutateAsync(),
|
|
37066
37065
|
[a]
|
|
37067
37066
|
);
|
|
@@ -37186,7 +37185,7 @@ const AF = () => {
|
|
|
37186
37185
|
};
|
|
37187
37186
|
ab(Ib.version);
|
|
37188
37187
|
export {
|
|
37189
|
-
|
|
37188
|
+
ls as $,
|
|
37190
37189
|
yD as A,
|
|
37191
37190
|
z as B,
|
|
37192
37191
|
AF as C,
|
|
@@ -37194,7 +37193,7 @@ export {
|
|
|
37194
37193
|
vD as E,
|
|
37195
37194
|
EF as F,
|
|
37196
37195
|
Bp as G,
|
|
37197
|
-
|
|
37196
|
+
_s as H,
|
|
37198
37197
|
Ui as I,
|
|
37199
37198
|
uD as J,
|
|
37200
37199
|
lD as K,
|
|
@@ -37217,7 +37216,7 @@ export {
|
|
|
37217
37216
|
Mx as a,
|
|
37218
37217
|
B1 as a0,
|
|
37219
37218
|
wa as a1,
|
|
37220
|
-
|
|
37219
|
+
ts as a2,
|
|
37221
37220
|
Kp as a3,
|
|
37222
37221
|
U1 as a4,
|
|
37223
37222
|
qp as a5,
|
|
@@ -37235,7 +37234,7 @@ export {
|
|
|
37235
37234
|
r1 as ah,
|
|
37236
37235
|
Ht as ai,
|
|
37237
37236
|
Oo as aj,
|
|
37238
|
-
|
|
37237
|
+
Lr as ak,
|
|
37239
37238
|
gt as al,
|
|
37240
37239
|
rD as am,
|
|
37241
37240
|
Zm as an,
|