@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/{bips-zBtnMbia.mjs → bips-DKbEGvGl.mjs} +9 -9
- package/dist/{bips-CP71ZN9a.js → bips-DxN0hSiY.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +210 -208
- package/dist/simulation.js +1 -1
- package/dist/simulation.mjs +13 -13
- package/dist/swap.js +1 -1
- package/dist/swap.mjs +2 -2
- package/dist/tokens/service/implementation.d.ts +192 -12
- package/dist/tokens/service/types/backend.model.d.ts +7562 -555
- package/dist/tokens/service/types/defiPosition.model.d.ts +11 -11
- package/dist/tokens/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/{transactionVersion-CaRQ5Df4.js → transactionVersion-C7p_qk9x.js} +1 -1
- package/dist/{transactionVersion-CACUj2ch.mjs → transactionVersion-Cjoucwcx.mjs} +7 -7
- package/dist/utils/schemas.d.ts +8 -0
- package/dist/webToken.model-5HUiR8ER.js +1 -0
- package/dist/{webToken.model-Cl4dvcmj.mjs → webToken.model-CpudLBp0.mjs} +646 -614
- package/package.json +1 -1
- package/dist/webToken.model-Dsd8Rd3e.js +0 -1
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
|
|
3
|
-
import { x as Cd } from "./bips-
|
|
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-
|
|
5
|
-
import {
|
|
6
|
-
import { S as
|
|
7
|
-
import { G as
|
|
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
|
|
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:
|
|
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,
|
|
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,
|
|
478
|
+
var e = eo.call(t, _t), n = t[_t];
|
|
479
479
|
try {
|
|
480
|
-
t[
|
|
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[
|
|
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
|
|
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
|
|
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 =
|
|
541
|
-
return
|
|
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(
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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 =
|
|
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 !
|
|
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
|
|
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
|
|
1483
|
-
function
|
|
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)), !
|
|
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 =
|
|
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,
|
|
2248
|
-
g === 0 ? d = d.add(n(x, o[w])) : l = l.add(n(
|
|
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:
|
|
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:
|
|
2478
|
-
let
|
|
2479
|
-
return N = n.add(N, N), v = n.mul(E,
|
|
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:
|
|
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,
|
|
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(
|
|
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:
|
|
2522
|
-
for (; x > et ||
|
|
2523
|
-
x & W && (A = A.add(I)),
|
|
2524
|
-
return E && (A = A.negate()),
|
|
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:
|
|
2541
|
-
let { p: I, f: G } = this.wNAF(
|
|
2542
|
-
I = m.constTimeNegate(
|
|
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:
|
|
2545
|
-
w =
|
|
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 = (
|
|
2557
|
-
return
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
2750
|
-
if (
|
|
2749
|
+
function B(p, b, T = !0) {
|
|
2750
|
+
if (_(p))
|
|
2751
2751
|
throw new Error("first arg must be private key");
|
|
2752
|
-
if (!
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
2965
|
+
randomBytes: _c
|
|
2966
2966
|
};
|
|
2967
2967
|
}
|
|
2968
2968
|
const In = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"), xr = 252;
|
|
2969
|
-
function
|
|
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:
|
|
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(
|
|
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:
|
|
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
|
|
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 =
|
|
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),
|
|
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:
|
|
3105
|
+
activeRecovery: Br.optional().or(f.null()).optional(),
|
|
3106
3106
|
minFees: f.record(f.number()).optional()
|
|
3107
3107
|
}), Wc = f.object({
|
|
3108
|
-
recovery:
|
|
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
|
|
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 ?
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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 ?
|
|
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(
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
4050
|
-
return (
|
|
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({}),
|
|
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
|
-
|
|
4119
|
+
kh as ESTIMATE_ERROR_MESSAGES,
|
|
4122
4120
|
$n as ETH_TOKEN_ADDRESS,
|
|
4123
4121
|
Ss as EstimateError,
|
|
4124
4122
|
Pd as EventEmitterProvider,
|
|
4125
|
-
|
|
4126
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4181
|
+
of as apiTokenInfoSchema,
|
|
4182
4182
|
fs as apiTokensInfoResponseSchema,
|
|
4183
4183
|
ud as apiTransactionReviewActivityType,
|
|
4184
|
-
|
|
4185
|
-
|
|
4184
|
+
af as apiUnclaimedRewardsSchema,
|
|
4185
|
+
cf as apiWalletResponseSchema,
|
|
4186
4186
|
Hs as argentBackendNetworkIdSchema,
|
|
4187
4187
|
Es as argentMaxFee,
|
|
4188
|
-
|
|
4188
|
+
lf as argentNameSchema,
|
|
4189
4189
|
Ds as argentNetworkIdSchema,
|
|
4190
4190
|
Ll as bigDecimal,
|
|
4191
|
-
|
|
4192
|
-
|
|
4191
|
+
uf as bigNumberSchema,
|
|
4192
|
+
df as bigNumberishSchema,
|
|
4193
4193
|
Cd as bipsToPercent,
|
|
4194
|
-
|
|
4194
|
+
ff as booleanToStringSchema,
|
|
4195
4195
|
ml as buildAccountDeployTransaction,
|
|
4196
4196
|
Aa as buildConstructorCalldata,
|
|
4197
4197
|
nd as buildDummyTx,
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
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
|
-
|
|
4206
|
+
yf as callDetailsSchema,
|
|
4207
4207
|
ts as callSchema,
|
|
4208
|
-
|
|
4208
|
+
bf as calldataSchema,
|
|
4209
4209
|
At as castFeeEstimation,
|
|
4210
|
-
|
|
4211
|
-
|
|
4210
|
+
Sf as changeGuardianCalldataSchema,
|
|
4211
|
+
Ef as changeThresholdCalldataSchema,
|
|
4212
4212
|
pl as checkGasFeeBalance,
|
|
4213
4213
|
ad as classHashSupportsTxV3,
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4250
|
-
|
|
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
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4256
|
+
Of as eventAbiSchema,
|
|
4257
|
+
kf as eventEntrySchema,
|
|
4258
|
+
Pf as executeOnPluginCalldataSchema,
|
|
4258
4259
|
Me as feeTokenNeedsTxV3Support,
|
|
4259
|
-
|
|
4260
|
+
Rf as feltSchema,
|
|
4260
4261
|
qn as fetchData,
|
|
4261
4262
|
zt as fetcherError,
|
|
4262
4263
|
Ql as findImplementationForAccount,
|
|
4263
|
-
|
|
4264
|
+
Jh as findTransfersAndApprovals,
|
|
4264
4265
|
Zn as formatAddress,
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4327
|
+
Hf as hexSchemaBase,
|
|
4327
4328
|
ai as id,
|
|
4328
4329
|
Ke as implementationSchema,
|
|
4329
|
-
|
|
4330
|
-
|
|
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
|
-
|
|
4347
|
+
Mf as isEqualArgentName,
|
|
4347
4348
|
Sa as isEqualImplementation,
|
|
4348
|
-
|
|
4349
|
-
|
|
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
|
-
|
|
4356
|
+
Wf as isStarknetDomainName,
|
|
4356
4357
|
ss as isStarknetId,
|
|
4357
4358
|
Xc as isUnlimitedAmount,
|
|
4358
4359
|
ns as isValidAddress,
|
|
4359
|
-
|
|
4360
|
-
|
|
4360
|
+
np as isValidInputAmount,
|
|
4361
|
+
_r as isWEI,
|
|
4361
4362
|
es as isZeroAddress,
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
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
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4378
|
+
Xf as normalizeAddressOrDomain,
|
|
4379
|
+
Jf as normalizeArgentName,
|
|
4380
|
+
Qf as normalizeStarknetId,
|
|
4380
4381
|
Wc as onchainRecoverySchema,
|
|
4381
|
-
|
|
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
|
-
|
|
4394
|
-
|
|
4394
|
+
op as productGroupsSchema,
|
|
4395
|
+
th as programSchema,
|
|
4395
4396
|
Pa as providersNamesSchema,
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4397
|
+
eh as pythonicHintsSchema,
|
|
4398
|
+
nh as rawArgsArraySchema,
|
|
4399
|
+
rh as rawArgsObjectSchema,
|
|
4400
|
+
sh as rawArgsSchema,
|
|
4400
4401
|
gu as readFileAsString,
|
|
4401
|
-
|
|
4402
|
+
Br as recoveryBaseSchema,
|
|
4402
4403
|
Cu as recoveryBodySchema,
|
|
4403
4404
|
Gc as recoveryStatusSchema,
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4405
|
+
oh as removeOwnersCalldataSchema,
|
|
4406
|
+
ah as removePluginCalldataSchema,
|
|
4407
|
+
ih as replaceSignerCalldataSchema,
|
|
4408
|
+
ms as safeParseAndWarn,
|
|
4407
4409
|
ju as seedphraseSchema,
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4410
|
+
ch as sierraContractEntryPointFieldsSchema,
|
|
4411
|
+
lh as sierraEntryPointsByTypeSchema,
|
|
4412
|
+
uh as sierraProgramDebugInfoSchema,
|
|
4411
4413
|
Ks as starkNameToCallDataDomain,
|
|
4412
|
-
|
|
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
|
-
|
|
4419
|
+
fh as stringToBooleanSchema,
|
|
4418
4420
|
fi as stripAddressZeroPadding,
|
|
4419
|
-
|
|
4421
|
+
hh as structAbiSchema,
|
|
4420
4422
|
Wl as swrRefetchDisabledConfig,
|
|
4421
4423
|
Pt as toMax,
|
|
4422
4424
|
Qu as tokensRequireTxV3Support,
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
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
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4441
|
+
mh as useEmitEvent,
|
|
4442
|
+
gh as useEventEmitter,
|
|
4443
|
+
wh as useEventEmitterContext,
|
|
4444
|
+
yh as useEventListener,
|
|
4443
4445
|
wd as useHasERC721Transaction,
|
|
4444
|
-
|
|
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
|
-
|
|
4452
|
-
|
|
4453
|
+
Sh as validChecksumAddressSchema,
|
|
4454
|
+
Eh as validateAddressRangeSchema,
|
|
4453
4455
|
yu as voidify,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
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
|
};
|