@argent/x-shared 1.36.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,13 +1,13 @@
1
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 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 Yr, u as Zr, v as Xr, D as Jr, w as Qr } from "./bips-zBtnMbia.mjs";
3
- import { x as Cd } 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 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 Ce } from "./webToken.model-Cl4dvcmj.mjs";
5
- import { a7 as kd, bg as Pd, aX as Rd, b3 as $d, aL as Fd, aP as Ud, _ as jd, $ as Ld, W as Dd, V as Hd, O as Vd, J as Md, K as Gd, L as qd, aj as Wd, ae as zd, af as Kd, ac as Yd, ad as Zd, ah as Xd, ag as Jd, ai as Qd, ab as tf, aa as ef, a9 as nf, a8 as rf, ak as sf, a4 as of, a0 as af, av as cf, az as lf, ax as uf, aS as df, b5 as ff, b0 as hf, bb as pf, a3 as mf, aH as gf, aB as wf, aJ as yf, aO as bf, bd as Sf, bc as Ef, b9 as Af, aV as xf, aT as vf, al as Tf, aU as If, aK as _f, b2 as Bf, a_ as Nf, aR as Cf, aI as Of, Q as kf, P as Pf, S as Rf, T as $f, aZ as Ff, aY as Uf, aw as jf, R as Lf, a1 as Df, Y as Hf, a5 as Vf, X as Mf, b4 as Gf, a$ as qf, aG as Wf, aD as zf, Z as Kf, a2 as Yf, a6 as Zf, aW as Xf, ba as Jf, aC as Qf, aE as th, aF as eh, aM as nh, aQ as rh, aN as sh, b7 as oh, b8 as ah, b6 as ih, U as ch, ay as lh, b1 as uh, aA as dh, bi as fh, bh as hh, be as ph, bj as mh, bf as gh, G as wh, I as yh, am as bh, an as Sh, au as Eh, at as Ah, ao as xh, ar as vh, ap as Th, aq as Ih, as as _h } from "./webToken.model-Cl4dvcmj.mjs";
6
- import { S as ws, r as ys, T 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 _t } from "./transactionVersion-CACUj2ch.mjs";
7
- import { G as Nh, I as Ch, F as Oh, j as kh, d as Ph, g as Rh, e as $h, h as Fh, w as Uh, m as jh, n as Lh, o as Dh, k as Hh, l as Vh, v as Mh, p as Gh, t as qh, u as Wh, N as zh, J as Kh, C as Yh, K as Zh, z as Xh, A as Jh, D as Qh, y as tp, q as ep, H as np, L as rp, B as sp, M as op, x as ap } from "./transactionVersion-CACUj2ch.mjs";
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
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
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 _s, upperFirst as Bs, lowerCase as Hn, isUndefined as Ns, isEmpty as nn, isArray as Cs } from "lodash-es";
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";
@@ -89,7 +89,7 @@ const Ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
89
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,
@@ -473,16 +473,16 @@ 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")(), Yt = ne.Symbol, Wn = Object.prototype, eo = Wn.hasOwnProperty, no = Wn.toString, Bt = Yt ? Yt.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) {
@@ -527,18 +527,18 @@ 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
543
  var Ft = Pe(Object, "create");
544
544
  function No() {
@@ -825,7 +825,7 @@ 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
  };
@@ -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;
@@ -1207,7 +1207,7 @@ 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]+)?)$/;
@@ -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
  }
@@ -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;
@@ -1492,7 +1492,7 @@ function ir(t) {
1492
1492
  return new Uint8Array(new TextEncoder().encode(t));
1493
1493
  }
