@argent/x-shared 1.29.1 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/simulation/warning/helper.d.ts +3 -0
- package/dist/features/simulation/warning/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +210 -210
- package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +3 -5
- package/dist/onchainRecovery/OnchainRecoveryService.d.ts +3 -5
- package/dist/onchainRecovery/schema.d.ts +8 -10
- package/dist/simulation.js +1 -1
- package/dist/simulation.mjs +102 -92
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import F, { z as c } from "zod";
|
|
2
2
|
import { H as X, a as hn, u as R, N as er, c as Re, C as nr, A as vt, i as us, b as ds, n as rr, d as fs, e as hs, f as ps, g as ms, s as et, h as st, j as pn, k as gs, S as ws, l as mn, M as gn, m as ys, o as bs, p as le, q as Ss, r as j, B as wn, t as ue, v as gt, w as Es, x as Me, y as qe, E as sr, z as As, D as Ie, F as xs, G as Is } from "./schema-3qaq9ugL.mjs";
|
|
3
|
-
import { aZ as
|
|
3
|
+
import { aZ as Ef, a6 as Af, a8 as xf, a7 as If, a9 as Tf, aE as vf, aM as _f, as as Nf, aw as Bf, a0 as Cf, a1 as kf, Y as Of, X as Pf, P as Rf, K as Uf, L as Ff, O as $f, aa as jf, a2 as Lf, ad as Df, ah as Hf, af as Vf, az as Mf, aO as qf, aJ as zf, aU as Gf, a5 as Wf, ao as Kf, aj as Zf, aq as Yf, av as Xf, aW as Jf, aV as Qf, aS as th, aC as eh, aA as nh, aB as rh, ar as sh, aL as oh, aH as ah, ay as ih, ap as ch, R as lh, Q as uh, U as dh, V as fh, aG as hh, aF as ph, ae as mh, T as gh, a3 as wh, _ as yh, ab as bh, Z as Sh, aN as Eh, aI as Ah, al as xh, $ as Ih, a4 as Th, ac as vh, aD as _h, aT as Nh, ak as Bh, am as Ch, an as kh, at as Oh, ax as Ph, au as Rh, aQ as Uh, aR as Fh, aP as $h, W as jh, ag as Lh, aK as Dh, ai as Hh, a$ as Vh, a_ as Mh, aX as qh, b0 as zh, aY as Gh, I as Wh, J as Kh } from "./schema-3qaq9ugL.mjs";
|
|
4
4
|
import { constants as D, starknetId as or, CallData as St, CairoOption as yn, CairoOptionVariant as bn, hash as Qt, num as N, encode as pt, uint256 as dt, ec as Sn, isSierra as Ts, TransactionType as En } from "starknet";
|
|
5
5
|
import { useEffect as te, useRef as An, useState as vs, useMemo as Bt, useCallback as ar } from "react";
|
|
6
6
|
import { isFunction as Kt, isString as ze, upperCase as Ge, isNil as _s, upperFirst as Ns, lowerCase as ir, isUndefined as Bs, isEmpty as Ue, isArray as Cs } from "lodash-es";
|
|
@@ -3169,9 +3169,7 @@ function Qc(t, e) {
|
|
|
3169
3169
|
return o.m = n, o.rate = t.rate, o.capacity = t.capacity, o;
|
|
3170
3170
|
}
|
|
3171
3171
|
Qc({ Fp: Yc, rate: 2, capacity: 1, roundsFull: 8, roundsPartial: 83 }, Jc);
|
|
3172
|
-
const
|
|
3173
|
-
recoveryId: c.number()
|
|
3174
|
-
}), id = c.object({
|
|
3172
|
+
const id = c.object({
|
|
3175
3173
|
feeToken: j,
|
|
3176
3174
|
signerSignature: c.object({
|
|
3177
3175
|
type: c.literal("StarknetKey"),
|
|
@@ -3181,16 +3179,18 @@ const tl = c.object({
|
|
|
3181
3179
|
s: gt
|
|
3182
3180
|
})
|
|
3183
3181
|
})
|
|
3184
|
-
}),
|
|
3182
|
+
}), tl = c.enum([
|
|
3185
3183
|
"ONGOING",
|
|
3186
3184
|
"COMPLETED",
|
|
3187
3185
|
"ERROR",
|
|
3188
3186
|
"CANCELLED",
|
|
3189
3187
|
"AWAITING_FUNDS"
|
|
3190
|
-
]),
|
|
3191
|
-
status:
|
|
3188
|
+
]), el = c.object({
|
|
3189
|
+
status: tl,
|
|
3190
|
+
recoveryId: c.number().optional(),
|
|
3191
|
+
completionTime: c.array(c.number())
|
|
3192
3192
|
});
|
|
3193
|
-
class
|
|
3193
|
+
class cd {
|
|
3194
3194
|
constructor(e, n) {
|
|
3195
3195
|
this.apiBase = e, this.httpService = n;
|
|
3196
3196
|
}
|
|
@@ -3208,10 +3208,11 @@ class ld {
|
|
|
3208
3208
|
};
|
|
3209
3209
|
return await this.httpService.post(`${this.apiBase}/accounts/starknet/${e}/recovery`, {
|
|
3210
3210
|
body: JSON.stringify(i)
|
|
3211
|
-
},
|
|
3211
|
+
}, el);
|
|
3212
3212
|
}
|
|
3213
3213
|
async getRecovery(e, n) {
|
|
3214
|
-
|
|
3214
|
+
const r = R(this.apiBase, "accounts", "starknet", e, "recovery", n ? `${n}` : "");
|
|
3215
|
+
return await this.httpService.get(r);
|
|
3215
3216
|
}
|
|
3216
3217
|
async cancelRecovery(e, n, r, s) {
|
|
3217
3218
|
const { r: o, s: a } = Sn.starkCurve.sign(Zn(Yn(xn("utf8", "starknet:recovery:cancel")), r), s), i = {
|
|
@@ -3229,7 +3230,7 @@ class ld {
|
|
|
3229
3230
|
});
|
|
3230
3231
|
}
|
|
3231
3232
|
}
|
|
3232
|
-
async function
|
|
3233
|
+
async function ld() {
|
|
3233
3234
|
if ("brave" in navigator)
|
|
3234
3235
|
try {
|
|
3235
3236
|
return await navigator.brave.isBrave();
|
|
@@ -3244,19 +3245,19 @@ function nl() {
|
|
|
3244
3245
|
function Se(t) {
|
|
3245
3246
|
return nl().browser.name === t;
|
|
3246
3247
|
}
|
|
3247
|
-
function
|
|
3248
|
+
function ud() {
|
|
3248
3249
|
return Se("Firefox");
|
|
3249
3250
|
}
|
|
3250
|
-
function
|
|
3251
|
+
function dd() {
|
|
3251
3252
|
return Se("Chrome");
|
|
3252
3253
|
}
|
|
3253
|
-
function
|
|
3254
|
+
function fd() {
|
|
3254
3255
|
return Se("Safari");
|
|
3255
3256
|
}
|
|
3256
|
-
function
|
|
3257
|
+
function hd() {
|
|
3257
3258
|
return Se("Edge");
|
|
3258
3259
|
}
|
|
3259
|
-
const
|
|
3260
|
+
const pd = c.string().refine((t) => Ps(t, Rs), "Invalid seedphrase"), an = [
|
|
3260
3261
|
{
|
|
3261
3262
|
address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
|
|
3262
3263
|
name: "Ether",
|
|
@@ -3443,7 +3444,7 @@ const md = c.string().refine((t) => Ps(t, Rs), "Invalid seedphrase"), an = [
|
|
|
3443
3444
|
low: r[0],
|
|
3444
3445
|
high: r[1]
|
|
3445
3446
|
})));
|
|
3446
|
-
},
|
|
3447
|
+
}, md = async (t, e, n) => {
|
|
3447
3448
|
const r = an.filter((o) => o.networkId === t);
|
|
3448
3449
|
return (await Promise.allSettled(r.map((o) => e.callContract({
|
|
3449
3450
|
contractAddress: o.address,
|
|
@@ -3461,7 +3462,7 @@ const md = c.string().refine((t) => Ps(t, Rs), "Invalid seedphrase"), an = [
|
|
|
3461
3462
|
};
|
|
3462
3463
|
return o.push(u), o;
|
|
3463
3464
|
}, []);
|
|
3464
|
-
},
|
|
3465
|
+
}, gd = async () => an, wd = ({ address: t, networkId: e }) => an.find((r) => r.address === t && r.networkId === e), yd = ({ amount: t, decimals: e, unitCurrencyValue: n }) => {
|
|
3465
3466
|
if (!J(t) || !J(e) || !J(n))
|
|
3466
3467
|
return;
|
|
3467
3468
|
const r = Number(e), s = BigInt(t) * Ze(n.toString()).value;
|
|
@@ -3469,17 +3470,17 @@ const md = c.string().refine((t) => Ps(t, Rs), "Invalid seedphrase"), an = [
|
|
|
3469
3470
|
value: s,
|
|
3470
3471
|
decimals: r + Mt
|
|
3471
3472
|
});
|
|
3472
|
-
},
|
|
3473
|
+
}, bd = ({ unitAmount: t, decimals: e }) => {
|
|
3473
3474
|
if (t === void 0 || !J(t) || e === void 0 || !J(e))
|
|
3474
3475
|
return;
|
|
3475
3476
|
const n = Number(e);
|
|
3476
3477
|
return Et(t.toString(), n).value.toString();
|
|
3477
|
-
},
|
|
3478
|
+
}, Sd = (t) => J(t) ? Number(t) : 18, { UINT_256_MAX: sl } = dt, ol = (t) => String(t) === String(sl), Ed = (t, e = "$", n) => {
|
|
3478
3479
|
if (t === void 0 || !J(t))
|
|
3479
3480
|
return null;
|
|
3480
3481
|
const r = Ni(t, n);
|
|
3481
3482
|
return [e, r].filter(Boolean).join("");
|
|
3482
|
-
}, al = "Unlimited",
|
|
3483
|
+
}, al = "Unlimited", Ad = ({ amount: t, decimals: e, symbol: n, showPlusSign: r = !1, withSymbol: s = !0, unlimitedText: o = al, prettyConfigOverrides: a }) => {
|
|
3483
3484
|
if (!J(t))
|
|
3484
3485
|
return null;
|
|
3485
3486
|
let i, l = !1;
|
|
@@ -3692,7 +3693,7 @@ const Yr = c.union([
|
|
|
3692
3693
|
ccyValue: c.string(),
|
|
3693
3694
|
ethDayChange: c.string(),
|
|
3694
3695
|
ccyDayChange: c.string()
|
|
3695
|
-
}),
|
|
3696
|
+
}), xd = c.object({
|
|
3696
3697
|
prices: c.array(Xr)
|
|
3697
3698
|
}), Xn = c.object({
|
|
3698
3699
|
tokenAddress: le,
|
|
@@ -3712,7 +3713,7 @@ const Yr = c.union([
|
|
|
3712
3713
|
token0: Xn,
|
|
3713
3714
|
token1: Xn
|
|
3714
3715
|
})
|
|
3715
|
-
}),
|
|
3716
|
+
}), Id = c.array(Qr), ts = Jr.extend({
|
|
3716
3717
|
data: c.object({
|
|
3717
3718
|
apy: c.string().optional(),
|
|
3718
3719
|
group: c.number().optional(),
|
|
@@ -3720,7 +3721,7 @@ const Yr = c.union([
|
|
|
3720
3721
|
debt: c.boolean(),
|
|
3721
3722
|
lending: c.boolean()
|
|
3722
3723
|
})
|
|
3723
|
-
}),
|
|
3724
|
+
}), Td = c.array(ts), wl = c.array(Qr.or(ts)), yl = c.object({
|
|
3724
3725
|
name: c.string(),
|
|
3725
3726
|
manageUrl: c.string(),
|
|
3726
3727
|
type: Yr,
|
|
@@ -3741,12 +3742,12 @@ const Yr = c.union([
|
|
|
3741
3742
|
claimUrl: c.string().optional(),
|
|
3742
3743
|
claimStart: c.number(),
|
|
3743
3744
|
claimEnd: c.number().optional()
|
|
3744
|
-
}),
|
|
3745
|
+
}), vd = c.object({
|
|
3745
3746
|
accountAddress: j,
|
|
3746
3747
|
chain: c.string(),
|
|
3747
3748
|
airdrops: c.array(El)
|
|
3748
3749
|
});
|
|
3749
|
-
class
|
|
3750
|
+
class _d {
|
|
3750
3751
|
constructor(e, n) {
|
|
3751
3752
|
this.apiBase = e, this.httpService = n, this.TOKENS_INFO_URL = "/tokens/info", this.TOKENS_DEFI_DECOMPOSITION_URL = "/tokens/defi/decomposition";
|
|
3752
3753
|
}
|
|
@@ -3857,7 +3858,7 @@ const Jn = cn.extend({
|
|
|
3857
3858
|
unitCurrencyValueToken1: c.string().optional(),
|
|
3858
3859
|
token0: Jn,
|
|
3859
3860
|
token1: Jn
|
|
3860
|
-
}),
|
|
3861
|
+
}), Nd = c.array(rs), Bd = c.object({
|
|
3861
3862
|
name: c.string().optional(),
|
|
3862
3863
|
healthRatio: c.string().optional(),
|
|
3863
3864
|
accountAddress: j.optional()
|
|
@@ -3873,7 +3874,7 @@ const Jn = cn.extend({
|
|
|
3873
3874
|
token: cn.optional(),
|
|
3874
3875
|
accountAddress: j.optional(),
|
|
3875
3876
|
accountAddressGroup: c.string().optional()
|
|
3876
|
-
}),
|
|
3877
|
+
}), Cd = c.array(ss), Il = rs.or(ss), Tl = c.record(c.object({
|
|
3877
3878
|
name: c.string().optional(),
|
|
3878
3879
|
healthRatio: c.string().optional(),
|
|
3879
3880
|
accountAddress: j.optional()
|
|
@@ -3887,7 +3888,7 @@ const Jn = cn.extend({
|
|
|
3887
3888
|
brandColor: c.string().optional(),
|
|
3888
3889
|
groups: Tl.optional(),
|
|
3889
3890
|
accountAddress: j
|
|
3890
|
-
}), _l = c.array(vl),
|
|
3891
|
+
}), _l = c.array(vl), kd = c.object({
|
|
3891
3892
|
dappId: c.string(),
|
|
3892
3893
|
products: _l
|
|
3893
3894
|
}), Nl = c.object({
|
|
@@ -3898,7 +3899,7 @@ const Jn = cn.extend({
|
|
|
3898
3899
|
claimUrl: c.string().optional(),
|
|
3899
3900
|
claimStart: c.number(),
|
|
3900
3901
|
claimEnd: c.number().optional()
|
|
3901
|
-
}),
|
|
3902
|
+
}), Od = c.array(Nl), Bl = (t, e = 18) => Et(t.replace(",", "."), Number(e)), Cl = c.string().trim().refine((t) => t !== "", {
|
|
3902
3903
|
message: "Amount is required"
|
|
3903
3904
|
}).refine((t) => {
|
|
3904
3905
|
try {
|
|
@@ -3913,14 +3914,14 @@ const Jn = cn.extend({
|
|
|
3913
3914
|
throw new Error("Amount should be a number");
|
|
3914
3915
|
}
|
|
3915
3916
|
return !0;
|
|
3916
|
-
}, { message: "Invalid amount" }),
|
|
3917
|
+
}, { message: "Invalid amount" }), Pd = (t) => !!Cl.parse(t), Rd = (t, e, n, r) => ({
|
|
3917
3918
|
contractAddress: t,
|
|
3918
3919
|
entrypoint: "transfer",
|
|
3919
3920
|
calldata: St.compile({
|
|
3920
3921
|
recipient: e,
|
|
3921
3922
|
amount: Dt(Ci(n, r))
|
|
3922
3923
|
})
|
|
3923
|
-
}),
|
|
3924
|
+
}), Ud = (t, e, n, r) => ({
|
|
3924
3925
|
contractAddress: t,
|
|
3925
3926
|
entrypoint: "transferFrom",
|
|
3926
3927
|
calldata: St.compile({
|
|
@@ -3929,7 +3930,7 @@ const Jn = cn.extend({
|
|
|
3929
3930
|
tokenId: Dt(r)
|
|
3930
3931
|
// OZ specs need a uint256 as tokenId
|
|
3931
3932
|
})
|
|
3932
|
-
}),
|
|
3933
|
+
}), Fd = (t, e, n, r) => ({
|
|
3933
3934
|
contractAddress: t,
|
|
3934
3935
|
entrypoint: "safeTransferFrom",
|
|
3935
3936
|
calldata: St.compile({
|
|
@@ -3948,14 +3949,14 @@ const Jn = cn.extend({
|
|
|
3948
3949
|
message: c.string()
|
|
3949
3950
|
// "foo.stark not found"
|
|
3950
3951
|
})
|
|
3951
|
-
}),
|
|
3952
|
+
}), $d = (t) => {
|
|
3952
3953
|
const e = kl.safeParse(t);
|
|
3953
3954
|
if (e.success)
|
|
3954
3955
|
return e.data.data.message;
|
|
3955
3956
|
}, Ol = 3, os = process.env.FEE_OVERHEAD ? parseFloat(process.env.FEE_OVERHEAD) : Ol, Pl = 1.5, ie = 10, as = ({ estimatedFee: t, overheadMultiplier: e = os }) => {
|
|
3956
3957
|
const r = N.toBigInt(t) * BigInt(e * ie) / BigInt(ie);
|
|
3957
3958
|
return N.toHex(r);
|
|
3958
|
-
},
|
|
3959
|
+
}, jd = ({ suggestedMaxFee: t, overheadMultiplier: e = os, starknetJsOverheadMultiplier: n = Pl }) => {
|
|
3959
3960
|
const s = N.toBigInt(t) * BigInt(ie) / BigInt(n * ie);
|
|
3960
3961
|
return as({ estimatedFee: s, overheadMultiplier: e });
|
|
3961
3962
|
};
|
|
@@ -3968,7 +3969,7 @@ class Rl extends Me {
|
|
|
3968
3969
|
super(e, De), this.name = "EstimateError";
|
|
3969
3970
|
}
|
|
3970
3971
|
}
|
|
3971
|
-
const
|
|
3972
|
+
const Ld = c.object({
|
|
3972
3973
|
type: c.enum(["DECLARE", "DEPLOY", "DEPLOY_ACCOUNT", "INVOKE"]).default("INVOKE"),
|
|
3973
3974
|
calls: c.array(Re).or(Re).optional(),
|
|
3974
3975
|
calldata: c.array(c.string()).optional(),
|
|
@@ -4009,11 +4010,11 @@ function jt(t) {
|
|
|
4009
4010
|
function Pe(t) {
|
|
4010
4011
|
return Ul({ unit: t }) ? qe : sr;
|
|
4011
4012
|
}
|
|
4012
|
-
function
|
|
4013
|
+
function Dd(t, e, n = 2) {
|
|
4013
4014
|
const r = BigInt(10 ** n), s = BigInt(Math.round(e * 10 ** n));
|
|
4014
4015
|
return t * s / r;
|
|
4015
4016
|
}
|
|
4016
|
-
const
|
|
4017
|
+
const Hd = [qe], cs = (t, e = Dl) => {
|
|
4017
4018
|
if (t.max && "amount" in t.max)
|
|
4018
4019
|
return {
|
|
4019
4020
|
...t,
|
|
@@ -4039,17 +4040,17 @@ const Vd = [qe], cs = (t, e = Dl) => {
|
|
|
4039
4040
|
}, He = (t) => {
|
|
4040
4041
|
const e = Fl(t);
|
|
4041
4042
|
return e || ce(cs(t));
|
|
4042
|
-
},
|
|
4043
|
+
}, Vd = (t) => {
|
|
4043
4044
|
if (t.deployment && !st(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
|
|
4044
4045
|
throw Error("Cannot calculate estimated fees for different tokens");
|
|
4045
4046
|
const e = ce(t.transactions), n = t.deployment ? ce(t.deployment) : 0n;
|
|
4046
4047
|
return e + n;
|
|
4047
|
-
},
|
|
4048
|
+
}, Md = (t) => {
|
|
4048
4049
|
if (t.deployment && !st(t.deployment.feeTokenAddress, t.transactions.feeTokenAddress))
|
|
4049
4050
|
throw Error("Cannot calculate estimated fees for different tokens");
|
|
4050
4051
|
const e = t.deployment ? He(t.deployment) : 0n, n = He(t.transactions);
|
|
4051
4052
|
return e + n;
|
|
4052
|
-
},
|
|
4053
|
+
}, qd = (t, e) => [
|
|
4053
4054
|
{
|
|
4054
4055
|
contractAddress: t,
|
|
4055
4056
|
entrypoint: "transfer",
|
|
@@ -4151,7 +4152,7 @@ const Vd = [qe], cs = (t, e = Dl) => {
|
|
|
4151
4152
|
max: jt(Nt(i.simulation.feeEstimation, N.toBigInt))
|
|
4152
4153
|
} : void 0
|
|
4153
4154
|
};
|
|
4154
|
-
},
|
|
4155
|
+
}, zd = (t) => {
|
|
4155
4156
|
const e = cs(t), n = He(t);
|
|
4156
4157
|
return {
|
|
4157
4158
|
// for v1 transactions
|
|
@@ -4170,13 +4171,13 @@ const Vd = [qe], cs = (t, e = Dl) => {
|
|
|
4170
4171
|
}
|
|
4171
4172
|
}
|
|
4172
4173
|
};
|
|
4173
|
-
},
|
|
4174
|
+
}, Gd = (t) => {
|
|
4174
4175
|
const e = Math.sqrt(t);
|
|
4175
4176
|
return isNaN(e) ? Math.sqrt(2) : e;
|
|
4176
4177
|
}, Dl = (t) => {
|
|
4177
4178
|
const e = Math.cbrt(t);
|
|
4178
4179
|
return isNaN(e) ? Math.cbrt(2) : e;
|
|
4179
|
-
},
|
|
4180
|
+
}, Wd = (t) => t < 1 || isNaN(t) ? 1.1 : Math.log(t + 1) + 1, Qn = {
|
|
4180
4181
|
Transfer: Qt.getSelectorFromName("Transfer"),
|
|
4181
4182
|
// 0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9
|
|
4182
4183
|
Approval: Qt.getSelectorFromName("Approval")
|
|
@@ -4200,7 +4201,7 @@ const Vd = [qe], cs = (t, e = Dl) => {
|
|
|
4200
4201
|
o && Hl(o, e, n);
|
|
4201
4202
|
}
|
|
4202
4203
|
return { approvals: e, transfers: n };
|
|
4203
|
-
}, Vl = /(0x[a-fA-F0-9]+)\s*\('(.*?)'\)/,
|
|
4204
|
+
}, Vl = /(0x[a-fA-F0-9]+)\s*\('(.*?)'\)/, Kd = (t) => {
|
|
4204
4205
|
if (!ze(t))
|
|
4205
4206
|
return;
|
|
4206
4207
|
const e = t.match(Vl);
|
|
@@ -4210,7 +4211,7 @@ const Vd = [qe], cs = (t, e = Dl) => {
|
|
|
4210
4211
|
function ln({ address: t }) {
|
|
4211
4212
|
return Ml.some((e) => st(t, e));
|
|
4212
4213
|
}
|
|
4213
|
-
function
|
|
4214
|
+
function Zd(t) {
|
|
4214
4215
|
return t ? Ra().some((e) => st(e, t)) : !1;
|
|
4215
4216
|
}
|
|
4216
4217
|
function tr(t) {
|
|
@@ -4218,10 +4219,10 @@ function tr(t) {
|
|
|
4218
4219
|
address: t
|
|
4219
4220
|
}) ? D.TRANSACTION_VERSION.V3 : D.TRANSACTION_VERSION.V1;
|
|
4220
4221
|
}
|
|
4221
|
-
function
|
|
4222
|
+
function Yd(t) {
|
|
4222
4223
|
return ln({ address: t }) ? D.TRANSACTION_VERSION.F3 : D.TRANSACTION_VERSION.F1;
|
|
4223
4224
|
}
|
|
4224
|
-
function
|
|
4225
|
+
function Xd(t, e) {
|
|
4225
4226
|
return Ts(e.contract) ? ln({ address: t }) ? D.TRANSACTION_VERSION.V3 : D.TRANSACTION_VERSION.V2 : D.TRANSACTION_VERSION.V1;
|
|
4226
4227
|
}
|
|
4227
4228
|
var Ve;
|
|
@@ -4233,7 +4234,7 @@ class $t extends Me {
|
|
|
4233
4234
|
super(e, Ve), this.name = "ReviewError";
|
|
4234
4235
|
}
|
|
4235
4236
|
}
|
|
4236
|
-
class
|
|
4237
|
+
class Jd {
|
|
4237
4238
|
constructor(e, n) {
|
|
4238
4239
|
this.apiBase = e, this.httpService = n;
|
|
4239
4240
|
}
|
|
@@ -4404,29 +4405,29 @@ class Qd {
|
|
|
4404
4405
|
}
|
|
4405
4406
|
}
|
|
4406
4407
|
}
|
|
4407
|
-
const
|
|
4408
|
+
const Qd = c.object({
|
|
4408
4409
|
reason: c.string(),
|
|
4409
4410
|
severity: c.string().optional(),
|
|
4410
4411
|
title: c.string(),
|
|
4411
4412
|
description: c.string().optional()
|
|
4412
|
-
}),
|
|
4413
|
+
}), tf = [
|
|
4413
4414
|
"account-upgrade",
|
|
4414
4415
|
"approve",
|
|
4415
4416
|
"set-approval-for-all",
|
|
4416
4417
|
"swap",
|
|
4417
4418
|
"transfer"
|
|
4418
|
-
], ql = Object.values(D.TRANSACTION_VERSION),
|
|
4419
|
+
], ql = Object.values(D.TRANSACTION_VERSION), ef = c.string().default("0x3").refine((t) => {
|
|
4419
4420
|
const e = N.toBigInt(t);
|
|
4420
4421
|
return ql.map((n) => N.toBigInt(n)).includes(e);
|
|
4421
4422
|
}).transform((t) => N.toHex(t));
|
|
4422
|
-
function
|
|
4423
|
+
function nf(t) {
|
|
4423
4424
|
if (t === D.TRANSACTION_VERSION.V3 || t === D.TRANSACTION_VERSION.F3)
|
|
4424
4425
|
throw Error("Only txv1 is supported");
|
|
4425
4426
|
}
|
|
4426
|
-
const
|
|
4427
|
+
const rf = (t) => ({ showBalanceChange: Bt(() => {
|
|
4427
4428
|
const n = t == null ? void 0 : t.some((s) => !Ue(s.transfers)), r = t == null ? void 0 : t.some((s) => !Ue(s.approvals));
|
|
4428
4429
|
return t && (n || r);
|
|
4429
|
-
}, [t]) }), Ae = (t) => t ? t.filter((e) => e.token.type === "erc20") : [],
|
|
4430
|
+
}, [t]) }), Ae = (t) => t ? t.filter((e) => e.token.type === "erc20") : [], sf = (t) => Bt(() => Ae(t), [t]), of = (t) => Ae(t).length > 0, af = (t) => Ae(t).some((n) => n.amount > 0n), cf = (t) => Ae(t).some((n) => n.amount < 0n), ls = (t) => t ? t.filter((e) => e.token.type === "erc721") : [], lf = (t) => Bt(() => ls(t), [t]), zl = (t) => ls(t).length > 0, uf = (t) => Bt(() => zl(t), [t]), df = (t, e) => Bt(() => t && e ? [
|
|
4430
4431
|
{
|
|
4431
4432
|
contractAddress: t.address,
|
|
4432
4433
|
entrypoint: "transfer",
|
|
@@ -4435,7 +4436,7 @@ const sf = (t) => ({ showBalanceChange: Bt(() => {
|
|
|
4435
4436
|
amount: Dt(t.balance)
|
|
4436
4437
|
})
|
|
4437
4438
|
}
|
|
4438
|
-
] : [], [t, e]),
|
|
4439
|
+
] : [], [t, e]), ff = ({ apiData: { apiBaseUrl: t, apiHeaders: e }, address: n, network: r, transactionReviewEnabled: s = !0, transactions: o }) => {
|
|
4439
4440
|
const a = ar(async () => {
|
|
4440
4441
|
if (!n || !r)
|
|
4441
4442
|
return;
|
|
@@ -4456,7 +4457,7 @@ const sf = (t) => ({ showBalanceChange: Bt(() => {
|
|
|
4456
4457
|
});
|
|
4457
4458
|
}, [n, r, o]), i = Bt(() => Us({ transactions: o, address: n, network: r }), [o, n, r]);
|
|
4458
4459
|
return ao(!!s, [i, "transactionReview"], a);
|
|
4459
|
-
},
|
|
4460
|
+
}, hf = (t) => {
|
|
4460
4461
|
if (!t)
|
|
4461
4462
|
return {};
|
|
4462
4463
|
const e = t.assessment === "warn" && t.reason !== "contract_is_not_verified", n = t.reason ? ` (Reason: ${ir(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;
|
|
@@ -4471,15 +4472,15 @@ const sf = (t) => ({ showBalanceChange: Bt(() => {
|
|
|
4471
4472
|
if (((e = n.activity) == null ? void 0 : e.type) === "swap")
|
|
4472
4473
|
return n;
|
|
4473
4474
|
}
|
|
4474
|
-
},
|
|
4475
|
-
},
|
|
4475
|
+
}, pf = (t) => {
|
|
4476
|
+
}, mf = (t, e) => {
|
|
4476
4477
|
var n;
|
|
4477
4478
|
if (e) {
|
|
4478
4479
|
for (const r of e.reviews)
|
|
4479
4480
|
if (((n = r.activity) == null ? void 0 : n.type) === t)
|
|
4480
4481
|
return r.activity;
|
|
4481
4482
|
}
|
|
4482
|
-
},
|
|
4483
|
+
}, gf = (t) => !!Gl(t), wf = (t) => {
|
|
4483
4484
|
var e, n;
|
|
4484
4485
|
if (t) {
|
|
4485
4486
|
for (const r of t.reviews)
|
|
@@ -4515,7 +4516,7 @@ const sf = (t) => ({ showBalanceChange: Bt(() => {
|
|
|
4515
4516
|
return s;
|
|
4516
4517
|
const f = await rl(n, t, r) ?? 0n;
|
|
4517
4518
|
return BigInt(f) > l + BigInt(u) || (s = !0), s;
|
|
4518
|
-
},
|
|
4519
|
+
}, yf = () => ar(async ({ feeTokenAddress: e, calls: n, selectedAccount: r, transactionReviewService: s, appDomain: o, accountDeployPayload: a, provider: i }) => {
|
|
4519
4520
|
if (!r)
|
|
4520
4521
|
return;
|
|
4521
4522
|
const l = await Wl({
|
|
@@ -4552,7 +4553,7 @@ export {
|
|
|
4552
4553
|
De as ESTIMATE_ERROR_MESSAGES,
|
|
4553
4554
|
sr as ETH_TOKEN_ADDRESS,
|
|
4554
4555
|
Rl as EstimateError,
|
|
4555
|
-
|
|
4556
|
+
Ef as EventEmitterProvider,
|
|
4556
4557
|
Qn as EventsBySelector,
|
|
4557
4558
|
os as FEE_OVERHEAD,
|
|
4558
4559
|
Ye as HTTPService,
|
|
@@ -4560,7 +4561,7 @@ export {
|
|
|
4560
4561
|
X as HttpError,
|
|
4561
4562
|
Ou as KnownDappsBackendService,
|
|
4562
4563
|
gn as MultiSigner,
|
|
4563
|
-
|
|
4564
|
+
cd as OnchainRecoveryService,
|
|
4564
4565
|
al as PRETTY_UNLIMITED,
|
|
4565
4566
|
Ru as ResolveNameService,
|
|
4566
4567
|
ws as STANDARD_DEVNET_ACCOUNT_CLASS_HASH,
|
|
@@ -4568,131 +4569,131 @@ export {
|
|
|
4568
4569
|
yu as SWRService,
|
|
4569
4570
|
Iu as StarknetAddressService,
|
|
4570
4571
|
Le as TOKEN_ERROR_MESSAGES,
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4572
|
+
Af as TXV1_ACCOUNT_CLASS_HASH,
|
|
4573
|
+
xf as TXV1_MULTISIG_CLASS_HASH,
|
|
4574
|
+
If as TXV3_ACCOUNT_CLASS_HASH,
|
|
4575
|
+
Tf as TXV3_MULTISIG_CLASS_HASH,
|
|
4575
4576
|
hl as TokenError,
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4577
|
+
_d as TokenServiceWeb,
|
|
4578
|
+
Jd as TransactionReviewServiceWeb,
|
|
4579
|
+
vf as abiEntrySchema,
|
|
4580
|
+
_f as abiSchema,
|
|
4581
|
+
Nf as addOwnersCalldataSchema,
|
|
4582
|
+
Bf as addPluginCalldataSchema,
|
|
4583
|
+
Cf as addressInputCharactersAndLengthSchema,
|
|
4584
|
+
kf as addressInputSchema,
|
|
4585
|
+
Of as addressOrDomainInputSchema,
|
|
4586
|
+
Pf as addressOrDomainSchema,
|
|
4587
|
+
Rf as addressOrEmptyUndefinedSchema,
|
|
4587
4588
|
j as addressSchema,
|
|
4588
4589
|
le as addressSchemaArgentBackend,
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4590
|
+
Uf as addressSchemaBase,
|
|
4591
|
+
Ff as addressSchemaLooseLength,
|
|
4592
|
+
$f as addressSchemaStrictLength,
|
|
4592
4593
|
Nl as airdropSchema,
|
|
4593
4594
|
pl as apiAccountTokenBalancesSchema,
|
|
4594
4595
|
El as apiAirdropSchema,
|
|
4595
4596
|
ts as apiCollateralizedDebtPositionSchema,
|
|
4596
|
-
|
|
4597
|
+
Td as apiCollateralizedDebtPositionsSchema,
|
|
4597
4598
|
Qr as apiConcentratedLiquidityPositionSchema,
|
|
4598
|
-
|
|
4599
|
+
Id as apiConcentratedLiquidityPositionsSchema,
|
|
4599
4600
|
yl as apiDefiDecompositionProduct,
|
|
4600
4601
|
wl as apiDefiDecompositionProducts,
|
|
4601
4602
|
bl as apiDefiDecompositionSchema,
|
|
4602
4603
|
Xn as apiDefiDecompositionToken,
|
|
4603
4604
|
Sl as apiDefiPositionsSchema,
|
|
4604
|
-
|
|
4605
|
+
xd as apiPriceDataResponseSchema,
|
|
4605
4606
|
Xr as apiPriceDetailsSchema,
|
|
4606
4607
|
gl as apiTokenInfoResponseSchema,
|
|
4607
4608
|
Wt as apiTokenInfoSchema,
|
|
4608
4609
|
ml as apiTokensInfoResponseSchema,
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4610
|
+
tf as apiTransactionReviewActivityType,
|
|
4611
|
+
vd as apiUnclaimedRewardsSchema,
|
|
4612
|
+
jf as apiWalletResponseSchema,
|
|
4612
4613
|
Ls as argentBackendNetworkIdSchema,
|
|
4613
4614
|
as as argentMaxFee,
|
|
4614
|
-
|
|
4615
|
+
Lf as argentNameSchema,
|
|
4615
4616
|
js as argentNetworkIdSchema,
|
|
4616
4617
|
mu as bigDecimal,
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4618
|
+
Df as bigNumberSchema,
|
|
4619
|
+
Hf as bigNumberishSchema,
|
|
4620
|
+
Vf as booleanToStringSchema,
|
|
4620
4621
|
Zl as buildAccountDeployTransaction,
|
|
4621
4622
|
$a as buildConstructorCalldata,
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4623
|
+
qd as buildDummyTx,
|
|
4624
|
+
Mf as builtinsSchema,
|
|
4625
|
+
qf as byteCodeSchema,
|
|
4626
|
+
zf as cairo1EventSchema,
|
|
4627
|
+
Gf as cairoAssemblySchema,
|
|
4628
|
+
Wf as cairoVersionSchema,
|
|
4628
4629
|
Dl as calculateCubeRootAdjustment,
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4630
|
+
Wd as calculateNonLinearAdjustment,
|
|
4631
|
+
Gd as calculateSqrtAdjustment,
|
|
4632
|
+
Kf as callDetailsSchema,
|
|
4632
4633
|
Re as callSchema,
|
|
4633
|
-
|
|
4634
|
+
Zf as calldataSchema,
|
|
4634
4635
|
Nt as castFeeEstimation,
|
|
4635
|
-
|
|
4636
|
-
|
|
4636
|
+
Yf as changeGuardianCalldataSchema,
|
|
4637
|
+
Xf as changeThresholdCalldataSchema,
|
|
4637
4638
|
Kl as checkGasFeeBalance,
|
|
4638
|
-
|
|
4639
|
-
|
|
4639
|
+
Zd as classHashSupportsTxV3,
|
|
4640
|
+
Bd as collateralizedDebtGroupSchema,
|
|
4640
4641
|
ss as collateralizedDebtPositionSchema,
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4642
|
+
Cd as collateralizedDebtPositionsSchema,
|
|
4643
|
+
Jf as compiledContractClassSchema,
|
|
4644
|
+
Qf as compiledSierraCasmSchema,
|
|
4645
|
+
th as compiledSierraSchema,
|
|
4646
|
+
eh as compressedProgramSchema,
|
|
4646
4647
|
rs as concentratedLiquidityPositionSchema,
|
|
4647
|
-
|
|
4648
|
+
Nd as concentratedLiquidityPositionsSchema,
|
|
4648
4649
|
ys as constructorCallDataSchemaC0,
|
|
4649
4650
|
bs as constructorCallDataSchemaC1V1,
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4651
|
+
nh as contractEntryPointFieldsSchema,
|
|
4652
|
+
yd as convertTokenAmountToCurrencyValue,
|
|
4653
|
+
bd as convertTokenUnitAmountWithDecimals,
|
|
4653
4654
|
Da as dappContractSchema,
|
|
4654
4655
|
La as dappLinkSchema,
|
|
4655
4656
|
Lu as daysBetween,
|
|
4656
4657
|
_i as decodeBase58,
|
|
4657
4658
|
ju as decodeBase58Array,
|
|
4658
|
-
|
|
4659
|
+
kd as defiDappsProductsSchema,
|
|
4659
4660
|
Il as defiPositionSchema,
|
|
4660
4661
|
Yr as defiPositionTypeSchema,
|
|
4661
4662
|
vl as defiProductSchema,
|
|
4662
4663
|
_l as defiProductsSchema,
|
|
4663
|
-
|
|
4664
|
+
nf as denyTxV3,
|
|
4664
4665
|
vi as encodeBase58,
|
|
4665
4666
|
$u as encodeBase58Array,
|
|
4666
4667
|
ue as ensureArray,
|
|
4667
|
-
|
|
4668
|
+
Sd as ensureDecimals,
|
|
4668
4669
|
Wu as entryPointToHumanReadable,
|
|
4669
|
-
|
|
4670
|
+
rh as entryPointsByTypeSchema,
|
|
4670
4671
|
ed as equalNft,
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4672
|
+
Rd as erc20TransferTransaction,
|
|
4673
|
+
Fd as erc721SafeTransferFromTransaction,
|
|
4674
|
+
Ud as erc721TransferFromTransaction,
|
|
4675
|
+
sh as escapeGuardianCalldataSchema,
|
|
4675
4676
|
He as estimatedFeeToMaxFeeTotal,
|
|
4676
|
-
|
|
4677
|
+
zd as estimatedFeeToMaxResourceBounds,
|
|
4677
4678
|
ce as estimatedFeeToTotal,
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4679
|
+
Md as estimatedFeesToMaxFeeTotal,
|
|
4680
|
+
Vd as estimatedFeesToTotal,
|
|
4681
|
+
oh as eventAbiSchema,
|
|
4682
|
+
ah as eventEntrySchema,
|
|
4683
|
+
ih as executeOnPluginCalldataSchema,
|
|
4683
4684
|
ln as feeTokenNeedsTxV3Support,
|
|
4684
|
-
|
|
4685
|
+
ch as feltSchema,
|
|
4685
4686
|
hr as fetchData,
|
|
4686
4687
|
ee as fetcherError,
|
|
4687
4688
|
Bu as findImplementationForAccount,
|
|
4688
4689
|
Hl as findTransfersAndApprovals,
|
|
4689
4690
|
yr as formatAddress,
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4691
|
+
lh as formatFullAddress,
|
|
4692
|
+
uh as formatTruncatedAddress,
|
|
4693
|
+
dh as formatTruncatedSignerKey,
|
|
4694
|
+
fh as formatTruncatedString,
|
|
4695
|
+
hh as functionAbiSchema,
|
|
4696
|
+
ph as functionAbiTypeSchema,
|
|
4696
4697
|
oe as generateAvatarImage,
|
|
4697
4698
|
ja as getAccountContractAddress,
|
|
4698
4699
|
Fa as getAccountDeploymentPayload,
|
|
@@ -4709,7 +4710,7 @@ export {
|
|
|
4709
4710
|
Ii as getColor,
|
|
4710
4711
|
Ma as getDapplandLinkForDapp,
|
|
4711
4712
|
Pu as getDapplandUrlForDapp,
|
|
4712
|
-
|
|
4713
|
+
hf as getDisplayWarnAndReasonForTransactionReview,
|
|
4713
4714
|
Ae as getERC20Transactions,
|
|
4714
4715
|
ls as getERC721Transactions,
|
|
4715
4716
|
$l as getEstimatedFeeFromBulkSimulation,
|
|
@@ -4720,38 +4721,37 @@ export {
|
|
|
4720
4721
|
Tu as getLatestArgentMultisigClassHash,
|
|
4721
4722
|
Nu as getLatestLedgerAccountClassHash,
|
|
4722
4723
|
_u as getLedgerAccountClassHashes,
|
|
4723
|
-
|
|
4724
|
-
|
|
4724
|
+
$d as getMessageFromTrpcError,
|
|
4725
|
+
pf as getNFTTransferActivity,
|
|
4725
4726
|
Fu as getNetworkAccountImageUrl,
|
|
4726
4727
|
td as getNftPicture,
|
|
4727
4728
|
jl as getPayloadFromTransaction,
|
|
4728
|
-
|
|
4729
|
-
cd as getRecoverySchema,
|
|
4729
|
+
Kd as getPrettyRpcError,
|
|
4730
4730
|
Wl as getReviewForTransactions,
|
|
4731
4731
|
mn as getSignerForMultiSigner,
|
|
4732
|
-
|
|
4732
|
+
Yd as getSimulationTxVersionFromFeeToken,
|
|
4733
4733
|
uo as getStarknetIdContractAddressFromNetworkId,
|
|
4734
4734
|
rl as getTokenBalance,
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4735
|
+
gd as getTokens,
|
|
4736
|
+
md as getTokensBalances,
|
|
4737
|
+
mf as getTransactionReviewActivityOfType,
|
|
4738
|
+
gf as getTransactionReviewHasSwap,
|
|
4739
4739
|
Gl as getTransactionReviewSwap,
|
|
4740
|
-
|
|
4740
|
+
wf as getTransactionReviewWithType,
|
|
4741
4741
|
tr as getTxVersionFromFeeToken,
|
|
4742
|
-
|
|
4742
|
+
Xd as getTxVersionFromFeeTokenForDeclareContract,
|
|
4743
4743
|
nl as getUAParserResult,
|
|
4744
4744
|
Dt as getUint256CalldataFromBN,
|
|
4745
4745
|
Fl as getWatermarkedMaxFeeTotal,
|
|
4746
|
-
|
|
4746
|
+
of as hasERC20Transactions,
|
|
4747
4747
|
zl as hasERC721Transactions,
|
|
4748
|
-
|
|
4749
|
-
|
|
4748
|
+
af as hasIncomingERC20Transactions,
|
|
4749
|
+
cf as hasOutgoingERC20Transactions,
|
|
4750
4750
|
gt as hexSchema,
|
|
4751
|
-
|
|
4751
|
+
mh as hexSchemaBase,
|
|
4752
4752
|
Si as id,
|
|
4753
4753
|
pn as implementationSchema,
|
|
4754
|
-
|
|
4754
|
+
gh as includesAddress,
|
|
4755
4755
|
Cl as inputAmountSchema,
|
|
4756
4756
|
du as isAccountV4,
|
|
4757
4757
|
uu as isAccountV5,
|
|
@@ -4762,35 +4762,35 @@ export {
|
|
|
4762
4762
|
pu as isArgentBackendNetworkId,
|
|
4763
4763
|
ps as isArgentName,
|
|
4764
4764
|
hu as isArgentNetworkId,
|
|
4765
|
-
|
|
4765
|
+
ld as isBraveBrowser,
|
|
4766
4766
|
Se as isBrowser,
|
|
4767
|
-
|
|
4767
|
+
dd as isChromeBrowser,
|
|
4768
4768
|
Hu as isContractDeployed,
|
|
4769
|
-
|
|
4769
|
+
hd as isEdgeBrowser,
|
|
4770
4770
|
st as isEqualAddress,
|
|
4771
|
-
|
|
4771
|
+
wh as isEqualArgentName,
|
|
4772
4772
|
Ua as isEqualImplementation,
|
|
4773
|
-
|
|
4774
|
-
|
|
4773
|
+
yh as isEqualStarknetDomainName,
|
|
4774
|
+
bh as isEqualStarknetId,
|
|
4775
4775
|
Ul as isFRI,
|
|
4776
4776
|
Du as isFeatureEnabled,
|
|
4777
|
-
|
|
4777
|
+
ud as isFirefoxBrowser,
|
|
4778
4778
|
J as isNumeric,
|
|
4779
|
-
|
|
4780
|
-
|
|
4779
|
+
fd as isSafariBrowser,
|
|
4780
|
+
Sh as isStarknetDomainName,
|
|
4781
4781
|
hs as isStarknetId,
|
|
4782
4782
|
ol as isUnlimitedAmount,
|
|
4783
4783
|
ds as isValidAddress,
|
|
4784
|
-
|
|
4784
|
+
Pd as isValidInputAmount,
|
|
4785
4785
|
is as isWEI,
|
|
4786
4786
|
us as isZeroAddress,
|
|
4787
4787
|
Ha as knownDappSchema,
|
|
4788
4788
|
Va as knownDappsSchema,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4789
|
+
Eh as legacyContractClassSchema,
|
|
4790
|
+
Ah as legacyEventSchema,
|
|
4791
|
+
jd as modifySnjsFeeOverhead,
|
|
4792
|
+
xh as multiTypeSchema,
|
|
4793
|
+
Dd as multiplyBigIntByFloat,
|
|
4794
4794
|
za as nameProviderResolutionSchema,
|
|
4795
4795
|
Ga as nameResolutionAddressSchema,
|
|
4796
4796
|
Ka as nameResolutionAddressesSchema,
|
|
@@ -4798,9 +4798,10 @@ export {
|
|
|
4798
4798
|
qa as nameResolutionStarknetIdsSchema,
|
|
4799
4799
|
Vu as nonNullable,
|
|
4800
4800
|
rr as normalizeAddress,
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4801
|
+
Ih as normalizeAddressOrDomain,
|
|
4802
|
+
Th as normalizeArgentName,
|
|
4803
|
+
vh as normalizeStarknetId,
|
|
4804
|
+
el as onchainRecoverySchema,
|
|
4804
4805
|
Bl as parseAmount,
|
|
4805
4806
|
Ci as parseAmountValue,
|
|
4806
4807
|
zu as pluralise,
|
|
@@ -4808,68 +4809,67 @@ export {
|
|
|
4808
4809
|
fu as preferencesEndpointPayload,
|
|
4809
4810
|
$s as preferencesSchema,
|
|
4810
4811
|
Ni as prettifyCurrencyNumber,
|
|
4811
|
-
|
|
4812
|
+
Ed as prettifyCurrencyValue,
|
|
4812
4813
|
Tr as prettifyNumber,
|
|
4813
4814
|
Je as prettifyNumberConfig,
|
|
4814
|
-
|
|
4815
|
+
Ad as prettifyTokenAmount,
|
|
4815
4816
|
Bi as prettifyTokenNumber,
|
|
4816
4817
|
Tl as productGroupsSchema,
|
|
4817
|
-
|
|
4818
|
+
_h as programSchema,
|
|
4818
4819
|
Wa as providersNamesSchema,
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4820
|
+
Nh as pythonicHintsSchema,
|
|
4821
|
+
Bh as rawArgsArraySchema,
|
|
4822
|
+
Ch as rawArgsObjectSchema,
|
|
4823
|
+
kh as rawArgsSchema,
|
|
4823
4824
|
Gu as readFileAsString,
|
|
4824
4825
|
id as recoveryBodySchema,
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4826
|
+
tl as recoveryStatusSchema,
|
|
4827
|
+
Oh as removeOwnersCalldataSchema,
|
|
4828
|
+
Ph as removePluginCalldataSchema,
|
|
4829
|
+
Rh as replaceSignerCalldataSchema,
|
|
4830
|
+
pd as seedphraseSchema,
|
|
4831
|
+
Uh as sierraContractEntryPointFieldsSchema,
|
|
4832
|
+
Fh as sierraEntryPointsByTypeSchema,
|
|
4833
|
+
$h as sierraProgramDebugInfoSchema,
|
|
4833
4834
|
lo as starkNameToCallDataDomain,
|
|
4834
|
-
|
|
4835
|
+
jh as starknetDomainNameSchema,
|
|
4835
4836
|
Ss as starknetIdSchema,
|
|
4836
|
-
|
|
4837
|
-
Dh as stringToBooleanSchema,
|
|
4837
|
+
Lh as stringToBooleanSchema,
|
|
4838
4838
|
Ti as stripAddressZeroPadding,
|
|
4839
|
-
|
|
4839
|
+
Dh as structAbiSchema,
|
|
4840
4840
|
Au as swrRefetchDisabledConfig,
|
|
4841
4841
|
jt as toMax,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4842
|
+
Hd as tokensRequireTxV3Support,
|
|
4843
|
+
Ld as transactionReviewTransactionsSchema,
|
|
4844
|
+
Qd as transactionReviewWarningSchema,
|
|
4845
4845
|
As as transferCalldataSchema,
|
|
4846
4846
|
kl as trpcErrorSchema,
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4847
|
+
ef as txVersionSchema,
|
|
4848
|
+
Hh as uint256Schema,
|
|
4849
|
+
Od as unclaimedRewardsSchema,
|
|
4850
4850
|
Pe as unitToFeeTokenAddress,
|
|
4851
4851
|
Ku as urlWithQuery,
|
|
4852
|
-
|
|
4852
|
+
rf as useBalanceChange,
|
|
4853
4853
|
Ju as useCollection,
|
|
4854
4854
|
ao as useConditionallyEnabledSWR,
|
|
4855
4855
|
Cu as useDebounce,
|
|
4856
4856
|
ku as useDebouncedValue,
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4857
|
+
sf as useERC20Transactions,
|
|
4858
|
+
lf as useERC721Transactions,
|
|
4859
|
+
Vh as useEmitEvent,
|
|
4860
|
+
Mh as useEventEmitter,
|
|
4861
|
+
qh as useEventEmitterContext,
|
|
4862
|
+
zh as useEventListener,
|
|
4863
|
+
uf as useHasERC721Transaction,
|
|
4864
|
+
Gh as useIsEventEmitterEnabled,
|
|
4865
|
+
df as useMaxAmountTransaction,
|
|
4866
4866
|
Qu as useNft,
|
|
4867
4867
|
Xu as useNfts,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4868
|
+
wd as useToken,
|
|
4869
|
+
ff as useTransactionReview,
|
|
4870
|
+
yf as useTransactionReviewV2webFetcher,
|
|
4871
|
+
Wh as validChecksumAddressSchema,
|
|
4872
|
+
Kh as validateAddressRangeSchema,
|
|
4873
4873
|
Zu as voidify,
|
|
4874
4874
|
Su as withPolling
|
|
4875
4875
|
};
|