@argent/x-shared 1.31.0 → 1.32.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/features/simulation/activity/schema.d.ts +52 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +504 -472
- package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +2 -2
- package/dist/onchainRecovery/OnchainRecoveryService.d.ts +25 -3
- package/dist/onchainRecovery/schema.d.ts +25 -7
- package/dist/simulation.js +1 -1
- package/dist/simulation.mjs +2 -2
- package/dist/{transactionVersion-DpP30aO1.mjs → transactionVersion-ByCNdhj1.mjs} +4 -1
- package/dist/{transactionVersion-CnOPxZEg.js → transactionVersion-IV8urBdT.js} +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import F, { z as
|
|
2
|
-
import { p as vt, H as K, a as Je, u as R, N as Ln, c as Lr, C as Dn, A as Et, i as Dr, b as Hr, n as Hn, d as Vr, e as Mr, f as Gr, g as zr, s as Q, h as nt, j as Qe, k as qr, S as Wr, l as tn, M as en, m as Kr, o as Zr, q as Vn, r as Yr, t as se, B as nn, v as oe, w as Rt, x as Xr, y as Jr, z as Qr, D as ts, E as es, F as ns, T as rs, G as ke, I as Mn, J as ss, K as ye, L as os, O as as, P as is, Q as cs, R as Nt } from "./transactionVersion-
|
|
3
|
-
import { am as
|
|
1
|
+
import F, { z as h } from "zod";
|
|
2
|
+
import { p as vt, H as K, a as Je, u as R, N as Ln, c as Lr, C as Dn, A as Et, i as Dr, b as Hr, n as Hn, d as Vr, e as Mr, f as Gr, g as zr, s as Q, h as nt, j as Qe, k as qr, S as Wr, l as tn, M as en, m as Kr, o as Zr, q as Vn, r as Yr, t as se, B as nn, v as oe, w as Rt, x as Xr, y as Jr, z as Qr, D as ts, E as es, F as ns, T as rs, G as ke, I as Mn, J as ss, K as ye, L as os, O as as, P as is, Q as cs, R as Nt } from "./transactionVersion-ByCNdhj1.mjs";
|
|
3
|
+
import { am as yd, aV as bd, bN as Sd, aX as Ed, aT as Ad, an as xd, af as vd, ah as Id, ag as Td, ai as Bd, bs as _d, bA as Nd, bg as Cd, bk as Od, a9 as kd, aa as Pd, a5 as Rd, a4 as $d, Z as Fd, W as Ud, X as jd, Y as Ld, aM as Dd, az as Hd, au as Vd, av as Md, as as Gd, at as zd, ax as qd, aw as Wd, ay as Kd, ar as Zd, aq as Yd, ap as Xd, ao as Jd, aA as Qd, aj as tf, ab as ef, b1 as nf, b5 as rf, b3 as sf, bn as of, bC as af, bx as cf, bI as lf, ae as uf, bc as df, b7 as ff, be as hf, bj as pf, aD as mf, aE as gf, aF as wf, bK as yf, bJ as bf, bG as Sf, bq as Ef, aB as Af, aC as xf, bo as vf, aK as If, aG as Tf, aL as Bf, aI as _f, aJ as Nf, b0 as Cf, bp as Of, bf as kf, bz as Pf, bv as Rf, bm as $f, bd as Ff, aY as Uf, $ as jf, _ as Lf, a1 as Df, a2 as Hf, bu as Vf, bt as Mf, aS as Gf, aZ as zf, b2 as qf, a0 as Wf, aP as Kf, ac as Zf, a7 as Yf, ak as Xf, a6 as Jf, aQ as Qf, bB as th, bw as eh, aU as nh, b9 as rh, a8 as sh, ad as oh, al as ah, aO as ih, aH as ch, br as lh, bH as uh, b8 as dh, ba as fh, bb as hh, bh as ph, bl as mh, bi as gh, bE as wh, bF as yh, bD as bh, a3 as Sh, b4 as Eh, by as Ah, aW as xh, a_ as vh, aR as Ih, a$ as Th, b6 as Bh, aN as _h, bP as Nh, bO as Ch, bL as Oh, bQ as kh, bM as Ph, U as Rh, V as $h } from "./transactionVersion-ByCNdhj1.mjs";
|
|
4
4
|
import { constants as Z, starknetId as Gn, CallData as gt, CairoOption as rn, CairoOptionVariant as sn, hash as zn, num as O, encode as dt, uint256 as Dt, ec as on, isSierra as ls, TransactionType as an } from "starknet";
|
|
5
5
|
import { useEffect as Yt, useRef as cn, useState as us, useMemo as It, useCallback as qn } from "react";
|
|
6
6
|
import { isFunction as zt, isString as Wn, upperCase as Pe, isNil as ds, upperFirst as fs, lowerCase as Kn, isUndefined as hs, isEmpty as ln, isArray as ps } from "lodash-es";
|
|
@@ -10,64 +10,64 @@ import { UAParser as gs } from "ua-parser-js";
|
|
|
10
10
|
import { validateMnemonic as ws } from "@scure/bip39";
|
|
11
11
|
import { wordlist as ys } from "@scure/bip39/wordlists/english";
|
|
12
12
|
import bs from "object-hash";
|
|
13
|
-
const Ss =
|
|
14
|
-
name:
|
|
15
|
-
address:
|
|
16
|
-
ownerAddress:
|
|
17
|
-
chain:
|
|
18
|
-
deploymentStatus:
|
|
13
|
+
const Ss = h.object({
|
|
14
|
+
name: h.string().optional(),
|
|
15
|
+
address: h.string(),
|
|
16
|
+
ownerAddress: h.string(),
|
|
17
|
+
chain: h.enum(["ethereum", "zksync", "zksync2", "starknet"]),
|
|
18
|
+
deploymentStatus: h.enum([
|
|
19
19
|
"notDeployed",
|
|
20
20
|
"deploying",
|
|
21
21
|
"deployed",
|
|
22
22
|
"deployError"
|
|
23
23
|
]),
|
|
24
|
-
application:
|
|
25
|
-
guardianAddresses:
|
|
26
|
-
enabledGuardianAddresses:
|
|
27
|
-
implClassHash:
|
|
28
|
-
proxyClassHash:
|
|
29
|
-
salt:
|
|
30
|
-
created:
|
|
31
|
-
contractVersion:
|
|
32
|
-
contractName:
|
|
33
|
-
version:
|
|
34
|
-
owner:
|
|
35
|
-
guid:
|
|
36
|
-
signerType:
|
|
24
|
+
application: h.enum(["mobile", "webwallet", "argentx"]),
|
|
25
|
+
guardianAddresses: h.array(h.string()).optional(),
|
|
26
|
+
enabledGuardianAddresses: h.array(h.string()).optional(),
|
|
27
|
+
implClassHash: h.string().optional(),
|
|
28
|
+
proxyClassHash: h.string().optional(),
|
|
29
|
+
salt: h.string().optional(),
|
|
30
|
+
created: h.string().optional(),
|
|
31
|
+
contractVersion: h.string().optional(),
|
|
32
|
+
contractName: h.string().optional(),
|
|
33
|
+
version: h.number().optional(),
|
|
34
|
+
owner: h.object({
|
|
35
|
+
guid: h.string().optional(),
|
|
36
|
+
signerType: h.enum(["StarknetKey", "EthereumKey"]).optional()
|
|
37
37
|
}).optional()
|
|
38
|
-
}),
|
|
39
|
-
address:
|
|
40
|
-
guardianAddress:
|
|
38
|
+
}), Sl = h.object({
|
|
39
|
+
address: h.string(),
|
|
40
|
+
guardianAddress: h.string().optional(),
|
|
41
41
|
account: Ss
|
|
42
|
-
}),
|
|
43
|
-
ownerAddress:
|
|
44
|
-
signature:
|
|
45
|
-
r:
|
|
46
|
-
s:
|
|
42
|
+
}), El = h.object({
|
|
43
|
+
ownerAddress: h.string(),
|
|
44
|
+
signature: h.object({
|
|
45
|
+
r: h.string(),
|
|
46
|
+
s: h.string()
|
|
47
47
|
}),
|
|
48
|
-
implClassHash:
|
|
49
|
-
name:
|
|
50
|
-
icon:
|
|
48
|
+
implClassHash: h.string().optional(),
|
|
49
|
+
name: h.string().optional(),
|
|
50
|
+
icon: h.string().optional()
|
|
51
51
|
});
|
|
52
|
-
function
|
|
52
|
+
function Al(t) {
|
|
53
53
|
return "transactionVersion" in t;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function xl(t) {
|
|
56
56
|
return "simulateTransaction" in t;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function vl(t) {
|
|
59
59
|
return !("simulateTransaction" in t);
|
|
60
60
|
}
|
|
61
|
-
const Es =
|
|
62
|
-
value:
|
|
63
|
-
platform:
|
|
64
|
-
}),
|
|
65
|
-
preferences:
|
|
66
|
-
}), As =
|
|
67
|
-
function
|
|
61
|
+
const Es = h.object({
|
|
62
|
+
value: h.string(),
|
|
63
|
+
platform: h.enum(["ios", "argentx", "android", "webwallet"]).nullable()
|
|
64
|
+
}), Il = h.object({
|
|
65
|
+
preferences: h.record(Es)
|
|
66
|
+
}), As = h.enum(["mainnet-alpha", "sepolia-alpha"]), xs = h.enum(["mainnet", "sepolia"]);
|
|
67
|
+
function Tl(t) {
|
|
68
68
|
return As.safeParse(t).success;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Bl(t) {
|
|
71
71
|
return xs.safeParse(t).success;
|
|
72
72
|
}
|
|
73
73
|
const Ht = 18;
|
|
@@ -142,9 +142,9 @@ function Ls(t, e) {
|
|
|
142
142
|
}
|
|
143
143
|
const Ds = { value: 1n, decimals: 0 };
|
|
144
144
|
function Hs(t) {
|
|
145
|
-
return
|
|
145
|
+
return h.string().refine((e) => /^-?\d+(\.\d+)?$/.test(e), { message: "Invalid number format" }).transform((e) => vt(e, t));
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
148
148
|
__proto__: null,
|
|
149
149
|
ONE: Ds,
|
|
150
150
|
abs: $e,
|
|
@@ -172,7 +172,7 @@ const Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
172
172
|
toFixedDecimals: Re,
|
|
173
173
|
toTiniestPossibleDecimal: Xn
|
|
174
174
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
175
|
-
class
|
|
175
|
+
class Nl {
|
|
176
176
|
constructor(e, n) {
|
|
177
177
|
this.cachePromise = n.open(e).catch((r) => (console.error(new Error("Failed to open cache", { cause: r })), null));
|
|
178
178
|
}
|
|
@@ -206,7 +206,7 @@ class _l {
|
|
|
206
206
|
await Promise.allSettled(n.map((r) => e.delete(r)));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
class
|
|
209
|
+
class Cl {
|
|
210
210
|
constructor(e, n) {
|
|
211
211
|
this.httpService = e, this.baseUrl = n, this.offsetInS = 0, this.syncIntervalInMs = 60 * 1e3, this.initialSync = this.syncWithServer(), setInterval(() => void this.syncWithServer(), this.syncIntervalInMs);
|
|
212
212
|
}
|
|
@@ -317,7 +317,7 @@ function Vs(t, e) {
|
|
|
317
317
|
headers: r
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
class
|
|
320
|
+
class Ol {
|
|
321
321
|
constructor(e, n, r, s) {
|
|
322
322
|
this.dateService = e, this.cacheService = n, this.httpService = r, this.options = s, this.inFlightRequests = /* @__PURE__ */ new Map();
|
|
323
323
|
}
|
|
@@ -378,7 +378,7 @@ const Xt = (t, e, n) => {
|
|
|
378
378
|
} catch {
|
|
379
379
|
throw Xt("An error occurred while parsing", n, r);
|
|
380
380
|
}
|
|
381
|
-
},
|
|
381
|
+
}, kl = async (t, e) => {
|
|
382
382
|
const n = await fetch(t, {
|
|
383
383
|
method: "POST",
|
|
384
384
|
...e
|
|
@@ -390,10 +390,10 @@ const Xt = (t, e, n) => {
|
|
|
390
390
|
} catch {
|
|
391
391
|
throw Xt("An error occurred while parsing", n, r);
|
|
392
392
|
}
|
|
393
|
-
},
|
|
393
|
+
}, Pl = (t) => ({
|
|
394
394
|
refreshInterval: t,
|
|
395
395
|
dedupingInterval: t
|
|
396
|
-
}),
|
|
396
|
+
}), Rl = (t) => `${t.networkId}::${t.address}`, Ms = () => {
|
|
397
397
|
};
|
|
398
398
|
function Gs(t, e, n, r) {
|
|
399
399
|
const { cache: s } = ms(), o = ae(t && e, t ? n : Ms, r);
|
|
@@ -401,7 +401,7 @@ function Gs(t, e, n, r) {
|
|
|
401
401
|
t || (o.mutate(), s.delete(e));
|
|
402
402
|
}, [t]), o;
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const $l = {
|
|
405
405
|
revalidateOnFocus: !1,
|
|
406
406
|
revalidateOnMount: !0,
|
|
407
407
|
revalidateOnReconnect: !1,
|
|
@@ -417,7 +417,7 @@ const Rl = {
|
|
|
417
417
|
} catch {
|
|
418
418
|
throw new Error("failed to request time");
|
|
419
419
|
}
|
|
420
|
-
},
|
|
420
|
+
}, Fl = async (t, e) => {
|
|
421
421
|
const n = await zs(t, e);
|
|
422
422
|
return Math.floor(n);
|
|
423
423
|
};
|
|
@@ -493,7 +493,7 @@ async function Ys(t, e, n) {
|
|
|
493
493
|
});
|
|
494
494
|
return Hn(o);
|
|
495
495
|
}
|
|
496
|
-
class
|
|
496
|
+
class Ul {
|
|
497
497
|
constructor(e, n, r) {
|
|
498
498
|
this.httpService = e, this.baseUrl = n, this.allowedArgentNameNetworkId = r;
|
|
499
499
|
}
|
|
@@ -832,7 +832,7 @@ function ga() {
|
|
|
832
832
|
throw new Error(`No argent account contract found: v${t} `);
|
|
833
833
|
return tt[t];
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function jl() {
|
|
836
836
|
const t = Q.maxSatisfying(Object.keys(Jt), "*");
|
|
837
837
|
if (!t)
|
|
838
838
|
throw new Error(`No argent multisig contract found: v${t} `);
|
|
@@ -841,7 +841,7 @@ function Ul() {
|
|
|
841
841
|
function wa() {
|
|
842
842
|
return Object.entries(tt).filter(([t]) => Q.gte(t, "0.4.0")).map(([, t]) => t);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Ll() {
|
|
845
845
|
const t = Q.maxSatisfying(Object.keys(tt), "<0.3.0");
|
|
846
846
|
if (!t)
|
|
847
847
|
throw new Error(`No argent account contract found: v${t} `);
|
|
@@ -851,21 +851,21 @@ function ya() {
|
|
|
851
851
|
const t = Object.entries(tt).filter(([n]) => Q.gte(n, "0.3.1")).map(([, n]) => n), e = Object.entries(Jt).filter(([n]) => Q.gte(n, "0.1.1")).map(([, n]) => n);
|
|
852
852
|
return [...t, ...e];
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Dl() {
|
|
855
855
|
return Object.entries(tt).filter(([t]) => Q.gte(t, "0.4.0")).map(([, t]) => t);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Hl() {
|
|
858
858
|
const t = Q.maxSatisfying(Object.keys(tt), ">=0.4.0");
|
|
859
859
|
if (!t)
|
|
860
860
|
throw new Error(`No ledger account contract found: v${t}`);
|
|
861
861
|
return tt[t];
|
|
862
862
|
}
|
|
863
863
|
const ba = (t, e) => t.cairoVersion === e.cairoVersion && nt(t.accountClassHash, e.accountClassHash);
|
|
864
|
-
function
|
|
864
|
+
function Vl(t, e, n = []) {
|
|
865
865
|
const r = Qe.parse({
|
|
866
866
|
cairoVersion: e.cairoVersion ?? "1",
|
|
867
867
|
accountClassHash: e.classHash ?? ga()
|
|
868
|
-
}), s =
|
|
868
|
+
}), s = h.array(Qe).parse(n), o = [
|
|
869
869
|
...hn("cairo0").map((l) => ({ cairoVersion: "0", accountClassHash: l })),
|
|
870
870
|
...hn("cairo1").map((l) => ({ cairoVersion: "1", accountClassHash: l }))
|
|
871
871
|
], c = ma([
|
|
@@ -910,7 +910,7 @@ function Aa(t, e, n, r, s) {
|
|
|
910
910
|
const o = Sa(t, e, n, r, s);
|
|
911
911
|
return zn.calculateContractAddressFromHash(o.addressSalt, o.classHash, o.constructorCalldata, 0);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Ml(t, e) {
|
|
914
914
|
const n = cn(t), r = cn();
|
|
915
915
|
return Yt(() => {
|
|
916
916
|
n.current = t;
|
|
@@ -920,7 +920,7 @@ function Vl(t, e) {
|
|
|
920
920
|
r.current && clearTimeout(r.current), r.current = setTimeout(() => n.current(...s), e);
|
|
921
921
|
};
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Gl(t, e) {
|
|
924
924
|
const [n, r] = us(t);
|
|
925
925
|
return Yt(() => {
|
|
926
926
|
const s = setTimeout(() => {
|
|
@@ -931,8 +931,8 @@ function Ml(t, e) {
|
|
|
931
931
|
};
|
|
932
932
|
}, [t, e]), n;
|
|
933
933
|
}
|
|
934
|
-
const xa =
|
|
935
|
-
name:
|
|
934
|
+
const xa = h.object({
|
|
935
|
+
name: h.enum([
|
|
936
936
|
"dappland",
|
|
937
937
|
"discord",
|
|
938
938
|
"github",
|
|
@@ -940,26 +940,26 @@ const xa = p.object({
|
|
|
940
940
|
"twitter",
|
|
941
941
|
"website"
|
|
942
942
|
]),
|
|
943
|
-
url:
|
|
944
|
-
position:
|
|
945
|
-
}), va =
|
|
943
|
+
url: h.string(),
|
|
944
|
+
position: h.number()
|
|
945
|
+
}), va = h.object({
|
|
946
946
|
address: Vn,
|
|
947
|
-
chain:
|
|
948
|
-
}), Ia =
|
|
949
|
-
dappId:
|
|
950
|
-
name:
|
|
951
|
-
description:
|
|
952
|
-
logoUrl:
|
|
953
|
-
dappUrl:
|
|
954
|
-
inAppBrowserCompatible:
|
|
955
|
-
argentVerified:
|
|
956
|
-
links:
|
|
957
|
-
contracts:
|
|
958
|
-
categories:
|
|
959
|
-
supportedApps:
|
|
960
|
-
brandColor:
|
|
961
|
-
}), Ta =
|
|
962
|
-
class
|
|
947
|
+
chain: h.enum(["ethereum", "starknet"])
|
|
948
|
+
}), Ia = h.object({
|
|
949
|
+
dappId: h.string(),
|
|
950
|
+
name: h.string(),
|
|
951
|
+
description: h.string().optional(),
|
|
952
|
+
logoUrl: h.string().optional(),
|
|
953
|
+
dappUrl: h.string().optional(),
|
|
954
|
+
inAppBrowserCompatible: h.boolean(),
|
|
955
|
+
argentVerified: h.boolean(),
|
|
956
|
+
links: h.array(xa).optional(),
|
|
957
|
+
contracts: h.array(va).optional(),
|
|
958
|
+
categories: h.array(h.string()).optional(),
|
|
959
|
+
supportedApps: h.array(h.string()).optional(),
|
|
960
|
+
brandColor: h.string().optional()
|
|
961
|
+
}), Ta = h.array(Ia);
|
|
962
|
+
class zl {
|
|
963
963
|
constructor(e, n) {
|
|
964
964
|
this.apiBase = e, this.httpService = new Ue(n, "json");
|
|
965
965
|
}
|
|
@@ -974,7 +974,7 @@ function Ba(t) {
|
|
|
974
974
|
var e;
|
|
975
975
|
return (e = t == null ? void 0 : t.links) == null ? void 0 : e.find((n) => n.name === "dappland");
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function ql(t) {
|
|
978
978
|
var e;
|
|
979
979
|
return (e = Ba(t)) == null ? void 0 : e.url;
|
|
980
980
|
}
|
|
@@ -992,7 +992,7 @@ const sr = F.object({
|
|
|
992
992
|
status: F.union([F.literal("KNOWN"), F.literal("UNKNOWN")]),
|
|
993
993
|
resolutions: F.array(Na).optional()
|
|
994
994
|
}), Oa = F.array(F.string()), ka = Ca.array();
|
|
995
|
-
class
|
|
995
|
+
class Wl {
|
|
996
996
|
constructor(e, n) {
|
|
997
997
|
this.apiBase = e, this.headers = n, this.httpService = new Ue(this.headers, "json");
|
|
998
998
|
}
|
|
@@ -1241,34 +1241,34 @@ const oi = (t) => {
|
|
|
1241
1241
|
} catch {
|
|
1242
1242
|
}
|
|
1243
1243
|
return "";
|
|
1244
|
-
},
|
|
1244
|
+
}, Zl = ({ accountName: t, networkId: e, accountAddress: n, backgroundColor: r }) => {
|
|
1245
1245
|
const s = li(n), o = `${e}::${s}`, a = r || ci(o);
|
|
1246
1246
|
return ee(t, { background: a });
|
|
1247
1247
|
}, ui = (t) => {
|
|
1248
1248
|
const e = dt.removeHexPrefix(dt.sanitizeHex(O.toHex(t))), n = Zn.decode(e);
|
|
1249
1249
|
return Yn.encode(n);
|
|
1250
|
-
},
|
|
1250
|
+
}, Yl = (t) => t.map(ui), di = (t) => {
|
|
1251
1251
|
const e = Yn.decode(t);
|
|
1252
1252
|
return dt.sanitizeHex(Zn.encode(e));
|
|
1253
|
-
},
|
|
1254
|
-
function
|
|
1253
|
+
}, Xl = (t) => t.map(di);
|
|
1254
|
+
function Jl(t, e) {
|
|
1255
1255
|
const n = t.getTime(), r = e.getTime(), s = Math.abs(n - r);
|
|
1256
1256
|
return Math.floor(s / (1e3 * 60 * 60 * 24));
|
|
1257
1257
|
}
|
|
1258
|
-
const
|
|
1258
|
+
const Ql = (t) => (t || "false") === "true", tu = async (t, e) => {
|
|
1259
1259
|
try {
|
|
1260
1260
|
return await t.getClassHashAt(e), !0;
|
|
1261
1261
|
} catch {
|
|
1262
1262
|
return !1;
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
|
-
function
|
|
1265
|
+
function eu(t) {
|
|
1266
1266
|
return !ds(t);
|
|
1267
1267
|
}
|
|
1268
|
-
const
|
|
1268
|
+
const nu = (t) => {
|
|
1269
1269
|
const e = /^(0|0x([a-f0-9A-F]+)?)$/;
|
|
1270
1270
|
return !!(t === "" || e.test(t));
|
|
1271
|
-
}, Y = (t) => !isNaN(parseFloat(t)) && isFinite(Number(t)),
|
|
1271
|
+
}, Y = (t) => !isNaN(parseFloat(t)) && isFinite(Number(t)), ru = (t, e = 16) => {
|
|
1272
1272
|
const n = new RegExp(`^[0-9]*.?[0-9]{0,${e}}$`);
|
|
1273
1273
|
return t === "" ? !0 : Y(t) ? !!n.test(t) : !1;
|
|
1274
1274
|
}, Le = {
|
|
@@ -1316,25 +1316,25 @@ const eu = (t) => {
|
|
|
1316
1316
|
function Ut(t) {
|
|
1317
1317
|
return Dt.bnToUint256(t);
|
|
1318
1318
|
}
|
|
1319
|
-
const
|
|
1319
|
+
const su = (t, e) => `${t} ${e}${t === 1 ? "" : "s"}`, ou = (t) => new Promise((e, n) => {
|
|
1320
1320
|
const r = new FileReader();
|
|
1321
1321
|
r.onload = () => {
|
|
1322
1322
|
var s;
|
|
1323
1323
|
return r.result ? e((s = r.result) == null ? void 0 : s.toString()) : n(new Error("Could not read file"));
|
|
1324
1324
|
}, r.onerror = n, r.onabort = n.bind(null, new Error("User aborted")), r.readAsText(t);
|
|
1325
1325
|
});
|
|
1326
|
-
function
|
|
1326
|
+
function au(t) {
|
|
1327
1327
|
try {
|
|
1328
1328
|
return fs(Kn(t));
|
|
1329
1329
|
} catch {
|
|
1330
1330
|
return t;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
const
|
|
1333
|
+
const iu = (t, e) => {
|
|
1334
1334
|
const n = new URLSearchParams(e), r = n.size ? `?${n}` : "";
|
|
1335
1335
|
return R(...oe(t), r);
|
|
1336
1336
|
};
|
|
1337
|
-
function
|
|
1337
|
+
function cu(t) {
|
|
1338
1338
|
return (...e) => {
|
|
1339
1339
|
t(...e);
|
|
1340
1340
|
};
|
|
@@ -1350,7 +1350,7 @@ class xn extends mi {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
const vn = 32;
|
|
1353
|
-
class
|
|
1353
|
+
class lu {
|
|
1354
1354
|
constructor(e, n, r) {
|
|
1355
1355
|
this.apiBase = e, this.headers = n, this.imageOptimizationUrl = r, this.httpService = new Ue(this.headers, "json");
|
|
1356
1356
|
}
|
|
@@ -1491,19 +1491,19 @@ const hr = async (t, e, n, r, s = 1) => {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
1493
|
return o;
|
|
1494
|
-
},
|
|
1494
|
+
}, uu = (t, e, n, r, s) => {
|
|
1495
1495
|
const { data: o, ...a } = ae(r && [r, "nfts"], () => r && hr(t, e, n, r), {
|
|
1496
1496
|
refreshInterval: 3e5,
|
|
1497
1497
|
...s
|
|
1498
1498
|
});
|
|
1499
1499
|
return { nfts: o == null ? void 0 : o.nfts, ...a };
|
|
1500
|
-
},
|
|
1500
|
+
}, du = (t, e, n, r, s) => {
|
|
1501
1501
|
const { data: o, ...a } = ae(r && [`${r}`, "nfts-collection"], () => r && t.getCollection(e, n, r), {
|
|
1502
1502
|
refreshInterval: 6e4,
|
|
1503
1503
|
...s
|
|
1504
1504
|
});
|
|
1505
1505
|
return { collection: o, ...a };
|
|
1506
|
-
},
|
|
1506
|
+
}, fu = (t, e, n, r, s, o) => {
|
|
1507
1507
|
const { data: a, ...i } = ae(s && r && [`${r}:${s}`, "nft"], () => s && r ? t.getNft(e, n, r, s) : void 0, {
|
|
1508
1508
|
refreshInterval: 6e4,
|
|
1509
1509
|
revalidateOnFocus: !1,
|
|
@@ -1511,7 +1511,7 @@ const hr = async (t, e, n, r, s = 1) => {
|
|
|
1511
1511
|
...o
|
|
1512
1512
|
});
|
|
1513
1513
|
return { nft: a, ...i };
|
|
1514
|
-
},
|
|
1514
|
+
}, hu = ({ image_uri: t, image_url_copy: e }) => {
|
|
1515
1515
|
if (t && e) {
|
|
1516
1516
|
if (!e.startsWith("ipfs://"))
|
|
1517
1517
|
return e;
|
|
@@ -1519,7 +1519,7 @@ const hr = async (t, e, n, r, s = 1) => {
|
|
|
1519
1519
|
return t;
|
|
1520
1520
|
}
|
|
1521
1521
|
return e || t;
|
|
1522
|
-
},
|
|
1522
|
+
}, pu = (t, e) => t.token_id === e.token_id && nt(t.contract_address, e.contract_address);
|
|
1523
1523
|
function In(t) {
|
|
1524
1524
|
if (!Number.isSafeInteger(t) || t < 0)
|
|
1525
1525
|
throw new Error(`Wrong positive integer: ${t}`);
|
|
@@ -2567,10 +2567,10 @@ function hc(t) {
|
|
|
2567
2567
|
const { px: g, py: b, pz: E } = this, { px: x, py: _, pz: B } = f;
|
|
2568
2568
|
let A = n.ZERO, v = n.ZERO, T = n.ZERO;
|
|
2569
2569
|
const G = e.a, P = n.mul(e.b, kn);
|
|
2570
|
-
let N = n.mul(g, x), L = n.mul(b, _), D = n.mul(E, B), rt = n.add(g, b),
|
|
2571
|
-
rt = n.mul(rt,
|
|
2570
|
+
let N = n.mul(g, x), L = n.mul(b, _), D = n.mul(E, B), rt = n.add(g, b), p = n.add(x, _);
|
|
2571
|
+
rt = n.mul(rt, p), p = n.add(N, L), rt = n.sub(rt, p), p = n.add(g, E);
|
|
2572
2572
|
let y = n.add(x, B);
|
|
2573
|
-
return
|
|
2573
|
+
return p = n.mul(p, y), y = n.add(N, D), p = n.sub(p, y), y = n.add(b, E), A = n.add(_, B), y = n.mul(y, A), A = n.add(L, D), y = n.sub(y, A), T = n.mul(G, p), A = n.mul(P, D), T = n.add(A, T), A = n.sub(L, T), T = n.add(L, T), v = n.mul(A, T), L = n.add(N, N), L = n.add(L, N), D = n.mul(G, D), p = n.mul(P, 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(y, p), A = n.mul(rt, A), A = n.sub(A, N), N = n.mul(rt, L), T = n.mul(y, T), T = n.add(T, N), new u(A, v, T);
|
|
2574
2574
|
}
|
|
2575
2575
|
subtract(f) {
|
|
2576
2576
|
return this.add(f.negate());
|
|
@@ -2692,23 +2692,23 @@ function pc(t) {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
function mc(t) {
|
|
2694
2694
|
const e = pc(t), { Fp: n, n: r } = e, s = n.BYTES + 1, o = 2 * n.BYTES + 1;
|
|
2695
|
-
function a(
|
|
2696
|
-
return et <
|
|
2695
|
+
function a(p) {
|
|
2696
|
+
return et < p && p < n.ORDER;
|
|
2697
2697
|
}
|
|
2698
|
-
function i(
|
|
2699
|
-
return M(
|
|
2698
|
+
function i(p) {
|
|
2699
|
+
return M(p, r);
|
|
2700
2700
|
}
|
|
2701
|
-
function c(
|
|
2702
|
-
return Ne(
|
|
2701
|
+
function c(p) {
|
|
2702
|
+
return Ne(p, r);
|
|
2703
2703
|
}
|
|
2704
2704
|
const { ProjectivePoint: l, normPrivateKeyToScalar: d, weierstrassEquation: u, isWithinCurveOrder: w } = hc({
|
|
2705
2705
|
...e,
|
|
2706
|
-
toBytes(
|
|
2706
|
+
toBytes(p, y, I) {
|
|
2707
2707
|
const k = y.toAffine(), C = n.toBytes(k.x), j = jt;
|
|
2708
2708
|
return I ? j(Uint8Array.from([y.hasEvenY() ? 2 : 3]), C) : j(Uint8Array.from([4]), C, n.toBytes(k.y));
|
|
2709
2709
|
},
|
|
2710
|
-
fromBytes(
|
|
2711
|
-
const y =
|
|
2710
|
+
fromBytes(p) {
|
|
2711
|
+
const y = p.length, I = p[0], k = p.subarray(1);
|
|
2712
2712
|
if (y === s && (I === 2 || I === 3)) {
|
|
2713
2713
|
const C = X(k);
|
|
2714
2714
|
if (!a(C))
|
|
@@ -2723,15 +2723,15 @@ function mc(t) {
|
|
|
2723
2723
|
} else
|
|
2724
2724
|
throw new Error(`Point of length ${y} was invalid. Expected ${s} compressed bytes or ${o} uncompressed bytes`);
|
|
2725
2725
|
}
|
|
2726
|
-
}), m = (
|
|
2727
|
-
function S(
|
|
2726
|
+
}), m = (p) => pt(At(p, e.nByteLength));
|
|
2727
|
+
function S(p) {
|
|
2728
2728
|
const y = r >> q;
|
|
2729
|
-
return
|
|
2729
|
+
return p > y;
|
|
2730
2730
|
}
|
|
2731
|
-
function f(
|
|
2732
|
-
return S(
|
|
2731
|
+
function f(p) {
|
|
2732
|
+
return S(p) ? i(-p) : p;
|
|
2733
2733
|
}
|
|
2734
|
-
const g = (
|
|
2734
|
+
const g = (p, y, I) => X(p.slice(y, I));
|
|
2735
2735
|
class b {
|
|
2736
2736
|
constructor(y, I, k) {
|
|
2737
2737
|
this.r = y, this.s = I, this.recovery = k, this.assertValidity();
|
|
@@ -2791,9 +2791,9 @@ function mc(t) {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
2793
|
const E = {
|
|
2794
|
-
isValidPrivateKey(
|
|
2794
|
+
isValidPrivateKey(p) {
|
|
2795
2795
|
try {
|
|
2796
|
-
return d(
|
|
2796
|
+
return d(p), !0;
|
|
2797
2797
|
} catch {
|
|
2798
2798
|
return !1;
|
|
2799
2799
|
}
|
|
@@ -2804,7 +2804,7 @@ function mc(t) {
|
|
|
2804
2804
|
* as per FIPS 186 B.4.1 with modulo bias being neglible.
|
|
2805
2805
|
*/
|
|
2806
2806
|
randomPrivateKey: () => {
|
|
2807
|
-
const
|
|
2807
|
+
const p = e.randomBytes(n.BYTES + 8), y = oc(p, r);
|
|
2808
2808
|
return At(y, e.nByteLength);
|
|
2809
2809
|
},
|
|
2810
2810
|
/**
|
|
@@ -2815,44 +2815,44 @@ function mc(t) {
|
|
|
2815
2815
|
* const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
|
|
2816
2816
|
* fast.multiply(privKey); // much faster ECDH now
|
|
2817
2817
|
*/
|
|
2818
|
-
precompute(
|
|
2819
|
-
return y._setWindowSize(
|
|
2818
|
+
precompute(p = 8, y = l.BASE) {
|
|
2819
|
+
return y._setWindowSize(p), y.multiply(BigInt(3)), y;
|
|
2820
2820
|
}
|
|
2821
2821
|
};
|
|
2822
|
-
function x(
|
|
2823
|
-
return l.fromPrivateKey(
|
|
2822
|
+
function x(p, y = !0) {
|
|
2823
|
+
return l.fromPrivateKey(p).toRawBytes(y);
|
|
2824
2824
|
}
|
|
2825
|
-
function _(
|
|
2826
|
-
const y =
|
|
2827
|
-
return y ? k === s || k === o : I ? k === 2 * s || k === 2 * o :
|
|
2825
|
+
function _(p) {
|
|
2826
|
+
const y = p instanceof Uint8Array, I = typeof p == "string", k = (y || I) && p.length;
|
|
2827
|
+
return y ? k === s || k === o : I ? k === 2 * s || k === 2 * o : p instanceof l;
|
|
2828
2828
|
}
|
|
2829
|
-
function B(
|
|
2830
|
-
if (_(
|
|
2829
|
+
function B(p, y, I = !0) {
|
|
2830
|
+
if (_(p))
|
|
2831
2831
|
throw new Error("first arg must be private key");
|
|
2832
2832
|
if (!_(y))
|
|
2833
2833
|
throw new Error("second arg must be public key");
|
|
2834
|
-
return l.fromHex(y).multiply(d(
|
|
2834
|
+
return l.fromHex(y).multiply(d(p)).toRawBytes(I);
|
|
2835
2835
|
}
|
|
2836
|
-
const A = e.bits2int || function(
|
|
2837
|
-
const y = X(
|
|
2836
|
+
const A = e.bits2int || function(p) {
|
|
2837
|
+
const y = X(p), I = p.length * 8 - e.nBitLength;
|
|
2838
2838
|
return I > 0 ? y >> BigInt(I) : y;
|
|
2839
|
-
}, v = e.bits2int_modN || function(
|
|
2840
|
-
return i(A(
|
|
2839
|
+
}, v = e.bits2int_modN || function(p) {
|
|
2840
|
+
return i(A(p));
|
|
2841
2841
|
}, T = pe(e.nBitLength);
|
|
2842
|
-
function G(
|
|
2843
|
-
if (typeof
|
|
2842
|
+
function G(p) {
|
|
2843
|
+
if (typeof p != "bigint")
|
|
2844
2844
|
throw new Error("bigint expected");
|
|
2845
|
-
if (!(et <=
|
|
2845
|
+
if (!(et <= p && p < T))
|
|
2846
2846
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
|
2847
|
-
return At(
|
|
2847
|
+
return At(p, e.nByteLength);
|
|
2848
2848
|
}
|
|
2849
|
-
function P(
|
|
2849
|
+
function P(p, y, I = N) {
|
|
2850
2850
|
if (["recovered", "canonical"].some((lt) => lt in I))
|
|
2851
2851
|
throw new Error("sign() legacy options not supported");
|
|
2852
2852
|
const { hash: k, randomBytes: C } = e;
|
|
2853
2853
|
let { lowS: j, prehash: z, extraEntropy: H } = I;
|
|
2854
|
-
j == null && (j = !0),
|
|
2855
|
-
const st = v(
|
|
2854
|
+
j == null && (j = !0), p = V("msgHash", p), z && (p = V("prehashed msgHash", k(p)));
|
|
2855
|
+
const st = v(p), ot = d(y), wt = [G(ot), G(st)];
|
|
2856
2856
|
if (H != null) {
|
|
2857
2857
|
const lt = H === !0 ? C(n.BYTES) : H;
|
|
2858
2858
|
wt.push(V("extraEntropy", lt, n.BYTES));
|
|
@@ -2874,14 +2874,14 @@ function mc(t) {
|
|
|
2874
2874
|
return { seed: _t, k2sig: we };
|
|
2875
2875
|
}
|
|
2876
2876
|
const N = { lowS: e.lowS, prehash: !1 }, L = { lowS: e.lowS, prehash: !1 };
|
|
2877
|
-
function D(
|
|
2878
|
-
const { seed: k, k2sig: C } = P(
|
|
2877
|
+
function D(p, y, I = N) {
|
|
2878
|
+
const { seed: k, k2sig: C } = P(p, y, I);
|
|
2879
2879
|
return Tr(e.hash.outputLen, e.nByteLength, e.hmac)(k, C);
|
|
2880
2880
|
}
|
|
2881
2881
|
l.BASE._setWindowSize(8);
|
|
2882
|
-
function rt(
|
|
2882
|
+
function rt(p, y, I, k = L) {
|
|
2883
2883
|
var bt;
|
|
2884
|
-
const C =
|
|
2884
|
+
const C = p;
|
|
2885
2885
|
if (y = V("msgHash", y), I = V("publicKey", I), "strict" in k)
|
|
2886
2886
|
throw new Error("options.strict was renamed to lowS");
|
|
2887
2887
|
const { lowS: j, prehash: z } = k;
|
|
@@ -3075,7 +3075,7 @@ const Rr = mc({
|
|
|
3075
3075
|
function Bc(t) {
|
|
3076
3076
|
return V("", typeof t == "string" ? Pr(t) : t);
|
|
3077
3077
|
}
|
|
3078
|
-
const { CURVE:
|
|
3078
|
+
const { CURVE: wu, ProjectivePoint: Pt, Signature: yu, utils: bu } = Rr;
|
|
3079
3079
|
function _c(t) {
|
|
3080
3080
|
return `0x${pt(t.subarray(1)).replace(/^0+/gm, "")}`;
|
|
3081
3081
|
}
|
|
@@ -3161,31 +3161,46 @@ function Uc(t, e) {
|
|
|
3161
3161
|
return o.m = n, o.rate = t.rate, o.capacity = t.capacity, o;
|
|
3162
3162
|
}
|
|
3163
3163
|
Uc({ Fp: Rc, rate: 2, capacity: 1, roundsFull: 8, roundsPartial: 83 }, Fc);
|
|
3164
|
-
const
|
|
3164
|
+
const jc = h.object({
|
|
3165
|
+
recoveryId: h.number()
|
|
3166
|
+
}), Su = h.object({
|
|
3165
3167
|
feeToken: se,
|
|
3166
|
-
signerSignature:
|
|
3167
|
-
type:
|
|
3168
|
-
signer:
|
|
3168
|
+
signerSignature: h.object({
|
|
3169
|
+
type: h.literal("StarknetKey"),
|
|
3170
|
+
signer: h.object({
|
|
3169
3171
|
publicKey: Rt,
|
|
3170
3172
|
r: Rt,
|
|
3171
3173
|
s: Rt
|
|
3172
3174
|
})
|
|
3173
3175
|
})
|
|
3174
|
-
}),
|
|
3176
|
+
}), Lc = h.enum([
|
|
3175
3177
|
"ONGOING",
|
|
3176
3178
|
"COMPLETED",
|
|
3177
3179
|
"ERROR",
|
|
3178
3180
|
"CANCELLED",
|
|
3179
3181
|
"AWAITING_FUNDS"
|
|
3180
|
-
]),
|
|
3181
|
-
status:
|
|
3182
|
-
recoveryId:
|
|
3183
|
-
completionTime:
|
|
3182
|
+
]), Eu = h.object({
|
|
3183
|
+
status: Lc.optional(),
|
|
3184
|
+
recoveryId: h.number().optional(),
|
|
3185
|
+
completionTime: h.array(h.number()).optional()
|
|
3186
|
+
}), Dc = h.enum([
|
|
3187
|
+
"undeployedAccount",
|
|
3188
|
+
"notEnoughToPayFees"
|
|
3189
|
+
]), Au = h.object({
|
|
3190
|
+
status: Dc
|
|
3184
3191
|
});
|
|
3185
|
-
class
|
|
3192
|
+
class xu {
|
|
3186
3193
|
constructor(e, n) {
|
|
3187
3194
|
this.apiBase = e, this.httpService = n;
|
|
3188
3195
|
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Starts the recovery process for a given address.
|
|
3198
|
+
* @param address - The address to recover.
|
|
3199
|
+
* @param feeToken - The token to be used for the recovery fee.
|
|
3200
|
+
* @param publicKey - The public key of the signer.
|
|
3201
|
+
* @param privateKey - The private key of the signer.
|
|
3202
|
+
* @returns A promise that resolves to the recovery details.
|
|
3203
|
+
*/
|
|
3189
3204
|
async startRecovery(e, n, r, s) {
|
|
3190
3205
|
const { r: o, s: a } = on.starkCurve.sign(Fn(Un(un("utf8", "starknet:recovery")), r), s), i = {
|
|
3191
3206
|
feeToken: n,
|
|
@@ -3200,29 +3215,43 @@ class Su {
|
|
|
3200
3215
|
};
|
|
3201
3216
|
return await this.httpService.post(`${this.apiBase}/accounts/starknet/${e}/recovery`, {
|
|
3202
3217
|
body: JSON.stringify(i)
|
|
3203
|
-
},
|
|
3218
|
+
}, jc);
|
|
3204
3219
|
}
|
|
3220
|
+
/**
|
|
3221
|
+
* Retrieves the on-chain recovery details for a given address and recovery ID.
|
|
3222
|
+
* If no recovery ID is provided, it retrieves the latest recovery details.
|
|
3223
|
+
* @param address - The address to retrieve the recovery details for.
|
|
3224
|
+
* @param recoveryId - (Optional) The recovery ID to retrieve the details for. If not provided, retrieves the latest recovery details.
|
|
3225
|
+
* @returns A promise that resolves to the on-chain recovery details.
|
|
3226
|
+
*/
|
|
3205
3227
|
async getRecovery(e, n) {
|
|
3206
3228
|
const r = R(this.apiBase, "accounts", "starknet", e, "recovery", n ? `${n}` : "");
|
|
3207
3229
|
return await this.httpService.get(r);
|
|
3208
3230
|
}
|
|
3209
|
-
|
|
3210
|
-
|
|
3231
|
+
/**
|
|
3232
|
+
* Cancels the on-chain recovery process for a given address.
|
|
3233
|
+
* @param address - The address for which to cancel the recovery process.
|
|
3234
|
+
* @param publicKey - The public key of the signer.
|
|
3235
|
+
* @param privateKey - The private key of the signer.
|
|
3236
|
+
* @returns A promise that resolves when the recovery process is successfully canceled.
|
|
3237
|
+
*/
|
|
3238
|
+
async cancelRecovery(e, n, r) {
|
|
3239
|
+
const { r: s, s: o } = on.starkCurve.sign(Fn(Un(un("utf8", "starknet:recovery:cancel")), n), r), a = {
|
|
3211
3240
|
signerSignature: {
|
|
3212
3241
|
type: "StarknetKey",
|
|
3213
3242
|
signer: {
|
|
3214
|
-
publicKey:
|
|
3215
|
-
r: dt.addHexPrefix(
|
|
3216
|
-
s: dt.addHexPrefix(
|
|
3243
|
+
publicKey: n,
|
|
3244
|
+
r: dt.addHexPrefix(s.toString(16)),
|
|
3245
|
+
s: dt.addHexPrefix(o.toString(16))
|
|
3217
3246
|
}
|
|
3218
3247
|
}
|
|
3219
3248
|
};
|
|
3220
3249
|
await this.httpService.post(`${this.apiBase}/accounts/starknet/${e}/recovery/cancel`, {
|
|
3221
|
-
body: JSON.stringify(
|
|
3250
|
+
body: JSON.stringify(a)
|
|
3222
3251
|
});
|
|
3223
3252
|
}
|
|
3224
3253
|
}
|
|
3225
|
-
async function
|
|
3254
|
+
async function vu() {
|
|
3226
3255
|
if ("brave" in navigator)
|
|
3227
3256
|
try {
|
|
3228
3257
|
return await navigator.brave.isBrave();
|
|
@@ -3231,25 +3260,25 @@ async function Eu() {
|
|
|
3231
3260
|
return !1;
|
|
3232
3261
|
}
|
|
3233
3262
|
let Te;
|
|
3234
|
-
function
|
|
3263
|
+
function Hc() {
|
|
3235
3264
|
return Te || (Te = new gs(navigator.userAgent).getResult()), Te;
|
|
3236
3265
|
}
|
|
3237
3266
|
function me(t) {
|
|
3238
|
-
return
|
|
3267
|
+
return Hc().browser.name === t;
|
|
3239
3268
|
}
|
|
3240
|
-
function
|
|
3269
|
+
function Iu() {
|
|
3241
3270
|
return me("Firefox");
|
|
3242
3271
|
}
|
|
3243
|
-
function
|
|
3272
|
+
function Tu() {
|
|
3244
3273
|
return me("Chrome");
|
|
3245
3274
|
}
|
|
3246
|
-
function
|
|
3275
|
+
function Bu() {
|
|
3247
3276
|
return me("Safari");
|
|
3248
3277
|
}
|
|
3249
|
-
function
|
|
3278
|
+
function _u() {
|
|
3250
3279
|
return me("Edge");
|
|
3251
3280
|
}
|
|
3252
|
-
const
|
|
3281
|
+
const Nu = h.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
3253
3282
|
{
|
|
3254
3283
|
address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
|
|
3255
3284
|
name: "Ether",
|
|
@@ -3426,7 +3455,7 @@ const Tu = p.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
|
3426
3455
|
networkId: "mainnet-alpha",
|
|
3427
3456
|
image: "https://dv3jj1unlp2jl.cloudfront.net/128/color/ekubo.png"
|
|
3428
3457
|
}
|
|
3429
|
-
],
|
|
3458
|
+
], Vc = async (t, e, n) => {
|
|
3430
3459
|
const r = await n.callContract({
|
|
3431
3460
|
contractAddress: t,
|
|
3432
3461
|
entrypoint: "balanceOf",
|
|
@@ -3436,7 +3465,7 @@ const Tu = p.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
|
3436
3465
|
low: r[0],
|
|
3437
3466
|
high: r[1]
|
|
3438
3467
|
})));
|
|
3439
|
-
},
|
|
3468
|
+
}, Cu = async (t, e, n) => {
|
|
3440
3469
|
const r = We.filter((o) => o.networkId === t);
|
|
3441
3470
|
return (await Promise.allSettled(r.map((o) => e.callContract({
|
|
3442
3471
|
contractAddress: o.address,
|
|
@@ -3454,7 +3483,7 @@ const Tu = p.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
|
3454
3483
|
};
|
|
3455
3484
|
return o.push(l), o;
|
|
3456
3485
|
}, []);
|
|
3457
|
-
},
|
|
3486
|
+
}, Ou = async () => We, ku = ({ address: t, networkId: e }) => We.find((r) => r.address === t && r.networkId === e), Pu = ({ amount: t, decimals: e, unitCurrencyValue: n }) => {
|
|
3458
3487
|
if (!Y(t) || !Y(e) || !Y(n))
|
|
3459
3488
|
return;
|
|
3460
3489
|
const r = Number(e), s = BigInt(t) * Fe(n.toString()).value;
|
|
@@ -3462,21 +3491,21 @@ const Tu = p.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
|
3462
3491
|
value: s,
|
|
3463
3492
|
decimals: r + Ht
|
|
3464
3493
|
});
|
|
3465
|
-
},
|
|
3494
|
+
}, Ru = ({ unitAmount: t, decimals: e }) => {
|
|
3466
3495
|
if (t === void 0 || !Y(t) || e === void 0 || !Y(e))
|
|
3467
3496
|
return;
|
|
3468
3497
|
const n = Number(e);
|
|
3469
3498
|
return vt(t.toString(), n).value.toString();
|
|
3470
|
-
},
|
|
3499
|
+
}, $u = (t) => Y(t) ? Number(t) : 18, { UINT_256_MAX: Mc } = Dt, Gc = (t) => String(t) === String(Mc), Fu = (t, e = "$", n) => {
|
|
3471
3500
|
if (t === void 0 || !Y(t))
|
|
3472
3501
|
return null;
|
|
3473
3502
|
const r = fi(t, n);
|
|
3474
3503
|
return [e, r].filter(Boolean).join("");
|
|
3475
|
-
},
|
|
3504
|
+
}, zc = "Unlimited", Uu = ({ amount: t, decimals: e, symbol: n, showPlusSign: r = !1, withSymbol: s = !0, unlimitedText: o = zc, prettyConfigOverrides: a }) => {
|
|
3476
3505
|
if (!Y(t))
|
|
3477
3506
|
return null;
|
|
3478
3507
|
let i, c = !1;
|
|
3479
|
-
if (
|
|
3508
|
+
if (Gc(t))
|
|
3480
3509
|
i = o;
|
|
3481
3510
|
else {
|
|
3482
3511
|
const d = Number(e), u = BigInt(t);
|
|
@@ -3487,11 +3516,11 @@ const Tu = p.string().refine((t) => ws(t, ys), "Invalid seedphrase"), We = [
|
|
|
3487
3516
|
const l = [i, s && n].filter(Boolean).join(" ");
|
|
3488
3517
|
return r && c ? `+${l}` : l;
|
|
3489
3518
|
};
|
|
3490
|
-
var
|
|
3491
|
-
function
|
|
3519
|
+
var qc = Xr, Wc = qc;
|
|
3520
|
+
function Kc(t, e) {
|
|
3492
3521
|
function n(r, s) {
|
|
3493
3522
|
var o = e || {}, a;
|
|
3494
|
-
"randomize" in o || (o.randomize = !0), a =
|
|
3523
|
+
"randomize" in o || (o.randomize = !0), a = Wc.operation(o);
|
|
3495
3524
|
function i(d) {
|
|
3496
3525
|
s(d || new Error("Aborted"));
|
|
3497
3526
|
}
|
|
@@ -3518,9 +3547,9 @@ function Wc(t, e) {
|
|
|
3518
3547
|
}
|
|
3519
3548
|
return new Promise(n);
|
|
3520
3549
|
}
|
|
3521
|
-
var
|
|
3522
|
-
const
|
|
3523
|
-
class
|
|
3550
|
+
var Zc = Kc;
|
|
3551
|
+
const Yc = /* @__PURE__ */ Jr(Zc);
|
|
3552
|
+
class ju {
|
|
3524
3553
|
constructor(e, n) {
|
|
3525
3554
|
this.apiBase = e, this.httpService = n, this.TOKENS_INFO_URL = "/tokens/info", this.TOKENS_DEFI_DECOMPOSITION_URL = "/tokens/defi/decomposition";
|
|
3526
3555
|
}
|
|
@@ -3544,7 +3573,7 @@ class $u {
|
|
|
3544
3573
|
*/
|
|
3545
3574
|
async fetchAddressTokenBalancesFromBackend(e, n, r) {
|
|
3546
3575
|
const s = R(this.apiBase, "activity", "starknet", n, "account", e, "balance");
|
|
3547
|
-
return (await
|
|
3576
|
+
return (await Yc(
|
|
3548
3577
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3549
3578
|
async (i) => {
|
|
3550
3579
|
let c;
|
|
@@ -3579,14 +3608,14 @@ class $u {
|
|
|
3579
3608
|
return r.dapps;
|
|
3580
3609
|
}
|
|
3581
3610
|
}
|
|
3582
|
-
const
|
|
3611
|
+
const Lu = (t, e, n, r) => ({
|
|
3583
3612
|
contractAddress: t,
|
|
3584
3613
|
entrypoint: "transfer",
|
|
3585
3614
|
calldata: gt.compile({
|
|
3586
3615
|
recipient: e,
|
|
3587
3616
|
amount: Ut(pi(n, r))
|
|
3588
3617
|
})
|
|
3589
|
-
}),
|
|
3618
|
+
}), Du = (t, e, n, r) => ({
|
|
3590
3619
|
contractAddress: t,
|
|
3591
3620
|
entrypoint: "transferFrom",
|
|
3592
3621
|
calldata: gt.compile({
|
|
@@ -3595,7 +3624,7 @@ const Fu = (t, e, n, r) => ({
|
|
|
3595
3624
|
tokenId: Ut(r)
|
|
3596
3625
|
// OZ specs need a uint256 as tokenId
|
|
3597
3626
|
})
|
|
3598
|
-
}),
|
|
3627
|
+
}), Hu = (t, e, n, r) => ({
|
|
3599
3628
|
contractAddress: t,
|
|
3600
3629
|
entrypoint: "safeTransferFrom",
|
|
3601
3630
|
calldata: gt.compile({
|
|
@@ -3609,7 +3638,7 @@ const Fu = (t, e, n, r) => ({
|
|
|
3609
3638
|
function Fr(t) {
|
|
3610
3639
|
return Pe(t.unit) === "WEI";
|
|
3611
3640
|
}
|
|
3612
|
-
function
|
|
3641
|
+
function Xc(t) {
|
|
3613
3642
|
return Pe(t.unit) === "FRI";
|
|
3614
3643
|
}
|
|
3615
3644
|
function xt(t, e) {
|
|
@@ -3637,13 +3666,13 @@ function $t(t) {
|
|
|
3637
3666
|
};
|
|
3638
3667
|
}
|
|
3639
3668
|
function Be(t) {
|
|
3640
|
-
return
|
|
3669
|
+
return Xc({ unit: t }) ? ke : Mn;
|
|
3641
3670
|
}
|
|
3642
|
-
function
|
|
3671
|
+
function Vu(t, e, n = 2) {
|
|
3643
3672
|
const r = BigInt(10 ** n), s = BigInt(Math.round(e * 10 ** n));
|
|
3644
3673
|
return t * s / r;
|
|
3645
3674
|
}
|
|
3646
|
-
const
|
|
3675
|
+
const Mu = [ke], Ur = (t, e = nl) => {
|
|
3647
3676
|
if (t.max && "amount" in t.max)
|
|
3648
3677
|
return {
|
|
3649
3678
|
...t,
|
|
@@ -3663,23 +3692,23 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3663
3692
|
}, re = (t) => {
|
|
3664
3693
|
const { amount: e, pricePerUnit: n, dataGasConsumed: r = 0n, dataGasPrice: s = 0n } = t;
|
|
3665
3694
|
return e * n + r * s;
|
|
3666
|
-
},
|
|
3695
|
+
}, Jc = (t) => {
|
|
3667
3696
|
if (t.max)
|
|
3668
3697
|
return "maxFee" in t.max ? t.max.maxFee : re(t.max);
|
|
3669
3698
|
}, Oe = (t) => {
|
|
3670
|
-
const e =
|
|
3699
|
+
const e = Jc(t);
|
|
3671
3700
|
return e || re(Ur(t));
|
|
3672
|
-
},
|
|
3701
|
+
}, Gu = (t) => {
|
|
3673
3702
|
if (t.deployment && !nt(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
|
|
3674
3703
|
throw Error("Cannot calculate estimated fees for different tokens");
|
|
3675
3704
|
const e = re(t.transactions), n = t.deployment ? re(t.deployment) : 0n;
|
|
3676
3705
|
return e + n;
|
|
3677
|
-
},
|
|
3706
|
+
}, zu = (t) => {
|
|
3678
3707
|
if (t.deployment && !nt(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
|
|
3679
3708
|
throw Error("Cannot calculate estimated fees for different tokens");
|
|
3680
3709
|
const e = t.deployment ? Oe(t.deployment) : 0n, n = Oe(t.transactions);
|
|
3681
3710
|
return e + n;
|
|
3682
|
-
},
|
|
3711
|
+
}, qu = (t, e) => [
|
|
3683
3712
|
{
|
|
3684
3713
|
contractAddress: t,
|
|
3685
3714
|
entrypoint: "transfer",
|
|
@@ -3690,7 +3719,7 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3690
3719
|
amount: Dt.bnToUint256(BigInt(1))
|
|
3691
3720
|
}))
|
|
3692
3721
|
}
|
|
3693
|
-
],
|
|
3722
|
+
], Qc = (t, e) => {
|
|
3694
3723
|
if (!t)
|
|
3695
3724
|
return {
|
|
3696
3725
|
transactions: {
|
|
@@ -3738,7 +3767,7 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3738
3767
|
};
|
|
3739
3768
|
}
|
|
3740
3769
|
throw Error("Unexpected simulation response length");
|
|
3741
|
-
},
|
|
3770
|
+
}, tl = ({ transaction: t, nonce: e, chainId: n, version: r, isDeploymentTransaction: s, cairoVersion: o, address: a, appDomain: i }) => {
|
|
3742
3771
|
let c = e;
|
|
3743
3772
|
s && t.type !== "DEPLOY_ACCOUNT" && (c = O.toHex(1));
|
|
3744
3773
|
const l = oe(t.calls);
|
|
@@ -3757,7 +3786,7 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3757
3786
|
appDomain: i
|
|
3758
3787
|
// appDomain: "https://starknetkit-blacked-listed.vercel.app", // to simulate blacklisted domain
|
|
3759
3788
|
};
|
|
3760
|
-
},
|
|
3789
|
+
}, el = (t, e) => {
|
|
3761
3790
|
const { transactions: n } = t, r = n.map((c) => {
|
|
3762
3791
|
if (!c.simulation)
|
|
3763
3792
|
throw new os({ code: "SIMULATE_AND_REVIEW_FAILED" });
|
|
@@ -3765,7 +3794,7 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3765
3794
|
}), s = r.map((c) => ({
|
|
3766
3795
|
...c.simulation,
|
|
3767
3796
|
feeEstimation: xt(c.simulation.feeEstimation, Number)
|
|
3768
|
-
})), o =
|
|
3797
|
+
})), o = Qc(s, e), [a, i] = r.length === 1 ? [r[0], void 0] : [r[1], r[0]];
|
|
3769
3798
|
return {
|
|
3770
3799
|
...o,
|
|
3771
3800
|
transactions: {
|
|
@@ -3781,7 +3810,7 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3781
3810
|
max: $t(xt(i.simulation.feeEstimation, O.toBigInt))
|
|
3782
3811
|
} : void 0
|
|
3783
3812
|
};
|
|
3784
|
-
},
|
|
3813
|
+
}, Wu = (t) => {
|
|
3785
3814
|
const e = Ur(t), n = Oe(t);
|
|
3786
3815
|
return {
|
|
3787
3816
|
// for v1 transactions
|
|
@@ -3800,17 +3829,17 @@ const Du = [ke], Ur = (t, e = el) => {
|
|
|
3800
3829
|
}
|
|
3801
3830
|
}
|
|
3802
3831
|
};
|
|
3803
|
-
},
|
|
3832
|
+
}, Ku = (t) => {
|
|
3804
3833
|
const e = Math.sqrt(t);
|
|
3805
3834
|
return isNaN(e) ? Math.sqrt(2) : e;
|
|
3806
|
-
},
|
|
3835
|
+
}, nl = (t) => {
|
|
3807
3836
|
const e = Math.cbrt(t);
|
|
3808
3837
|
return isNaN(e) ? Math.cbrt(2) : e;
|
|
3809
|
-
},
|
|
3838
|
+
}, Zu = (t) => t < 1 || isNaN(t) ? 1.1 : Math.log(t + 1) + 1, rl = [ke];
|
|
3810
3839
|
function Ke({ address: t }) {
|
|
3811
|
-
return
|
|
3840
|
+
return rl.some((e) => nt(t, e));
|
|
3812
3841
|
}
|
|
3813
|
-
function
|
|
3842
|
+
function Yu(t) {
|
|
3814
3843
|
return t ? ya().some((e) => nt(e, t)) : !1;
|
|
3815
3844
|
}
|
|
3816
3845
|
function jn(t) {
|
|
@@ -3818,13 +3847,13 @@ function jn(t) {
|
|
|
3818
3847
|
address: t
|
|
3819
3848
|
}) ? Z.TRANSACTION_VERSION.V3 : Z.TRANSACTION_VERSION.V1;
|
|
3820
3849
|
}
|
|
3821
|
-
function
|
|
3850
|
+
function Xu(t) {
|
|
3822
3851
|
return Ke({ address: t }) ? Z.TRANSACTION_VERSION.F3 : Z.TRANSACTION_VERSION.F1;
|
|
3823
3852
|
}
|
|
3824
|
-
function
|
|
3853
|
+
function Ju(t, e) {
|
|
3825
3854
|
return ls(e.contract) ? Ke({ address: t }) ? Z.TRANSACTION_VERSION.V3 : Z.TRANSACTION_VERSION.V2 : Z.TRANSACTION_VERSION.V1;
|
|
3826
3855
|
}
|
|
3827
|
-
class
|
|
3856
|
+
class Qu {
|
|
3828
3857
|
constructor(e, n) {
|
|
3829
3858
|
this.apiBase = e, this.httpService = n;
|
|
3830
3859
|
}
|
|
@@ -3851,7 +3880,7 @@ class Yu {
|
|
|
3851
3880
|
throw new Error("MISSING_METHOD");
|
|
3852
3881
|
const i = jn(r), c = a ? "0x0" : await e.getNonce(), l = await e.getChainId(), d = {
|
|
3853
3882
|
transactions: n.map((f) => ({
|
|
3854
|
-
...
|
|
3883
|
+
...tl({
|
|
3855
3884
|
transaction: f,
|
|
3856
3885
|
nonce: c,
|
|
3857
3886
|
version: i,
|
|
@@ -3872,7 +3901,7 @@ class Yu {
|
|
|
3872
3901
|
}, is);
|
|
3873
3902
|
if (w.transactions.some((f) => cs(f)))
|
|
3874
3903
|
return w;
|
|
3875
|
-
const S =
|
|
3904
|
+
const S = el(w, r);
|
|
3876
3905
|
return {
|
|
3877
3906
|
...w,
|
|
3878
3907
|
enrichedFeeEstimation: S
|
|
@@ -3995,16 +4024,16 @@ class Yu {
|
|
|
3995
4024
|
}
|
|
3996
4025
|
}
|
|
3997
4026
|
}
|
|
3998
|
-
const
|
|
4027
|
+
const td = [
|
|
3999
4028
|
"account-upgrade",
|
|
4000
4029
|
"approve",
|
|
4001
4030
|
"set-approval-for-all",
|
|
4002
4031
|
"swap",
|
|
4003
4032
|
"transfer"
|
|
4004
|
-
],
|
|
4033
|
+
], ed = (t) => ({ showBalanceChange: It(() => {
|
|
4005
4034
|
const n = t == null ? void 0 : t.some((s) => !ln(s.transfers)), r = t == null ? void 0 : t.some((s) => !ln(s.approvals));
|
|
4006
4035
|
return t && (n || r);
|
|
4007
|
-
}, [t]) }), ge = (t) => t ? t.filter((e) => e.token.type === "erc20") : [],
|
|
4036
|
+
}, [t]) }), ge = (t) => t ? t.filter((e) => e.token.type === "erc20") : [], nd = (t) => It(() => ge(t), [t]), rd = (t) => ge(t).length > 0, sd = (t) => ge(t).some((n) => n.amount > 0n), od = (t) => ge(t).some((n) => n.amount < 0n), jr = (t) => t ? t.filter((e) => e.token.type === "erc721") : [], ad = (t) => It(() => jr(t), [t]), sl = (t) => jr(t).length > 0, id = (t) => It(() => sl(t), [t]), cd = (t, e) => It(() => t && e ? [
|
|
4008
4037
|
{
|
|
4009
4038
|
contractAddress: t.address,
|
|
4010
4039
|
entrypoint: "transfer",
|
|
@@ -4013,7 +4042,7 @@ const Xu = [
|
|
|
4013
4042
|
amount: Ut(t.balance)
|
|
4014
4043
|
})
|
|
4015
4044
|
}
|
|
4016
|
-
] : [], [t, e]),
|
|
4045
|
+
] : [], [t, e]), ld = ({ apiData: { apiBaseUrl: t, apiHeaders: e }, address: n, network: r, transactionReviewEnabled: s = !0, transactions: o }) => {
|
|
4017
4046
|
const a = qn(async () => {
|
|
4018
4047
|
if (!n || !r)
|
|
4019
4048
|
return;
|
|
@@ -4034,7 +4063,7 @@ const Xu = [
|
|
|
4034
4063
|
});
|
|
4035
4064
|
}, [n, r, o]), i = It(() => bs({ transactions: o, address: n, network: r }), [o, n, r]);
|
|
4036
4065
|
return Gs(!!s, [i, "transactionReview"], a);
|
|
4037
|
-
},
|
|
4066
|
+
}, ud = (t) => {
|
|
4038
4067
|
if (!t)
|
|
4039
4068
|
return {};
|
|
4040
4069
|
const e = t.assessment === "warn" && t.reason !== "contract_is_not_verified", n = t.reason ? ` (Reason: ${Kn(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;
|
|
@@ -4042,22 +4071,22 @@ const Xu = [
|
|
|
4042
4071
|
warn: e,
|
|
4043
4072
|
reason: r
|
|
4044
4073
|
};
|
|
4045
|
-
},
|
|
4074
|
+
}, ol = (t) => {
|
|
4046
4075
|
var e;
|
|
4047
4076
|
if (t) {
|
|
4048
4077
|
for (const n of t.reviews)
|
|
4049
4078
|
if (((e = n.activity) == null ? void 0 : e.type) === "swap")
|
|
4050
4079
|
return n;
|
|
4051
4080
|
}
|
|
4052
|
-
},
|
|
4053
|
-
},
|
|
4081
|
+
}, dd = (t) => {
|
|
4082
|
+
}, fd = (t, e) => {
|
|
4054
4083
|
var n;
|
|
4055
4084
|
if (e) {
|
|
4056
4085
|
for (const r of e.reviews)
|
|
4057
4086
|
if (((n = r.activity) == null ? void 0 : n.type) === t)
|
|
4058
4087
|
return r.activity;
|
|
4059
4088
|
}
|
|
4060
|
-
},
|
|
4089
|
+
}, hd = (t) => !!ol(t), pd = (t) => {
|
|
4061
4090
|
var e, n;
|
|
4062
4091
|
if (t) {
|
|
4063
4092
|
for (const r of t.reviews)
|
|
@@ -4067,7 +4096,7 @@ const Xu = [
|
|
|
4067
4096
|
type: (n = r.activity) == null ? void 0 : n.type
|
|
4068
4097
|
};
|
|
4069
4098
|
}
|
|
4070
|
-
},
|
|
4099
|
+
}, al = async ({ feeTokenAddress: t, calls: e, selectedAccount: n, transactionReviewService: r, appDomain: s, accountDeployTransaction: o }) => {
|
|
4071
4100
|
const a = {
|
|
4072
4101
|
type: "INVOKE",
|
|
4073
4102
|
calls: oe(e)
|
|
@@ -4076,7 +4105,7 @@ const Xu = [
|
|
|
4076
4105
|
return;
|
|
4077
4106
|
const i = o ? [o, a] : [a];
|
|
4078
4107
|
return { result: await r.simulateAndReview(n, i, t, s, o) };
|
|
4079
|
-
},
|
|
4108
|
+
}, il = async (t, e, n, r) => {
|
|
4080
4109
|
var w, m, S, f, g, b;
|
|
4081
4110
|
let s = !1;
|
|
4082
4111
|
const o = e.transactions.find((E) => {
|
|
@@ -4091,24 +4120,24 @@ const Xu = [
|
|
|
4091
4120
|
const c = "amount" in e.enrichedFeeEstimation.transactions.max ? e.enrichedFeeEstimation.transactions.max.amount : "maxFee" in e.enrichedFeeEstimation.transactions.max ? e.enrichedFeeEstimation.transactions.max.maxFee : void 0, l = (b = o.simulation.summary.find((E) => E.sent && E.token.address === n)) == null ? void 0 : b.value;
|
|
4092
4121
|
if (!c || !l)
|
|
4093
4122
|
return s;
|
|
4094
|
-
const d = await
|
|
4123
|
+
const d = await Vc(n, t, r) ?? 0n;
|
|
4095
4124
|
return BigInt(d) > c + BigInt(l) || (s = !0), s;
|
|
4096
|
-
},
|
|
4125
|
+
}, md = () => qn(async ({ feeTokenAddress: e, calls: n, selectedAccount: r, transactionReviewService: s, appDomain: o, accountDeployPayload: a, provider: i }) => {
|
|
4097
4126
|
if (!r)
|
|
4098
4127
|
return;
|
|
4099
|
-
const c = await
|
|
4128
|
+
const c = await al({
|
|
4100
4129
|
feeTokenAddress: e,
|
|
4101
4130
|
calls: n,
|
|
4102
4131
|
selectedAccount: r,
|
|
4103
4132
|
transactionReviewService: s,
|
|
4104
4133
|
appDomain: o,
|
|
4105
|
-
accountDeployTransaction:
|
|
4134
|
+
accountDeployTransaction: cl(a)
|
|
4106
4135
|
});
|
|
4107
4136
|
if (!c || !c.result || !e)
|
|
4108
4137
|
return;
|
|
4109
|
-
const l = await
|
|
4138
|
+
const l = await il(r.address, c.result, e, i);
|
|
4110
4139
|
return { ...c.result, isSendingMoreThanBalanceAndGas: l };
|
|
4111
|
-
}, []),
|
|
4140
|
+
}, []), cl = (t) => t ? {
|
|
4112
4141
|
type: "DEPLOY_ACCOUNT",
|
|
4113
4142
|
calldata: t.calldata,
|
|
4114
4143
|
classHash: Rt.parse(t.class_hash),
|
|
@@ -4118,335 +4147,338 @@ const Xu = [
|
|
|
4118
4147
|
export {
|
|
4119
4148
|
tt as ARGENT_ACCOUNT_CONTRACT_CLASS_HASHES,
|
|
4120
4149
|
Jt as ARGENT_MULTISIG_CONTRACT_CLASS_HASHES,
|
|
4121
|
-
|
|
4122
|
-
|
|
4150
|
+
Sl as AddSmartAccountResponseSchema,
|
|
4151
|
+
El as AddSmartAcountRequestSchema,
|
|
4123
4152
|
Ss as BackendAccountSchema,
|
|
4124
|
-
|
|
4125
|
-
|
|
4153
|
+
lu as BackendNftService,
|
|
4154
|
+
yd as BaseError,
|
|
4126
4155
|
Xs as C0_PROXY_CONTRACT_CLASS_HASHES,
|
|
4127
|
-
|
|
4156
|
+
Nl as CacheService,
|
|
4128
4157
|
Ht as DEFAULT_TOKEN_DECIMALS,
|
|
4129
|
-
|
|
4130
|
-
|
|
4158
|
+
Cl as DateService,
|
|
4159
|
+
bd as ESTIMATE_ERROR_MESSAGES,
|
|
4131
4160
|
Mn as ETH_TOKEN_ADDRESS,
|
|
4132
4161
|
os as EstimateError,
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4162
|
+
Sd as EventEmitterProvider,
|
|
4163
|
+
Ed as EventsBySelector,
|
|
4164
|
+
Ad as FEE_OVERHEAD,
|
|
4136
4165
|
Ue as HTTPService,
|
|
4137
4166
|
Je as HTTP_ERROR_MESSAGE,
|
|
4138
4167
|
K as HttpError,
|
|
4139
|
-
|
|
4168
|
+
zl as KnownDappsBackendService,
|
|
4140
4169
|
en as MultiSigner,
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4170
|
+
xu as OnchainRecoveryService,
|
|
4171
|
+
zc as PRETTY_UNLIMITED,
|
|
4172
|
+
Wl as ResolveNameService,
|
|
4144
4173
|
Wr as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
4145
4174
|
ke as STRK_TOKEN_ADDRESS,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4175
|
+
Ol as SWRService,
|
|
4176
|
+
Ul as StarknetAddressService,
|
|
4177
|
+
xd as TOKEN_ERROR_MESSAGES,
|
|
4178
|
+
vd as TXV1_ACCOUNT_CLASS_HASH,
|
|
4179
|
+
Id as TXV1_MULTISIG_CLASS_HASH,
|
|
4180
|
+
Td as TXV3_ACCOUNT_CLASS_HASH,
|
|
4181
|
+
Bd as TXV3_MULTISIG_CLASS_HASH,
|
|
4153
4182
|
rs as TokenError,
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4183
|
+
ju as TokenServiceWeb,
|
|
4184
|
+
Qu as TransactionReviewServiceWeb,
|
|
4185
|
+
_d as abiEntrySchema,
|
|
4186
|
+
Nd as abiSchema,
|
|
4187
|
+
Cd as addOwnersCalldataSchema,
|
|
4188
|
+
Od as addPluginCalldataSchema,
|
|
4189
|
+
kd as addressInputCharactersAndLengthSchema,
|
|
4190
|
+
Pd as addressInputSchema,
|
|
4191
|
+
Rd as addressOrDomainInputSchema,
|
|
4192
|
+
$d as addressOrDomainSchema,
|
|
4193
|
+
Fd as addressOrEmptyUndefinedSchema,
|
|
4165
4194
|
se as addressSchema,
|
|
4166
4195
|
Vn as addressSchemaArgentBackend,
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4196
|
+
Ud as addressSchemaBase,
|
|
4197
|
+
jd as addressSchemaLooseLength,
|
|
4198
|
+
Ld as addressSchemaStrictLength,
|
|
4199
|
+
Dd as airdropSchema,
|
|
4171
4200
|
es as apiAccountTokenBalancesSchema,
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4201
|
+
Hd as apiAirdropSchema,
|
|
4202
|
+
Vd as apiCollateralizedDebtPositionSchema,
|
|
4203
|
+
Md as apiCollateralizedDebtPositionsSchema,
|
|
4204
|
+
Gd as apiConcentratedLiquidityPositionSchema,
|
|
4205
|
+
zd as apiConcentratedLiquidityPositionsSchema,
|
|
4206
|
+
qd as apiDefiDecompositionProduct,
|
|
4207
|
+
Wd as apiDefiDecompositionProducts,
|
|
4208
|
+
Kd as apiDefiDecompositionSchema,
|
|
4209
|
+
Zd as apiDefiDecompositionToken,
|
|
4181
4210
|
ns as apiDefiPositionsSchema,
|
|
4182
|
-
|
|
4183
|
-
|
|
4211
|
+
Yd as apiPriceDataResponseSchema,
|
|
4212
|
+
Xd as apiPriceDetailsSchema,
|
|
4184
4213
|
ts as apiTokenInfoResponseSchema,
|
|
4185
|
-
|
|
4214
|
+
Jd as apiTokenInfoSchema,
|
|
4186
4215
|
Qr as apiTokensInfoResponseSchema,
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4216
|
+
td as apiTransactionReviewActivityType,
|
|
4217
|
+
Qd as apiUnclaimedRewardsSchema,
|
|
4218
|
+
tf as apiWalletResponseSchema,
|
|
4190
4219
|
xs as argentBackendNetworkIdSchema,
|
|
4191
4220
|
as as argentMaxFee,
|
|
4192
|
-
|
|
4221
|
+
ef as argentNameSchema,
|
|
4193
4222
|
As as argentNetworkIdSchema,
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4223
|
+
_l as bigDecimal,
|
|
4224
|
+
nf as bigNumberSchema,
|
|
4225
|
+
rf as bigNumberishSchema,
|
|
4226
|
+
sf as booleanToStringSchema,
|
|
4227
|
+
cl as buildAccountDeployTransaction,
|
|
4199
4228
|
Ea as buildConstructorCalldata,
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4229
|
+
qu as buildDummyTx,
|
|
4230
|
+
of as builtinsSchema,
|
|
4231
|
+
af as byteCodeSchema,
|
|
4232
|
+
cf as cairo1EventSchema,
|
|
4233
|
+
lf as cairoAssemblySchema,
|
|
4234
|
+
uf as cairoVersionSchema,
|
|
4235
|
+
nl as calculateCubeRootAdjustment,
|
|
4236
|
+
Zu as calculateNonLinearAdjustment,
|
|
4237
|
+
Ku as calculateSqrtAdjustment,
|
|
4238
|
+
df as callDetailsSchema,
|
|
4210
4239
|
Lr as callSchema,
|
|
4211
|
-
|
|
4240
|
+
ff as calldataSchema,
|
|
4212
4241
|
xt as castFeeEstimation,
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4242
|
+
hf as changeGuardianCalldataSchema,
|
|
4243
|
+
pf as changeThresholdCalldataSchema,
|
|
4244
|
+
il as checkGasFeeBalance,
|
|
4245
|
+
Yu as classHashSupportsTxV3,
|
|
4246
|
+
mf as collateralizedDebtGroupSchema,
|
|
4247
|
+
gf as collateralizedDebtPositionSchema,
|
|
4248
|
+
wf as collateralizedDebtPositionsSchema,
|
|
4249
|
+
yf as compiledContractClassSchema,
|
|
4250
|
+
bf as compiledSierraCasmSchema,
|
|
4251
|
+
Sf as compiledSierraSchema,
|
|
4252
|
+
Ef as compressedProgramSchema,
|
|
4253
|
+
Af as concentratedLiquidityPositionSchema,
|
|
4254
|
+
xf as concentratedLiquidityPositionsSchema,
|
|
4226
4255
|
Kr as constructorCallDataSchemaC0,
|
|
4227
4256
|
Zr as constructorCallDataSchemaC1V1,
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4257
|
+
vf as contractEntryPointFieldsSchema,
|
|
4258
|
+
Pu as convertTokenAmountToCurrencyValue,
|
|
4259
|
+
Ru as convertTokenUnitAmountWithDecimals,
|
|
4231
4260
|
va as dappContractSchema,
|
|
4232
4261
|
xa as dappLinkSchema,
|
|
4233
|
-
|
|
4262
|
+
Jl as daysBetween,
|
|
4234
4263
|
di as decodeBase58,
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4264
|
+
Xl as decodeBase58Array,
|
|
4265
|
+
If as defiDappsProductsSchema,
|
|
4266
|
+
Tf as defiPositionSchema,
|
|
4267
|
+
Bf as defiPositionTypeSchema,
|
|
4268
|
+
_f as defiProductSchema,
|
|
4269
|
+
Nf as defiProductsSchema,
|
|
4270
|
+
Cf as denyTxV3,
|
|
4242
4271
|
ui as encodeBase58,
|
|
4243
|
-
|
|
4272
|
+
Yl as encodeBase58Array,
|
|
4244
4273
|
oe as ensureArray,
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4274
|
+
$u as ensureDecimals,
|
|
4275
|
+
au as entryPointToHumanReadable,
|
|
4276
|
+
Of as entryPointsByTypeSchema,
|
|
4277
|
+
pu as equalNft,
|
|
4278
|
+
Lu as erc20TransferTransaction,
|
|
4279
|
+
Hu as erc721SafeTransferFromTransaction,
|
|
4280
|
+
Du as erc721TransferFromTransaction,
|
|
4281
|
+
kf as escapeGuardianCalldataSchema,
|
|
4253
4282
|
Oe as estimatedFeeToMaxFeeTotal,
|
|
4254
|
-
|
|
4283
|
+
Wu as estimatedFeeToMaxResourceBounds,
|
|
4255
4284
|
re as estimatedFeeToTotal,
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4285
|
+
zu as estimatedFeesToMaxFeeTotal,
|
|
4286
|
+
Gu as estimatedFeesToTotal,
|
|
4287
|
+
Pf as eventAbiSchema,
|
|
4288
|
+
Rf as eventEntrySchema,
|
|
4289
|
+
$f as executeOnPluginCalldataSchema,
|
|
4261
4290
|
Ke as feeTokenNeedsTxV3Support,
|
|
4262
|
-
|
|
4291
|
+
Ff as feltSchema,
|
|
4263
4292
|
tr as fetchData,
|
|
4264
4293
|
Xt as fetcherError,
|
|
4265
|
-
|
|
4266
|
-
|
|
4294
|
+
Vl as findImplementationForAccount,
|
|
4295
|
+
Uf as findTransfersAndApprovals,
|
|
4267
4296
|
or as formatAddress,
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4297
|
+
jf as formatFullAddress,
|
|
4298
|
+
Lf as formatTruncatedAddress,
|
|
4299
|
+
Df as formatTruncatedSignerKey,
|
|
4300
|
+
Hf as formatTruncatedString,
|
|
4301
|
+
Vf as functionAbiSchema,
|
|
4302
|
+
Mf as functionAbiTypeSchema,
|
|
4274
4303
|
ee as generateAvatarImage,
|
|
4275
4304
|
Aa as getAccountContractAddress,
|
|
4276
4305
|
Sa as getAccountDeploymentPayload,
|
|
4277
|
-
|
|
4306
|
+
Rl as getAccountIdentifier,
|
|
4278
4307
|
zr as getAddressFromArgentName,
|
|
4279
4308
|
Ys as getAddressFromStarkName,
|
|
4280
4309
|
hn as getArgentAccountClassHashes,
|
|
4281
4310
|
ya as getArgentAccountClassHashesWithTxV3Support,
|
|
4282
4311
|
wa as getArgentAccountWithMultiSignerClassHashes,
|
|
4283
|
-
|
|
4312
|
+
Fl as getBackendTimeNowSeconds,
|
|
4284
4313
|
zs as getBackendTimeSeconds,
|
|
4285
4314
|
Zs as getCallFromStarkName,
|
|
4286
4315
|
qs as getChainIdFromNetworkId,
|
|
4287
4316
|
ci as getColor,
|
|
4288
4317
|
Ba as getDapplandLinkForDapp,
|
|
4289
|
-
|
|
4290
|
-
|
|
4318
|
+
ql as getDapplandUrlForDapp,
|
|
4319
|
+
ud as getDisplayWarnAndReasonForTransactionReview,
|
|
4291
4320
|
ge as getERC20Transactions,
|
|
4292
4321
|
jr as getERC721Transactions,
|
|
4293
|
-
|
|
4294
|
-
|
|
4322
|
+
Qc as getEstimatedFeeFromBulkSimulation,
|
|
4323
|
+
el as getEstimatedFeeFromSimulationAndRespectWatermarkFee,
|
|
4295
4324
|
ai as getInitials,
|
|
4296
|
-
|
|
4325
|
+
Ll as getLastCairo0ArgentAccountClassHash,
|
|
4297
4326
|
ga as getLatestArgentAccountClassHash,
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4327
|
+
jl as getLatestArgentMultisigClassHash,
|
|
4328
|
+
Hl as getLatestLedgerAccountClassHash,
|
|
4329
|
+
Dl as getLedgerAccountClassHashes,
|
|
4330
|
+
Gf as getMessageFromTrpcError,
|
|
4331
|
+
dd as getNFTTransferActivity,
|
|
4332
|
+
Zl as getNetworkAccountImageUrl,
|
|
4333
|
+
hu as getNftPicture,
|
|
4334
|
+
tl as getPayloadFromTransaction,
|
|
4335
|
+
zf as getPrettyRpcError,
|
|
4336
|
+
al as getReviewForTransactions,
|
|
4308
4337
|
tn as getSignerForMultiSigner,
|
|
4309
|
-
|
|
4338
|
+
Xu as getSimulationTxVersionFromFeeToken,
|
|
4310
4339
|
Ks as getStarknetIdContractAddressFromNetworkId,
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4340
|
+
Vc as getTokenBalance,
|
|
4341
|
+
Ou as getTokens,
|
|
4342
|
+
Cu as getTokensBalances,
|
|
4343
|
+
fd as getTransactionReviewActivityOfType,
|
|
4344
|
+
hd as getTransactionReviewHasSwap,
|
|
4345
|
+
ol as getTransactionReviewSwap,
|
|
4346
|
+
pd as getTransactionReviewWithType,
|
|
4318
4347
|
jn as getTxVersionFromFeeToken,
|
|
4319
|
-
|
|
4320
|
-
|
|
4348
|
+
Ju as getTxVersionFromFeeTokenForDeclareContract,
|
|
4349
|
+
Hc as getUAParserResult,
|
|
4321
4350
|
Ut as getUint256CalldataFromBN,
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4351
|
+
Jc as getWatermarkedMaxFeeTotal,
|
|
4352
|
+
rd as hasERC20Transactions,
|
|
4353
|
+
sl as hasERC721Transactions,
|
|
4354
|
+
sd as hasIncomingERC20Transactions,
|
|
4355
|
+
od as hasOutgoingERC20Transactions,
|
|
4327
4356
|
Rt as hexSchema,
|
|
4328
|
-
|
|
4357
|
+
qf as hexSchemaBase,
|
|
4329
4358
|
si as id,
|
|
4330
4359
|
Qe as implementationSchema,
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4360
|
+
Wf as includesAddress,
|
|
4361
|
+
Kf as inputAmountSchema,
|
|
4362
|
+
vl as isAccountV4,
|
|
4363
|
+
xl as isAccountV5,
|
|
4364
|
+
Al as isAccountV6,
|
|
4336
4365
|
Vr as isAddress,
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4366
|
+
nu as isAllowedAddressHexInputValue,
|
|
4367
|
+
ru as isAllowedNumericInputValue,
|
|
4368
|
+
Bl as isArgentBackendNetworkId,
|
|
4340
4369
|
Gr as isArgentName,
|
|
4341
|
-
|
|
4342
|
-
|
|
4370
|
+
Tl as isArgentNetworkId,
|
|
4371
|
+
vu as isBraveBrowser,
|
|
4343
4372
|
me as isBrowser,
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4373
|
+
Tu as isChromeBrowser,
|
|
4374
|
+
tu as isContractDeployed,
|
|
4375
|
+
_u as isEdgeBrowser,
|
|
4347
4376
|
nt as isEqualAddress,
|
|
4348
|
-
|
|
4377
|
+
Zf as isEqualArgentName,
|
|
4349
4378
|
ba as isEqualImplementation,
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4379
|
+
Yf as isEqualStarknetDomainName,
|
|
4380
|
+
Xf as isEqualStarknetId,
|
|
4381
|
+
Xc as isFRI,
|
|
4382
|
+
Ql as isFeatureEnabled,
|
|
4383
|
+
Iu as isFirefoxBrowser,
|
|
4355
4384
|
Y as isNumeric,
|
|
4356
|
-
|
|
4357
|
-
|
|
4385
|
+
Bu as isSafariBrowser,
|
|
4386
|
+
Jf as isStarknetDomainName,
|
|
4358
4387
|
Mr as isStarknetId,
|
|
4359
|
-
|
|
4388
|
+
Gc as isUnlimitedAmount,
|
|
4360
4389
|
Hr as isValidAddress,
|
|
4361
|
-
|
|
4390
|
+
Qf as isValidInputAmount,
|
|
4362
4391
|
Fr as isWEI,
|
|
4363
4392
|
Dr as isZeroAddress,
|
|
4364
4393
|
Ia as knownDappSchema,
|
|
4365
4394
|
Ta as knownDappsSchema,
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4395
|
+
th as legacyContractClassSchema,
|
|
4396
|
+
eh as legacyEventSchema,
|
|
4397
|
+
nh as modifySnjsFeeOverhead,
|
|
4398
|
+
rh as multiTypeSchema,
|
|
4399
|
+
Vu as multiplyBigIntByFloat,
|
|
4371
4400
|
Na as nameProviderResolutionSchema,
|
|
4372
4401
|
Ca as nameResolutionAddressSchema,
|
|
4373
4402
|
ka as nameResolutionAddressesSchema,
|
|
4374
4403
|
sr as nameResolutionStarknetIdSchema,
|
|
4375
4404
|
_a as nameResolutionStarknetIdsSchema,
|
|
4376
|
-
|
|
4405
|
+
eu as nonNullable,
|
|
4377
4406
|
Hn as normalizeAddress,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4407
|
+
sh as normalizeAddressOrDomain,
|
|
4408
|
+
oh as normalizeArgentName,
|
|
4409
|
+
ah as normalizeStarknetId,
|
|
4410
|
+
Eu as onchainRecoverySchema,
|
|
4411
|
+
ih as parseAmount,
|
|
4383
4412
|
pi as parseAmountValue,
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4413
|
+
su as pluralise,
|
|
4414
|
+
kl as postData,
|
|
4415
|
+
Il as preferencesEndpointPayload,
|
|
4387
4416
|
Es as preferencesSchema,
|
|
4388
4417
|
fi as prettifyCurrencyNumber,
|
|
4389
|
-
|
|
4418
|
+
Fu as prettifyCurrencyValue,
|
|
4390
4419
|
fr as prettifyNumber,
|
|
4391
4420
|
Le as prettifyNumberConfig,
|
|
4392
|
-
|
|
4421
|
+
Uu as prettifyTokenAmount,
|
|
4393
4422
|
hi as prettifyTokenNumber,
|
|
4394
|
-
|
|
4395
|
-
|
|
4423
|
+
ch as productGroupsSchema,
|
|
4424
|
+
lh as programSchema,
|
|
4396
4425
|
Oa as providersNamesSchema,
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4426
|
+
uh as pythonicHintsSchema,
|
|
4427
|
+
dh as rawArgsArraySchema,
|
|
4428
|
+
fh as rawArgsObjectSchema,
|
|
4429
|
+
hh as rawArgsSchema,
|
|
4430
|
+
ou as readFileAsString,
|
|
4431
|
+
Su as recoveryBodySchema,
|
|
4432
|
+
Lc as recoveryStatusSchema,
|
|
4433
|
+
ph as removeOwnersCalldataSchema,
|
|
4434
|
+
mh as removePluginCalldataSchema,
|
|
4435
|
+
gh as replaceSignerCalldataSchema,
|
|
4436
|
+
Nu as seedphraseSchema,
|
|
4437
|
+
wh as sierraContractEntryPointFieldsSchema,
|
|
4438
|
+
yh as sierraEntryPointsByTypeSchema,
|
|
4439
|
+
bh as sierraProgramDebugInfoSchema,
|
|
4411
4440
|
Ws as starkNameToCallDataDomain,
|
|
4412
|
-
|
|
4441
|
+
Sh as starknetDomainNameSchema,
|
|
4413
4442
|
Yr as starknetIdSchema,
|
|
4414
|
-
|
|
4443
|
+
Au as startOnchainRecoveryErrorSchema,
|
|
4444
|
+
Dc as startOnchainRecoveryErrorStatusSchema,
|
|
4445
|
+
jc as startOnchainRecoverySchema,
|
|
4446
|
+
Eh as stringToBooleanSchema,
|
|
4415
4447
|
li as stripAddressZeroPadding,
|
|
4416
|
-
|
|
4417
|
-
|
|
4448
|
+
Ah as structAbiSchema,
|
|
4449
|
+
$l as swrRefetchDisabledConfig,
|
|
4418
4450
|
$t as toMax,
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4451
|
+
Mu as tokensRequireTxV3Support,
|
|
4452
|
+
xh as transactionReviewTransactionsSchema,
|
|
4453
|
+
vh as transactionReviewWarningSchema,
|
|
4422
4454
|
ss as transferCalldataSchema,
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4455
|
+
Ih as trpcErrorSchema,
|
|
4456
|
+
Th as txVersionSchema,
|
|
4457
|
+
Bh as uint256Schema,
|
|
4458
|
+
_h as unclaimedRewardsSchema,
|
|
4427
4459
|
Be as unitToFeeTokenAddress,
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4460
|
+
iu as urlWithQuery,
|
|
4461
|
+
ed as useBalanceChange,
|
|
4462
|
+
du as useCollection,
|
|
4431
4463
|
Gs as useConditionallyEnabledSWR,
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4464
|
+
Ml as useDebounce,
|
|
4465
|
+
Gl as useDebouncedValue,
|
|
4466
|
+
nd as useERC20Transactions,
|
|
4467
|
+
ad as useERC721Transactions,
|
|
4468
|
+
Nh as useEmitEvent,
|
|
4469
|
+
Ch as useEventEmitter,
|
|
4470
|
+
Oh as useEventEmitterContext,
|
|
4471
|
+
kh as useEventListener,
|
|
4472
|
+
id as useHasERC721Transaction,
|
|
4473
|
+
Ph as useIsEventEmitterEnabled,
|
|
4474
|
+
cd as useMaxAmountTransaction,
|
|
4475
|
+
fu as useNft,
|
|
4476
|
+
uu as useNfts,
|
|
4477
|
+
ku as useToken,
|
|
4478
|
+
ld as useTransactionReview,
|
|
4479
|
+
md as useTransactionReviewV2webFetcher,
|
|
4480
|
+
Rh as validChecksumAddressSchema,
|
|
4481
|
+
$h as validateAddressRangeSchema,
|
|
4482
|
+
cu as voidify,
|
|
4483
|
+
Pl as withPolling
|
|
4452
4484
|
};
|