0xtrails 0.8.1 → 0.8.2
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/{ccip-DajerYAP.js → ccip-ru_Yzdas.js} +5 -5
- package/dist/{index-Bcr6y5Pc.js → index-Si7cO9V7.js} +589 -591
- package/dist/index.js +124 -125
- package/dist/intents.d.ts.map +1 -1
- package/dist/mutations.d.ts.map +1 -1
- package/dist/widget/index.js +3 -3
- package/package.json +2 -2
- package/src/intents.ts +1 -5
- package/src/mutations.ts +0 -2
|
@@ -35,15 +35,15 @@ const getReactInternals = () => {
|
|
|
35
35
|
return {};
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
import As, { useState as Z, useEffect as se, createContext as $t, useRef as at, useLayoutEffect as E5, useId as xh, useContext as ct, useInsertionEffect as T5, useMemo as he, useCallback as Te, Children as iL, isValidElement as aL, createElement as Ac, Fragment as A5, forwardRef as
|
|
38
|
+
import As, { useState as Z, useEffect as se, createContext as $t, useRef as at, useLayoutEffect as E5, useId as xh, useContext as ct, useInsertionEffect as T5, useMemo as he, useCallback as Te, Children as iL, isValidElement as aL, createElement as Ac, Fragment as A5, forwardRef as Co, Component as oL, StrictMode as o2, useImperativeHandle as cL } from "react";
|
|
39
39
|
import * as I5 from "react-dom";
|
|
40
40
|
import lL, { createPortal as vb } from "react-dom";
|
|
41
|
-
import { getAddress as ns, UserRejectedRequestError as c2, formatUnits as pn, zeroAddress as Se, ethAddress as l2, erc20Abi as
|
|
41
|
+
import { getAddress as ns, UserRejectedRequestError as c2, formatUnits as pn, zeroAddress as Se, ethAddress as l2, erc20Abi as Ka, parseUnits as ks, isAddressEqual as yf, isAddress as ur, http as wi, createPublicClient as S5, encodeFunctionData as jr, createWalletClient as xb, keccak256 as kl, encodeAbiParameters as d2, concat as Wd, pad as so, toHex as Ic, custom as C5, encodeDeployData as dL, decodeAbiParameters as uL, decodeFunctionData as u2, parseGwei as fL, maxUint256 as f2, decodeEventLog as No, parseAbiItem as Po, parseAbi as hL, defineChain as pL } from "viem";
|
|
42
42
|
import { createConnector as mL, useConnections as Os, useConnect as kh, useReadContracts as gL, useAccount as Qn, useChainId as yL, WagmiContext as N5, createConfig as P5, createStorage as O5, WagmiProvider as R5, useWalletClient as bL, useSwitchAccount as Eh, useDisconnect as M5, useConnectors as D5, useEnsAddress as wL, useEnsName as vL, usePublicClient as xL } from "wagmi";
|
|
43
43
|
import { useIndexerClient as kL, useIndexerGatewayClient as Hd, SequenceHooksProvider as EL } from "@0xsequence/hooks";
|
|
44
44
|
import { injected as U5, baseAccount as TL, gemini as AL, safe as IL, walletConnect as L5 } from "wagmi/connectors";
|
|
45
45
|
import { ethers as H, MessagePrefix as SL } from "ethers";
|
|
46
|
-
import { monad as Mr, katana as
|
|
46
|
+
import { monad as Mr, katana as io, etherlink as tn, bsc as vs, xai as da, soneium as ua, gnosis as ao, blast as Sc, b3 as oo, avalanche as xs, arbitrumNova as co, apeChain as lo, mainnet as nn, polygon as Dr, optimism as rs, baseSepolia as ld, base as Fr, arbitrum as lr, linea as h2, unichain as p2, worldchain as m2, arbitrumSepolia as dd, avalancheFuji as bf, b3Sepolia as wf, blastSepolia as vf, bscTestnet as xf, sepolia as ud, gnosisChiado as kf, polygonAmoy as Ef, optimismSepolia as Tf, soneiumMinato as Af, xaiTestnet as If, etherlinkTestnet as Sf, somniaTestnet as Cf, monadTestnet as Nf } from "viem/chains";
|
|
47
47
|
function Ws(e) {
|
|
48
48
|
const t = [];
|
|
49
49
|
let n = e;
|
|
@@ -130,7 +130,7 @@ const $5 = {
|
|
|
130
130
|
stage1: "0x0000000000003DF093bc4257E6dCE45D937EF161",
|
|
131
131
|
guestModule: "0x0000000000601fcA38f0cCA649453F6739436d6C",
|
|
132
132
|
creationCode: "0x6041600e3d396021805130553df33d3d36153402601f57363d3d373d363d30545af43d82803e903d91601f57fd5bf3"
|
|
133
|
-
},
|
|
133
|
+
}, Qo = {
|
|
134
134
|
trailsIntentEntrypointAddress: "0x91E9e3Fe369CF005dB2857Ef24955A66d1E692Cf",
|
|
135
135
|
trailsRouterAddress: "0xF8A739B9F24E297a98b7aba7A9cdFDBD457F6fF8",
|
|
136
136
|
trailsRouterShimAddress: "0x1306aF05bA556839885B9B8c758f1d2F33d3571E"
|
|
@@ -492,7 +492,7 @@ const oB = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
492
492
|
}, cB = (e) => Ei(0, 255, e), dp = {
|
|
493
493
|
...Yc,
|
|
494
494
|
transform: (e) => Math.round(cB(e))
|
|
495
|
-
},
|
|
495
|
+
}, Fa = {
|
|
496
496
|
test: /* @__PURE__ */ $b("rgb", "red"),
|
|
497
497
|
parse: /* @__PURE__ */ oT("red", "green", "blue"),
|
|
498
498
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + dp.transform(e) + ", " + dp.transform(t) + ", " + dp.transform(n) + ", " + Gl(pd.transform(r)) + ")"
|
|
@@ -509,7 +509,7 @@ function lB(e) {
|
|
|
509
509
|
const _m = {
|
|
510
510
|
test: /* @__PURE__ */ $b("#"),
|
|
511
511
|
parse: lB,
|
|
512
|
-
transform:
|
|
512
|
+
transform: Fa.transform
|
|
513
513
|
}, qd = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
514
514
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
515
515
|
parse: parseFloat,
|
|
@@ -523,9 +523,9 @@ const _m = {
|
|
|
523
523
|
parse: /* @__PURE__ */ oT("hue", "saturation", "lightness"),
|
|
524
524
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Hs.transform(Gl(t)) + ", " + Hs.transform(Gl(n)) + ", " + Gl(pd.transform(r)) + ")"
|
|
525
525
|
}, bn = {
|
|
526
|
-
test: (e) =>
|
|
527
|
-
parse: (e) =>
|
|
528
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
526
|
+
test: (e) => Fa.test(e) || _m.test(e) || ec.test(e),
|
|
527
|
+
parse: (e) => Fa.test(e) ? Fa.parse(e) : ec.test(e) ? ec.parse(e) : _m.parse(e),
|
|
528
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Fa.transform(e) : ec.transform(e),
|
|
529
529
|
getAnimatableNone: (e) => {
|
|
530
530
|
const t = bn.parse(e);
|
|
531
531
|
return t.alpha = 0, bn.transform(t);
|
|
@@ -596,7 +596,7 @@ function Rf(e, t) {
|
|
|
596
596
|
const Zt = (e, t, n) => e + (t - e) * n, fp = (e, t, n) => {
|
|
597
597
|
const r = e * e, s = n * (t * t - r) + r;
|
|
598
598
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
599
|
-
}, vB = [_m,
|
|
599
|
+
}, vB = [_m, Fa, ec], xB = (e) => vB.find((t) => t.test(e));
|
|
600
600
|
function x2(e) {
|
|
601
601
|
const t = xB(e);
|
|
602
602
|
if (Qc(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
|
|
@@ -609,7 +609,7 @@ const k2 = (e, t) => {
|
|
|
609
609
|
if (!n || !r)
|
|
610
610
|
return Rf(e, t);
|
|
611
611
|
const s = { ...n };
|
|
612
|
-
return (i) => (s.red = fp(n.red, r.red, i), s.green = fp(n.green, r.green, i), s.blue = fp(n.blue, r.blue, i), s.alpha = Zt(n.alpha, r.alpha, i),
|
|
612
|
+
return (i) => (s.red = fp(n.red, r.red, i), s.green = fp(n.green, r.green, i), s.blue = fp(n.blue, r.blue, i), s.alpha = Zt(n.alpha, r.alpha, i), Fa.transform(s));
|
|
613
613
|
}, Vm = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
614
614
|
function kB(e, t) {
|
|
615
615
|
return Vm.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
@@ -1103,8 +1103,8 @@ function GB(e) {
|
|
|
1103
1103
|
for (let t = 1; t < e.length; t++)
|
|
1104
1104
|
e[t] ?? (e[t] = e[t - 1]);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1107
|
-
const t =
|
|
1106
|
+
const $a = (e) => e * 180 / Math.PI, Hm = (e) => {
|
|
1107
|
+
const t = $a(Math.atan2(e[1], e[0]));
|
|
1108
1108
|
return Gm(t);
|
|
1109
1109
|
}, zB = {
|
|
1110
1110
|
x: 4,
|
|
@@ -1116,8 +1116,8 @@ const _a = (e) => e * 180 / Math.PI, Hm = (e) => {
|
|
|
1116
1116
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1117
1117
|
rotate: Hm,
|
|
1118
1118
|
rotateZ: Hm,
|
|
1119
|
-
skewX: (e) =>
|
|
1120
|
-
skewY: (e) =>
|
|
1119
|
+
skewX: (e) => $a(Math.atan(e[1])),
|
|
1120
|
+
skewY: (e) => $a(Math.atan(e[2])),
|
|
1121
1121
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1122
1122
|
}, Gm = (e) => (e = e % 360, e < 0 && (e += 360), e), T2 = Hm, A2 = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), I2 = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), qB = {
|
|
1123
1123
|
x: 12,
|
|
@@ -1129,12 +1129,12 @@ const _a = (e) => e * 180 / Math.PI, Hm = (e) => {
|
|
|
1129
1129
|
scaleX: A2,
|
|
1130
1130
|
scaleY: I2,
|
|
1131
1131
|
scale: (e) => (A2(e) + I2(e)) / 2,
|
|
1132
|
-
rotateX: (e) => Gm(
|
|
1133
|
-
rotateY: (e) => Gm(
|
|
1132
|
+
rotateX: (e) => Gm($a(Math.atan2(e[6], e[5]))),
|
|
1133
|
+
rotateY: (e) => Gm($a(Math.atan2(-e[2], e[0]))),
|
|
1134
1134
|
rotateZ: T2,
|
|
1135
1135
|
rotate: T2,
|
|
1136
|
-
skewX: (e) =>
|
|
1137
|
-
skewY: (e) =>
|
|
1136
|
+
skewX: (e) => $a(Math.atan(e[4])),
|
|
1137
|
+
skewY: (e) => $a(Math.atan(e[1])),
|
|
1138
1138
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1139
1139
|
};
|
|
1140
1140
|
function zm(e) {
|
|
@@ -1189,7 +1189,7 @@ function ZB(e) {
|
|
|
1189
1189
|
r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
1190
1190
|
}), t;
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const Qa = {
|
|
1193
1193
|
// Dimensions
|
|
1194
1194
|
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
1195
1195
|
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
@@ -1201,13 +1201,13 @@ const Ya = {
|
|
|
1201
1201
|
x: (e, { transform: t }) => qm(t, "x"),
|
|
1202
1202
|
y: (e, { transform: t }) => qm(t, "y")
|
|
1203
1203
|
};
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
const
|
|
1204
|
+
Qa.translateX = Qa.x;
|
|
1205
|
+
Qa.translateY = Qa.y;
|
|
1206
|
+
const Ya = /* @__PURE__ */ new Set();
|
|
1207
1207
|
let Km = !1, Qm = !1, Ym = !1;
|
|
1208
1208
|
function yT() {
|
|
1209
1209
|
if (Qm) {
|
|
1210
|
-
const e = Array.from(
|
|
1210
|
+
const e = Array.from(Ya).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
1211
1211
|
t.forEach((r) => {
|
|
1212
1212
|
const s = ZB(r);
|
|
1213
1213
|
s.length && (n.set(r, s), r.render());
|
|
@@ -1221,10 +1221,10 @@ function yT() {
|
|
|
1221
1221
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
|
-
Qm = !1, Km = !1,
|
|
1224
|
+
Qm = !1, Km = !1, Ya.forEach((e) => e.complete(Ym)), Ya.clear();
|
|
1225
1225
|
}
|
|
1226
1226
|
function bT() {
|
|
1227
|
-
|
|
1227
|
+
Ya.forEach((e) => {
|
|
1228
1228
|
e.readKeyframes(), e.needsMeasurement && (Qm = !0);
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
@@ -1236,7 +1236,7 @@ class Gb {
|
|
|
1236
1236
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = s, this.element = i, this.isAsync = a;
|
|
1237
1237
|
}
|
|
1238
1238
|
scheduleResolve() {
|
|
1239
|
-
this.state = "scheduled", this.isAsync ? (
|
|
1239
|
+
this.state = "scheduled", this.isAsync ? (Ya.add(this), Km || (Km = !0, Kt.read(bT), Kt.resolveKeyframes(yT))) : (this.readKeyframes(), this.complete());
|
|
1240
1240
|
}
|
|
1241
1241
|
readKeyframes() {
|
|
1242
1242
|
const { unresolvedKeyframes: t, name: n, element: r, motionValue: s } = this;
|
|
@@ -1261,10 +1261,10 @@ class Gb {
|
|
|
1261
1261
|
measureEndState() {
|
|
1262
1262
|
}
|
|
1263
1263
|
complete(t = !1) {
|
|
1264
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t),
|
|
1264
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Ya.delete(this);
|
|
1265
1265
|
}
|
|
1266
1266
|
cancel() {
|
|
1267
|
-
this.state === "scheduled" && (
|
|
1267
|
+
this.state === "scheduled" && (Ya.delete(this), this.state = "pending");
|
|
1268
1268
|
}
|
|
1269
1269
|
resume() {
|
|
1270
1270
|
this.state === "pending" && this.scheduleResolve();
|
|
@@ -1769,7 +1769,7 @@ class PF extends Gb {
|
|
|
1769
1769
|
const l = t[c];
|
|
1770
1770
|
typeof l == "string" && (t[c] = parseFloat(l));
|
|
1771
1771
|
}
|
|
1772
|
-
else
|
|
1772
|
+
else Qa[r] && (this.needsMeasurement = !0);
|
|
1773
1773
|
}
|
|
1774
1774
|
resolveNoneKeyframes() {
|
|
1775
1775
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
@@ -1781,7 +1781,7 @@ class PF extends Gb {
|
|
|
1781
1781
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
1782
1782
|
if (!t || !t.current)
|
|
1783
1783
|
return;
|
|
1784
|
-
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
1784
|
+
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Qa[r](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
|
|
1785
1785
|
const s = n[n.length - 1];
|
|
1786
1786
|
s !== void 0 && t.getValue(r, s).jump(s, !1);
|
|
1787
1787
|
}
|
|
@@ -1792,7 +1792,7 @@ class PF extends Gb {
|
|
|
1792
1792
|
const s = t.getValue(n);
|
|
1793
1793
|
s && s.jump(this.measuredOrigin, !1);
|
|
1794
1794
|
const i = r.length - 1, a = r[i];
|
|
1795
|
-
r[i] =
|
|
1795
|
+
r[i] = Qa[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, c]) => {
|
|
1796
1796
|
t.getValue(o).set(c);
|
|
1797
1797
|
}), this.resolveNoneKeyframes();
|
|
1798
1798
|
}
|
|
@@ -2741,7 +2741,7 @@ function mp(e, { forwardMotionProps: t = !1 } = {}, n, r) {
|
|
|
2741
2741
|
return v(Sh.Provider, { value: h, children: [l && h.visualElement ? u(l, { visualElement: h.visualElement, ...d }) : null, h$(e, o, w$(p, h.visualElement, c), p, f, t)] });
|
|
2742
2742
|
}
|
|
2743
2743
|
i.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
2744
|
-
const a =
|
|
2744
|
+
const a = Co(i);
|
|
2745
2745
|
return a[b$] = e, a;
|
|
2746
2746
|
}
|
|
2747
2747
|
function E$({ layoutId: e }) {
|
|
@@ -5087,7 +5087,7 @@ var O_ = {
|
|
|
5087
5087
|
strokeLinecap: "round",
|
|
5088
5088
|
strokeLinejoin: "round"
|
|
5089
5089
|
};
|
|
5090
|
-
const R_ =
|
|
5090
|
+
const R_ = Co(
|
|
5091
5091
|
({
|
|
5092
5092
|
color: e = "currentColor",
|
|
5093
5093
|
size: t = 24,
|
|
@@ -5117,7 +5117,7 @@ const R_ = No(
|
|
|
5117
5117
|
)
|
|
5118
5118
|
);
|
|
5119
5119
|
const Ut = (e, t) => {
|
|
5120
|
-
const n =
|
|
5120
|
+
const n = Co(
|
|
5121
5121
|
({ className: r, ...s }, i) => Ac(R_, {
|
|
5122
5122
|
ref: i,
|
|
5123
5123
|
iconNode: t,
|
|
@@ -5182,7 +5182,7 @@ const J_ = [
|
|
|
5182
5182
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
5183
5183
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
5184
5184
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
5185
|
-
],
|
|
5185
|
+
], Da = Ut("external-link", J_);
|
|
5186
5186
|
const eV = [
|
|
5187
5187
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
5188
5188
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
@@ -5300,7 +5300,7 @@ function N6(...e) {
|
|
|
5300
5300
|
};
|
|
5301
5301
|
};
|
|
5302
5302
|
}
|
|
5303
|
-
function
|
|
5303
|
+
function Oo(...e) {
|
|
5304
5304
|
return oe.useCallback(N6(...e), e);
|
|
5305
5305
|
}
|
|
5306
5306
|
function P6(e, t = []) {
|
|
@@ -5431,7 +5431,7 @@ function TV(e, t) {
|
|
|
5431
5431
|
return oe.useReducer((n, r) => t[n][r] ?? n, e);
|
|
5432
5432
|
}
|
|
5433
5433
|
var lw = (e) => {
|
|
5434
|
-
const { present: t, children: n } = e, r = AV(t), s = typeof n == "function" ? n({ present: r.isPresent }) : oe.Children.only(n), i =
|
|
5434
|
+
const { present: t, children: n } = e, r = AV(t), s = typeof n == "function" ? n({ present: r.isPresent }) : oe.Children.only(n), i = Oo(r.ref, IV(s));
|
|
5435
5435
|
return typeof n == "function" || r.isPresent ? oe.cloneElement(s, { ref: i }) : null;
|
|
5436
5436
|
};
|
|
5437
5437
|
lw.displayName = "Presence";
|
|
@@ -5604,7 +5604,7 @@ var $V = "DismissableLayer", cg = "dismissableLayer.update", _V = "dismissableLa
|
|
|
5604
5604
|
onInteractOutside: a,
|
|
5605
5605
|
onDismiss: o,
|
|
5606
5606
|
...c
|
|
5607
|
-
} = e, l = oe.useContext(R6), [d, f] = oe.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, p] = oe.useState({}), g =
|
|
5607
|
+
} = e, l = oe.useContext(R6), [d, f] = oe.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, p] = oe.useState({}), g = Oo(t, (C) => f(C)), m = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(b), A = d ? m.indexOf(d) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, T = A >= w, k = HV((C) => {
|
|
5608
5608
|
const E = C.target, R = [...l.branches].some((O) => O.contains(E));
|
|
5609
5609
|
!T || R || (s?.(C), a?.(C), C.defaultPrevented || o?.());
|
|
5610
5610
|
}, h), I = GV((C) => {
|
|
@@ -5644,7 +5644,7 @@ var $V = "DismissableLayer", cg = "dismissableLayer.update", _V = "dismissableLa
|
|
|
5644
5644
|
);
|
|
5645
5645
|
M6.displayName = $V;
|
|
5646
5646
|
var jV = "DismissableLayerBranch", WV = oe.forwardRef((e, t) => {
|
|
5647
|
-
const n = oe.useContext(R6), r = oe.useRef(null), s =
|
|
5647
|
+
const n = oe.useContext(R6), r = oe.useRef(null), s = Oo(t, r);
|
|
5648
5648
|
return oe.useEffect(() => {
|
|
5649
5649
|
const i = r.current;
|
|
5650
5650
|
if (i)
|
|
@@ -6479,7 +6479,7 @@ function _6(e) {
|
|
|
6479
6479
|
function kj(e, t, n) {
|
|
6480
6480
|
return t === void 0 && (t = !1), !n || t && n !== Vr(e) ? !1 : t;
|
|
6481
6481
|
}
|
|
6482
|
-
function
|
|
6482
|
+
function uo(e, t, n, r) {
|
|
6483
6483
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
6484
6484
|
const s = e.getBoundingClientRect(), i = mw(e);
|
|
6485
6485
|
let a = Gs(1);
|
|
@@ -6503,7 +6503,7 @@ function fo(e, t, n, r) {
|
|
|
6503
6503
|
}
|
|
6504
6504
|
function Lh(e, t) {
|
|
6505
6505
|
const n = Uh(e).scrollLeft;
|
|
6506
|
-
return t ? t.left + n :
|
|
6506
|
+
return t ? t.left + n : uo(Qs(e)).left + n;
|
|
6507
6507
|
}
|
|
6508
6508
|
function V6(e, t) {
|
|
6509
6509
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Lh(e, n), s = n.top + t.scrollTop;
|
|
@@ -6528,7 +6528,7 @@ function Ej(e) {
|
|
|
6528
6528
|
}, l = Gs(1);
|
|
6529
6529
|
const d = Gs(0), f = zs(r);
|
|
6530
6530
|
if ((f || !f && !i) && ((el(r) !== "body" || Xd(a)) && (c = Uh(r)), zs(r))) {
|
|
6531
|
-
const p =
|
|
6531
|
+
const p = uo(r);
|
|
6532
6532
|
l = dc(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
6533
6533
|
}
|
|
6534
6534
|
const h = a && !f && !i ? V6(a, c) : Gs(0);
|
|
@@ -6576,7 +6576,7 @@ function Ij(e, t) {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
const Sj = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6578
6578
|
function Cj(e, t) {
|
|
6579
|
-
const n =
|
|
6579
|
+
const n = uo(e, !0, t === "fixed"), r = n.top + e.clientTop, s = n.left + e.clientLeft, i = zs(e) ? dc(e) : Gs(1), a = e.clientWidth * i.x, o = e.clientHeight * i.y, c = s * i.x, l = r * i.y;
|
|
6580
6580
|
return {
|
|
6581
6581
|
width: a,
|
|
6582
6582
|
height: o,
|
|
@@ -6649,7 +6649,7 @@ function Oj(e) {
|
|
|
6649
6649
|
};
|
|
6650
6650
|
}
|
|
6651
6651
|
function Rj(e, t, n) {
|
|
6652
|
-
const r = zs(t), s = Qs(t), i = n === "fixed", a =
|
|
6652
|
+
const r = zs(t), s = Qs(t), i = n === "fixed", a = uo(e, !0, i, t);
|
|
6653
6653
|
let o = {
|
|
6654
6654
|
scrollLeft: 0,
|
|
6655
6655
|
scrollTop: 0
|
|
@@ -6660,7 +6660,7 @@ function Rj(e, t, n) {
|
|
|
6660
6660
|
}
|
|
6661
6661
|
if (r || !r && !i)
|
|
6662
6662
|
if ((el(t) !== "body" || Xd(s)) && (o = Uh(t)), r) {
|
|
6663
|
-
const p =
|
|
6663
|
+
const p = uo(t, !0, i, t);
|
|
6664
6664
|
c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
|
|
6665
6665
|
} else s && l();
|
|
6666
6666
|
i && !r && s && l();
|
|
@@ -6800,10 +6800,10 @@ function Bj(e, t, n, r) {
|
|
|
6800
6800
|
(x = p) == null || x.observe(t);
|
|
6801
6801
|
})), n();
|
|
6802
6802
|
}), l && !c && p.observe(l), p.observe(t));
|
|
6803
|
-
let g, m = c ?
|
|
6803
|
+
let g, m = c ? uo(e) : null;
|
|
6804
6804
|
c && b();
|
|
6805
6805
|
function b() {
|
|
6806
|
-
const w =
|
|
6806
|
+
const w = uo(e);
|
|
6807
6807
|
m && !H6(m, w) && n(), m = w, g = requestAnimationFrame(b);
|
|
6808
6808
|
}
|
|
6809
6809
|
return n(), () => {
|
|
@@ -7039,7 +7039,7 @@ var rW = z6, gw = "Popper", [q6, K6] = P6(gw), [sW, Q6] = q6(gw), Y6 = (e) => {
|
|
|
7039
7039
|
Y6.displayName = gw;
|
|
7040
7040
|
var X6 = "PopperAnchor", Z6 = oe.forwardRef(
|
|
7041
7041
|
(e, t) => {
|
|
7042
|
-
const { __scopePopper: n, virtualRef: r, ...s } = e, i = Q6(X6, n), a = oe.useRef(null), o =
|
|
7042
|
+
const { __scopePopper: n, virtualRef: r, ...s } = e, i = Q6(X6, n), a = oe.useRef(null), o = Oo(t, a), c = oe.useRef(null);
|
|
7043
7043
|
return oe.useEffect(() => {
|
|
7044
7044
|
const l = c.current;
|
|
7045
7045
|
c.current = r?.current || a.current, l !== c.current && i.onAnchorChange(c.current);
|
|
@@ -7064,7 +7064,7 @@ var yw = "PopperContent", [iW, aW] = q6(yw), J6 = oe.forwardRef(
|
|
|
7064
7064
|
updatePositionStrategy: p = "optimized",
|
|
7065
7065
|
onPlaced: g,
|
|
7066
7066
|
...m
|
|
7067
|
-
} = e, b = Q6(yw, n), [w, A] = oe.useState(null), x =
|
|
7067
|
+
} = e, b = Q6(yw, n), [w, A] = oe.useState(null), x = Oo(t, (te) => A(te)), [T, k] = oe.useState(null), I = EV(T), C = I?.width ?? 0, E = I?.height ?? 0, R = r + (i !== "center" ? "-" + i : ""), O = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, F = Array.isArray(l) ? l : [l], V = F.length > 0, j = {
|
|
7068
7068
|
padding: O,
|
|
7069
7069
|
boundary: F.filter(cW),
|
|
7070
7070
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7348,7 +7348,7 @@ var kd = "Tooltip", [vW, Zd] = Bh(kd), oA = (e) => {
|
|
|
7348
7348
|
oA.displayName = kd;
|
|
7349
7349
|
var hg = "TooltipTrigger", cA = oe.forwardRef(
|
|
7350
7350
|
(e, t) => {
|
|
7351
|
-
const { __scopeTooltip: n, ...r } = e, s = Zd(hg, n), i = bw(hg, n), a = Fh(n), o = oe.useRef(null), c =
|
|
7351
|
+
const { __scopeTooltip: n, ...r } = e, s = Zd(hg, n), i = bw(hg, n), a = Fh(n), o = oe.useRef(null), c = Oo(t, o, s.onTriggerChange), l = oe.useRef(!1), d = oe.useRef(!1), f = oe.useCallback(() => l.current = !1, []);
|
|
7352
7352
|
return oe.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u(uW, { asChild: !0, ...a, children: /* @__PURE__ */ u(
|
|
7353
7353
|
Ta.button,
|
|
7354
7354
|
{
|
|
@@ -7388,7 +7388,7 @@ var Oc = "TooltipContent", dA = oe.forwardRef(
|
|
|
7388
7388
|
return /* @__PURE__ */ u(lw, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u(uA, { side: s, ...i, ref: t }) : /* @__PURE__ */ u(EW, { side: s, ...i, ref: t }) });
|
|
7389
7389
|
}
|
|
7390
7390
|
), EW = oe.forwardRef((e, t) => {
|
|
7391
|
-
const n = Zd(Oc, e.__scopeTooltip), r = bw(Oc, e.__scopeTooltip), s = oe.useRef(null), i =
|
|
7391
|
+
const n = Zd(Oc, e.__scopeTooltip), r = bw(Oc, e.__scopeTooltip), s = oe.useRef(null), i = Oo(t, s), [a, o] = oe.useState(null), { trigger: c, onClose: l } = n, d = s.current, { onPointerInTransitChange: f } = r, h = oe.useCallback(() => {
|
|
7392
7392
|
o(null), f(!1);
|
|
7393
7393
|
}, [f]), p = oe.useCallback(
|
|
7394
7394
|
(g, m) => {
|
|
@@ -7645,7 +7645,7 @@ const pA = "3.7.8", $W = pA, tl = typeof Buffer == "function", Kx = typeof TextD
|
|
|
7645
7645
|
});
|
|
7646
7646
|
}, KW = () => {
|
|
7647
7647
|
AA(), IA();
|
|
7648
|
-
},
|
|
7648
|
+
}, fo = {
|
|
7649
7649
|
version: pA,
|
|
7650
7650
|
VERSION: $W,
|
|
7651
7651
|
atob: xw,
|
|
@@ -8364,7 +8364,7 @@ var $h = /* @__PURE__ */ YW(), gg = function() {
|
|
|
8364
8364
|
return t;
|
|
8365
8365
|
}, gg.apply(this, arguments);
|
|
8366
8366
|
};
|
|
8367
|
-
function
|
|
8367
|
+
function Ua(e, t, n, r) {
|
|
8368
8368
|
function s(i) {
|
|
8369
8369
|
return i instanceof n ? i : new n(function(a) {
|
|
8370
8370
|
a(i);
|
|
@@ -8391,7 +8391,7 @@ function La(e, t, n, r) {
|
|
|
8391
8391
|
l((r = r.apply(e, [])).next());
|
|
8392
8392
|
});
|
|
8393
8393
|
}
|
|
8394
|
-
function
|
|
8394
|
+
function La(e, t) {
|
|
8395
8395
|
var n = { label: 0, sent: function() {
|
|
8396
8396
|
if (i[0] & 1) throw i[1];
|
|
8397
8397
|
return i[1];
|
|
@@ -8486,16 +8486,16 @@ var XW = function(e) {
|
|
|
8486
8486
|
var t = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3), n = 300, r = 3600 * 24 * 365 + n;
|
|
8487
8487
|
return e.v === "" ? { ok: !1, err: new Error("claims: ethauth version is empty") } : e.iat && e.iat !== 0 && (e.iat > t + n || e.iat < t - r) ? { ok: !1, err: new Error("claims: iat is invalid") } : e.exp < t - n || e.exp > t + r ? { ok: !1, err: new Error("claims: token has expired") } : { ok: !0 };
|
|
8488
8488
|
}, eH = function(e, t, n) {
|
|
8489
|
-
return
|
|
8489
|
+
return Ua(void 0, void 0, void 0, function() {
|
|
8490
8490
|
var r, s;
|
|
8491
|
-
return
|
|
8491
|
+
return La(this, function(i) {
|
|
8492
8492
|
return r = n.messageDigest(), s = H.verifyMessage(r, n.signature), s.slice(0, 2) === "0x" && s.length === 42 && s.toLowerCase() === n.address.toLowerCase() ? [2, { isValid: !0, address: n.address }] : [2, { isValid: !1 }];
|
|
8493
8493
|
});
|
|
8494
8494
|
});
|
|
8495
8495
|
}, tH = function(e, t, n) {
|
|
8496
|
-
return
|
|
8496
|
+
return Ua(void 0, void 0, void 0, function() {
|
|
8497
8497
|
var r, s, i, a, o;
|
|
8498
|
-
return
|
|
8498
|
+
return La(this, function(c) {
|
|
8499
8499
|
switch (c.label) {
|
|
8500
8500
|
case 0:
|
|
8501
8501
|
return !e || e === void 0 ? [2, { isValid: !1 }] : (r = n.messageDigest(), [4, e.getCode(n.address)]);
|
|
@@ -8516,9 +8516,9 @@ var XW = function(e) {
|
|
|
8516
8516
|
t[n] = arguments[n];
|
|
8517
8517
|
var r = this;
|
|
8518
8518
|
this.configJsonRpcProvider = function(s) {
|
|
8519
|
-
return
|
|
8519
|
+
return Ua(r, void 0, void 0, function() {
|
|
8520
8520
|
var i;
|
|
8521
|
-
return
|
|
8521
|
+
return La(this, function(a) {
|
|
8522
8522
|
switch (a.label) {
|
|
8523
8523
|
case 0:
|
|
8524
8524
|
return this.provider = new H.JsonRpcProvider(s), [4, this.provider.send("net_version", [])];
|
|
@@ -8539,9 +8539,9 @@ var XW = function(e) {
|
|
|
8539
8539
|
throw new Error("validators list is empty");
|
|
8540
8540
|
r.validators = s;
|
|
8541
8541
|
}, this.encodeProof = function(s, i) {
|
|
8542
|
-
return i === void 0 && (i = !1),
|
|
8542
|
+
return i === void 0 && (i = !1), Ua(r, void 0, void 0, function() {
|
|
8543
8543
|
var a, o, c;
|
|
8544
|
-
return
|
|
8544
|
+
return La(this, function(l) {
|
|
8545
8545
|
switch (l.label) {
|
|
8546
8546
|
case 0:
|
|
8547
8547
|
if (s.address.length !== 42 || s.address.slice(0, 2) !== "0x")
|
|
@@ -8554,21 +8554,21 @@ var XW = function(e) {
|
|
|
8554
8554
|
case 1:
|
|
8555
8555
|
if (a = l.sent(), !a)
|
|
8556
8556
|
throw new Error("ethauth: proof is invalid");
|
|
8557
|
-
return o = JSON.stringify(s.claims), c = yg + "." + s.address.toLowerCase() + "." +
|
|
8557
|
+
return o = JSON.stringify(s.claims), c = yg + "." + s.address.toLowerCase() + "." + fo.encode(o, !0) + "." + s.signature, s.extra && s.extra.length > 0 && (c += "." + s.extra), [2, c];
|
|
8558
8558
|
}
|
|
8559
8559
|
});
|
|
8560
8560
|
});
|
|
8561
8561
|
}, this.decodeProof = function(s, i) {
|
|
8562
|
-
return i === void 0 && (i = !1),
|
|
8562
|
+
return i === void 0 && (i = !1), Ua(r, void 0, void 0, function() {
|
|
8563
8563
|
var a, o, c, l, d, f, h, p, g, m;
|
|
8564
|
-
return
|
|
8564
|
+
return La(this, function(b) {
|
|
8565
8565
|
switch (b.label) {
|
|
8566
8566
|
case 0:
|
|
8567
8567
|
if (a = s.split("."), a.length < 4 || a.length > 5)
|
|
8568
8568
|
throw new Error("ethauth: invalid proof string");
|
|
8569
8569
|
if (o = a[0], c = a[1], l = a[2], d = a[3], f = a[4], o !== yg)
|
|
8570
8570
|
throw new Error("ethauth: not an ethauth proof");
|
|
8571
|
-
return h =
|
|
8571
|
+
return h = fo.decode(l), p = JSON.parse(h), g = new kw({ address: c, claims: p, signature: d, extra: f }), [4, this.validateProof(g, i)];
|
|
8572
8572
|
case 1:
|
|
8573
8573
|
if (m = b.sent(), !m)
|
|
8574
8574
|
throw new Error("ethauth: proof is invalid");
|
|
@@ -8577,9 +8577,9 @@ var XW = function(e) {
|
|
|
8577
8577
|
});
|
|
8578
8578
|
});
|
|
8579
8579
|
}, this.validateProof = function(s, i) {
|
|
8580
|
-
return i === void 0 && (i = !1),
|
|
8580
|
+
return i === void 0 && (i = !1), Ua(r, void 0, void 0, function() {
|
|
8581
8581
|
var a, o;
|
|
8582
|
-
return
|
|
8582
|
+
return La(this, function(c) {
|
|
8583
8583
|
switch (c.label) {
|
|
8584
8584
|
case 0:
|
|
8585
8585
|
if (a = this.validateProofClaims(s), a.err)
|
|
@@ -8595,9 +8595,9 @@ var XW = function(e) {
|
|
|
8595
8595
|
});
|
|
8596
8596
|
});
|
|
8597
8597
|
}, this.validateProofSignature = function(s) {
|
|
8598
|
-
return
|
|
8598
|
+
return Ua(r, void 0, void 0, function() {
|
|
8599
8599
|
var i, c, a, o, c;
|
|
8600
|
-
return
|
|
8600
|
+
return La(this, function(l) {
|
|
8601
8601
|
switch (l.label) {
|
|
8602
8602
|
case 0:
|
|
8603
8603
|
i = [], c = 0, l.label = 1;
|
|
@@ -8762,7 +8762,7 @@ cH((e) => ({
|
|
|
8762
8762
|
get: (t, n, r) => nk(t, n) || e.get(t, n, r),
|
|
8763
8763
|
has: (t, n) => !!nk(t, n) || e.has(t, n)
|
|
8764
8764
|
}));
|
|
8765
|
-
const
|
|
8765
|
+
const jo = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
8766
8766
|
function pH(e) {
|
|
8767
8767
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
8768
8768
|
}
|
|
@@ -8852,10 +8852,10 @@ function OA(e) {
|
|
|
8852
8852
|
return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
|
|
8853
8853
|
}
|
|
8854
8854
|
function AH(e = 32) {
|
|
8855
|
-
if (
|
|
8856
|
-
return
|
|
8857
|
-
if (
|
|
8858
|
-
return Uint8Array.from(
|
|
8855
|
+
if (jo && typeof jo.getRandomValues == "function")
|
|
8856
|
+
return jo.getRandomValues(new Uint8Array(e));
|
|
8857
|
+
if (jo && typeof jo.randomBytes == "function")
|
|
8858
|
+
return Uint8Array.from(jo.randomBytes(e));
|
|
8859
8859
|
throw new Error("crypto.getRandomValues must be defined");
|
|
8860
8860
|
}
|
|
8861
8861
|
function IH(e, t, n, r) {
|
|
@@ -9296,7 +9296,7 @@ var FH = class {
|
|
|
9296
9296
|
}
|
|
9297
9297
|
// reset will reset the user_id and session_id details. Similar to a "logout" action.
|
|
9298
9298
|
reset(e) {
|
|
9299
|
-
this.enabled = ak(this.options.defaultEnabled, this.auth), this.userId && !this.isAnon() && (this.userId = null), this.ident = 0, this.ts =
|
|
9299
|
+
this.enabled = ak(this.options.defaultEnabled, this.auth), this.userId && !this.isAnon() && (this.userId = null), this.ident = 0, this.ts = Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking }), e !== !0 && this.init();
|
|
9300
9300
|
}
|
|
9301
9301
|
// identify can be called to seed the userId, where the behaviour changes
|
|
9302
9302
|
// depending on privacy or strict modes. identify is also called on init,
|
|
@@ -9305,18 +9305,18 @@ var FH = class {
|
|
|
9305
9305
|
if (!pi()) return;
|
|
9306
9306
|
if (t && t.allowTracking !== void 0 && this.allowTracking(t.allowTracking), !e) {
|
|
9307
9307
|
const r = xg();
|
|
9308
|
-
r !== null && r.id !== null && (this.userId = r.id, this.ident = r.it, this.allowUserTracking = r.ut, r.it === void 0 ? (this.userId.startsWith("anon:") ? this.ident = 0 : this.ident = 1, this.ts =
|
|
9308
|
+
r !== null && r.id !== null && (this.userId = r.id, this.ident = r.it, this.allowUserTracking = r.ut, r.it === void 0 ? (this.userId.startsWith("anon:") ? this.ident = 0 : this.ident = 1, this.ts = Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking })) : this.ident = r.it);
|
|
9309
9309
|
}
|
|
9310
9310
|
if (e || this.userId === null) {
|
|
9311
9311
|
const r = sG(e, this.allowUserTracking, this.options);
|
|
9312
|
-
this.userId = r.userId, this.ident = r.ident, this.ts =
|
|
9312
|
+
this.userId = r.userId, this.ident = r.ident, this.ts = Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking });
|
|
9313
9313
|
}
|
|
9314
9314
|
const n = `${this.userId}:${this.sessionId}`;
|
|
9315
9315
|
this.dedupeIdentKey !== n && (this.dedupeIdentKey = n, this.track({ event: "INIT", source: ok(), props: this.defaultProps }), this.flush());
|
|
9316
9316
|
}
|
|
9317
9317
|
// allowTracking is used by strict mode to enable/disable tracking.
|
|
9318
9318
|
allowTracking(e) {
|
|
9319
|
-
this.allowUserTracking = e,
|
|
9319
|
+
this.allowUserTracking = e, Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking }), this.options.strictMode && (e ? this.enable() : this.disable());
|
|
9320
9320
|
}
|
|
9321
9321
|
async track(e, t) {
|
|
9322
9322
|
if (pi() && this.userId === null)
|
|
@@ -9362,10 +9362,10 @@ var FH = class {
|
|
|
9362
9362
|
this.enabled = !1;
|
|
9363
9363
|
return;
|
|
9364
9364
|
}
|
|
9365
|
-
pi() && (this.enabled = !0, this.ts =
|
|
9365
|
+
pi() && (this.enabled = !0, this.ts = Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking }), this.identify());
|
|
9366
9366
|
}
|
|
9367
9367
|
disable() {
|
|
9368
|
-
pi() && (this.enabled = !1, this.ts =
|
|
9368
|
+
pi() && (this.enabled = !1, this.ts = Wo({ on: this.enabled, id: this.userId, it: this.ident, ut: this.allowUserTracking }));
|
|
9369
9369
|
}
|
|
9370
9370
|
}, pi = () => typeof window == "object" && typeof window.localStorage == "object" && typeof window.localStorage.getItem == "function" && typeof window.localStorage.setItem == "function", ak = (e, t) => {
|
|
9371
9371
|
if (!eI(t))
|
|
@@ -9390,7 +9390,7 @@ var FH = class {
|
|
|
9390
9390
|
} catch {
|
|
9391
9391
|
return null;
|
|
9392
9392
|
}
|
|
9393
|
-
},
|
|
9393
|
+
}, Wo = (e) => {
|
|
9394
9394
|
try {
|
|
9395
9395
|
return e.ts || (e.ts = Math.floor(Date.now() / 1e3)), window.localStorage.setItem(jf, JSON.stringify(e)), e.ts;
|
|
9396
9396
|
} catch {
|
|
@@ -15977,7 +15977,7 @@ const GG = (e) => {
|
|
|
15977
15977
|
throw new Error("UnsupportedVersion");
|
|
15978
15978
|
const s = r.slice(1, 9);
|
|
15979
15979
|
return s[7] | s[6] << 8 | s[5] << 16 | s[4] << 24 | s[3] << 32 | s[2] << 40 | s[1] << 48 | s[0] << 56;
|
|
15980
|
-
}, OS = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), RS = (e) => e != null && (typeof e == "number" && e % 1 === 0 || typeof e == "string" && !!e.match(/^-?[0-9]+$/) || H.isHexString(e) || typeof e == "bigint"),
|
|
15980
|
+
}, OS = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"), RS = (e) => e != null && (typeof e == "number" && e % 1 === 0 || typeof e == "string" && !!e.match(/^-?[0-9]+$/) || H.isHexString(e) || typeof e == "bigint"), Xa = (e) => {
|
|
15981
15981
|
const t = e.toString(16);
|
|
15982
15982
|
return `${t.length % 2 === 0 ? "0x" : "0x0"}${t}`;
|
|
15983
15983
|
}, MS = (e, t = 18) => {
|
|
@@ -16000,17 +16000,17 @@ const GG = (e) => {
|
|
|
16000
16000
|
return i = i.replace(/(0+)$/, ""), `${r ? "-" : ""}${s || "0"}${i ? `.${i}` : ""}`;
|
|
16001
16001
|
}, qG = (e) => DS(e, 18), is = (e, t) => typeof t == "bigint" ? {
|
|
16002
16002
|
$bigint: t.toString()
|
|
16003
|
-
} : t, Vh = (e, t) => t !== null && typeof t == "object" && "$bigint" in t && typeof t.$bigint == "string" ? BigInt(t.$bigint) : t !== null && typeof t == "object" && t.type === "BigNumber" && H.isHexString(t.hex) ? BigInt(t.hex) : t, KG = (e) =>
|
|
16003
|
+
} : t, Vh = (e, t) => t !== null && typeof t == "object" && "$bigint" in t && typeof t.$bigint == "string" ? BigInt(t.$bigint) : t !== null && typeof t == "object" && t.type === "BigNumber" && H.isHexString(t.hex) ? BigInt(t.hex) : t, KG = (e) => fo.encode(e, !0), Cw = (e) => fo.encode(JSON.stringify(e, is), !0), QG = (e) => {
|
|
16004
16004
|
if (e != null)
|
|
16005
|
-
return
|
|
16005
|
+
return fo.decode(e);
|
|
16006
16006
|
}, Nw = (e) => {
|
|
16007
16007
|
if (e != null)
|
|
16008
|
-
return JSON.parse(
|
|
16008
|
+
return JSON.parse(fo.decode(e), Vh);
|
|
16009
16009
|
}, Pw = (e) => typeof e == "string" ? H.getBytes(H.id(e)) : H.getBytes(H.keccak256(e)), US = (e, t, n) => H.solidityPacked(["string", "uint256", "address", "bytes32"], ["", t, e, n]), kg = (e, t, n) => H.keccak256(US(e, t, n)), LS = () => typeof window > "u" && typeof process == "object", YG = () => !LS(), BS = (e) => {
|
|
16010
16010
|
const t = e.split(".");
|
|
16011
16011
|
if (t.length !== 3)
|
|
16012
16012
|
throw new Error("invalid jwt");
|
|
16013
|
-
return JSON.parse(
|
|
16013
|
+
return JSON.parse(fo.decode(t[1]));
|
|
16014
16014
|
};
|
|
16015
16015
|
function Hf() {
|
|
16016
16016
|
return Hf = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -16344,7 +16344,7 @@ const az = (e = 0, t = Number.MAX_SAFE_INTEGER) => (e = Math.ceil(e), t = Math.f
|
|
|
16344
16344
|
sanitizeNumberString: $S,
|
|
16345
16345
|
sleep: oz,
|
|
16346
16346
|
subDigestOf: kg,
|
|
16347
|
-
toHexString:
|
|
16347
|
+
toHexString: Xa,
|
|
16348
16348
|
urlClean: dz
|
|
16349
16349
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16350
16350
|
function Uc() {
|
|
@@ -16730,7 +16730,7 @@ class cC {
|
|
|
16730
16730
|
}, this.inflight = {};
|
|
16731
16731
|
}
|
|
16732
16732
|
}
|
|
16733
|
-
function
|
|
16733
|
+
function Ho(e, t) {
|
|
16734
16734
|
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
|
|
16735
16735
|
return e;
|
|
16736
16736
|
}
|
|
@@ -16760,7 +16760,7 @@ class lC extends H.JsonRpcProvider {
|
|
|
16760
16760
|
} = l, h = {
|
|
16761
16761
|
method: d,
|
|
16762
16762
|
params: f,
|
|
16763
|
-
id:
|
|
16763
|
+
id: Ho(s, Op)[Op]++,
|
|
16764
16764
|
jsonrpc: "2.0"
|
|
16765
16765
|
}, p = typeof s.url == "string" ? new H.FetchRequest(s.url) : s.url;
|
|
16766
16766
|
p.body = JSON.stringify(h);
|
|
@@ -16779,7 +16779,7 @@ class lC extends H.JsonRpcProvider {
|
|
|
16779
16779
|
}
|
|
16780
16780
|
};
|
|
16781
16781
|
const i = n?.chainId, a = n?.middlewares, o = n?.blockCache;
|
|
16782
|
-
|
|
16782
|
+
Ho(this, Oa)[Oa] = i;
|
|
16783
16783
|
const c = new JS(a ?? [
|
|
16784
16784
|
// loggingProviderMiddleware,
|
|
16785
16785
|
new sC({
|
|
@@ -16791,10 +16791,10 @@ class lC extends H.JsonRpcProvider {
|
|
|
16791
16791
|
blockCache: o
|
|
16792
16792
|
})
|
|
16793
16793
|
], new rC(this.fetch, i));
|
|
16794
|
-
|
|
16794
|
+
Ho(this, Il)[Il] = c;
|
|
16795
16795
|
}
|
|
16796
16796
|
async request(t) {
|
|
16797
|
-
return
|
|
16797
|
+
return Ho(this, Il)[Il].request(t);
|
|
16798
16798
|
}
|
|
16799
16799
|
async send(t, n, r) {
|
|
16800
16800
|
return this.request({
|
|
@@ -16804,7 +16804,7 @@ class lC extends H.JsonRpcProvider {
|
|
|
16804
16804
|
});
|
|
16805
16805
|
}
|
|
16806
16806
|
async getNetwork() {
|
|
16807
|
-
const t =
|
|
16807
|
+
const t = Ho(this, Oa)[Oa];
|
|
16808
16808
|
if (t) {
|
|
16809
16809
|
const n = Dc[t], r = n?.name || "", s = n?.ensAddress;
|
|
16810
16810
|
return H.Network.from({
|
|
@@ -16814,7 +16814,7 @@ class lC extends H.JsonRpcProvider {
|
|
|
16814
16814
|
});
|
|
16815
16815
|
} else {
|
|
16816
16816
|
const n = await this.send("eth_chainId", []);
|
|
16817
|
-
return
|
|
16817
|
+
return Ho(this, Oa)[Oa] = Number(n), this.getNetwork();
|
|
16818
16818
|
}
|
|
16819
16819
|
}
|
|
16820
16820
|
}
|
|
@@ -16954,7 +16954,7 @@ var Oz = /* @__PURE__ */ Object.freeze({
|
|
|
16954
16954
|
isValidSignature: Dw,
|
|
16955
16955
|
tryRecoverSigner: Pz
|
|
16956
16956
|
});
|
|
16957
|
-
let
|
|
16957
|
+
let Za = /* @__PURE__ */ (function(e) {
|
|
16958
16958
|
return e[e.EOASignature = 0] = "EOASignature", e[e.Address = 1] = "Address", e[e.DynamicSignature = 2] = "DynamicSignature", e;
|
|
16959
16959
|
})({});
|
|
16960
16960
|
function Uw(e) {
|
|
@@ -16971,7 +16971,7 @@ function pC(e) {
|
|
|
16971
16971
|
for (let s = 2; s < t.length; ) {
|
|
16972
16972
|
const i = t[s++], a = t[s++];
|
|
16973
16973
|
switch (i) {
|
|
16974
|
-
case
|
|
16974
|
+
case Za.EOASignature:
|
|
16975
16975
|
r.push({
|
|
16976
16976
|
unrecovered: !0,
|
|
16977
16977
|
weight: a,
|
|
@@ -16979,13 +16979,13 @@ function pC(e) {
|
|
|
16979
16979
|
isDynamic: !1
|
|
16980
16980
|
}), s += 66;
|
|
16981
16981
|
break;
|
|
16982
|
-
case
|
|
16982
|
+
case Za.Address:
|
|
16983
16983
|
r.push({
|
|
16984
16984
|
weight: a,
|
|
16985
16985
|
address: H.getAddress(H.hexlify(t.slice(s, s + 20)))
|
|
16986
16986
|
}), s += 20;
|
|
16987
16987
|
break;
|
|
16988
|
-
case
|
|
16988
|
+
case Za.DynamicSignature:
|
|
16989
16989
|
const o = H.getAddress(H.hexlify(t.slice(s, s + 20)));
|
|
16990
16990
|
s += 20;
|
|
16991
16991
|
const c = t[s] << 8 | t[s + 1];
|
|
@@ -17015,12 +17015,12 @@ function Lw(e) {
|
|
|
17015
17015
|
threshold: n
|
|
17016
17016
|
} = hC(e) ? e : e.config, r = t.map((s) => {
|
|
17017
17017
|
if (Uw(s))
|
|
17018
|
-
return H.solidityPacked(["uint8", "uint8", "address"], [
|
|
17018
|
+
return H.solidityPacked(["uint8", "uint8", "address"], [Za.Address, s.weight, s.address]);
|
|
17019
17019
|
if (s.isDynamic) {
|
|
17020
17020
|
const i = H.getBytes(s.signature);
|
|
17021
|
-
return H.solidityPacked(["uint8", "uint8", "address", "uint16", "bytes"], [
|
|
17021
|
+
return H.solidityPacked(["uint8", "uint8", "address", "uint16", "bytes"], [Za.DynamicSignature, s.weight, s.address, i.length, i]);
|
|
17022
17022
|
}
|
|
17023
|
-
return H.solidityPacked(["uint8", "uint8", "bytes"], [
|
|
17023
|
+
return H.solidityPacked(["uint8", "uint8", "bytes"], [Za.EOASignature, s.weight, s.signature]);
|
|
17024
17024
|
});
|
|
17025
17025
|
return H.solidityPacked(["uint16", ...new Array(r.length).fill("bytes")], [n, ...r]);
|
|
17026
17026
|
}
|
|
@@ -17112,7 +17112,7 @@ const Bw = {
|
|
|
17112
17112
|
};
|
|
17113
17113
|
var Rz = /* @__PURE__ */ Object.freeze({
|
|
17114
17114
|
__proto__: null,
|
|
17115
|
-
SignaturePartType:
|
|
17115
|
+
SignaturePartType: Za,
|
|
17116
17116
|
isAddressMember: Uw,
|
|
17117
17117
|
isUnrecoveredSignatureMember: fC,
|
|
17118
17118
|
isUnrecoveredSignature: hC,
|
|
@@ -17301,7 +17301,7 @@ let Mn = /* @__PURE__ */ (function(e) {
|
|
|
17301
17301
|
return e[e.Signature = 0] = "Signature", e[e.Address = 1] = "Address", e[e.DynamicSignature = 2] = "DynamicSignature", e[e.Node = 3] = "Node", e[e.Branch = 4] = "Branch", e[e.Subdigest = 5] = "Subdigest", e[e.Nested = 6] = "Nested", e;
|
|
17302
17302
|
})({});
|
|
17303
17303
|
const Gf = 66;
|
|
17304
|
-
function
|
|
17304
|
+
function ho(e) {
|
|
17305
17305
|
return e.left !== void 0 && e.right !== void 0;
|
|
17306
17306
|
}
|
|
17307
17307
|
function rl(e) {
|
|
@@ -17401,9 +17401,9 @@ class xC extends Error {
|
|
|
17401
17401
|
super(`Invalid signature leaf: ${JSON.stringify(t)}`), this.leaf = t;
|
|
17402
17402
|
}
|
|
17403
17403
|
}
|
|
17404
|
-
async function
|
|
17405
|
-
if (
|
|
17406
|
-
const [r, s] = await Promise.all([
|
|
17404
|
+
async function Ja(e, t, n) {
|
|
17405
|
+
if (ho(e)) {
|
|
17406
|
+
const [r, s] = await Promise.all([Ja(e.left, t, n), Ja(e.right, t, n)]);
|
|
17407
17407
|
return {
|
|
17408
17408
|
left: r,
|
|
17409
17409
|
right: s
|
|
@@ -17413,7 +17413,7 @@ async function eo(e, t, n) {
|
|
|
17413
17413
|
return {
|
|
17414
17414
|
weight: e.weight,
|
|
17415
17415
|
threshold: e.threshold,
|
|
17416
|
-
tree: await
|
|
17416
|
+
tree: await Ja(e.tree, t, n)
|
|
17417
17417
|
};
|
|
17418
17418
|
if (nu(e))
|
|
17419
17419
|
if (e.isDynamic) {
|
|
@@ -17612,7 +17612,7 @@ async function Ww(e, t, n) {
|
|
|
17612
17612
|
e.type === Mn.NoChainIdDynamic && r && (r.chainId = 0);
|
|
17613
17613
|
const i = r ? eu(r) : t.subdigest;
|
|
17614
17614
|
if (!ru(e)) {
|
|
17615
|
-
const d = await
|
|
17615
|
+
const d = await Ja(e.decoded.tree, i, n);
|
|
17616
17616
|
return {
|
|
17617
17617
|
version: 2,
|
|
17618
17618
|
type: e.type,
|
|
@@ -17671,9 +17671,9 @@ function Tg(e) {
|
|
|
17671
17671
|
return H.solidityPacked(["uint16", "uint32", "bytes"], [e.threshold, e.checkpoint, Zl(e.tree)]);
|
|
17672
17672
|
}
|
|
17673
17673
|
function Zl(e) {
|
|
17674
|
-
if (Cs(e) ||
|
|
17674
|
+
if (Cs(e) || ho(e)) {
|
|
17675
17675
|
const t = H.getBytes(Zl(e.right)), n = H.getBytes(Zl(e.left));
|
|
17676
|
-
return Cs(e.right) ||
|
|
17676
|
+
return Cs(e.right) || ho(e.right) ? H.solidityPacked(["bytes", "uint8", "uint24", "bytes"], [n, rn.Branch, t.length, t]) : H.solidityPacked(["bytes", "bytes"], [n, t]);
|
|
17677
17677
|
}
|
|
17678
17678
|
if (Mi(e) || rl(e)) {
|
|
17679
17679
|
const t = H.getBytes(Zl(e.tree));
|
|
@@ -17702,10 +17702,10 @@ function Jl(e) {
|
|
|
17702
17702
|
}] : [];
|
|
17703
17703
|
}
|
|
17704
17704
|
function ed(e) {
|
|
17705
|
-
return
|
|
17705
|
+
return ho(e) ? [...ed(e.left), ...ed(e.right)] : rl(e) ? ed(e.tree) : nu(e) ? [e.signature] : [];
|
|
17706
17706
|
}
|
|
17707
17707
|
function rf(e) {
|
|
17708
|
-
return
|
|
17708
|
+
return ho(e) ? [...rf(e.left), ...rf(e.right)] : rl(e) ? rf(e.tree) : Ri(e) ? [e.subdigest] : [];
|
|
17709
17709
|
}
|
|
17710
17710
|
async function qf(e) {
|
|
17711
17711
|
const t = typeof e == "string" ? Wh(e) : e;
|
|
@@ -17725,11 +17725,11 @@ async function qf(e) {
|
|
|
17725
17725
|
}));
|
|
17726
17726
|
}
|
|
17727
17727
|
async function td(e, t = !0) {
|
|
17728
|
-
if (
|
|
17728
|
+
if (ho(e)) {
|
|
17729
17729
|
const [n, r] = await Promise.all([td(e.left), td(e.right)]);
|
|
17730
17730
|
if (n.weight === 0 && r.weight === 0)
|
|
17731
17731
|
try {
|
|
17732
|
-
const s = await
|
|
17732
|
+
const s = await Ja(e, H.ZeroHash, void 0);
|
|
17733
17733
|
return {
|
|
17734
17734
|
weight: 0,
|
|
17735
17735
|
trimmed: {
|
|
@@ -17751,7 +17751,7 @@ async function td(e, t = !0) {
|
|
|
17751
17751
|
const n = await td(e.tree);
|
|
17752
17752
|
if (n.weight === 0)
|
|
17753
17753
|
try {
|
|
17754
|
-
const r = await
|
|
17754
|
+
const r = await Ja(e, H.ZeroHash, void 0);
|
|
17755
17755
|
return {
|
|
17756
17756
|
weight: 0,
|
|
17757
17757
|
trimmed: {
|
|
@@ -17815,12 +17815,12 @@ var Bz = /* @__PURE__ */ Object.freeze({
|
|
|
17815
17815
|
SignatureType: Mn,
|
|
17816
17816
|
SignaturePartType: rn,
|
|
17817
17817
|
SignaturePartTypeLength: Gf,
|
|
17818
|
-
isUnrecoveredNode:
|
|
17818
|
+
isUnrecoveredNode: ho,
|
|
17819
17819
|
isUnrecoveredNestedLeaf: rl,
|
|
17820
17820
|
isUnrecoveredSignatureLeaf: nu,
|
|
17821
17821
|
decodeSignatureTree: zf,
|
|
17822
17822
|
InvalidSignatureLeafError: xC,
|
|
17823
|
-
recoverTopology:
|
|
17823
|
+
recoverTopology: Ja,
|
|
17824
17824
|
partEncoder: Jn,
|
|
17825
17825
|
encodeSigners: Yl,
|
|
17826
17826
|
encodeTree: Xl,
|
|
@@ -19562,7 +19562,7 @@ class pN {
|
|
|
19562
19562
|
}
|
|
19563
19563
|
async getNonce(t, n) {
|
|
19564
19564
|
Ye.info(`[rpc-relayer/getNonce] get nonce for wallet ${t} space: ${n}`);
|
|
19565
|
-
const r = n !== void 0 ?
|
|
19565
|
+
const r = n !== void 0 ? Xa(BigInt(n)) : void 0, s = await this.service.getMetaTxnNonce({
|
|
19566
19566
|
walletContractAddress: t,
|
|
19567
19567
|
space: r
|
|
19568
19568
|
}), i = BigInt(s.nonce), [a, o] = Le.transaction.decodeNonce(i);
|
|
@@ -20138,7 +20138,7 @@ function Vq(e) {
|
|
|
20138
20138
|
revertOnError: !0,
|
|
20139
20139
|
gasLimit: e.gasLimit,
|
|
20140
20140
|
to: e.to,
|
|
20141
|
-
value:
|
|
20141
|
+
value: Xa(t),
|
|
20142
20142
|
data: "0x"
|
|
20143
20143
|
}];
|
|
20144
20144
|
case Lc.FeeTokenType.ERC20_TOKEN:
|
|
@@ -20160,7 +20160,7 @@ function Vq(e) {
|
|
|
20160
20160
|
name: "transfer",
|
|
20161
20161
|
outputs: [],
|
|
20162
20162
|
type: "function"
|
|
20163
|
-
}]).encodeFunctionData("transfer", [e.to,
|
|
20163
|
+
}]).encodeFunctionData("transfer", [e.to, Xa(t)])
|
|
20164
20164
|
}];
|
|
20165
20165
|
default:
|
|
20166
20166
|
throw new Error(`Unhandled fee token type ${e.token.type}`);
|
|
@@ -22841,7 +22841,7 @@ function qs() {
|
|
|
22841
22841
|
return e;
|
|
22842
22842
|
}, qs.apply(null, arguments);
|
|
22843
22843
|
}
|
|
22844
|
-
const XK = ["function execute((bool delegateCall, bool revertOnError, uint256 gasLimit, address target, uint256 value, bytes data)[] calldata transactions, uint256 nonce, bytes calldata signature)"],
|
|
22844
|
+
const XK = ["function execute((bool delegateCall, bool revertOnError, uint256 gasLimit, address target, uint256 value, bytes data)[] calldata transactions, uint256 nonce, bytes calldata signature)"], eo = {
|
|
22845
22845
|
namespace: "Sequence-Sessions",
|
|
22846
22846
|
owners: ["AZ6R2mG8zxW9q7--iZXGrBknjegHoPzmG5IG-nxvMaM"],
|
|
22847
22847
|
arweaveUrl: "https://arweave.net",
|
|
@@ -22850,7 +22850,7 @@ const XK = ["function execute((bool delegateCall, bool revertOnError, uint256 ga
|
|
|
22850
22850
|
rateLimitRetryDelayMs: 300 * 1e3
|
|
22851
22851
|
};
|
|
22852
22852
|
class ZK {
|
|
22853
|
-
constructor(t =
|
|
22853
|
+
constructor(t = eo) {
|
|
22854
22854
|
this.options = t, this.configs = /* @__PURE__ */ new Map(), this.eip5719 = void 0, t.eip5719Provider && (this.eip5719 = new RO(t.eip5719Provider));
|
|
22855
22855
|
}
|
|
22856
22856
|
async loadPresignedConfiguration(t) {
|
|
@@ -23276,7 +23276,7 @@ class ZK {
|
|
|
23276
23276
|
}
|
|
23277
23277
|
async function Sl(e, t) {
|
|
23278
23278
|
var n, r, s, i;
|
|
23279
|
-
const a = (n = t?.namespace) != null ? n :
|
|
23279
|
+
const a = (n = t?.namespace) != null ? n : eo.namespace, o = t?.owners, c = (r = t?.graphqlUrl) != null ? r : eo.graphqlUrl, l = (s = t?.rateLimitRetryDelayMs) != null ? s : eo.rateLimitRetryDelayMs, d = (i = t?.pageSize) != null ? i : 100, f = t?.maxResults, h = Object.entries(e).flatMap(([g, m]) => m === void 0 ? [] : [`{ name: "${a ? `${a}-${g}` : g}", values: [${typeof m == "string" ? `"${m}"` : m.map((b) => `"${b}"`).join(", ")}] }`]), p = [];
|
|
23280
23280
|
for (let g = !0; g && (f === void 0 || p.length < f); ) {
|
|
23281
23281
|
const m = `
|
|
23282
23282
|
query {
|
|
@@ -23326,7 +23326,7 @@ async function Sl(e, t) {
|
|
|
23326
23326
|
value: w
|
|
23327
23327
|
}) => [a && b.startsWith(`${a}-`) ? b.slice(a.length + 1) : b, w]))]));
|
|
23328
23328
|
}
|
|
23329
|
-
async function Fu(e, t =
|
|
23329
|
+
async function Fu(e, t = eo.rateLimitRetryDelayMs, n = eo.arweaveUrl) {
|
|
23330
23330
|
for (; ; ) {
|
|
23331
23331
|
const r = await fetch(`${n}/${e}`, {
|
|
23332
23332
|
redirect: "follow"
|
|
@@ -23353,7 +23353,7 @@ function Zo(e) {
|
|
|
23353
23353
|
}
|
|
23354
23354
|
var JK = /* @__PURE__ */ Object.freeze({
|
|
23355
23355
|
__proto__: null,
|
|
23356
|
-
defaults:
|
|
23356
|
+
defaults: eo,
|
|
23357
23357
|
ArweaveReader: ZK
|
|
23358
23358
|
});
|
|
23359
23359
|
class eQ {
|
|
@@ -24214,12 +24214,12 @@ function $u(e) {
|
|
|
24214
24214
|
case 1:
|
|
24215
24215
|
if (di.config.ConfigCoder.isWalletConfig(e))
|
|
24216
24216
|
return {
|
|
24217
|
-
threshold:
|
|
24217
|
+
threshold: _a(e.threshold),
|
|
24218
24218
|
signers: e.signers.map(({
|
|
24219
24219
|
weight: t,
|
|
24220
24220
|
address: n
|
|
24221
24221
|
}) => ({
|
|
24222
|
-
weight:
|
|
24222
|
+
weight: _a(t),
|
|
24223
24223
|
address: n
|
|
24224
24224
|
}))
|
|
24225
24225
|
};
|
|
@@ -24227,8 +24227,8 @@ function $u(e) {
|
|
|
24227
24227
|
case 2:
|
|
24228
24228
|
if (st.config.ConfigCoder.isWalletConfig(e))
|
|
24229
24229
|
return {
|
|
24230
|
-
threshold:
|
|
24231
|
-
checkpoint:
|
|
24230
|
+
threshold: _a(e.threshold),
|
|
24231
|
+
checkpoint: _a(e.checkpoint),
|
|
24232
24232
|
tree: sf(e.tree)
|
|
24233
24233
|
};
|
|
24234
24234
|
throw new Error(`not a v${e.version} config: ${e}`);
|
|
@@ -24241,11 +24241,11 @@ function sf(e) {
|
|
|
24241
24241
|
left: sf(e.left),
|
|
24242
24242
|
right: sf(e.right)
|
|
24243
24243
|
} : st.config.isSignerLeaf(e) ? {
|
|
24244
|
-
weight:
|
|
24244
|
+
weight: _a(e.weight),
|
|
24245
24245
|
address: e.address
|
|
24246
24246
|
} : st.config.isNestedLeaf(e) ? {
|
|
24247
|
-
weight:
|
|
24248
|
-
threshold:
|
|
24247
|
+
weight: _a(e.weight),
|
|
24248
|
+
threshold: _a(e.threshold),
|
|
24249
24249
|
tree: sf(e.tree)
|
|
24250
24250
|
} : st.config.isNodeLeaf(e) ? {
|
|
24251
24251
|
node: e.nodeHash
|
|
@@ -24285,7 +24285,7 @@ function kQ(e) {
|
|
|
24285
24285
|
revertOnError: e.revertOnError
|
|
24286
24286
|
};
|
|
24287
24287
|
}
|
|
24288
|
-
function
|
|
24288
|
+
function _a(e) {
|
|
24289
24289
|
return Number(e);
|
|
24290
24290
|
}
|
|
24291
24291
|
function ac(e) {
|
|
@@ -24808,14 +24808,14 @@ class a1 extends Error {
|
|
|
24808
24808
|
}
|
|
24809
24809
|
}
|
|
24810
24810
|
const t8 = new a1("auth error: account address is empty");
|
|
24811
|
-
function
|
|
24812
|
-
return
|
|
24811
|
+
function Ba() {
|
|
24812
|
+
return Ba = Object.assign ? Object.assign.bind() : function(e) {
|
|
24813
24813
|
for (var t = 1; t < arguments.length; t++) {
|
|
24814
24814
|
var n = arguments[t];
|
|
24815
24815
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
24816
24816
|
}
|
|
24817
24817
|
return e;
|
|
24818
|
-
},
|
|
24818
|
+
}, Ba.apply(null, arguments);
|
|
24819
24819
|
}
|
|
24820
24820
|
function n8(e) {
|
|
24821
24821
|
return e.config && e.metadata && e.version === void 0;
|
|
@@ -24837,7 +24837,7 @@ class id {
|
|
|
24837
24837
|
version: 2,
|
|
24838
24838
|
address: this.account.address
|
|
24839
24839
|
};
|
|
24840
|
-
return this.services ?
|
|
24840
|
+
return this.services ? Ba({}, t, await this.services.dump()) : t;
|
|
24841
24841
|
}
|
|
24842
24842
|
static async singleSigner(t) {
|
|
24843
24843
|
let {
|
|
@@ -24869,7 +24869,7 @@ class id {
|
|
|
24869
24869
|
return p.wallet;
|
|
24870
24870
|
}
|
|
24871
24871
|
};
|
|
24872
|
-
return id.open(
|
|
24872
|
+
return id.open(Ba({}, t, {
|
|
24873
24873
|
orchestrator: r,
|
|
24874
24874
|
referenceSigner: s,
|
|
24875
24875
|
threshold: i,
|
|
@@ -24895,7 +24895,7 @@ class id {
|
|
|
24895
24895
|
networks: A,
|
|
24896
24896
|
tracker: x,
|
|
24897
24897
|
services: T
|
|
24898
|
-
} =
|
|
24898
|
+
} = Ba({}, of, h), k = (n = (r = os(A, (s = h == null || (i = h.services) == null ? void 0 : i.sequenceApiChainId) != null ? s : q.MAINNET)) == null ? void 0 : r.chainId) != null ? n : (a = A[0]) == null ? void 0 : a.chainId;
|
|
24899
24899
|
if (!k) throw Error("No reference chain found");
|
|
24900
24900
|
const I = await x.walletsOfSigner({
|
|
24901
24901
|
signer: o
|
|
@@ -24983,11 +24983,11 @@ class id {
|
|
|
24983
24983
|
networks: l,
|
|
24984
24984
|
tracker: d,
|
|
24985
24985
|
services: f
|
|
24986
|
-
} =
|
|
24986
|
+
} = Ba({}, of, r);
|
|
24987
24987
|
let h;
|
|
24988
24988
|
if (n8(n)) {
|
|
24989
24989
|
var p, g, m;
|
|
24990
|
-
const k = n.config.address || Le.context.addressOf(c[1], di.config.ConfigCoder.imageHashOf(
|
|
24990
|
+
const k = n.config.address || Le.context.addressOf(c[1], di.config.ConfigCoder.imageHashOf(Ba({}, n.config, {
|
|
24991
24991
|
version: 1
|
|
24992
24992
|
}))), I = ((p = (g = n.jwt) == null ? void 0 : g.expiration) != null ? p : 0) < Math.floor(Date.now() / 1e3);
|
|
24993
24993
|
if (h = new mi({
|
|
@@ -26365,15 +26365,15 @@ function G8(e) {
|
|
|
26365
26365
|
function Up(e) {
|
|
26366
26366
|
return e.map((t) => typeof t == "object" ? t instanceof Error ? t.message : JSON.stringify(t, is) : String(t)).join(" ");
|
|
26367
26367
|
}
|
|
26368
|
-
let
|
|
26368
|
+
let Go;
|
|
26369
26369
|
class z8 extends iu {
|
|
26370
26370
|
constructor(t) {
|
|
26371
26371
|
super(), this.walletURL = void 0, this.register = () => {
|
|
26372
26372
|
var n;
|
|
26373
|
-
G8("dapp"),
|
|
26373
|
+
G8("dapp"), Go && (Go.unregister(), Go = this), (n = window.ue) != null && n.sequencewallettransport && (window.ue.sequencewallettransport.onmessagefromwallet = this.onUnrealCallback), Go = this, this._registered = !0, console.log("registering transport!");
|
|
26374
26374
|
}, this.unregister = () => {
|
|
26375
26375
|
var n;
|
|
26376
|
-
this._registered = !1, this.closeWallet(),
|
|
26376
|
+
this._registered = !1, this.closeWallet(), Go === this && (Go = void 0), ((n = window.ue) == null || (n = n.sequencewallettransport) == null ? void 0 : n.onmessagefromwallet) === this.onUnrealCallback && delete window.ue.sequencewallettransport.onmessagefromwallet, this.events.removeAllListeners();
|
|
26377
26377
|
}, this.openWallet = (n, r, s) => {
|
|
26378
26378
|
if (this.isOpened()) {
|
|
26379
26379
|
console.log("wallet already open!");
|
|
@@ -26533,11 +26533,11 @@ class wY extends $h.EventEmitter2 {
|
|
|
26533
26533
|
this.stream.writable || console.error("window post message stream is not writable"), this.stream.write(t);
|
|
26534
26534
|
}
|
|
26535
26535
|
}
|
|
26536
|
-
let
|
|
26536
|
+
let zo;
|
|
26537
26537
|
class K8 extends iu {
|
|
26538
26538
|
constructor(t, n) {
|
|
26539
26539
|
super(n), this.walletURL = void 0, this.walletWindow = void 0, this.register = () => {
|
|
26540
|
-
|
|
26540
|
+
zo && (zo.unregister(), zo = this), window.addEventListener("message", this.onWindowEvent), zo = this, this.on("open", () => {
|
|
26541
26541
|
const r = this.walletWindow, s = setInterval(() => {
|
|
26542
26542
|
r && r.closed && (clearInterval(s), this.close());
|
|
26543
26543
|
}, 500);
|
|
@@ -26545,7 +26545,7 @@ class K8 extends iu {
|
|
|
26545
26545
|
this.walletWindow && (this.walletWindow.close(), this.walletWindow = null);
|
|
26546
26546
|
}), this._registered = !0;
|
|
26547
26547
|
}, this.unregister = () => {
|
|
26548
|
-
this._registered = !1, this.closeWallet(),
|
|
26548
|
+
this._registered = !1, this.closeWallet(), zo === this && (zo = void 0), window.removeEventListener("message", this.onWindowEvent), this.events.removeAllListeners();
|
|
26549
26549
|
}, this.openWallet = (r, s, i) => {
|
|
26550
26550
|
if (this.walletWindow && this.isOpened()) {
|
|
26551
26551
|
this.walletWindow.focus();
|
|
@@ -26941,7 +26941,7 @@ class TY {
|
|
|
26941
26941
|
return [l.address];
|
|
26942
26942
|
case "eth_getBalance": {
|
|
26943
26943
|
const [h, p] = t.params, g = await d.getBalance(h, p);
|
|
26944
|
-
return
|
|
26944
|
+
return Xa(g);
|
|
26945
26945
|
}
|
|
26946
26946
|
case "sequence_sign":
|
|
26947
26947
|
case "personal_sign":
|
|
@@ -27037,7 +27037,7 @@ class TY {
|
|
|
27037
27037
|
return (await d.broadcastTransaction(t.params[0])).hash;
|
|
27038
27038
|
case "eth_getTransactionCount": {
|
|
27039
27039
|
const h = H.getAddress(t.params[0]), p = t.params[1], g = await d.getTransactionCount(h, p);
|
|
27040
|
-
return
|
|
27040
|
+
return Xa(BigInt(g));
|
|
27041
27041
|
}
|
|
27042
27042
|
case "eth_blockNumber":
|
|
27043
27043
|
return await d.getBlockNumber();
|
|
@@ -27069,7 +27069,7 @@ class TY {
|
|
|
27069
27069
|
}
|
|
27070
27070
|
case "eth_gasPrice": {
|
|
27071
27071
|
const h = await d.getFeeData();
|
|
27072
|
-
return h.gasPrice === null ? null :
|
|
27072
|
+
return h.gasPrice === null ? null : Xa(h.gasPrice);
|
|
27073
27073
|
}
|
|
27074
27074
|
case "wallet_switchEthereumChain": {
|
|
27075
27075
|
const [h] = t.params;
|
|
@@ -27770,7 +27770,7 @@ const J8 = (e, t) => {
|
|
|
27770
27770
|
} : {}
|
|
27771
27771
|
});
|
|
27772
27772
|
};
|
|
27773
|
-
class
|
|
27773
|
+
class to {
|
|
27774
27774
|
constructor(t) {
|
|
27775
27775
|
this.store = t;
|
|
27776
27776
|
}
|
|
@@ -27789,11 +27789,11 @@ class no {
|
|
|
27789
27789
|
return ((t = this.getSession()) == null ? void 0 : t.accountAddress) !== void 0;
|
|
27790
27790
|
}
|
|
27791
27791
|
setSession(t) {
|
|
27792
|
-
return this.store.setItem(
|
|
27792
|
+
return this.store.setItem(to.SESSION_LOCALSTORE_KEY, JSON.stringify(t));
|
|
27793
27793
|
}
|
|
27794
27794
|
getSession() {
|
|
27795
27795
|
try {
|
|
27796
|
-
const t = this.store.getItem(
|
|
27796
|
+
const t = this.store.getItem(to.SESSION_LOCALSTORE_KEY);
|
|
27797
27797
|
if (t)
|
|
27798
27798
|
return JSON.parse(t);
|
|
27799
27799
|
} catch (t) {
|
|
@@ -27801,13 +27801,13 @@ class no {
|
|
|
27801
27801
|
}
|
|
27802
27802
|
}
|
|
27803
27803
|
async clearSession() {
|
|
27804
|
-
return this.store.removeItem(
|
|
27804
|
+
return this.store.removeItem(to.SESSION_LOCALSTORE_KEY);
|
|
27805
27805
|
}
|
|
27806
27806
|
}
|
|
27807
|
-
|
|
27808
|
-
class
|
|
27807
|
+
to.SESSION_LOCALSTORE_KEY = "@sequence.session";
|
|
27808
|
+
class no {
|
|
27809
27809
|
constructor(t, n = 1) {
|
|
27810
|
-
this.store = t, this.startingChainId = n, this.callbacks = [], t.onItemChange(
|
|
27810
|
+
this.store = t, this.startingChainId = n, this.callbacks = [], t.onItemChange(no.SESSION_CHAIN_ID_KEY, (r) => {
|
|
27811
27811
|
if (r) {
|
|
27812
27812
|
const s = parseInt(r);
|
|
27813
27813
|
this.callbacks.forEach((i) => i(s));
|
|
@@ -27820,14 +27820,14 @@ class ro {
|
|
|
27820
27820
|
};
|
|
27821
27821
|
}
|
|
27822
27822
|
setDefaultChainId(t) {
|
|
27823
|
-
t !== this.getDefaultChainId() && this.store.setItem(
|
|
27823
|
+
t !== this.getDefaultChainId() && this.store.setItem(no.SESSION_CHAIN_ID_KEY, t.toString());
|
|
27824
27824
|
}
|
|
27825
27825
|
getDefaultChainId() {
|
|
27826
|
-
const t = this.store.getItem(
|
|
27826
|
+
const t = this.store.getItem(no.SESSION_CHAIN_ID_KEY);
|
|
27827
27827
|
return !t || t.length === 0 ? this.startingChainId : parseInt(t);
|
|
27828
27828
|
}
|
|
27829
27829
|
}
|
|
27830
|
-
|
|
27830
|
+
no.SESSION_CHAIN_ID_KEY = "@sequence.session.defaultChainId";
|
|
27831
27831
|
class h1 {
|
|
27832
27832
|
constructor(t, n, r) {
|
|
27833
27833
|
var s, i;
|
|
@@ -27838,7 +27838,7 @@ class h1 {
|
|
|
27838
27838
|
else
|
|
27839
27839
|
throw new Error("Invalid transport");
|
|
27840
27840
|
const a = r?.defaultChainId;
|
|
27841
|
-
if (this.defaultEIP6492 = (s = r?.defaultEIP6492) != null ? s : !1, this.session = new
|
|
27841
|
+
if (this.defaultEIP6492 = (s = r?.defaultEIP6492) != null ? s : !1, this.session = new to(n), this.defaultChainId = new no(n, a), this.transport.on("accountsChanged", (l) => {
|
|
27842
27842
|
var d;
|
|
27843
27843
|
l.length > 1 && console.warn("SequenceClient: wallet-webapp returned more than one account"), (d = this.callbacks.accountsChanged) == null || d.forEach((f) => f(l));
|
|
27844
27844
|
}), this.transport.on("connect", (l) => {
|
|
@@ -28135,7 +28135,7 @@ const eR = (e, t) => {
|
|
|
28135
28135
|
BaseProviderTransport: iu,
|
|
28136
28136
|
BaseWalletTransport: au,
|
|
28137
28137
|
CHANNEL_ID: u1,
|
|
28138
|
-
DefaultChainIdTracker:
|
|
28138
|
+
DefaultChainIdTracker: no,
|
|
28139
28139
|
DefaultProviderConfig: jg,
|
|
28140
28140
|
ErrSignedInRequired: L8,
|
|
28141
28141
|
EventType: yt,
|
|
@@ -28153,7 +28153,7 @@ const eR = (e, t) => {
|
|
|
28153
28153
|
ProxyMessageHandler: gY,
|
|
28154
28154
|
ProxyMessageProvider: H8,
|
|
28155
28155
|
SequenceClient: h1,
|
|
28156
|
-
SequenceClientSession:
|
|
28156
|
+
SequenceClientSession: to,
|
|
28157
28157
|
SequenceProvider: il,
|
|
28158
28158
|
SequenceSigner: sl,
|
|
28159
28159
|
SingleNetworkSequenceProvider: X8,
|
|
@@ -28438,12 +28438,12 @@ function JY() {
|
|
|
28438
28438
|
showQrModal: !1
|
|
28439
28439
|
})), Lp;
|
|
28440
28440
|
}
|
|
28441
|
-
const
|
|
28441
|
+
const Va = JY();
|
|
28442
28442
|
function eX() {
|
|
28443
28443
|
return window?.parent !== window;
|
|
28444
28444
|
}
|
|
28445
28445
|
function tX() {
|
|
28446
|
-
return eX() ? IL() :
|
|
28446
|
+
return eX() ? IL() : Va;
|
|
28447
28447
|
}
|
|
28448
28448
|
function Js(e, t, n) {
|
|
28449
28449
|
if (typeof window < "u") {
|
|
@@ -28462,7 +28462,7 @@ function Js(e, t, n) {
|
|
|
28462
28462
|
}
|
|
28463
28463
|
});
|
|
28464
28464
|
}
|
|
28465
|
-
return
|
|
28465
|
+
return Va;
|
|
28466
28466
|
}
|
|
28467
28467
|
function m1(e) {
|
|
28468
28468
|
const t = U5(), n = TL(), r = AL(), s = tX(), i = Js(
|
|
@@ -28511,7 +28511,7 @@ function m1(e) {
|
|
|
28511
28511
|
});
|
|
28512
28512
|
return [
|
|
28513
28513
|
t,
|
|
28514
|
-
|
|
28514
|
+
Va,
|
|
28515
28515
|
s,
|
|
28516
28516
|
n,
|
|
28517
28517
|
r,
|
|
@@ -30455,18 +30455,18 @@ function TX(e, t) {
|
|
|
30455
30455
|
[rs.id]: "optimism",
|
|
30456
30456
|
[Dr.id]: "polygon",
|
|
30457
30457
|
[nn.id]: "mainnet",
|
|
30458
|
-
[
|
|
30459
|
-
[
|
|
30458
|
+
[lo.id]: "apechain",
|
|
30459
|
+
[co.id]: "arbitrum-nova",
|
|
30460
30460
|
[xs.id]: "avalanche",
|
|
30461
|
-
[
|
|
30461
|
+
[oo.id]: "b3",
|
|
30462
30462
|
[Sc.id]: "blast",
|
|
30463
|
-
[
|
|
30463
|
+
[ao.id]: "gnosis",
|
|
30464
30464
|
[ua.id]: "soneium",
|
|
30465
30465
|
[da.id]: "xai",
|
|
30466
30466
|
[vs.id]: "bsc",
|
|
30467
30467
|
421613: "arbitrum-nova-sepolia",
|
|
30468
30468
|
[tn.id]: "etherlink",
|
|
30469
|
-
[
|
|
30469
|
+
[io.id]: "katana",
|
|
30470
30470
|
[Mr.id]: "monad"
|
|
30471
30471
|
}[e];
|
|
30472
30472
|
if (r)
|
|
@@ -30602,7 +30602,7 @@ const In = (e = "{}", t = {}, n = null) => ({ method: "POST", headers: {
|
|
|
30602
30602
|
try {
|
|
30603
30603
|
n = JSON.parse(t);
|
|
30604
30604
|
} catch (r) {
|
|
30605
|
-
throw
|
|
30605
|
+
throw po.new({
|
|
30606
30606
|
status: e.status,
|
|
30607
30607
|
cause: `JSON.parse(): ${r instanceof Error ? r.message : String(r)}: response text: ${t}`
|
|
30608
30608
|
});
|
|
@@ -30696,7 +30696,7 @@ function df(e, t) {
|
|
|
30696
30696
|
try {
|
|
30697
30697
|
a[o] = BigInt(c);
|
|
30698
30698
|
} catch {
|
|
30699
|
-
throw
|
|
30699
|
+
throw po.new({ cause: `Invalid bigint value for ${i}[${o}]: ${c}` });
|
|
30700
30700
|
}
|
|
30701
30701
|
}
|
|
30702
30702
|
continue;
|
|
@@ -30706,7 +30706,7 @@ function df(e, t) {
|
|
|
30706
30706
|
try {
|
|
30707
30707
|
t[r] = BigInt(s);
|
|
30708
30708
|
} catch {
|
|
30709
|
-
throw
|
|
30709
|
+
throw po.new({ cause: `Invalid bigint value for ${r}: ${s}` });
|
|
30710
30710
|
}
|
|
30711
30711
|
}
|
|
30712
30712
|
return t;
|
|
@@ -30717,7 +30717,7 @@ const On = (e) => JSON.stringify(e, (t, n) => typeof n == "bigint" ? n.toString(
|
|
|
30717
30717
|
try {
|
|
30718
30718
|
n = JSON.parse(e);
|
|
30719
30719
|
} catch (r) {
|
|
30720
|
-
throw
|
|
30720
|
+
throw po.new({ cause: `JsonDecode: JSON.parse failed: ${r.message}` });
|
|
30721
30721
|
}
|
|
30722
30722
|
return df(t, n);
|
|
30723
30723
|
};
|
|
@@ -30757,9 +30757,9 @@ class v1 extends rt {
|
|
|
30757
30757
|
super(t), this.name = t.name || "WebrpcBadRequest", this.code = typeof t.code == "number" ? t.code : -4, this.message = t.message || "bad request", this.status = typeof t.status == "number" ? t.status : 400, t.cause !== void 0 && (this.cause = t.cause), Object.setPrototypeOf(this, v1.prototype);
|
|
30758
30758
|
}
|
|
30759
30759
|
}
|
|
30760
|
-
class
|
|
30760
|
+
class po extends rt {
|
|
30761
30761
|
constructor(t = {}) {
|
|
30762
|
-
super(t), this.name = t.name || "WebrpcBadResponse", this.code = typeof t.code == "number" ? t.code : -5, this.message = t.message || "bad response", this.status = typeof t.status == "number" ? t.status : 500, t.cause !== void 0 && (this.cause = t.cause), Object.setPrototypeOf(this,
|
|
30762
|
+
super(t), this.name = t.name || "WebrpcBadResponse", this.code = typeof t.code == "number" ? t.code : -5, this.message = t.message || "bad response", this.status = typeof t.status == "number" ? t.status : 500, t.cause !== void 0 && (this.cause = t.cause), Object.setPrototypeOf(this, po.prototype);
|
|
30763
30763
|
}
|
|
30764
30764
|
}
|
|
30765
30765
|
class x1 extends rt {
|
|
@@ -30956,7 +30956,7 @@ const CX = {
|
|
|
30956
30956
|
[-2]: b1,
|
|
30957
30957
|
[-3]: w1,
|
|
30958
30958
|
[-4]: v1,
|
|
30959
|
-
[-5]:
|
|
30959
|
+
[-5]: po,
|
|
30960
30960
|
[-6]: x1,
|
|
30961
30961
|
[-7]: k1,
|
|
30962
30962
|
[-8]: E1,
|
|
@@ -30993,7 +30993,7 @@ const CX = {
|
|
|
30993
30993
|
7e3: J1,
|
|
30994
30994
|
7001: ev,
|
|
30995
30995
|
9e3: tv
|
|
30996
|
-
}, NX = "Webrpc", PX = "webrpc@v0.31.2;gen-typescript@v0.23.1;trails-api@v1-25.12.3+
|
|
30996
|
+
}, NX = "Webrpc", PX = "webrpc@v0.31.2;gen-typescript@v0.23.1;trails-api@v1-25.12.3+fafa69c8";
|
|
30997
30997
|
class wR extends AX {
|
|
30998
30998
|
constructor(t, n) {
|
|
30999
30999
|
const r = (i, a) => {
|
|
@@ -31567,7 +31567,7 @@ function E0({ chainId: e } = {}) {
|
|
|
31567
31567
|
isLoadingTokens: s
|
|
31568
31568
|
};
|
|
31569
31569
|
}
|
|
31570
|
-
async function
|
|
31570
|
+
async function mo(e, t, n) {
|
|
31571
31571
|
const r = t.toLowerCase(), s = SR(e, r);
|
|
31572
31572
|
if (s)
|
|
31573
31573
|
return s;
|
|
@@ -31604,17 +31604,17 @@ async function go(e, t, n) {
|
|
|
31604
31604
|
const l = nr(e), [d, f, h] = await Promise.all([
|
|
31605
31605
|
l.readContract({
|
|
31606
31606
|
address: r,
|
|
31607
|
-
abi:
|
|
31607
|
+
abi: Ka,
|
|
31608
31608
|
functionName: "name"
|
|
31609
31609
|
}),
|
|
31610
31610
|
l.readContract({
|
|
31611
31611
|
address: r,
|
|
31612
|
-
abi:
|
|
31612
|
+
abi: Ka,
|
|
31613
31613
|
functionName: "symbol"
|
|
31614
31614
|
}),
|
|
31615
31615
|
l.readContract({
|
|
31616
31616
|
address: r,
|
|
31617
|
-
abi:
|
|
31617
|
+
abi: Ka,
|
|
31618
31618
|
functionName: "decimals"
|
|
31619
31619
|
})
|
|
31620
31620
|
]), p = {
|
|
@@ -31758,7 +31758,7 @@ function NR({
|
|
|
31758
31758
|
}) {
|
|
31759
31759
|
const { getTokenImageUrl: n } = cv(), r = e?.startsWith("0x") ?? !1, s = Rt(e) && !!t, i = he(() => !r || !t ? null : SR(t, e), [r, t, e]), a = {
|
|
31760
31760
|
address: e,
|
|
31761
|
-
abi:
|
|
31761
|
+
abi: Ka,
|
|
31762
31762
|
chainId: t
|
|
31763
31763
|
}, o = gL({
|
|
31764
31764
|
contracts: r && t && !i && !s ? [
|
|
@@ -33640,7 +33640,7 @@ let Bi = class Xg extends Error {
|
|
|
33640
33640
|
}), n.cause && (this.cause = n.cause), this.details = r, this.docsPath = s, this.metaMessages = n.metaMessages, this.shortMessage = t;
|
|
33641
33641
|
}
|
|
33642
33642
|
};
|
|
33643
|
-
function
|
|
33643
|
+
function Ro(e, t) {
|
|
33644
33644
|
return e.exec(t)?.groups;
|
|
33645
33645
|
}
|
|
33646
33646
|
const ZR = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, JR = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, xZ = /^\(.+?\).*?$/, Hk = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
@@ -33653,7 +33653,7 @@ function Zg(e) {
|
|
|
33653
33653
|
const i = e.components[s];
|
|
33654
33654
|
t += Zg(i), s < n - 1 && (t += ", ");
|
|
33655
33655
|
}
|
|
33656
|
-
const r =
|
|
33656
|
+
const r = Ro(Hk, e.type);
|
|
33657
33657
|
return t += `)${r?.array ?? ""}`, Zg({
|
|
33658
33658
|
...e,
|
|
33659
33659
|
type: t
|
|
@@ -33678,35 +33678,35 @@ function kZ(e) {
|
|
|
33678
33678
|
return eM.test(e);
|
|
33679
33679
|
}
|
|
33680
33680
|
function EZ(e) {
|
|
33681
|
-
return
|
|
33681
|
+
return Ro(eM, e);
|
|
33682
33682
|
}
|
|
33683
33683
|
const tM = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
33684
33684
|
function TZ(e) {
|
|
33685
33685
|
return tM.test(e);
|
|
33686
33686
|
}
|
|
33687
33687
|
function AZ(e) {
|
|
33688
|
-
return
|
|
33688
|
+
return Ro(tM, e);
|
|
33689
33689
|
}
|
|
33690
33690
|
const nM = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
33691
33691
|
function IZ(e) {
|
|
33692
33692
|
return nM.test(e);
|
|
33693
33693
|
}
|
|
33694
33694
|
function SZ(e) {
|
|
33695
|
-
return
|
|
33695
|
+
return Ro(nM, e);
|
|
33696
33696
|
}
|
|
33697
33697
|
const rM = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
33698
33698
|
function CZ(e) {
|
|
33699
33699
|
return rM.test(e);
|
|
33700
33700
|
}
|
|
33701
33701
|
function NZ(e) {
|
|
33702
|
-
return
|
|
33702
|
+
return Ro(rM, e);
|
|
33703
33703
|
}
|
|
33704
33704
|
const sM = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
33705
33705
|
function PZ(e) {
|
|
33706
33706
|
return sM.test(e);
|
|
33707
33707
|
}
|
|
33708
33708
|
function OZ(e) {
|
|
33709
|
-
return
|
|
33709
|
+
return Ro(sM, e);
|
|
33710
33710
|
}
|
|
33711
33711
|
const RZ = /^receive\(\) external payable$/;
|
|
33712
33712
|
function MZ(e) {
|
|
@@ -33995,7 +33995,7 @@ function _c(e, t) {
|
|
|
33995
33995
|
const n = WZ(e, t?.type, t?.structs);
|
|
33996
33996
|
if (Wp.has(n))
|
|
33997
33997
|
return Wp.get(n);
|
|
33998
|
-
const r = xZ.test(e), s =
|
|
33998
|
+
const r = xZ.test(e), s = Ro(r ? XZ : YZ, e);
|
|
33999
33999
|
if (!s)
|
|
34000
34000
|
throw new BZ({ param: e });
|
|
34001
34001
|
if (s.name && tJ(s.name))
|
|
@@ -34305,7 +34305,7 @@ function th(e) {
|
|
|
34305
34305
|
}
|
|
34306
34306
|
return r;
|
|
34307
34307
|
}
|
|
34308
|
-
function
|
|
34308
|
+
function ro(e) {
|
|
34309
34309
|
return dM(Rd(e));
|
|
34310
34310
|
}
|
|
34311
34311
|
function fM(e) {
|
|
@@ -34527,14 +34527,14 @@ function Ni(...e) {
|
|
|
34527
34527
|
}
|
|
34528
34528
|
function yM(e, t = {}) {
|
|
34529
34529
|
const n = `0x${Number(e)}`;
|
|
34530
|
-
return typeof t.size == "number" ? (wv(n, t.size),
|
|
34530
|
+
return typeof t.size == "number" ? (wv(n, t.size), go(n, t.size)) : n;
|
|
34531
34531
|
}
|
|
34532
34532
|
function Vc(e, t = {}) {
|
|
34533
34533
|
let n = "";
|
|
34534
34534
|
for (let s = 0; s < e.length; s++)
|
|
34535
34535
|
n += EJ[e[s]];
|
|
34536
34536
|
const r = `0x${n}`;
|
|
34537
|
-
return typeof t.size == "number" ? (wv(r, t.size),
|
|
34537
|
+
return typeof t.size == "number" ? (wv(r, t.size), yo(r, t.size)) : r;
|
|
34538
34538
|
}
|
|
34539
34539
|
function dl(e, t = {}) {
|
|
34540
34540
|
const { signed: n, size: r } = t, s = BigInt(e);
|
|
@@ -34552,15 +34552,15 @@ function dl(e, t = {}) {
|
|
|
34552
34552
|
});
|
|
34553
34553
|
}
|
|
34554
34554
|
const c = `0x${(n && s < 0 ? BigInt.asUintN(r * 8, BigInt(s)) : s).toString(16)}`;
|
|
34555
|
-
return r ?
|
|
34555
|
+
return r ? go(c, r) : c;
|
|
34556
34556
|
}
|
|
34557
34557
|
function vv(e, t = {}) {
|
|
34558
34558
|
return Vc(kJ.encode(e), t);
|
|
34559
34559
|
}
|
|
34560
|
-
function
|
|
34560
|
+
function go(e, t) {
|
|
34561
34561
|
return mM(e, { dir: "left", size: t });
|
|
34562
34562
|
}
|
|
34563
|
-
function
|
|
34563
|
+
function yo(e, t) {
|
|
34564
34564
|
return mM(e, { dir: "right", size: t });
|
|
34565
34565
|
}
|
|
34566
34566
|
function S0(e, t, n, r = {}) {
|
|
@@ -34674,7 +34674,7 @@ function PJ(e) {
|
|
|
34674
34674
|
function _l(e, t = {}) {
|
|
34675
34675
|
const { size: n } = t;
|
|
34676
34676
|
let r = e;
|
|
34677
|
-
n && (wv(e, n), r =
|
|
34677
|
+
n && (wv(e, n), r = yo(e, n));
|
|
34678
34678
|
let s = r.slice(2);
|
|
34679
34679
|
s.length % 2 && (s = `0${s}`);
|
|
34680
34680
|
const i = s.length / 2, a = new Uint8Array(i);
|
|
@@ -34772,7 +34772,7 @@ let UJ = class extends Map {
|
|
|
34772
34772
|
const LJ = {
|
|
34773
34773
|
checksum: /* @__PURE__ */ new UJ(8192)
|
|
34774
34774
|
}, zp = LJ.checksum, BJ = /^0x[a-fA-F0-9]{40}$/;
|
|
34775
|
-
function
|
|
34775
|
+
function bo(e, t = {}) {
|
|
34776
34776
|
const { strict: n = !0 } = t;
|
|
34777
34777
|
if (!BJ.test(e))
|
|
34778
34778
|
throw new nE({
|
|
@@ -34792,7 +34792,7 @@ function wo(e, t = {}) {
|
|
|
34792
34792
|
function EM(e) {
|
|
34793
34793
|
if (zp.has(e))
|
|
34794
34794
|
return zp.get(e);
|
|
34795
|
-
|
|
34795
|
+
bo(e, { strict: !1 });
|
|
34796
34796
|
const t = e.substring(2).toLowerCase(), n = Md(xM(t), { as: "Bytes" }), r = t.split("");
|
|
34797
34797
|
for (let i = 0; i < 40; i += 2)
|
|
34798
34798
|
n[i >> 1] >> 4 >= 8 && r[i] && (r[i] = r[i].toUpperCase()), (n[i >> 1] & 15) >= 8 && r[i + 1] && (r[i + 1] = r[i + 1].toUpperCase());
|
|
@@ -34801,15 +34801,15 @@ function EM(e) {
|
|
|
34801
34801
|
}
|
|
34802
34802
|
function Gn(e, t = {}) {
|
|
34803
34803
|
const { checksum: n = !1 } = t;
|
|
34804
|
-
return
|
|
34804
|
+
return bo(e), n ? EM(e) : e;
|
|
34805
34805
|
}
|
|
34806
34806
|
function Lr(e, t) {
|
|
34807
|
-
return
|
|
34807
|
+
return bo(e, { strict: !1 }), bo(t, { strict: !1 }), e.toLowerCase() === t.toLowerCase();
|
|
34808
34808
|
}
|
|
34809
34809
|
function ry(e, t = {}) {
|
|
34810
34810
|
const { strict: n = !0 } = t ?? {};
|
|
34811
34811
|
try {
|
|
34812
|
-
return
|
|
34812
|
+
return bo(e, { strict: n }), !0;
|
|
34813
34813
|
} catch {
|
|
34814
34814
|
return !1;
|
|
34815
34815
|
}
|
|
@@ -35086,9 +35086,9 @@ function kv(e) {
|
|
|
35086
35086
|
}
|
|
35087
35087
|
function zJ(e, t) {
|
|
35088
35088
|
const { checksum: n = !1 } = t;
|
|
35089
|
-
return
|
|
35089
|
+
return bo(e, { strict: n }), {
|
|
35090
35090
|
dynamic: !1,
|
|
35091
|
-
encoded:
|
|
35091
|
+
encoded: go(e.toLowerCase())
|
|
35092
35092
|
};
|
|
35093
35093
|
}
|
|
35094
35094
|
function qJ(e, t) {
|
|
@@ -35132,9 +35132,9 @@ function KJ(e, { type: t }) {
|
|
|
35132
35132
|
const [, n] = t.split("bytes"), r = ls(e);
|
|
35133
35133
|
if (!n) {
|
|
35134
35134
|
let s = e;
|
|
35135
|
-
return r % 32 !== 0 && (s =
|
|
35135
|
+
return r % 32 !== 0 && (s = yo(s, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
|
|
35136
35136
|
dynamic: !0,
|
|
35137
|
-
encoded: Ni(
|
|
35137
|
+
encoded: Ni(go(dl(r, { size: 32 })), s)
|
|
35138
35138
|
};
|
|
35139
35139
|
}
|
|
35140
35140
|
if (r !== Number.parseInt(n, 10))
|
|
@@ -35142,12 +35142,12 @@ function KJ(e, { type: t }) {
|
|
|
35142
35142
|
expectedSize: Number.parseInt(n, 10),
|
|
35143
35143
|
value: e
|
|
35144
35144
|
});
|
|
35145
|
-
return { dynamic: !1, encoded:
|
|
35145
|
+
return { dynamic: !1, encoded: yo(e) };
|
|
35146
35146
|
}
|
|
35147
35147
|
function QJ(e) {
|
|
35148
35148
|
if (typeof e != "boolean")
|
|
35149
35149
|
throw new an(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
|
|
35150
|
-
return { dynamic: !1, encoded:
|
|
35150
|
+
return { dynamic: !1, encoded: go(yM(e)) };
|
|
35151
35151
|
}
|
|
35152
35152
|
function YJ(e, { signed: t, size: n }) {
|
|
35153
35153
|
if (typeof n == "number") {
|
|
@@ -35172,10 +35172,10 @@ function YJ(e, { signed: t, size: n }) {
|
|
|
35172
35172
|
function XJ(e) {
|
|
35173
35173
|
const t = vv(e), n = Math.ceil(ls(t) / 32), r = [];
|
|
35174
35174
|
for (let s = 0; s < n; s++)
|
|
35175
|
-
r.push(
|
|
35175
|
+
r.push(yo(S0(t, s * 32, (s + 1) * 32)));
|
|
35176
35176
|
return {
|
|
35177
35177
|
dynamic: !0,
|
|
35178
|
-
encoded: Ni(
|
|
35178
|
+
encoded: Ni(yo(dl(ls(t), { size: 32 })), ...r)
|
|
35179
35179
|
};
|
|
35180
35180
|
}
|
|
35181
35181
|
function ZJ(e, t) {
|
|
@@ -35233,14 +35233,14 @@ function oy(e, t) {
|
|
|
35233
35233
|
function t(n, r, s = !1) {
|
|
35234
35234
|
if (n === "address") {
|
|
35235
35235
|
const c = r;
|
|
35236
|
-
return
|
|
35236
|
+
return bo(c), go(c.toLowerCase(), s ? 32 : 0);
|
|
35237
35237
|
}
|
|
35238
35238
|
if (n === "string")
|
|
35239
35239
|
return vv(r);
|
|
35240
35240
|
if (n === "bytes")
|
|
35241
35241
|
return r;
|
|
35242
35242
|
if (n === "bool")
|
|
35243
|
-
return
|
|
35243
|
+
return go(yM(r), s ? 32 : 1);
|
|
35244
35244
|
const i = n.match(IM);
|
|
35245
35245
|
if (i) {
|
|
35246
35246
|
const [c, l, d = "256"] = i, f = Number.parseInt(d, 10) / 8;
|
|
@@ -35257,7 +35257,7 @@ function oy(e, t) {
|
|
|
35257
35257
|
expectedSize: Number.parseInt(l, 10),
|
|
35258
35258
|
value: r
|
|
35259
35259
|
});
|
|
35260
|
-
return
|
|
35260
|
+
return yo(r, s ? 32 : 0);
|
|
35261
35261
|
}
|
|
35262
35262
|
const o = n.match(WJ);
|
|
35263
35263
|
if (o && Array.isArray(r)) {
|
|
@@ -35386,7 +35386,7 @@ class OM extends Tw {
|
|
|
35386
35386
|
}
|
|
35387
35387
|
const RM = (e, t, n) => new OM(e, t).update(n).digest();
|
|
35388
35388
|
RM.create = (e, t) => new OM(e, t);
|
|
35389
|
-
const Ar = BigInt(0), gr = BigInt(1),
|
|
35389
|
+
const Ar = BigInt(0), gr = BigInt(1), ja = /* @__PURE__ */ BigInt(2), iee = /* @__PURE__ */ BigInt(3), MM = /* @__PURE__ */ BigInt(4), DM = /* @__PURE__ */ BigInt(5), UM = /* @__PURE__ */ BigInt(8);
|
|
35390
35390
|
function xr(e, t) {
|
|
35391
35391
|
const n = e % t;
|
|
35392
35392
|
return n >= Ar ? n : t + n;
|
|
@@ -35418,7 +35418,7 @@ function LM(e, t) {
|
|
|
35418
35418
|
return r;
|
|
35419
35419
|
}
|
|
35420
35420
|
function aee(e, t) {
|
|
35421
|
-
const n = (e.ORDER - DM) / UM, r = e.mul(t,
|
|
35421
|
+
const n = (e.ORDER - DM) / UM, r = e.mul(t, ja), s = e.pow(r, n), i = e.mul(t, s), a = e.mul(e.mul(i, ja), s), o = e.mul(i, e.sub(a, e.ONE));
|
|
35422
35422
|
if (!e.eql(e.sqr(o), t))
|
|
35423
35423
|
throw new Error("Cannot find square root");
|
|
35424
35424
|
return o;
|
|
@@ -35427,9 +35427,9 @@ function oee(e) {
|
|
|
35427
35427
|
if (e < BigInt(3))
|
|
35428
35428
|
throw new Error("sqrt is not defined for small field");
|
|
35429
35429
|
let t = e - gr, n = 0;
|
|
35430
|
-
for (; t %
|
|
35431
|
-
t /=
|
|
35432
|
-
let r =
|
|
35430
|
+
for (; t % ja === Ar; )
|
|
35431
|
+
t /= ja, n++;
|
|
35432
|
+
let r = ja;
|
|
35433
35433
|
const s = Ev(e);
|
|
35434
35434
|
for (; sE(s, r) === 1; )
|
|
35435
35435
|
if (r++ > 1e3)
|
|
@@ -35437,7 +35437,7 @@ function oee(e) {
|
|
|
35437
35437
|
if (n === 1)
|
|
35438
35438
|
return LM;
|
|
35439
35439
|
let i = s.pow(r, t);
|
|
35440
|
-
const a = (t + gr) /
|
|
35440
|
+
const a = (t + gr) / ja;
|
|
35441
35441
|
return function(c, l) {
|
|
35442
35442
|
if (c.is0(l))
|
|
35443
35443
|
return l;
|
|
@@ -35505,7 +35505,7 @@ function BM(e, t, n = !1) {
|
|
|
35505
35505
|
return t.reduceRight((a, o, c) => e.is0(o) ? a : (r[c] = e.mul(a, r[c]), e.mul(a, o)), i), r;
|
|
35506
35506
|
}
|
|
35507
35507
|
function sE(e, t) {
|
|
35508
|
-
const n = (e.ORDER - gr) /
|
|
35508
|
+
const n = (e.ORDER - gr) / ja, r = e.pow(t, n), s = e.eql(r, e.ONE), i = e.eql(r, e.ZERO), a = e.eql(r, e.neg(e.ONE));
|
|
35509
35509
|
if (!s && !i && !a)
|
|
35510
35510
|
throw new Error("invalid Legendre symbol result");
|
|
35511
35511
|
return s ? 1 : i ? 0 : -1;
|
|
@@ -35557,7 +35557,7 @@ function Ev(e, t, n = !1, r = {}) {
|
|
|
35557
35557
|
fromBytes: (c) => {
|
|
35558
35558
|
if (c.length !== i)
|
|
35559
35559
|
throw new Error("Field.fromBytes: expected " + i + " bytes, got " + c.length);
|
|
35560
|
-
return n ? fM(c) :
|
|
35560
|
+
return n ? fM(c) : ro(c);
|
|
35561
35561
|
},
|
|
35562
35562
|
// TODO: we don't need it here, move out to separate fn
|
|
35563
35563
|
invertBatch: (c) => BM(o, c),
|
|
@@ -35581,7 +35581,7 @@ function fee(e, t, n = !1) {
|
|
|
35581
35581
|
const r = e.length, s = $M(t), i = _M(t);
|
|
35582
35582
|
if (r < 16 || r < i || r > 1024)
|
|
35583
35583
|
throw new Error("expected " + i + "-1024 bytes of input, got " + r);
|
|
35584
|
-
const a = n ? fM(e) :
|
|
35584
|
+
const a = n ? fM(e) : ro(e), o = xr(a, t - gr) + gr;
|
|
35585
35585
|
return n ? hM(o, s) : hu(o, s);
|
|
35586
35586
|
}
|
|
35587
35587
|
const iE = BigInt(0), ly = BigInt(1);
|
|
@@ -35858,7 +35858,7 @@ const ci = {
|
|
|
35858
35858
|
throw new t("invalid signature integer: negative");
|
|
35859
35859
|
if (e[0] === 0 && !(e[1] & 128))
|
|
35860
35860
|
throw new t("invalid signature integer: unnecessary leading zero");
|
|
35861
|
-
return
|
|
35861
|
+
return ro(e);
|
|
35862
35862
|
}
|
|
35863
35863
|
},
|
|
35864
35864
|
toSig(e) {
|
|
@@ -35914,7 +35914,7 @@ function vee(e) {
|
|
|
35914
35914
|
}
|
|
35915
35915
|
let E;
|
|
35916
35916
|
try {
|
|
35917
|
-
E = typeof x == "bigint" ? x :
|
|
35917
|
+
E = typeof x == "bigint" ? x : ro(Jr("private key", x, k));
|
|
35918
35918
|
} catch {
|
|
35919
35919
|
throw new Error("invalid private key, expected hex or " + k + " bytes, got " + typeof x);
|
|
35920
35920
|
}
|
|
@@ -36181,7 +36181,7 @@ function kee(e) {
|
|
|
36181
36181
|
fromBytes(P) {
|
|
36182
36182
|
const W = P.length, K = P[0], S = P.subarray(1);
|
|
36183
36183
|
if (W === a && (K === 2 || K === 3)) {
|
|
36184
|
-
const N =
|
|
36184
|
+
const N = ro(S);
|
|
36185
36185
|
if (!bv(N, Rn, n.ORDER))
|
|
36186
36186
|
throw new Error("Point is not on curve");
|
|
36187
36187
|
const B = h(N);
|
|
@@ -36210,7 +36210,7 @@ function kee(e) {
|
|
|
36210
36210
|
function m(P) {
|
|
36211
36211
|
return g(P) ? c(-P) : P;
|
|
36212
36212
|
}
|
|
36213
|
-
const b = (P, W, K) =>
|
|
36213
|
+
const b = (P, W, K) => ro(P.slice(W, K));
|
|
36214
36214
|
class w {
|
|
36215
36215
|
constructor(W, K, S) {
|
|
36216
36216
|
yc("r", W, Rn, r), yc("s", K, Rn, r), this.r = W, this.s = K, S != null && (this.recovery = S), Object.freeze(this);
|
|
@@ -36321,7 +36321,7 @@ function kee(e) {
|
|
|
36321
36321
|
const I = t.bits2int || function(P) {
|
|
36322
36322
|
if (P.length > 8192)
|
|
36323
36323
|
throw new Error("input is too large");
|
|
36324
|
-
const W =
|
|
36324
|
+
const W = ro(P), K = P.length * 8 - i;
|
|
36325
36325
|
return K > 0 ? W >> BigInt(K) : W;
|
|
36326
36326
|
}, C = t.bits2int_modN || function(P) {
|
|
36327
36327
|
return c(I(P));
|
|
@@ -36464,7 +36464,7 @@ function GM({
|
|
|
36464
36464
|
queryFn: async () => {
|
|
36465
36465
|
if (!e || !t) return null;
|
|
36466
36466
|
try {
|
|
36467
|
-
const l = await
|
|
36467
|
+
const l = await mo(t, e, {
|
|
36468
36468
|
trailsApiKey: i.trailsApiKey,
|
|
36469
36469
|
trailsApiUrl: i.trailsApiUrl
|
|
36470
36470
|
});
|
|
@@ -37528,7 +37528,7 @@ function Mee({
|
|
|
37528
37528
|
isCustomToken: R
|
|
37529
37529
|
};
|
|
37530
37530
|
}
|
|
37531
|
-
const
|
|
37531
|
+
const Mo = ({
|
|
37532
37532
|
message: e,
|
|
37533
37533
|
content: t,
|
|
37534
37534
|
children: n,
|
|
@@ -37825,7 +37825,7 @@ const Do = ({
|
|
|
37825
37825
|
}
|
|
37826
37826
|
),
|
|
37827
37827
|
/* @__PURE__ */ u(
|
|
37828
|
-
|
|
37828
|
+
Mo,
|
|
37829
37829
|
{
|
|
37830
37830
|
content: /* @__PURE__ */ v("div", { className: "space-y-2 text-left", children: [
|
|
37831
37831
|
/* @__PURE__ */ v("div", { children: [
|
|
@@ -38103,7 +38103,7 @@ const fy = ({
|
|
|
38103
38103
|
padding: "0",
|
|
38104
38104
|
margin: "0"
|
|
38105
38105
|
} : s;
|
|
38106
|
-
}, [e, t]),
|
|
38106
|
+
}, [e, t]), wo = Co(
|
|
38107
38107
|
({
|
|
38108
38108
|
id: e = "amount",
|
|
38109
38109
|
value: t,
|
|
@@ -38154,7 +38154,7 @@ const fy = ({
|
|
|
38154
38154
|
);
|
|
38155
38155
|
}
|
|
38156
38156
|
);
|
|
38157
|
-
|
|
38157
|
+
wo.displayName = "DynamicSizeInputField";
|
|
38158
38158
|
const XM = ({
|
|
38159
38159
|
token: e,
|
|
38160
38160
|
onBack: t,
|
|
@@ -38234,7 +38234,7 @@ const XM = ({
|
|
|
38234
38234
|
}
|
|
38235
38235
|
),
|
|
38236
38236
|
/* @__PURE__ */ u("div", { className: "rounded-2xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900/40 px-4 py-3", children: /* @__PURE__ */ u(
|
|
38237
|
-
|
|
38237
|
+
wo,
|
|
38238
38238
|
{
|
|
38239
38239
|
id: "origin-amount-input",
|
|
38240
38240
|
value: s,
|
|
@@ -38421,7 +38421,7 @@ const Lee = ({
|
|
|
38421
38421
|
),
|
|
38422
38422
|
/* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
|
|
38423
38423
|
/* @__PURE__ */ u("p", { className: "text-xs text-amber-700 dark:text-amber-300", children: n || a }),
|
|
38424
|
-
r?.startsWith("https") && /* @__PURE__ */ u("div", { className: "mt-1", children: /* @__PURE__ */ u(
|
|
38424
|
+
r?.startsWith("https") && /* @__PURE__ */ u("div", { className: "mt-1", children: /* @__PURE__ */ u(Mo, { message: r, children: /* @__PURE__ */ v(
|
|
38425
38425
|
"a",
|
|
38426
38426
|
{
|
|
38427
38427
|
href: r,
|
|
@@ -38458,7 +38458,7 @@ const Lee = ({
|
|
|
38458
38458
|
function Fee() {
|
|
38459
38459
|
return ct(JM) || {};
|
|
38460
38460
|
}
|
|
38461
|
-
const
|
|
38461
|
+
const Do = ({
|
|
38462
38462
|
quote: e,
|
|
38463
38463
|
showContent: t = !0,
|
|
38464
38464
|
children: n,
|
|
@@ -38511,7 +38511,7 @@ const Uo = ({
|
|
|
38511
38511
|
e?.noSufficientBalance && /* @__PURE__ */ v("div", { className: "flex justify-between items-center mb-2 p-2 bg-amber-50 dark:bg-amber-900/20 rounded-lg", children: [
|
|
38512
38512
|
/* @__PURE__ */ v("span", { className: "text-xs text-amber-600 dark:text-amber-400 flex items-center gap-1", children: [
|
|
38513
38513
|
"Balance Status:",
|
|
38514
|
-
/* @__PURE__ */ u(
|
|
38514
|
+
/* @__PURE__ */ u(Mo, { message: "Your wallet does not have sufficient balance to complete this transaction", children: /* @__PURE__ */ u(wd, { className: "size-3 text-amber-500 dark:text-amber-400 cursor-pointer" }) })
|
|
38515
38515
|
] }),
|
|
38516
38516
|
/* @__PURE__ */ v("span", { className: "font-medium text-xs text-amber-600 dark:text-amber-400 flex items-center gap-1", children: [
|
|
38517
38517
|
/* @__PURE__ */ u(Bf, { className: "size-3" }),
|
|
@@ -38661,7 +38661,7 @@ const Uo = ({
|
|
|
38661
38661
|
className: "hover:underline inline-flex items-center gap-0.5 text-blue-500",
|
|
38662
38662
|
children: [
|
|
38663
38663
|
V.name,
|
|
38664
|
-
/* @__PURE__ */ u(
|
|
38664
|
+
/* @__PURE__ */ u(Da, { className: "size-3" })
|
|
38665
38665
|
]
|
|
38666
38666
|
}
|
|
38667
38667
|
),
|
|
@@ -38681,7 +38681,7 @@ const Uo = ({
|
|
|
38681
38681
|
className: "hover:underline inline-flex items-center gap-0.5 text-blue-500",
|
|
38682
38682
|
children: [
|
|
38683
38683
|
V.name,
|
|
38684
|
-
/* @__PURE__ */ u(
|
|
38684
|
+
/* @__PURE__ */ u(Da, { className: "size-3" })
|
|
38685
38685
|
]
|
|
38686
38686
|
}
|
|
38687
38687
|
),
|
|
@@ -38892,7 +38892,7 @@ const Uo = ({
|
|
|
38892
38892
|
className: "font-mono text-xs hover:underline flex items-center gap-1 text-blue-500",
|
|
38893
38893
|
children: [
|
|
38894
38894
|
Ft(e.originDepositAddress),
|
|
38895
|
-
/* @__PURE__ */ u(
|
|
38895
|
+
/* @__PURE__ */ u(Da, { className: "size-3" })
|
|
38896
38896
|
]
|
|
38897
38897
|
}
|
|
38898
38898
|
) })
|
|
@@ -38911,7 +38911,7 @@ const Uo = ({
|
|
|
38911
38911
|
className: "font-mono text-xs hover:underline flex items-center gap-1 text-blue-500",
|
|
38912
38912
|
children: [
|
|
38913
38913
|
Ft(e.destinationDepositAddress),
|
|
38914
|
-
/* @__PURE__ */ u(
|
|
38914
|
+
/* @__PURE__ */ u(Da, { className: "size-3" })
|
|
38915
38915
|
]
|
|
38916
38916
|
}
|
|
38917
38917
|
) })
|
|
@@ -38930,7 +38930,7 @@ const Uo = ({
|
|
|
38930
38930
|
className: "font-mono text-xs hover:underline flex items-center gap-1 text-blue-500",
|
|
38931
38931
|
children: [
|
|
38932
38932
|
Ft(e.destinationAddress),
|
|
38933
|
-
/* @__PURE__ */ u(
|
|
38933
|
+
/* @__PURE__ */ u(Da, { className: "size-3" })
|
|
38934
38934
|
]
|
|
38935
38935
|
}
|
|
38936
38936
|
) })
|
|
@@ -39008,7 +39008,7 @@ const Uo = ({
|
|
|
39008
39008
|
className: n = ""
|
|
39009
39009
|
}) => /* @__PURE__ */ v("div", { className: `flex items-center gap-1 ${n}`, children: [
|
|
39010
39010
|
e,
|
|
39011
|
-
t && /* @__PURE__ */ u(
|
|
39011
|
+
t && /* @__PURE__ */ u(Mo, { message: t, children: /* @__PURE__ */ u(wd, { className: "size-3 text-gray-500 dark:text-gray-400 cursor-pointer" }) })
|
|
39012
39012
|
] }), vr = ({ children: e, className: t }) => /* @__PURE__ */ u("div", { className: t, children: e }), _ee = (e) => e?.contractAddress ? Ft(e.contractAddress) : "Native Token", Jp = ({
|
|
39013
39013
|
option: e,
|
|
39014
39014
|
chainId: t,
|
|
@@ -39259,7 +39259,7 @@ const Uo = ({
|
|
|
39259
39259
|
f && /* @__PURE__ */ u("div", { className: "space-y-2", children: a.options.filter((P) => P.hasEnoughBalanceForFee).map((P) => {
|
|
39260
39260
|
const W = I(P), K = C(P);
|
|
39261
39261
|
return W ? /* @__PURE__ */ u(
|
|
39262
|
-
|
|
39262
|
+
Mo,
|
|
39263
39263
|
{
|
|
39264
39264
|
message: "Not enough balance to cover sell amount and fee",
|
|
39265
39265
|
children: /* @__PURE__ */ u(
|
|
@@ -39540,7 +39540,7 @@ const Uo = ({
|
|
|
39540
39540
|
)
|
|
39541
39541
|
}
|
|
39542
39542
|
),
|
|
39543
|
-
/* @__PURE__ */ u(
|
|
39543
|
+
/* @__PURE__ */ u(Do, { quote: r, showContent: !0, compact: !0 })
|
|
39544
39544
|
] })
|
|
39545
39545
|
] });
|
|
39546
39546
|
}, jee = ({
|
|
@@ -39824,7 +39824,7 @@ const Uo = ({
|
|
|
39824
39824
|
] }) }),
|
|
39825
39825
|
/* @__PURE__ */ u("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ v("div", { className: "flex items-center space-x-2", children: [
|
|
39826
39826
|
/* @__PURE__ */ u("span", { className: K(), children: E.label }),
|
|
39827
|
-
P === "completed" ? /* @__PURE__ */ u(
|
|
39827
|
+
P === "completed" ? /* @__PURE__ */ u(Da, { className: "w-4 h-4 text-gray-400 transition-opacity duration-300" }) : P === "active" ? /* @__PURE__ */ u(
|
|
39828
39828
|
"span",
|
|
39829
39829
|
{
|
|
39830
39830
|
className: "text-xs text-gray-500 dark:text-gray-400 font-mono animate-pulse mt-1",
|
|
@@ -39940,7 +39940,7 @@ const Uo = ({
|
|
|
39940
39940
|
"div",
|
|
39941
39941
|
{
|
|
39942
39942
|
className: `w-full max-w-sm transition-all duration-500 ease-out delay-200 ${a ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4"}`,
|
|
39943
|
-
children: /* @__PURE__ */ u("div", { className: "mt-4", children: /* @__PURE__ */ u(
|
|
39943
|
+
children: /* @__PURE__ */ u("div", { className: "mt-4", children: /* @__PURE__ */ u(Do, { quote: n, showContent: !0, compact: !0 }) })
|
|
39944
39944
|
}
|
|
39945
39945
|
),
|
|
39946
39946
|
g && !A && /* @__PURE__ */ u(
|
|
@@ -40470,7 +40470,7 @@ const r9 = ({
|
|
|
40470
40470
|
}
|
|
40471
40471
|
h(!1), g(null);
|
|
40472
40472
|
}, [r]);
|
|
40473
|
-
const C = i && /* @__PURE__ */ u("div", { className: "mt-2", children: /* @__PURE__ */ u(
|
|
40473
|
+
const C = i && /* @__PURE__ */ u("div", { className: "mt-2", children: /* @__PURE__ */ u(Do, { quote: i, showContent: !0, compact: !0, children: r.length > 0 && /* @__PURE__ */ v(et, { children: [
|
|
40474
40474
|
/* @__PURE__ */ u("div", { className: "h-px bg-gray-200 dark:bg-gray-800 my-4" }),
|
|
40475
40475
|
/* @__PURE__ */ u("div", { className: "text-sm font-semibold text-gray-900 dark:text-white mb-2", children: "Transactions" }),
|
|
40476
40476
|
/* @__PURE__ */ u("div", { className: "space-y-2", children: r.map((R, O) => /* @__PURE__ */ v(
|
|
@@ -41269,18 +41269,18 @@ function O0() {
|
|
|
41269
41269
|
Fr,
|
|
41270
41270
|
nn,
|
|
41271
41271
|
rs,
|
|
41272
|
-
|
|
41272
|
+
ao,
|
|
41273
41273
|
Dr,
|
|
41274
41274
|
ua,
|
|
41275
41275
|
wa,
|
|
41276
41276
|
da,
|
|
41277
|
-
uo,
|
|
41278
41277
|
lo,
|
|
41279
|
-
xs,
|
|
41280
41278
|
co,
|
|
41279
|
+
xs,
|
|
41280
|
+
oo,
|
|
41281
41281
|
Sc,
|
|
41282
41282
|
vs,
|
|
41283
|
-
|
|
41283
|
+
io,
|
|
41284
41284
|
tn,
|
|
41285
41285
|
dd,
|
|
41286
41286
|
bf,
|
|
@@ -41315,16 +41315,16 @@ function ate(e) {
|
|
|
41315
41315
|
"optimism",
|
|
41316
41316
|
e
|
|
41317
41317
|
),
|
|
41318
|
-
[
|
|
41318
|
+
[ao.id]: Nn("gnosis", e),
|
|
41319
41319
|
[Dr.id]: Nn("polygon", e),
|
|
41320
41320
|
[ua.id]: Nn("soneium", e),
|
|
41321
41321
|
[wa.id]: Nn("somnia", e),
|
|
41322
41322
|
[da.id]: Nn("xai", e),
|
|
41323
|
-
[
|
|
41323
|
+
[lo.id]: Nn(
|
|
41324
41324
|
"apechain",
|
|
41325
41325
|
e
|
|
41326
41326
|
),
|
|
41327
|
-
[
|
|
41327
|
+
[co.id]: Nn(
|
|
41328
41328
|
"arbitrum-nova",
|
|
41329
41329
|
e
|
|
41330
41330
|
),
|
|
@@ -41332,10 +41332,10 @@ function ate(e) {
|
|
|
41332
41332
|
"avalanche",
|
|
41333
41333
|
e
|
|
41334
41334
|
),
|
|
41335
|
-
[
|
|
41335
|
+
[oo.id]: Nn("b3", e),
|
|
41336
41336
|
[Sc.id]: Nn("blast", e),
|
|
41337
41337
|
[vs.id]: Nn("bsc", e),
|
|
41338
|
-
[
|
|
41338
|
+
[io.id]: Nn("katana", e),
|
|
41339
41339
|
[tn.id]: Nn(
|
|
41340
41340
|
"etherlink",
|
|
41341
41341
|
e
|
|
@@ -41383,22 +41383,22 @@ function py(e) {
|
|
|
41383
41383
|
}, [e, t, n]);
|
|
41384
41384
|
}
|
|
41385
41385
|
const o9 = {
|
|
41386
|
-
[uo.id]: ye(uo.id),
|
|
41387
|
-
[lr.id]: ye(lr.id),
|
|
41388
41386
|
[lo.id]: ye(lo.id),
|
|
41389
|
-
[
|
|
41387
|
+
[lr.id]: ye(lr.id),
|
|
41390
41388
|
[co.id]: ye(co.id),
|
|
41389
|
+
[xs.id]: ye(xs.id),
|
|
41390
|
+
[oo.id]: ye(oo.id),
|
|
41391
41391
|
[Fr.id]: ye(Fr.id),
|
|
41392
41392
|
[Sc.id]: ye(Sc.id),
|
|
41393
41393
|
[vs.id]: ye(vs.id),
|
|
41394
41394
|
[nn.id]: ye(nn.id),
|
|
41395
|
-
[
|
|
41395
|
+
[ao.id]: ye(ao.id),
|
|
41396
41396
|
[rs.id]: ye(rs.id),
|
|
41397
41397
|
[Dr.id]: ye(Dr.id),
|
|
41398
41398
|
[ua.id]: ye(ua.id),
|
|
41399
41399
|
[wa.id]: ye(wa.id),
|
|
41400
41400
|
[da.id]: ye(da.id),
|
|
41401
|
-
[
|
|
41401
|
+
[io.id]: ye(io.id),
|
|
41402
41402
|
[tn.id]: ye(tn.id),
|
|
41403
41403
|
[Mr.id]: ye(Mr.id)
|
|
41404
41404
|
};
|
|
@@ -41407,17 +41407,17 @@ const c9 = {
|
|
|
41407
41407
|
[lr.id]: dd,
|
|
41408
41408
|
[xs.id]: bf,
|
|
41409
41409
|
[Fr.id]: ld,
|
|
41410
|
-
[
|
|
41410
|
+
[ao.id]: kf,
|
|
41411
41411
|
[rs.id]: Tf,
|
|
41412
41412
|
[Dr.id]: Ef,
|
|
41413
41413
|
[nn.id]: ud,
|
|
41414
41414
|
[da.id]: If,
|
|
41415
41415
|
[ua.id]: Af,
|
|
41416
|
-
[
|
|
41416
|
+
[oo.id]: wf,
|
|
41417
41417
|
[Sc.id]: vf,
|
|
41418
41418
|
[vs.id]: xf,
|
|
41419
|
-
[
|
|
41420
|
-
[
|
|
41419
|
+
[co.id]: dd,
|
|
41420
|
+
[lo.id]: ud,
|
|
41421
41421
|
[tn.id]: Sf,
|
|
41422
41422
|
[wa.id]: Cf,
|
|
41423
41423
|
[Mr.id]: Nf
|
|
@@ -41451,7 +41451,7 @@ function ye(e, t) {
|
|
|
41451
41451
|
}
|
|
41452
41452
|
});
|
|
41453
41453
|
}
|
|
41454
|
-
return e ===
|
|
41454
|
+
return e === io.id && (r.blockExplorers = {
|
|
41455
41455
|
default: {
|
|
41456
41456
|
name: "Katanascan",
|
|
41457
41457
|
url: "https://katanascan.com"
|
|
@@ -41474,15 +41474,15 @@ const fE = [
|
|
|
41474
41474
|
Fr.id,
|
|
41475
41475
|
lr.id,
|
|
41476
41476
|
Dr.id,
|
|
41477
|
-
|
|
41477
|
+
io.id,
|
|
41478
41478
|
vs.id,
|
|
41479
41479
|
rs.id,
|
|
41480
41480
|
xs.id,
|
|
41481
|
-
|
|
41481
|
+
co.id,
|
|
41482
41482
|
tn.id,
|
|
41483
|
+
ao.id,
|
|
41483
41484
|
oo.id,
|
|
41484
|
-
|
|
41485
|
-
uo.id,
|
|
41485
|
+
lo.id,
|
|
41486
41486
|
ua.id,
|
|
41487
41487
|
wa.id,
|
|
41488
41488
|
da.id,
|
|
@@ -41952,7 +41952,7 @@ function Lte(e, t = {}) {
|
|
|
41952
41952
|
throw new fl({ signature: e, type: "function" });
|
|
41953
41953
|
const r = bs(n.parameters), s = [], i = r.length;
|
|
41954
41954
|
for (let o = 0; o < i; o++)
|
|
41955
|
-
s.push(
|
|
41955
|
+
s.push(vo(r[o], {
|
|
41956
41956
|
modifiers: by,
|
|
41957
41957
|
structs: t,
|
|
41958
41958
|
type: "function"
|
|
@@ -41961,7 +41961,7 @@ function Lte(e, t = {}) {
|
|
|
41961
41961
|
if (n.returns) {
|
|
41962
41962
|
const o = bs(n.returns), c = o.length;
|
|
41963
41963
|
for (let l = 0; l < c; l++)
|
|
41964
|
-
a.push(
|
|
41964
|
+
a.push(vo(o[l], {
|
|
41965
41965
|
modifiers: by,
|
|
41966
41966
|
structs: t,
|
|
41967
41967
|
type: "function"
|
|
@@ -41981,7 +41981,7 @@ function Bte(e, t = {}) {
|
|
|
41981
41981
|
throw new fl({ signature: e, type: "event" });
|
|
41982
41982
|
const r = bs(n.parameters), s = [], i = r.length;
|
|
41983
41983
|
for (let a = 0; a < i; a++)
|
|
41984
|
-
s.push(
|
|
41984
|
+
s.push(vo(r[a], {
|
|
41985
41985
|
modifiers: kte,
|
|
41986
41986
|
structs: t,
|
|
41987
41987
|
type: "event"
|
|
@@ -41994,7 +41994,7 @@ function Fte(e, t = {}) {
|
|
|
41994
41994
|
throw new fl({ signature: e, type: "error" });
|
|
41995
41995
|
const r = bs(n.parameters), s = [], i = r.length;
|
|
41996
41996
|
for (let a = 0; a < i; a++)
|
|
41997
|
-
s.push(
|
|
41997
|
+
s.push(vo(r[a], { structs: t, type: "error" }));
|
|
41998
41998
|
return { name: n.name, type: "error", inputs: s };
|
|
41999
41999
|
}
|
|
42000
42000
|
function $te(e, t = {}) {
|
|
@@ -42003,7 +42003,7 @@ function $te(e, t = {}) {
|
|
|
42003
42003
|
throw new fl({ signature: e, type: "constructor" });
|
|
42004
42004
|
const r = bs(n.parameters), s = [], i = r.length;
|
|
42005
42005
|
for (let a = 0; a < i; a++)
|
|
42006
|
-
s.push(
|
|
42006
|
+
s.push(vo(r[a], { structs: t, type: "constructor" }));
|
|
42007
42007
|
return {
|
|
42008
42008
|
type: "constructor",
|
|
42009
42009
|
stateMutability: n.stateMutability ?? "nonpayable",
|
|
@@ -42020,7 +42020,7 @@ function _te(e) {
|
|
|
42020
42020
|
};
|
|
42021
42021
|
}
|
|
42022
42022
|
const Vte = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, jte = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Wte = /^u?int$/;
|
|
42023
|
-
function
|
|
42023
|
+
function vo(e, t) {
|
|
42024
42024
|
const n = Dte(e, t?.type, t?.structs);
|
|
42025
42025
|
if (em.has(n))
|
|
42026
42026
|
return em.get(n);
|
|
@@ -42035,7 +42035,7 @@ function xo(e, t) {
|
|
|
42035
42035
|
c = "tuple";
|
|
42036
42036
|
const f = bs(s.type), h = [], p = f.length;
|
|
42037
42037
|
for (let g = 0; g < p; g++)
|
|
42038
|
-
h.push(
|
|
42038
|
+
h.push(vo(f[g], { structs: o }));
|
|
42039
42039
|
l = { components: h };
|
|
42040
42040
|
} else if (s.type in o)
|
|
42041
42041
|
c = "tuple", l = { components: o[s.type] };
|
|
@@ -42112,7 +42112,7 @@ function qte(e) {
|
|
|
42112
42112
|
const g = l[h].trim();
|
|
42113
42113
|
if (!g)
|
|
42114
42114
|
continue;
|
|
42115
|
-
const m =
|
|
42115
|
+
const m = vo(g, {
|
|
42116
42116
|
type: "struct"
|
|
42117
42117
|
});
|
|
42118
42118
|
d.push(m);
|
|
@@ -42348,7 +42348,7 @@ function Dd(e, t = {}) {
|
|
|
42348
42348
|
for (let s = 0; s < e.length; s++)
|
|
42349
42349
|
n += sne[e[s]];
|
|
42350
42350
|
const r = `0x${n}`;
|
|
42351
|
-
return typeof t.size == "number" ? (Nv(r, t.size),
|
|
42351
|
+
return typeof t.size == "number" ? (Nv(r, t.size), xo(r, t.size)) : r;
|
|
42352
42352
|
}
|
|
42353
42353
|
function kr(e, t = {}) {
|
|
42354
42354
|
const { signed: n, size: r } = t, s = BigInt(e);
|
|
@@ -42374,7 +42374,7 @@ function M0(e, t = {}) {
|
|
|
42374
42374
|
function Br(e, t) {
|
|
42375
42375
|
return S9(e, { dir: "left", size: t });
|
|
42376
42376
|
}
|
|
42377
|
-
function
|
|
42377
|
+
function xo(e, t) {
|
|
42378
42378
|
return S9(e, { dir: "right", size: t });
|
|
42379
42379
|
}
|
|
42380
42380
|
function Pv(e, t, n, r = {}) {
|
|
@@ -42482,7 +42482,7 @@ function Xi(e) {
|
|
|
42482
42482
|
function Vt(e, t = {}) {
|
|
42483
42483
|
const { size: n } = t;
|
|
42484
42484
|
let r = e;
|
|
42485
|
-
n && (Nv(e, n), r =
|
|
42485
|
+
n && (Nv(e, n), r = xo(e, n));
|
|
42486
42486
|
let s = r.slice(2);
|
|
42487
42487
|
s.length % 2 && (s = `0${s}`);
|
|
42488
42488
|
const i = s.length / 2, a = new Uint8Array(i);
|
|
@@ -42887,7 +42887,7 @@ function Ane(e, { type: t }) {
|
|
|
42887
42887
|
const [, n] = t.split("bytes"), r = Sr(e);
|
|
42888
42888
|
if (!n) {
|
|
42889
42889
|
let s = e;
|
|
42890
|
-
return r % 32 !== 0 && (s =
|
|
42890
|
+
return r % 32 !== 0 && (s = xo(s, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
|
|
42891
42891
|
dynamic: !0,
|
|
42892
42892
|
encoded: pr(Br(kr(r, { size: 32 })), s)
|
|
42893
42893
|
};
|
|
@@ -42897,7 +42897,7 @@ function Ane(e, { type: t }) {
|
|
|
42897
42897
|
expectedSize: Number.parseInt(n),
|
|
42898
42898
|
value: e
|
|
42899
42899
|
});
|
|
42900
|
-
return { dynamic: !1, encoded:
|
|
42900
|
+
return { dynamic: !1, encoded: xo(e) };
|
|
42901
42901
|
}
|
|
42902
42902
|
function Ine(e) {
|
|
42903
42903
|
if (typeof e != "boolean")
|
|
@@ -42927,10 +42927,10 @@ function Sne(e, { signed: t, size: n }) {
|
|
|
42927
42927
|
function Cne(e) {
|
|
42928
42928
|
const t = M0(e), n = Math.ceil(Sr(t) / 32), r = [];
|
|
42929
42929
|
for (let s = 0; s < n; s++)
|
|
42930
|
-
r.push(
|
|
42930
|
+
r.push(xo(Pv(t, s * 32, (s + 1) * 32)));
|
|
42931
42931
|
return {
|
|
42932
42932
|
dynamic: !0,
|
|
42933
|
-
encoded: pr(
|
|
42933
|
+
encoded: pr(xo(kr(Sr(t), { size: 32 })), ...r)
|
|
42934
42934
|
};
|
|
42935
42935
|
}
|
|
42936
42936
|
function Nne(e, t) {
|
|
@@ -43012,7 +43012,7 @@ function Ay(e, t) {
|
|
|
43012
43012
|
expectedSize: Number.parseInt(l),
|
|
43013
43013
|
value: r
|
|
43014
43014
|
});
|
|
43015
|
-
return
|
|
43015
|
+
return xo(r, s ? 32 : 0);
|
|
43016
43016
|
}
|
|
43017
43017
|
const o = n.match(xne);
|
|
43018
43018
|
if (o && Array.isArray(r)) {
|
|
@@ -43771,7 +43771,7 @@ function hf(e, t = {}) {
|
|
|
43771
43771
|
return ft(tt(n), r, Mt(Vt(e.address), 20));
|
|
43772
43772
|
}
|
|
43773
43773
|
if (L0(e)) {
|
|
43774
|
-
const n =
|
|
43774
|
+
const n = Wa(e);
|
|
43775
43775
|
return ft(tt(wE << 4), n);
|
|
43776
43776
|
}
|
|
43777
43777
|
if (B0(e))
|
|
@@ -43810,9 +43810,9 @@ function Tre(e) {
|
|
|
43810
43810
|
function sh(e) {
|
|
43811
43811
|
return Ud(e) || Tre(e);
|
|
43812
43812
|
}
|
|
43813
|
-
function
|
|
43813
|
+
function Wa(e) {
|
|
43814
43814
|
if (Ere(e)) {
|
|
43815
|
-
let t =
|
|
43815
|
+
let t = Wa(e.topology);
|
|
43816
43816
|
return t = qt(ft(t, Mt(tt(e.threshold), 32))), t = qt(ft(t, Mt(tt(e.checkpoint), 32))), t = qt(ft(t, Mt(Vt(e.checkpointer ?? zne), 32))), t;
|
|
43817
43817
|
}
|
|
43818
43818
|
if (yu(e))
|
|
@@ -43831,9 +43831,9 @@ function Ha(e) {
|
|
|
43831
43831
|
return Vt(e);
|
|
43832
43832
|
if (_0(e))
|
|
43833
43833
|
return qt(ft(fi(`Sequence nested config:
|
|
43834
|
-
`),
|
|
43834
|
+
`), Wa(e.tree), Mt(tt(e.threshold), 32), Mt(tt(e.weight), 32)));
|
|
43835
43835
|
if (Ud(e))
|
|
43836
|
-
return qt(ft(
|
|
43836
|
+
return qt(ft(Wa(e[0]), Wa(e[1])));
|
|
43837
43837
|
throw new Error("Invalid topology");
|
|
43838
43838
|
}
|
|
43839
43839
|
function Are(e) {
|
|
@@ -43856,15 +43856,15 @@ function Sre(e) {
|
|
|
43856
43856
|
return qt(Are(e));
|
|
43857
43857
|
}
|
|
43858
43858
|
qt(fi("acceptImplicitRequest"));
|
|
43859
|
-
const Cre = "0.8.
|
|
43859
|
+
const Cre = "0.8.2", Nre = {
|
|
43860
43860
|
version: Cre
|
|
43861
43861
|
};
|
|
43862
|
-
let
|
|
43862
|
+
let Ha = null;
|
|
43863
43863
|
function Pre() {
|
|
43864
43864
|
return Nre.version;
|
|
43865
43865
|
}
|
|
43866
43866
|
function Ld() {
|
|
43867
|
-
|
|
43867
|
+
Ha = null;
|
|
43868
43868
|
try {
|
|
43869
43869
|
localStorage.removeItem("checkoutId");
|
|
43870
43870
|
} catch (e) {
|
|
@@ -43888,19 +43888,19 @@ function Rre(e) {
|
|
|
43888
43888
|
return Mre(), Pn();
|
|
43889
43889
|
}
|
|
43890
43890
|
function Pn() {
|
|
43891
|
-
if (
|
|
43892
|
-
return
|
|
43891
|
+
if (Ha)
|
|
43892
|
+
return Ha;
|
|
43893
43893
|
try {
|
|
43894
|
-
|
|
43894
|
+
Ha = localStorage.getItem("checkoutId");
|
|
43895
43895
|
} catch (e) {
|
|
43896
43896
|
y.console.error("Error getting checkout id:", e);
|
|
43897
43897
|
}
|
|
43898
|
-
return
|
|
43898
|
+
return Ha;
|
|
43899
43899
|
}
|
|
43900
43900
|
function Mre() {
|
|
43901
|
-
Ld(),
|
|
43901
|
+
Ld(), Ha = Dre();
|
|
43902
43902
|
try {
|
|
43903
|
-
localStorage.setItem("checkoutId",
|
|
43903
|
+
localStorage.setItem("checkoutId", Ha);
|
|
43904
43904
|
} catch (e) {
|
|
43905
43905
|
y.console.error("Error setting checkout id:", e);
|
|
43906
43906
|
}
|
|
@@ -45006,8 +45006,7 @@ async function Z9(e, t, n = {}) {
|
|
|
45006
45006
|
...n
|
|
45007
45007
|
});
|
|
45008
45008
|
const h = await e.commitIntent({
|
|
45009
|
-
intent: t
|
|
45010
|
-
trailsContracts: Da
|
|
45009
|
+
intent: t
|
|
45011
45010
|
});
|
|
45012
45011
|
return zre({
|
|
45013
45012
|
intentAddress: t.originIntentAddress,
|
|
@@ -45123,7 +45122,7 @@ async function oh(e, t, n, r = {}) {
|
|
|
45123
45122
|
}
|
|
45124
45123
|
}
|
|
45125
45124
|
function tse(e, t, n) {
|
|
45126
|
-
const r = J9(e, t), s =
|
|
45125
|
+
const r = J9(e, t), s = Wa(r);
|
|
45127
45126
|
return Cee({
|
|
45128
45127
|
from: n.factory,
|
|
45129
45128
|
bytecodeHash: Md(
|
|
@@ -45592,7 +45591,7 @@ function fse(e) {
|
|
|
45592
45591
|
function tD(e) {
|
|
45593
45592
|
return e !== void 0 && e !== "" && e !== "0" && e !== "0x" && e !== "0x0" && e !== "0x00";
|
|
45594
45593
|
}
|
|
45595
|
-
function
|
|
45594
|
+
function ko(e) {
|
|
45596
45595
|
return tD(e);
|
|
45597
45596
|
}
|
|
45598
45597
|
var it = /* @__PURE__ */ ((e) => (e.EXACT_INPUT = "EXACT_INPUT", e.EXACT_OUTPUT = "EXACT_OUTPUT", e))(it || {});
|
|
@@ -45615,7 +45614,7 @@ function pse(e, t) {
|
|
|
45615
45614
|
function nD() {
|
|
45616
45615
|
return fa("testnet") === "true";
|
|
45617
45616
|
}
|
|
45618
|
-
async function
|
|
45617
|
+
async function Ga({
|
|
45619
45618
|
account: e,
|
|
45620
45619
|
tokenAddress: t,
|
|
45621
45620
|
depositAmount: n,
|
|
@@ -45625,7 +45624,7 @@ async function za({
|
|
|
45625
45624
|
let s;
|
|
45626
45625
|
t === Se ? s = await r.getBalance({ address: e.address }) : s = await r.readContract({
|
|
45627
45626
|
address: t,
|
|
45628
|
-
abi:
|
|
45627
|
+
abi: Ka,
|
|
45629
45628
|
functionName: "balanceOf",
|
|
45630
45629
|
args: [e.address]
|
|
45631
45630
|
});
|
|
@@ -45639,7 +45638,7 @@ async function za({
|
|
|
45639
45638
|
else {
|
|
45640
45639
|
const d = await r.readContract({
|
|
45641
45640
|
address: t,
|
|
45642
|
-
abi:
|
|
45641
|
+
abi: Ka,
|
|
45643
45642
|
functionName: "decimals"
|
|
45644
45643
|
});
|
|
45645
45644
|
if (!d)
|
|
@@ -45684,7 +45683,7 @@ async function gse(e, t) {
|
|
|
45684
45683
|
}
|
|
45685
45684
|
}
|
|
45686
45685
|
async function sD(e, t, n, r, s, i, a, o, c, l, d, f, h, p, g, m) {
|
|
45687
|
-
const b =
|
|
45686
|
+
const b = ko(c), w = p ? rD(p) : mse(g), A = await gse(
|
|
45688
45687
|
e,
|
|
45689
45688
|
t
|
|
45690
45689
|
), x = m === !0 || w || A;
|
|
@@ -45752,7 +45751,7 @@ async function Gu(e, t, n, r) {
|
|
|
45752
45751
|
if (!e) return "0";
|
|
45753
45752
|
const s = typeof e == "string" ? parseFloat(e) : e;
|
|
45754
45753
|
if (s === 0) return "0";
|
|
45755
|
-
const i = await
|
|
45754
|
+
const i = await mo(n, t, r);
|
|
45756
45755
|
if (!i?.decimals)
|
|
45757
45756
|
throw new Error(
|
|
45758
45757
|
`Token decimals not found for token ${t} on chain ${n}`
|
|
@@ -45826,7 +45825,7 @@ async function xse(e, t, n) {
|
|
|
45826
45825
|
}
|
|
45827
45826
|
const I = r.provider?.quoteProviderFee;
|
|
45828
45827
|
if ((d > 0 || I !== void 0) && s !== void 0) {
|
|
45829
|
-
const R = r.feeTokenAddress || Se, O = typeof s == "bigint" ? Number(s) : s, F = await
|
|
45828
|
+
const R = r.feeTokenAddress || Se, O = typeof s == "bigint" ? Number(s) : s, F = await mo(
|
|
45830
45829
|
O,
|
|
45831
45830
|
R,
|
|
45832
45831
|
t
|
|
@@ -45850,7 +45849,7 @@ async function xse(e, t, n) {
|
|
|
45850
45849
|
}
|
|
45851
45850
|
const C = r.provider?.trailsFee;
|
|
45852
45851
|
if ((f > 0 || C !== void 0) && s !== void 0) {
|
|
45853
|
-
const R = r.feeTokenAddress || Se, O = typeof s == "bigint" ? Number(s) : s, F = await
|
|
45852
|
+
const R = r.feeTokenAddress || Se, O = typeof s == "bigint" ? Number(s) : s, F = await mo(
|
|
45854
45853
|
O,
|
|
45855
45854
|
R,
|
|
45856
45855
|
t
|
|
@@ -45966,10 +45965,10 @@ async function ch({
|
|
|
45966
45965
|
throw new Error("Destination chain id is required");
|
|
45967
45966
|
if (!f && s === i && (f = d), !f && s === i && (f = d), !f)
|
|
45968
45967
|
throw new Error("Destination token address is required");
|
|
45969
|
-
const R = await
|
|
45968
|
+
const R = await mo(s, d, {
|
|
45970
45969
|
trailsApiKey: C,
|
|
45971
45970
|
trailsApiUrl: E
|
|
45972
|
-
}), O = await
|
|
45971
|
+
}), O = await mo(
|
|
45973
45972
|
i,
|
|
45974
45973
|
f,
|
|
45975
45974
|
{
|
|
@@ -46024,7 +46023,7 @@ async function ch({
|
|
|
46024
46023
|
})
|
|
46025
46024
|
), ee = mt(
|
|
46026
46025
|
Q
|
|
46027
|
-
), J =
|
|
46026
|
+
), J = ko(r), X = nr(F.id);
|
|
46028
46027
|
let te = 0, ne = "0", ae = "0", ge = "0";
|
|
46029
46028
|
try {
|
|
46030
46029
|
if (x) {
|
|
@@ -46372,11 +46371,11 @@ function Lv(e, { includeName: t = !1 } = {}) {
|
|
|
46372
46371
|
function Ose(e, { includeName: t }) {
|
|
46373
46372
|
return e.type.startsWith("tuple") ? `(${Lv(e.components, { includeName: t })})${e.type.slice(5)}` : e.type + (t && e.name ? ` ${e.name}` : "");
|
|
46374
46373
|
}
|
|
46375
|
-
function
|
|
46374
|
+
function Uo(e, { strict: t = !0 } = {}) {
|
|
46376
46375
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
46377
46376
|
}
|
|
46378
46377
|
function mn(e) {
|
|
46379
|
-
return
|
|
46378
|
+
return Uo(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
46380
46379
|
}
|
|
46381
46380
|
const oD = "2.40.0";
|
|
46382
46381
|
let nm = {
|
|
@@ -46726,7 +46725,7 @@ class zse extends ue {
|
|
|
46726
46725
|
super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
46727
46726
|
}
|
|
46728
46727
|
}
|
|
46729
|
-
function
|
|
46728
|
+
function Eo(e, { dir: t = "left" } = {}) {
|
|
46730
46729
|
let n = typeof e == "string" ? e.replace("0x", "") : e, r = 0;
|
|
46731
46730
|
for (let s = 0; s < n.length - 1 && n[t === "left" ? s : n.length - s - 1].toString() === "0"; s++)
|
|
46732
46731
|
r++;
|
|
@@ -46748,7 +46747,7 @@ function Pi(e, t = {}) {
|
|
|
46748
46747
|
const s = (e.length - 2) / 2, i = (1n << BigInt(s) * 8n - 1n) - 1n;
|
|
46749
46748
|
return r <= i ? r : r - BigInt(`0x${"f".padStart(s * 2, "f")}`) - 1n;
|
|
46750
46749
|
}
|
|
46751
|
-
function
|
|
46750
|
+
function To(e, t = {}) {
|
|
46752
46751
|
return Number(Pi(e, t));
|
|
46753
46752
|
}
|
|
46754
46753
|
const qse = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
@@ -46791,7 +46790,7 @@ function Fd(e, t = {}) {
|
|
|
46791
46790
|
}
|
|
46792
46791
|
const Qse = /* @__PURE__ */ new TextEncoder();
|
|
46793
46792
|
function Fv(e, t = {}) {
|
|
46794
|
-
return typeof e == "number" || typeof e == "bigint" ? Xse(e, t) : typeof e == "boolean" ? Yse(e, t) :
|
|
46793
|
+
return typeof e == "number" || typeof e == "bigint" ? Xse(e, t) : typeof e == "boolean" ? Yse(e, t) : Uo(e) ? ds(e, t) : pD(e, t);
|
|
46795
46794
|
}
|
|
46796
46795
|
function Yse(e, t = {}) {
|
|
46797
46796
|
const n = new Uint8Array(1);
|
|
@@ -46836,7 +46835,7 @@ function pD(e, t = {}) {
|
|
|
46836
46835
|
return typeof t.size == "number" ? (Xs(n, { size: t.size }), dr(n, { dir: "right", size: t.size })) : n;
|
|
46837
46836
|
}
|
|
46838
46837
|
function fn(e, t) {
|
|
46839
|
-
const n = t || "hex", r = mv(
|
|
46838
|
+
const n = t || "hex", r = mv(Uo(e, { strict: !1 }) ? Fv(e) : e);
|
|
46840
46839
|
return n === "bytes" ? r : ka(r);
|
|
46841
46840
|
}
|
|
46842
46841
|
class $v extends Map {
|
|
@@ -47022,7 +47021,7 @@ function Vv(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
|
47022
47021
|
return n.bytes = e, n.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), n.positionReadCount = /* @__PURE__ */ new Map(), n.recursiveReadLimit = t, n;
|
|
47023
47022
|
}
|
|
47024
47023
|
function $d(e, t, n, { strict: r } = {}) {
|
|
47025
|
-
return
|
|
47024
|
+
return Uo(e, { strict: !1 }) ? nie(e, t, n, {
|
|
47026
47025
|
strict: r
|
|
47027
47026
|
}) : yD(e, t, n, {
|
|
47028
47027
|
strict: r
|
|
@@ -47061,18 +47060,18 @@ function rie(e, t = {}) {
|
|
|
47061
47060
|
}
|
|
47062
47061
|
function sie(e, t = {}) {
|
|
47063
47062
|
let n = e;
|
|
47064
|
-
if (typeof t.size < "u" && (Xs(n, { size: t.size }), n =
|
|
47063
|
+
if (typeof t.size < "u" && (Xs(n, { size: t.size }), n = Eo(n)), n.length > 1 || n[0] > 1)
|
|
47065
47064
|
throw new Gse(n);
|
|
47066
47065
|
return !!n[0];
|
|
47067
47066
|
}
|
|
47068
47067
|
function xi(e, t = {}) {
|
|
47069
47068
|
typeof t.size < "u" && Xs(e, { size: t.size });
|
|
47070
47069
|
const n = rr(e, t);
|
|
47071
|
-
return
|
|
47070
|
+
return To(n, t);
|
|
47072
47071
|
}
|
|
47073
47072
|
function iie(e, t = {}) {
|
|
47074
47073
|
let n = e;
|
|
47075
|
-
return typeof t.size < "u" && (Xs(n, { size: t.size }), n =
|
|
47074
|
+
return typeof t.size < "u" && (Xs(n, { size: t.size }), n = Eo(n, { dir: "right" })), new TextDecoder().decode(n);
|
|
47076
47075
|
}
|
|
47077
47076
|
function Ir(e) {
|
|
47078
47077
|
return typeof e[0] == "string" ? $i(e) : aie(e);
|
|
@@ -47408,7 +47407,7 @@ function kie(e, { staticPosition: t }) {
|
|
|
47408
47407
|
const s = xi(e.readBytes(32));
|
|
47409
47408
|
if (s === 0)
|
|
47410
47409
|
return e.setPosition(t + 32), ["", 32];
|
|
47411
|
-
const i = e.readBytes(s, 32), a = iie(
|
|
47410
|
+
const i = e.readBytes(s, 32), a = iie(Eo(i));
|
|
47412
47411
|
return e.setPosition(t + 32), [a, 32];
|
|
47413
47412
|
}
|
|
47414
47413
|
function _d(e) {
|
|
@@ -47800,7 +47799,7 @@ function eae(e, t = {}) {
|
|
|
47800
47799
|
throw new hl({ signature: e, type: "function" });
|
|
47801
47800
|
const r = ws(n.parameters), s = [], i = r.length;
|
|
47802
47801
|
for (let o = 0; o < i; o++)
|
|
47803
|
-
s.push(
|
|
47802
|
+
s.push(Ao(r[o], {
|
|
47804
47803
|
modifiers: Uy,
|
|
47805
47804
|
structs: t,
|
|
47806
47805
|
type: "function"
|
|
@@ -47809,7 +47808,7 @@ function eae(e, t = {}) {
|
|
|
47809
47808
|
if (n.returns) {
|
|
47810
47809
|
const o = ws(n.returns), c = o.length;
|
|
47811
47810
|
for (let l = 0; l < c; l++)
|
|
47812
|
-
a.push(
|
|
47811
|
+
a.push(Ao(o[l], {
|
|
47813
47812
|
modifiers: Uy,
|
|
47814
47813
|
structs: t,
|
|
47815
47814
|
type: "function"
|
|
@@ -47829,7 +47828,7 @@ function tae(e, t = {}) {
|
|
|
47829
47828
|
throw new hl({ signature: e, type: "event" });
|
|
47830
47829
|
const r = ws(n.parameters), s = [], i = r.length;
|
|
47831
47830
|
for (let a = 0; a < i; a++)
|
|
47832
|
-
s.push(
|
|
47831
|
+
s.push(Ao(r[a], {
|
|
47833
47832
|
modifiers: _ie,
|
|
47834
47833
|
structs: t,
|
|
47835
47834
|
type: "event"
|
|
@@ -47842,7 +47841,7 @@ function nae(e, t = {}) {
|
|
|
47842
47841
|
throw new hl({ signature: e, type: "error" });
|
|
47843
47842
|
const r = ws(n.parameters), s = [], i = r.length;
|
|
47844
47843
|
for (let a = 0; a < i; a++)
|
|
47845
|
-
s.push(
|
|
47844
|
+
s.push(Ao(r[a], { structs: t, type: "error" }));
|
|
47846
47845
|
return { name: n.name, type: "error", inputs: s };
|
|
47847
47846
|
}
|
|
47848
47847
|
function rae(e, t = {}) {
|
|
@@ -47851,7 +47850,7 @@ function rae(e, t = {}) {
|
|
|
47851
47850
|
throw new hl({ signature: e, type: "constructor" });
|
|
47852
47851
|
const r = ws(n.parameters), s = [], i = r.length;
|
|
47853
47852
|
for (let a = 0; a < i; a++)
|
|
47854
|
-
s.push(
|
|
47853
|
+
s.push(Ao(r[a], { structs: t, type: "constructor" }));
|
|
47855
47854
|
return {
|
|
47856
47855
|
type: "constructor",
|
|
47857
47856
|
stateMutability: n.stateMutability ?? "nonpayable",
|
|
@@ -47868,7 +47867,7 @@ function sae(e) {
|
|
|
47868
47867
|
};
|
|
47869
47868
|
}
|
|
47870
47869
|
const iae = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, aae = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, oae = /^u?int$/;
|
|
47871
|
-
function
|
|
47870
|
+
function Ao(e, t) {
|
|
47872
47871
|
const n = Zie(e, t?.type, t?.structs);
|
|
47873
47872
|
if (im.has(n))
|
|
47874
47873
|
return im.get(n);
|
|
@@ -47883,7 +47882,7 @@ function Io(e, t) {
|
|
|
47883
47882
|
c = "tuple";
|
|
47884
47883
|
const f = ws(s.type), h = [], p = f.length;
|
|
47885
47884
|
for (let g = 0; g < p; g++)
|
|
47886
|
-
h.push(
|
|
47885
|
+
h.push(Ao(f[g], { structs: o }));
|
|
47887
47886
|
l = { components: h };
|
|
47888
47887
|
} else if (s.type in o)
|
|
47889
47888
|
c = "tuple", l = { components: o[s.type] };
|
|
@@ -47960,7 +47959,7 @@ function uae(e) {
|
|
|
47960
47959
|
const g = l[h].trim();
|
|
47961
47960
|
if (!g)
|
|
47962
47961
|
continue;
|
|
47963
|
-
const m =
|
|
47962
|
+
const m = Ao(g, {
|
|
47964
47963
|
type: "struct"
|
|
47965
47964
|
});
|
|
47966
47965
|
d.push(m);
|
|
@@ -48046,7 +48045,7 @@ function RD(e) {
|
|
|
48046
48045
|
}
|
|
48047
48046
|
const mae = RD, zv = (e) => $d(RD(e), 0, 4);
|
|
48048
48047
|
function qv(e) {
|
|
48049
|
-
const { abi: t, args: n = [], name: r } = e, s =
|
|
48048
|
+
const { abi: t, args: n = [], name: r } = e, s = Uo(r, { strict: !1 }), i = t.filter((o) => s ? o.type === "function" ? zv(o) === r : o.type === "event" ? mae(o) === r : !1 : "name" in o && o.name === r);
|
|
48050
48049
|
if (i.length === 0)
|
|
48051
48050
|
return;
|
|
48052
48051
|
if (i.length === 1)
|
|
@@ -48853,7 +48852,7 @@ Object.defineProperty(cc, "nodeMessage", {
|
|
|
48853
48852
|
writable: !0,
|
|
48854
48853
|
value: /execution reverted/
|
|
48855
48854
|
});
|
|
48856
|
-
class
|
|
48855
|
+
class Io extends ue {
|
|
48857
48856
|
constructor({ cause: t, maxFeePerGas: n } = {}) {
|
|
48858
48857
|
super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${ki(n)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
48859
48858
|
cause: t,
|
|
@@ -48861,7 +48860,7 @@ class So extends ue {
|
|
|
48861
48860
|
});
|
|
48862
48861
|
}
|
|
48863
48862
|
}
|
|
48864
|
-
Object.defineProperty(
|
|
48863
|
+
Object.defineProperty(Io, "nodeMessage", {
|
|
48865
48864
|
enumerable: !0,
|
|
48866
48865
|
configurable: !0,
|
|
48867
48866
|
writable: !0,
|
|
@@ -49020,7 +49019,7 @@ function jae(e, t) {
|
|
|
49020
49019
|
}) : cc.nodeMessage.test(n) ? new cc({
|
|
49021
49020
|
cause: e,
|
|
49022
49021
|
message: e.details
|
|
49023
|
-
}) :
|
|
49022
|
+
}) : Io.nodeMessage.test(n) ? new Io({
|
|
49024
49023
|
cause: e,
|
|
49025
49024
|
maxFeePerGas: t?.maxFeePerGas
|
|
49026
49025
|
}) : Fy.nodeMessage.test(n) ? new Fy({
|
|
@@ -49161,7 +49160,7 @@ function Xae(e) {
|
|
|
49161
49160
|
if (s && !Kn(s))
|
|
49162
49161
|
throw new Cr({ address: s });
|
|
49163
49162
|
if (n && n > z0)
|
|
49164
|
-
throw new
|
|
49163
|
+
throw new Io({ maxFeePerGas: n });
|
|
49165
49164
|
if (r && n && r > n)
|
|
49166
49165
|
throw new Vd({ maxFeePerGas: n, maxPriorityFeePerGas: r });
|
|
49167
49166
|
}
|
|
@@ -49222,7 +49221,7 @@ async function QD(e, t) {
|
|
|
49222
49221
|
});
|
|
49223
49222
|
return _ === "0x" ? { data: void 0 } : { data: _ };
|
|
49224
49223
|
} catch (j) {
|
|
49225
|
-
const $ = toe(j), { offchainLookup: P, offchainLookupSignature: W } = await import("./ccip-
|
|
49224
|
+
const $ = toe(j), { offchainLookup: P, offchainLookupSignature: W } = await import("./ccip-ru_Yzdas.js");
|
|
49226
49225
|
if (e.ccipRead !== !1 && $?.slice(0, 10) === W && T)
|
|
49227
49226
|
return { data: await P(e, { data: $, to: T }) };
|
|
49228
49227
|
throw F && $?.slice(0, 10) === "0x101bb98d" ? new Oae({ factory: h }) : Wae(j, {
|
|
@@ -50152,7 +50151,7 @@ function poe(e, t) {
|
|
|
50152
50151
|
throw new Cr({ address: t });
|
|
50153
50152
|
return e.toLowerCase() === t.toLowerCase();
|
|
50154
50153
|
}
|
|
50155
|
-
function
|
|
50154
|
+
function So(e, t = "hex") {
|
|
50156
50155
|
const n = aU(e), r = Vv(new Uint8Array(n.length));
|
|
50157
50156
|
return n.encode(r), t === "hex" ? rr(r.bytes) : r.bytes;
|
|
50158
50157
|
}
|
|
@@ -50193,7 +50192,7 @@ function oU(e) {
|
|
|
50193
50192
|
function yoe(e) {
|
|
50194
50193
|
const { chainId: t, nonce: n, to: r } = e, s = e.contractAddress ?? e.address, i = fn($i([
|
|
50195
50194
|
"0x05",
|
|
50196
|
-
|
|
50195
|
+
So([
|
|
50197
50196
|
t ? Ae(t) : "0x",
|
|
50198
50197
|
s,
|
|
50199
50198
|
n ? Ae(n) : "0x"
|
|
@@ -50216,7 +50215,7 @@ function lU(e) {
|
|
|
50216
50215
|
return n === "bytes" ? i : i.map((a) => rr(a));
|
|
50217
50216
|
}
|
|
50218
50217
|
function boe(e, t) {
|
|
50219
|
-
return Aw(
|
|
50218
|
+
return Aw(Uo(e, { strict: !1 }) ? Fv(e) : e);
|
|
50220
50219
|
}
|
|
50221
50220
|
function woe(e) {
|
|
50222
50221
|
const { commitment: t, version: n = 1 } = e, r = e.to ?? (typeof t == "string" ? "hex" : "bytes"), s = boe(t);
|
|
@@ -50321,7 +50320,7 @@ function Soe(e) {
|
|
|
50321
50320
|
if (t.length === 0)
|
|
50322
50321
|
throw new hU();
|
|
50323
50322
|
for (const n of t) {
|
|
50324
|
-
const r = mn(n), s =
|
|
50323
|
+
const r = mn(n), s = To($d(n, 0, 1));
|
|
50325
50324
|
if (r !== 32)
|
|
50326
50325
|
throw new koe({ hash: n, size: r });
|
|
50327
50326
|
if (s !== fU)
|
|
@@ -50340,7 +50339,7 @@ function Yv(e) {
|
|
|
50340
50339
|
if (s && !Kn(s))
|
|
50341
50340
|
throw new Cr({ address: s });
|
|
50342
50341
|
if (r && r > z0)
|
|
50343
|
-
throw new
|
|
50342
|
+
throw new Io({ maxFeePerGas: r });
|
|
50344
50343
|
if (n && r && n > r)
|
|
50345
50344
|
throw new Vd({ maxFeePerGas: r, maxPriorityFeePerGas: n });
|
|
50346
50345
|
}
|
|
@@ -50353,7 +50352,7 @@ function Coe(e) {
|
|
|
50353
50352
|
if (n || s)
|
|
50354
50353
|
throw new ue("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
50355
50354
|
if (r && r > z0)
|
|
50356
|
-
throw new
|
|
50355
|
+
throw new Io({ maxFeePerGas: r });
|
|
50357
50356
|
}
|
|
50358
50357
|
function Noe(e) {
|
|
50359
50358
|
const { chainId: t, maxPriorityFeePerGas: n, gasPrice: r, maxFeePerGas: s, to: i } = e;
|
|
@@ -50364,7 +50363,7 @@ function Noe(e) {
|
|
|
50364
50363
|
if (n || s)
|
|
50365
50364
|
throw new ue("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
50366
50365
|
if (r && r > z0)
|
|
50367
|
-
throw new
|
|
50366
|
+
throw new Io({ maxFeePerGas: r });
|
|
50368
50367
|
}
|
|
50369
50368
|
function Poe(e) {
|
|
50370
50369
|
if (e.type)
|
|
@@ -50404,7 +50403,7 @@ function Roe(e, t) {
|
|
|
50404
50403
|
const h = q0(d), p = Boe(n);
|
|
50405
50404
|
return $i([
|
|
50406
50405
|
"0x04",
|
|
50407
|
-
|
|
50406
|
+
So([
|
|
50408
50407
|
Ae(r),
|
|
50409
50408
|
i ? Ae(i) : "0x",
|
|
50410
50409
|
l ? Ae(l) : "0x",
|
|
@@ -50457,7 +50456,7 @@ function Moe(e, t) {
|
|
|
50457
50456
|
return $i([
|
|
50458
50457
|
"0x03",
|
|
50459
50458
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
50460
|
-
|
|
50459
|
+
So(p ? [m, b, w, A] : m)
|
|
50461
50460
|
]);
|
|
50462
50461
|
}
|
|
50463
50462
|
function Doe(e, t) {
|
|
@@ -50477,7 +50476,7 @@ function Doe(e, t) {
|
|
|
50477
50476
|
];
|
|
50478
50477
|
return $i([
|
|
50479
50478
|
"0x02",
|
|
50480
|
-
|
|
50479
|
+
So(h)
|
|
50481
50480
|
]);
|
|
50482
50481
|
}
|
|
50483
50482
|
function Uoe(e, t) {
|
|
@@ -50496,7 +50495,7 @@ function Uoe(e, t) {
|
|
|
50496
50495
|
];
|
|
50497
50496
|
return $i([
|
|
50498
50497
|
"0x01",
|
|
50499
|
-
|
|
50498
|
+
So(f)
|
|
50500
50499
|
]);
|
|
50501
50500
|
}
|
|
50502
50501
|
function Loe(e, t) {
|
|
@@ -50520,7 +50519,7 @@ function Loe(e, t) {
|
|
|
50520
50519
|
if (t.v !== p)
|
|
50521
50520
|
throw new Iae({ v: t.v });
|
|
50522
50521
|
return p;
|
|
50523
|
-
})(), f =
|
|
50522
|
+
})(), f = Eo(t.r), h = Eo(t.s);
|
|
50524
50523
|
l = [
|
|
50525
50524
|
...l,
|
|
50526
50525
|
Ae(d),
|
|
@@ -50533,7 +50532,7 @@ function Loe(e, t) {
|
|
|
50533
50532
|
"0x",
|
|
50534
50533
|
"0x"
|
|
50535
50534
|
]);
|
|
50536
|
-
return
|
|
50535
|
+
return So(l);
|
|
50537
50536
|
}
|
|
50538
50537
|
function bu(e, t) {
|
|
50539
50538
|
const n = t ?? e, { v: r, yParity: s } = n;
|
|
@@ -50543,7 +50542,7 @@ function bu(e, t) {
|
|
|
50543
50542
|
return [];
|
|
50544
50543
|
if (typeof r > "u" && typeof s > "u")
|
|
50545
50544
|
return [];
|
|
50546
|
-
const i =
|
|
50545
|
+
const i = Eo(n.r), a = Eo(n.s);
|
|
50547
50546
|
return [typeof s == "number" ? s ? Ae(1) : "0x" : r === 0n ? "0x" : r === 1n ? Ae(1) : r === 27n ? "0x" : Ae(1), i === "0x00" ? "0x" : i, a === "0x00" ? "0x" : a];
|
|
50548
50547
|
}
|
|
50549
50548
|
function Boe(e) {
|
|
@@ -50576,13 +50575,13 @@ function Foe(e, t) {
|
|
|
50576
50575
|
...e,
|
|
50577
50576
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
50578
50577
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
50579
|
-
chainId: e.chainId ?
|
|
50578
|
+
chainId: e.chainId ? To(e.chainId) : void 0,
|
|
50580
50579
|
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
50581
50580
|
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
50582
50581
|
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
50583
50582
|
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
50584
50583
|
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
50585
|
-
nonce: e.nonce ?
|
|
50584
|
+
nonce: e.nonce ? To(e.nonce) : void 0,
|
|
50586
50585
|
to: e.to ? e.to : null,
|
|
50587
50586
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
50588
50587
|
type: e.type ? pU[e.type] : void 0,
|
|
@@ -50658,7 +50657,7 @@ function joe(e, t) {
|
|
|
50658
50657
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
50659
50658
|
logs: e.logs ? e.logs.map((r) => mU(r)) : null,
|
|
50660
50659
|
to: e.to ? e.to : null,
|
|
50661
|
-
transactionIndex: e.transactionIndex ?
|
|
50660
|
+
transactionIndex: e.transactionIndex ? To(e.transactionIndex) : null,
|
|
50662
50661
|
status: e.status ? Voe[e.status] : null,
|
|
50663
50662
|
type: e.type ? pU[e.type] || e.type : null
|
|
50664
50663
|
};
|
|
@@ -50674,7 +50673,7 @@ async function Woe(e, { address: t, blockTag: n = "latest", blockNumber: r }) {
|
|
|
50674
50673
|
}, {
|
|
50675
50674
|
dedupe: !!r
|
|
50676
50675
|
});
|
|
50677
|
-
return
|
|
50676
|
+
return To(s);
|
|
50678
50677
|
}
|
|
50679
50678
|
function Hoe(e) {
|
|
50680
50679
|
const { source: t } = e, n = /* @__PURE__ */ new Map(), r = new $v(8192), s = /* @__PURE__ */ new Map(), i = ({ address: a, chainId: o }) => `${a}.${o}`;
|
|
@@ -51005,7 +51004,7 @@ let dm = !1;
|
|
|
51005
51004
|
async function wu({ hash: e, privateKey: t, to: n = "object" }) {
|
|
51006
51005
|
const { r, s, recovery: i } = N0.sign(e.slice(2), t.slice(2), {
|
|
51007
51006
|
lowS: !0,
|
|
51008
|
-
extraEntropy:
|
|
51007
|
+
extraEntropy: Uo(dm, { strict: !1 }) ? ds(dm) : dm
|
|
51009
51008
|
}), a = {
|
|
51010
51009
|
r: Ae(r, { size: 32 }),
|
|
51011
51010
|
s: Ae(s, { size: 32 }),
|
|
@@ -51344,7 +51343,7 @@ Object.defineProperty(ib, "message", {
|
|
|
51344
51343
|
writable: !0,
|
|
51345
51344
|
value: /aa93/
|
|
51346
51345
|
});
|
|
51347
|
-
class
|
|
51346
|
+
class za extends ue {
|
|
51348
51347
|
constructor({ cause: t }) {
|
|
51349
51348
|
super("Paymaster deposit for the User Operation is too low.", {
|
|
51350
51349
|
cause: t,
|
|
@@ -51356,13 +51355,13 @@ class qa extends ue {
|
|
|
51356
51355
|
});
|
|
51357
51356
|
}
|
|
51358
51357
|
}
|
|
51359
|
-
Object.defineProperty(
|
|
51358
|
+
Object.defineProperty(za, "code", {
|
|
51360
51359
|
enumerable: !0,
|
|
51361
51360
|
configurable: !0,
|
|
51362
51361
|
writable: !0,
|
|
51363
51362
|
value: -32508
|
|
51364
51363
|
});
|
|
51365
|
-
Object.defineProperty(
|
|
51364
|
+
Object.defineProperty(za, "message", {
|
|
51366
51365
|
enumerable: !0,
|
|
51367
51366
|
configurable: !0,
|
|
51368
51367
|
writable: !0,
|
|
@@ -51730,7 +51729,7 @@ class BE extends ue {
|
|
|
51730
51729
|
const lce = [
|
|
51731
51730
|
Kc,
|
|
51732
51731
|
dh,
|
|
51733
|
-
|
|
51732
|
+
za,
|
|
51734
51733
|
uh,
|
|
51735
51734
|
fh,
|
|
51736
51735
|
hh,
|
|
@@ -51805,8 +51804,8 @@ function dce(e, t) {
|
|
|
51805
51804
|
return new ib({
|
|
51806
51805
|
cause: e
|
|
51807
51806
|
});
|
|
51808
|
-
if (
|
|
51809
|
-
return new
|
|
51807
|
+
if (za.message.test(n))
|
|
51808
|
+
return new za({
|
|
51810
51809
|
cause: e
|
|
51811
51810
|
});
|
|
51812
51811
|
if (ab.message.test(n))
|
|
@@ -51868,8 +51867,8 @@ function dce(e, t) {
|
|
|
51868
51867
|
return new dh({
|
|
51869
51868
|
cause: e
|
|
51870
51869
|
});
|
|
51871
|
-
if (r.code ===
|
|
51872
|
-
return new
|
|
51870
|
+
if (r.code === za.code)
|
|
51871
|
+
return new za({
|
|
51873
51872
|
cause: e
|
|
51874
51873
|
});
|
|
51875
51874
|
if (r.code === uh.code)
|
|
@@ -52101,7 +52100,7 @@ async function Q0(e) {
|
|
|
52101
52100
|
const t = await e.request({
|
|
52102
52101
|
method: "eth_chainId"
|
|
52103
52102
|
}, { dedupe: !0 });
|
|
52104
|
-
return
|
|
52103
|
+
return To(t);
|
|
52105
52104
|
}
|
|
52106
52105
|
const um = /* @__PURE__ */ new Map(), FE = /* @__PURE__ */ new Map();
|
|
52107
52106
|
let vce = 0;
|
|
@@ -52823,7 +52822,7 @@ async function Wce({
|
|
|
52823
52822
|
}) {
|
|
52824
52823
|
return await e.readContract({
|
|
52825
52824
|
address: t,
|
|
52826
|
-
abi:
|
|
52825
|
+
abi: Ka,
|
|
52827
52826
|
functionName: "allowance",
|
|
52828
52827
|
args: [ns(n), ns(r)]
|
|
52829
52828
|
}) < s;
|
|
@@ -53089,8 +53088,8 @@ function Yce(e) {
|
|
|
53089
53088
|
if (!e.callGasLimit)
|
|
53090
53089
|
throw new Error("callGasLimit is required");
|
|
53091
53090
|
return Wd([
|
|
53092
|
-
|
|
53093
|
-
|
|
53091
|
+
so(Ic(e.verificationGasLimit), { size: 16 }),
|
|
53092
|
+
so(Ic(e.callGasLimit), { size: 16 })
|
|
53094
53093
|
]);
|
|
53095
53094
|
}
|
|
53096
53095
|
function Xce(e) {
|
|
@@ -53099,13 +53098,13 @@ function Xce(e) {
|
|
|
53099
53098
|
if (!e.maxFeePerGas)
|
|
53100
53099
|
throw new Error("maxFeePerGas is required");
|
|
53101
53100
|
return Wd([
|
|
53102
|
-
|
|
53103
|
-
|
|
53101
|
+
so(Ic(e.maxPriorityFeePerGas), { size: 16 }),
|
|
53102
|
+
so(Ic(e.maxFeePerGas), { size: 16 })
|
|
53104
53103
|
]);
|
|
53105
53104
|
}
|
|
53106
53105
|
function Zce(e) {
|
|
53107
53106
|
return e.factory ? Wd([
|
|
53108
|
-
e.factory === "0x7702" ?
|
|
53107
|
+
e.factory === "0x7702" ? so(e.factory, { dir: "right", size: 20 }) : e.factory,
|
|
53109
53108
|
e.factoryData || "0x"
|
|
53110
53109
|
]) : "0x";
|
|
53111
53110
|
}
|
|
@@ -53117,8 +53116,8 @@ function Jce(e) {
|
|
|
53117
53116
|
throw new Error("paymasterPostOpGasLimit is required");
|
|
53118
53117
|
return Wd([
|
|
53119
53118
|
e.paymaster,
|
|
53120
|
-
|
|
53121
|
-
|
|
53119
|
+
so(Ic(e.paymasterVerificationGasLimit || 0n), { size: 16 }),
|
|
53120
|
+
so(Ic(e.paymasterPostOpGasLimit || 0n), { size: 16 }),
|
|
53122
53121
|
e.paymasterData || "0x"
|
|
53123
53122
|
]);
|
|
53124
53123
|
}
|
|
@@ -53764,7 +53763,7 @@ async function gle({
|
|
|
53764
53763
|
y.console.log("[trails-sdk] [GASLESS-FLOW] Intent entrypoint check:", {
|
|
53765
53764
|
chainId: a.id,
|
|
53766
53765
|
chainName: a.name,
|
|
53767
|
-
intentEntrypoint:
|
|
53766
|
+
intentEntrypoint: Qo.trailsIntentEntrypointAddress
|
|
53768
53767
|
}), y.console.log(
|
|
53769
53768
|
"[trails-sdk] Using Intent Entrypoint API flow with EIP-2162 permit signature support for gasless deposit"
|
|
53770
53769
|
), y.console.log(
|
|
@@ -53877,7 +53876,7 @@ async function gle({
|
|
|
53877
53876
|
client: w,
|
|
53878
53877
|
token: t,
|
|
53879
53878
|
account: o.address,
|
|
53880
|
-
entrypoint:
|
|
53879
|
+
entrypoint: Qo.trailsIntentEntrypointAddress,
|
|
53881
53880
|
amount: I
|
|
53882
53881
|
// Check if we have enough allowance for this specific transaction
|
|
53883
53882
|
}), O = Rt(E), F = R && !O;
|
|
@@ -53914,7 +53913,7 @@ async function gle({
|
|
|
53914
53913
|
publicClient: w,
|
|
53915
53914
|
walletClient: i,
|
|
53916
53915
|
signer: o.address,
|
|
53917
|
-
spender:
|
|
53916
|
+
spender: Qo.trailsIntentEntrypointAddress,
|
|
53918
53917
|
tokenAddress: t,
|
|
53919
53918
|
amount: N,
|
|
53920
53919
|
// Infinite approval
|
|
@@ -53932,7 +53931,7 @@ async function gle({
|
|
|
53932
53931
|
const $ = await Hce({
|
|
53933
53932
|
publicClient: w,
|
|
53934
53933
|
userAddress: o.address,
|
|
53935
|
-
intentEntrypoint:
|
|
53934
|
+
intentEntrypoint: Qo.trailsIntentEntrypointAddress
|
|
53936
53935
|
});
|
|
53937
53936
|
y.console.log("[trails-sdk] User nonce:", $.toString()), y.console.log("[trails-sdk] Requesting intent signature via EIP-712");
|
|
53938
53937
|
const P = l?.feeCollectorAddress;
|
|
@@ -53955,7 +53954,7 @@ async function gle({
|
|
|
53955
53954
|
intentAddress: r,
|
|
53956
53955
|
deadline: BigInt(A),
|
|
53957
53956
|
chainId: b,
|
|
53958
|
-
contractAddress:
|
|
53957
|
+
contractAddress: Qo.trailsIntentEntrypointAddress,
|
|
53959
53958
|
nonce: $,
|
|
53960
53959
|
feeAmount: BigInt(C?.amount || "0"),
|
|
53961
53960
|
feeCollector: P
|
|
@@ -54078,7 +54077,7 @@ async function ble({
|
|
|
54078
54077
|
const k = !1;
|
|
54079
54078
|
ks("0.00005", 18).toString(), i === 137 && ks("1.5", 18).toString(), y.console.log("[trails-sdk] needsNativeFee", k);
|
|
54080
54079
|
const I = w ? Wl({
|
|
54081
|
-
hasCustomCalldata:
|
|
54080
|
+
hasCustomCalldata: ko(x),
|
|
54082
54081
|
recipient: A || d,
|
|
54083
54082
|
effectiveOriginTokenAddress: e,
|
|
54084
54083
|
destinationCalldata: x,
|
|
@@ -54092,7 +54091,7 @@ async function ble({
|
|
|
54092
54091
|
fee: c,
|
|
54093
54092
|
originChainId: i,
|
|
54094
54093
|
chain: a
|
|
54095
|
-
}), C = w ?
|
|
54094
|
+
}), C = w ? ko(x) : !1;
|
|
54096
54095
|
if (w && !Rt(e) && C && !l && A) {
|
|
54097
54096
|
const O = [
|
|
54098
54097
|
{
|
|
@@ -54415,7 +54414,7 @@ async function wle({
|
|
|
54415
54414
|
const S = nD() ? Iv(h) : h, N = S.id, B = t, _ = nr(S.id);
|
|
54416
54415
|
let G = !1;
|
|
54417
54416
|
if (!(k === "qr-code" || k === "exchange")) {
|
|
54418
|
-
const { hasEnoughBalance: be } = await
|
|
54417
|
+
const { hasEnoughBalance: be } = await Ga({
|
|
54419
54418
|
account: f,
|
|
54420
54419
|
tokenAddress: t,
|
|
54421
54420
|
depositAmount: i,
|
|
@@ -54423,7 +54422,7 @@ async function wle({
|
|
|
54423
54422
|
});
|
|
54424
54423
|
be || (G = !0);
|
|
54425
54424
|
}
|
|
54426
|
-
const Q =
|
|
54425
|
+
const Q = ko(a);
|
|
54427
54426
|
if (Rt(B)) {
|
|
54428
54427
|
y.console.log(
|
|
54429
54428
|
"[trails-sdk] Same-chain same-token native transfer detected, using direct transfer (no intents)",
|
|
@@ -54489,7 +54488,7 @@ async function wle({
|
|
|
54489
54488
|
onOriginSend: De
|
|
54490
54489
|
}) => {
|
|
54491
54490
|
try {
|
|
54492
|
-
const { hasEnoughBalance: xe, balanceError: we } = await
|
|
54491
|
+
const { hasEnoughBalance: xe, balanceError: we } = await Ga({
|
|
54493
54492
|
account: f,
|
|
54494
54493
|
tokenAddress: B,
|
|
54495
54494
|
depositAmount: i,
|
|
@@ -54768,7 +54767,7 @@ async function wle({
|
|
|
54768
54767
|
}
|
|
54769
54768
|
);
|
|
54770
54769
|
try {
|
|
54771
|
-
const { hasEnoughBalance: xe, balanceError: we } = await
|
|
54770
|
+
const { hasEnoughBalance: xe, balanceError: we } = await Ga({
|
|
54772
54771
|
account: f,
|
|
54773
54772
|
tokenAddress: B,
|
|
54774
54773
|
depositAmount: i,
|
|
@@ -54781,7 +54780,7 @@ async function wle({
|
|
|
54781
54780
|
), Me = na({
|
|
54782
54781
|
amount: Ee,
|
|
54783
54782
|
usdPrice: g
|
|
54784
|
-
}), ce =
|
|
54783
|
+
}), ce = ko(a);
|
|
54785
54784
|
y.console.log(
|
|
54786
54785
|
"[trails-sdk] Building same-chain same-token transaction params (intent flow):",
|
|
54787
54786
|
{
|
|
@@ -54940,7 +54939,7 @@ async function wle({
|
|
|
54940
54939
|
tokenAddress: B
|
|
54941
54940
|
}
|
|
54942
54941
|
);
|
|
54943
|
-
const Ze = await
|
|
54942
|
+
const Ze = await Ga({
|
|
54944
54943
|
account: {
|
|
54945
54944
|
address: X.originIntentAddress
|
|
54946
54945
|
},
|
|
@@ -55252,24 +55251,24 @@ async function wle({
|
|
|
55252
55251
|
}
|
|
55253
55252
|
};
|
|
55254
55253
|
}
|
|
55255
|
-
const vle =
|
|
55254
|
+
const vle = Po(
|
|
55256
55255
|
"event CallSucceeded(bytes32 _opHash, uint256 _index)"
|
|
55257
|
-
), xle =
|
|
55256
|
+
), xle = Po(
|
|
55258
55257
|
"event CallFailed(bytes32 _opHash, uint256 _index, bytes _returnData)"
|
|
55259
|
-
), kle =
|
|
55258
|
+
), kle = Po(
|
|
55260
55259
|
"event CallAborted(bytes32 _opHash, uint256 _index, bytes _returnData)"
|
|
55261
|
-
), Ele =
|
|
55260
|
+
), Ele = Po(
|
|
55262
55261
|
"event CallSkipped(bytes32 indexed deploymentId, uint256 actionIndex)"
|
|
55263
|
-
), Tle =
|
|
55262
|
+
), Tle = Po(
|
|
55264
55263
|
"event Refund(address indexed token, address indexed recipient, uint256 amount)"
|
|
55265
|
-
), Ale =
|
|
55264
|
+
), Ale = Po(
|
|
55266
55265
|
"event Sweep(address indexed token, address indexed recipient, uint256 amount)"
|
|
55267
|
-
), Ile =
|
|
55266
|
+
), Ile = Po(
|
|
55268
55267
|
"event RefundAndSweep(address indexed token, address indexed refundRecipient, uint256 refundAmount, address indexed sweepRecipient, uint256 actualRefund, uint256 remaining)"
|
|
55269
55268
|
);
|
|
55270
55269
|
function Sle(e) {
|
|
55271
55270
|
try {
|
|
55272
|
-
const t =
|
|
55271
|
+
const t = No({
|
|
55273
55272
|
abi: [vle],
|
|
55274
55273
|
data: e.data,
|
|
55275
55274
|
topics: e.topics,
|
|
@@ -55287,7 +55286,7 @@ function Sle(e) {
|
|
|
55287
55286
|
}
|
|
55288
55287
|
function Cle(e) {
|
|
55289
55288
|
try {
|
|
55290
|
-
const t =
|
|
55289
|
+
const t = No({
|
|
55291
55290
|
abi: [xle],
|
|
55292
55291
|
data: e.data,
|
|
55293
55292
|
topics: e.topics,
|
|
@@ -55306,7 +55305,7 @@ function Cle(e) {
|
|
|
55306
55305
|
}
|
|
55307
55306
|
function Nle(e) {
|
|
55308
55307
|
try {
|
|
55309
|
-
const t =
|
|
55308
|
+
const t = No({
|
|
55310
55309
|
abi: [kle],
|
|
55311
55310
|
data: e.data,
|
|
55312
55311
|
topics: e.topics,
|
|
@@ -55325,7 +55324,7 @@ function Nle(e) {
|
|
|
55325
55324
|
}
|
|
55326
55325
|
function Ple(e) {
|
|
55327
55326
|
try {
|
|
55328
|
-
const t =
|
|
55327
|
+
const t = No({
|
|
55329
55328
|
abi: [Ele],
|
|
55330
55329
|
data: e.data,
|
|
55331
55330
|
topics: e.topics,
|
|
@@ -55343,7 +55342,7 @@ function Ple(e) {
|
|
|
55343
55342
|
}
|
|
55344
55343
|
function Ole(e) {
|
|
55345
55344
|
try {
|
|
55346
|
-
const t =
|
|
55345
|
+
const t = No({
|
|
55347
55346
|
abi: [Tle],
|
|
55348
55347
|
data: e.data,
|
|
55349
55348
|
topics: e.topics,
|
|
@@ -55362,7 +55361,7 @@ function Ole(e) {
|
|
|
55362
55361
|
}
|
|
55363
55362
|
function Rle(e) {
|
|
55364
55363
|
try {
|
|
55365
|
-
const t =
|
|
55364
|
+
const t = No({
|
|
55366
55365
|
abi: [Ile],
|
|
55367
55366
|
data: e.data,
|
|
55368
55367
|
topics: e.topics,
|
|
@@ -55384,7 +55383,7 @@ function Rle(e) {
|
|
|
55384
55383
|
}
|
|
55385
55384
|
function Mle(e) {
|
|
55386
55385
|
try {
|
|
55387
|
-
const t =
|
|
55386
|
+
const t = No({
|
|
55388
55387
|
abi: [Ale],
|
|
55389
55388
|
data: e.data,
|
|
55390
55389
|
topics: e.topics,
|
|
@@ -55419,7 +55418,7 @@ function Hl(e) {
|
|
|
55419
55418
|
}
|
|
55420
55419
|
return t;
|
|
55421
55420
|
}
|
|
55422
|
-
function
|
|
55421
|
+
function qa(e) {
|
|
55423
55422
|
const t = [];
|
|
55424
55423
|
for (const n of e.logs) {
|
|
55425
55424
|
const r = Sle(n);
|
|
@@ -55587,7 +55586,7 @@ async function Dle({
|
|
|
55587
55586
|
);
|
|
55588
55587
|
let ce = !1;
|
|
55589
55588
|
if (!($ === "qr-code" || $ === "exchange")) {
|
|
55590
|
-
const { hasEnoughBalance: M } = await
|
|
55589
|
+
const { hasEnoughBalance: M } = await Ga({
|
|
55591
55590
|
account: T,
|
|
55592
55591
|
tokenAddress: n,
|
|
55593
55592
|
depositAmount: be,
|
|
@@ -55685,7 +55684,7 @@ async function Dle({
|
|
|
55685
55684
|
originTokenSymbol: o,
|
|
55686
55685
|
destinationTokenSymbol: c
|
|
55687
55686
|
})))(ne), !($ === "qr-code" || $ === "exchange")) {
|
|
55688
|
-
const { hasEnoughBalance: pe, balanceError: $e } = await
|
|
55687
|
+
const { hasEnoughBalance: pe, balanceError: $e } = await Ga({
|
|
55689
55688
|
account: T,
|
|
55690
55689
|
tokenAddress: n,
|
|
55691
55690
|
depositAmount: be,
|
|
@@ -55802,7 +55801,7 @@ async function Dle({
|
|
|
55802
55801
|
}
|
|
55803
55802
|
}
|
|
55804
55803
|
try {
|
|
55805
|
-
E[0].decodedTokenSweeperEvents = Hl(Pe), E[0].decodedGuestModuleEvents =
|
|
55804
|
+
E[0].decodedTokenSweeperEvents = Hl(Pe), E[0].decodedGuestModuleEvents = qa(Pe), E[0].refunded = E[0].decodedTokenSweeperEvents.findIndex(
|
|
55806
55805
|
($e) => $e.type === "Refund" || $e.type === "RefundAndSweep"
|
|
55807
55806
|
) !== -1, y.console.log(
|
|
55808
55807
|
"[trails-sdk] [GASLESS-FLOW] Gasless deposit events decoded",
|
|
@@ -55880,7 +55879,7 @@ async function Dle({
|
|
|
55880
55879
|
tokenAddress: n
|
|
55881
55880
|
}
|
|
55882
55881
|
);
|
|
55883
|
-
const Ge = await
|
|
55882
|
+
const Ge = await Ga({
|
|
55884
55883
|
account: {
|
|
55885
55884
|
address: fe
|
|
55886
55885
|
},
|
|
@@ -56035,7 +56034,7 @@ async function Dle({
|
|
|
56035
56034
|
E
|
|
56036
56035
|
);
|
|
56037
56036
|
try {
|
|
56038
|
-
E[0].decodedTokenSweeperEvents = Hl($e), E[0].decodedGuestModuleEvents =
|
|
56037
|
+
E[0].decodedTokenSweeperEvents = Hl($e), E[0].decodedGuestModuleEvents = qa($e), E[0].refunded = E[0].decodedTokenSweeperEvents.findIndex(
|
|
56039
56038
|
(Ge) => Ge.type === "Refund" || Ge.type === "RefundAndSweep"
|
|
56040
56039
|
) !== -1, y.console.log(
|
|
56041
56040
|
"[trails-sdk] Deposit transaction events decoded",
|
|
@@ -56102,7 +56101,7 @@ async function Dle({
|
|
|
56102
56101
|
E
|
|
56103
56102
|
));
|
|
56104
56103
|
try {
|
|
56105
|
-
E[1].decodedTokenSweeperEvents = Hl($e), E[1].decodedGuestModuleEvents =
|
|
56104
|
+
E[1].decodedTokenSweeperEvents = Hl($e), E[1].decodedGuestModuleEvents = qa($e), E[1].refunded = E[1].decodedTokenSweeperEvents.findIndex(
|
|
56106
56105
|
(Ge) => Ge.type === "Refund" || Ge.type === "RefundAndSweep"
|
|
56107
56106
|
) !== -1, y.console.log("[trails-sdk] Origin meta-tx events", {
|
|
56108
56107
|
chainId: t,
|
|
@@ -56158,7 +56157,7 @@ async function Dle({
|
|
|
56158
56157
|
E
|
|
56159
56158
|
));
|
|
56160
56159
|
try {
|
|
56161
|
-
E[2].decodedTokenSweeperEvents = Hl($e), E[2].decodedGuestModuleEvents =
|
|
56160
|
+
E[2].decodedTokenSweeperEvents = Hl($e), E[2].decodedGuestModuleEvents = qa($e), E[2].refunded = E[2].decodedTokenSweeperEvents.findIndex(
|
|
56162
56161
|
(Ge) => Ge.type === "Refund" || Ge.type === "RefundAndSweep"
|
|
56163
56162
|
) !== -1 || E[2].decodedTokenSweeperEvents.findIndex(
|
|
56164
56163
|
(Ge) => Ge.type === "Sweep"
|
|
@@ -56475,7 +56474,7 @@ async function Ule(e) {
|
|
|
56475
56474
|
throw new Error("Source token decimals not provided");
|
|
56476
56475
|
if (!x)
|
|
56477
56476
|
throw new Error("Destination token decimals not provided");
|
|
56478
|
-
let J =
|
|
56477
|
+
let J = ko(b);
|
|
56479
56478
|
const X = t.address, te = [];
|
|
56480
56479
|
if (ER(a))
|
|
56481
56480
|
throw new Error("Recipient address cannot be zero address");
|
|
@@ -56503,7 +56502,7 @@ async function Ule(e) {
|
|
|
56503
56502
|
destinationChainId: i,
|
|
56504
56503
|
originTokenAddress: n,
|
|
56505
56504
|
destinationTokenAddress: o,
|
|
56506
|
-
trailsRouterAddress:
|
|
56505
|
+
trailsRouterAddress: Qo.trailsRouterAddress
|
|
56507
56506
|
});
|
|
56508
56507
|
xe && (ne = xe.trailsRouterAddress, ae = xe.encodedCalldata);
|
|
56509
56508
|
}
|
|
@@ -56792,7 +56791,7 @@ async function WE(e, t, n, r) {
|
|
|
56792
56791
|
chainId: s.chainId || t
|
|
56793
56792
|
};
|
|
56794
56793
|
try {
|
|
56795
|
-
const i = await
|
|
56794
|
+
const i = await mo(t, e, {
|
|
56796
56795
|
trailsApiKey: r.trailsApiKey,
|
|
56797
56796
|
trailsApiUrl: r.trailsApiUrl
|
|
56798
56797
|
});
|
|
@@ -56933,7 +56932,7 @@ async function $le(e, t) {
|
|
|
56933
56932
|
hash: a
|
|
56934
56933
|
}), h = Hl(d).some(
|
|
56935
56934
|
(m) => m.type === "Refund" || m.type === "RefundAndSweep"
|
|
56936
|
-
), g =
|
|
56935
|
+
), g = qa(d).some(
|
|
56937
56936
|
(m) => m.type === "CallFailed"
|
|
56938
56937
|
);
|
|
56939
56938
|
if (h)
|
|
@@ -58167,7 +58166,7 @@ const ide = ({
|
|
|
58167
58166
|
)
|
|
58168
58167
|
] })
|
|
58169
58168
|
] });
|
|
58170
|
-
}, wb = 1e3, kc = 64, fm = kc / 2, ade = "gradient-avatar-", hm = (e, t = wb) => e % t / (wb / kc),
|
|
58169
|
+
}, wb = 1e3, kc = 64, fm = kc / 2, ade = "gradient-avatar-", hm = (e, t = wb) => e % t / (wb / kc), qo = (e, t = 0) => {
|
|
58171
58170
|
let n = 3735928559 ^ t, r = 1103547991 ^ t;
|
|
58172
58171
|
for (let s = 0; s < e.length; s++) {
|
|
58173
58172
|
const i = e.charCodeAt(s);
|
|
@@ -58179,12 +58178,12 @@ const ide = ({
|
|
|
58179
58178
|
return { hueA: r, hueB: s, hueC: i };
|
|
58180
58179
|
}, cde = (e, t) => {
|
|
58181
58180
|
const n = {
|
|
58182
|
-
a:
|
|
58183
|
-
b:
|
|
58184
|
-
c:
|
|
58185
|
-
x:
|
|
58186
|
-
y:
|
|
58187
|
-
r:
|
|
58181
|
+
a: qo(`${t}a`, 0),
|
|
58182
|
+
b: qo(`${t}b`, 1),
|
|
58183
|
+
c: qo(`${t}c`, 2),
|
|
58184
|
+
x: qo(`${t}d`, 3),
|
|
58185
|
+
y: qo(`${t}e`, 4),
|
|
58186
|
+
r: qo(`${t}f`, 5)
|
|
58188
58187
|
}, { hueA: r, hueB: s, hueC: i } = ode(n.a, n.b, n.c), a = hm(n.x), o = hm(n.y), c = kc / 10 + hm(n.r, wb * 1.5);
|
|
58189
58188
|
return {
|
|
58190
58189
|
background: {
|
|
@@ -58558,7 +58557,7 @@ async function MU(e) {
|
|
|
58558
58557
|
checkpoint: l.checkpoint.toString(),
|
|
58559
58558
|
topology: Array.isArray(l.topology) ? `Node with ${l.topology.length} items` : "SignerLeaf"
|
|
58560
58559
|
});
|
|
58561
|
-
const d = $5, f =
|
|
58560
|
+
const d = $5, f = Wa(l);
|
|
58562
58561
|
y.console.log("[refund] Image hash:", Vc(f));
|
|
58563
58562
|
const h = Ny(
|
|
58564
58563
|
t,
|
|
@@ -59198,7 +59197,7 @@ function fde({
|
|
|
59198
59197
|
const N = await K.getTransactionReceipt({
|
|
59199
59198
|
hash: P
|
|
59200
59199
|
});
|
|
59201
|
-
return N.status === "reverted" ? (y.console.log("[recover] Transaction reverted"), { status: "fail" }) :
|
|
59200
|
+
return N.status === "reverted" ? (y.console.log("[recover] Transaction reverted"), { status: "fail" }) : qa(N).some(
|
|
59202
59201
|
(G) => G.type === "CallFailed"
|
|
59203
59202
|
) ? (y.console.log(
|
|
59204
59203
|
"[recover] Found CallFailed events in transaction"
|
|
@@ -59216,7 +59215,7 @@ function fde({
|
|
|
59216
59215
|
const N = await K.getTransactionReceipt({
|
|
59217
59216
|
hash: P
|
|
59218
59217
|
});
|
|
59219
|
-
return N.status === "reverted" ? { status: "fail" } :
|
|
59218
|
+
return N.status === "reverted" ? { status: "fail" } : qa(N).some(
|
|
59220
59219
|
(G) => G.type === "CallFailed"
|
|
59221
59220
|
) ? { status: "fail" } : { status: "success" };
|
|
59222
59221
|
} catch {
|
|
@@ -60154,7 +60153,7 @@ const hde = ({ status: e }) => /* @__PURE__ */ u(
|
|
|
60154
60153
|
headerContent: "Settings",
|
|
60155
60154
|
headerContentAlign: "left",
|
|
60156
60155
|
onBack: e,
|
|
60157
|
-
rightSideContent: /* @__PURE__ */ u(
|
|
60156
|
+
rightSideContent: /* @__PURE__ */ u(Mo, { message: "Get help", children: /* @__PURE__ */ u(
|
|
60158
60157
|
"button",
|
|
60159
60158
|
{
|
|
60160
60159
|
type: "button",
|
|
@@ -60663,15 +60662,15 @@ function Zv({
|
|
|
60663
60662
|
y.console.log(
|
|
60664
60663
|
"[trails-sdk] isSenderContractOnDestination:",
|
|
60665
60664
|
Ke
|
|
60666
|
-
),
|
|
60665
|
+
), Fo(Ke);
|
|
60667
60666
|
} catch (Ke) {
|
|
60668
60667
|
y.console.error(
|
|
60669
60668
|
"[trails-sdk] Error checking if sender is contract on destination:",
|
|
60670
60669
|
Ke
|
|
60671
|
-
),
|
|
60670
|
+
), Fo(!1);
|
|
60672
60671
|
}
|
|
60673
60672
|
else
|
|
60674
|
-
|
|
60673
|
+
Fo(!1);
|
|
60675
60674
|
})();
|
|
60676
60675
|
}, [
|
|
60677
60676
|
e?.address,
|
|
@@ -60825,7 +60824,7 @@ function Zv({
|
|
|
60825
60824
|
setSelectedFeeOption: Ge,
|
|
60826
60825
|
processedFeeOptions: Fn,
|
|
60827
60826
|
setFeeOptions: gl
|
|
60828
|
-
} = $R(), [J0, Aa] = Z(!1), [yl, bl] = Z(!1), [Vi,
|
|
60827
|
+
} = $R(), [J0, Aa] = Z(!1), [yl, bl] = Z(!1), [Vi, Fo] = Z(!1), { hasParam: $o } = HL(), xu = $o("dryMode", "true"), Zs = Qg({
|
|
60829
60828
|
chainId: ae?.id,
|
|
60830
60829
|
tokenSymbol: ie?.symbol
|
|
60831
60830
|
}), cn = he(() => {
|
|
@@ -61995,7 +61994,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
61995
61994
|
]
|
|
61996
61995
|
}
|
|
61997
61996
|
);
|
|
61998
|
-
return i ? /* @__PURE__ */ u(
|
|
61997
|
+
return i ? /* @__PURE__ */ u(Mo, { message: "Not enough balance to use this fee option", children: o }) : o;
|
|
61999
61998
|
}, e2 = ({
|
|
62000
61999
|
processedFeeOptions: e,
|
|
62001
62000
|
selectedFeeOption: t,
|
|
@@ -62270,7 +62269,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
62270
62269
|
/* @__PURE__ */ v("div", { className: "flex items-center space-x-2 flex-1", children: [
|
|
62271
62270
|
/* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ v("div", { className: "flex items-center space-x-2", children: [
|
|
62272
62271
|
/* @__PURE__ */ u(
|
|
62273
|
-
|
|
62272
|
+
wo,
|
|
62274
62273
|
{
|
|
62275
62274
|
ref: K,
|
|
62276
62275
|
value: P,
|
|
@@ -62465,7 +62464,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
62465
62464
|
}
|
|
62466
62465
|
),
|
|
62467
62466
|
Q && /* @__PURE__ */ u("div", { className: "mb-4", children: /* @__PURE__ */ u(
|
|
62468
|
-
|
|
62467
|
+
Do,
|
|
62469
62468
|
{
|
|
62470
62469
|
quote: Q,
|
|
62471
62470
|
showContent: !0,
|
|
@@ -62947,7 +62946,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
62947
62946
|
/* @__PURE__ */ u("div", { className: "mb-4 flex justify-between items-center", children: /* @__PURE__ */ u("div", { className: "text-sm font-medium trails-text-secondary text-left m-0", children: "Amount" }) }),
|
|
62948
62947
|
/* @__PURE__ */ v("div", { className: "flex items-center space-x-2 flex-1", children: [
|
|
62949
62948
|
/* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ u("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ u(
|
|
62950
|
-
|
|
62949
|
+
wo,
|
|
62951
62950
|
{
|
|
62952
62951
|
ref: I,
|
|
62953
62952
|
value: g,
|
|
@@ -63845,7 +63844,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
63845
63844
|
/* @__PURE__ */ v("div", { className: "flex items-center space-x-2 flex-1", children: [
|
|
63846
63845
|
/* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ v("div", { className: "flex items-center space-x-2", children: [
|
|
63847
63846
|
/* @__PURE__ */ u(
|
|
63848
|
-
|
|
63847
|
+
wo,
|
|
63849
63848
|
{
|
|
63850
63849
|
ref: Gt,
|
|
63851
63850
|
value: ne,
|
|
@@ -63946,7 +63945,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
63946
63945
|
/* @__PURE__ */ v("div", { className: "flex items-center space-x-2 flex-1", children: [
|
|
63947
63946
|
/* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ v("div", { className: "flex items-center space-x-2", children: [
|
|
63948
63947
|
/* @__PURE__ */ u(
|
|
63949
|
-
|
|
63948
|
+
wo,
|
|
63950
63949
|
{
|
|
63951
63950
|
value: X === it.EXACT_OUTPUT ? ge : me || "",
|
|
63952
63951
|
onChange: (qe) => ot(qe.target.value),
|
|
@@ -63998,7 +63997,7 @@ const Ec = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c
|
|
|
63998
63997
|
}
|
|
63999
63998
|
),
|
|
64000
63999
|
de && /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
64001
|
-
|
|
64000
|
+
Do,
|
|
64002
64001
|
{
|
|
64003
64002
|
quote: de,
|
|
64004
64003
|
showContent: !0,
|
|
@@ -64705,7 +64704,7 @@ Please ensure all required props are provided when rendering the ${t} component.
|
|
|
64705
64704
|
/* @__PURE__ */ v("div", { className: "flex items-center space-x-2 flex-1", children: [
|
|
64706
64705
|
/* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ v("div", { className: "flex items-center space-x-2", children: [
|
|
64707
64706
|
/* @__PURE__ */ u(
|
|
64708
|
-
|
|
64707
|
+
wo,
|
|
64709
64708
|
{
|
|
64710
64709
|
ref: z,
|
|
64711
64710
|
value: me?.originAmountFormatted || "",
|
|
@@ -64982,7 +64981,7 @@ Please ensure all required props are provided when rendering the ${t} component.
|
|
|
64982
64981
|
}
|
|
64983
64982
|
),
|
|
64984
64983
|
me && /* @__PURE__ */ u("div", { className: "mb-4", children: /* @__PURE__ */ u(
|
|
64985
|
-
|
|
64984
|
+
Do,
|
|
64986
64985
|
{
|
|
64987
64986
|
quote: me,
|
|
64988
64987
|
showContent: !0,
|
|
@@ -65008,14 +65007,14 @@ Please ensure all required props are provided when rendering the ${t} component.
|
|
|
65008
65007
|
) })
|
|
65009
65008
|
] });
|
|
65010
65009
|
};
|
|
65011
|
-
var
|
|
65010
|
+
var Ko = {}, pm, KE;
|
|
65012
65011
|
function jde() {
|
|
65013
65012
|
return KE || (KE = 1, pm = function() {
|
|
65014
65013
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
65015
65014
|
}), pm;
|
|
65016
65015
|
}
|
|
65017
65016
|
var mm = {}, qi = {}, QE;
|
|
65018
|
-
function
|
|
65017
|
+
function Lo() {
|
|
65019
65018
|
if (QE) return qi;
|
|
65020
65019
|
QE = 1;
|
|
65021
65020
|
let e;
|
|
@@ -65169,7 +65168,7 @@ function Hde() {
|
|
|
65169
65168
|
var wm = {}, JE;
|
|
65170
65169
|
function Gde() {
|
|
65171
65170
|
return JE || (JE = 1, (function(e) {
|
|
65172
|
-
const t =
|
|
65171
|
+
const t = Lo().getSymbolSize;
|
|
65173
65172
|
e.getRowColCoords = function(r) {
|
|
65174
65173
|
if (r === 1) return [];
|
|
65175
65174
|
const s = Math.floor(r / 7) + 2, i = t(r), a = i === 145 ? 26 : Math.ceil((i - 13) / (2 * s - 2)) * 2, o = [i - 7];
|
|
@@ -65191,7 +65190,7 @@ var vm = {}, e5;
|
|
|
65191
65190
|
function zde() {
|
|
65192
65191
|
if (e5) return vm;
|
|
65193
65192
|
e5 = 1;
|
|
65194
|
-
const e =
|
|
65193
|
+
const e = Lo().getSymbolSize, t = 7;
|
|
65195
65194
|
return vm.getPositions = function(r) {
|
|
65196
65195
|
const s = e(r);
|
|
65197
65196
|
return [
|
|
@@ -65757,7 +65756,7 @@ function _U() {
|
|
|
65757
65756
|
}, $s;
|
|
65758
65757
|
}
|
|
65759
65758
|
var c5;
|
|
65760
|
-
function
|
|
65759
|
+
function Bo() {
|
|
65761
65760
|
return c5 || (c5 = 1, (function(e) {
|
|
65762
65761
|
const t = /* @__PURE__ */ $U(), n = /* @__PURE__ */ _U();
|
|
65763
65762
|
e.NUMERIC = {
|
|
@@ -65821,7 +65820,7 @@ function Fo() {
|
|
|
65821
65820
|
var l5;
|
|
65822
65821
|
function Xde() {
|
|
65823
65822
|
return l5 || (l5 = 1, (function(e) {
|
|
65824
|
-
const t = /* @__PURE__ */
|
|
65823
|
+
const t = /* @__PURE__ */ Lo(), n = /* @__PURE__ */ FU(), r = /* @__PURE__ */ t2(), s = /* @__PURE__ */ Bo(), i = /* @__PURE__ */ $U(), a = 7973, o = t.getBCHDigit(a);
|
|
65825
65824
|
function c(h, p, g) {
|
|
65826
65825
|
for (let m = 1; m <= 40; m++)
|
|
65827
65826
|
if (p <= e.getCapacity(m, g, h))
|
|
@@ -65888,7 +65887,7 @@ var Sm = {}, d5;
|
|
|
65888
65887
|
function Zde() {
|
|
65889
65888
|
if (d5) return Sm;
|
|
65890
65889
|
d5 = 1;
|
|
65891
|
-
const e = /* @__PURE__ */
|
|
65890
|
+
const e = /* @__PURE__ */ Lo(), t = 1335, n = 21522, r = e.getBCHDigit(t);
|
|
65892
65891
|
return Sm.getEncodedBits = function(i, a) {
|
|
65893
65892
|
const o = i.bit << 3 | a;
|
|
65894
65893
|
let c = o << 10;
|
|
@@ -65901,7 +65900,7 @@ var Cm = {}, Nm, u5;
|
|
|
65901
65900
|
function Jde() {
|
|
65902
65901
|
if (u5) return Nm;
|
|
65903
65902
|
u5 = 1;
|
|
65904
|
-
const e = /* @__PURE__ */
|
|
65903
|
+
const e = /* @__PURE__ */ Bo();
|
|
65905
65904
|
function t(n) {
|
|
65906
65905
|
this.mode = e.NUMERIC, this.data = n.toString();
|
|
65907
65906
|
}
|
|
@@ -65923,7 +65922,7 @@ var Pm, f5;
|
|
|
65923
65922
|
function eue() {
|
|
65924
65923
|
if (f5) return Pm;
|
|
65925
65924
|
f5 = 1;
|
|
65926
|
-
const e = /* @__PURE__ */
|
|
65925
|
+
const e = /* @__PURE__ */ Bo(), t = [
|
|
65927
65926
|
"0",
|
|
65928
65927
|
"1",
|
|
65929
65928
|
"2",
|
|
@@ -65992,7 +65991,7 @@ var Om, h5;
|
|
|
65992
65991
|
function tue() {
|
|
65993
65992
|
if (h5) return Om;
|
|
65994
65993
|
h5 = 1;
|
|
65995
|
-
const e = /* @__PURE__ */
|
|
65994
|
+
const e = /* @__PURE__ */ Bo();
|
|
65996
65995
|
function t(n) {
|
|
65997
65996
|
this.mode = e.BYTE, typeof n == "string" ? this.data = new TextEncoder().encode(n) : this.data = new Uint8Array(n);
|
|
65998
65997
|
}
|
|
@@ -66011,7 +66010,7 @@ var Rm, p5;
|
|
|
66011
66010
|
function nue() {
|
|
66012
66011
|
if (p5) return Rm;
|
|
66013
66012
|
p5 = 1;
|
|
66014
|
-
const e = /* @__PURE__ */
|
|
66013
|
+
const e = /* @__PURE__ */ Bo(), t = /* @__PURE__ */ Lo();
|
|
66015
66014
|
function n(r) {
|
|
66016
66015
|
this.mode = e.KANJI, this.data = r;
|
|
66017
66016
|
}
|
|
@@ -66109,7 +66108,7 @@ function rue() {
|
|
|
66109
66108
|
var g5;
|
|
66110
66109
|
function sue() {
|
|
66111
66110
|
return g5 || (g5 = 1, (function(e) {
|
|
66112
|
-
const t = /* @__PURE__ */
|
|
66111
|
+
const t = /* @__PURE__ */ Bo(), n = /* @__PURE__ */ Jde(), r = /* @__PURE__ */ eue(), s = /* @__PURE__ */ tue(), i = /* @__PURE__ */ nue(), a = /* @__PURE__ */ _U(), o = /* @__PURE__ */ Lo(), c = /* @__PURE__ */ rue();
|
|
66113
66112
|
function l(w) {
|
|
66114
66113
|
return unescape(encodeURIComponent(w)).length;
|
|
66115
66114
|
}
|
|
@@ -66244,7 +66243,7 @@ var y5;
|
|
|
66244
66243
|
function iue() {
|
|
66245
66244
|
if (y5) return mm;
|
|
66246
66245
|
y5 = 1;
|
|
66247
|
-
const e = /* @__PURE__ */
|
|
66246
|
+
const e = /* @__PURE__ */ Lo(), t = /* @__PURE__ */ t2(), n = /* @__PURE__ */ Wde(), r = /* @__PURE__ */ Hde(), s = /* @__PURE__ */ Gde(), i = /* @__PURE__ */ zde(), a = /* @__PURE__ */ qde(), o = /* @__PURE__ */ FU(), c = /* @__PURE__ */ Yde(), l = /* @__PURE__ */ Xde(), d = /* @__PURE__ */ Zde(), f = /* @__PURE__ */ Bo(), h = /* @__PURE__ */ sue();
|
|
66248
66247
|
function p(I, C) {
|
|
66249
66248
|
const E = I.size, R = i.getPositions(C);
|
|
66250
66249
|
for (let O = 0; O < R.length; O++) {
|
|
@@ -66487,7 +66486,7 @@ function oue() {
|
|
|
66487
66486
|
}
|
|
66488
66487
|
var x5;
|
|
66489
66488
|
function cue() {
|
|
66490
|
-
if (x5) return
|
|
66489
|
+
if (x5) return Ko;
|
|
66491
66490
|
x5 = 1;
|
|
66492
66491
|
const e = /* @__PURE__ */ jde(), t = /* @__PURE__ */ iue(), n = /* @__PURE__ */ aue(), r = /* @__PURE__ */ oue();
|
|
66493
66492
|
function s(i, a, o, c, l) {
|
|
@@ -66517,9 +66516,9 @@ function cue() {
|
|
|
66517
66516
|
l(p);
|
|
66518
66517
|
}
|
|
66519
66518
|
}
|
|
66520
|
-
return
|
|
66519
|
+
return Ko.create = t.create, Ko.toCanvas = s.bind(null, n.render), Ko.toDataURL = s.bind(null, n.renderToDataURL), Ko.toString = s.bind(null, function(i, a, o) {
|
|
66521
66520
|
return r.render(i, o);
|
|
66522
|
-
}),
|
|
66521
|
+
}), Ko;
|
|
66523
66522
|
}
|
|
66524
66523
|
var lue = /* @__PURE__ */ cue();
|
|
66525
66524
|
const due = /* @__PURE__ */ QW(lue);
|
|
@@ -66860,7 +66859,7 @@ const jU = ({
|
|
|
66860
66859
|
"...",
|
|
66861
66860
|
n.originDepositAddress.slice(-4)
|
|
66862
66861
|
] }),
|
|
66863
|
-
/* @__PURE__ */ u(
|
|
66862
|
+
/* @__PURE__ */ u(Da, { className: "w-3 h-3" })
|
|
66864
66863
|
]
|
|
66865
66864
|
}
|
|
66866
66865
|
)
|
|
@@ -66878,7 +66877,7 @@ const jU = ({
|
|
|
66878
66877
|
chainId: n.originChain.id
|
|
66879
66878
|
}
|
|
66880
66879
|
) }),
|
|
66881
|
-
n && /* @__PURE__ */ u("div", { className: "space-y-2", children: /* @__PURE__ */ u(
|
|
66880
|
+
n && /* @__PURE__ */ u("div", { className: "space-y-2", children: /* @__PURE__ */ u(Do, { quote: n, showContent: !0 }) })
|
|
66882
66881
|
] })
|
|
66883
66882
|
] });
|
|
66884
66883
|
}, pue = ({
|
|
@@ -68806,7 +68805,7 @@ const Uue = (e) => {
|
|
|
68806
68805
|
transactionStates: f,
|
|
68807
68806
|
setTransactionStates: h
|
|
68808
68807
|
};
|
|
68809
|
-
}, $ue =
|
|
68808
|
+
}, $ue = Co((e, t) => {
|
|
68810
68809
|
const {
|
|
68811
68810
|
toAddress: n,
|
|
68812
68811
|
toAmount: r,
|
|
@@ -68881,7 +68880,7 @@ const Uue = (e) => {
|
|
|
68881
68880
|
}
|
|
68882
68881
|
), [on, zt] = Z(!1), [wr, qe] = Z(!1), [Oe, pe] = Z(void 0), [$e, Ue] = Z(null), [Ge, Fn] = Z(null), [gl, J0] = Z(null), [Aa, yl] = Z(
|
|
68883
68882
|
null
|
|
68884
|
-
), [bl, Vi] = Z(!1), [$o
|
|
68883
|
+
), [bl, Vi] = Z(!1), [Fo, $o] = Z(null), [xu, Zs] = Z(null), { connectAsync: cn } = kh(), Qt = Te((re) => re === "swap" ? "swap" : re === "earn" ? "earn" : re === "fund" ? "fund-form" : "send-form", []);
|
|
68885
68884
|
se(() => {
|
|
68886
68885
|
ve(l), te && de("home");
|
|
68887
68886
|
}, [l, te, de]);
|
|
@@ -69160,7 +69159,7 @@ const Uue = (e) => {
|
|
|
69160
69159
|
y.console.log("[trails-sdk] Opening Sequence WaaS connect modal");
|
|
69161
69160
|
return;
|
|
69162
69161
|
}
|
|
69163
|
-
if (Re.connector !==
|
|
69162
|
+
if (Re.connector !== Va) {
|
|
69164
69163
|
const nt = B;
|
|
69165
69164
|
y.console.log(
|
|
69166
69165
|
"[trails-sdk] Initiating connection to walletId",
|
|
@@ -69197,7 +69196,7 @@ const Uue = (e) => {
|
|
|
69197
69196
|
), Hr()) : (y.console.log(
|
|
69198
69197
|
"[trails-sdk] First wallet connection, going home"
|
|
69199
69198
|
), Hr());
|
|
69200
|
-
} else if (Re.connector ===
|
|
69199
|
+
} else if (Re.connector === Va) {
|
|
69201
69200
|
B && B.name !== "WalletConnect" && yl(B), de("wallet-connect"), zt(!1);
|
|
69202
69201
|
return;
|
|
69203
69202
|
}
|
|
@@ -69287,7 +69286,7 @@ const Uue = (e) => {
|
|
|
69287
69286
|
} catch (Re) {
|
|
69288
69287
|
Ue(Re instanceof Error ? Re.message : "An unknown error occurred");
|
|
69289
69288
|
}
|
|
69290
|
-
},
|
|
69289
|
+
}, _o = (re) => {
|
|
69291
69290
|
rp(re);
|
|
69292
69291
|
}, Ca = (re) => {
|
|
69293
69292
|
const Re = ye(re.chainId), nt = re.decimals || 18, At = {
|
|
@@ -69366,7 +69365,7 @@ const Uue = (e) => {
|
|
|
69366
69365
|
]);
|
|
69367
69366
|
const Tu = Te(() => {
|
|
69368
69367
|
De(), C?.();
|
|
69369
|
-
}, [De, C]),
|
|
69368
|
+
}, [De, C]), Vo = Te(() => {
|
|
69370
69369
|
we ? (y.console.log(
|
|
69371
69370
|
"[trails-sdk] handleCloseModal called, rejecting pending selection"
|
|
69372
69371
|
), we.reject(new Error("Modal closed by user")), Ee(void 0)) : y.console.log(
|
|
@@ -69384,10 +69383,10 @@ const Uue = (e) => {
|
|
|
69384
69383
|
t,
|
|
69385
69384
|
() => ({
|
|
69386
69385
|
openModal: Tu,
|
|
69387
|
-
closeModal:
|
|
69386
|
+
closeModal: Vo,
|
|
69388
69387
|
isModalOpen: Be
|
|
69389
69388
|
}),
|
|
69390
|
-
[Be, Tu,
|
|
69389
|
+
[Be, Tu, Vo]
|
|
69391
69390
|
);
|
|
69392
69391
|
function GU() {
|
|
69393
69392
|
de("pending");
|
|
@@ -69512,9 +69511,9 @@ const Uue = (e) => {
|
|
|
69512
69511
|
de("wallet-confirmation");
|
|
69513
69512
|
};
|
|
69514
69513
|
async function XU() {
|
|
69515
|
-
if (
|
|
69514
|
+
if (Fo)
|
|
69516
69515
|
try {
|
|
69517
|
-
Ue(null), Vi(!1), await
|
|
69516
|
+
Ue(null), Vi(!1), await Fo();
|
|
69518
69517
|
} catch (re) {
|
|
69519
69518
|
y.console.error(
|
|
69520
69519
|
"[trails-sdk] Error retrying wallet confirmation",
|
|
@@ -69529,7 +69528,7 @@ const Uue = (e) => {
|
|
|
69529
69528
|
wde,
|
|
69530
69529
|
{
|
|
69531
69530
|
onConnect: (Re) => {
|
|
69532
|
-
if (ge.find((nt) => nt.id === Re)?.connector ===
|
|
69531
|
+
if (ge.find((nt) => nt.id === Re)?.connector === Va)
|
|
69533
69532
|
Ia(Re), de("wallet-connect");
|
|
69534
69533
|
else {
|
|
69535
69534
|
Ia(Re);
|
|
@@ -69584,7 +69583,7 @@ const Uue = (e) => {
|
|
|
69584
69583
|
targetAmountUsdFormatted: JU,
|
|
69585
69584
|
onError: i2,
|
|
69586
69585
|
recentTokens: ne,
|
|
69587
|
-
onRecentTokenSelect:
|
|
69586
|
+
onRecentTokenSelect: _o,
|
|
69588
69587
|
fundMethod: en,
|
|
69589
69588
|
renderInline: c,
|
|
69590
69589
|
onNavigateToFundMethods: () => de("fund-methods")
|
|
@@ -69595,12 +69594,12 @@ const Uue = (e) => {
|
|
|
69595
69594
|
fy,
|
|
69596
69595
|
{
|
|
69597
69596
|
onContinue: rp,
|
|
69598
|
-
onBack:
|
|
69597
|
+
onBack: Vo,
|
|
69599
69598
|
targetAmountUsd: null,
|
|
69600
69599
|
targetAmountUsdFormatted: null,
|
|
69601
69600
|
onError: i2,
|
|
69602
69601
|
recentTokens: ne,
|
|
69603
|
-
onRecentTokenSelect:
|
|
69602
|
+
onRecentTokenSelect: _o,
|
|
69604
69603
|
fundMethod: null,
|
|
69605
69604
|
renderInline: !1
|
|
69606
69605
|
}
|
|
@@ -69611,7 +69610,7 @@ const Uue = (e) => {
|
|
|
69611
69610
|
{
|
|
69612
69611
|
token: fe,
|
|
69613
69612
|
onBack: () => de("select-origin-token"),
|
|
69614
|
-
onCancel:
|
|
69613
|
+
onCancel: Vo,
|
|
69615
69614
|
onSubmit: WU
|
|
69616
69615
|
}
|
|
69617
69616
|
);
|
|
@@ -69636,7 +69635,7 @@ const Uue = (e) => {
|
|
|
69636
69635
|
onTransactionStateChange: Au,
|
|
69637
69636
|
onError: xl,
|
|
69638
69637
|
paymasterUrls: R,
|
|
69639
|
-
setWalletConfirmRetryHandler:
|
|
69638
|
+
setWalletConfirmRetryHandler: $o,
|
|
69640
69639
|
swapProvider: F,
|
|
69641
69640
|
bridgeProvider: V,
|
|
69642
69641
|
fundMethod: en,
|
|
@@ -69661,7 +69660,7 @@ const Uue = (e) => {
|
|
|
69661
69660
|
},
|
|
69662
69661
|
checkoutOnHandlers: fs,
|
|
69663
69662
|
recentTokens: ne,
|
|
69664
|
-
onRecentTokenSelect:
|
|
69663
|
+
onRecentTokenSelect: _o,
|
|
69665
69664
|
onTrackToken: Ca
|
|
69666
69665
|
}
|
|
69667
69666
|
);
|
|
@@ -69685,14 +69684,14 @@ const Uue = (e) => {
|
|
|
69685
69684
|
onTransactionStateChange: Au,
|
|
69686
69685
|
onError: xl,
|
|
69687
69686
|
paymasterUrls: R,
|
|
69688
|
-
setWalletConfirmRetryHandler:
|
|
69687
|
+
setWalletConfirmRetryHandler: $o,
|
|
69689
69688
|
swapProvider: F,
|
|
69690
69689
|
bridgeProvider: V,
|
|
69691
69690
|
fundMethod: en,
|
|
69692
69691
|
onNavigateToOnramp: Iu,
|
|
69693
69692
|
checkoutOnHandlers: fs,
|
|
69694
69693
|
recentTokens: ne,
|
|
69695
|
-
onRecentTokenSelect:
|
|
69694
|
+
onRecentTokenSelect: _o,
|
|
69696
69695
|
onTrackToken: Ca
|
|
69697
69696
|
}
|
|
69698
69697
|
);
|
|
@@ -69755,7 +69754,7 @@ const Uue = (e) => {
|
|
|
69755
69754
|
r9,
|
|
69756
69755
|
{
|
|
69757
69756
|
onSendAnother: re ? Y ?? void 0 : HU,
|
|
69758
|
-
onClose:
|
|
69757
|
+
onClose: Vo,
|
|
69759
69758
|
renderInline: c,
|
|
69760
69759
|
transactionStates: Gr,
|
|
69761
69760
|
totalCompletionSeconds: xu ?? void 0,
|
|
@@ -69844,7 +69843,7 @@ const Uue = (e) => {
|
|
|
69844
69843
|
y.console.log(
|
|
69845
69844
|
"[trails-sdk] Wallet selected from wallet-list:",
|
|
69846
69845
|
re
|
|
69847
|
-
), ge.find((Re) => Re.id === re)?.connector ===
|
|
69846
|
+
), ge.find((Re) => Re.id === re)?.connector === Va ? (Ia(re), y.console.log(
|
|
69848
69847
|
"[trails-sdk] WalletConnect selected, going to wallet-connect screen"
|
|
69849
69848
|
), de("wallet-connect")) : (Ia(re), y.console.log(
|
|
69850
69849
|
"[trails-sdk] Regular wallet selected, going to wallet-connection-pending"
|
|
@@ -69880,14 +69879,14 @@ const Uue = (e) => {
|
|
|
69880
69879
|
onComplete: vl,
|
|
69881
69880
|
onSend: Eu,
|
|
69882
69881
|
paymasterUrls: R,
|
|
69883
|
-
setWalletConfirmRetryHandler:
|
|
69882
|
+
setWalletConfirmRetryHandler: $o,
|
|
69884
69883
|
swapProvider: F,
|
|
69885
69884
|
bridgeProvider: V,
|
|
69886
69885
|
fundMethod: en,
|
|
69887
69886
|
onNavigateToOnramp: Iu,
|
|
69888
69887
|
checkoutOnHandlers: fs,
|
|
69889
69888
|
recentTokens: ne,
|
|
69890
|
-
onRecentTokenSelect:
|
|
69889
|
+
onRecentTokenSelect: _o,
|
|
69891
69890
|
onTrackToken: Ca
|
|
69892
69891
|
}
|
|
69893
69892
|
);
|
|
@@ -69921,7 +69920,7 @@ const Uue = (e) => {
|
|
|
69921
69920
|
onTransactionStateChange: Au,
|
|
69922
69921
|
onError: xl,
|
|
69923
69922
|
paymasterUrls: R,
|
|
69924
|
-
setWalletConfirmRetryHandler:
|
|
69923
|
+
setWalletConfirmRetryHandler: $o,
|
|
69925
69924
|
swapProvider: F,
|
|
69926
69925
|
bridgeProvider: V,
|
|
69927
69926
|
fundMethod: en,
|
|
@@ -69929,7 +69928,7 @@ const Uue = (e) => {
|
|
|
69929
69928
|
onAmountUpdate: void 0,
|
|
69930
69929
|
checkoutOnHandlers: fs,
|
|
69931
69930
|
recentTokens: ne,
|
|
69932
|
-
onRecentTokenSelect:
|
|
69931
|
+
onRecentTokenSelect: _o,
|
|
69933
69932
|
onTrackToken: Ca
|
|
69934
69933
|
}
|
|
69935
69934
|
);
|
|
@@ -70070,14 +70069,14 @@ const Uue = (e) => {
|
|
|
70070
70069
|
children: O || wl
|
|
70071
70070
|
}
|
|
70072
70071
|
),
|
|
70073
|
-
/* @__PURE__ */ u(Ii, { children: Be && /* @__PURE__ */ u(XR, { isOpen: Be, onClose:
|
|
70072
|
+
/* @__PURE__ */ u(Ii, { children: Be && /* @__PURE__ */ u(XR, { isOpen: Be, onClose: Vo, children: a2() }) })
|
|
70074
70073
|
] });
|
|
70075
|
-
}), _ue =
|
|
70074
|
+
}), _ue = Co(
|
|
70076
70075
|
(e, t) => /* @__PURE__ */ v(YR, { props: e, children: [
|
|
70077
70076
|
/* @__PURE__ */ u(vue, {}),
|
|
70078
70077
|
/* @__PURE__ */ u($ue, { ref: t })
|
|
70079
70078
|
] })
|
|
70080
|
-
), bhe =
|
|
70079
|
+
), bhe = Co(
|
|
70081
70080
|
(e, t) => {
|
|
70082
70081
|
const n = ct(N5), s = !!ct(P0);
|
|
70083
70082
|
if (!e.apiKey)
|
|
@@ -70128,98 +70127,97 @@ const Uue = (e) => {
|
|
|
70128
70127
|
isModalOpen: e.current?.isModalOpen ?? !1
|
|
70129
70128
|
});
|
|
70130
70129
|
export {
|
|
70131
|
-
|
|
70132
|
-
|
|
70133
|
-
|
|
70134
|
-
|
|
70135
|
-
|
|
70136
|
-
|
|
70137
|
-
|
|
70138
|
-
|
|
70139
|
-
|
|
70130
|
+
rZ as $,
|
|
70131
|
+
DL as A,
|
|
70132
|
+
UL as B,
|
|
70133
|
+
LL as C,
|
|
70134
|
+
BL as D,
|
|
70135
|
+
u9 as E,
|
|
70136
|
+
Gc as F,
|
|
70137
|
+
O0 as G,
|
|
70138
|
+
gu as H,
|
|
70140
70139
|
Y1 as I,
|
|
70141
|
-
|
|
70142
|
-
|
|
70143
|
-
|
|
70144
|
-
|
|
70145
|
-
|
|
70146
|
-
|
|
70147
|
-
|
|
70148
|
-
|
|
70149
|
-
|
|
70150
|
-
|
|
70151
|
-
|
|
70140
|
+
nr as J,
|
|
70141
|
+
xa as K,
|
|
70142
|
+
Ny as L,
|
|
70143
|
+
che as M,
|
|
70144
|
+
Z9 as N,
|
|
70145
|
+
X9 as O,
|
|
70146
|
+
oh as P,
|
|
70147
|
+
Py as Q,
|
|
70148
|
+
Hc as R,
|
|
70149
|
+
Dfe as S,
|
|
70150
|
+
it as T,
|
|
70152
70151
|
B5 as U,
|
|
70153
|
-
|
|
70154
|
-
|
|
70155
|
-
|
|
70156
|
-
|
|
70157
|
-
|
|
70158
|
-
|
|
70152
|
+
jle as V,
|
|
70153
|
+
Wle as W,
|
|
70154
|
+
LR as X,
|
|
70155
|
+
nZ as Y,
|
|
70156
|
+
BR as Z,
|
|
70157
|
+
afe as _,
|
|
70159
70158
|
zre as a,
|
|
70160
|
-
|
|
70161
|
-
|
|
70162
|
-
|
|
70163
|
-
|
|
70164
|
-
|
|
70165
|
-
|
|
70166
|
-
|
|
70167
|
-
|
|
70168
|
-
|
|
70169
|
-
|
|
70170
|
-
|
|
70171
|
-
|
|
70172
|
-
|
|
70173
|
-
|
|
70174
|
-
|
|
70175
|
-
|
|
70176
|
-
|
|
70177
|
-
|
|
70178
|
-
|
|
70179
|
-
|
|
70180
|
-
|
|
70181
|
-
|
|
70182
|
-
|
|
70183
|
-
|
|
70184
|
-
|
|
70185
|
-
|
|
70186
|
-
|
|
70187
|
-
|
|
70188
|
-
|
|
70189
|
-
|
|
70190
|
-
|
|
70191
|
-
|
|
70192
|
-
|
|
70193
|
-
|
|
70194
|
-
|
|
70195
|
-
|
|
70196
|
-
|
|
70197
|
-
|
|
70198
|
-
|
|
70199
|
-
|
|
70200
|
-
|
|
70201
|
-
|
|
70202
|
-
|
|
70203
|
-
|
|
70204
|
-
|
|
70205
|
-
|
|
70206
|
-
|
|
70207
|
-
|
|
70208
|
-
|
|
70209
|
-
|
|
70210
|
-
|
|
70211
|
-
|
|
70212
|
-
|
|
70213
|
-
|
|
70214
|
-
|
|
70215
|
-
|
|
70216
|
-
|
|
70217
|
-
|
|
70218
|
-
|
|
70219
|
-
|
|
70220
|
-
|
|
70221
|
-
|
|
70222
|
-
bhe as az,
|
|
70159
|
+
Pd as a0,
|
|
70160
|
+
cl as a1,
|
|
70161
|
+
ife as a2,
|
|
70162
|
+
cv as a3,
|
|
70163
|
+
Qg as a4,
|
|
70164
|
+
NR as a5,
|
|
70165
|
+
BX as a6,
|
|
70166
|
+
lv as a7,
|
|
70167
|
+
dv as a8,
|
|
70168
|
+
gc as a9,
|
|
70169
|
+
rte as aA,
|
|
70170
|
+
$d as aB,
|
|
70171
|
+
zv as aC,
|
|
70172
|
+
qc as aD,
|
|
70173
|
+
hhe as aE,
|
|
70174
|
+
wD as aF,
|
|
70175
|
+
qv as aG,
|
|
70176
|
+
fhe as aH,
|
|
70177
|
+
uhe as aI,
|
|
70178
|
+
la as aJ,
|
|
70179
|
+
$i as aK,
|
|
70180
|
+
lh as aL,
|
|
70181
|
+
Bse as aM,
|
|
70182
|
+
jse as aN,
|
|
70183
|
+
ue as aO,
|
|
70184
|
+
FD as aP,
|
|
70185
|
+
pl as aQ,
|
|
70186
|
+
mhe as aR,
|
|
70187
|
+
bae as aS,
|
|
70188
|
+
UD as aT,
|
|
70189
|
+
poe as aU,
|
|
70190
|
+
QD as aV,
|
|
70191
|
+
Ir as aW,
|
|
70192
|
+
phe as aX,
|
|
70193
|
+
Uo as aY,
|
|
70194
|
+
Ufe as aZ,
|
|
70195
|
+
YX as aa,
|
|
70196
|
+
sv as ab,
|
|
70197
|
+
RX as ac,
|
|
70198
|
+
$c as ad,
|
|
70199
|
+
sfe as ae,
|
|
70200
|
+
na as af,
|
|
70201
|
+
qg as ag,
|
|
70202
|
+
iv as ah,
|
|
70203
|
+
MX as ai,
|
|
70204
|
+
DX as aj,
|
|
70205
|
+
n9 as ak,
|
|
70206
|
+
od as al,
|
|
70207
|
+
V0 as am,
|
|
70208
|
+
ite as an,
|
|
70209
|
+
Wi as ao,
|
|
70210
|
+
nv as ap,
|
|
70211
|
+
rfe as aq,
|
|
70212
|
+
rse as ar,
|
|
70213
|
+
yhe as as,
|
|
70214
|
+
MU as at,
|
|
70215
|
+
dde as au,
|
|
70216
|
+
ude as av,
|
|
70217
|
+
fde as aw,
|
|
70218
|
+
whe as ax,
|
|
70219
|
+
bhe as ay,
|
|
70220
|
+
ste as az,
|
|
70223
70221
|
qre as b,
|
|
70224
70222
|
wn as c,
|
|
70225
70223
|
py as d,
|
|
@@ -70228,21 +70226,21 @@ export {
|
|
|
70228
70226
|
Ws as g,
|
|
70229
70227
|
ye as h,
|
|
70230
70228
|
mc as i,
|
|
70231
|
-
|
|
70232
|
-
|
|
70229
|
+
Ns as j,
|
|
70230
|
+
Th as k,
|
|
70233
70231
|
y as l,
|
|
70234
|
-
|
|
70235
|
-
|
|
70236
|
-
|
|
70232
|
+
hy as m,
|
|
70233
|
+
Tv as n,
|
|
70234
|
+
sa as o,
|
|
70237
70235
|
Ule as p,
|
|
70238
|
-
|
|
70239
|
-
|
|
70240
|
-
|
|
70236
|
+
tZ as q,
|
|
70237
|
+
NL as r,
|
|
70238
|
+
CL as s,
|
|
70241
70239
|
Gre as t,
|
|
70242
70240
|
Li as u,
|
|
70243
|
-
|
|
70244
|
-
|
|
70245
|
-
|
|
70246
|
-
|
|
70247
|
-
|
|
70241
|
+
F5 as v,
|
|
70242
|
+
PL as w,
|
|
70243
|
+
OL as x,
|
|
70244
|
+
RL as y,
|
|
70245
|
+
ML as z
|
|
70248
70246
|
};
|