@argent/x-shared 1.35.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
- import $, { z as f } from "zod";
2
- import { O as Or, a as kr, b as Pr, c as Rr, d as Fr, e as $r, f as Ur, g as jr, h as Be, i as Lr, j as Dr, l as Hr, k as Vr, m as Mr, n as Gr, o as qr, p as On, q as Wr, r as zr, s as Kr, t as Zr, u as Yr, v as Xr, D as Jr, w as Qr } from "./bips-zBtnMbia.mjs";
3
- import { x as Nd } from "./bips-zBtnMbia.mjs";
4
- import { p as Qt, H as K, a as ze, u as P, N as kn, c as ts, C as Pn, A as St, i as es, b as ns, n as Rn, d as rs, e as ss, f as os, g as as, s as Q, h as nt, j as Ke, k as is, l as Ze, M as Ye, m as cs, o as ls, q as Ne, r as us, t as te, B as Xe, v as kt, w as ds, x as fs, y as hs, z as ps, D as ms, E as gs, F as Ce } from "./webToken.model-Cl4dvcmj.mjs";
5
- import { a7 as Od, bg as kd, aX as Pd, b3 as Rd, aL as Fd, aP as $d, _ as Ud, $ as jd, W as Ld, V as Dd, O as Hd, J as Vd, K as Md, L as Gd, aj as qd, ae as Wd, af as zd, ac as Kd, ad as Zd, ah as Yd, ag as Xd, ai as Jd, ab as Qd, aa as tf, a9 as ef, a8 as nf, ak as rf, a4 as sf, a0 as of, av as af, az as cf, ax as lf, aS as uf, b5 as df, b0 as ff, bb as hf, a3 as pf, aH as mf, aB as gf, aJ as wf, aO as yf, bd as bf, bc as Sf, b9 as Ef, aV as Af, aT as xf, al as vf, aU as Tf, aK as If, b2 as _f, a_ as Bf, aR as Nf, aI as Cf, Q as Of, P as kf, S as Pf, T as Rf, aZ as Ff, aY as $f, aw as Uf, R as jf, a1 as Lf, Y as Df, a5 as Hf, X as Vf, b4 as Mf, a$ as Gf, aG as qf, aD as Wf, Z as zf, a2 as Kf, a6 as Zf, aW as Yf, ba as Xf, aC as Jf, aE as Qf, aF as th, aM as eh, aQ as nh, aN as rh, b7 as sh, b8 as oh, b6 as ah, U as ih, ay as ch, b1 as lh, aA as uh, bi as dh, bh as fh, be as hh, bj as ph, bf as mh, G as gh, I as wh, am as yh, an as bh, au as Sh, at as Eh, ao as Ah, ar as xh, ap as vh, aq as Th, as as Ih } from "./webToken.model-Cl4dvcmj.mjs";
6
- import { S as ws, r as ys, T as bs, a as Oe, E as Fn, f as fe, b as Ss, c as Es, s as As, i as xs, R as _t } from "./transactionVersion-CACUj2ch.mjs";
7
- import { G as Bh, I as Nh, F as Ch, j as Oh, d as kh, g as Ph, e as Rh, h as Fh, w as $h, m as Uh, n as jh, o as Lh, k as Dh, l as Hh, v as Vh, p as Mh, t as Gh, u as qh, N as Wh, J as zh, C as Kh, K as Zh, z as Yh, A as Xh, D as Jh, y as Qh, q as tp, H as ep, L as np, B as rp, M as sp, x as op } from "./transactionVersion-CACUj2ch.mjs";
8
- import { constants as Z, starknetId as $n, CallData as mt, CairoOption as Je, CairoOptionVariant as Qe, hash as Un, num as O, encode as Rt, uint256 as Dt, ec as vs, isSierra as Ts, TransactionType as tn } from "starknet";
9
- import { useEffect as Ft, useRef as en, useState as jn, useMemo as xt, useCallback as Ln, createContext as Is } from "react";
10
- import { isFunction as Vt, isString as Dn, upperCase as ke, isNil as _s, upperFirst as Bs, lowerCase as Hn, isUndefined as Ns, isEmpty as nn, isArray as Cs } from "lodash-es";
1
+ import F, { z as f } from "zod";
2
+ import { O as Or, a as kr, b as Pr, c as Rr, d as $r, e as Fr, f as Ur, g as jr, h as _e, i as Lr, j as Dr, l as Hr, k as Vr, m as Mr, n as Gr, o as qr, p as On, q as Wr, r as zr, s as Kr, t as Yr, u as Zr, v as Xr, D as Jr, w as Qr } from "./bips-DKbEGvGl.mjs";
3
+ import { x as Cd } from "./bips-DKbEGvGl.mjs";
4
+ import { p as Qt, H as K, a as ze, u as P, N as kn, c as ts, C as Pn, A as St, i as es, b as ns, n as Rn, d as rs, e as ss, f as os, g as as, s as Q, h as nt, j as Ke, k as is, l as Ye, M as Ze, m as cs, o as ls, q as Ne, r as us, t as te, B as Xe, v as kt, w as ds, x as fs, y as hs, z as ps, D as ms, E as gs, F as ws, G as Ce } from "./webToken.model-CpudLBp0.mjs";
5
+ import { a8 as kd, bk as Pd, a$ as Rd, b7 as $d, aP as Fd, aT as Ud, $ as jd, a0 as Ld, X as Dd, W as Hd, P as Vd, K as Md, L as Gd, O as qd, am as Wd, ah as zd, ai as Kd, ad as Yd, ae as Zd, ak as Xd, aj as Jd, al as Qd, ac as tf, ab as ef, aa as nf, af as rf, ag as sf, a9 as of, an as af, a5 as cf, a1 as lf, ay as uf, aD as df, aA as ff, aW as hf, b9 as pf, b4 as mf, bf as gf, a4 as wf, aL as yf, aF as bf, aN as Sf, aS as Ef, bh as Af, bg as xf, bd as vf, aZ as Tf, aX as If, aC as Bf, ao as _f, aY as Nf, aO as Cf, b6 as Of, b2 as kf, aV as Pf, aM as Rf, R as $f, Q as Ff, T as Uf, U as jf, b1 as Lf, b0 as Df, az as Hf, S as Vf, a2 as Mf, Z as Gf, a6 as qf, Y as Wf, b8 as zf, b3 as Kf, aK as Yf, aH as Zf, _ as Xf, a3 as Jf, a7 as Qf, a_ as th, be as eh, aG as nh, aI as rh, aJ as sh, aQ as oh, aU as ah, aR as ih, bb as ch, bc as lh, ba as uh, V as dh, aB as fh, b5 as hh, aE as ph, bm as mh, bl as gh, bi as wh, bn as yh, bj as bh, I as Sh, J as Eh, ap as Ah, aq as xh, ax as vh, aw as Th, ar as Ih, au as Bh, as as _h, at as Nh, av as Ch } from "./webToken.model-CpudLBp0.mjs";
6
+ import { S as ys, r as bs, a as Oe, E as $n, f as fe, b as Ss, c as Es, s as As, i as xs, R as Bt } from "./transactionVersion-Cjoucwcx.mjs";
7
+ import { G as kh, I as Ph, F as Rh, h as $h, T as Fh, e as Uh, d as jh, g as Lh, j as Dh, w as Hh, m as Vh, n as Mh, o as Gh, k as qh, l as Wh, v as zh, p as Kh, t as Yh, u as Zh, N as Xh, J as Jh, C as Qh, K as tp, z as ep, A as np, D as rp, y as sp, q as op, H as ap, L as ip, B as cp, M as lp, x as up } from "./transactionVersion-Cjoucwcx.mjs";
8
+ import { constants as Y, starknetId as Fn, CallData as mt, CairoOption as Je, CairoOptionVariant as Qe, hash as Un, num as O, encode as Rt, uint256 as Dt, ec as vs, isSierra as Ts, TransactionType as tn } from "starknet";
9
+ import { useEffect as $t, useRef as en, useState as jn, useMemo as xt, useCallback as Ln, createContext as Is } from "react";
10
+ import { isFunction as Vt, isString as Dn, upperCase as ke, isNil as Bs, upperFirst as _s, lowerCase as Hn, isUndefined as Ns, isEmpty as nn, isArray as Cs } from "lodash-es";
11
11
  import ee, { useSWRConfig as Os } from "swr";
12
12
  import { hex as Vn, base58 as Mn, stringToBytes as ks } from "@scure/base";
13
13
  import { UAParser as Ps } from "ua-parser-js";
14
14
  import { validateMnemonic as Rs } from "@scure/bip39";
15
- import { wordlist as Fs } from "@scure/bip39/wordlists/english";
16
- import $s from "object-hash";
15
+ import { wordlist as $s } from "@scure/bip39/wordlists/english";
16
+ import Fs from "object-hash";
17
17
  import { jsx as Us } from "react/jsx-runtime";
