@argent/x-shared 1.48.2 → 1.48.3
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/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +3 -3
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +5 -5
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +2 -2
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +2 -2
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js +2 -2
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +55 -58
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +1 -1
- package/dist/src/features/simulation/activity/schema.js +3 -3
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +3 -3
- package/dist/src/features/simulation/transactionReview/schema.js +4 -4
- package/dist/src/features/swap/models/trade.model.js +3 -3
- package/dist/src/nfts/BackendNftService.cjs +1 -1
- package/dist/src/nfts/BackendNftService.js +3 -3
- package/dist/src/tokens/service/types/backend.model.js +1 -1
- package/dist/src/transactions/estimate/utils.js +1 -1
- package/dist/src/transactions/transactionVersion.js +1 -1
- package/dist/src/transactions/txv3.cjs +1 -1
- package/dist/src/transactions/txv3.js +4 -4
- package/dist/src/utils/number/prettifyNumber.cjs +1 -1
- package/dist/src/utils/number/prettifyNumber.js +27 -22
- package/package.json +25 -25
package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { hmac as m } from "../../../../../@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js";
|
|
2
|
-
import {
|
|
2
|
+
import { randomBytes as c, concatBytes as e } from "../../../../../@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js";
|
|
3
3
|
import "./abstract/weierstrass.js";
|
|
4
4
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5
5
|
function p(t) {
|
|
6
6
|
return {
|
|
7
7
|
hash: t,
|
|
8
|
-
hmac: (o, ...r) => m(t, o,
|
|
9
|
-
randomBytes:
|
|
8
|
+
hmac: (o, ...r) => m(t, o, e(...r)),
|
|
9
|
+
randomBytes: c
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { validateObject as L, ensureBytes as T, bytesToNumberLE as y, bytesToNumberBE as m, numberToBytesBE as _, bitMask as $, numberToBytesLE as C } from "./utils.js";
|
|
2
2
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3
3
|
const f = BigInt(0), u = BigInt(1), w = BigInt(2), M = BigInt(3), E = BigInt(4), b = BigInt(5), I = BigInt(8);
|
|
4
4
|
BigInt(9);
|
|
@@ -109,7 +109,7 @@ function Q(e) {
|
|
|
109
109
|
BYTES: "isSafeInteger",
|
|
110
110
|
BITS: "isSafeInteger"
|
|
111
111
|
}, n = A.reduce((r, s) => (r[s] = "function", r), o);
|
|
112
|
-
return
|
|
112
|
+
return L(e, n);
|
|
113
113
|
}
|
|
114
114
|
function O(e, o, n) {
|
|
115
115
|
if (n < f)
|
|
@@ -141,7 +141,7 @@ function V(e, o, n = !1, r = {}) {
|
|
|
141
141
|
ORDER: e,
|
|
142
142
|
BITS: s,
|
|
143
143
|
BYTES: c,
|
|
144
|
-
MASK:
|
|
144
|
+
MASK: $(s),
|
|
145
145
|
ZERO: f,
|
|
146
146
|
ONE: u,
|
|
147
147
|
create: (t) => g(t, e),
|
|
@@ -171,7 +171,7 @@ function V(e, o, n = !1, r = {}) {
|
|
|
171
171
|
// TODO: do we really need constant cmov?
|
|
172
172
|
// We don't have const-time bigints anyway, so probably will be not very useful
|
|
173
173
|
cmov: (t, l, a) => a ? l : t,
|
|
174
|
-
toBytes: (t) => n ?
|
|
174
|
+
toBytes: (t) => n ? C(t, c) : _(t, c),
|
|
175
175
|
fromBytes: (t) => {
|
|
176
176
|
if (t.length !== c)
|
|
177
177
|
throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);
|
|
@@ -181,7 +181,7 @@ function V(e, o, n = !1, r = {}) {
|
|
|
181
181
|
return Object.freeze(i);
|
|
182
182
|
}
|
|
183
183
|
function Y(e, o, n = !1) {
|
|
184
|
-
e =
|
|
184
|
+
e = T("privateHash", e);
|
|
185
185
|
const r = e.length, s = x(o).nByteLength + 8;
|
|
186
186
|
if (s < 24 || r < s || r > 1024)
|
|
187
187
|
throw new Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${r}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mod as ut, hashToPrivateScalar as dt, invert as ht } from "./modular.js";
|
|
2
2
|
import * as mt from "./utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { validateObject as lt, concatBytes as et, ensureBytes as Y, bytesToHex as nt, bytesToNumberBE as _, bitMask as yt, numberToBytesBE as rt, hexToBytes as at, createHmacDrbg as pt } from "./utils.js";
|
|
4
|
+
import { validateBasic as ft, wNAF as wt } from "./curve.js";
|
|
5
5
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
6
6
|
function Et(B) {
|
|
7
7
|
const n = ft(B);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { number as d, exists as k, bytes as _, output as g } from "./_assert.js";
|
|
2
|
-
import {
|
|
2
|
+
import { rotlBH as B, rotlSH as A, rotlBL as H, rotlSL as m, split as S } from "./_u64.js";
|
|
3
3
|
import { wrapConstructor as T, Hash as F, u32 as X, toBytes as U } from "./utils.js";
|
|
4
4
|
const [O, w, y] = [[], [], []], E = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), P = /* @__PURE__ */ BigInt(2), M = /* @__PURE__ */ BigInt(7), R = /* @__PURE__ */ BigInt(256), j = /* @__PURE__ */ BigInt(113);
|
|
5
5
|
for (let i = 0, t = f, s = 1, n = 0; i < 24; i++) {
|
|
@@ -9,7 +9,7 @@ for (let i = 0, t = f, s = 1, n = 0; i < 24; i++) {
|
|
|
9
9
|
t = (t << f ^ (t >> M) * j) % R, t & P && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
10
10
|
y.push(o);
|
|
11
11
|
}
|
|
12
|
-
const [C, q] = /* @__PURE__ */
|
|
12
|
+
const [C, q] = /* @__PURE__ */ S(y, !0), x = (i, t, s) => s > 32 ? B(i, t, s) : A(i, t, s), I = (i, t, s) => s > 32 ? H(i, t, s) : m(i, t, s);
|
|
13
13
|
function v(i, t = 24) {
|
|
14
14
|
const s = new Uint32Array(10);
|
|
15
15
|
for (let n = 24 - t; n < 24; n++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { number as d, exists as k, bytes as B, output as A } from "./_assert.js";
|
|
2
|
-
import {
|
|
2
|
+
import { rotlBH as H, rotlSH as m, rotlBL as S, rotlSL as T, split as F } from "./_u64.js";
|
|
3
3
|
import { wrapConstructor as X, Hash as E, u32 as U, isLE as x, byteSwap32 as I, toBytes as P } from "./utils.js";
|
|
4
4
|
const y = [], L = [], b = [], M = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), R = /* @__PURE__ */ BigInt(2), j = /* @__PURE__ */ BigInt(7), C = /* @__PURE__ */ BigInt(256), q = /* @__PURE__ */ BigInt(113);
|
|
5
5
|
for (let e = 0, t = f, s = 1, n = 0; e < 24; e++) {
|
|
@@ -9,7 +9,7 @@ for (let e = 0, t = f, s = 1, n = 0; e < 24; e++) {
|
|
|
9
9
|
t = (t << f ^ (t >> j) * q) % C, t & R && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
10
10
|
b.push(o);
|
|
11
11
|
}
|
|
12
|
-
const [v, z] = /* @__PURE__ */
|
|
12
|
+
const [v, z] = /* @__PURE__ */ F(b, !0), O = (e, t, s) => s > 32 ? H(e, t, s) : m(e, t, s), w = (e, t, s) => s > 32 ? S(e, t, s) : T(e, t, s);
|
|
13
13
|
function D(e, t = 24) {
|
|
14
14
|
const s = new Uint32Array(10);
|
|
15
15
|
for (let n = 24 - t; n < 24; n++) {
|
package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs"),w=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs"),S=require("../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs"),c=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs"),N=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs"),F=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs"),i=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs"),R=require("../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs"),p=BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"),E=252;function g(e){for(;e[0]===0;)e=e.subarray(1);const n=e.length*8-E,t=i.bytesToNumberBE(e);return n>0?t>>BigInt(n):t}function m(e){return typeof e=="string"&&(e=_(e),e.length&1&&(e="0"+e)),i.hexToBytes(e)}const b=F.weierstrass({a:BigInt(1),b:BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),Fp:c.Field(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),n:p,nBitLength:E,Gx:BigInt("874739451078007766457464989774322083649278607533249481151382481072868806602"),Gy:BigInt("152666792071518830868575557812948353041420400780739481342941381225525861407"),h:BigInt(1),lowS:!1,...R.getHash(w.sha256),bits2int:g,bits2int_modN:e=>{const n=i.bytesToNumberBE(e).toString(16);return n.length===63&&(e=m(n+"0")),c.mod(g(e),p)}});function T(e){return i.ensureBytes("",typeof e=="string"?m(e):e)}const{ProjectivePoint:u}=b;function v(e){return`0x${i.bytesToHex(e.subarray(1)).replace(/^0+/gm,"")}`}function _(e){return e.replace(/^0x/i,"")}const a=[new u(2089986280348253421170679821480865132823066470938446095505822317253594081284n,1713931329540660377023406109199410414810705867260802078187082345529207694986n,1n),new u(996781205833008774514500082376783249102396023663454813447423147977397232763n,1668503676786377725805489344771023921079126552019160156920634619255970485781n,1n),new u(2251563274489750535117886426533222435294046428347329203627021249169616184184n,1798716007562728905295480679789526322175868328062420237419143593021674992973n,1n),new u(2138414695194151160943305727036575959195309218611738193261179310511854807447n,113410276730064486255102093846540133784865286929052426931474106396135072156n,1n),new u(2379962749567351885752724891227938183011949129833673362440656643086021394946n,776496453633298175483985398648758586525933812536653089401905292063708816422n,1n)];function y(e,n){const t=[];let r=e;for(let o=0;o<248;o++)t.push(r),r=r.double();r=n;for(let o=0;o<4;o++)t.push(r),r=r.double();return t}const q=y(a[1],a[2]),x=y(a[3],a[4]);function k(e){let n;if(typeof e=="bigint")n=e;else if(typeof e=="number"){if(!Number.isSafeInteger(e))throw new Error(`Invalid pedersenArg: ${e}`);n=BigInt(e)}else n=i.bytesToNumberBE(T(e));if(!(0n<=n&&n<b.CURVE.Fp.ORDER))throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${n}`);return n}function B(e,n,t){let r=k(n);for(let o=0;o<252;o++){const s=t[o];if(s.equals(e))throw new Error("Same point");(r&1n)!==0n&&(e=e.add(s)),r>>=1n}return e}function $(e,n){let t=a[0];return t=B(t,e,q),t=B(t,n,x),v(t.toRawBytes(!0))}const D=i.bitMask(250),O=e=>i.bytesToNumberBE(h.keccak_256(e))&D;c.Field(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));const I=c.Field(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));function j(e,n,t){const r=e.fromBytes(w.sha256(S.utf8ToBytes(`${n}${t}`)));return e.create(r)}const A=[[3,1,1],[1,-1,1],[1,1,-2]].map(e=>e.map(BigInt));function P(e,n){if(c.validateField(e.Fp),!Number.isSafeInteger(e.rate)||!Number.isSafeInteger(e.capacity))throw new Error(`Wrong poseidon opts: ${e}`);const t=e.rate+e.capacity,r=e.roundsFull+e.roundsPartial,o=[];for(let l=0;l<r;l++){const f=[];for(let d=0;d<t;d++)f.push(j(e.Fp,"Hades",t*l+d));o.push(f)}const s=N.poseidon({...e,t,sboxPower:3,reversePartialPowIdx:!0,mds:n,roundConstants:o});return s.m=t,s.rate=e.rate,s.capacity=e.capacity,s}P({Fp:I,rate:2,capacity:1,roundsFull:8,roundsPartial:83},A);exports.Fp251=I;exports.ProjectivePoint=u;exports.keccak=O;exports.pedersen=$;exports.poseidonBasic=P;
|
package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { keccak_256 as
|
|
1
|
+
import { keccak_256 as P } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js";
|
|
2
2
|
import { sha256 as B } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js";
|
|
3
|
-
import { utf8ToBytes as
|
|
4
|
-
import {
|
|
5
|
-
import { poseidon as
|
|
3
|
+
import { utf8ToBytes as S } from "../../../../../@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js";
|
|
4
|
+
import { mod as h, Field as l, validateField as b } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js";
|
|
5
|
+
import { poseidon as R } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js";
|
|
6
6
|
import { weierstrass as N } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js";
|
|
7
|
-
import { bytesToNumberBE as c,
|
|
7
|
+
import { bytesToNumberBE as c, ensureBytes as x, hexToBytes as F, bytesToHex as v, bitMask as T } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js";
|
|
8
8
|
import { getHash as _ } from "../../../../../@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js";
|
|
9
9
|
const d = BigInt("3618502788666131213697322783095070105526743751716087489154079457884512865583"), w = 252;
|
|
10
10
|
function m(n) {
|
|
11
11
|
for (; n[0] === 0; )
|
|
12
12
|
n = n.subarray(1);
|
|
13
|
-
const
|
|
14
|
-
return
|
|
13
|
+
const e = n.length * 8 - w, t = c(n);
|
|
14
|
+
return e > 0 ? t >> BigInt(e) : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return typeof n == "string" && (n =
|
|
16
|
+
function I(n) {
|
|
17
|
+
return typeof n == "string" && (n = k(n), n.length & 1 && (n = "0" + n)), F(n);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const E = N({
|
|
20
20
|
a: BigInt(1),
|
|
21
21
|
b: BigInt("3141592653589793238462643383279502884197169399375105820974944592307816406665"),
|
|
22
22
|
Fp: l(BigInt("0x800000000000011000000000000000000000000000000000000000000000001")),
|
|
@@ -29,18 +29,18 @@ const I = N({
|
|
|
29
29
|
..._(B),
|
|
30
30
|
bits2int: m,
|
|
31
31
|
bits2int_modN: (n) => {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
32
|
+
const e = c(n).toString(16);
|
|
33
|
+
return e.length === 63 && (n = I(e + "0")), h(m(n), d);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
function $(n) {
|
|
37
|
-
return
|
|
37
|
+
return x("", typeof n == "string" ? I(n) : n);
|
|
38
38
|
}
|
|
39
|
-
const {
|
|
40
|
-
function
|
|
39
|
+
const { ProjectivePoint: s } = E;
|
|
40
|
+
function D(n) {
|
|
41
41
|
return `0x${v(n.subarray(1)).replace(/^0+/gm, "")}`;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function k(n) {
|
|
44
44
|
return n.replace(/^0x/i, "");
|
|
45
45
|
}
|
|
46
46
|
const u = [
|
|
@@ -50,85 +50,82 @@ const u = [
|
|
|
50
50
|
new s(2138414695194151160943305727036575959195309218611738193261179310511854807447n, 113410276730064486255102093846540133784865286929052426931474106396135072156n, 1n),
|
|
51
51
|
new s(2379962749567351885752724891227938183011949129833673362440656643086021394946n, 776496453633298175483985398648758586525933812536653089401905292063708816422n, 1n)
|
|
52
52
|
];
|
|
53
|
-
function
|
|
54
|
-
const
|
|
53
|
+
function y(n, e) {
|
|
54
|
+
const t = [];
|
|
55
55
|
let r = n;
|
|
56
56
|
for (let o = 0; o < 248; o++)
|
|
57
|
-
|
|
58
|
-
r =
|
|
57
|
+
t.push(r), r = r.double();
|
|
58
|
+
r = e;
|
|
59
59
|
for (let o = 0; o < 4; o++)
|
|
60
|
-
|
|
61
|
-
return
|
|
60
|
+
t.push(r), r = r.double();
|
|
61
|
+
return t;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const A = y(u[1], u[2]), C = y(u[3], u[4]);
|
|
64
64
|
function O(n) {
|
|
65
|
-
let
|
|
65
|
+
let e;
|
|
66
66
|
if (typeof n == "bigint")
|
|
67
|
-
|
|
67
|
+
e = n;
|
|
68
68
|
else if (typeof n == "number") {
|
|
69
69
|
if (!Number.isSafeInteger(n))
|
|
70
70
|
throw new Error(`Invalid pedersenArg: ${n}`);
|
|
71
|
-
|
|
71
|
+
e = BigInt(n);
|
|
72
72
|
} else
|
|
73
|
-
|
|
74
|
-
if (!(0n <=
|
|
75
|
-
throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${
|
|
76
|
-
return
|
|
73
|
+
e = c($(n));
|
|
74
|
+
if (!(0n <= e && e < E.CURVE.Fp.ORDER))
|
|
75
|
+
throw new Error(`PedersenArg should be 0 <= value < CURVE.P: ${e}`);
|
|
76
|
+
return e;
|
|
77
77
|
}
|
|
78
|
-
function g(n,
|
|
79
|
-
let r = O(
|
|
78
|
+
function g(n, e, t) {
|
|
79
|
+
let r = O(e);
|
|
80
80
|
for (let o = 0; o < 252; o++) {
|
|
81
|
-
const i =
|
|
81
|
+
const i = t[o];
|
|
82
82
|
if (i.equals(n))
|
|
83
83
|
throw new Error("Same point");
|
|
84
84
|
(r & 1n) !== 0n && (n = n.add(i)), r >>= 1n;
|
|
85
85
|
}
|
|
86
86
|
return n;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let
|
|
90
|
-
return
|
|
88
|
+
function Q(n, e) {
|
|
89
|
+
let t = u[0];
|
|
90
|
+
return t = g(t, n, A), t = g(t, e, C), D(t.toRawBytes(!0));
|
|
91
91
|
}
|
|
92
|
-
const M =
|
|
92
|
+
const M = T(250), Y = (n) => c(P(n)) & M;
|
|
93
93
|
l(BigInt("14474011154664525231415395255581126252639794253786371766033694892385558855681"));
|
|
94
|
-
const
|
|
95
|
-
function
|
|
96
|
-
const r = n.fromBytes(B(
|
|
94
|
+
const j = l(BigInt("3618502788666131213697322783095070105623107215331596699973092056135872020481"));
|
|
95
|
+
function H(n, e, t) {
|
|
96
|
+
const r = n.fromBytes(B(S(`${e}${t}`)));
|
|
97
97
|
return n.create(r);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const L = [
|
|
100
100
|
[3, 1, 1],
|
|
101
101
|
[1, -1, 1],
|
|
102
102
|
[1, 1, -2]
|
|
103
103
|
].map((n) => n.map(BigInt));
|
|
104
|
-
function
|
|
105
|
-
if (
|
|
104
|
+
function U(n, e) {
|
|
105
|
+
if (b(n.Fp), !Number.isSafeInteger(n.rate) || !Number.isSafeInteger(n.capacity))
|
|
106
106
|
throw new Error(`Wrong poseidon opts: ${n}`);
|
|
107
|
-
const
|
|
107
|
+
const t = n.rate + n.capacity, r = n.roundsFull + n.roundsPartial, o = [];
|
|
108
108
|
for (let a = 0; a < r; a++) {
|
|
109
109
|
const p = [];
|
|
110
|
-
for (let f = 0; f <
|
|
111
|
-
p.push(
|
|
110
|
+
for (let f = 0; f < t; f++)
|
|
111
|
+
p.push(H(n.Fp, "Hades", t * a + f));
|
|
112
112
|
o.push(p);
|
|
113
113
|
}
|
|
114
|
-
const i =
|
|
114
|
+
const i = R({
|
|
115
115
|
...n,
|
|
116
|
-
t
|
|
116
|
+
t,
|
|
117
117
|
sboxPower: 3,
|
|
118
118
|
reversePartialPowIdx: !0,
|
|
119
|
-
mds:
|
|
119
|
+
mds: e,
|
|
120
120
|
roundConstants: o
|
|
121
121
|
});
|
|
122
|
-
return i.m =
|
|
122
|
+
return i.m = t, i.rate = n.rate, i.capacity = n.capacity, i;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
U({ Fp: j, rate: 2, capacity: 1, roundsFull: 8, roundsPartial: 83 }, L);
|
|
125
125
|
export {
|
|
126
|
-
|
|
127
|
-
U as Fp251,
|
|
126
|
+
j as Fp251,
|
|
128
127
|
s as ProjectivePoint,
|
|
129
|
-
Y as
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
H as poseidonBasic,
|
|
133
|
-
Z as utils
|
|
128
|
+
Y as keccak,
|
|
129
|
+
Q as pedersen,
|
|
130
|
+
U as poseidonBasic
|
|
134
131
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import g from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CairoOption as p, CairoOptionVariant as u, CallData as f, hash as h } from "starknet";
|
|
3
3
|
import { z as H } from "zod";
|
|
4
4
|
import { getSignerForMultiSigner as d, MultiSigner as A } from "../../../../signer/multisigner.js";
|
|
5
5
|
import { AccountError as D } from "../../../../errors/account.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { stakerInfoSchema as m, stakingActionSchema as d, investmentMetaSchema as g } from "../../../staking/schema.js";
|
|
3
3
|
import { actionSchema as y, targetedDappSchema as b } from "../transactionReview/schema.js";
|
|
4
4
|
import { addressSchemaArgentBackend as e } from "../../../chains/starknet/address.js";
|
|
5
5
|
const r = t.object({
|
|
@@ -105,10 +105,10 @@ const r = t.object({
|
|
|
105
105
|
}),
|
|
106
106
|
t.object({
|
|
107
107
|
type: t.literal("staking"),
|
|
108
|
-
stakingAction:
|
|
108
|
+
stakingAction: d,
|
|
109
109
|
counterparty: e,
|
|
110
110
|
asset: a,
|
|
111
|
-
stakerInfo:
|
|
111
|
+
stakerInfo: m
|
|
112
112
|
})
|
|
113
113
|
]), w = t.union([
|
|
114
114
|
o,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isEmpty as f } from "lodash-es";
|
|
2
2
|
import { normalizeActivitySummaryCollection as y } from "../normalize.js";
|
|
3
|
-
import {
|
|
3
|
+
import { nativeActivitySchema as v, NativeActivityTypeNative as u } from "../schema.js";
|
|
4
4
|
function S(t) {
|
|
5
5
|
var n, o;
|
|
6
6
|
const a = (o = (n = t.transactions) == null ? void 0 : n[0].reviewOfTransaction) == null ? void 0 : o.reviews;
|
|
@@ -9,7 +9,7 @@ function S(t) {
|
|
|
9
9
|
function z({ simulateAndReview: t, ...a }) {
|
|
10
10
|
var n, o, c;
|
|
11
11
|
const r = {
|
|
12
|
-
type:
|
|
12
|
+
type: u,
|
|
13
13
|
...a
|
|
14
14
|
};
|
|
15
15
|
if (t && !f(t.transactions)) {
|
|
@@ -23,7 +23,7 @@ function z({ simulateAndReview: t, ...a }) {
|
|
|
23
23
|
const m = S(t);
|
|
24
24
|
m && (r.actions = m);
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return v.parse(r);
|
|
27
27
|
}
|
|
28
28
|
export {
|
|
29
29
|
z as createNativeActivity,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
2
|
import { estimatedFeesSchema as b } from "../fees/schema.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { severitySchema as u, reasonsSchema as S } from "../warning/schema.js";
|
|
4
|
+
import { addressSchemaArgentBackend as o, addressSchema as f } from "../../../chains/starknet/address.js";
|
|
5
5
|
const h = t.object({
|
|
6
6
|
name: t.string(),
|
|
7
7
|
url: t.string(),
|
|
@@ -73,9 +73,9 @@ const h = t.object({
|
|
|
73
73
|
reason: t.string().optional(),
|
|
74
74
|
value: t.string().or(t.number()).optional()
|
|
75
75
|
}), l = t.object({
|
|
76
|
-
reason:
|
|
76
|
+
reason: S,
|
|
77
77
|
details: k.optional(),
|
|
78
|
-
severity:
|
|
78
|
+
severity: u
|
|
79
79
|
}), v = t.object({
|
|
80
80
|
assessment: y,
|
|
81
81
|
warnings: t.array(l).optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
2
|
import { webTokenSchema as n } from "../../../tokens/service/types/webToken.model.js";
|
|
3
|
-
import {
|
|
3
|
+
import { SwapDataSchema as o, SwapQuoteRouteSchema as a } from "./quote.model.js";
|
|
4
4
|
var t;
|
|
5
5
|
(function(r) {
|
|
6
6
|
r.EXACT_PAY = "EXACT_PAY", r.EXACT_RECEIVE = "EXACT_RECEIVE";
|
|
@@ -18,8 +18,8 @@ const m = e.nativeEnum(t), p = e.object({
|
|
|
18
18
|
totalFeePercentage: e.number(),
|
|
19
19
|
expiresAt: e.number(),
|
|
20
20
|
expiresIn: e.number(),
|
|
21
|
-
route:
|
|
22
|
-
data:
|
|
21
|
+
route: a,
|
|
22
|
+
data: o
|
|
23
23
|
});
|
|
24
24
|
export {
|
|
25
25
|
p as TradeSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("url-join"),f=require("./BackendPaginationError.cjs"),A=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("url-join"),f=require("./BackendPaginationError.cjs"),A=require("../chains/starknet/address.cjs"),P=require("../utils/address.cjs"),u=32;class S{constructor(e,t){this.apiBase=e,this.httpService=t}async getNfts(e,t,r,s=1){const a=this.normalizeAddress(r),c=o(this.apiBase,"pandora",e,t),m=this.pageToPageIndex(s),l=`${o(c,"profile",a,"nfts")}?page=${m}&size=${u}`,i=await this.httpService.get(l),n=i.content.map(p=>this.mapItem(p,r));return{totalPages:i.totalPages,page:i.number+1,count:n.length,nfts:n}}async getCollection(e,t,r){const s=this.normalizeAddress(r),a=o(this.apiBase,"pandora",e,t),c=o(a,"collection",s),m=`${a}/collection/${s}`,[g,l]=await Promise.all([this.httpService.get(c),this.httpService.get(m)]),i=h(g),n=l.content.map(p=>this.mapItem(p));return{...i,nfts:{totalPages:l.totalPages,page:l.number,count:n.length,data:n}}}async getNft(e,t,r,s){const a=this.normalizeAddress(r),c=o(this.apiBase,"pandora",e,t),m=o(c,"nft",a,s),g=await this.httpService.get(m);return this.mapItem(g)}async getProfileCollections(e,t,r,s=1,a=!1){const c=this.pageToPageIndex(s),m=this.normalizeAddress(r),g=o(this.apiBase,"pandora",e,t),l=o(g,"profile",m,"collections",`?page=${c}&size=${u}`),i=await this.httpService.get(l),n=[];for(const p of i.content)if(a){const b=await this.getCollectionMetrics(e,t,p.contractAddress);n.push(h(p,b))}else n.push(h(p));return{totalPages:i.totalPages,page:i.number+1,count:n.length,collections:n}}async getCollectionMetrics(e,t,r){const s=this.normalizeAddress(r),a=o(this.apiBase,"pandora",e,t),c=o(a,"collection",s,"metrics");return this.httpService.get(c)}normalizeAddress(e){return A.addressSchemaArgentBackend.parse(e)}pageToPageIndex(e){if(!Number.isInteger(e))throw new f.BackendPaginationError("notANumber");const t=e-1;if(t<0)throw new f.BackendPaginationError("tooLow");return t}mapItem(e,t){var s;const r=e.name??e.tokenId;return{token_id:e.tokenId,contract_address:e.contractAddress,name:r,spec:"spec"in e?v(e.spec):void 0,description:"",best_bid_order:{payment_amount:"bestListPrice"in e?BigInt(e.bestListPrice):void 0},properties:"properties"in e&&e.properties.map(a=>({key:a.key,value:a.value}))||[],image_uri:e.imageUrls.preview,image_url_copy:e.imageUrls.full,owner:{account_address:((s=e.owner)==null?void 0:s.address)||t},contract_name:P.formatAddress(e.contractAddress)}}}function v(d){switch(d){case"erc721":case"starknetErc721":return"ERC721";case"erc1155":case"starknetErc1155":return"ERC1155"}}function h(d,e){return{contractAddress:A.addressSchema.parse(d.contractAddress),name:d.name||P.formatAddress(d.contractAddress),description:d.description??"",imageUri:d.imageUrls.preview,...e&&{owners:{total:e.numberOfItems,unique:e.uniqueOwners},...e.floorPrice&&{floorPrice:BigInt(e.floorPrice)}}}}exports.BackendNftService=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import n from "url-join";
|
|
2
2
|
import { BackendPaginationError as f } from "./BackendPaginationError.js";
|
|
3
|
+
import { addressSchema as P, addressSchemaArgentBackend as S } from "../chains/starknet/address.js";
|
|
3
4
|
import { formatAddress as b } from "../utils/address.js";
|
|
4
|
-
import { addressSchemaArgentBackend as P, addressSchema as S } from "../chains/starknet/address.js";
|
|
5
5
|
const A = 32;
|
|
6
6
|
class k {
|
|
7
7
|
constructor(e, t) {
|
|
@@ -55,7 +55,7 @@ class k {
|
|
|
55
55
|
return this.httpService.get(c);
|
|
56
56
|
}
|
|
57
57
|
normalizeAddress(e) {
|
|
58
|
-
return
|
|
58
|
+
return S.parse(e);
|
|
59
59
|
}
|
|
60
60
|
pageToPageIndex(e) {
|
|
61
61
|
if (!Number.isInteger(e))
|
|
@@ -99,7 +99,7 @@ function w(d) {
|
|
|
99
99
|
}
|
|
100
100
|
function h(d, e) {
|
|
101
101
|
return {
|
|
102
|
-
contractAddress:
|
|
102
|
+
contractAddress: P.parse(d.contractAddress),
|
|
103
103
|
name: d.name || b(d.contractAddress),
|
|
104
104
|
description: d.description ?? "",
|
|
105
105
|
imageUri: d.imageUrls.preview,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { addressSchema as a, addressSchemaArgentBackend as o } from "../../../chains/starknet/address.js";
|
|
3
3
|
import { defiPositionTypeSchema as d } from "./defiPositionType.model.js";
|
|
4
4
|
import { createSchemaWithWarnings as g } from "../../../utils/schemas.js";
|
|
5
5
|
const f = t.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { upperCase as T } from "lodash-es";
|
|
2
|
-
import {
|
|
2
|
+
import { num as r, CallData as C, uint256 as U } from "starknet";
|
|
3
3
|
import { isEqualAddress as I } from "../../chains/starknet/address.js";
|
|
4
4
|
import { STRK_TOKEN_ADDRESS as y, ETH_TOKEN_ADDRESS as A } from "../../chains/starknet/constants.js";
|
|
5
5
|
import { argentMaxFee as h } from "./argentMaxFee.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chains/starknet/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chains/starknet/constants.cjs"),o=require("../chains/starknet/services/deploymentData/getAccountClassHash.cjs"),t=require("../chains/starknet/address.cjs"),u=[r.STRK_TOKEN_ADDRESS];function n({address:e}){return u.some(s=>t.isEqualAddress(e,s))}function a(e){return e?o.getArgentAccountClassHashesWithTxV3Support().some(s=>t.isEqualAddress(s,e)):!1}exports.classHashSupportsTxV3=a;exports.feeTokenNeedsTxV3Support=n;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { STRK_TOKEN_ADDRESS as t } from "../chains/starknet/constants.js";
|
|
2
|
+
import { getArgentAccountClassHashesWithTxV3Support as s } from "../chains/starknet/services/deploymentData/getAccountClassHash.js";
|
|
3
3
|
import { isEqualAddress as o } from "../chains/starknet/address.js";
|
|
4
|
-
const n = [
|
|
4
|
+
const n = [t];
|
|
5
5
|
function f({ address: r }) {
|
|
6
6
|
return n.some((e) => o(r, e));
|
|
7
7
|
}
|
|
8
8
|
function m(r) {
|
|
9
|
-
return r ?
|
|
9
|
+
return r ? s().some((e) => o(e, r)) : !1;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
m as classHashSupportsTxV3,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs"),P=require("./isNumeric.cjs"),c={CURRENCY:{minDecimalPlaces:2,maxDecimalPlaces:10,minDecimalSignificantDigits:2,decimalPlacesWhenZero:2,allowLeadingZerosInDecimalPart:!0},TOKEN:{minDecimalPlaces:4,maxDecimalPlaces:16,minDecimalSignificantDigits:2,decimalPlacesWhenZero:1,allowLeadingZerosInDecimalPart:!0}},C=(t,e)=>l(t,{...c.CURRENCY,...e||{}}),S=(t,e)=>l(t,{...c.TOKEN,...e||{}}),l=(t,{minDecimalPlaces:e,maxDecimalPlaces:N,minDecimalSignificantDigits:p,decimalPlacesWhenZero:m,allowLeadingZerosInDecimalPart:o}=c.CURRENCY)=>{if(!P.isNumeric(t))return null;const r=new f.BigNumber(typeof t=="bigint"?t.toString():t);let i;const b=`0.${"".padStart(m-1,"0")}1`;if(r.lt(new f.BigNumber(b))&&!o)i=`0.${"".padStart(m,"0")}`;else if(r.gte(1))i=r.toFormat(e);else{const s=r.toFormat(N).split(".")[1].match(/^0+/),y=o&&s&&s.length?s[0].length:0,D=Math.max(y+p,e);i=r.toFormat(D)}const[d,u]=i.split(".");let n=d;if(u){const a=u.replace(/0+$/,"");n+=a?`.${a}`:""}const g=1+i.indexOf(".")+m;return n.length<g&&(n=i.substring(0,g)),n};exports.prettifyCurrencyNumber=C;exports.prettifyNumber=l;exports.prettifyNumberConfig=c;exports.prettifyTokenNumber=S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BigNumber as
|
|
2
|
-
import { isNumeric as
|
|
3
|
-
const
|
|
1
|
+
import { BigNumber as f } from "../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js";
|
|
2
|
+
import { isNumeric as C } from "./isNumeric.js";
|
|
3
|
+
const l = {
|
|
4
4
|
CURRENCY: {
|
|
5
5
|
minDecimalPlaces: 2,
|
|
6
6
|
maxDecimalPlaces: 10,
|
|
@@ -15,33 +15,38 @@ const m = {
|
|
|
15
15
|
decimalPlacesWhenZero: 1,
|
|
16
16
|
allowLeadingZerosInDecimalPart: !0
|
|
17
17
|
}
|
|
18
|
-
},
|
|
19
|
-
...
|
|
18
|
+
}, R = (t, e) => p(t, {
|
|
19
|
+
...l.CURRENCY,
|
|
20
20
|
...e || {}
|
|
21
|
-
}),
|
|
22
|
-
...
|
|
21
|
+
}), b = (t, e) => p(t, {
|
|
22
|
+
...l.TOKEN,
|
|
23
23
|
...e || {}
|
|
24
|
-
}),
|
|
25
|
-
if (!
|
|
24
|
+
}), p = (t, { minDecimalPlaces: e, maxDecimalPlaces: u, minDecimalSignificantDigits: D, decimalPlacesWhenZero: c, allowLeadingZerosInDecimalPart: o } = l.CURRENCY) => {
|
|
25
|
+
if (!C(t))
|
|
26
26
|
return null;
|
|
27
|
-
const r = new
|
|
27
|
+
const r = new f(typeof t == "bigint" ? t.toString() : t);
|
|
28
28
|
let i;
|
|
29
|
-
const
|
|
30
|
-
if (r.lt(new
|
|
31
|
-
i = `0.${"".padStart(
|
|
29
|
+
const d = `0.${"".padStart(c - 1, "0")}1`;
|
|
30
|
+
if (r.lt(new f(d)) && !o)
|
|
31
|
+
i = `0.${"".padStart(c, "0")}`;
|
|
32
32
|
else if (r.gte(1))
|
|
33
33
|
i = r.toFormat(e);
|
|
34
34
|
else {
|
|
35
|
-
const
|
|
36
|
-
i = r.toFormat(
|
|
35
|
+
const m = r.toFormat(u).split(".")[1].match(/^0+/), P = o && m && m.length ? m[0].length : 0, h = Math.max(P + D, e);
|
|
36
|
+
i = r.toFormat(h);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const [N, s] = i.split(".");
|
|
39
|
+
let n = N;
|
|
40
|
+
if (s) {
|
|
41
|
+
const a = s.replace(/0+$/, "");
|
|
42
|
+
n += a ? `.${a}` : "";
|
|
43
|
+
}
|
|
44
|
+
const g = 1 + i.indexOf(".") + c;
|
|
45
|
+
return n.length < g && (n = i.substring(0, g)), n;
|
|
41
46
|
};
|
|
42
47
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
R as prettifyCurrencyNumber,
|
|
49
|
+
p as prettifyNumber,
|
|
50
|
+
l as prettifyNumberConfig,
|
|
51
|
+
b as prettifyTokenNumber
|
|
47
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"format:fix": "prettier . --ignore-unknown --write"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@amplitude/analytics-types": "
|
|
47
|
-
"@commitlint/cli": "
|
|
48
|
-
"@commitlint/config-conventional": "
|
|
49
|
-
"@rollup/plugin-typescript": "
|
|
50
|
-
"@semantic-release/git": "
|
|
51
|
-
"@types/async-retry": "
|
|
52
|
-
"@types/lodash-es": "
|
|
53
|
-
"@types/ua-parser-js": "
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "
|
|
55
|
-
"@typescript-eslint/parser": "
|
|
56
|
-
"eslint": "
|
|
57
|
-
"eslint-config-prettier": "
|
|
58
|
-
"eslint-plugin-import": "
|
|
59
|
-
"husky": "
|
|
60
|
-
"lint-staged": "
|
|
61
|
-
"msw": "
|
|
62
|
-
"prettier": "
|
|
63
|
-
"semantic-release": "
|
|
64
|
-
"ts-to-zod": "
|
|
65
|
-
"typescript": "
|
|
66
|
-
"vite": "
|
|
67
|
-
"vite-plugin-dts": "
|
|
68
|
-
"vitest": "2.1.
|
|
46
|
+
"@amplitude/analytics-types": "2.8.4",
|
|
47
|
+
"@commitlint/cli": "19.5.0",
|
|
48
|
+
"@commitlint/config-conventional": "19.5.0",
|
|
49
|
+
"@rollup/plugin-typescript": "12.1.1",
|
|
50
|
+
"@semantic-release/git": "10.0.1",
|
|
51
|
+
"@types/async-retry": "1.4.9",
|
|
52
|
+
"@types/lodash-es": "4.17.12",
|
|
53
|
+
"@types/ua-parser-js": "0.7.39",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "8.14.0",
|
|
55
|
+
"@typescript-eslint/parser": "8.14.0",
|
|
56
|
+
"eslint": "8.57.1",
|
|
57
|
+
"eslint-config-prettier": "9.1.0",
|
|
58
|
+
"eslint-plugin-import": "2.31.0",
|
|
59
|
+
"husky": "9.1.6",
|
|
60
|
+
"lint-staged": "15.2.10",
|
|
61
|
+
"msw": "2.6.5",
|
|
62
|
+
"prettier": "3.3.3",
|
|
63
|
+
"semantic-release": "24.2.0",
|
|
64
|
+
"ts-to-zod": "3.13.0",
|
|
65
|
+
"typescript": "5.6.3",
|
|
66
|
+
"vite": "5.4.11",
|
|
67
|
+
"vite-plugin-dts": "4.3.0",
|
|
68
|
+
"vitest": "2.1.5"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@argent/x-multicall": "^7.1.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@scure/bip39": "^1.2.1",
|
|
83
83
|
"async-retry": "^1.3.3",
|
|
84
84
|
"lodash-es": "^4.17.21",
|
|
85
|
-
"ua-parser-js": "^1.0.38",
|
|
85
|
+
"ua-parser-js": "^1.0.38 || ^2.0.0",
|
|
86
86
|
"url-join": "^5.0.0",
|
|
87
87
|
"zod": "^3.23.8"
|
|
88
88
|
},
|