@pufferfinance/puffer-sdk 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.cjs.map +1 -1
- package/dist/api/puffer-client-helpers.js +86 -86
- package/dist/api/puffer-client-helpers.js.map +1 -1
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/{ccip-DA_MOIPz.js → ccip-DxZd6avE.js} +9 -9
- package/dist/ccip-DxZd6avE.js.map +1 -0
- package/dist/{ccip-BYEwaDSr.cjs → ccip-KTVYuImW.cjs} +2 -2
- package/dist/ccip-KTVYuImW.cjs.map +1 -0
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +3 -0
- package/dist/chains/constants.js +1 -1
- package/dist/constants-Bsa7cnXP.cjs +9 -0
- package/dist/constants-Bsa7cnXP.cjs.map +1 -0
- package/dist/{constants-BDqMRitM.js → constants-DtzphQjb.js} +791 -691
- package/dist/constants-DtzphQjb.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.d.ts +14621 -1572
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.d.ts +14732 -8603
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +14905 -17101
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +14568 -282
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +14674 -2283
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +14802 -14165
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +14612 -543
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +14819 -7619
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +14665 -3778
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.d.ts +14645 -2072
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.d.ts +14658 -2266
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.d.ts +14801 -11215
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +14579 -399
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +14698 -4510
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +14610 -1797
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +1 -0
- package/dist/contracts/tokens.js +73 -65
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-L7tR5Gda.cjs → createWalletClient-Cxvyuh55.cjs} +6 -6
- package/dist/createWalletClient-Cxvyuh55.cjs.map +1 -0
- package/dist/{createWalletClient-DMXR-Bug.js → createWalletClient-DveM0zMc.js} +63 -62
- package/dist/createWalletClient-DveM0zMc.js.map +1 -0
- package/dist/{getContract-DXPZJOBy.js → getContract-Ck0plC0s.js} +2 -2
- package/dist/{getContract-Bt9GsQBq.cjs.map → getContract-Ck0plC0s.js.map} +1 -1
- package/dist/{getContract-Bt9GsQBq.cjs → getContract-Z5RjOH18.cjs} +2 -2
- package/dist/getContract-Z5RjOH18.cjs.map +1 -0
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-D02y6Pc-.js → secp256k1-48Xl94oi.js} +2 -2
- package/dist/{secp256k1-D02y6Pc-.js.map → secp256k1-48Xl94oi.js.map} +1 -1
- package/dist/{secp256k1-q_akf6f-.cjs → secp256k1-BWuyf2aG.cjs} +2 -2
- package/dist/{secp256k1-q_akf6f-.cjs.map → secp256k1-BWuyf2aG.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-BsrMQkg5.js → writeContract-CynQLeZV.js} +7 -7
- package/dist/writeContract-CynQLeZV.js.map +1 -0
- package/dist/{writeContract-Cbrw62uO.cjs → writeContract-D5BxbWBy.cjs} +6 -6
- package/dist/writeContract-D5BxbWBy.cjs.map +1 -0
- package/package.json +2 -2
- package/dist/ccip-BYEwaDSr.cjs.map +0 -1
- package/dist/ccip-DA_MOIPz.js.map +0 -1
- package/dist/constants-5WxIZnbu.cjs +0 -9
- package/dist/constants-5WxIZnbu.cjs.map +0 -1
- package/dist/constants-BDqMRitM.js.map +0 -1
- package/dist/createWalletClient-DMXR-Bug.js.map +0 -1
- package/dist/createWalletClient-L7tR5Gda.cjs.map +0 -1
- package/dist/getContract-DXPZJOBy.js.map +0 -1
- package/dist/writeContract-BsrMQkg5.js.map +0 -1
- package/dist/writeContract-Cbrw62uO.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as nt, m as zr, n as Fr, I as Dr, g as T, r as H, o as V, l as qr, M as ie, f as D, H as te, q as Or, U as ve, S as st, C as at, P as ot, t as it, u as ct, J as ut, L as Ee, T as ft, R as dt, v as lt, x as Ae, y as Te, z as pt, A as ht, B as mt, D as gt, E as bt, F as _r, G as Mr, K as yt, N as jr, O as ae, Q as X, V as wt, W as kt, X as he, Y as vt, Z as Lr, _ as qe, $ as Oe, a0 as Hr, a1 as Ur, a2 as _e, a3 as St, a4 as Gr, k as Me, a5 as Vr, a6 as Wr, a7 as Zr, a8 as me, a9 as Ie, aa as Jr, ab as Bt, ac as zt, ad as Kr, ae as Qr, af as Pe, ag as Xr, ah as xt, ai as Ft, aj as Yr, j as Dt, i as qt, ak as en, al as tn, am as Q, an as ge, ao as rn, ap as J, aq as nn, ar as sn, as as an, at as on, au as je, av as Ot, aw as Le, w as cn, s as un, ax as _t, ay as Mt, az as fn, aA as dn, aB as ln, aC as pn, a as hn, aD as He, aE as mn, aF as gn, e as bn, c as yn, aG as jt, aH as Ue, aI as wn, b as vn } from "./writeContract-
|
|
2
|
-
import { B as F, n as B, ae as xn, m as le, i as Lt, v as ne, g as En, k as O, af as re, c as Ge, M as W, x as An, w as Ht, a8 as pe, h as Tn, I as In, f as Re, ag as Pn, q as Rn, A as Ut, ah as Gt, ai as Cn, aj as Vt, ak as $n, a1 as Nn, Z as kn, al as Sn, z as se, am as Bn, an as Wt, ao as zn, F as Fn } from "./constants-
|
|
3
|
-
import { secp256k1 as Dn } from "./secp256k1-
|
|
1
|
+
import { p as nt, m as zr, n as Fr, I as Dr, g as T, r as H, o as V, l as qr, M as ie, f as D, H as te, q as Or, U as ve, S as st, C as at, P as ot, t as it, u as ct, J as ut, L as Ee, T as ft, R as dt, v as lt, x as Ae, y as Te, z as pt, A as ht, B as mt, D as gt, E as bt, F as _r, G as Mr, K as yt, N as jr, O as ae, Q as X, V as wt, W as kt, X as he, Y as vt, Z as Lr, _ as qe, $ as Oe, a0 as Hr, a1 as Ur, a2 as _e, a3 as St, a4 as Gr, k as Me, a5 as Vr, a6 as Wr, a7 as Zr, a8 as me, a9 as Ie, aa as Jr, ab as Bt, ac as zt, ad as Kr, ae as Qr, af as Pe, ag as Xr, ah as xt, ai as Ft, aj as Yr, j as Dt, i as qt, ak as en, al as tn, am as Q, an as ge, ao as rn, ap as J, aq as nn, ar as sn, as as an, at as on, au as je, av as Ot, aw as Le, w as cn, s as un, ax as _t, ay as Mt, az as fn, aA as dn, aB as ln, aC as pn, a as hn, aD as He, aE as mn, aF as gn, e as bn, c as yn, aG as jt, aH as Ue, aI as wn, b as vn } from "./writeContract-CynQLeZV.js";
|
|
2
|
+
import { B as F, n as B, ae as xn, m as le, i as Lt, v as ne, g as En, k as O, af as re, c as Ge, M as W, x as An, w as Ht, a8 as pe, h as Tn, I as In, f as Re, ag as Pn, q as Rn, A as Ut, ah as Gt, ai as Cn, aj as Vt, ak as $n, a1 as Nn, Z as kn, al as Sn, z as se, am as Bn, an as Wt, ao as zn, F as Fn } from "./constants-DtzphQjb.js";
|
|
3
|
+
import { secp256k1 as Dn } from "./secp256k1-48Xl94oi.js";
|
|
4
4
|
function Et(e) {
|
|
5
5
|
let t;
|
|
6
6
|
if (typeof e == "string")
|
|
@@ -121,8 +121,8 @@ function Jt(e) {
|
|
|
121
121
|
function g(v) {
|
|
122
122
|
return (h) => {
|
|
123
123
|
const b = h(v);
|
|
124
|
-
for (const
|
|
125
|
-
delete b[
|
|
124
|
+
for (const x in m)
|
|
125
|
+
delete b[x];
|
|
126
126
|
const y = { ...v, ...b };
|
|
127
127
|
return Object.assign(y, { extend: g(y) });
|
|
128
128
|
};
|
|
@@ -398,8 +398,8 @@ function lo(e, t = {}) {
|
|
|
398
398
|
key: s,
|
|
399
399
|
methods: a,
|
|
400
400
|
name: o,
|
|
401
|
-
async request({ method:
|
|
402
|
-
const A = { method:
|
|
401
|
+
async request({ method: x, params: P }) {
|
|
402
|
+
const A = { method: x, params: P }, { schedule: E } = _r({
|
|
403
403
|
id: b,
|
|
404
404
|
wait: g,
|
|
405
405
|
shouldSplitBatch(I) {
|
|
@@ -409,7 +409,7 @@ function lo(e, t = {}) {
|
|
|
409
409
|
body: I
|
|
410
410
|
}),
|
|
411
411
|
sort: (I, k) => I.id - k.id
|
|
412
|
-
}), C = async (I) => r ?
|
|
412
|
+
}), C = async (I) => r ? E(I) : [
|
|
413
413
|
await y.request({
|
|
414
414
|
body: I
|
|
415
415
|
})
|
|
@@ -837,7 +837,7 @@ async function er(e, t) {
|
|
|
837
837
|
const { account: r = e.account, blockNumber: n, blockTag: s = "latest", blobs: a, data: o, gas: c, gasPrice: u, maxFeePerBlobGas: i, maxFeePerGas: d, maxPriorityFeePerGas: f, to: l, value: p, ...m } = t, g = r ? V(r) : void 0;
|
|
838
838
|
try {
|
|
839
839
|
qe(t);
|
|
840
|
-
const
|
|
840
|
+
const x = (n ? B(n) : void 0) || s, P = (b = (h = (v = e.chain) == null ? void 0 : v.formatters) == null ? void 0 : h.transactionRequest) == null ? void 0 : b.format, E = (P || Oe)({
|
|
841
841
|
// Pick out extra data that might exist on the chain's transaction request type.
|
|
842
842
|
...Hr(m, { format: P }),
|
|
843
843
|
from: g == null ? void 0 : g.address,
|
|
@@ -852,7 +852,7 @@ async function er(e, t) {
|
|
|
852
852
|
value: p
|
|
853
853
|
}), C = await e.request({
|
|
854
854
|
method: "eth_createAccessList",
|
|
855
|
-
params: [
|
|
855
|
+
params: [E, x]
|
|
856
856
|
});
|
|
857
857
|
return {
|
|
858
858
|
accessList: C.accessList,
|
|
@@ -1263,9 +1263,9 @@ async function qs(e, t) {
|
|
|
1263
1263
|
const f = [[]];
|
|
1264
1264
|
let l = 0, p = 0;
|
|
1265
1265
|
for (let h = 0; h < u.length; h++) {
|
|
1266
|
-
const { abi: b, address: y, args:
|
|
1266
|
+
const { abi: b, address: y, args: x, functionName: P } = u[h];
|
|
1267
1267
|
try {
|
|
1268
|
-
const A = X({ abi: b, args:
|
|
1268
|
+
const A = X({ abi: b, args: x, functionName: P });
|
|
1269
1269
|
p += (A.length - 2) / 2, // Check if batching is enabled.
|
|
1270
1270
|
i > 0 && // Check if the current size of the batch exceeds the size limit.
|
|
1271
1271
|
p > i && // Check if the current chunk is not already empty.
|
|
@@ -1278,15 +1278,15 @@ async function qs(e, t) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
];
|
|
1280
1280
|
} catch (A) {
|
|
1281
|
-
const
|
|
1281
|
+
const E = Ie(A, {
|
|
1282
1282
|
abi: b,
|
|
1283
1283
|
address: y,
|
|
1284
|
-
args:
|
|
1284
|
+
args: x,
|
|
1285
1285
|
docsPath: "/docs/contract/multicall",
|
|
1286
1286
|
functionName: P
|
|
1287
1287
|
});
|
|
1288
1288
|
if (!r)
|
|
1289
|
-
throw
|
|
1289
|
+
throw E;
|
|
1290
1290
|
f[l] = [
|
|
1291
1291
|
...f[l],
|
|
1292
1292
|
{
|
|
@@ -1311,7 +1311,7 @@ async function qs(e, t) {
|
|
|
1311
1311
|
if (b.status === "rejected") {
|
|
1312
1312
|
if (!r)
|
|
1313
1313
|
throw b.reason;
|
|
1314
|
-
for (let
|
|
1314
|
+
for (let x = 0; x < f[h].length; x++)
|
|
1315
1315
|
g.push({
|
|
1316
1316
|
status: "failure",
|
|
1317
1317
|
error: b.reason,
|
|
@@ -1320,10 +1320,10 @@ async function qs(e, t) {
|
|
|
1320
1320
|
continue;
|
|
1321
1321
|
}
|
|
1322
1322
|
const y = b.value;
|
|
1323
|
-
for (let
|
|
1324
|
-
const { returnData: P, success: A } = y[
|
|
1323
|
+
for (let x = 0; x < y.length; x++) {
|
|
1324
|
+
const { returnData: P, success: A } = y[x], { callData: E } = f[h][x], { abi: C, address: R, functionName: N, args: I } = u[g.length];
|
|
1325
1325
|
try {
|
|
1326
|
-
if (
|
|
1326
|
+
if (E === "0x")
|
|
1327
1327
|
throw new Bt();
|
|
1328
1328
|
if (!A)
|
|
1329
1329
|
throw new zt({ data: P });
|
|
@@ -1754,13 +1754,13 @@ async function ke(e, t) {
|
|
|
1754
1754
|
...Nn(l),
|
|
1755
1755
|
calls: l.calls.map((m, g) => {
|
|
1756
1756
|
var N, I;
|
|
1757
|
-
const { abi: v, args: h, functionName: b, to: y } = s[p].calls[g],
|
|
1757
|
+
const { abi: v, args: h, functionName: b, to: y } = s[p].calls[g], x = ((N = m.error) == null ? void 0 : N.data) ?? m.returnData, P = BigInt(m.gasUsed), A = (I = m.logs) == null ? void 0 : I.map((k) => pe(k)), E = m.status === "0x1" ? "success" : "failure", C = v && E === "success" && x !== "0x" ? he({
|
|
1758
1758
|
abi: v,
|
|
1759
|
-
data:
|
|
1759
|
+
data: x,
|
|
1760
1760
|
functionName: b
|
|
1761
1761
|
}) : null, R = (() => {
|
|
1762
1762
|
var _;
|
|
1763
|
-
if (
|
|
1763
|
+
if (E === "success")
|
|
1764
1764
|
return;
|
|
1765
1765
|
let k;
|
|
1766
1766
|
if (((_ = m.error) == null ? void 0 : _.data) === "0x" ? k = new Bt() : m.error && (k = new zt(m.error)), !!k)
|
|
@@ -1772,11 +1772,11 @@ async function ke(e, t) {
|
|
|
1772
1772
|
});
|
|
1773
1773
|
})();
|
|
1774
1774
|
return {
|
|
1775
|
-
data:
|
|
1775
|
+
data: x,
|
|
1776
1776
|
gasUsed: P,
|
|
1777
1777
|
logs: A,
|
|
1778
|
-
status:
|
|
1779
|
-
...
|
|
1778
|
+
status: E,
|
|
1779
|
+
...E === "success" ? {
|
|
1780
1780
|
result: C
|
|
1781
1781
|
} : {
|
|
1782
1782
|
error: R
|
|
@@ -2514,7 +2514,7 @@ async function qa(e, t) {
|
|
|
2514
2514
|
],
|
|
2515
2515
|
traceTransfers: c,
|
|
2516
2516
|
validation: u
|
|
2517
|
-
}), m = o ? p[2] : p[0], [g, v, , h, b, y,
|
|
2517
|
+
}), m = o ? p[2] : p[0], [g, v, , h, b, y, x, P] = o ? p : [], { calls: A, ...E } = m, C = A.slice(0, -1) ?? [], R = (g == null ? void 0 : g.calls) ?? [], N = (v == null ? void 0 : v.calls) ?? [], I = [...R, ...N].map((w) => w.status === "success" ? se(w.data) : null), k = (h == null ? void 0 : h.calls) ?? [], _ = (b == null ? void 0 : b.calls) ?? [], Rr = [...k, ..._].map((w) => w.status === "success" ? se(w.data) : null), Cr = ((y == null ? void 0 : y.calls) ?? []).map((w) => w.status === "success" ? w.result : null), $r = ((P == null ? void 0 : P.calls) ?? []).map((w) => w.status === "success" ? w.result : null), Nr = ((x == null ? void 0 : x.calls) ?? []).map((w) => w.status === "success" ? w.result : null), we = [];
|
|
2518
2518
|
for (const [w, S] of Rr.entries()) {
|
|
2519
2519
|
const Y = I[w];
|
|
2520
2520
|
if (typeof S != "bigint" || typeof Y != "bigint")
|
|
@@ -2539,7 +2539,7 @@ async function qa(e, t) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
return {
|
|
2541
2541
|
assetChanges: we,
|
|
2542
|
-
block:
|
|
2542
|
+
block: E,
|
|
2543
2543
|
results: C
|
|
2544
2544
|
};
|
|
2545
2545
|
}
|
|
@@ -2698,11 +2698,11 @@ async function ja(e, {
|
|
|
2698
2698
|
emitOnBegin: !0,
|
|
2699
2699
|
poll: !0,
|
|
2700
2700
|
pollingInterval: s,
|
|
2701
|
-
async onBlockNumber(
|
|
2702
|
-
const P = (
|
|
2703
|
-
clearTimeout(v), y(),
|
|
2701
|
+
async onBlockNumber(x) {
|
|
2702
|
+
const P = (E) => {
|
|
2703
|
+
clearTimeout(v), y(), E(), h();
|
|
2704
2704
|
};
|
|
2705
|
-
let A =
|
|
2705
|
+
let A = x;
|
|
2706
2706
|
if (!l)
|
|
2707
2707
|
try {
|
|
2708
2708
|
if (f) {
|
|
@@ -2719,8 +2719,8 @@ async function ja(e, {
|
|
|
2719
2719
|
}), l = !1), f = await T(e, Ne, "getTransactionReceipt")({ hash: r }), t > 1 && (!f.blockNumber || A - f.blockNumber + 1n < t))
|
|
2720
2720
|
return;
|
|
2721
2721
|
P(() => b.resolve(f));
|
|
2722
|
-
} catch (
|
|
2723
|
-
if (
|
|
2722
|
+
} catch (E) {
|
|
2723
|
+
if (E instanceof Gt || E instanceof Vt) {
|
|
2724
2724
|
if (!i) {
|
|
2725
2725
|
l = !1;
|
|
2726
2726
|
return;
|
|
@@ -2755,7 +2755,7 @@ async function ja(e, {
|
|
|
2755
2755
|
P(() => b.reject(C));
|
|
2756
2756
|
}
|
|
2757
2757
|
} else
|
|
2758
|
-
P(() => b.reject(
|
|
2758
|
+
P(() => b.reject(E));
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
});
|
|
@@ -2818,7 +2818,7 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2818
2818
|
});
|
|
2819
2819
|
const h = (() => {
|
|
2820
2820
|
if (e.transport.type === "fallback") {
|
|
2821
|
-
const y = e.transport.transports.find((
|
|
2821
|
+
const y = e.transport.transports.find((x) => x.config.type === "webSocket");
|
|
2822
2822
|
return y ? y.value : e.transport;
|
|
2823
2823
|
}
|
|
2824
2824
|
return e.transport;
|
|
@@ -2827,12 +2827,12 @@ function La(e, { blockTag: t = "latest", emitMissed: r = !1, emitOnBegin: n = !1
|
|
|
2827
2827
|
async onData(y) {
|
|
2828
2828
|
if (!m)
|
|
2829
2829
|
return;
|
|
2830
|
-
const
|
|
2830
|
+
const x = await T(e, J, "getBlock")({
|
|
2831
2831
|
blockNumber: y.blockNumber,
|
|
2832
2832
|
includeTransactions: d
|
|
2833
2833
|
}).catch(() => {
|
|
2834
2834
|
});
|
|
2835
|
-
m && (s(
|
|
2835
|
+
m && (s(x, f), g = !1, f = x);
|
|
2836
2836
|
},
|
|
2837
2837
|
onError(y) {
|
|
2838
2838
|
a == null || a(y);
|
|
@@ -2861,10 +2861,10 @@ function Ha(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
2861
2861
|
return Q(v, { onLogs: u, onError: c }, (h) => {
|
|
2862
2862
|
let b;
|
|
2863
2863
|
o !== void 0 && (b = o - 1n);
|
|
2864
|
-
let y,
|
|
2864
|
+
let y, x = !1;
|
|
2865
2865
|
const P = ge(async () => {
|
|
2866
2866
|
var A;
|
|
2867
|
-
if (!
|
|
2867
|
+
if (!x) {
|
|
2868
2868
|
try {
|
|
2869
2869
|
y = await T(e, tr, "createEventFilter")({
|
|
2870
2870
|
address: t,
|
|
@@ -2876,33 +2876,33 @@ function Ha(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
2876
2876
|
});
|
|
2877
2877
|
} catch {
|
|
2878
2878
|
}
|
|
2879
|
-
|
|
2879
|
+
x = !0;
|
|
2880
2880
|
return;
|
|
2881
2881
|
}
|
|
2882
2882
|
try {
|
|
2883
|
-
let
|
|
2883
|
+
let E;
|
|
2884
2884
|
if (y)
|
|
2885
|
-
|
|
2885
|
+
E = await T(e, je, "getFilterChanges")({ filter: y });
|
|
2886
2886
|
else {
|
|
2887
2887
|
const C = await T(e, me, "getBlockNumber")({});
|
|
2888
|
-
b && b !== C ?
|
|
2888
|
+
b && b !== C ? E = await T(e, Ot, "getLogs")({
|
|
2889
2889
|
address: t,
|
|
2890
2890
|
args: r,
|
|
2891
2891
|
event: s,
|
|
2892
2892
|
events: a,
|
|
2893
2893
|
fromBlock: b + 1n,
|
|
2894
2894
|
toBlock: C
|
|
2895
|
-
}) :
|
|
2895
|
+
}) : E = [], b = C;
|
|
2896
2896
|
}
|
|
2897
|
-
if (
|
|
2897
|
+
if (E.length === 0)
|
|
2898
2898
|
return;
|
|
2899
2899
|
if (n)
|
|
2900
|
-
h.onLogs(
|
|
2900
|
+
h.onLogs(E);
|
|
2901
2901
|
else
|
|
2902
|
-
for (const C of
|
|
2902
|
+
for (const C of E)
|
|
2903
2903
|
h.onLogs([C]);
|
|
2904
|
-
} catch (
|
|
2905
|
-
y &&
|
|
2904
|
+
} catch (E) {
|
|
2905
|
+
y && E instanceof Ae && (x = !1), (A = h.onError) == null || A.call(h, E);
|
|
2906
2906
|
}
|
|
2907
2907
|
}, {
|
|
2908
2908
|
emitOnBegin: !0,
|
|
@@ -2918,31 +2918,31 @@ function Ha(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
2918
2918
|
try {
|
|
2919
2919
|
const b = (() => {
|
|
2920
2920
|
if (e.transport.type === "fallback") {
|
|
2921
|
-
const A = e.transport.transports.find((
|
|
2921
|
+
const A = e.transport.transports.find((E) => E.config.type === "webSocket");
|
|
2922
2922
|
return A ? A.value : e.transport;
|
|
2923
2923
|
}
|
|
2924
2924
|
return e.transport;
|
|
2925
2925
|
})(), y = a ?? (s ? [s] : void 0);
|
|
2926
|
-
let
|
|
2927
|
-
y && (
|
|
2928
|
-
abi: [
|
|
2929
|
-
eventName:
|
|
2926
|
+
let x = [];
|
|
2927
|
+
y && (x = [y.flatMap((E) => St({
|
|
2928
|
+
abi: [E],
|
|
2929
|
+
eventName: E.name,
|
|
2930
2930
|
args: r
|
|
2931
|
-
}))], s && (
|
|
2931
|
+
}))], s && (x = x[0]));
|
|
2932
2932
|
const { unsubscribe: P } = await b.subscribe({
|
|
2933
|
-
params: ["logs", { address: t, topics:
|
|
2933
|
+
params: ["logs", { address: t, topics: x }],
|
|
2934
2934
|
onData(A) {
|
|
2935
2935
|
var C;
|
|
2936
2936
|
if (!v)
|
|
2937
2937
|
return;
|
|
2938
|
-
const
|
|
2938
|
+
const E = A.result;
|
|
2939
2939
|
try {
|
|
2940
2940
|
const { eventName: R, args: N } = sn({
|
|
2941
2941
|
abi: y ?? [],
|
|
2942
|
-
data:
|
|
2943
|
-
topics:
|
|
2942
|
+
data: E.data,
|
|
2943
|
+
topics: E.topics,
|
|
2944
2944
|
strict: p
|
|
2945
|
-
}), I = pe(
|
|
2945
|
+
}), I = pe(E, { args: N, eventName: R });
|
|
2946
2946
|
u([I]);
|
|
2947
2947
|
} catch (R) {
|
|
2948
2948
|
let N, I;
|
|
@@ -2951,7 +2951,7 @@ function Ha(e, { address: t, args: r, batch: n = !0, event: s, events: a, fromBl
|
|
|
2951
2951
|
return;
|
|
2952
2952
|
N = R.abiItem.name, I = (C = R.abiItem.inputs) == null ? void 0 : C.some((_) => !("name" in _ && _.name));
|
|
2953
2953
|
}
|
|
2954
|
-
const k = pe(
|
|
2954
|
+
const k = pe(E, {
|
|
2955
2955
|
args: I ? [] : {},
|
|
2956
2956
|
eventName: N
|
|
2957
2957
|
});
|
|
@@ -3151,6 +3151,7 @@ function Qa(e, t) {
|
|
|
3151
3151
|
const { abi: r, args: n, bytecode: s, ...a } = t, o = Ft({ abi: r, args: n, bytecode: s });
|
|
3152
3152
|
return jt(e, {
|
|
3153
3153
|
...a,
|
|
3154
|
+
...a.authorizationList ? { to: null } : {},
|
|
3154
3155
|
data: o
|
|
3155
3156
|
});
|
|
3156
3157
|
}
|
|
@@ -3286,4 +3287,4 @@ export {
|
|
|
3286
3287
|
go as c,
|
|
3287
3288
|
lo as h
|
|
3288
3289
|
};
|
|
3289
|
-
//# sourceMappingURL=createWalletClient-
|
|
3290
|
+
//# sourceMappingURL=createWalletClient-DveM0zMc.js.map
|