18
18
  const js = f.object({
19
19
  name: f.string().optional(),
@@ -60,13 +60,13 @@ function Pl(t) {
60
60
  function Rl(t) {
61
61
  return "simulateTransaction" in t;
62
62
  }
63
- function Fl(t) {
63
+ function $l(t) {
64
64
  return !("simulateTransaction" in t);
65
65
  }
66
66
  const Ls = f.object({
67
67
  value: f.string(),
68
68
  platform: f.enum(["ios", "argentx", "android", "webwallet"]).nullable()
69
- }), $l = f.object({
69
+ }), Fl = f.object({
70
70
  preferences: f.record(Ls)
71
71
  }), Ds = f.enum(["mainnet-alpha", "sepolia-alpha"]), Hs = f.enum(["mainnet", "sepolia"]);
72
72
  function Ul(t) {
@@ -85,11 +85,11 @@ const Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
85
85
  absBigInt: Pr,
86
86
  add: Rr,
87
87
  createUnitsSchema: Vs,
88
- div: Fr,
89
- eq: $r,
88
+ div: $r,
89
+ eq: Fr,
90
90
  formatCurrency: Ur,
91
91
  formatEther: jr,
92
- formatUnits: Be,
92
+ formatUnits: _e,
93
93
  gt: Lr,
94
94
  gte: Dr,
95
95
  lt: Hr,
@@ -102,8 +102,8 @@ const Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
102
102
  parseEther: zr,
103
103
  parseUnits: Qt,
104
104
  sub: Kr,
105
- toBigDecimal: Zr,
106
- toFixedDecimals: Yr,
105
+ toBigDecimal: Yr,
106
+ toFixedDecimals: Zr,
107
107
  toTiniestPossibleDecimal: Xr
108
108
  }, Symbol.toStringTag, { value: "Module" }));
109
109
  class Dl {
@@ -331,7 +331,7 @@ const zt = (t, e, n) => {
331
331
  };
332
332
  function qs(t, e, n, r) {
333
333
  const { cache: s } = Os(), o = ee(t && e, t ? n : Gs, r);
334
- return Ft(() => {
334
+ return $t(() => {
335
335
  t || (o.mutate(), s.delete(e));
336
336
  }, [t]), o;
337
337
  }
@@ -358,11 +358,11 @@ const Wl = {
358
358
  function zs(t) {
359
359
  switch (t) {
360
360
  case "mainnet-alpha":
361
- case Z.NetworkName.SN_MAIN:
362
- return Z.StarknetChainId.SN_MAIN;
361
+ case Y.NetworkName.SN_MAIN:
362
+ return Y.StarknetChainId.SN_MAIN;
363
363
  case "sepolia-alpha":
364
- case Z.NetworkName.SN_SEPOLIA:
365
- return Z.StarknetChainId.SN_SEPOLIA;
364
+ case Y.NetworkName.SN_SEPOLIA:
365
+ return Y.StarknetChainId.SN_SEPOLIA;
366
366
  default:
367
367
  throw new kn({
368
368
  code: "NOT_FOUND",
@@ -371,14 +371,14 @@ function zs(t) {
371
371
  }
372
372
  }
373
373
  function Ks(t) {
374
- return t.replace(".stark", "").split(".").map((r) => $n.useEncoded(r).toString(10));
374
+ return t.replace(".stark", "").split(".").map((r) => Fn.useEncoded(r).toString(10));
375
375
  }
376
- function Zs(t) {
376
+ function Ys(t) {
377
377
  const e = zs(t);
378
- return $n.getStarknetIdContract(e);
378
+ return Fn.getStarknetIdContract(e);
379
379
  }
380
- function Ys(t, e) {
381
- const n = Zs(e), r = Ks(t);
380
+ function Zs(t, e) {
381
+ const n = Ys(e), r = Ks(t);
382
382
  try {
383
383
  const o = { domain: r, hint: [] };
384
384
  return ts.parse({
@@ -400,7 +400,7 @@ async function Xs(t, e, n) {
400
400
  });
401
401
  let r = null;
402
402
  try {
403
- r = Ys(t, e);
403
+ r = Zs(t, e);
404
404
  } catch (i) {
405
405
  throw new Pn({
406
406
  code: "NOT_VALID",
@@ -473,22 +473,22 @@ const Js = [
473
473
  "0.1.1": "0x6e150953b26271a740bf2b6e9bca17cc52c68d765f761295de51ceb8526ee72",
474
474
  "0.1.0": "0x737ee2f87ce571a58c6c8da558ec18a07ceb64a6172d5ec46171fbc80077a48"
475
475
  };
476
- var Qs = typeof global == "object" && global && global.Object === Object && global, to = typeof self == "object" && self && self.Object === Object && self, ne = Qs || to || Function("return this")(), Zt = ne.Symbol, Wn = Object.prototype, eo = Wn.hasOwnProperty, no = Wn.toString, Bt = Zt ? Zt.toStringTag : void 0;
476
+ var Qs = typeof global == "object" && global && global.Object === Object && global, to = typeof self == "object" && self && self.Object === Object && self, ne = Qs || to || Function("return this")(), Yt = ne.Symbol, Wn = Object.prototype, eo = Wn.hasOwnProperty, no = Wn.toString, _t = Yt ? Yt.toStringTag : void 0;
477
477
  function ro(t) {
478
- var e = eo.call(t, Bt), n = t[Bt];
478
+ var e = eo.call(t, _t), n = t[_t];
479
479
  try {
480
- t[Bt] = void 0;
480
+ t[_t] = void 0;
481
481
  var r = !0;
482
482
  } catch {
483
483
  }
484
484
  var s = no.call(t);
485
- return r && (e ? t[Bt] = n : delete t[Bt]), s;
485
+ return r && (e ? t[_t] = n : delete t[_t]), s;
486
486
  }
487
487
  var so = Object.prototype, oo = so.toString;
488
488
  function ao(t) {
489
489
  return oo.call(t);
490
490
  }
491
- var io = "[object Null]", co = "[object Undefined]", rn = Zt ? Zt.toStringTag : void 0;
491
+ var io = "[object Null]", co = "[object Undefined]", rn = Yt ? Yt.toStringTag : void 0;
492
492
  function lo(t) {
493
493
  return t == null ? t === void 0 ? co : io : rn && rn in Object(t) ? ro(t) : ao(t);
494
494
  }
@@ -527,22 +527,22 @@ function bo(t) {
527
527
  var So = /[\\^$.*+?()[\]{}|]/g, Eo = /^\[object .+?Constructor\]$/, Ao = Function.prototype, xo = Object.prototype, vo = Ao.toString, To = xo.hasOwnProperty, Io = RegExp(
528
528
  "^" + vo.call(To).replace(So, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
529
529
  );
530
- function _o(t) {
530
+ function Bo(t) {
531
531
  if (!zn(t) || go(t))
532
532
  return !1;
533
533
  var e = mo(t) ? Io : Eo;
534
534
  return e.test(bo(t));
535
535
  }
536
- function Bo(t, e) {
536
+ function _o(t, e) {
537
537
  return t == null ? void 0 : t[e];
538
538
  }
539
539
  function Pe(t, e) {
540
- var n = Bo(t, e);
541
- return _o(n) ? n : void 0;
540
+ var n = _o(t, e);
541
+ return Bo(n) ? n : void 0;
542
542
  }
543
- var $t = Pe(Object, "create");
543
+ var Ft = Pe(Object, "create");
544
544
  function No() {
545
- this.__data__ = $t ? $t(null) : {}, this.size = 0;
545
+ this.__data__ = Ft ? Ft(null) : {}, this.size = 0;
546
546
  }
547
547
  function Co(t) {
548
548
  var e = this.has(t) && delete this.__data__[t];
@@ -551,21 +551,21 @@ function Co(t) {
551
551
  var Oo = "__lodash_hash_undefined__", ko = Object.prototype, Po = ko.hasOwnProperty;
552
552
  function Ro(t) {
553
553
  var e = this.__data__;
554
- if ($t) {
554
+ if (Ft) {
555
555
  var n = e[t];
556
556
  return n === Oo ? void 0 : n;
557
557
  }
558
558
  return Po.call(e, t) ? e[t] : void 0;
559
559
  }
560
- var Fo = Object.prototype, $o = Fo.hasOwnProperty;
560
+ var $o = Object.prototype, Fo = $o.hasOwnProperty;
561
561
  function Uo(t) {
562
562
  var e = this.__data__;
563
- return $t ? e[t] !== void 0 : $o.call(e, t);
563
+ return Ft ? e[t] !== void 0 : Fo.call(e, t);
564
564
  }
565
565
  var jo = "__lodash_hash_undefined__";
566
566
  function Lo(t, e) {
567
567
  var n = this.__data__;
568
- return this.size += this.has(t) ? 0 : 1, n[t] = $t && e === void 0 ? jo : e, this;
568
+ return this.size += this.has(t) ? 0 : 1, n[t] = Ft && e === void 0 ? jo : e, this;
569
569
  }
570
570
  function ft(t) {
571
571
  var e = -1, n = t == null ? 0 : t.length;
@@ -623,20 +623,20 @@ vt.prototype.get = qo;
623
623
  vt.prototype.has = Wo;
624
624
  vt.prototype.set = zo;
625
625
  var Ko = Pe(ne, "Map");
626
- function Zo() {
626
+ function Yo() {
627
627
  this.size = 0, this.__data__ = {
628
628
  hash: new ft(),
629
629
  map: new (Ko || vt)(),
630
630
  string: new ft()
631
631
  };
632
632
  }
633
- function Yo(t) {
633
+ function Zo(t) {
634
634
  var e = typeof t;
635
635
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
636
636
  }
637
637
  function se(t, e) {
638
638
  var n = t.__data__;
639
- return Yo(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
639
+ return Zo(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
640
640
  }
641
641
  function Xo(t) {
642
642
  var e = se(this, t).delete(t);
@@ -659,7 +659,7 @@ function Tt(t) {
659
659
  this.set(r[0], r[1]);
660
660
  }
661
661
  }
662
- Tt.prototype.clear = Zo;
662
+ Tt.prototype.clear = Yo;
663
663
  Tt.prototype.delete = Xo;
664
664
  Tt.prototype.get = Jo;
665
665
  Tt.prototype.has = Qo;
@@ -671,13 +671,13 @@ function na(t) {
671
671
  function ra(t) {
672
672
  return this.__data__.has(t);
673
673
  }
674
- function Yt(t) {
674
+ function Zt(t) {
675
675
  var e = -1, n = t == null ? 0 : t.length;
676
676
  for (this.__data__ = new Tt(); ++e < n; )
677
677
  this.add(t[e]);
678
678
  }
679
- Yt.prototype.add = Yt.prototype.push = na;
680
- Yt.prototype.has = ra;
679
+ Zt.prototype.add = Zt.prototype.push = na;
680
+ Zt.prototype.has = ra;
681
681
  function sa(t, e, n, r) {
682
682
  for (var s = t.length, o = n + -1; ++o < s; )
683
683
  if (e(t[o], o, t))
@@ -729,7 +729,7 @@ function ma(t, e, n) {
729
729
  var l = ha(t);
730
730
  if (l)
731
731
  return Kn(l);
732
- a = !1, s = ua, c = new Yt();
732
+ a = !1, s = ua, c = new Zt();
733
733
  } else
734
734
  c = i;
735
735
  t:
@@ -766,7 +766,7 @@ function wa() {
766
766
  throw new Error(`No argent account contract found: v${t} `);
767
767
  return tt[t];
768
768
  }
769
- function Zl() {
769
+ function Yl() {
770
770
  const t = Q.maxSatisfying(Object.keys(Kt), "*");
771
771
  if (!t)
772
772
  throw new Error(`No argent multisig contract found: v${t} `);
@@ -775,7 +775,7 @@ function Zl() {
775
775
  function ya() {
776
776
  return Object.entries(tt).filter(([t]) => Q.gte(t, "0.4.0")).map(([, t]) => t);
777
777
  }
778
- function Yl() {
778
+ function Zl() {
779
779
  const t = Q.maxSatisfying(Object.keys(tt), "<0.3.0");
780
780
  if (!t)
781
781
  throw new Error(`No argent account contract found: v${t} `);
@@ -825,12 +825,12 @@ function Ea(t, e, n, r, s, o = Js[0]) {
825
825
  };
826
826
  }
827
827
  function Aa(t, e, n, r) {
828
- const s = t !== "0" && nt(ws, e), o = {
828
+ const s = t !== "0" && nt(ys, e), o = {
829
829
  pubkey: n,
830
830
  ...s ? {} : { guardian: r || "0" }
831
831
  };
832
832
  if (ya().some((i) => nt(i, e))) {
833
- const i = Ze(n, Ye.Starknet), c = r ? new Je(Qe.Some, Ze(r, Ye.Starknet)) : new Je(Qe.None, null);
833
+ const i = Ye(n, Ze.Starknet), c = r ? new Je(Qe.Some, Ye(r, Ze.Starknet)) : new Je(Qe.None, null);
834
834
  return { ownerSigner: i, guardianAsOption: c };
835
835
  }
836
836
  return t === "0" ? cs.parse({
@@ -848,9 +848,9 @@ function xa(t, e, n, r, s) {
848
848
  }
849
849
  function tu(t, e) {
850
850
  const n = en(t), r = en();
851
- return Ft(() => {
851
+ return $t(() => {
852
852
  n.current = t;
853
- }, [t]), Ft(() => () => {
853
+ }, [t]), $t(() => () => {
854
854
  r.current && clearTimeout(r.current);
855
855
  }, []), (...s) => {
856
856
  r.current && clearTimeout(r.current), r.current = setTimeout(() => n.current(...s), e);
@@ -858,7 +858,7 @@ function tu(t, e) {
858
858
  }
859
859
  function eu(t, e) {
860
860
  const [n, r] = jn(t);
861
- return Ft(() => {
861
+ return $t(() => {
862
862
  const s = setTimeout(() => {
863
863
  r(t);
864
864
  }, e);
@@ -887,7 +887,7 @@ const va = f.object({
887
887
  contractAddress: Ne,
888
888
  methods: f.array(f.string())
889
889
  }))
890
- }), _a = f.object({
890
+ }), Ba = f.object({
891
891
  dappId: f.string(),
892
892
  name: f.string(),
893
893
  description: f.string().optional(),
@@ -902,13 +902,13 @@ const va = f.object({
902
902
  brandColor: f.string().optional(),
903
903
  executeFromOutsideAllowed: f.boolean().default(!1).optional(),
904
904
  sessionConfig: f.union([Ia, f.object({})]).nullable().optional()
905
- }), Ba = f.array(_a);
905
+ }), _a = f.array(Ba);
906
906
  class nu {
907
907
  constructor(e, n) {
908
908
  this.apiBase = e, this.httpService = new Gn(n, "json");
909
909
  }
910
910
  async getAll() {
911
- const e = await this.httpService.get(`${this.apiBase}/tokens/dapps`), n = Ba.safeParse(e);
911
+ const e = await this.httpService.get(`${this.apiBase}/tokens/dapps`), n = _a.safeParse(e);
912
912
  if (!n.success)
913
913
  throw new Error("Failed to parse known dapps");
914
914
  return n.data;
@@ -922,20 +922,20 @@ function ru(t) {
922
922
  var e;
923
923
  return (e = Na(t)) == null ? void 0 : e.url;
924
924
  }
925
- const Zn = $.object({
925
+ const Yn = F.object({
926
926
  domain: us,
927
927
  address: te.optional(),
928
- avatar: $.string().optional(),
929
- status: $.union([$.literal("KNOWN"), $.literal("UNKNOWN")])
930
- }), Ca = $.array(Zn), Oa = $.object({
931
- provider: $.string(),
932
- name: $.string(),
933
- avatar: $.string().optional()
934
- }), ka = $.object({
928
+ avatar: F.string().optional(),
929
+ status: F.union([F.literal("KNOWN"), F.literal("UNKNOWN")])
930
+ }), Ca = F.array(Yn), Oa = F.object({
931
+ provider: F.string(),
932
+ name: F.string(),
933
+ avatar: F.string().optional()
934
+ }), ka = F.object({
935
935
  address: te,
936
- status: $.union([$.literal("KNOWN"), $.literal("UNKNOWN")]),
937
- resolutions: $.array(Oa).optional()
938
- }), Pa = $.array($.string()), Ra = ka.array();
936
+ status: F.union([F.literal("KNOWN"), F.literal("UNKNOWN")]),
937
+ resolutions: F.array(Oa).optional()
938
+ }), Pa = F.array(F.string()), Ra = ka.array();
939
939
  class su {
940
940
  constructor(e, n) {
941
941
  this.apiBase = e, this.headers = n, this.httpService = new Gn(this.headers, "json");
@@ -949,7 +949,7 @@ class su {
949
949
  return i.data;
950
950
  }
951
951
  async getAddressFromStarknetId(e, n, r) {
952
- const s = P(this.apiBase, e, "starknet.id", n, r ? "?includeAvatar=true" : ""), o = await this.httpService.get(s), a = Zn.safeParse(o);
952
+ const s = P(this.apiBase, e, "starknet.id", n, r ? "?includeAvatar=true" : ""), o = await this.httpService.get(s), a = Yn.safeParse(o);
953
953
  if (!a.success)
954
954
  throw new Error("Failed to parse name resolution");
955
955
  return a.data;
@@ -972,16 +972,16 @@ class su {
972
972
  return s.data;
973
973
  }
974
974
  }
975
- const Yn = (t) => t.slice(0, 6) + "..." + t.slice(-4);
975
+ const Zn = (t) => t.slice(0, 6) + "..." + t.slice(-4);
976
976
  function an(t) {
977
977
  if (!Number.isSafeInteger(t) || t < 0)
978
978
  throw new Error(`positive integer expected, not ${t}`);
979
979
  }
980
- function Fa(t) {
980
+ function $a(t) {
981
981
  return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
982
982
  }
983
983
  function oe(t, ...e) {
984
- if (!Fa(t))
984
+ if (!$a(t))
985
985
  throw new Error("Uint8Array expected");
986
986
  if (e.length > 0 && !e.includes(t.length))
987
987
  throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
@@ -992,7 +992,7 @@ function cn(t, e = !0) {
992
992
  if (e && t.finished)
993
993
  throw new Error("Hash#digest() has already been called");
994
994
  }
995
- function $a(t, e) {
995
+ function Fa(t, e) {
996
996
  oe(t);
997
997
  const n = e.outputLen;
998
998
  if (t.length < n)
@@ -1043,12 +1043,12 @@ function Ka(t) {
1043
1043
  const e = (r) => t().update(Jn(r)).digest(), n = t();
1044
1044
  return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
1045
1045
  }
1046
- const Qn = [], tr = [], er = [], Za = /* @__PURE__ */ BigInt(0), Nt = /* @__PURE__ */ BigInt(1), Ya = /* @__PURE__ */ BigInt(2), Xa = /* @__PURE__ */ BigInt(7), Ja = /* @__PURE__ */ BigInt(256), Qa = /* @__PURE__ */ BigInt(113);
1046
+ const Qn = [], tr = [], er = [], Ya = /* @__PURE__ */ BigInt(0), Nt = /* @__PURE__ */ BigInt(1), Za = /* @__PURE__ */ BigInt(2), Xa = /* @__PURE__ */ BigInt(7), Ja = /* @__PURE__ */ BigInt(256), Qa = /* @__PURE__ */ BigInt(113);
1047
1047
  for (let t = 0, e = Nt, n = 1, r = 0; t < 24; t++) {
1048
1048
  [n, r] = [r, (2 * n + 3 * r) % 5], Qn.push(2 * (5 * r + n)), tr.push((t + 1) * (t + 2) / 2 % 64);
1049
- let s = Za;
1049
+ let s = Ya;
1050
1050
  for (let o = 0; o < 7; o++)
1051
- e = (e << Nt ^ (e >> Xa) * Qa) % Ja, e & Ya && (s ^= Nt << (Nt << /* @__PURE__ */ BigInt(o)) - Nt);
1051
+ e = (e << Nt ^ (e >> Xa) * Qa) % Ja, e & Za && (s ^= Nt << (Nt << /* @__PURE__ */ BigInt(o)) - Nt);
1052
1052
  er.push(s);
1053
1053
  }
1054
1054
  const [ti, ei] = /* @__PURE__ */ ja(er, !0), fn = (t, e, n) => n > 32 ? Ha(t, e, n) : La(t, e, n), hn = (t, e, n) => n > 32 ? Va(t, e, n) : Da(t, e, n);
@@ -1126,7 +1126,7 @@ let ri = class nr extends za {
1126
1126
  return an(e), this.xofInto(new Uint8Array(e));
1127
1127
  }
1128
1128
  digestInto(e) {
1129
- if ($a(e, this), this.finished)
1129
+ if (Fa(e, this), this.finished)
1130
1130
  throw new Error("digest() was already called");
1131
1131
  return this.writeInto(e), this.destroy(), e;
1132
1132
  }
@@ -1207,14 +1207,14 @@ const uu = (t) => (t || "false") === "true", du = async (t, e) => {
1207
1207
  }
1208
1208
  };
1209
1209
  function fu(t) {
1210
- return !_s(t);
1210
+ return !Bs(t);
1211
1211
  }
1212
1212
  const hu = (t) => {
1213
1213
  const e = /^(0|0x([a-f0-9A-F]+)?)$/;
1214
1214
  return !!(t === "" || e.test(t));
1215
- }, Y = (t) => !isNaN(parseFloat(t)) && isFinite(Number(t)), pu = (t, e = 16) => {
1215
+ }, Z = (t) => !isNaN(parseFloat(t)) && isFinite(Number(t)), pu = (t, e = 16) => {
1216
1216
  const n = new RegExp(`^[0-9]*.?[0-9]{0,${e}}$`);
1217
- return t === "" ? !0 : Y(t) ? !!n.test(t) : !1;
1217
+ return t === "" ? !0 : Z(t) ? !!n.test(t) : !1;
1218
1218
  }, Re = {
1219
1219
  CURRENCY: {
1220
1220
  minDecimalPlaces: 2,
@@ -1237,7 +1237,7 @@ const hu = (t) => {
1237
1237
  ...Re.TOKEN,
1238
1238
  ...e || {}
1239
1239
  }), rr = (t, { minDecimalPlaces: e, maxDecimalPlaces: n, minDecimalSignificantDigits: r, decimalPlacesWhenZero: s, allowLeadingZerosInDecimalPart: o } = Re.CURRENCY) => {
1240
- if (!Y(t))
1240
+ if (!Z(t))
1241
1241
  return null;
1242
1242
  const a = new Xe(typeof t == "bigint" ? t.toString() : t);
1243
1243
  let i;
@@ -1255,7 +1255,7 @@ const hu = (t) => {
1255
1255
  return l.length < d && (l = i.substring(0, d)), l;
1256
1256
  }, wi = (t, e = 18) => {
1257
1257
  const n = t.replace(",", ".");
1258
- return !t || !Y(n) ? 0n : Qt(n, Number(e)).value;
1258
+ return !t || !Z(n) ? 0n : Qt(n, Number(e)).value;
1259
1259
  };
1260
1260
  function Ut(t) {
1261
1261
  return Dt.bnToUint256(t);
@@ -1269,7 +1269,7 @@ const mu = (t, e) => `${t} ${e}${t === 1 ? "" : "s"}`, gu = (t) => new Promise((
1269
1269
  });
1270
1270
  function wu(t) {
1271
1271
  try {
1272
- return Bs(Hn(t));
1272
+ return _s(Hn(t));
1273
1273
  } catch {
1274
1274
  return t;
1275
1275
  }
@@ -1370,7 +1370,7 @@ class bu {
1370
1370
  owner: {
1371
1371
  account_address: ((s = e.owner) == null ? void 0 : s.address) || n
1372
1372
  },
1373
- contract_name: Yn(e.contractAddress)
1373
+ contract_name: Zn(e.contractAddress)
1374
1374
  };
1375
1375
  }
1376
1376
  }
@@ -1387,7 +1387,7 @@ function bi(t) {
1387
1387
  function me(t, e) {
1388
1388
  return {
1389
1389
  contractAddress: te.parse(t.contractAddress),
1390
- name: t.name || Yn(t.contractAddress),
1390
+ name: t.name || Zn(t.contractAddress),
1391
1391
  description: t.description ?? "",
1392
1392
  imageUri: t.imageUrls.preview,
1393
1393
  ...e && {
@@ -1479,8 +1479,8 @@ function Ai(t, e = !1) {
1479
1479
  }
1480
1480
  const xi = (t, e, n) => t << n | e >>> 32 - n, vi = (t, e, n) => e << n | t >>> 32 - n, Ti = (t, e, n) => e << n - 32 | t >>> 64 - n, Ii = (t, e, n) => t << n - 32 | e >>> 64 - n;
1481
1481
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1482
- const _i = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
1483
- function Bi(t) {
1482
+ const Bi = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
1483
+ function _i(t) {
1484
1484
  return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
1485
1485
  }
1486
1486
  const ge = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), J = (t, e) => t << 32 - e | t >>> e, Ni = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
@@ -1491,8 +1491,8 @@ function ir(t) {
1491
1491
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
1492
1492
  return new Uint8Array(new TextEncoder().encode(t));
1493
1493
  }
1494
- function Fe(t) {
1495
- if (typeof t == "string" && (t = ir(t)), !Bi(t))
1494
+ function $e(t) {
1495
+ if (typeof t == "string" && (t = ir(t)), !_i(t))
1496
1496
  throw new Error(`expected Uint8Array, got ${typeof t}`);
1497
1497
  return t;
1498
1498
  }
@@ -1503,7 +1503,7 @@ let cr = class {
1503
1503
  }
1504
1504
  };
1505
1505
  function lr(t) {
1506
- const e = (r) => t().update(Fe(r)).digest(), n = t();
1506
+ const e = (r) => t().update($e(r)).digest(), n = t();
1507
1507
  return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
1508
1508
  }
1509
1509
  const [ur, dr, fr] = [[], [], []], Ci = /* @__PURE__ */ BigInt(0), Ct = /* @__PURE__ */ BigInt(1), Oi = /* @__PURE__ */ BigInt(2), ki = /* @__PURE__ */ BigInt(7), Pi = /* @__PURE__ */ BigInt(256), Ri = /* @__PURE__ */ BigInt(113);
@@ -1514,7 +1514,7 @@ for (let t = 0, e = Ct, n = 1, r = 0; t < 24; t++) {
1514
1514
  e = (e << Ct ^ (e >> ki) * Ri) % Pi, e & Oi && (s ^= Ct << (Ct << /* @__PURE__ */ BigInt(o)) - Ct);
1515
1515
  fr.push(s);
1516
1516
  }
1517
- const [Fi, $i] = /* @__PURE__ */ Ai(fr, !0), Sn = (t, e, n) => n > 32 ? Ti(t, e, n) : xi(t, e, n), En = (t, e, n) => n > 32 ? Ii(t, e, n) : vi(t, e, n);
1517
+ const [$i, Fi] = /* @__PURE__ */ Ai(fr, !0), Sn = (t, e, n) => n > 32 ? Ti(t, e, n) : xi(t, e, n), En = (t, e, n) => n > 32 ? Ii(t, e, n) : vi(t, e, n);
1518
1518
  function Ui(t, e = 24) {
1519
1519
  const n = new Uint32Array(10);
1520
1520
  for (let r = 24 - e; r < 24; r++) {
@@ -1536,16 +1536,16 @@ function Ui(t, e = 24) {
1536
1536
  for (let i = 0; i < 10; i++)
1537
1537
  t[a + i] ^= ~n[(i + 2) % 10] & n[(i + 4) % 10];
1538
1538
  }
1539
- t[0] ^= Fi[r], t[1] ^= $i[r];
1539
+ t[0] ^= $i[r], t[1] ^= Fi[r];
1540
1540
  }
1541
1541
  n.fill(0);
1542
1542
  }
1543
- class $e extends cr {
1543
+ class Fe extends cr {
1544
1544
  // NOTE: we accept arguments in bytes instead of bits here.
1545
1545
  constructor(e, n, r, s = !1, o = 24) {
1546
1546
  if (super(), this.blockLen = e, this.suffix = n, this.outputLen = r, this.enableXOF = s, this.rounds = o, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, yn(r), 0 >= this.blockLen || this.blockLen >= 200)
1547
1547
  throw new Error("Sha3 supports only keccak-f1600 function");
1548
- this.state = new Uint8Array(200), this.state32 = _i(this.state);
1548
+ this.state = new Uint8Array(200), this.state32 = Bi(this.state);
1549
1549
  }
1550
1550
  keccak() {
1551
1551
  Ui(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
@@ -1553,7 +1553,7 @@ class $e extends cr {
1553
1553
  update(e) {
1554
1554
  Xt(this);
1555
1555
  const { blockLen: n, state: r } = this;
1556
- e = Fe(e);
1556
+ e = $e(e);
1557
1557
  const s = e.length;
1558
1558
  for (let o = 0; o < s; ) {
1559
1559
  const a = Math.min(n - this.pos, s - o);
@@ -1601,10 +1601,10 @@ class $e extends cr {
1601
1601
  }
1602
1602
  _cloneInto(e) {
1603
1603
  const { blockLen: n, suffix: r, outputLen: s, rounds: o, enableXOF: a } = this;
1604
- return e || (e = new $e(n, r, s, a, o)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = o, e.suffix = r, e.outputLen = s, e.enableXOF = a, e.destroyed = this.destroyed, e;
1604
+ return e || (e = new Fe(n, r, s, a, o)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = o, e.suffix = r, e.outputLen = s, e.enableXOF = a, e.destroyed = this.destroyed, e;
1605
1605
  }
1606
1606
  }
1607
- const ji = (t, e, n) => lr(() => new $e(e, t, n)), Li = /* @__PURE__ */ ji(1, 136, 256 / 8);
1607
+ const ji = (t, e, n) => lr(() => new Fe(e, t, n)), Li = /* @__PURE__ */ ji(1, 136, 256 / 8);
1608
1608
  function Di(t, e, n, r) {
1609
1609
  if (typeof t.setBigUint64 == "function")
1610
1610
  return t.setBigUint64(e, n, r);
@@ -1618,7 +1618,7 @@ class Hi extends cr {
1618
1618
  update(e) {
1619
1619
  Xt(this);
1620
1620
  const { view: n, buffer: r, blockLen: s } = this;
1621
- e = Fe(e);
1621
+ e = $e(e);
1622
1622
  const o = e.length;
1623
1623
  for (let a = 0; a < o; ) {
1624
1624
  const i = Math.min(s - this.pos, o - a);
@@ -1838,7 +1838,7 @@ function jt(...t) {
1838
1838
  e.set(r, n), n += r.length;
1839
1839
  }), e;
1840
1840
  }
1841
- function Zi(t, e) {
1841
+ function Yi(t, e) {
1842
1842
  if (t.length !== e.length)
1843
1843
  return !1;
1844
1844
  for (let n = 0; n < t.length; n++)
@@ -1846,7 +1846,7 @@ function Zi(t, e) {
1846
1846
  return !1;
1847
1847
  return !0;
1848
1848
  }
1849
- function Yi(t) {
1849
+ function Zi(t) {
1850
1850
  if (typeof t != "string")
1851
1851
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
1852
1852
  return new TextEncoder().encode(t);
@@ -1927,18 +1927,18 @@ const ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1927
1927
  concatBytes: jt,
1928
1928
  createHmacDrbg: wr,
1929
1929
  ensureBytes: V,
1930
- equalBytes: Zi,
1930
+ equalBytes: Yi,
1931
1931
  hexToBytes: pt,
1932
1932
  hexToNumber: Ue,
1933
1933
  numberToBytesBE: Et,
1934
1934
  numberToBytesLE: gr,
1935
1935
  numberToHexUnpadded: mr,
1936
1936
  numberToVarBytesBE: Ki,
1937
- utf8ToBytes: Yi,
1937
+ utf8ToBytes: Zi,
1938
1938
  validateObject: Ht
1939
1939
  }, Symbol.toStringTag, { value: "Module" }));
1940
1940
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1941
- const U = BigInt(0), F = BigInt(1), ut = BigInt(2), nc = BigInt(3), Ae = BigInt(4), xn = BigInt(5), vn = BigInt(8);
1941
+ const U = BigInt(0), $ = BigInt(1), ut = BigInt(2), nc = BigInt(3), Ae = BigInt(4), xn = BigInt(5), vn = BigInt(8);
1942
1942
  BigInt(9);
1943
1943
  BigInt(16);
1944
1944
  function M(t, e) {
@@ -1948,34 +1948,34 @@ function M(t, e) {
1948
1948
  function rc(t, e, n) {
1949
1949
  if (n <= U || e < U)
1950
1950
  throw new Error("Expected power/modulo > 0");
1951
- if (n === F)
1951
+ if (n === $)
1952
1952
  return U;
1953
- let r = F;
1953
+ let r = $;
1954
1954
  for (; e > U; )
1955
- e & F && (r = r * t % n), t = t * t % n, e >>= F;
1955
+ e & $ && (r = r * t % n), t = t * t % n, e >>= $;
1956
1956
  return r;
1957
1957
  }
1958
1958
  function xe(t, e) {
1959
1959
  if (t === U || e <= U)
1960
1960
  throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);
1961
- let n = M(t, e), r = e, s = U, o = F;
1961
+ let n = M(t, e), r = e, s = U, o = $;
1962
1962
  for (; n !== U; ) {
1963
1963
  const i = r / n, c = r % n, l = s - o * i;
1964
1964
  r = n, n = c, s = o, o = l;
1965
1965
  }
1966
- if (r !== F)
1966
+ if (r !== $)
1967
1967
  throw new Error("invert: does not exist");
1968
1968
  return M(s, e);
1969
1969
  }
1970
1970
  function sc(t) {
1971
- const e = (t - F) / ut;
1971
+ const e = (t - $) / ut;
1972
1972
  let n, r, s;
1973
- for (n = t - F, r = 0; n % ut === U; n /= ut, r++)
1973
+ for (n = t - $, r = 0; n % ut === U; n /= ut, r++)
1974
1974
  ;
1975
- for (s = ut; s < t && rc(s, e, t) !== t - F; s++)
1975
+ for (s = ut; s < t && rc(s, e, t) !== t - $; s++)
1976
1976
  ;
1977
1977
  if (r === 1) {
1978
- const a = (t + F) / Ae;
1978
+ const a = (t + $) / Ae;
1979
1979
  return function(c, l) {
1980
1980
  const d = c.pow(l, a);
1981
1981
  if (!c.eql(c.sqr(d), l))
@@ -1983,7 +1983,7 @@ function sc(t) {
1983
1983
  return d;
1984
1984
  };
1985
1985
  }
1986
- const o = (n + F) / ut;
1986
+ const o = (n + $) / ut;
1987
1987
  return function(i, c) {
1988
1988
  if (i.pow(c, e) === i.neg(i.ONE))
1989
1989
  throw new Error("Cannot find square root");
@@ -1994,7 +1994,7 @@ function sc(t) {
1994
1994
  let m = 1;
1995
1995
  for (let h = i.sqr(y); m < l && !i.eql(h, i.ONE); m++)
1996
1996
  h = i.sqr(h);
1997
- const S = i.pow(d, F << BigInt(l - m - 1));
1997
+ const S = i.pow(d, $ << BigInt(l - m - 1));
1998
1998
  d = i.sqr(S), u = i.mul(u, S), y = i.mul(y, d), l = m;
1999
1999
  }
2000
2000
  return u;
@@ -2002,7 +2002,7 @@ function sc(t) {
2002
2002
  }
2003
2003
  function oc(t) {
2004
2004
  if (t % Ae === nc) {
2005
- const e = (t + F) / Ae;
2005
+ const e = (t + $) / Ae;
2006
2006
  return function(r, s) {
2007
2007
  const o = r.pow(s, e);
2008
2008
  if (!r.eql(r.sqr(o), s))
@@ -2054,11 +2054,11 @@ function yr(t, e, n) {
2054
2054
  throw new Error("Expected power > 0");
2055
2055
  if (n === U)
2056
2056
  return t.ONE;
2057
- if (n === F)
2057
+ if (n === $)
2058
2058
  return e;
2059
2059
  let r = t.ONE, s = e;
2060
2060
  for (; n > U; )
2061
- n & F && (r = t.mul(r, s)), s = t.sqr(s), n >>= F;
2061
+ n & $ && (r = t.mul(r, s)), s = t.sqr(s), n >>= $;
2062
2062
  return r;
2063
2063
  }
2064
2064
  function ic(t, e) {
@@ -2081,7 +2081,7 @@ function He(t, e, n = !1, r = {}) {
2081
2081
  BYTES: o,
2082
2082
  MASK: ce(s),
2083
2083
  ZERO: U,
2084
- ONE: F,
2084
+ ONE: $,
2085
2085
  create: (c) => M(c, t),
2086
2086
  isValid: (c) => {
2087
2087
  if (typeof c != "bigint")
@@ -2089,7 +2089,7 @@ function He(t, e, n = !1, r = {}) {
2089
2089
  return U <= c && c < t;
2090
2090
  },
2091
2091
  is0: (c) => c === U,
2092
- isOdd: (c) => (c & F) === F,
2092
+ isOdd: (c) => (c & $) === $,
2093
2093
  neg: (c) => M(-c, t),
2094
2094
  eql: (c, l) => c === l,
2095
2095
  sqr: (c) => M(c * c, t),
@@ -2124,7 +2124,7 @@ function cc(t, e, n = !1) {
2124
2124
  if (s < 24 || r < s || r > 1024)
2125
2125
  throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${r}`);
2126
2126
  const o = n ? je(t) : X(t);
2127
- return M(o, e - F) + F;
2127
+ return M(o, e - $) + $;
2128
2128
  }
2129
2129
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2130
2130
  function lc(t) {
@@ -2244,8 +2244,8 @@ function fc(t, e) {
2244
2244
  const h = S * c;
2245
2245
  let g = Number(a & u);
2246
2246
  a >>= m, g > c && (g -= y, a += ye);
2247
- const w = h, E = h + Math.abs(g) - 1, x = S % 2 !== 0, B = g < 0;
2248
- g === 0 ? d = d.add(n(x, o[w])) : l = l.add(n(B, o[E]));
2247
+ const w = h, E = h + Math.abs(g) - 1, x = S % 2 !== 0, _ = g < 0;
2248
+ g === 0 ? d = d.add(n(x, o[w])) : l = l.add(n(_, o[E]));
2249
2249
  }
2250
2250
  return { p: l, f: d };
2251
2251
  },
@@ -2460,7 +2460,7 @@ function gc(t) {
2460
2460
  */
2461
2461
  equals(h) {
2462
2462
  d(h);
2463
- const { px: g, py: w, pz: E } = this, { px: x, py: B, pz: _ } = h, A = n.eql(n.mul(g, _), n.mul(x, E)), v = n.eql(n.mul(w, _), n.mul(B, E));
2463
+ const { px: g, py: w, pz: E } = this, { px: x, py: _, pz: B } = h, A = n.eql(n.mul(g, B), n.mul(x, E)), v = n.eql(n.mul(w, B), n.mul(_, E));
2464
2464
  return A && v;
2465
2465
  }
2466
2466
  /**
@@ -2474,9 +2474,9 @@ function gc(t) {
2474
2474
  // https://eprint.iacr.org/2015/1060, algorithm 3
2475
2475
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
2476
2476
  double() {
2477
- const { a: h, b: g } = e, w = n.mul(g, Tn), { px: E, py: x, pz: B } = this;
2478
- let _ = n.ZERO, A = n.ZERO, v = n.ZERO, I = n.mul(E, E), G = n.mul(x, x), R = n.mul(B, B), N = n.mul(E, x);
2479
- return N = n.add(N, N), v = n.mul(E, B), v = n.add(v, v), _ = n.mul(h, v), A = n.mul(w, R), A = n.add(_, A), _ = n.sub(G, A), A = n.add(G, A), A = n.mul(_, A), _ = n.mul(N, _), v = n.mul(w, v), R = n.mul(h, R), N = n.sub(I, R), N = n.mul(h, N), N = n.add(N, v), v = n.add(I, I), I = n.add(v, I), I = n.add(I, R), I = n.mul(I, N), A = n.add(A, I), R = n.mul(x, B), R = n.add(R, R), I = n.mul(R, N), _ = n.sub(_, I), v = n.mul(R, G), v = n.add(v, v), v = n.add(v, v), new u(_, A, v);
2477
+ const { a: h, b: g } = e, w = n.mul(g, Tn), { px: E, py: x, pz: _ } = this;
2478
+ let B = n.ZERO, A = n.ZERO, v = n.ZERO, I = n.mul(E, E), G = n.mul(x, x), R = n.mul(_, _), N = n.mul(E, x);
2479
+ return N = n.add(N, N), v = n.mul(E, _), v = n.add(v, v), B = n.mul(h, v), A = n.mul(w, R), A = n.add(B, A), B = n.sub(G, A), A = n.add(G, A), A = n.mul(B, A), B = n.mul(N, B), v = n.mul(w, v), R = n.mul(h, R), N = n.sub(I, R), N = n.mul(h, N), N = n.add(N, v), v = n.add(I, I), I = n.add(v, I), I = n.add(I, R), I = n.mul(I, N), A = n.add(A, I), R = n.mul(x, _), R = n.add(R, R), I = n.mul(R, N), B = n.sub(B, I), v = n.mul(R, G), v = n.add(v, v), v = n.add(v, v), new u(B, A, v);
2480
2480
  }
2481
2481
  // Renes-Costello-Batina exception-free addition formula.
2482
2482
  // There is 30% faster Jacobian formula, but it is not complete.
@@ -2484,13 +2484,13 @@ function gc(t) {
2484
2484
  // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
2485
2485
  add(h) {
2486
2486
  d(h);
2487
- const { px: g, py: w, pz: E } = this, { px: x, py: B, pz: _ } = h;
2487
+ const { px: g, py: w, pz: E } = this, { px: x, py: _, pz: B } = h;
2488
2488
  let A = n.ZERO, v = n.ZERO, I = n.ZERO;
2489
2489
  const G = e.a, R = n.mul(e.b, Tn);
2490
- let N = n.mul(g, x), L = n.mul(w, B), D = n.mul(E, _), rt = n.add(g, w), p = n.add(x, B);
2490
+ let N = n.mul(g, x), L = n.mul(w, _), D = n.mul(E, B), rt = n.add(g, w), p = n.add(x, _);
2491
2491
  rt = n.mul(rt, p), p = n.add(N, L), rt = n.sub(rt, p), p = n.add(g, E);
2492
- let b = n.add(x, _);
2493
- return p = n.mul(p, b), b = n.add(N, D), p = n.sub(p, b), b = n.add(w, E), A = n.add(B, _), b = n.mul(b, A), A = n.add(L, D), b = n.sub(b, A), I = n.mul(G, p), A = n.mul(R, D), I = n.add(A, I), A = n.sub(L, I), I = n.add(L, I), v = n.mul(A, I), L = n.add(N, N), L = n.add(L, N), D = n.mul(G, D), p = n.mul(R, p), L = n.add(L, D), D = n.sub(N, D), D = n.mul(G, D), p = n.add(p, D), N = n.mul(L, p), v = n.add(v, N), N = n.mul(b, p), A = n.mul(rt, A), A = n.sub(A, N), N = n.mul(rt, L), I = n.mul(b, I), I = n.add(I, N), new u(A, v, I);
2492
+ let b = n.add(x, B);
2493
+ return p = n.mul(p, b), b = n.add(N, D), p = n.sub(p, b), b = n.add(w, E), A = n.add(_, B), b = n.mul(b, A), A = n.add(L, D), b = n.sub(b, A), I = n.mul(G, p), A = n.mul(R, D), I = n.add(A, I), A = n.sub(L, I), I = n.add(L, I), v = n.mul(A, I), L = n.add(N, N), L = n.add(L, N), D = n.mul(G, D), p = n.mul(R, p), L = n.add(L, D), D = n.sub(N, D), D = n.mul(G, D), p = n.add(p, D), N = n.mul(L, p), v = n.add(v, N), N = n.mul(b, p), A = n.mul(rt, A), A = n.sub(A, N), N = n.mul(rt, L), I = n.mul(b, I), I = n.add(I, N), new u(A, v, I);
2494
2494
  }
2495
2495
  subtract(h) {
2496
2496
  return this.add(h.negate());
@@ -2518,10 +2518,10 @@ function gc(t) {
2518
2518
  const { endo: w } = e;
2519
2519
  if (!w)
2520
2520
  return m.unsafeLadder(this, h);
2521
- let { k1neg: E, k1: x, k2neg: B, k2: _ } = w.splitScalar(h), A = g, v = g, I = this;
2522
- for (; x > et || _ > et; )
2523
- x & W && (A = A.add(I)), _ & W && (v = v.add(I)), I = I.double(), x >>= W, _ >>= W;
2524
- return E && (A = A.negate()), B && (v = v.negate()), v = new u(n.mul(v.px, w.beta), v.py, v.pz), A.add(v);
2521
+ let { k1neg: E, k1: x, k2neg: _, k2: B } = w.splitScalar(h), A = g, v = g, I = this;
2522
+ for (; x > et || B > et; )
2523
+ x & W && (A = A.add(I)), B & W && (v = v.add(I)), I = I.double(), x >>= W, B >>= W;
2524
+ return E && (A = A.negate()), _ && (v = v.negate()), v = new u(n.mul(v.px, w.beta), v.py, v.pz), A.add(v);
2525
2525
  }
2526
2526
  /**
2527
2527
  * Constant time multiplication.
@@ -2537,12 +2537,12 @@ function gc(t) {
2537
2537
  let g = h, w, E;
2538
2538
  const { endo: x } = e;
2539
2539
  if (x) {
2540
- const { k1neg: B, k1: _, k2neg: A, k2: v } = x.splitScalar(g);
2541
- let { p: I, f: G } = this.wNAF(_), { p: R, f: N } = this.wNAF(v);
2542
- I = m.constTimeNegate(B, I), R = m.constTimeNegate(A, R), R = new u(n.mul(R.px, x.beta), R.py, R.pz), w = I.add(R), E = G.add(N);
2540
+ const { k1neg: _, k1: B, k2neg: A, k2: v } = x.splitScalar(g);
2541
+ let { p: I, f: G } = this.wNAF(B), { p: R, f: N } = this.wNAF(v);
2542
+ I = m.constTimeNegate(_, I), R = m.constTimeNegate(A, R), R = new u(n.mul(R.px, x.beta), R.py, R.pz), w = I.add(R), E = G.add(N);
2543
2543
  } else {
2544
- const { p: B, f: _ } = this.wNAF(g);
2545
- w = B, E = _;
2544
+ const { p: _, f: B } = this.wNAF(g);
2545
+ w = _, E = B;
2546
2546
  }
2547
2547
  return u.normalizeZ([w, E])[0];
2548
2548
  }
@@ -2553,8 +2553,8 @@ function gc(t) {
2553
2553
  * @returns non-zero affine point
2554
2554
  */
2555
2555
  multiplyAndAddUnsafe(h, g, w) {
2556
- const E = u.BASE, x = (_, A) => A === et || A === W || !_.equals(E) ? _.multiplyUnsafe(A) : _.multiply(A), B = x(this, g).add(x(h, w));
2557
- return B.is0() ? void 0 : B;
2556
+ const E = u.BASE, x = (B, A) => A === et || A === W || !B.equals(E) ? B.multiplyUnsafe(A) : B.multiply(A), _ = x(this, g).add(x(h, w));
2557
+ return _.is0() ? void 0 : _;
2558
2558
  }
2559
2559
  // Converts Projective point to affine (x, y) coordinates.
2560
2560
  // Can accept precomputed Z^-1 - for example, from invertBatch.
@@ -2562,12 +2562,12 @@ function gc(t) {
2562
2562
  toAffine(h) {
2563
2563
  const { px: g, py: w, pz: E } = this, x = this.is0();
2564
2564
  h == null && (h = x ? n.ONE : n.inv(E));
2565
- const B = n.mul(g, h), _ = n.mul(w, h), A = n.mul(E, h);
2565
+ const _ = n.mul(g, h), B = n.mul(w, h), A = n.mul(E, h);
2566
2566
  if (x)
2567
2567
  return { x: n.ZERO, y: n.ZERO };
2568
2568
  if (!n.eql(A, n.ONE))
2569
2569
  throw new Error("invZ was invalid");
2570
- return { x: B, y: _ };
2570
+ return { x: _, y: B };
2571
2571
  }
2572
2572
  isTorsionFree() {
2573
2573
  const { h, isTorsionFree: g } = e;
@@ -2742,14 +2742,14 @@ function yc(t) {
2742
2742
  function x(p, b = !0) {
2743
2743
  return l.fromPrivateKey(p).toRawBytes(b);
2744
2744
  }
2745
- function B(p) {
2745
+ function _(p) {
2746
2746
  const b = p instanceof Uint8Array, T = typeof p == "string", k = (b || T) && p.length;
2747
2747
  return b ? k === s || k === o : T ? k === 2 * s || k === 2 * o : p instanceof l;
2748
2748
  }
2749
- function _(p, b, T = !0) {
2750
- if (B(p))
2749
+ function B(p, b, T = !0) {
2750
+ if (_(p))
2751
2751
  throw new Error("first arg must be private key");
2752
- if (!B(b))
2752
+ if (!_(b))
2753
2753
  throw new Error("second arg must be public key");
2754
2754
  return l.fromHex(b).multiply(d(p)).toRawBytes(T);
2755
2755
  }
@@ -2835,7 +2835,7 @@ function yc(t) {
2835
2835
  return {
2836
2836
  CURVE: e,
2837
2837
  getPublicKey: x,
2838
- getSharedSecret: _,
2838
+ getSharedSecret: B,
2839
2839
  sign: D,
2840
2840
  verify: rt,
2841
2841
  ProjectivePoint: l,
@@ -2909,18 +2909,18 @@ function Ic(...t) {
2909
2909
  }
2910
2910
  return n;
2911
2911
  }
2912
- class _c {
2912
+ class Bc {
2913
2913
  // Safe version that clones internal state
2914
2914
  clone() {
2915
2915
  return this._cloneInto();
2916
2916
  }
2917
2917
  }
2918
- function Bc(t = 32) {
2918
+ function _c(t = 32) {
2919
2919
  if (be && typeof be.getRandomValues == "function")
2920
2920
  return be.getRandomValues(new Uint8Array(t));
2921
2921
  throw new Error("crypto.getRandomValues must be defined");
2922
2922
  }
2923
- class Er extends _c {
2923
+ class Er extends Bc {
2924
2924
  constructor(e, n) {
2925
2925
  super(), this.finished = !1, this.destroyed = !1, Wt.hash(e);
2926
2926
  const r = Tc(n);
@@ -2962,11 +2962,11 @@ function Nc(t) {
2962
2962
  return {
2963
2963
  hash: t,
2964
2964
  hmac: (e, ...n) => Ar(t, e, Ic(...n)),
2965
- randomBytes: Bc
2965
+ randomBytes: _c
2966
2966
  };
2967
2967
  }
2968
2968
  const In = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"), xr = 252;
2969
- function _n(t) {
2969
+ function Bn(t) {
2970
2970
  for (; t[0] === 0; )
2971
2971
  t = t.subarray(1);
2972
2972
  const e = t.length * 8 - xr, n = X(t);
@@ -2986,16 +2986,16 @@ const Tr = yc({
2986
2986
  h: BigInt(1),
2987
2987
  lowS: !1,
2988
2988
  ...Nc(hr),
2989
- bits2int: _n,
2989
+ bits2int: Bn,
2990
2990
  bits2int_modN: (t) => {
2991
2991
  const e = X(t).toString(16);
2992
- return e.length === 63 && (t = vr(e + "0")), M(_n(t), In);
2992
+ return e.length === 63 && (t = vr(e + "0")), M(Bn(t), In);
2993
2993
  }
2994
2994
  });
2995
2995
  function Cc(t) {
2996
2996
  return V("", typeof t == "string" ? vr(t) : t);
2997
2997
  }
2998
- const { CURVE: _u, ProjectivePoint: Ot, Signature: Bu, utils: Nu } = Tr;
2998
+ const { CURVE: Bu, ProjectivePoint: Ot, Signature: _u, utils: Nu } = Tr;
2999
2999
  function Oc(t) {
3000
3000
  return `0x${ht(t.subarray(1)).replace(/^0+/gm, "")}`;
3001
3001
  }
@@ -3020,7 +3020,7 @@ function Ir(t, e) {
3020
3020
  return n;
3021
3021
  }
3022
3022
  const Pc = Ir(Lt[1], Lt[2]), Rc = Ir(Lt[3], Lt[4]);
3023
- function Fc(t) {
3023
+ function $c(t) {
3024
3024
  let e;
3025
3025
  if (typeof t == "bigint")
3026
3026
  e = t;
@@ -3034,8 +3034,8 @@ function Fc(t) {
3034
3034
  throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${e}`);
3035
3035
  return e;
3036
3036
  }
3037
- function Bn(t, e, n) {
3038
- let r = Fc(e);
3037
+ function _n(t, e, n) {
3038
+ let r = $c(e);
3039
3039
  for (let s = 0; s < 252; s++) {
3040
3040
  const o = n[s];
3041
3041
  if (o.equals(t))
@@ -3044,9 +3044,9 @@ function Bn(t, e, n) {
3044
3044
  }
3045
3045
  return t;
3046
3046
  }
3047
- function $c(t, e) {
3047
+ function Fc(t, e) {
3048
3048
  let n = Lt[0];
3049
- return n = Bn(n, t, Pc), n = Bn(n, e, Rc), Oc(n.toRawBytes(!0));
3049
+ return n = _n(n, t, Pc), n = _n(n, e, Rc), Oc(n.toRawBytes(!0));
3050
3050
  }
3051
3051
  const Uc = ce(250), jc = (t) => X(Li(t)) & Uc;
3052
3052
  He(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));
@@ -3097,15 +3097,15 @@ const Mc = f.object({
3097
3097
  s: kt
3098
3098
  })
3099
3099
  })
3100
- }), Gc = f.nativeEnum(Te), _r = f.object({
3100
+ }), Gc = f.nativeEnum(Te), Br = f.object({
3101
3101
  recoveryId: f.number(),
3102
3102
  status: Gc,
3103
3103
  completionTime: f.array(f.number()).optional()
3104
3104
  }), qc = f.object({
3105
- activeRecovery: _r.optional().or(f.null()).optional(),
3105
+ activeRecovery: Br.optional().or(f.null()).optional(),
3106
3106
  minFees: f.record(f.number()).optional()
3107
3107
  }), Wc = f.object({
3108
- recovery: _r.optional().or(f.null()).optional(),
3108
+ recovery: Br.optional().or(f.null()).optional(),
3109
3109
  minFees: f.record(f.number()).optional()
3110
3110
  });
3111
3111
  var Ie;
@@ -3149,7 +3149,7 @@ class ku {
3149
3149
  * @returns A promise that resolves to the recovery details.
3150
3150
  */
3151
3151
  async startRecovery(e, n, r, s) {
3152
- const { r: o, s: a } = vs.starkCurve.sign($c(jc(ks("utf8", "starknet:recovery")), r), s), i = {
3152
+ const { r: o, s: a } = vs.starkCurve.sign(Fc(jc(ks("utf8", "starknet:recovery")), r), s), i = {
3153
3153
  feeToken: n,
3154
3154
  signerSignature: {
3155
3155
  type: "StarknetKey",
@@ -3194,16 +3194,16 @@ function le(t) {
3194
3194
  function Ru() {
3195
3195
  return le("Firefox");
3196
3196
  }
3197
- function Fu() {
3197
+ function $u() {
3198
3198
  return le("Chrome");
3199
3199
  }
3200
- function $u() {
3200
+ function Fu() {
3201
3201
  return le("Safari");
3202
3202
  }
3203
3203
  function Uu() {
3204
3204
  return le("Edge");
3205
3205
  }
3206
- const ju = f.string().refine((t) => Rs(t, Fs), "Invalid seedphrase"), Ve = [
3206
+ const ju = f.string().refine((t) => Rs(t, $s), "Invalid seedphrase"), Ve = [
3207
3207
  {
3208
3208
  address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
3209
3209
  name: "Ether",
@@ -3380,7 +3380,7 @@ const ju = f.string().refine((t) => Rs(t, Fs), "Invalid seedphrase"), Ve = [
3380
3380
  networkId: "mainnet-alpha",
3381
3381
  image: "https://dv3jj1unlp2jl.cloudfront.net/128/color/ekubo.png"
3382
3382
  }
3383
- ], Zc = async (t, e, n) => {
3383
+ ], Yc = async (t, e, n) => {
3384
3384
  const r = await n.callContract({
3385
3385
  contractAddress: t,
3386
3386
  entrypoint: "balanceOf",
@@ -3409,25 +3409,25 @@ const ju = f.string().refine((t) => Rs(t, Fs), "Invalid seedphrase"), Ve = [
3409
3409
  return o.push(l), o;
3410
3410
  }, []);
3411
3411
  }, Du = async () => Ve, Hu = ({ address: t, networkId: e }) => Ve.find((r) => r.address === t && r.networkId === e), Vu = ({ amount: t, decimals: e, unitCurrencyValue: n }) => {
3412
- if (!Y(t) || !Y(e) || !Y(n))
3412
+ if (!Z(t) || !Z(e) || !Z(n))
3413
3413
  return;
3414
3414
  const r = Number(e), s = BigInt(t) * On(n.toString()).value;
3415
- return Be({
3415
+ return _e({
3416
3416
  value: s,
3417
3417
  decimals: r + Jr
3418
3418
  });
3419
3419
  }, Mu = ({ unitAmount: t, decimals: e }) => {
3420
- if (t === void 0 || !Y(t) || e === void 0 || !Y(e))
3420
+ if (t === void 0 || !Z(t) || e === void 0 || !Z(e))
3421
3421
  return;
3422
3422
  const n = Number(e);
3423
3423
  return Qt(t.toString(), n).value.toString();
3424
- }, Gu = (t) => Y(t) ? Number(t) : 18, { UINT_256_MAX: Yc } = Dt, Xc = (t) => String(t) === String(Yc), qu = (t, e = "$", n) => {
3425
- if (t === void 0 || !Y(t))
3424
+ }, Gu = (t) => Z(t) ? Number(t) : 18, { UINT_256_MAX: Zc } = Dt, Xc = (t) => String(t) === String(Zc), qu = (t, e = "$", n) => {
3425
+ if (t === void 0 || !Z(t))
3426
3426
  return null;
3427
3427
  const r = mi(t, n);
3428
3428
  return [e, r].filter(Boolean).join("");
3429
3429
  }, Jc = "Unlimited", Wu = ({ amount: t, decimals: e, symbol: n, showPlusSign: r = !1, withSymbol: s = !0, unlimitedText: o = Jc, prettyConfigOverrides: a }) => {
3430
- if (!Y(t))
3430
+ if (!Z(t))
3431
3431
  return null;
3432
3432
  let i, c = !1;
3433
3433
  if (Xc(t))
@@ -3435,13 +3435,25 @@ const ju = f.string().refine((t) => Rs(t, Fs), "Invalid seedphrase"), Ve = [
3435
3435
  else {
3436
3436
  const d = Number(e), u = BigInt(t);
3437
3437
  c = u > 0n;
3438
- const y = d > 0 ? Be({ value: u, decimals: d }) : u.toString();
3438
+ const y = d > 0 ? _e({ value: u, decimals: d }) : u.toString();
3439
3439
  i = d > 0 ? gi(y, a) : y;
3440
3440
  }
3441
3441
  const l = [i, s && n].filter(Boolean).join(" ");
3442
3442
  return r && c ? `+${l}` : l;
3443
3443
  };
3444
- var Qc = ys, tl = Qc;
3444
+ function zu(t) {
3445
+ return {
3446
+ USD: "$",
3447
+ EUR: "€",
3448
+ GBP: "£",
3449
+ JPY: "¥",
3450
+ CAD: "C$",
3451
+ AUD: "A$",
3452
+ CHF: "CHF",
3453
+ CNY: "CN¥"
3454
+ }[t.toUpperCase()] || "$";
3455
+ }
3456
+ var Qc = bs, tl = Qc;
3445
3457
  function el(t, e) {
3446
3458
  function n(r, s) {
3447
3459
  var o = e || {}, a;
@@ -3474,7 +3486,7 @@ function el(t, e) {
3474
3486
  }
3475
3487
  var nl = el;
3476
3488
  const rl = /* @__PURE__ */ ds(nl);
3477
- class zu {
3489
+ class Ku {
3478
3490
  constructor(e, n) {
3479
3491
  this.apiBase = e, this.httpService = n, this.TOKENS_INFO_URL = "/tokens/info", this.TOKENS_DEFI_DECOMPOSITION_URL = "/tokens/defi/decomposition";
3480
3492
  }
@@ -3528,12 +3540,10 @@ class zu {
3528
3540
  }
3529
3541
  async fetchDefiDecomposition(e) {
3530
3542
  const n = P(this.apiBase, this.TOKENS_DEFI_DECOMPOSITION_URL, e, "?chain=starknet"), r = await this.httpService.get(n);
3531
- if (!ms.safeParse(r).success)
3532
- throw new bs({ code: "TOKEN_DEFI_DECOMPOSITION_PARSING_ERROR" });
3533
- return r.dapps;
3543
+ return ms(gs, r).success || console.error("Backend schema has changed. Make the changes to the models to prevent unknown/unhandled errors."), r.dapps;
3534
3544
  }
3535
3545
  }
3536
- const Ku = (t, e, n, r) => ({
3546
+ const Yu = (t, e, n, r) => ({
3537
3547
  contractAddress: t,
3538
3548
  entrypoint: "transfer",
3539
3549
  calldata: mt.compile({
@@ -3549,7 +3559,7 @@ const Ku = (t, e, n, r) => ({
3549
3559
  tokenId: Ut(r)
3550
3560
  // OZ specs need a uint256 as tokenId
3551
3561
  })
3552
- }), Yu = (t, e, n, r) => ({
3562
+ }), Xu = (t, e, n, r) => ({
3553
3563
  contractAddress: t,
3554
3564
  entrypoint: "safeTransferFrom",
3555
3565
  calldata: mt.compile({
@@ -3560,14 +3570,14 @@ const Ku = (t, e, n, r) => ({
3560
3570
  data_len: "0"
3561
3571
  })
3562
3572
  });
3563
- function Br(t) {
3573
+ function _r(t) {
3564
3574
  return ke(t.unit) === "WEI";
3565
3575
  }
3566
3576
  function sl(t) {
3567
3577
  return ke(t.unit) === "FRI";
3568
3578
  }
3569
3579
  function At(t, e) {
3570
- return Br(t) ? {
3580
+ return _r(t) ? {
3571
3581
  ...t,
3572
3582
  maxFee: e(t.maxFee),
3573
3583
  overallFee: e(t.overallFee),
@@ -3583,7 +3593,7 @@ function At(t, e) {
3583
3593
  };
3584
3594
  }
3585
3595
  function Pt(t) {
3586
- return Br(t) ? {
3596
+ return _r(t) ? {
3587
3597
  maxFee: t.maxFee
3588
3598
  } : {
3589
3599
  amount: t.maxAmount,
@@ -3591,13 +3601,13 @@ function Pt(t) {
3591
3601
  };
3592
3602
  }
3593
3603
  function Ee(t) {
3594
- return sl({ unit: t }) ? Oe : Fn;
3604
+ return sl({ unit: t }) ? Oe : $n;
3595
3605
  }
3596
- function Xu(t, e, n = 2) {
3606
+ function Ju(t, e, n = 2) {
3597
3607
  const r = BigInt(10 ** n), s = BigInt(Math.round(e * 10 ** n));
3598
3608
  return t * s / r;
3599
3609
  }
3600
- const Ju = [Oe], Nr = (t, e = ll) => {
3610
+ const Qu = [Oe], Nr = (t, e = ll) => {
3601
3611
  if (t.max && "amount" in t.max)
3602
3612
  return {
3603
3613
  ...t,
@@ -3620,24 +3630,24 @@ const Ju = [Oe], Nr = (t, e = ll) => {
3620
3630
  }, ol = (t) => {
3621
3631
  if (t.max)
3622
3632
  return "maxFee" in t.max ? t.max.maxFee : Jt(t.max);
3623
- }, _e = (t) => {
3633
+ }, Be = (t) => {
3624
3634
  const e = ol(t);
3625
3635
  return e || Jt(Nr(t));
3626
- }, Qu = (t) => {
3636
+ }, td = (t) => {
3627
3637
  if (t.deployment && !nt(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
3628
3638
  throw Error("Cannot calculate estimated fees for different tokens");
3629
3639
  const e = Jt(t.transactions), n = t.deployment ? Jt(t.deployment) : 0n;
3630
3640
  return e + n;
3631
- }, td = (t) => {
3641
+ }, ed = (t) => {
3632
3642
  if (t.deployment && !nt(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
3633
3643
  throw Error("Cannot calculate estimated fees for different tokens");
3634
- const e = t.deployment ? _e(t.deployment) : 0n, n = _e(t.transactions);
3644
+ const e = t.deployment ? Be(t.deployment) : 0n, n = Be(t.transactions);
3635
3645
  return e + n;
3636
- }, ed = (t, e) => [
3646
+ }, nd = (t, e) => [
3637
3647
  {
3638
3648
  contractAddress: t,
3639
3649
  entrypoint: "transfer",
3640
- calldata: mt.compile(gs.parse({
3650
+ calldata: mt.compile(ws.parse({
3641
3651
  // We are using a dummy address (ETH here) as recipient to estimate the fee given we don't have a receipient yet
3642
3652
  recipient: e,
3643
3653
  // We are using the smallest possible amount to make sure this doesn't throw an error
@@ -3648,7 +3658,7 @@ const Ju = [Oe], Nr = (t, e = ll) => {
3648
3658
  if (!t)
3649
3659
  return {
3650
3660
  transactions: {
3651
- feeTokenAddress: e ?? Fn,
3661
+ feeTokenAddress: e ?? $n,
3652
3662
  amount: 0n,
3653
3663
  pricePerUnit: 0n,
3654
3664
  dataGasConsumed: 0n,
@@ -3735,8 +3745,8 @@ const Ju = [Oe], Nr = (t, e = ll) => {
3735
3745
  max: Pt(At(i.simulation.feeEstimation, O.toBigInt))
3736
3746
  } : void 0
3737
3747
  };
3738
- }, nd = (t) => {
3739
- const e = Nr(t), n = _e(t);
3748
+ }, rd = (t) => {
3749
+ const e = Nr(t), n = Be(t);
3740
3750
  return {
3741
3751
  // for v1 transactions
3742
3752
  maxFee: n,
@@ -3754,31 +3764,31 @@ const Ju = [Oe], Nr = (t, e = ll) => {
3754
3764
  }
3755
3765
  }
3756
3766
  };
3757
- }, rd = (t) => {
3767
+ }, sd = (t) => {
3758
3768
  const e = Math.sqrt(t);
3759
3769
  return isNaN(e) ? Math.sqrt(2) : e;
3760
3770
  }, ll = (t) => {
3761
3771
  const e = Math.cbrt(t);
3762
3772
  return isNaN(e) ? Math.cbrt(2) : e;
3763
- }, sd = (t) => t < 1 || isNaN(t) ? 1.1 : Math.log(t + 1) + 1, ul = [Oe];
3773
+ }, od = (t) => t < 1 || isNaN(t) ? 1.1 : Math.log(t + 1) + 1, ul = [Oe];
3764
3774
  function Me({ address: t }) {
3765
3775
  return ul.some((e) => nt(t, e));
3766
3776
  }
3767
- function od(t) {
3777
+ function ad(t) {
3768
3778
  return t ? ba().some((e) => nt(e, t)) : !1;
3769
3779
  }
3770
3780
  function Nn(t) {
3771
3781
  return Me({
3772
3782
  address: t
3773
- }) ? Z.TRANSACTION_VERSION.V3 : Z.TRANSACTION_VERSION.V1;
3783
+ }) ? Y.TRANSACTION_VERSION.V3 : Y.TRANSACTION_VERSION.V1;
3774
3784
  }
3775
- function ad(t) {
3776
- return Me({ address: t }) ? Z.TRANSACTION_VERSION.F3 : Z.TRANSACTION_VERSION.F1;
3785
+ function id(t) {
3786
+ return Me({ address: t }) ? Y.TRANSACTION_VERSION.F3 : Y.TRANSACTION_VERSION.F1;
3777
3787
  }
3778
- function id(t, e) {
3779
- return Ts(e.contract) ? Me({ address: t }) ? Z.TRANSACTION_VERSION.V3 : Z.TRANSACTION_VERSION.V2 : Z.TRANSACTION_VERSION.V1;
3788
+ function cd(t, e) {
3789
+ return Ts(e.contract) ? Me({ address: t }) ? Y.TRANSACTION_VERSION.V3 : Y.TRANSACTION_VERSION.V2 : Y.TRANSACTION_VERSION.V1;
3780
3790
  }
3781
- class cd {
3791
+ class ld {
3782
3792
  constructor(e, n) {
3783
3793
  this.apiBase = e, this.httpService = n;
3784
3794
  }
@@ -3849,7 +3859,7 @@ class cd {
3849
3859
  try {
3850
3860
  const a = r ? this.getCallsFromTx(e[1]) : this.getCallsFromTx(e[0]);
3851
3861
  if (!a)
3852
- throw new _t({
3862
+ throw new Bt({
3853
3863
  code: "NO_CALLS_FOUND"
3854
3864
  });
3855
3865
  const i = await this.fetchFeesOnchain({
@@ -3865,7 +3875,7 @@ class cd {
3865
3875
  isBackendDown: !0
3866
3876
  };
3867
3877
  } catch (a) {
3868
- throw console.error(a), new _t({
3878
+ throw console.error(a), new Bt({
3869
3879
  message: `${a}`,
3870
3880
  code: "SIMULATE_AND_REVIEW_FAILED"
3871
3881
  });
@@ -3904,7 +3914,7 @@ class cd {
3904
3914
  throw console.error(u), u;
3905
3915
  });
3906
3916
  if (!l.gas_consumed || !l.gas_price || !d.gas_consumed || !d.gas_price)
3907
- throw new _t({
3917
+ throw new Bt({
3908
3918
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3909
3919
  message: "Missing gas_consumed or gas_price"
3910
3920
  });
@@ -3928,7 +3938,7 @@ class cd {
3928
3938
  version: a
3929
3939
  });
3930
3940
  if (!c || !l)
3931
- throw new _t({
3941
+ throw new Bt({
3932
3942
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3933
3943
  message: "Missing gas_consumed or gas_price"
3934
3944
  });
@@ -3942,23 +3952,23 @@ class cd {
3942
3952
  }
3943
3953
  return i;
3944
3954
  } catch (a) {
3945
- throw new _t({
3955
+ throw new Bt({
3946
3956
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3947
3957
  message: `${a}`
3948
3958
  });
3949
3959
  }
3950
3960
  }
3951
3961
  }
3952
- const ld = [
3962
+ const ud = [
3953
3963
  "account-upgrade",
3954
3964
  "approve",
3955
3965
  "set-approval-for-all",
3956
3966
  "swap",
3957
3967
  "transfer"
3958
- ], ud = (t) => ({ showBalanceChange: xt(() => {
3968
+ ], dd = (t) => ({ showBalanceChange: xt(() => {
3959
3969
  const n = t == null ? void 0 : t.some((s) => !nn(s.transfers)), r = t == null ? void 0 : t.some((s) => !nn(s.approvals));
3960
3970
  return t && (n || r);
3961
- }, [t]) }), ue = (t) => t ? t.filter((e) => e.token.type === "erc20") : [], dd = (t) => xt(() => ue(t), [t]), fd = (t) => ue(t).length > 0, hd = (t) => ue(t).some((n) => n.amount > 0n), pd = (t) => ue(t).some((n) => n.amount < 0n), Cr = (t) => t ? t.filter((e) => e.token.type === "erc721") : [], md = (t) => xt(() => Cr(t), [t]), dl = (t) => Cr(t).length > 0, gd = (t) => xt(() => dl(t), [t]), wd = (t, e) => xt(() => t && e ? [
3971
+ }, [t]) }), ue = (t) => t ? t.filter((e) => e.token.type === "erc20") : [], fd = (t) => xt(() => ue(t), [t]), hd = (t) => ue(t).length > 0, pd = (t) => ue(t).some((n) => n.amount > 0n), md = (t) => ue(t).some((n) => n.amount < 0n), Cr = (t) => t ? t.filter((e) => e.token.type === "erc721") : [], gd = (t) => xt(() => Cr(t), [t]), dl = (t) => Cr(t).length > 0, wd = (t) => xt(() => dl(t), [t]), yd = (t, e) => xt(() => t && e ? [
3962
3972
  {
3963
3973
  contractAddress: t.address,
3964
3974
  entrypoint: "transfer",
@@ -3967,7 +3977,7 @@ const ld = [
3967
3977
  amount: Ut(t.balance)
3968
3978
  })
3969
3979
  }
3970
- ] : [], [t, e]), yd = ({ apiData: { apiBaseUrl: t, apiHeaders: e }, address: n, network: r, transactionReviewEnabled: s = !0, transactions: o }) => {
3980
+ ] : [], [t, e]), bd = ({ apiData: { apiBaseUrl: t, apiHeaders: e }, address: n, network: r, transactionReviewEnabled: s = !0, transactions: o }) => {
3971
3981
  const a = Ln(async () => {
3972
3982
  if (!n || !r)
3973
3983
  return;
@@ -3986,9 +3996,9 @@ const ld = [
3986
3996
  },
3987
3997
  body: JSON.stringify(d)
3988
3998
  });
3989
- }, [n, r, o]), i = xt(() => $s({ transactions: o, address: n, network: r }), [o, n, r]);
3999
+ }, [n, r, o]), i = xt(() => Fs({ transactions: o, address: n, network: r }), [o, n, r]);
3990
4000
  return qs(!!s, [i, "transactionReview"], a);
3991
- }, bd = (t) => {
4001
+ }, Sd = (t) => {
3992
4002
  if (!t)
3993
4003
  return {};
3994
4004
  const e = t.assessment === "warn" && t.reason !== "contract_is_not_verified", n = t.reason ? ` (Reason: ${Hn(t.reason)})` : "", r = e ? t.reason === "recipient_is_token_address" ? "You are sending tokens to their own address. This is likely to burn them." : `This transaction has been flagged as dangerous. We recommend you reject this transaction unless you are sure.${n}` : void 0;
@@ -4003,15 +4013,15 @@ const ld = [
4003
4013
  if (((e = n.activity) == null ? void 0 : e.type) === "swap")
4004
4014
  return n;
4005
4015
  }
4006
- }, Sd = (t) => {
4007
- }, Ed = (t, e) => {
4016
+ }, Ed = (t) => {
4017
+ }, Ad = (t, e) => {
4008
4018
  var n;
4009
4019
  if (e) {
4010
4020
  for (const r of e.reviews)
4011
4021
  if (((n = r.activity) == null ? void 0 : n.type) === t)
4012
4022
  return r.activity;
4013
4023
  }
4014
- }, Ad = (t) => !!fl(t), xd = (t) => {
4024
+ }, xd = (t) => !!fl(t), vd = (t) => {
4015
4025
  var e, n;
4016
4026
  if (t) {
4017
4027
  for (const r of t.reviews)
@@ -4034,8 +4044,8 @@ const ld = [
4034
4044
  var y, m, S, h, g, w;
4035
4045
  let s = !1;
4036
4046
  const o = e.transactions.find((E) => {
4037
- var x, B;
4038
- return (B = (x = E == null ? void 0 : E.simulation) == null ? void 0 : x.summary) == null ? void 0 : B.find((_) => _.sent);
4047
+ var x, _;
4048
+ return (_ = (x = E == null ? void 0 : E.simulation) == null ? void 0 : x.summary) == null ? void 0 : _.find((B) => B.sent);
4039
4049
  });
4040
4050
  if (!o || !((y = o.simulation) != null && y.summary))
4041
4051
  return s;
@@ -4045,9 +4055,9 @@ const ld = [
4045
4055
  const c = "amount" in e.enrichedFeeEstimation.transactions.max ? e.enrichedFeeEstimation.transactions.max.amount * e.enrichedFeeEstimation.transactions.max.pricePerUnit : "maxFee" in e.enrichedFeeEstimation.transactions.max ? e.enrichedFeeEstimation.transactions.max.maxFee : void 0, l = (w = o.simulation.summary.find((E) => E.sent && E.token.address === n)) == null ? void 0 : w.value;
4046
4056
  if (!c || !l)
4047
4057
  return s;
4048
- const d = await Zc(n, t, r) ?? 0n;
4058
+ const d = await Yc(n, t, r) ?? 0n;
4049
4059
  return BigInt(d) > c + BigInt(l) || (s = !0), s;
4050
- }, vd = () => Ln(async ({ feeTokenAddress: e, calls: n, selectedAccount: r, transactionReviewService: s, appDomain: o, accountDeployPayload: a, provider: i, isDelayedTransaction: c }) => {
4060
+ }, Td = () => Ln(async ({ feeTokenAddress: e, calls: n, selectedAccount: r, transactionReviewService: s, appDomain: o, accountDeployPayload: a, provider: i, isDelayedTransaction: c }) => {
4051
4061
  if (!r)
4052
4062
  return;
4053
4063
  const l = await hl({
@@ -4073,7 +4083,7 @@ const ld = [
4073
4083
  function Cn() {
4074
4084
  return { promise: Promise.resolve() };
4075
4085
  }
4076
- function Td(t) {
4086
+ function Id(t) {
4077
4087
  return class extends t {
4078
4088
  constructor({ enabled: e, appVersion: n }) {
4079
4089
  super(), this.enabled = e, this.appVersion = n;
@@ -4088,9 +4098,9 @@ function Td(t) {
4088
4098
  }
4089
4099
  };
4090
4100
  }
4091
- const gl = Is({}), Id = ({ enabled: t, initialize: e, children: n }) => {
4101
+ const gl = Is({}), Bd = ({ enabled: t, initialize: e, children: n }) => {
4092
4102
  const [r, s] = jn(!1);
4093
- return Ft(() => {
4103
+ return $t(() => {
4094
4104
  !r && t && e().then(() => s(!0));
4095
4105
  }, [r, t, e]), /* @__PURE__ */ Us(gl.Provider, { value: {}, children: n });
4096
4106
  };
@@ -4101,161 +4111,164 @@ export {
4101
4111
  kl as AddSmartAcountRequestSchema,
4102
4112
  js as BackendAccountSchema,
4103
4113
  bu as BackendNftService,
4104
- Od as BaseError,
4114
+ kd as BaseError,
4105
4115
  Js as C0_PROXY_CONTRACT_CLASS_HASHES,
4106
4116
  Dl as CacheService,
4107
4117
  Jr as DEFAULT_TOKEN_DECIMALS,
4108
4118
  Hl as DateService,
4109
- Bh as ESTIMATE_ERROR_MESSAGES,
4110
- Fn as ETH_TOKEN_ADDRESS,
4119
+ kh as ESTIMATE_ERROR_MESSAGES,
4120
+ $n as ETH_TOKEN_ADDRESS,
4111
4121
  Ss as EstimateError,
4112
- kd as EventEmitterProvider,
4113
- Nh as EventsBySelector,
4114
- Ch as FEE_OVERHEAD,
4122
+ Pd as EventEmitterProvider,
4123
+ Ph as EventsBySelector,
4124
+ Rh as FEE_OVERHEAD,
4115
4125
  Gn as HTTPService,
4116
4126
  ze as HTTP_ERROR_MESSAGE,
4117
4127
  K as HttpError,
4118
4128
  nu as KnownDappsBackendService,
4119
- Ye as MultiSigner,
4129
+ Ze as MultiSigner,
4120
4130
  ku as OnchainRecoveryService,
4121
4131
  Jc as PRETTY_UNLIMITED,
4122
4132
  Te as RecoveryStatusEnum,
4123
4133
  su as ResolveNameService,
4124
- ws as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
4134
+ ys as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
4125
4135
  Oe as STRK_TOKEN_ADDRESS,
4126
4136
  Vl as SWRService,
4127
4137
  Kl as StarknetAddressService,
4128
4138
  Ie as StartOnchainRecoveryErrorStatusEnum,
4129
- Oh as TOKEN_ERROR_MESSAGES,
4130
- kh as TXV1_ACCOUNT_CLASS_HASH,
4131
- Ph as TXV1_MULTISIG_CLASS_HASH,
4132
- Rh as TXV3_ACCOUNT_CLASS_HASH,
4133
- Fh as TXV3_MULTISIG_CLASS_HASH,
4134
- bs as TokenError,
4135
- zu as TokenServiceWeb,
4136
- cd as TransactionReviewServiceWeb,
4137
- Id as WebAmplitudeProvider,
4138
- Td as WebAnalyticsServiceFactory,
4139
- Pd as abiEntrySchema,
4140
- Rd as abiSchema,
4139
+ $h as TOKEN_ERROR_MESSAGES,
4140
+ Fh as TXV1_ACCOUNT_CLASS_HASH,
4141
+ Uh as TXV1_MULTISIG_CLASS_HASH,
4142
+ jh as TXV3_ACCOUNT_CLASS_HASH,
4143
+ Lh as TXV3_MULTISIG_CLASS_HASH,
4144
+ Dh as TokenError,
4145
+ Ku as TokenServiceWeb,
4146
+ ld as TransactionReviewServiceWeb,
4147
+ Bd as WebAmplitudeProvider,
4148
+ Id as WebAnalyticsServiceFactory,
4149
+ Rd as abiEntrySchema,
4150
+ $d as abiSchema,
4141
4151
  qc as activeOnchainRecoverySchema,
4142
4152
  Fd as addOwnersCalldataSchema,
4143
- $d as addPluginCalldataSchema,
4144
- Ud as addressInputCharactersAndLengthSchema,
4145
- jd as addressInputSchema,
4146
- Ld as addressOrDomainInputSchema,
4147
- Dd as addressOrDomainSchema,
4148
- Hd as addressOrEmptyUndefinedSchema,
4153
+ Ud as addPluginCalldataSchema,
4154
+ jd as addressInputCharactersAndLengthSchema,
4155
+ Ld as addressInputSchema,
4156
+ Dd as addressOrDomainInputSchema,
4157
+ Hd as addressOrDomainSchema,
4158
+ Vd as addressOrEmptyUndefinedSchema,
4149
4159
  te as addressSchema,
4150
4160
  Ne as addressSchemaArgentBackend,
4151
- Vd as addressSchemaBase,
4152
- Md as addressSchemaLooseLength,
4153
- Gd as addressSchemaStrictLength,
4154
- $h as airdropSchema,
4161
+ Md as addressSchemaBase,
4162
+ Gd as addressSchemaLooseLength,
4163
+ qd as addressSchemaStrictLength,
4164
+ Hh as airdropSchema,
4155
4165
  ps as apiAccountTokenBalancesSchema,
4156
- qd as apiAirdropSchema,
4157
- Wd as apiCollateralizedDebtPositionSchema,
4158
- zd as apiCollateralizedDebtPositionsSchema,
4159
- Kd as apiConcentratedLiquidityPositionSchema,
4166
+ Wd as apiAirdropSchema,
4167
+ zd as apiCollateralizedDebtPositionSchema,
4168
+ Kd as apiCollateralizedDebtPositionsSchema,
4169
+ Yd as apiConcentratedLiquidityPositionSchema,
4160
4170
  Zd as apiConcentratedLiquidityPositionsSchema,
4161
- Yd as apiDefiDecompositionProduct,
4162
- Xd as apiDefiDecompositionProducts,
4163
- Jd as apiDefiDecompositionSchema,
4164
- Qd as apiDefiDecompositionToken,
4165
- ms as apiDefiPositionsSchema,
4166
- tf as apiPriceDataResponseSchema,
4167
- ef as apiPriceDetailsSchema,
4171
+ Xd as apiDefiDecompositionProduct,
4172
+ Jd as apiDefiDecompositionProducts,
4173
+ Qd as apiDefiDecompositionSchema,
4174
+ tf as apiDefiDecompositionToken,
4175
+ gs as apiDefiPositionsSchema,
4176
+ ef as apiPriceDataResponseSchema,
4177
+ nf as apiPriceDetailsSchema,
4178
+ rf as apiStakingPositionSchema,
4179
+ sf as apiStakingPositionsSchema,
4168
4180
  hs as apiTokenInfoResponseSchema,
4169
- nf as apiTokenInfoSchema,
4181
+ of as apiTokenInfoSchema,
4170
4182
  fs as apiTokensInfoResponseSchema,
4171
- ld as apiTransactionReviewActivityType,
4172
- rf as apiUnclaimedRewardsSchema,
4173
- sf as apiWalletResponseSchema,
4183
+ ud as apiTransactionReviewActivityType,
4184
+ af as apiUnclaimedRewardsSchema,
4185
+ cf as apiWalletResponseSchema,
4174
4186
  Hs as argentBackendNetworkIdSchema,
4175
4187
  Es as argentMaxFee,
4176
- of as argentNameSchema,
4188
+ lf as argentNameSchema,
4177
4189
  Ds as argentNetworkIdSchema,
4178
4190
  Ll as bigDecimal,
4179
- af as bigNumberSchema,
4180
- cf as bigNumberishSchema,
4181
- Nd as bipsToPercent,
4182
- lf as booleanToStringSchema,
4191
+ uf as bigNumberSchema,
4192
+ df as bigNumberishSchema,
4193
+ Cd as bipsToPercent,
4194
+ ff as booleanToStringSchema,
4183
4195
  ml as buildAccountDeployTransaction,
4184
4196
  Aa as buildConstructorCalldata,
4185
- ed as buildDummyTx,
4186
- uf as builtinsSchema,
4187
- df as byteCodeSchema,
4188
- ff as cairo1EventSchema,
4189
- hf as cairoAssemblySchema,
4190
- pf as cairoVersionSchema,
4197
+ nd as buildDummyTx,
4198
+ hf as builtinsSchema,
4199
+ pf as byteCodeSchema,
4200
+ mf as cairo1EventSchema,
4201
+ gf as cairoAssemblySchema,
4202
+ wf as cairoVersionSchema,
4191
4203
  ll as calculateCubeRootAdjustment,
4192
- sd as calculateNonLinearAdjustment,
4193
- rd as calculateSqrtAdjustment,
4194
- mf as callDetailsSchema,
4204
+ od as calculateNonLinearAdjustment,
4205
+ sd as calculateSqrtAdjustment,
4206
+ yf as callDetailsSchema,
4195
4207
  ts as callSchema,
4196
- gf as calldataSchema,
4208
+ bf as calldataSchema,
4197
4209
  At as castFeeEstimation,
4198
- wf as changeGuardianCalldataSchema,
4199
- yf as changeThresholdCalldataSchema,
4210
+ Sf as changeGuardianCalldataSchema,
4211
+ Ef as changeThresholdCalldataSchema,
4200
4212
  pl as checkGasFeeBalance,
4201
- od as classHashSupportsTxV3,
4202
- Uh as collateralizedDebtGroupSchema,
4203
- jh as collateralizedDebtPositionSchema,
4204
- Lh as collateralizedDebtPositionsSchema,
4205
- bf as compiledContractClassSchema,
4206
- Sf as compiledSierraCasmSchema,
4207
- Ef as compiledSierraSchema,
4208
- Af as compressedProgramSchema,
4209
- Dh as concentratedLiquidityPositionSchema,
4210
- Hh as concentratedLiquidityPositionsSchema,
4213
+ ad as classHashSupportsTxV3,
4214
+ Vh as collateralizedDebtGroupSchema,
4215
+ Mh as collateralizedDebtPositionSchema,
4216
+ Gh as collateralizedDebtPositionsSchema,
4217
+ Af as compiledContractClassSchema,
4218
+ xf as compiledSierraCasmSchema,
4219
+ vf as compiledSierraSchema,
4220
+ Tf as compressedProgramSchema,
4221
+ qh as concentratedLiquidityPositionSchema,
4222
+ Wh as concentratedLiquidityPositionsSchema,
4211
4223
  cs as constructorCallDataSchemaC0,
4212
4224
  ls as constructorCallDataSchemaC1V1,
4213
- xf as contractEntryPointFieldsSchema,
4225
+ If as contractEntryPointFieldsSchema,
4214
4226
  Vu as convertTokenAmountToCurrencyValue,
4215
4227
  Mu as convertTokenUnitAmountWithDecimals,
4228
+ Bf as createSchemaWithWarnings,
4216
4229
  Ta as dappContractSchema,
4217
4230
  va as dappLinkSchema,
4218
4231
  lu as daysBetween,
4219
4232
  pi as decodeBase58,
4220
4233
  cu as decodeBase58Array,
4221
- Vh as defiDappsProductsSchema,
4222
- Mh as defiPositionSchema,
4223
- vf as defiPositionTypeSchema,
4224
- Gh as defiProductSchema,
4225
- qh as defiProductsSchema,
4226
- Wh as denyTxV3,
4234
+ zh as defiDappsProductsSchema,
4235
+ Kh as defiPositionSchema,
4236
+ _f as defiPositionTypeSchema,
4237
+ Yh as defiProductSchema,
4238
+ Zh as defiProductsSchema,
4239
+ Xh as denyTxV3,
4227
4240
  hi as encodeBase58,
4228
4241
  iu as encodeBase58Array,
4229
4242
  Ce as ensureArray,
4230
4243
  Gu as ensureDecimals,
4231
4244
  wu as entryPointToHumanReadable,
4232
- Tf as entryPointsByTypeSchema,
4245
+ Nf as entryPointsByTypeSchema,
4233
4246
  vu as equalNft,
4234
- Ku as erc20TransferTransaction,
4235
- Yu as erc721SafeTransferFromTransaction,
4247
+ Yu as erc20TransferTransaction,
4248
+ Xu as erc721SafeTransferFromTransaction,
4236
4249
  Zu as erc721TransferFromTransaction,
4237
- If as escapeGuardianCalldataSchema,
4238
- _e as estimatedFeeToMaxFeeTotal,
4239
- nd as estimatedFeeToMaxResourceBounds,
4250
+ Cf as escapeGuardianCalldataSchema,
4251
+ Be as estimatedFeeToMaxFeeTotal,
4252
+ rd as estimatedFeeToMaxResourceBounds,
4240
4253
  Jt as estimatedFeeToTotal,
4241
- td as estimatedFeesToMaxFeeTotal,
4242
- Qu as estimatedFeesToTotal,
4243
- _f as eventAbiSchema,
4244
- Bf as eventEntrySchema,
4245
- Nf as executeOnPluginCalldataSchema,
4254
+ ed as estimatedFeesToMaxFeeTotal,
4255
+ td as estimatedFeesToTotal,
4256
+ Of as eventAbiSchema,
4257
+ kf as eventEntrySchema,
4258
+ Pf as executeOnPluginCalldataSchema,
4246
4259
  Me as feeTokenNeedsTxV3Support,
4247
- Cf as feltSchema,
4260
+ Rf as feltSchema,
4248
4261
  qn as fetchData,
4249
4262
  zt as fetcherError,
4250
4263
  Ql as findImplementationForAccount,
4251
- zh as findTransfersAndApprovals,
4252
- Yn as formatAddress,
4253
- Of as formatFullAddress,
4254
- kf as formatTruncatedAddress,
4255
- Pf as formatTruncatedSignerKey,
4256
- Rf as formatTruncatedString,
4257
- Ff as functionAbiSchema,
4258
- $f as functionAbiTypeSchema,
4264
+ Jh as findTransfersAndApprovals,
4265
+ Zn as formatAddress,
4266
+ $f as formatFullAddress,
4267
+ Ff as formatTruncatedAddress,
4268
+ Uf as formatTruncatedSignerKey,
4269
+ jf as formatTruncatedString,
4270
+ Lf as functionAbiSchema,
4271
+ Df as functionAbiTypeSchema,
4259
4272
  ui as generateAvatarImage,
4260
4273
  xa as getAccountContractAddress,
4261
4274
  Ea as getAccountDeploymentPayload,
@@ -4267,55 +4280,56 @@ export {
4267
4280
  ya as getArgentAccountWithMultiSignerClassHashes,
4268
4281
  zl as getBackendTimeNowSeconds,
4269
4282
  Ws as getBackendTimeSeconds,
4270
- Ys as getCallFromStarkName,
4283
+ Zs as getCallFromStarkName,
4271
4284
  zs as getChainIdFromNetworkId,
4272
4285
  di as getColor,
4286
+ zu as getCurrencySymbol,
4273
4287
  Na as getDapplandLinkForDapp,
4274
4288
  ru as getDapplandUrlForDapp,
4275
- bd as getDisplayWarnAndReasonForTransactionReview,
4289
+ Sd as getDisplayWarnAndReasonForTransactionReview,
4276
4290
  ue as getERC20Transactions,
4277
4291
  Cr as getERC721Transactions,
4278
4292
  al as getEstimatedFeeFromBulkSimulation,
4279
4293
  cl as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
4280
4294
  ci as getInitials,
4281
- Yl as getLastCairo0ArgentAccountClassHash,
4295
+ Zl as getLastCairo0ArgentAccountClassHash,
4282
4296
  wa as getLatestArgentAccountClassHash,
4283
- Zl as getLatestArgentMultisigClassHash,
4297
+ Yl as getLatestArgentMultisigClassHash,
4284
4298
  Jl as getLatestLedgerAccountClassHash,
4285
4299
  Xl as getLedgerAccountClassHashes,
4286
- Kh as getMessageFromTrpcError,
4287
- Sd as getNFTTransferActivity,
4300
+ Qh as getMessageFromTrpcError,
4301
+ Ed as getNFTTransferActivity,
4288
4302
  au as getNetworkAccountImageUrl,
4289
4303
  xu as getNftPicture,
4290
4304
  il as getPayloadFromTransaction,
4291
- Zh as getPrettyRpcError,
4305
+ tp as getPrettyRpcError,
4292
4306
  hl as getReviewForTransactions,
4293
- Ze as getSignerForMultiSigner,
4294
- ad as getSimulationTxVersionFromFeeToken,
4295
- Zs as getStarknetIdContractAddressFromNetworkId,
4296
- Zc as getTokenBalance,
4307
+ Ye as getSignerForMultiSigner,
4308
+ id as getSimulationTxVersionFromFeeToken,
4309
+ Ys as getStarknetIdContractAddressFromNetworkId,
4310
+ Yc as getTokenBalance,
4297
4311
  Du as getTokens,
4298
4312
  Lu as getTokensBalances,
4299
- Ed as getTransactionReviewActivityOfType,
4300
- Ad as getTransactionReviewHasSwap,
4313
+ Ad as getTransactionReviewActivityOfType,
4314
+ xd as getTransactionReviewHasSwap,
4301
4315
  fl as getTransactionReviewSwap,
4302
- xd as getTransactionReviewWithType,
4316
+ vd as getTransactionReviewWithType,
4303
4317
  Nn as getTxVersionFromFeeToken,
4304
- id as getTxVersionFromFeeTokenForDeclareContract,
4318
+ cd as getTxVersionFromFeeTokenForDeclareContract,
4305
4319
  Kc as getUAParserResult,
4306
4320
  Ut as getUint256CalldataFromBN,
4307
4321
  ol as getWatermarkedMaxFeeTotal,
4308
- fd as hasERC20Transactions,
4322
+ hd as hasERC20Transactions,
4309
4323
  dl as hasERC721Transactions,
4310
- hd as hasIncomingERC20Transactions,
4311
- pd as hasOutgoingERC20Transactions,
4324
+ pd as hasIncomingERC20Transactions,
4325
+ md as hasOutgoingERC20Transactions,
4312
4326
  kt as hexSchema,
4313
- Uf as hexSchemaBase,
4327
+ Hf as hexSchemaBase,
4314
4328
  ai as id,
4315
4329
  Ke as implementationSchema,
4316
- jf as includesAddress,
4317
- Yh as inputAmountSchema,
4318
- Fl as isAccountV4,
4330
+ Vf as includesAddress,
4331
+ ep as inputAmountSchema,
4332
+ $l as isAccountV4,
4319
4333
  Rl as isAccountV5,
4320
4334
  Pl as isAccountV6,
4321
4335
  rs as isAddress,
@@ -4326,50 +4340,50 @@ export {
4326
4340
  Ul as isArgentNetworkId,
4327
4341
  Pu as isBraveBrowser,
4328
4342
  le as isBrowser,
4329
- Fu as isChromeBrowser,
4343
+ $u as isChromeBrowser,
4330
4344
  du as isContractDeployed,
4331
4345
  Uu as isEdgeBrowser,
4332
4346
  nt as isEqualAddress,
4333
- Lf as isEqualArgentName,
4347
+ Mf as isEqualArgentName,
4334
4348
  Sa as isEqualImplementation,
4335
- Df as isEqualStarknetDomainName,
4336
- Hf as isEqualStarknetId,
4349
+ Gf as isEqualStarknetDomainName,
4350
+ qf as isEqualStarknetId,
4337
4351
  sl as isFRI,
4338
4352
  uu as isFeatureEnabled,
4339
4353
  Ru as isFirefoxBrowser,
4340
- Y as isNumeric,
4341
- $u as isSafariBrowser,
4342
- Vf as isStarknetDomainName,
4354
+ Z as isNumeric,
4355
+ Fu as isSafariBrowser,
4356
+ Wf as isStarknetDomainName,
4343
4357
  ss as isStarknetId,
4344
4358
  Xc as isUnlimitedAmount,
4345
4359
  ns as isValidAddress,
4346
- Xh as isValidInputAmount,
4347
- Br as isWEI,
4360
+ np as isValidInputAmount,
4361
+ _r as isWEI,
4348
4362
  es as isZeroAddress,
4349
- _a as knownDappSchema,
4350
- Ba as knownDappsSchema,
4351
- Mf as legacyContractClassSchema,
4352
- Gf as legacyEventSchema,
4353
- qf as looseCalldataSchema,
4354
- Jh as modifySnjsFeeOverhead,
4355
- Wf as multiTypeSchema,
4356
- Xu as multiplyBigIntByFloat,
4363
+ Ba as knownDappSchema,
4364
+ _a as knownDappsSchema,
4365
+ zf as legacyContractClassSchema,
4366
+ Kf as legacyEventSchema,
4367
+ Yf as looseCalldataSchema,
4368
+ rp as modifySnjsFeeOverhead,
4369
+ Zf as multiTypeSchema,
4370
+ Ju as multiplyBigIntByFloat,
4357
4371
  Oa as nameProviderResolutionSchema,
4358
4372
  ka as nameResolutionAddressSchema,
4359
4373
  Ra as nameResolutionAddressesSchema,
4360
- Zn as nameResolutionStarknetIdSchema,
4374
+ Yn as nameResolutionStarknetIdSchema,
4361
4375
  Ca as nameResolutionStarknetIdsSchema,
4362
4376
  fu as nonNullable,
4363
4377
  Rn as normalizeAddress,
4364
- zf as normalizeAddressOrDomain,
4365
- Kf as normalizeArgentName,
4366
- Zf as normalizeStarknetId,
4378
+ Xf as normalizeAddressOrDomain,
4379
+ Jf as normalizeArgentName,
4380
+ Qf as normalizeStarknetId,
4367
4381
  Wc as onchainRecoverySchema,
4368
- Qh as parseAmount,
4382
+ sp as parseAmount,
4369
4383
  wi as parseAmountValue,
4370
4384
  mu as pluralise,
4371
4385
  Ml as postData,
4372
- $l as preferencesEndpointPayload,
4386
+ Fl as preferencesEndpointPayload,
4373
4387
  Ls as preferencesSchema,
4374
4388
  mi as prettifyCurrencyNumber,
4375
4389
  qu as prettifyCurrencyValue,
@@ -4377,75 +4391,76 @@ export {
4377
4391
  Re as prettifyNumberConfig,
4378
4392
  Wu as prettifyTokenAmount,
4379
4393
  gi as prettifyTokenNumber,
4380
- tp as productGroupsSchema,
4381
- Yf as programSchema,
4394
+ op as productGroupsSchema,
4395
+ th as programSchema,
4382
4396
  Pa as providersNamesSchema,
4383
- Xf as pythonicHintsSchema,
4384
- Jf as rawArgsArraySchema,
4385
- Qf as rawArgsObjectSchema,
4386
- th as rawArgsSchema,
4397
+ eh as pythonicHintsSchema,
4398
+ nh as rawArgsArraySchema,
4399
+ rh as rawArgsObjectSchema,
4400
+ sh as rawArgsSchema,
4387
4401
  gu as readFileAsString,
4388
- _r as recoveryBaseSchema,
4402
+ Br as recoveryBaseSchema,
4389
4403
  Cu as recoveryBodySchema,
4390
4404
  Gc as recoveryStatusSchema,
4391
- eh as removeOwnersCalldataSchema,
4392
- nh as removePluginCalldataSchema,
4393
- rh as replaceSignerCalldataSchema,
4405
+ oh as removeOwnersCalldataSchema,
4406
+ ah as removePluginCalldataSchema,
4407
+ ih as replaceSignerCalldataSchema,
4408
+ ms as safeParseAndWarn,
4394
4409
  ju as seedphraseSchema,
4395
- sh as sierraContractEntryPointFieldsSchema,
4396
- oh as sierraEntryPointsByTypeSchema,
4397
- ah as sierraProgramDebugInfoSchema,
4410
+ ch as sierraContractEntryPointFieldsSchema,
4411
+ lh as sierraEntryPointsByTypeSchema,
4412
+ uh as sierraProgramDebugInfoSchema,
4398
4413
  Ks as starkNameToCallDataDomain,
4399
- ih as starknetDomainNameSchema,
4414
+ dh as starknetDomainNameSchema,
4400
4415
  us as starknetIdSchema,
4401
4416
  Ou as startOnchainRecoveryErrorSchema,
4402
4417
  zc as startOnchainRecoveryErrorStatusSchema,
4403
4418
  Mc as startOnchainRecoverySchema,
4404
- ch as stringToBooleanSchema,
4419
+ fh as stringToBooleanSchema,
4405
4420
  fi as stripAddressZeroPadding,
4406
- lh as structAbiSchema,
4421
+ hh as structAbiSchema,
4407
4422
  Wl as swrRefetchDisabledConfig,
4408
4423
  Pt as toMax,
4409
- Ju as tokensRequireTxV3Support,
4410
- ep as transactionReviewTransactionsSchema,
4411
- np as transactionReviewWarningSchema,
4412
- gs as transferCalldataSchema,
4413
- rp as trpcErrorSchema,
4414
- sp as txVersionSchema,
4415
- uh as uint256Schema,
4416
- op as unclaimedRewardsSchema,
4424
+ Qu as tokensRequireTxV3Support,
4425
+ ap as transactionReviewTransactionsSchema,
4426
+ ip as transactionReviewWarningSchema,
4427
+ ws as transferCalldataSchema,
4428
+ cp as trpcErrorSchema,
4429
+ lp as txVersionSchema,
4430
+ ph as uint256Schema,
4431
+ up as unclaimedRewardsSchema,
4417
4432
  Ee as unitToFeeTokenAddress,
4418
4433
  Qr as urlWithQuery,
4419
- ud as useBalanceChange,
4434
+ dd as useBalanceChange,
4420
4435
  Eu as useCollection,
4421
4436
  qs as useConditionallyEnabledSWR,
4422
4437
  tu as useDebounce,
4423
4438
  eu as useDebouncedValue,
4424
- dd as useERC20Transactions,
4425
- md as useERC721Transactions,
4426
- dh as useEmitEvent,
4427
- fh as useEventEmitter,
4428
- hh as useEventEmitterContext,
4429
- ph as useEventListener,
4430
- gd as useHasERC721Transaction,
4431
- mh as useIsEventEmitterEnabled,
4432
- wd as useMaxAmountTransaction,
4439
+ fd as useERC20Transactions,
4440
+ gd as useERC721Transactions,
4441
+ mh as useEmitEvent,
4442
+ gh as useEventEmitter,
4443
+ wh as useEventEmitterContext,
4444
+ yh as useEventListener,
4445
+ wd as useHasERC721Transaction,
4446
+ bh as useIsEventEmitterEnabled,
4447
+ yd as useMaxAmountTransaction,
4433
4448
  Au as useNft,
4434
4449
  Su as useNfts,
4435
4450
  Hu as useToken,
4436
- yd as useTransactionReview,
4437
- vd as useTransactionReviewV2webFetcher,
4438
- gh as validChecksumAddressSchema,
4439
- wh as validateAddressRangeSchema,
4451
+ bd as useTransactionReview,
4452
+ Td as useTransactionReviewV2webFetcher,
4453
+ Sh as validChecksumAddressSchema,
4454
+ Eh as validateAddressRangeSchema,
4440
4455
  yu as voidify,
4441
- yh as webBaseTokenSchema,
4442
- bh as webBaseTokenWithBalanceSchema,
4443
- Sh as webTokenInfoDetailsSchema,
4444
- Eh as webTokenPriceDetailsSchema,
4445
- Ah as webTokenSchema,
4446
- xh as webTokenWithBalanceAndPriceSchema,
4447
- vh as webTokenWithBalanceSchema,
4448
- Th as webTokenWithPriceSchema,
4449
- Ih as webTokensWithBalanceAndPriceSchema,
4456
+ Ah as webBaseTokenSchema,
4457
+ xh as webBaseTokenWithBalanceSchema,
4458
+ vh as webTokenInfoDetailsSchema,
4459
+ Th as webTokenPriceDetailsSchema,
4460
+ Ih as webTokenSchema,
4461
+ Bh as webTokenWithBalanceAndPriceSchema,
4462
+ _h as webTokenWithBalanceSchema,
4463
+ Nh as webTokenWithPriceSchema,
4464
+ Ch as webTokensWithBalanceAndPriceSchema,
4450
4465
  Gl as withPolling
4451
4466
  };