@springmicro/auth 0.7.19 → 0.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Index-1e31d199-uzuBdtPJ.js → Index-1e31d199-BXGGyb0l.js} +48 -48
- package/dist/{Index-6078f122-DLKGZ31_.js → Index-6078f122-DGZJdnAZ.js} +67 -67
- package/dist/{Web3Auth-Zi4vzALJ.js → Web3Auth-DG8Yz_cD.js} +5884 -5161
- package/dist/{ccip-c78d2f16-DUJGUJJo.js → ccip-c78d2f16-BfTJLflq.js} +2 -2
- package/dist/{hmac-CGR-aDxj.js → hmac-CW2mnXa8.js} +1 -1
- package/dist/{index-021f6a62-DBObZnNM.js → index-021f6a62-CxfpndDE.js} +32 -32
- package/dist/{index-40a497ea-BEwImqwN.js → index-40a497ea-BRLn4BDo.js} +3 -3
- package/dist/index-B51q7F_W.js +9742 -0
- package/dist/{index-BrtZvnd0.js → index-BXvsDp0W.js} +582 -584
- package/dist/{index-B4ilnhZS.js → index-BYJic99M.js} +33 -33
- package/dist/{index-Bu--mwXK.js → index-Bfb6JoQf.js} +9082 -8717
- package/dist/{index-XgTFhms9.js → index-C8R4klyg.js} +27 -27
- package/dist/{index-C8ynRf9-.js → index-CBbDq4vF.js} +3310 -3294
- package/dist/{index-1_Q3geSC.js → index-DbQi7wFl.js} +26 -26
- package/dist/index-hDobpv7u.js +32 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +293 -286
- package/dist/native-FDN9oNjc.js +15 -0
- package/dist/{number-BfxMSPkm.js → number-DvQcSzeP.js} +556 -335
- package/dist/parseEther-C7cmMVOE.js +24 -0
- package/dist/{sha256-JJGtJ2gn.js → sha256-C90UGNQg.js} +8 -7
- package/dist/{transactionRequest-be6a8ea9-_q5BIZxq.js → transactionRequest-be6a8ea9-CCwC71wa.js} +9 -9
- package/package.json +2 -2
- package/dist/index-Cn-_BAwo.js +0 -6151
- package/dist/index-Cw8vH8KI.js +0 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as O, c as L, e as E, H as h, s as w } from "./index-021f6a62-
|
|
2
|
-
import {
|
|
1
|
+
import { d as O, c as L, e as E, H as h, s as w } from "./index-021f6a62-CxfpndDE.js";
|
|
2
|
+
import { G as x, o as M, i as m, I as y, B as p, y as b } from "./transactionRequest-be6a8ea9-CCwC71wa.js";
|
|
3
3
|
class R extends p {
|
|
4
4
|
constructor({ callbackSelector: e, cause: t, data: n, extraData: c, sender: u, urls: r }) {
|
|
5
5
|
var i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as g, y as vt, z as I, A as dn, C as Dt, D as Re, m as ce,
|
|
1
|
+
import { B as g, y as vt, z as I, A as dn, C as Dt, D as Re, m as ce, i as O, I as ue, E as pn, F as Ie, T as Ne, U as Qt, n as hn, b as gn, s as D, e as N, G as k, J as Y, p as Rt, K as Ae, t as ge, l as we, L as ie, M as nt, N as rt, O as ot, P as st, Q as it, R as at, S as ct, V as ut, W as It, X as Me, o as Nt, c as wn, Y as At, Z as mn, _ as bn, $ as yn, a0 as x, a1 as En, a2 as Cn, a3 as me, a as Bn, a4 as Mn, h as vn, a5 as Dn, a6 as Qn } from "./transactionRequest-be6a8ea9-CCwC71wa.js";
|
|
2
2
|
function Rn(e, t = "wei") {
|
|
3
3
|
return mn(e, Qn[t]);
|
|
4
4
|
}
|
|
@@ -927,18 +927,18 @@ class Br extends g {
|
|
|
927
927
|
function Mr(e, t = {}) {
|
|
928
928
|
typeof t.size < "u" && me(e, { size: t.size });
|
|
929
929
|
const n = N(e, t);
|
|
930
|
-
return
|
|
930
|
+
return vn(n, t);
|
|
931
931
|
}
|
|
932
932
|
function vr(e, t = {}) {
|
|
933
933
|
let n = e;
|
|
934
934
|
if (typeof t.size < "u" && (me(n, { size: t.size }), n = we(n)), n.length > 1 || n[0] > 1)
|
|
935
|
-
throw new
|
|
935
|
+
throw new Mn(n);
|
|
936
936
|
return !!n[0];
|
|
937
937
|
}
|
|
938
938
|
function R(e, t = {}) {
|
|
939
939
|
typeof t.size < "u" && me(e, { size: t.size });
|
|
940
940
|
const n = N(e, t);
|
|
941
|
-
return
|
|
941
|
+
return Bn(n, t);
|
|
942
942
|
}
|
|
943
943
|
function Dr(e, t = {}) {
|
|
944
944
|
let n = e;
|
|
@@ -1000,11 +1000,11 @@ function Ke(e) {
|
|
|
1000
1000
|
const { dynamic: i, encoded: a } = e[s];
|
|
1001
1001
|
i ? (n.push(I(t + o, { size: 32 })), r.push(a), o += D(a)) : n.push(a);
|
|
1002
1002
|
}
|
|
1003
|
-
return
|
|
1003
|
+
return k([...n, ...r]);
|
|
1004
1004
|
}
|
|
1005
1005
|
function Ir(e) {
|
|
1006
|
-
if (!
|
|
1007
|
-
throw new
|
|
1006
|
+
if (!O(e))
|
|
1007
|
+
throw new ue({ address: e });
|
|
1008
1008
|
return { dynamic: !1, encoded: x(e.toLowerCase()) };
|
|
1009
1009
|
}
|
|
1010
1010
|
function Nr(e, { length: t, param: n }) {
|
|
@@ -1029,7 +1029,7 @@ function Nr(e, { length: t, param: n }) {
|
|
|
1029
1029
|
const a = I(s.length, { size: 32 });
|
|
1030
1030
|
return {
|
|
1031
1031
|
dynamic: !0,
|
|
1032
|
-
encoded: s.length > 0 ?
|
|
1032
|
+
encoded: s.length > 0 ? k([a, i]) : a
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
1035
|
if (o)
|
|
@@ -1037,7 +1037,7 @@ function Nr(e, { length: t, param: n }) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
return {
|
|
1039
1039
|
dynamic: !1,
|
|
1040
|
-
encoded:
|
|
1040
|
+
encoded: k(s.map(({ encoded: i }) => i))
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
1043
|
function Pr(e, { param: t }) {
|
|
@@ -1049,7 +1049,7 @@ function Pr(e, { param: t }) {
|
|
|
1049
1049
|
size: Math.ceil((e.length - 2) / 2 / 32) * 32
|
|
1050
1050
|
})), {
|
|
1051
1051
|
dynamic: !0,
|
|
1052
|
-
encoded:
|
|
1052
|
+
encoded: k([x(I(r, { size: 32 })), o])
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
1055
|
if (r !== Number.parseInt(n))
|
|
@@ -1081,7 +1081,7 @@ function kr(e) {
|
|
|
1081
1081
|
}));
|
|
1082
1082
|
return {
|
|
1083
1083
|
dynamic: !0,
|
|
1084
|
-
encoded:
|
|
1084
|
+
encoded: k([
|
|
1085
1085
|
x(I(D(t), { size: 32 })),
|
|
1086
1086
|
...r
|
|
1087
1087
|
])
|
|
@@ -1099,7 +1099,7 @@ function Fr(e, { param: t }) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return {
|
|
1101
1101
|
dynamic: n,
|
|
1102
|
-
encoded: n ? Ke(r) :
|
|
1102
|
+
encoded: n ? Ke(r) : k(r.map(({ encoded: o }) => o))
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
1105
|
function Ze(e) {
|
|
@@ -1260,7 +1260,7 @@ function te(e) {
|
|
|
1260
1260
|
const n = Ze(e.type);
|
|
1261
1261
|
return !!(n && te({ ...e, type: n[1] }));
|
|
1262
1262
|
}
|
|
1263
|
-
const Jr = (e) =>
|
|
1263
|
+
const Jr = (e) => Ae(Rt(e));
|
|
1264
1264
|
function Lr(e) {
|
|
1265
1265
|
return Jr(e);
|
|
1266
1266
|
}
|
|
@@ -1332,7 +1332,7 @@ function tn(e) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
const Wr = tn, Ye = (e) => ce(tn(e), 0, 4);
|
|
1334
1334
|
function We(e) {
|
|
1335
|
-
const { abi: t, args: n = [], name: r } = e, o =
|
|
1335
|
+
const { abi: t, args: n = [], name: r } = e, o = Nt(r, { strict: !1 }), s = t.filter((a) => o ? a.type === "function" ? Ye(a) === r : a.type === "event" ? Wr(a) === r : !1 : "name" in a && a.name === r);
|
|
1336
1336
|
if (s.length === 0)
|
|
1337
1337
|
return;
|
|
1338
1338
|
if (s.length === 1)
|
|
@@ -1372,7 +1372,7 @@ function je(e, t) {
|
|
|
1372
1372
|
const n = typeof e, r = t.type;
|
|
1373
1373
|
switch (r) {
|
|
1374
1374
|
case "address":
|
|
1375
|
-
return
|
|
1375
|
+
return O(e, { strict: !1 });
|
|
1376
1376
|
case "bool":
|
|
1377
1377
|
return n === "boolean";
|
|
1378
1378
|
case "function":
|
|
@@ -1393,7 +1393,7 @@ function nn(e, t, n) {
|
|
|
1393
1393
|
if (o.type === "tuple" && s.type === "tuple" && "components" in o && "components" in s)
|
|
1394
1394
|
return nn(o.components, s.components, n[r]);
|
|
1395
1395
|
const i = [o.type, s.type];
|
|
1396
|
-
if (i.includes("address") && i.includes("bytes20") ? !0 : i.includes("address") && i.includes("string") ?
|
|
1396
|
+
if (i.includes("address") && i.includes("bytes20") ? !0 : i.includes("address") && i.includes("string") ? O(n[r], { strict: !1 }) : i.includes("address") && i.includes("bytes") ? O(n[r], { strict: !1 }) : !1)
|
|
1397
1397
|
return i;
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
@@ -1560,7 +1560,7 @@ class ro extends g {
|
|
|
1560
1560
|
constructor(t, { account: n, docsPath: r, chain: o, data: s, gas: i, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: u, nonce: A, to: l, value: f, stateOverride: d }) {
|
|
1561
1561
|
var w;
|
|
1562
1562
|
const h = n ? Xe(n) : void 0;
|
|
1563
|
-
let p =
|
|
1563
|
+
let p = It({
|
|
1564
1564
|
from: h == null ? void 0 : h.address,
|
|
1565
1565
|
to: l,
|
|
1566
1566
|
value: typeof f < "u" && `${Rn(f)} ${((w = o == null ? void 0 : o.nativeCurrency) == null ? void 0 : w.symbol) || "ETH"}`,
|
|
@@ -1600,8 +1600,8 @@ class oo extends g {
|
|
|
1600
1600
|
args: r,
|
|
1601
1601
|
includeFunctionName: !1,
|
|
1602
1602
|
includeName: !1
|
|
1603
|
-
}) : void 0, A = c ? T(c, { includeName: !0 }) : void 0, l =
|
|
1604
|
-
address: o &&
|
|
1603
|
+
}) : void 0, A = c ? T(c, { includeName: !0 }) : void 0, l = It({
|
|
1604
|
+
address: o && Dn(o),
|
|
1605
1605
|
function: A,
|
|
1606
1606
|
args: u && u !== "()" && `${[...Array((i == null ? void 0 : i.length) ?? 0).keys()].map(() => " ").join("")}${u}`,
|
|
1607
1607
|
sender: a
|
|
@@ -1768,7 +1768,7 @@ function an(e) {
|
|
|
1768
1768
|
if (e.length !== 66 || e.indexOf("[") !== 0 || e.indexOf("]") !== 65)
|
|
1769
1769
|
return null;
|
|
1770
1770
|
const t = `0x${e.slice(1, 65)}`;
|
|
1771
|
-
return
|
|
1771
|
+
return Nt(t) ? t : null;
|
|
1772
1772
|
}
|
|
1773
1773
|
function X(e) {
|
|
1774
1774
|
let t = new Uint8Array(32).fill(0);
|
|
@@ -1776,8 +1776,8 @@ function X(e) {
|
|
|
1776
1776
|
return N(t);
|
|
1777
1777
|
const n = e.split(".");
|
|
1778
1778
|
for (let r = n.length - 1; r >= 0; r -= 1) {
|
|
1779
|
-
const o = an(n[r]), s = o ?
|
|
1780
|
-
t =
|
|
1779
|
+
const o = an(n[r]), s = o ? Rt(o) : Ae(Y(n[r]), "bytes");
|
|
1780
|
+
t = Ae(k([t, s]), "bytes");
|
|
1781
1781
|
}
|
|
1782
1782
|
return N(t);
|
|
1783
1783
|
}
|
|
@@ -1786,7 +1786,7 @@ function io(e) {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
function cn(e) {
|
|
1788
1788
|
const t = new Uint8Array(32).fill(0);
|
|
1789
|
-
return e ? an(e) ||
|
|
1789
|
+
return e ? an(e) || Ae(Y(e)) : N(t);
|
|
1790
1790
|
}
|
|
1791
1791
|
function re(e) {
|
|
1792
1792
|
const t = e.replace(/^\.|\.$/gm, "");
|
|
@@ -1938,14 +1938,14 @@ function po(e, t) {
|
|
|
1938
1938
|
cause: e,
|
|
1939
1939
|
maxFeePerGas: t == null ? void 0 : t.maxFeePerGas,
|
|
1940
1940
|
maxPriorityFeePerGas: t == null ? void 0 : t.maxPriorityFeePerGas
|
|
1941
|
-
}) : new
|
|
1941
|
+
}) : new Qt({
|
|
1942
1942
|
cause: e
|
|
1943
1943
|
});
|
|
1944
1944
|
}
|
|
1945
1945
|
function ho(e, { docsPath: t, ...n }) {
|
|
1946
1946
|
const r = (() => {
|
|
1947
1947
|
const o = po(e, n);
|
|
1948
|
-
return o instanceof
|
|
1948
|
+
return o instanceof Qt ? e : o;
|
|
1949
1949
|
})();
|
|
1950
1950
|
return new ro(r, {
|
|
1951
1951
|
docsPath: t,
|
|
@@ -2027,8 +2027,8 @@ function bo(e) {
|
|
|
2027
2027
|
return;
|
|
2028
2028
|
const t = {};
|
|
2029
2029
|
for (const { address: n, ...r } of e) {
|
|
2030
|
-
if (!
|
|
2031
|
-
throw new
|
|
2030
|
+
if (!O(n, { strict: !1 }))
|
|
2031
|
+
throw new ue({ address: n });
|
|
2032
2032
|
if (t[n])
|
|
2033
2033
|
throw new eo({ address: n });
|
|
2034
2034
|
t[n] = mo(r);
|
|
@@ -2037,10 +2037,10 @@ function bo(e) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
function yo(e) {
|
|
2039
2039
|
const { account: t, gasPrice: n, maxFeePerGas: r, maxPriorityFeePerGas: o, to: s } = e, i = t ? Xe(t) : void 0;
|
|
2040
|
-
if (i && !
|
|
2041
|
-
throw new
|
|
2042
|
-
if (s && !
|
|
2043
|
-
throw new
|
|
2040
|
+
if (i && !O(i.address))
|
|
2041
|
+
throw new ue({ address: i.address });
|
|
2042
|
+
if (s && !O(s))
|
|
2043
|
+
throw new ue({ address: s });
|
|
2044
2044
|
if (typeof n < "u" && (typeof r < "u" || typeof o < "u"))
|
|
2045
2045
|
throw new pn();
|
|
2046
2046
|
if (r && r > 2n ** 256n - 1n)
|
|
@@ -2090,7 +2090,7 @@ async function Eo(e, t) {
|
|
|
2090
2090
|
});
|
|
2091
2091
|
return tt === "0x" ? { data: void 0 } : { data: tt };
|
|
2092
2092
|
} catch (B) {
|
|
2093
|
-
const b = Mo(B), { offchainLookup: Q, offchainLookupSignature: oe } = await import("./ccip-c78d2f16-
|
|
2093
|
+
const b = Mo(B), { offchainLookup: Q, offchainLookupSignature: oe } = await import("./ccip-c78d2f16-BfTJLflq.js");
|
|
2094
2094
|
if (e.ccipRead !== !1 && (b == null ? void 0 : b.slice(0, 10)) === oe && p)
|
|
2095
2095
|
return { data: await Q(e, { data: b, to: p }) };
|
|
2096
2096
|
throw ho(B, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as D, t as f, c as J, d as X, a as Y, i as F, I, b as be, e as P, f as Ae, g as Pe, j as R, F as ee, T as ve, k as we, l as ce, B as E, s as pe, m as De, n as S, o as ke, p as Se, w as Ue, H as Te, q as Q, r as le, u as Ge, v as ze, x as m } from "./transactionRequest-be6a8ea9-CCwC71wa.js";
|
|
2
2
|
function b(e) {
|
|
3
3
|
return {
|
|
4
4
|
formatters: void 0,
|
|
@@ -358,9 +358,9 @@ class Xe extends qe {
|
|
|
358
358
|
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
const Re = /* @__PURE__ */
|
|
361
|
+
const Re = /* @__PURE__ */ Ue(() => new Xe());
|
|
362
362
|
function et(e, t) {
|
|
363
|
-
return Re(
|
|
363
|
+
return Re(ke(e, { strict: !1 }) ? Se(e) : e);
|
|
364
364
|
}
|
|
365
365
|
function tt(e) {
|
|
366
366
|
const { commitment: t, version: s = 1 } = e, a = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = et(t);
|