1494
1494
  function $e(t) {
1495
- if (typeof t == "string" && (t = ir(t)), !Bi(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
  }
@@ -1545,7 +1545,7 @@ class Fe extends cr {
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;
@@ -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
  }
@@ -3034,7 +3034,7 @@ function $c(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) {
3037
+ function _n(t, e, n) {
3038
3038
  let r = $c(e);
3039
3039
  for (let s = 0; s < 252; s++) {
3040
3040
  const o = n[s];
@@ -3046,7 +3046,7 @@ function Bn(t, e, n) {
3046
3046
  }
3047
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;
@@ -3412,7 +3412,7 @@ const ju = f.string().refine((t) => Rs(t, $s), "Invalid seedphrase"), Ve = [
3412
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
  });
@@ -3435,7 +3435,7 @@ const ju = f.string().refine((t) => Rs(t, $s), "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(" ");
@@ -3453,7 +3453,7 @@ function zu(t) {
3453
3453
  CNY: "CN¥"
3454
3454
  }[t.toUpperCase()] || "$";
3455
3455
  }
3456
- var Qc = ys, tl = Qc;
3456
+ var Qc = bs, tl = Qc;
3457
3457
  function el(t, e) {
3458
3458
  function n(r, s) {
3459
3459
  var o = e || {}, a;
@@ -3540,9 +3540,7 @@ class Ku {
3540
3540
  }
3541
3541
  async fetchDefiDecomposition(e) {
3542
3542
  const n = P(this.apiBase, this.TOKENS_DEFI_DECOMPOSITION_URL, e, "?chain=starknet"), r = await this.httpService.get(n);
3543
- if (!ms.safeParse(r).success)
3544
- throw new bs({ code: "TOKEN_DEFI_DECOMPOSITION_PARSING_ERROR" });
3545
- 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;
3546
3544
  }
3547
3545
  }
3548
3546
  const Yu = (t, e, n, r) => ({
@@ -3572,14 +3570,14 @@ const Yu = (t, e, n, r) => ({
3572
3570
  data_len: "0"
3573
3571
  })
3574
3572
  });
3575
- function Br(t) {
3573
+ function _r(t) {
3576
3574
  return ke(t.unit) === "WEI";
3577
3575
  }
3578
3576
  function sl(t) {
3579
3577
  return ke(t.unit) === "FRI";
3580
3578
  }
3581
3579
  function At(t, e) {
3582
- return Br(t) ? {
3580
+ return _r(t) ? {
3583
3581
  ...t,
3584
3582
  maxFee: e(t.maxFee),
3585
3583
  overallFee: e(t.overallFee),
@@ -3595,7 +3593,7 @@ function At(t, e) {
3595
3593
  };
3596
3594
  }
3597
3595
  function Pt(t) {
3598
- return Br(t) ? {
3596
+ return _r(t) ? {
3599
3597
  maxFee: t.maxFee
3600
3598
  } : {
3601
3599
  amount: t.maxAmount,
@@ -3632,7 +3630,7 @@ const Qu = [Oe], Nr = (t, e = ll) => {
3632
3630
  }, ol = (t) => {
3633
3631
  if (t.max)
3634
3632
  return "maxFee" in t.max ? t.max.maxFee : Jt(t.max);
3635
- }, _e = (t) => {
3633
+ }, Be = (t) => {
3636
3634
  const e = ol(t);
3637
3635
  return e || Jt(Nr(t));
3638
3636
  }, td = (t) => {
@@ -3643,13 +3641,13 @@ const Qu = [Oe], Nr = (t, e = ll) => {
3643
3641
  }, ed = (t) => {
3644
3642
  if (t.deployment && !nt(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
3645
3643
  throw Error("Cannot calculate estimated fees for different tokens");
3646
- 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);
3647
3645
  return e + n;
3648
3646
  }, nd = (t, e) => [
3649
3647
  {
3650
3648
  contractAddress: t,
3651
3649
  entrypoint: "transfer",
3652
- calldata: mt.compile(gs.parse({
3650
+ calldata: mt.compile(ws.parse({
3653
3651
  // We are using a dummy address (ETH here) as recipient to estimate the fee given we don't have a receipient yet
3654
3652
  recipient: e,
3655
3653
  // We are using the smallest possible amount to make sure this doesn't throw an error
@@ -3748,7 +3746,7 @@ const Qu = [Oe], Nr = (t, e = ll) => {
3748
3746
  } : void 0
3749
3747
  };
3750
3748
  }, rd = (t) => {
3751
- const e = Nr(t), n = _e(t);
3749
+ const e = Nr(t), n = Be(t);
3752
3750
  return {
3753
3751
  // for v1 transactions
3754
3752
  maxFee: n,
@@ -3861,7 +3859,7 @@ class ld {
3861
3859
  try {
3862
3860
  const a = r ? this.getCallsFromTx(e[1]) : this.getCallsFromTx(e[0]);
3863
3861
  if (!a)
3864
- throw new _t({
3862
+ throw new Bt({
3865
3863
  code: "NO_CALLS_FOUND"
3866
3864
  });
3867
3865
  const i = await this.fetchFeesOnchain({
@@ -3877,7 +3875,7 @@ class ld {
3877
3875
  isBackendDown: !0
3878
3876
  };
3879
3877
  } catch (a) {
3880
- throw console.error(a), new _t({
3878
+ throw console.error(a), new Bt({
3881
3879
  message: `${a}`,
3882
3880
  code: "SIMULATE_AND_REVIEW_FAILED"
3883
3881
  });
@@ -3916,7 +3914,7 @@ class ld {
3916
3914
  throw console.error(u), u;
3917
3915
  });
3918
3916
  if (!l.gas_consumed || !l.gas_price || !d.gas_consumed || !d.gas_price)
3919
- throw new _t({
3917
+ throw new Bt({
3920
3918
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3921
3919
  message: "Missing gas_consumed or gas_price"
3922
3920
  });
@@ -3940,7 +3938,7 @@ class ld {
3940
3938
  version: a
3941
3939
  });
3942
3940
  if (!c || !l)
3943
- throw new _t({
3941
+ throw new Bt({
3944
3942
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3945
3943
  message: "Missing gas_consumed or gas_price"
3946
3944
  });
@@ -3954,7 +3952,7 @@ class ld {
3954
3952
  }
3955
3953
  return i;
3956
3954
  } catch (a) {
3957
- throw new _t({
3955
+ throw new Bt({
3958
3956
  code: "ONCHAIN_FEE_ESTIMATION_FAILED",
3959
3957
  message: `${a}`
3960
3958
  });
@@ -4046,8 +4044,8 @@ const ud = [
4046
4044
  var y, m, S, h, g, w;
4047
4045
  let s = !1;
4048
4046
  const o = e.transactions.find((E) => {
4049
- var x, B;
4050
- 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);
4051
4049
  });
4052
4050
  if (!o || !((y = o.simulation) != null && y.summary))
4053
4051
  return s;
@@ -4100,7 +4098,7 @@ function Id(t) {
4100
4098
  }
4101
4099
  };
4102
4100
  }
4103
- const gl = Is({}), _d = ({ enabled: t, initialize: e, children: n }) => {
4101
+ const gl = Is({}), Bd = ({ enabled: t, initialize: e, children: n }) => {
4104
4102
  const [r, s] = jn(!1);
4105
4103
  return $t(() => {
4106
4104
  !r && t && e().then(() => s(!0));
@@ -4118,12 +4116,12 @@ export {
4118
4116
  Dl as CacheService,
4119
4117
  Jr as DEFAULT_TOKEN_DECIMALS,
4120
4118
  Hl as DateService,
4121
- Nh as ESTIMATE_ERROR_MESSAGES,
4119
+ kh as ESTIMATE_ERROR_MESSAGES,
4122
4120
  $n as ETH_TOKEN_ADDRESS,
4123
4121
  Ss as EstimateError,
4124
4122
  Pd as EventEmitterProvider,
4125
- Ch as EventsBySelector,
4126
- Oh as FEE_OVERHEAD,
4123
+ Ph as EventsBySelector,
4124
+ Rh as FEE_OVERHEAD,
4127
4125
  Gn as HTTPService,
4128
4126
  ze as HTTP_ERROR_MESSAGE,
4129
4127
  K as HttpError,
@@ -4133,20 +4131,20 @@ export {
4133
4131
  Jc as PRETTY_UNLIMITED,
4134
4132
  Te as RecoveryStatusEnum,
4135
4133
  su as ResolveNameService,
4136
- ws as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
4134
+ ys as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
4137
4135
  Oe as STRK_TOKEN_ADDRESS,
4138
4136
  Vl as SWRService,
4139
4137
  Kl as StarknetAddressService,
4140
4138
  Ie as StartOnchainRecoveryErrorStatusEnum,
4141
- kh as TOKEN_ERROR_MESSAGES,
4142
- Ph as TXV1_ACCOUNT_CLASS_HASH,
4143
- Rh as TXV1_MULTISIG_CLASS_HASH,
4144
- $h as TXV3_ACCOUNT_CLASS_HASH,
4145
- Fh as TXV3_MULTISIG_CLASS_HASH,
4146
- bs as TokenError,
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,
4147
4145
  Ku as TokenServiceWeb,
4148
4146
  ld as TransactionReviewServiceWeb,
4149
- _d as WebAmplitudeProvider,
4147
+ Bd as WebAmplitudeProvider,
4150
4148
  Id as WebAnalyticsServiceFactory,
4151
4149
  Rd as abiEntrySchema,
4152
4150
  $d as abiSchema,
@@ -4163,7 +4161,7 @@ export {
4163
4161
  Md as addressSchemaBase,
4164
4162
  Gd as addressSchemaLooseLength,
4165
4163
  qd as addressSchemaStrictLength,
4166
- Uh as airdropSchema,
4164
+ Hh as airdropSchema,
4167
4165
  ps as apiAccountTokenBalancesSchema,
4168
4166
  Wd as apiAirdropSchema,
4169
4167
  zd as apiCollateralizedDebtPositionSchema,
@@ -4174,100 +4172,103 @@ export {
4174
4172
  Jd as apiDefiDecompositionProducts,
4175
4173
  Qd as apiDefiDecompositionSchema,
4176
4174
  tf as apiDefiDecompositionToken,
4177
- ms as apiDefiPositionsSchema,
4175
+ gs as apiDefiPositionsSchema,
4178
4176
  ef as apiPriceDataResponseSchema,
4179
4177
  nf as apiPriceDetailsSchema,
4178
+ rf as apiStakingPositionSchema,
4179
+ sf as apiStakingPositionsSchema,
4180
4180
  hs as apiTokenInfoResponseSchema,
4181
- rf as apiTokenInfoSchema,
4181
+ of as apiTokenInfoSchema,
4182
4182
  fs as apiTokensInfoResponseSchema,
4183
4183
  ud as apiTransactionReviewActivityType,
4184
- sf as apiUnclaimedRewardsSchema,
4185
- of as apiWalletResponseSchema,
4184
+ af as apiUnclaimedRewardsSchema,
4185
+ cf as apiWalletResponseSchema,
4186
4186
  Hs as argentBackendNetworkIdSchema,
4187
4187
  Es as argentMaxFee,
4188
- af as argentNameSchema,
4188
+ lf as argentNameSchema,
4189
4189
  Ds as argentNetworkIdSchema,
4190
4190
  Ll as bigDecimal,
4191
- cf as bigNumberSchema,
4192
- lf as bigNumberishSchema,
4191
+ uf as bigNumberSchema,
4192
+ df as bigNumberishSchema,
4193
4193
  Cd as bipsToPercent,
4194
- uf as booleanToStringSchema,
4194
+ ff as booleanToStringSchema,
4195
4195
  ml as buildAccountDeployTransaction,
4196
4196
  Aa as buildConstructorCalldata,
4197
4197
  nd as buildDummyTx,
4198
- df as builtinsSchema,
4199
- ff as byteCodeSchema,
4200
- hf as cairo1EventSchema,
4201
- pf as cairoAssemblySchema,
4202
- mf as cairoVersionSchema,
4198
+ hf as builtinsSchema,
4199
+ pf as byteCodeSchema,
4200
+ mf as cairo1EventSchema,
4201
+ gf as cairoAssemblySchema,
4202
+ wf as cairoVersionSchema,
4203
4203
  ll as calculateCubeRootAdjustment,
4204
4204
  od as calculateNonLinearAdjustment,
4205
4205
  sd as calculateSqrtAdjustment,
4206
- gf as callDetailsSchema,
4206
+ yf as callDetailsSchema,
4207
4207
  ts as callSchema,
4208
- wf as calldataSchema,
4208
+ bf as calldataSchema,
4209
4209
  At as castFeeEstimation,
4210
- yf as changeGuardianCalldataSchema,
4211
- bf as changeThresholdCalldataSchema,
4210
+ Sf as changeGuardianCalldataSchema,
4211
+ Ef as changeThresholdCalldataSchema,
4212
4212
  pl as checkGasFeeBalance,
4213
4213
  ad as classHashSupportsTxV3,
4214
- jh as collateralizedDebtGroupSchema,
4215
- Lh as collateralizedDebtPositionSchema,
4216
- Dh as collateralizedDebtPositionsSchema,
4217
- Sf as compiledContractClassSchema,
4218
- Ef as compiledSierraCasmSchema,
4219
- Af as compiledSierraSchema,
4220
- xf as compressedProgramSchema,
4221
- Hh as concentratedLiquidityPositionSchema,
4222
- Vh as concentratedLiquidityPositionsSchema,
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,
4223
4223
  cs as constructorCallDataSchemaC0,
4224
4224
  ls as constructorCallDataSchemaC1V1,
4225
- vf as contractEntryPointFieldsSchema,
4225
+ If as contractEntryPointFieldsSchema,
4226
4226
  Vu as convertTokenAmountToCurrencyValue,
4227
4227
  Mu as convertTokenUnitAmountWithDecimals,
4228
+ Bf as createSchemaWithWarnings,
4228
4229
  Ta as dappContractSchema,
4229
4230
  va as dappLinkSchema,
4230
4231
  lu as daysBetween,
4231
4232
  pi as decodeBase58,
4232
4233
  cu as decodeBase58Array,
4233
- Mh as defiDappsProductsSchema,
4234
- Gh as defiPositionSchema,
4235
- Tf as defiPositionTypeSchema,
4236
- qh as defiProductSchema,
4237
- Wh as defiProductsSchema,
4238
- zh 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,
4239
4240
  hi as encodeBase58,
4240
4241
  iu as encodeBase58Array,
4241
4242
  Ce as ensureArray,
4242
4243
  Gu as ensureDecimals,
4243
4244
  wu as entryPointToHumanReadable,
4244
- If as entryPointsByTypeSchema,
4245
+ Nf as entryPointsByTypeSchema,
4245
4246
  vu as equalNft,
4246
4247
  Yu as erc20TransferTransaction,
4247
4248
  Xu as erc721SafeTransferFromTransaction,
4248
4249
  Zu as erc721TransferFromTransaction,
4249
- _f as escapeGuardianCalldataSchema,
4250
- _e as estimatedFeeToMaxFeeTotal,
4250
+ Cf as escapeGuardianCalldataSchema,
4251
+ Be as estimatedFeeToMaxFeeTotal,
4251
4252
  rd as estimatedFeeToMaxResourceBounds,
4252
4253
  Jt as estimatedFeeToTotal,
4253
4254
  ed as estimatedFeesToMaxFeeTotal,
4254
4255
  td as estimatedFeesToTotal,
4255
- Bf as eventAbiSchema,
4256
- Nf as eventEntrySchema,
4257
- Cf as executeOnPluginCalldataSchema,
4256
+ Of as eventAbiSchema,
4257
+ kf as eventEntrySchema,
4258
+ Pf as executeOnPluginCalldataSchema,
4258
4259
  Me as feeTokenNeedsTxV3Support,
4259
- Of as feltSchema,
4260
+ Rf as feltSchema,
4260
4261
  qn as fetchData,
4261
4262
  zt as fetcherError,
4262
4263
  Ql as findImplementationForAccount,
4263
- Kh as findTransfersAndApprovals,
4264
+ Jh as findTransfersAndApprovals,
4264
4265
  Zn as formatAddress,
4265
- kf as formatFullAddress,
4266
- Pf as formatTruncatedAddress,
4267
- Rf as formatTruncatedSignerKey,
4268
- $f as formatTruncatedString,
4269
- Ff as functionAbiSchema,
4270
- Uf as functionAbiTypeSchema,
4266
+ $f as formatFullAddress,
4267
+ Ff as formatTruncatedAddress,
4268
+ Uf as formatTruncatedSignerKey,
4269
+ jf as formatTruncatedString,
4270
+ Lf as functionAbiSchema,
4271
+ Df as functionAbiTypeSchema,
4271
4272
  ui as generateAvatarImage,
4272
4273
  xa as getAccountContractAddress,
4273
4274
  Ea as getAccountDeploymentPayload,
@@ -4296,12 +4297,12 @@ export {
4296
4297
  Yl as getLatestArgentMultisigClassHash,
4297
4298
  Jl as getLatestLedgerAccountClassHash,
4298
4299
  Xl as getLedgerAccountClassHashes,
4299
- Yh as getMessageFromTrpcError,
4300
+ Qh as getMessageFromTrpcError,
4300
4301
  Ed as getNFTTransferActivity,
4301
4302
  au as getNetworkAccountImageUrl,
4302
4303
  xu as getNftPicture,
4303
4304
  il as getPayloadFromTransaction,
4304
- Zh as getPrettyRpcError,
4305
+ tp as getPrettyRpcError,
4305
4306
  hl as getReviewForTransactions,
4306
4307
  Ye as getSignerForMultiSigner,
4307
4308
  id as getSimulationTxVersionFromFeeToken,
@@ -4323,11 +4324,11 @@ export {
4323
4324
  pd as hasIncomingERC20Transactions,
4324
4325
  md as hasOutgoingERC20Transactions,
4325
4326
  kt as hexSchema,
4326
- jf as hexSchemaBase,
4327
+ Hf as hexSchemaBase,
4327
4328
  ai as id,
4328
4329
  Ke as implementationSchema,
4329
- Lf as includesAddress,
4330
- Xh as inputAmountSchema,
4330
+ Vf as includesAddress,
4331
+ ep as inputAmountSchema,
4331
4332
  $l as isAccountV4,
4332
4333
  Rl as isAccountV5,
4333
4334
  Pl as isAccountV6,
@@ -4343,29 +4344,29 @@ export {
4343
4344
  du as isContractDeployed,
4344
4345
  Uu as isEdgeBrowser,
4345
4346
  nt as isEqualAddress,
4346
- Df as isEqualArgentName,
4347
+ Mf as isEqualArgentName,
4347
4348
  Sa as isEqualImplementation,
4348
- Hf as isEqualStarknetDomainName,
4349
- Vf as isEqualStarknetId,
4349
+ Gf as isEqualStarknetDomainName,
4350
+ qf as isEqualStarknetId,
4350
4351
  sl as isFRI,
4351
4352
  uu as isFeatureEnabled,
4352
4353
  Ru as isFirefoxBrowser,
4353
4354
  Z as isNumeric,
4354
4355
  Fu as isSafariBrowser,
4355
- Mf as isStarknetDomainName,
4356
+ Wf as isStarknetDomainName,
4356
4357
  ss as isStarknetId,
4357
4358
  Xc as isUnlimitedAmount,
4358
4359
  ns as isValidAddress,
4359
- Jh as isValidInputAmount,
4360
- Br as isWEI,
4360
+ np as isValidInputAmount,
4361
+ _r as isWEI,
4361
4362
  es as isZeroAddress,
4362
- _a as knownDappSchema,
4363
- Ba as knownDappsSchema,
4364
- Gf as legacyContractClassSchema,
4365
- qf as legacyEventSchema,
4366
- Wf as looseCalldataSchema,
4367
- Qh as modifySnjsFeeOverhead,
4368
- zf as multiTypeSchema,
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,
4369
4370
  Ju as multiplyBigIntByFloat,
4370
4371
  Oa as nameProviderResolutionSchema,
4371
4372
  ka as nameResolutionAddressSchema,
@@ -4374,11 +4375,11 @@ export {
4374
4375
  Ca as nameResolutionStarknetIdsSchema,
4375
4376
  fu as nonNullable,
4376
4377
  Rn as normalizeAddress,
4377
- Kf as normalizeAddressOrDomain,
4378
- Yf as normalizeArgentName,
4379
- Zf as normalizeStarknetId,
4378
+ Xf as normalizeAddressOrDomain,
4379
+ Jf as normalizeArgentName,
4380
+ Qf as normalizeStarknetId,
4380
4381
  Wc as onchainRecoverySchema,
4381
- tp as parseAmount,
4382
+ sp as parseAmount,
4382
4383
  wi as parseAmountValue,
4383
4384
  mu as pluralise,
4384
4385
  Ml as postData,
@@ -4390,43 +4391,44 @@ export {
4390
4391
  Re as prettifyNumberConfig,
4391
4392
  Wu as prettifyTokenAmount,
4392
4393
  gi as prettifyTokenNumber,
4393
- ep as productGroupsSchema,
4394
- Xf as programSchema,
4394
+ op as productGroupsSchema,
4395
+ th as programSchema,
4395
4396
  Pa as providersNamesSchema,
4396
- Jf as pythonicHintsSchema,
4397
- Qf as rawArgsArraySchema,
4398
- th as rawArgsObjectSchema,
4399
- eh as rawArgsSchema,
4397
+ eh as pythonicHintsSchema,
4398
+ nh as rawArgsArraySchema,
4399
+ rh as rawArgsObjectSchema,
4400
+ sh as rawArgsSchema,
4400
4401
  gu as readFileAsString,
4401
- _r as recoveryBaseSchema,
4402
+ Br as recoveryBaseSchema,
4402
4403
  Cu as recoveryBodySchema,
4403
4404
  Gc as recoveryStatusSchema,
4404
- nh as removeOwnersCalldataSchema,
4405
- rh as removePluginCalldataSchema,
4406
- sh as replaceSignerCalldataSchema,
4405
+ oh as removeOwnersCalldataSchema,
4406
+ ah as removePluginCalldataSchema,
4407
+ ih as replaceSignerCalldataSchema,
4408
+ ms as safeParseAndWarn,
4407
4409
  ju as seedphraseSchema,
4408
- oh as sierraContractEntryPointFieldsSchema,
4409
- ah as sierraEntryPointsByTypeSchema,
4410
- ih as sierraProgramDebugInfoSchema,
4410
+ ch as sierraContractEntryPointFieldsSchema,
4411
+ lh as sierraEntryPointsByTypeSchema,
4412
+ uh as sierraProgramDebugInfoSchema,
4411
4413
  Ks as starkNameToCallDataDomain,
4412
- ch as starknetDomainNameSchema,
4414
+ dh as starknetDomainNameSchema,
4413
4415
  us as starknetIdSchema,
4414
4416
  Ou as startOnchainRecoveryErrorSchema,
4415
4417
  zc as startOnchainRecoveryErrorStatusSchema,
4416
4418
  Mc as startOnchainRecoverySchema,
4417
- lh as stringToBooleanSchema,
4419
+ fh as stringToBooleanSchema,
4418
4420
  fi as stripAddressZeroPadding,
4419
- uh as structAbiSchema,
4421
+ hh as structAbiSchema,
4420
4422
  Wl as swrRefetchDisabledConfig,
4421
4423
  Pt as toMax,
4422
4424
  Qu as tokensRequireTxV3Support,
4423
- np as transactionReviewTransactionsSchema,
4424
- rp as transactionReviewWarningSchema,
4425
- gs as transferCalldataSchema,
4426
- sp as trpcErrorSchema,
4427
- op as txVersionSchema,
4428
- dh as uint256Schema,
4429
- ap as unclaimedRewardsSchema,
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,
4430
4432
  Ee as unitToFeeTokenAddress,
4431
4433
  Qr as urlWithQuery,
4432
4434
  dd as useBalanceChange,
@@ -4436,29 +4438,29 @@ export {
4436
4438
  eu as useDebouncedValue,
4437
4439
  fd as useERC20Transactions,
4438
4440
  gd as useERC721Transactions,
4439
- fh as useEmitEvent,
4440
- hh as useEventEmitter,
4441
- ph as useEventEmitterContext,
4442
- mh as useEventListener,
4441
+ mh as useEmitEvent,
4442
+ gh as useEventEmitter,
4443
+ wh as useEventEmitterContext,
4444
+ yh as useEventListener,
4443
4445
  wd as useHasERC721Transaction,
4444
- gh as useIsEventEmitterEnabled,
4446
+ bh as useIsEventEmitterEnabled,
4445
4447
  yd as useMaxAmountTransaction,
4446
4448
  Au as useNft,
4447
4449
  Su as useNfts,
4448
4450
  Hu as useToken,
4449
4451
  bd as useTransactionReview,
4450
4452
  Td as useTransactionReviewV2webFetcher,
4451
- wh as validChecksumAddressSchema,
4452
- yh as validateAddressRangeSchema,
4453
+ Sh as validChecksumAddressSchema,
4454
+ Eh as validateAddressRangeSchema,
4453
4455
  yu as voidify,
4454
- bh as webBaseTokenSchema,
4455
- Sh as webBaseTokenWithBalanceSchema,
4456
- Eh as webTokenInfoDetailsSchema,
4457
- Ah as webTokenPriceDetailsSchema,
4458
- xh as webTokenSchema,
4459
- vh as webTokenWithBalanceAndPriceSchema,
4460
- Th as webTokenWithBalanceSchema,
4461
- Ih as webTokenWithPriceSchema,
4462
- _h 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,
4463
4465
  Gl as withPolling
4464
4466
  };