@dev.sail.money/sailor 0.0.2-28 → 0.0.2-30
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/AGENTS.md +31 -2
- package/README.md +77 -12
- package/package.json +9 -3
- package/packages/cli/dist/index.cjs +285 -127
- package/packages/cli/dist/server.cjs +586 -1401
- package/packages/sdk/dist/chains.d.ts +12 -0
- package/packages/sdk/dist/chains.d.ts.map +1 -0
- package/packages/sdk/dist/chains.js +94 -0
- package/packages/sdk/dist/chains.js.map +1 -0
- package/packages/sdk/dist/index.d.ts +1 -0
- package/packages/sdk/dist/index.d.ts.map +1 -1
- package/packages/sdk/dist/index.js +1 -0
- package/packages/sdk/dist/index.js.map +1 -1
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/sdk/dist/types.d.ts +2 -0
- package/packages/sdk/dist/types.d.ts.map +1 -1
- package/packages/sdk/package.json +27 -0
- package/packages/ui/dist/assets/{add-Cj0EIUcG.js → add-BtPPKW_S.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-DlyRsWoN.js → all-wallets-CliTUt-P.js} +1 -1
- package/packages/ui/dist/assets/{app-store-CXP08sks.js → app-store-Dn-qzfPP.js} +1 -1
- package/packages/ui/dist/assets/{apple-B62K6dJr.js → apple-CCxYFT90.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-BTuC5-tQ.js → arrow-bottom-Bo24o32F.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-dlgFXE0q.js → arrow-bottom-circle-DEnDTNB2.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-Uohbz9c6.js → arrow-left-ufrfqGG4.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-CH0vSHgl.js → arrow-right-BkX5DoAK.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-CxY6BKDT.js → arrow-top-CtvgpoOn.js} +1 -1
- package/packages/ui/dist/assets/{bank-Dz6PlF79.js → bank-CfyC7KhE.js} +1 -1
- package/packages/ui/dist/assets/{basic-CTV3Ph_S.js → basic-GLsmxA9Q.js} +1 -1
- package/packages/ui/dist/assets/{browser-DBRTpG2H.js → browser-BXl5SSvD.js} +1 -1
- package/packages/ui/dist/assets/{card-DWA4Ne8q.js → card-BwTrNMXe.js} +1 -1
- package/packages/ui/dist/assets/{ccip-CJCerfkJ.js → ccip-BMqD_Aug.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-Cx-ePFrg.js → checkmark-Dv3bs_r-.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-BhDIlGHD.js → checkmark-bold-v3XYVY9B.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-2uFzesS3.js → chevron-bottom-BtuSFYmE.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-BoKXXZ4E.js → chevron-left-Bj0j6Cyx.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-EUp-RhYw.js → chevron-right-QsZgfMHX.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-D51M78MN.js → chevron-top-B2LmuCUs.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-DrRbU0Rc.js → chrome-store-Be1HnDGs.js} +1 -1
- package/packages/ui/dist/assets/{clock-9mIuX-1G.js → clock-CCcblz1f.js} +1 -1
- package/packages/ui/dist/assets/{close-BvuXlx8s.js → close-rdnFQxXT.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-Bi7hJj5a.js → coinPlaceholder-fRMoMI0y.js} +1 -1
- package/packages/ui/dist/assets/{compass-C623d6DE.js → compass-CSPR58D9.js} +1 -1
- package/packages/ui/dist/assets/{copy-CFhZQkfE.js → copy-C5WgEU7N.js} +1 -1
- package/packages/ui/dist/assets/{core-BGl4d2YS.js → core-CVXQL7tu.js} +3 -3
- package/packages/ui/dist/assets/cursor-C04TRGDh.js +3 -0
- package/packages/ui/dist/assets/{cursor-transparent-FBFMyBY2.js → cursor-transparent-zEBpsOE4.js} +1 -1
- package/packages/ui/dist/assets/{desktop-Cco6Py8z.js → desktop-CdkiOqLx.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-GkX8GhOW.js → disconnect-B8I112zP.js} +1 -1
- package/packages/ui/dist/assets/{discord-BNJe-HNX.js → discord-x2BbO6cW.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-CoY2RMWw.js → etherscan-C2OxN9Au.js} +1 -1
- package/packages/ui/dist/assets/{events-DlxPGhin.js → events-DwmWfwqa.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-9thkvaBf.js → exclamation-triangle-IY-Iojhj.js} +1 -1
- package/packages/ui/dist/assets/{extension-BshOJ_bn.js → extension-Clnc3k0E.js} +1 -1
- package/packages/ui/dist/assets/{external-link-97rok_V_.js → external-link-DKjw-POo.js} +1 -1
- package/packages/ui/dist/assets/{facebook-BsiLEVlU.js → facebook-DA_F9Z5R.js} +1 -1
- package/packages/ui/dist/assets/{fallback-DlWsoHyh.js → fallback-CWZLJXZ9.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-CmRL47La.js → farcaster-CulNjKFL.js} +1 -1
- package/packages/ui/dist/assets/{filters-DXAWgNLO.js → filters-BpETqr4_.js} +1 -1
- package/packages/ui/dist/assets/{github-bCBJUbbe.js → github-DywjW1rE.js} +1 -1
- package/packages/ui/dist/assets/{google-CYTI0KrI.js → google-DH_kH7BK.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-LNgEbcGY.js → help-circle-DsMbG4i7.js} +1 -1
- package/packages/ui/dist/assets/{id-ChJn0Ugg.js → id-O5zOjYCk.js} +1 -1
- package/packages/ui/dist/assets/{image--Y7maC5b.js → image-BBJ-S1oj.js} +1 -1
- package/packages/ui/dist/assets/{index-BONuaN6W.js → index-9Als8Pk1.js} +1 -1
- package/packages/ui/dist/assets/{index-5MkegeeB.js → index-BP0G8SWV.js} +3 -3
- package/packages/ui/dist/assets/{index-BlU0aZ21.js → index-C9Q98LC_.js} +1 -1
- package/packages/ui/dist/assets/{index-CZMzzRJU.js → index-CMLePJSP.js} +1 -1
- package/packages/ui/dist/assets/{index-O4l6CrZ0.js → index-CkNlzfQa.js} +1 -1
- package/packages/ui/dist/assets/{index-BN0O-ZFZ.js → index-EVUMkF7X.js} +4 -4
- package/packages/ui/dist/assets/{index.es-CXlLR_xG.js → index.es-BS-p_sCc.js} +4 -4
- package/packages/ui/dist/assets/{info-DUq1c6sJ.js → info-CD3CYp-i.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-UobJ0GGG.js → info-circle-CXbPnDro.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-BI4WR-IB.js → lightbulb-Bz1DT8Ju.js} +1 -1
- package/packages/ui/dist/assets/{mail-BSN2fVMe.js → mail-Lj8n2gbA.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-B7CK8pn-.js → metamask-sdk-DwS0o7ov.js} +1 -1
- package/packages/ui/dist/assets/{mobile-BfuUs9p7.js → mobile-O_sAbq2l.js} +1 -1
- package/packages/ui/dist/assets/{more-C1zkGuE3.js → more-DdiT_mbp.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-CtiEl1UM.js → network-placeholder-Dx9MDHLN.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-C_B9PGkr.js → nftPlaceholder-K9kW2r88.js} +1 -1
- package/packages/ui/dist/assets/{off-B93fIkKw.js → off-BOYfR8XB.js} +1 -1
- package/packages/ui/dist/assets/{parseSignature-BKzLunwo.js → parseSignature-NiLF290o.js} +1 -1
- package/packages/ui/dist/assets/{play-store-DfDTySLA.js → play-store-DRuPz3YP.js} +1 -1
- package/packages/ui/dist/assets/{plus-_EYE7Soi.js → plus-BhHn5k_7.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-CSklhafe.js → qr-code-XQgVWw1M.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-CoH2EBIZ.js → recycle-horizontal-B3DKBHl3.js} +1 -1
- package/packages/ui/dist/assets/{refresh-COGV5RR9.js → refresh-Bdt5zEiy.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-YYxIj6hm.js → reown-logo-B3-LoRif.js} +1 -1
- package/packages/ui/dist/assets/{search-CpoWhaNF.js → search-CT85WnLr.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-ZWo-L7nJ.js → secp256k1-CSD4IkAn.js} +1 -1
- package/packages/ui/dist/assets/{send-CjEG2p8N.js → send-DFlOyILV.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-3V6lypqD.js → swapHorizontal-BnJarCPM.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-7swnGG5R.js → swapHorizontalBold-BdXwQcVw.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-zPdpOjAy.js → swapHorizontalMedium-DruY4Nll.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-2Mxr5XPm.js → swapHorizontalRoundedBold-BmU0rX2_.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical-D9KAlnz7.js → swapVertical-BDYBLaB-.js} +1 -1
- package/packages/ui/dist/assets/{telegram-DztV38YW.js → telegram-Dj0PC8gI.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-DWOvYMr0.js → three-dots-DCjLXmgH.js} +1 -1
- package/packages/ui/dist/assets/{twitch-B3UH6j0S.js → twitch-DtF7PahJ.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-C2lA-xQv.js → twitterIcon-D5fHAEXR.js} +1 -1
- package/packages/ui/dist/assets/{verify-BP_uBvwh.js → verify-CvDrZusr.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-DLByZnlA.js → verify-filled-CPKWSwyP.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-C2-cKwor.js → w3m-modal-DdzuRc6-.js} +1 -1
- package/packages/ui/dist/assets/{wallet-Bc7LMFHM.js → wallet-BDKdLwf0.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-DsjujZQW.js → wallet-placeholder-DjYKf3de.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-i_fC7jz3.js → walletconnect-DtsEmRsg.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-DIxNhxFp.js → warning-circle-vXvip1Eh.js} +1 -1
- package/packages/ui/dist/assets/{x-BamJJInV.js → x-CIVAuGSw.js} +1 -1
- package/packages/ui/dist/index.html +1 -1
- package/templates/default/.env.example +15 -1
- package/templates/default/examples/dca/agent.ts +1 -1
- package/templates/default/examples/dca/mandate.ts +1 -1
- package/templates/default/src/agent.ts +1 -1
- package/templates/default/tsconfig.json +5 -2
- package/templates/lifi-permissions/README.md +1 -1
- package/packages/ui/dist/assets/cursor-CUSm3LCL.js +0 -3
|
@@ -21541,7 +21541,7 @@ var require_mediaType = __commonJS({
|
|
|
21541
21541
|
var subtype = match[2];
|
|
21542
21542
|
var type = match[1];
|
|
21543
21543
|
if (match[3]) {
|
|
21544
|
-
var kvps =
|
|
21544
|
+
var kvps = splitParameters2(match[3]).map(splitKeyValuePair);
|
|
21545
21545
|
for (var j = 0; j < kvps.length; j++) {
|
|
21546
21546
|
var pair = kvps[j];
|
|
21547
21547
|
var key = pair[0].toLowerCase();
|
|
@@ -21659,7 +21659,7 @@ var require_mediaType = __commonJS({
|
|
|
21659
21659
|
accepts.length = j + 1;
|
|
21660
21660
|
return accepts;
|
|
21661
21661
|
}
|
|
21662
|
-
function
|
|
21662
|
+
function splitParameters2(str) {
|
|
21663
21663
|
var parameters = str.split(";");
|
|
21664
21664
|
for (var i = 1, j = 0; i < parameters.length; i++) {
|
|
21665
21665
|
if (quoteCount(parameters[j]) % 2 == 0) {
|
|
@@ -26374,7 +26374,7 @@ var require_websocket_server = __commonJS({
|
|
|
26374
26374
|
socket.on("error", socketOnError);
|
|
26375
26375
|
const key = req.headers["sec-websocket-key"];
|
|
26376
26376
|
const upgrade = req.headers.upgrade;
|
|
26377
|
-
const
|
|
26377
|
+
const version5 = +req.headers["sec-websocket-version"];
|
|
26378
26378
|
if (req.method !== "GET") {
|
|
26379
26379
|
const message = "Invalid HTTP method";
|
|
26380
26380
|
abortHandshakeOrEmitwsClientError(this, req, socket, 405, message);
|
|
@@ -26390,7 +26390,7 @@ var require_websocket_server = __commonJS({
|
|
|
26390
26390
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
26391
26391
|
return;
|
|
26392
26392
|
}
|
|
26393
|
-
if (
|
|
26393
|
+
if (version5 !== 13 && version5 !== 8) {
|
|
26394
26394
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
26395
26395
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
|
|
26396
26396
|
"Sec-WebSocket-Version": "13, 8"
|
|
@@ -26434,7 +26434,7 @@ var require_websocket_server = __commonJS({
|
|
|
26434
26434
|
}
|
|
26435
26435
|
if (this.options.verifyClient) {
|
|
26436
26436
|
const info = {
|
|
26437
|
-
origin: req.headers[`${
|
|
26437
|
+
origin: req.headers[`${version5 === 8 ? "sec-websocket-origin" : "origin"}`],
|
|
26438
26438
|
secure: !!(req.socket.authorized || req.socket.encrypted),
|
|
26439
26439
|
req
|
|
26440
26440
|
};
|
|
@@ -26567,819 +26567,84 @@ var require_websocket_server = __commonJS({
|
|
|
26567
26567
|
}
|
|
26568
26568
|
});
|
|
26569
26569
|
|
|
26570
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js
|
|
26571
|
-
var version;
|
|
26572
|
-
var init_version = __esm({
|
|
26573
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js"() {
|
|
26574
|
-
version = "1.2.3";
|
|
26575
|
-
}
|
|
26576
|
-
});
|
|
26577
|
-
|
|
26578
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/errors.js
|
|
26579
|
-
var BaseError;
|
|
26580
|
-
var init_errors = __esm({
|
|
26581
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/errors.js"() {
|
|
26582
|
-
init_version();
|
|
26583
|
-
BaseError = class _BaseError extends Error {
|
|
26584
|
-
constructor(shortMessage, args = {}) {
|
|
26585
|
-
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
26586
|
-
const docsPath9 = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
26587
|
-
const message = [
|
|
26588
|
-
shortMessage || "An error occurred.",
|
|
26589
|
-
"",
|
|
26590
|
-
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
26591
|
-
...docsPath9 ? [`Docs: https://abitype.dev${docsPath9}`] : [],
|
|
26592
|
-
...details ? [`Details: ${details}`] : [],
|
|
26593
|
-
`Version: abitype@${version}`
|
|
26594
|
-
].join("\n");
|
|
26595
|
-
super(message);
|
|
26596
|
-
Object.defineProperty(this, "details", {
|
|
26597
|
-
enumerable: true,
|
|
26598
|
-
configurable: true,
|
|
26599
|
-
writable: true,
|
|
26600
|
-
value: void 0
|
|
26601
|
-
});
|
|
26602
|
-
Object.defineProperty(this, "docsPath", {
|
|
26603
|
-
enumerable: true,
|
|
26604
|
-
configurable: true,
|
|
26605
|
-
writable: true,
|
|
26606
|
-
value: void 0
|
|
26607
|
-
});
|
|
26608
|
-
Object.defineProperty(this, "metaMessages", {
|
|
26609
|
-
enumerable: true,
|
|
26610
|
-
configurable: true,
|
|
26611
|
-
writable: true,
|
|
26612
|
-
value: void 0
|
|
26613
|
-
});
|
|
26614
|
-
Object.defineProperty(this, "shortMessage", {
|
|
26615
|
-
enumerable: true,
|
|
26616
|
-
configurable: true,
|
|
26617
|
-
writable: true,
|
|
26618
|
-
value: void 0
|
|
26619
|
-
});
|
|
26620
|
-
Object.defineProperty(this, "name", {
|
|
26621
|
-
enumerable: true,
|
|
26622
|
-
configurable: true,
|
|
26623
|
-
writable: true,
|
|
26624
|
-
value: "AbiTypeError"
|
|
26625
|
-
});
|
|
26626
|
-
if (args.cause)
|
|
26627
|
-
this.cause = args.cause;
|
|
26628
|
-
this.details = details;
|
|
26629
|
-
this.docsPath = docsPath9;
|
|
26630
|
-
this.metaMessages = args.metaMessages;
|
|
26631
|
-
this.shortMessage = shortMessage;
|
|
26632
|
-
}
|
|
26633
|
-
};
|
|
26634
|
-
}
|
|
26635
|
-
});
|
|
26636
|
-
|
|
26637
26570
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/regex.js
|
|
26638
26571
|
function execTyped(regex, string) {
|
|
26639
|
-
const match = regex.exec(string);
|
|
26640
|
-
return match?.groups;
|
|
26641
|
-
}
|
|
26642
|
-
var bytesRegex, integerRegex, isTupleRegex;
|
|
26643
|
-
var init_regex = __esm({
|
|
26644
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/regex.js"() {
|
|
26645
|
-
bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
26646
|
-
integerRegex = /^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)?$/;
|
|
26647
|
-
isTupleRegex = /^\(.+?\).*?$/;
|
|
26648
|
-
}
|
|
26649
|
-
});
|
|
26650
|
-
|
|
26651
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
26652
|
-
function formatAbiParameter(abiParameter) {
|
|
26653
|
-
let type = abiParameter.type;
|
|
26654
|
-
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
26655
|
-
type = "(";
|
|
26656
|
-
const length = abiParameter.components.length;
|
|
26657
|
-
for (let i = 0; i < length; i++) {
|
|
26658
|
-
const component = abiParameter.components[i];
|
|
26659
|
-
type += formatAbiParameter(component);
|
|
26660
|
-
if (i < length - 1)
|
|
26661
|
-
type += ", ";
|
|
26662
|
-
}
|
|
26663
|
-
const result = execTyped(tupleRegex, abiParameter.type);
|
|
26664
|
-
type += `)${result?.array || ""}`;
|
|
26665
|
-
return formatAbiParameter({
|
|
26666
|
-
...abiParameter,
|
|
26667
|
-
type
|
|
26668
|
-
});
|
|
26669
|
-
}
|
|
26670
|
-
if ("indexed" in abiParameter && abiParameter.indexed)
|
|
26671
|
-
type = `${type} indexed`;
|
|
26672
|
-
if (abiParameter.name)
|
|
26673
|
-
return `${type} ${abiParameter.name}`;
|
|
26674
|
-
return type;
|
|
26675
|
-
}
|
|
26676
|
-
var tupleRegex;
|
|
26677
|
-
var init_formatAbiParameter = __esm({
|
|
26678
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
|
|
26679
|
-
init_regex();
|
|
26680
|
-
tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
26681
|
-
}
|
|
26682
|
-
});
|
|
26683
|
-
|
|
26684
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
26685
|
-
function formatAbiParameters(abiParameters) {
|
|
26686
|
-
let params = "";
|
|
26687
|
-
const length = abiParameters.length;
|
|
26688
|
-
for (let i = 0; i < length; i++) {
|
|
26689
|
-
const abiParameter = abiParameters[i];
|
|
26690
|
-
params += formatAbiParameter(abiParameter);
|
|
26691
|
-
if (i !== length - 1)
|
|
26692
|
-
params += ", ";
|
|
26693
|
-
}
|
|
26694
|
-
return params;
|
|
26695
|
-
}
|
|
26696
|
-
var init_formatAbiParameters = __esm({
|
|
26697
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
|
|
26698
|
-
init_formatAbiParameter();
|
|
26699
|
-
}
|
|
26700
|
-
});
|
|
26701
|
-
|
|
26702
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
26703
|
-
function formatAbiItem(abiItem) {
|
|
26704
|
-
if (abiItem.type === "function")
|
|
26705
|
-
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
26706
|
-
if (abiItem.type === "event")
|
|
26707
|
-
return `event ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
26708
|
-
if (abiItem.type === "error")
|
|
26709
|
-
return `error ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
26710
|
-
if (abiItem.type === "constructor")
|
|
26711
|
-
return `constructor(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
26712
|
-
if (abiItem.type === "fallback")
|
|
26713
|
-
return `fallback() external${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
26714
|
-
return "receive() external payable";
|
|
26715
|
-
}
|
|
26716
|
-
var init_formatAbiItem = __esm({
|
|
26717
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
|
|
26718
|
-
init_formatAbiParameters();
|
|
26719
|
-
}
|
|
26720
|
-
});
|
|
26721
|
-
|
|
26722
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
26723
|
-
function isErrorSignature(signature) {
|
|
26724
|
-
return errorSignatureRegex.test(signature);
|
|
26725
|
-
}
|
|
26726
|
-
function execErrorSignature(signature) {
|
|
26727
|
-
return execTyped(errorSignatureRegex, signature);
|
|
26728
|
-
}
|
|
26729
|
-
function isEventSignature(signature) {
|
|
26730
|
-
return eventSignatureRegex.test(signature);
|
|
26731
|
-
}
|
|
26732
|
-
function execEventSignature(signature) {
|
|
26733
|
-
return execTyped(eventSignatureRegex, signature);
|
|
26734
|
-
}
|
|
26735
|
-
function isFunctionSignature(signature) {
|
|
26736
|
-
return functionSignatureRegex.test(signature);
|
|
26737
|
-
}
|
|
26738
|
-
function execFunctionSignature(signature) {
|
|
26739
|
-
return execTyped(functionSignatureRegex, signature);
|
|
26740
|
-
}
|
|
26741
|
-
function isStructSignature(signature) {
|
|
26742
|
-
return structSignatureRegex.test(signature);
|
|
26743
|
-
}
|
|
26744
|
-
function execStructSignature(signature) {
|
|
26745
|
-
return execTyped(structSignatureRegex, signature);
|
|
26746
|
-
}
|
|
26747
|
-
function isConstructorSignature(signature) {
|
|
26748
|
-
return constructorSignatureRegex.test(signature);
|
|
26749
|
-
}
|
|
26750
|
-
function execConstructorSignature(signature) {
|
|
26751
|
-
return execTyped(constructorSignatureRegex, signature);
|
|
26752
|
-
}
|
|
26753
|
-
function isFallbackSignature(signature) {
|
|
26754
|
-
return fallbackSignatureRegex.test(signature);
|
|
26755
|
-
}
|
|
26756
|
-
function execFallbackSignature(signature) {
|
|
26757
|
-
return execTyped(fallbackSignatureRegex, signature);
|
|
26758
|
-
}
|
|
26759
|
-
function isReceiveSignature(signature) {
|
|
26760
|
-
return receiveSignatureRegex.test(signature);
|
|
26761
|
-
}
|
|
26762
|
-
var errorSignatureRegex, eventSignatureRegex, functionSignatureRegex, structSignatureRegex, constructorSignatureRegex, fallbackSignatureRegex, receiveSignatureRegex, eventModifiers, functionModifiers;
|
|
26763
|
-
var init_signatures = __esm({
|
|
26764
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js"() {
|
|
26765
|
-
init_regex();
|
|
26766
|
-
errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
26767
|
-
eventSignatureRegex = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
26768
|
-
functionSignatureRegex = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
26769
|
-
structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
26770
|
-
constructorSignatureRegex = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
26771
|
-
fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
26772
|
-
receiveSignatureRegex = /^receive\(\) external payable$/;
|
|
26773
|
-
eventModifiers = /* @__PURE__ */ new Set(["indexed"]);
|
|
26774
|
-
functionModifiers = /* @__PURE__ */ new Set([
|
|
26775
|
-
"calldata",
|
|
26776
|
-
"memory",
|
|
26777
|
-
"storage"
|
|
26778
|
-
]);
|
|
26779
|
-
}
|
|
26780
|
-
});
|
|
26781
|
-
|
|
26782
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
26783
|
-
var UnknownTypeError, UnknownSolidityTypeError;
|
|
26784
|
-
var init_abiItem = __esm({
|
|
26785
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js"() {
|
|
26786
|
-
init_errors();
|
|
26787
|
-
UnknownTypeError = class extends BaseError {
|
|
26788
|
-
constructor({ type }) {
|
|
26789
|
-
super("Unknown type.", {
|
|
26790
|
-
metaMessages: [
|
|
26791
|
-
`Type "${type}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
|
|
26792
|
-
]
|
|
26793
|
-
});
|
|
26794
|
-
Object.defineProperty(this, "name", {
|
|
26795
|
-
enumerable: true,
|
|
26796
|
-
configurable: true,
|
|
26797
|
-
writable: true,
|
|
26798
|
-
value: "UnknownTypeError"
|
|
26799
|
-
});
|
|
26800
|
-
}
|
|
26801
|
-
};
|
|
26802
|
-
UnknownSolidityTypeError = class extends BaseError {
|
|
26803
|
-
constructor({ type }) {
|
|
26804
|
-
super("Unknown type.", {
|
|
26805
|
-
metaMessages: [`Type "${type}" is not a valid ABI type.`]
|
|
26806
|
-
});
|
|
26807
|
-
Object.defineProperty(this, "name", {
|
|
26808
|
-
enumerable: true,
|
|
26809
|
-
configurable: true,
|
|
26810
|
-
writable: true,
|
|
26811
|
-
value: "UnknownSolidityTypeError"
|
|
26812
|
-
});
|
|
26813
|
-
}
|
|
26814
|
-
};
|
|
26815
|
-
}
|
|
26816
|
-
});
|
|
26817
|
-
|
|
26818
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
26819
|
-
var InvalidParameterError, SolidityProtectedKeywordError, InvalidModifierError, InvalidFunctionModifierError, InvalidAbiTypeParameterError;
|
|
26820
|
-
var init_abiParameter = __esm({
|
|
26821
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js"() {
|
|
26822
|
-
init_errors();
|
|
26823
|
-
InvalidParameterError = class extends BaseError {
|
|
26824
|
-
constructor({ param }) {
|
|
26825
|
-
super("Invalid ABI parameter.", {
|
|
26826
|
-
details: param
|
|
26827
|
-
});
|
|
26828
|
-
Object.defineProperty(this, "name", {
|
|
26829
|
-
enumerable: true,
|
|
26830
|
-
configurable: true,
|
|
26831
|
-
writable: true,
|
|
26832
|
-
value: "InvalidParameterError"
|
|
26833
|
-
});
|
|
26834
|
-
}
|
|
26835
|
-
};
|
|
26836
|
-
SolidityProtectedKeywordError = class extends BaseError {
|
|
26837
|
-
constructor({ param, name }) {
|
|
26838
|
-
super("Invalid ABI parameter.", {
|
|
26839
|
-
details: param,
|
|
26840
|
-
metaMessages: [
|
|
26841
|
-
`"${name}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
|
|
26842
|
-
]
|
|
26843
|
-
});
|
|
26844
|
-
Object.defineProperty(this, "name", {
|
|
26845
|
-
enumerable: true,
|
|
26846
|
-
configurable: true,
|
|
26847
|
-
writable: true,
|
|
26848
|
-
value: "SolidityProtectedKeywordError"
|
|
26849
|
-
});
|
|
26850
|
-
}
|
|
26851
|
-
};
|
|
26852
|
-
InvalidModifierError = class extends BaseError {
|
|
26853
|
-
constructor({ param, type, modifier }) {
|
|
26854
|
-
super("Invalid ABI parameter.", {
|
|
26855
|
-
details: param,
|
|
26856
|
-
metaMessages: [
|
|
26857
|
-
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`
|
|
26858
|
-
]
|
|
26859
|
-
});
|
|
26860
|
-
Object.defineProperty(this, "name", {
|
|
26861
|
-
enumerable: true,
|
|
26862
|
-
configurable: true,
|
|
26863
|
-
writable: true,
|
|
26864
|
-
value: "InvalidModifierError"
|
|
26865
|
-
});
|
|
26866
|
-
}
|
|
26867
|
-
};
|
|
26868
|
-
InvalidFunctionModifierError = class extends BaseError {
|
|
26869
|
-
constructor({ param, type, modifier }) {
|
|
26870
|
-
super("Invalid ABI parameter.", {
|
|
26871
|
-
details: param,
|
|
26872
|
-
metaMessages: [
|
|
26873
|
-
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`,
|
|
26874
|
-
`Data location can only be specified for array, struct, or mapping types, but "${modifier}" was given.`
|
|
26875
|
-
]
|
|
26876
|
-
});
|
|
26877
|
-
Object.defineProperty(this, "name", {
|
|
26878
|
-
enumerable: true,
|
|
26879
|
-
configurable: true,
|
|
26880
|
-
writable: true,
|
|
26881
|
-
value: "InvalidFunctionModifierError"
|
|
26882
|
-
});
|
|
26883
|
-
}
|
|
26884
|
-
};
|
|
26885
|
-
InvalidAbiTypeParameterError = class extends BaseError {
|
|
26886
|
-
constructor({ abiParameter }) {
|
|
26887
|
-
super("Invalid ABI parameter.", {
|
|
26888
|
-
details: JSON.stringify(abiParameter, null, 2),
|
|
26889
|
-
metaMessages: ["ABI parameter type is invalid."]
|
|
26890
|
-
});
|
|
26891
|
-
Object.defineProperty(this, "name", {
|
|
26892
|
-
enumerable: true,
|
|
26893
|
-
configurable: true,
|
|
26894
|
-
writable: true,
|
|
26895
|
-
value: "InvalidAbiTypeParameterError"
|
|
26896
|
-
});
|
|
26897
|
-
}
|
|
26898
|
-
};
|
|
26899
|
-
}
|
|
26900
|
-
});
|
|
26901
|
-
|
|
26902
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
26903
|
-
var InvalidSignatureError, UnknownSignatureError, InvalidStructSignatureError;
|
|
26904
|
-
var init_signature = __esm({
|
|
26905
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/signature.js"() {
|
|
26906
|
-
init_errors();
|
|
26907
|
-
InvalidSignatureError = class extends BaseError {
|
|
26908
|
-
constructor({ signature, type }) {
|
|
26909
|
-
super(`Invalid ${type} signature.`, {
|
|
26910
|
-
details: signature
|
|
26911
|
-
});
|
|
26912
|
-
Object.defineProperty(this, "name", {
|
|
26913
|
-
enumerable: true,
|
|
26914
|
-
configurable: true,
|
|
26915
|
-
writable: true,
|
|
26916
|
-
value: "InvalidSignatureError"
|
|
26917
|
-
});
|
|
26918
|
-
}
|
|
26919
|
-
};
|
|
26920
|
-
UnknownSignatureError = class extends BaseError {
|
|
26921
|
-
constructor({ signature }) {
|
|
26922
|
-
super("Unknown signature.", {
|
|
26923
|
-
details: signature
|
|
26924
|
-
});
|
|
26925
|
-
Object.defineProperty(this, "name", {
|
|
26926
|
-
enumerable: true,
|
|
26927
|
-
configurable: true,
|
|
26928
|
-
writable: true,
|
|
26929
|
-
value: "UnknownSignatureError"
|
|
26930
|
-
});
|
|
26931
|
-
}
|
|
26932
|
-
};
|
|
26933
|
-
InvalidStructSignatureError = class extends BaseError {
|
|
26934
|
-
constructor({ signature }) {
|
|
26935
|
-
super("Invalid struct signature.", {
|
|
26936
|
-
details: signature,
|
|
26937
|
-
metaMessages: ["No properties exist."]
|
|
26938
|
-
});
|
|
26939
|
-
Object.defineProperty(this, "name", {
|
|
26940
|
-
enumerable: true,
|
|
26941
|
-
configurable: true,
|
|
26942
|
-
writable: true,
|
|
26943
|
-
value: "InvalidStructSignatureError"
|
|
26944
|
-
});
|
|
26945
|
-
}
|
|
26946
|
-
};
|
|
26947
|
-
}
|
|
26948
|
-
});
|
|
26949
|
-
|
|
26950
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
26951
|
-
var CircularReferenceError;
|
|
26952
|
-
var init_struct = __esm({
|
|
26953
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/struct.js"() {
|
|
26954
|
-
init_errors();
|
|
26955
|
-
CircularReferenceError = class extends BaseError {
|
|
26956
|
-
constructor({ type }) {
|
|
26957
|
-
super("Circular reference detected.", {
|
|
26958
|
-
metaMessages: [`Struct "${type}" is a circular reference.`]
|
|
26959
|
-
});
|
|
26960
|
-
Object.defineProperty(this, "name", {
|
|
26961
|
-
enumerable: true,
|
|
26962
|
-
configurable: true,
|
|
26963
|
-
writable: true,
|
|
26964
|
-
value: "CircularReferenceError"
|
|
26965
|
-
});
|
|
26966
|
-
}
|
|
26967
|
-
};
|
|
26968
|
-
}
|
|
26969
|
-
});
|
|
26970
|
-
|
|
26971
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
26972
|
-
var InvalidParenthesisError;
|
|
26973
|
-
var init_splitParameters = __esm({
|
|
26974
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js"() {
|
|
26975
|
-
init_errors();
|
|
26976
|
-
InvalidParenthesisError = class extends BaseError {
|
|
26977
|
-
constructor({ current, depth }) {
|
|
26978
|
-
super("Unbalanced parentheses.", {
|
|
26979
|
-
metaMessages: [
|
|
26980
|
-
`"${current.trim()}" has too many ${depth > 0 ? "opening" : "closing"} parentheses.`
|
|
26981
|
-
],
|
|
26982
|
-
details: `Depth "${depth}"`
|
|
26983
|
-
});
|
|
26984
|
-
Object.defineProperty(this, "name", {
|
|
26985
|
-
enumerable: true,
|
|
26986
|
-
configurable: true,
|
|
26987
|
-
writable: true,
|
|
26988
|
-
value: "InvalidParenthesisError"
|
|
26989
|
-
});
|
|
26990
|
-
}
|
|
26991
|
-
};
|
|
26992
|
-
}
|
|
26993
|
-
});
|
|
26994
|
-
|
|
26995
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
26996
|
-
function getParameterCacheKey(param, type, structs) {
|
|
26997
|
-
let structKey = "";
|
|
26998
|
-
if (structs)
|
|
26999
|
-
for (const struct of Object.entries(structs)) {
|
|
27000
|
-
if (!struct)
|
|
27001
|
-
continue;
|
|
27002
|
-
let propertyKey = "";
|
|
27003
|
-
for (const property of struct[1]) {
|
|
27004
|
-
propertyKey += `[${property.type}${property.name ? `:${property.name}` : ""}]`;
|
|
27005
|
-
}
|
|
27006
|
-
structKey += `(${struct[0]}{${propertyKey}})`;
|
|
27007
|
-
}
|
|
27008
|
-
if (type)
|
|
27009
|
-
return `${type}:${param}${structKey}`;
|
|
27010
|
-
return `${param}${structKey}`;
|
|
27011
|
-
}
|
|
27012
|
-
var parameterCache;
|
|
27013
|
-
var init_cache = __esm({
|
|
27014
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/cache.js"() {
|
|
27015
|
-
parameterCache = /* @__PURE__ */ new Map([
|
|
27016
|
-
// Unnamed
|
|
27017
|
-
["address", { type: "address" }],
|
|
27018
|
-
["bool", { type: "bool" }],
|
|
27019
|
-
["bytes", { type: "bytes" }],
|
|
27020
|
-
["bytes32", { type: "bytes32" }],
|
|
27021
|
-
["int", { type: "int256" }],
|
|
27022
|
-
["int256", { type: "int256" }],
|
|
27023
|
-
["string", { type: "string" }],
|
|
27024
|
-
["uint", { type: "uint256" }],
|
|
27025
|
-
["uint8", { type: "uint8" }],
|
|
27026
|
-
["uint16", { type: "uint16" }],
|
|
27027
|
-
["uint24", { type: "uint24" }],
|
|
27028
|
-
["uint32", { type: "uint32" }],
|
|
27029
|
-
["uint64", { type: "uint64" }],
|
|
27030
|
-
["uint96", { type: "uint96" }],
|
|
27031
|
-
["uint112", { type: "uint112" }],
|
|
27032
|
-
["uint160", { type: "uint160" }],
|
|
27033
|
-
["uint192", { type: "uint192" }],
|
|
27034
|
-
["uint256", { type: "uint256" }],
|
|
27035
|
-
// Named
|
|
27036
|
-
["address owner", { type: "address", name: "owner" }],
|
|
27037
|
-
["address to", { type: "address", name: "to" }],
|
|
27038
|
-
["bool approved", { type: "bool", name: "approved" }],
|
|
27039
|
-
["bytes _data", { type: "bytes", name: "_data" }],
|
|
27040
|
-
["bytes data", { type: "bytes", name: "data" }],
|
|
27041
|
-
["bytes signature", { type: "bytes", name: "signature" }],
|
|
27042
|
-
["bytes32 hash", { type: "bytes32", name: "hash" }],
|
|
27043
|
-
["bytes32 r", { type: "bytes32", name: "r" }],
|
|
27044
|
-
["bytes32 root", { type: "bytes32", name: "root" }],
|
|
27045
|
-
["bytes32 s", { type: "bytes32", name: "s" }],
|
|
27046
|
-
["string name", { type: "string", name: "name" }],
|
|
27047
|
-
["string symbol", { type: "string", name: "symbol" }],
|
|
27048
|
-
["string tokenURI", { type: "string", name: "tokenURI" }],
|
|
27049
|
-
["uint tokenId", { type: "uint256", name: "tokenId" }],
|
|
27050
|
-
["uint8 v", { type: "uint8", name: "v" }],
|
|
27051
|
-
["uint256 balance", { type: "uint256", name: "balance" }],
|
|
27052
|
-
["uint256 tokenId", { type: "uint256", name: "tokenId" }],
|
|
27053
|
-
["uint256 value", { type: "uint256", name: "value" }],
|
|
27054
|
-
// Indexed
|
|
27055
|
-
[
|
|
27056
|
-
"event:address indexed from",
|
|
27057
|
-
{ type: "address", name: "from", indexed: true }
|
|
27058
|
-
],
|
|
27059
|
-
["event:address indexed to", { type: "address", name: "to", indexed: true }],
|
|
27060
|
-
[
|
|
27061
|
-
"event:uint indexed tokenId",
|
|
27062
|
-
{ type: "uint256", name: "tokenId", indexed: true }
|
|
27063
|
-
],
|
|
27064
|
-
[
|
|
27065
|
-
"event:uint256 indexed tokenId",
|
|
27066
|
-
{ type: "uint256", name: "tokenId", indexed: true }
|
|
27067
|
-
]
|
|
27068
|
-
]);
|
|
27069
|
-
}
|
|
27070
|
-
});
|
|
27071
|
-
|
|
27072
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
27073
|
-
function parseSignature(signature, structs = {}) {
|
|
27074
|
-
if (isFunctionSignature(signature))
|
|
27075
|
-
return parseFunctionSignature(signature, structs);
|
|
27076
|
-
if (isEventSignature(signature))
|
|
27077
|
-
return parseEventSignature(signature, structs);
|
|
27078
|
-
if (isErrorSignature(signature))
|
|
27079
|
-
return parseErrorSignature(signature, structs);
|
|
27080
|
-
if (isConstructorSignature(signature))
|
|
27081
|
-
return parseConstructorSignature(signature, structs);
|
|
27082
|
-
if (isFallbackSignature(signature))
|
|
27083
|
-
return parseFallbackSignature(signature);
|
|
27084
|
-
if (isReceiveSignature(signature))
|
|
27085
|
-
return {
|
|
27086
|
-
type: "receive",
|
|
27087
|
-
stateMutability: "payable"
|
|
27088
|
-
};
|
|
27089
|
-
throw new UnknownSignatureError({ signature });
|
|
27090
|
-
}
|
|
27091
|
-
function parseFunctionSignature(signature, structs = {}) {
|
|
27092
|
-
const match = execFunctionSignature(signature);
|
|
27093
|
-
if (!match)
|
|
27094
|
-
throw new InvalidSignatureError({ signature, type: "function" });
|
|
27095
|
-
const inputParams = splitParameters(match.parameters);
|
|
27096
|
-
const inputs = [];
|
|
27097
|
-
const inputLength = inputParams.length;
|
|
27098
|
-
for (let i = 0; i < inputLength; i++) {
|
|
27099
|
-
inputs.push(parseAbiParameter(inputParams[i], {
|
|
27100
|
-
modifiers: functionModifiers,
|
|
27101
|
-
structs,
|
|
27102
|
-
type: "function"
|
|
27103
|
-
}));
|
|
27104
|
-
}
|
|
27105
|
-
const outputs = [];
|
|
27106
|
-
if (match.returns) {
|
|
27107
|
-
const outputParams = splitParameters(match.returns);
|
|
27108
|
-
const outputLength = outputParams.length;
|
|
27109
|
-
for (let i = 0; i < outputLength; i++) {
|
|
27110
|
-
outputs.push(parseAbiParameter(outputParams[i], {
|
|
27111
|
-
modifiers: functionModifiers,
|
|
27112
|
-
structs,
|
|
27113
|
-
type: "function"
|
|
27114
|
-
}));
|
|
27115
|
-
}
|
|
27116
|
-
}
|
|
27117
|
-
return {
|
|
27118
|
-
name: match.name,
|
|
27119
|
-
type: "function",
|
|
27120
|
-
stateMutability: match.stateMutability ?? "nonpayable",
|
|
27121
|
-
inputs,
|
|
27122
|
-
outputs
|
|
27123
|
-
};
|
|
27124
|
-
}
|
|
27125
|
-
function parseEventSignature(signature, structs = {}) {
|
|
27126
|
-
const match = execEventSignature(signature);
|
|
27127
|
-
if (!match)
|
|
27128
|
-
throw new InvalidSignatureError({ signature, type: "event" });
|
|
27129
|
-
const params = splitParameters(match.parameters);
|
|
27130
|
-
const abiParameters = [];
|
|
27131
|
-
const length = params.length;
|
|
27132
|
-
for (let i = 0; i < length; i++)
|
|
27133
|
-
abiParameters.push(parseAbiParameter(params[i], {
|
|
27134
|
-
modifiers: eventModifiers,
|
|
27135
|
-
structs,
|
|
27136
|
-
type: "event"
|
|
27137
|
-
}));
|
|
27138
|
-
return { name: match.name, type: "event", inputs: abiParameters };
|
|
27139
|
-
}
|
|
27140
|
-
function parseErrorSignature(signature, structs = {}) {
|
|
27141
|
-
const match = execErrorSignature(signature);
|
|
27142
|
-
if (!match)
|
|
27143
|
-
throw new InvalidSignatureError({ signature, type: "error" });
|
|
27144
|
-
const params = splitParameters(match.parameters);
|
|
27145
|
-
const abiParameters = [];
|
|
27146
|
-
const length = params.length;
|
|
27147
|
-
for (let i = 0; i < length; i++)
|
|
27148
|
-
abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
|
|
27149
|
-
return { name: match.name, type: "error", inputs: abiParameters };
|
|
27150
|
-
}
|
|
27151
|
-
function parseConstructorSignature(signature, structs = {}) {
|
|
27152
|
-
const match = execConstructorSignature(signature);
|
|
27153
|
-
if (!match)
|
|
27154
|
-
throw new InvalidSignatureError({ signature, type: "constructor" });
|
|
27155
|
-
const params = splitParameters(match.parameters);
|
|
27156
|
-
const abiParameters = [];
|
|
27157
|
-
const length = params.length;
|
|
27158
|
-
for (let i = 0; i < length; i++)
|
|
27159
|
-
abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
|
|
27160
|
-
return {
|
|
27161
|
-
type: "constructor",
|
|
27162
|
-
stateMutability: match.stateMutability ?? "nonpayable",
|
|
27163
|
-
inputs: abiParameters
|
|
27164
|
-
};
|
|
27165
|
-
}
|
|
27166
|
-
function parseFallbackSignature(signature) {
|
|
27167
|
-
const match = execFallbackSignature(signature);
|
|
27168
|
-
if (!match)
|
|
27169
|
-
throw new InvalidSignatureError({ signature, type: "fallback" });
|
|
27170
|
-
return {
|
|
27171
|
-
type: "fallback",
|
|
27172
|
-
stateMutability: match.stateMutability ?? "nonpayable"
|
|
27173
|
-
};
|
|
26572
|
+
const match = regex.exec(string);
|
|
26573
|
+
return match?.groups;
|
|
27174
26574
|
}
|
|
27175
|
-
|
|
27176
|
-
|
|
27177
|
-
if (parameterCache.has(parameterCacheKey))
|
|
27178
|
-
return parameterCache.get(parameterCacheKey);
|
|
27179
|
-
const isTuple = isTupleRegex.test(param);
|
|
27180
|
-
const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
|
|
27181
|
-
if (!match)
|
|
27182
|
-
throw new InvalidParameterError({ param });
|
|
27183
|
-
if (match.name && isSolidityKeyword(match.name))
|
|
27184
|
-
throw new SolidityProtectedKeywordError({ param, name: match.name });
|
|
27185
|
-
const name = match.name ? { name: match.name } : {};
|
|
27186
|
-
const indexed = match.modifier === "indexed" ? { indexed: true } : {};
|
|
27187
|
-
const structs = options?.structs ?? {};
|
|
27188
|
-
let type;
|
|
27189
|
-
let components = {};
|
|
27190
|
-
if (isTuple) {
|
|
27191
|
-
type = "tuple";
|
|
27192
|
-
const params = splitParameters(match.type);
|
|
27193
|
-
const components_ = [];
|
|
27194
|
-
const length = params.length;
|
|
27195
|
-
for (let i = 0; i < length; i++) {
|
|
27196
|
-
components_.push(parseAbiParameter(params[i], { structs }));
|
|
27197
|
-
}
|
|
27198
|
-
components = { components: components_ };
|
|
27199
|
-
} else if (match.type in structs) {
|
|
27200
|
-
type = "tuple";
|
|
27201
|
-
components = { components: structs[match.type] };
|
|
27202
|
-
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
27203
|
-
type = `${match.type}256`;
|
|
27204
|
-
} else if (match.type === "address payable") {
|
|
27205
|
-
type = "address";
|
|
27206
|
-
} else {
|
|
27207
|
-
type = match.type;
|
|
27208
|
-
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
27209
|
-
throw new UnknownSolidityTypeError({ type });
|
|
27210
|
-
}
|
|
27211
|
-
if (match.modifier) {
|
|
27212
|
-
if (!options?.modifiers?.has?.(match.modifier))
|
|
27213
|
-
throw new InvalidModifierError({
|
|
27214
|
-
param,
|
|
27215
|
-
type: options?.type,
|
|
27216
|
-
modifier: match.modifier
|
|
27217
|
-
});
|
|
27218
|
-
if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
|
|
27219
|
-
throw new InvalidFunctionModifierError({
|
|
27220
|
-
param,
|
|
27221
|
-
type: options?.type,
|
|
27222
|
-
modifier: match.modifier
|
|
27223
|
-
});
|
|
26575
|
+
var init_regex = __esm({
|
|
26576
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/regex.js"() {
|
|
27224
26577
|
}
|
|
27225
|
-
|
|
27226
|
-
|
|
27227
|
-
|
|
27228
|
-
|
|
27229
|
-
|
|
27230
|
-
|
|
27231
|
-
|
|
27232
|
-
|
|
27233
|
-
|
|
27234
|
-
|
|
27235
|
-
|
|
27236
|
-
|
|
27237
|
-
|
|
27238
|
-
const tail = params.slice(i + 1);
|
|
27239
|
-
switch (char) {
|
|
27240
|
-
case ",":
|
|
27241
|
-
return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
|
|
27242
|
-
case "(":
|
|
27243
|
-
return splitParameters(tail, result, `${current}${char}`, depth + 1);
|
|
27244
|
-
case ")":
|
|
27245
|
-
return splitParameters(tail, result, `${current}${char}`, depth - 1);
|
|
27246
|
-
default:
|
|
27247
|
-
return splitParameters(tail, result, `${current}${char}`, depth);
|
|
26578
|
+
});
|
|
26579
|
+
|
|
26580
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
26581
|
+
function formatAbiParameter(abiParameter) {
|
|
26582
|
+
let type = abiParameter.type;
|
|
26583
|
+
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
26584
|
+
type = "(";
|
|
26585
|
+
const length = abiParameter.components.length;
|
|
26586
|
+
for (let i = 0; i < length; i++) {
|
|
26587
|
+
const component = abiParameter.components[i];
|
|
26588
|
+
type += formatAbiParameter(component);
|
|
26589
|
+
if (i < length - 1)
|
|
26590
|
+
type += ", ";
|
|
27248
26591
|
}
|
|
26592
|
+
const result = execTyped(tupleRegex, abiParameter.type);
|
|
26593
|
+
type += `)${result?.array || ""}`;
|
|
26594
|
+
return formatAbiParameter({
|
|
26595
|
+
...abiParameter,
|
|
26596
|
+
type
|
|
26597
|
+
});
|
|
27249
26598
|
}
|
|
27250
|
-
if (
|
|
27251
|
-
|
|
27252
|
-
if (
|
|
27253
|
-
|
|
27254
|
-
|
|
27255
|
-
return result;
|
|
27256
|
-
}
|
|
27257
|
-
function isSolidityType(type) {
|
|
27258
|
-
return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex.test(type) || integerRegex.test(type);
|
|
27259
|
-
}
|
|
27260
|
-
function isSolidityKeyword(name) {
|
|
27261
|
-
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex.test(name) || integerRegex.test(name) || protectedKeywordsRegex.test(name);
|
|
27262
|
-
}
|
|
27263
|
-
function isValidDataLocation(type, isArray) {
|
|
27264
|
-
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
26599
|
+
if ("indexed" in abiParameter && abiParameter.indexed)
|
|
26600
|
+
type = `${type} indexed`;
|
|
26601
|
+
if (abiParameter.name)
|
|
26602
|
+
return `${type} ${abiParameter.name}`;
|
|
26603
|
+
return type;
|
|
27265
26604
|
}
|
|
27266
|
-
var
|
|
27267
|
-
var
|
|
27268
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/
|
|
26605
|
+
var tupleRegex;
|
|
26606
|
+
var init_formatAbiParameter = __esm({
|
|
26607
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
|
|
27269
26608
|
init_regex();
|
|
27270
|
-
|
|
27271
|
-
init_abiParameter();
|
|
27272
|
-
init_signature();
|
|
27273
|
-
init_splitParameters();
|
|
27274
|
-
init_cache();
|
|
27275
|
-
init_signatures();
|
|
27276
|
-
abiParameterWithoutTupleRegex = /^(?<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$_]*))?$/;
|
|
27277
|
-
abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
27278
|
-
dynamicIntegerRegex = /^u?int$/;
|
|
27279
|
-
protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
26609
|
+
tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
27280
26610
|
}
|
|
27281
26611
|
});
|
|
27282
26612
|
|
|
27283
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/
|
|
27284
|
-
function
|
|
27285
|
-
|
|
27286
|
-
const signaturesLength = signatures.length;
|
|
27287
|
-
for (let i = 0; i < signaturesLength; i++) {
|
|
27288
|
-
const signature = signatures[i];
|
|
27289
|
-
if (!isStructSignature(signature))
|
|
27290
|
-
continue;
|
|
27291
|
-
const match = execStructSignature(signature);
|
|
27292
|
-
if (!match)
|
|
27293
|
-
throw new InvalidSignatureError({ signature, type: "struct" });
|
|
27294
|
-
const properties = match.properties.split(";");
|
|
27295
|
-
const components = [];
|
|
27296
|
-
const propertiesLength = properties.length;
|
|
27297
|
-
for (let k = 0; k < propertiesLength; k++) {
|
|
27298
|
-
const property = properties[k];
|
|
27299
|
-
const trimmed = property.trim();
|
|
27300
|
-
if (!trimmed)
|
|
27301
|
-
continue;
|
|
27302
|
-
const abiParameter = parseAbiParameter(trimmed, {
|
|
27303
|
-
type: "struct"
|
|
27304
|
-
});
|
|
27305
|
-
components.push(abiParameter);
|
|
27306
|
-
}
|
|
27307
|
-
if (!components.length)
|
|
27308
|
-
throw new InvalidStructSignatureError({ signature });
|
|
27309
|
-
shallowStructs[match.name] = components;
|
|
27310
|
-
}
|
|
27311
|
-
const resolvedStructs = {};
|
|
27312
|
-
const entries = Object.entries(shallowStructs);
|
|
27313
|
-
const entriesLength = entries.length;
|
|
27314
|
-
for (let i = 0; i < entriesLength; i++) {
|
|
27315
|
-
const [name, parameters] = entries[i];
|
|
27316
|
-
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
27317
|
-
}
|
|
27318
|
-
return resolvedStructs;
|
|
27319
|
-
}
|
|
27320
|
-
function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
|
|
27321
|
-
const components = [];
|
|
26613
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
26614
|
+
function formatAbiParameters(abiParameters) {
|
|
26615
|
+
let params = "";
|
|
27322
26616
|
const length = abiParameters.length;
|
|
27323
26617
|
for (let i = 0; i < length; i++) {
|
|
27324
26618
|
const abiParameter = abiParameters[i];
|
|
27325
|
-
|
|
27326
|
-
if (
|
|
27327
|
-
|
|
27328
|
-
else {
|
|
27329
|
-
const match = execTyped(typeWithoutTupleRegex, abiParameter.type);
|
|
27330
|
-
if (!match?.type)
|
|
27331
|
-
throw new InvalidAbiTypeParameterError({ abiParameter });
|
|
27332
|
-
const { array, type } = match;
|
|
27333
|
-
if (type in structs) {
|
|
27334
|
-
if (ancestors.has(type))
|
|
27335
|
-
throw new CircularReferenceError({ type });
|
|
27336
|
-
components.push({
|
|
27337
|
-
...abiParameter,
|
|
27338
|
-
type: `tuple${array ?? ""}`,
|
|
27339
|
-
components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
27340
|
-
});
|
|
27341
|
-
} else {
|
|
27342
|
-
if (isSolidityType(type))
|
|
27343
|
-
components.push(abiParameter);
|
|
27344
|
-
else
|
|
27345
|
-
throw new UnknownTypeError({ type });
|
|
27346
|
-
}
|
|
27347
|
-
}
|
|
26619
|
+
params += formatAbiParameter(abiParameter);
|
|
26620
|
+
if (i !== length - 1)
|
|
26621
|
+
params += ", ";
|
|
27348
26622
|
}
|
|
27349
|
-
return
|
|
26623
|
+
return params;
|
|
27350
26624
|
}
|
|
27351
|
-
var
|
|
27352
|
-
|
|
27353
|
-
|
|
27354
|
-
init_regex();
|
|
27355
|
-
init_abiItem();
|
|
27356
|
-
init_abiParameter();
|
|
27357
|
-
init_signature();
|
|
27358
|
-
init_struct();
|
|
27359
|
-
init_signatures();
|
|
27360
|
-
init_utils();
|
|
27361
|
-
typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
26625
|
+
var init_formatAbiParameters = __esm({
|
|
26626
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
|
|
26627
|
+
init_formatAbiParameter();
|
|
27362
26628
|
}
|
|
27363
26629
|
});
|
|
27364
26630
|
|
|
27365
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/
|
|
27366
|
-
function
|
|
27367
|
-
|
|
27368
|
-
|
|
27369
|
-
|
|
27370
|
-
|
|
27371
|
-
|
|
27372
|
-
|
|
27373
|
-
|
|
27374
|
-
|
|
27375
|
-
|
|
27376
|
-
|
|
26631
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
26632
|
+
function formatAbiItem(abiItem) {
|
|
26633
|
+
if (abiItem.type === "function")
|
|
26634
|
+
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
26635
|
+
if (abiItem.type === "event")
|
|
26636
|
+
return `event ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
26637
|
+
if (abiItem.type === "error")
|
|
26638
|
+
return `error ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
26639
|
+
if (abiItem.type === "constructor")
|
|
26640
|
+
return `constructor(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
26641
|
+
if (abiItem.type === "fallback")
|
|
26642
|
+
return `fallback() external${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
26643
|
+
return "receive() external payable";
|
|
27377
26644
|
}
|
|
27378
|
-
var
|
|
27379
|
-
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/
|
|
27380
|
-
|
|
27381
|
-
init_structs();
|
|
27382
|
-
init_utils();
|
|
26645
|
+
var init_formatAbiItem = __esm({
|
|
26646
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
|
|
26647
|
+
init_formatAbiParameters();
|
|
27383
26648
|
}
|
|
27384
26649
|
});
|
|
27385
26650
|
|
|
@@ -27387,7 +26652,6 @@ var init_parseAbi = __esm({
|
|
|
27387
26652
|
var init_exports = __esm({
|
|
27388
26653
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/exports/index.js"() {
|
|
27389
26654
|
init_formatAbiItem();
|
|
27390
|
-
init_parseAbi();
|
|
27391
26655
|
}
|
|
27392
26656
|
});
|
|
27393
26657
|
|
|
@@ -27440,10 +26704,10 @@ var init_size = __esm({
|
|
|
27440
26704
|
});
|
|
27441
26705
|
|
|
27442
26706
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/version.js
|
|
27443
|
-
var
|
|
27444
|
-
var
|
|
26707
|
+
var version;
|
|
26708
|
+
var init_version = __esm({
|
|
27445
26709
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/version.js"() {
|
|
27446
|
-
|
|
26710
|
+
version = "2.51.3";
|
|
27447
26711
|
}
|
|
27448
26712
|
});
|
|
27449
26713
|
|
|
@@ -27455,15 +26719,15 @@ function walk(err, fn) {
|
|
|
27455
26719
|
return walk(err.cause, fn);
|
|
27456
26720
|
return fn ? null : err;
|
|
27457
26721
|
}
|
|
27458
|
-
var errorConfig,
|
|
26722
|
+
var errorConfig, BaseError;
|
|
27459
26723
|
var init_base = __esm({
|
|
27460
26724
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/base.js"() {
|
|
27461
|
-
|
|
26725
|
+
init_version();
|
|
27462
26726
|
errorConfig = {
|
|
27463
26727
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath9 = "", docsSlug }) => docsPath9 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath9}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
27464
|
-
version: `viem@${
|
|
26728
|
+
version: `viem@${version}`
|
|
27465
26729
|
};
|
|
27466
|
-
|
|
26730
|
+
BaseError = class _BaseError extends Error {
|
|
27467
26731
|
constructor(shortMessage, args = {}) {
|
|
27468
26732
|
const details = (() => {
|
|
27469
26733
|
if (args.cause instanceof _BaseError)
|
|
@@ -27528,7 +26792,7 @@ var init_base = __esm({
|
|
|
27528
26792
|
this.metaMessages = args.metaMessages;
|
|
27529
26793
|
this.name = args.name ?? this.name;
|
|
27530
26794
|
this.shortMessage = shortMessage;
|
|
27531
|
-
this.version =
|
|
26795
|
+
this.version = version;
|
|
27532
26796
|
}
|
|
27533
26797
|
walk(fn) {
|
|
27534
26798
|
return walk(this, fn);
|
|
@@ -27544,7 +26808,7 @@ var init_abi = __esm({
|
|
|
27544
26808
|
init_formatAbiItem2();
|
|
27545
26809
|
init_size();
|
|
27546
26810
|
init_base();
|
|
27547
|
-
AbiEncodingArrayLengthMismatchError = class extends
|
|
26811
|
+
AbiEncodingArrayLengthMismatchError = class extends BaseError {
|
|
27548
26812
|
constructor({ expectedLength, givenLength, type }) {
|
|
27549
26813
|
super([
|
|
27550
26814
|
`ABI encoding array length mismatch for type ${type}.`,
|
|
@@ -27553,12 +26817,12 @@ var init_abi = __esm({
|
|
|
27553
26817
|
].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
27554
26818
|
}
|
|
27555
26819
|
};
|
|
27556
|
-
AbiEncodingBytesSizeMismatchError = class extends
|
|
26820
|
+
AbiEncodingBytesSizeMismatchError = class extends BaseError {
|
|
27557
26821
|
constructor({ expectedSize, value }) {
|
|
27558
26822
|
super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
27559
26823
|
}
|
|
27560
26824
|
};
|
|
27561
|
-
AbiEncodingLengthMismatchError = class extends
|
|
26825
|
+
AbiEncodingLengthMismatchError = class extends BaseError {
|
|
27562
26826
|
constructor({ expectedLength, givenLength }) {
|
|
27563
26827
|
super([
|
|
27564
26828
|
"ABI encoding params/values length mismatch.",
|
|
@@ -27567,7 +26831,7 @@ var init_abi = __esm({
|
|
|
27567
26831
|
].join("\n"), { name: "AbiEncodingLengthMismatchError" });
|
|
27568
26832
|
}
|
|
27569
26833
|
};
|
|
27570
|
-
AbiFunctionNotFoundError = class extends
|
|
26834
|
+
AbiFunctionNotFoundError = class extends BaseError {
|
|
27571
26835
|
constructor(functionName, { docsPath: docsPath9 } = {}) {
|
|
27572
26836
|
super([
|
|
27573
26837
|
`Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
|
|
@@ -27578,7 +26842,7 @@ var init_abi = __esm({
|
|
|
27578
26842
|
});
|
|
27579
26843
|
}
|
|
27580
26844
|
};
|
|
27581
|
-
AbiItemAmbiguityError = class extends
|
|
26845
|
+
AbiItemAmbiguityError = class extends BaseError {
|
|
27582
26846
|
constructor(x, y) {
|
|
27583
26847
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
27584
26848
|
metaMessages: [
|
|
@@ -27592,14 +26856,14 @@ var init_abi = __esm({
|
|
|
27592
26856
|
});
|
|
27593
26857
|
}
|
|
27594
26858
|
};
|
|
27595
|
-
BytesSizeMismatchError = class extends
|
|
26859
|
+
BytesSizeMismatchError = class extends BaseError {
|
|
27596
26860
|
constructor({ expectedSize, givenSize }) {
|
|
27597
26861
|
super(`Expected bytes${expectedSize}, got bytes${givenSize}.`, {
|
|
27598
26862
|
name: "BytesSizeMismatchError"
|
|
27599
26863
|
});
|
|
27600
26864
|
}
|
|
27601
26865
|
};
|
|
27602
|
-
InvalidAbiEncodingTypeError = class extends
|
|
26866
|
+
InvalidAbiEncodingTypeError = class extends BaseError {
|
|
27603
26867
|
constructor(type, { docsPath: docsPath9 }) {
|
|
27604
26868
|
super([
|
|
27605
26869
|
`Type "${type}" is not a valid encoding type.`,
|
|
@@ -27607,14 +26871,14 @@ var init_abi = __esm({
|
|
|
27607
26871
|
].join("\n"), { docsPath: docsPath9, name: "InvalidAbiEncodingType" });
|
|
27608
26872
|
}
|
|
27609
26873
|
};
|
|
27610
|
-
InvalidArrayError = class extends
|
|
26874
|
+
InvalidArrayError = class extends BaseError {
|
|
27611
26875
|
constructor(value) {
|
|
27612
26876
|
super([`Value "${value}" is not a valid array.`].join("\n"), {
|
|
27613
26877
|
name: "InvalidArrayError"
|
|
27614
26878
|
});
|
|
27615
26879
|
}
|
|
27616
26880
|
};
|
|
27617
|
-
InvalidDefinitionTypeError = class extends
|
|
26881
|
+
InvalidDefinitionTypeError = class extends BaseError {
|
|
27618
26882
|
constructor(type) {
|
|
27619
26883
|
super([
|
|
27620
26884
|
`"${type}" is not a valid definition type.`,
|
|
@@ -27630,12 +26894,12 @@ var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
|
27630
26894
|
var init_data = __esm({
|
|
27631
26895
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/data.js"() {
|
|
27632
26896
|
init_base();
|
|
27633
|
-
SliceOffsetOutOfBoundsError = class extends
|
|
26897
|
+
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
27634
26898
|
constructor({ offset, position, size: size6 }) {
|
|
27635
26899
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size6}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
27636
26900
|
}
|
|
27637
26901
|
};
|
|
27638
|
-
SizeExceedsPaddingSizeError = class extends
|
|
26902
|
+
SizeExceedsPaddingSizeError = class extends BaseError {
|
|
27639
26903
|
constructor({ size: size6, targetSize, type }) {
|
|
27640
26904
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size6}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
27641
26905
|
}
|
|
@@ -27688,12 +26952,12 @@ var IntegerOutOfRangeError, SizeOverflowError;
|
|
|
27688
26952
|
var init_encoding = __esm({
|
|
27689
26953
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/encoding.js"() {
|
|
27690
26954
|
init_base();
|
|
27691
|
-
IntegerOutOfRangeError = class extends
|
|
26955
|
+
IntegerOutOfRangeError = class extends BaseError {
|
|
27692
26956
|
constructor({ max, min, signed, size: size6, value }) {
|
|
27693
26957
|
super(`Number "${value}" is not in safe ${size6 ? `${size6 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
27694
26958
|
}
|
|
27695
26959
|
};
|
|
27696
|
-
SizeOverflowError = class extends
|
|
26960
|
+
SizeOverflowError = class extends BaseError {
|
|
27697
26961
|
constructor({ givenSize, maxSize }) {
|
|
27698
26962
|
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
27699
26963
|
}
|
|
@@ -27882,7 +27146,7 @@ function hexToBytes(hex_, opts = {}) {
|
|
|
27882
27146
|
const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
|
|
27883
27147
|
const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
|
|
27884
27148
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
27885
|
-
throw new
|
|
27149
|
+
throw new BaseError(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
27886
27150
|
}
|
|
27887
27151
|
bytes[index2] = nibbleLeft * 16 + nibbleRight;
|
|
27888
27152
|
}
|
|
@@ -28128,7 +27392,7 @@ function randomBytes(bytesLength = 32) {
|
|
|
28128
27392
|
throw new Error("crypto.getRandomValues must be defined");
|
|
28129
27393
|
}
|
|
28130
27394
|
var isLE, swap32IfBE, hasHexBuiltin, hexes2, asciis, Hash;
|
|
28131
|
-
var
|
|
27395
|
+
var init_utils = __esm({
|
|
28132
27396
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js"() {
|
|
28133
27397
|
init_cryptoNode();
|
|
28134
27398
|
isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
@@ -28189,7 +27453,7 @@ var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SH
|
|
|
28189
27453
|
var init_sha3 = __esm({
|
|
28190
27454
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js"() {
|
|
28191
27455
|
init_u64();
|
|
28192
|
-
|
|
27456
|
+
init_utils();
|
|
28193
27457
|
_0n = BigInt(0);
|
|
28194
27458
|
_1n = BigInt(1);
|
|
28195
27459
|
_2n = BigInt(2);
|
|
@@ -28402,7 +27666,7 @@ function normalizeSignature(signature) {
|
|
|
28402
27666
|
current += char;
|
|
28403
27667
|
}
|
|
28404
27668
|
if (!valid)
|
|
28405
|
-
throw new
|
|
27669
|
+
throw new BaseError("Unable to normalize signature.");
|
|
28406
27670
|
return result;
|
|
28407
27671
|
}
|
|
28408
27672
|
var init_normalizeSignature = __esm({
|
|
@@ -28453,7 +27717,7 @@ var InvalidAddressError;
|
|
|
28453
27717
|
var init_address = __esm({
|
|
28454
27718
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/address.js"() {
|
|
28455
27719
|
init_base();
|
|
28456
|
-
InvalidAddressError = class extends
|
|
27720
|
+
InvalidAddressError = class extends BaseError {
|
|
28457
27721
|
constructor({ address }) {
|
|
28458
27722
|
super(`Address "${address}" is invalid.`, {
|
|
28459
27723
|
metaMessages: [
|
|
@@ -28639,11 +27903,11 @@ var init_slice = __esm({
|
|
|
28639
27903
|
});
|
|
28640
27904
|
|
|
28641
27905
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/utils/regex.js
|
|
28642
|
-
var
|
|
27906
|
+
var bytesRegex, integerRegex;
|
|
28643
27907
|
var init_regex2 = __esm({
|
|
28644
27908
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/utils/regex.js"() {
|
|
28645
|
-
|
|
28646
|
-
|
|
27909
|
+
bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
27910
|
+
integerRegex = /^(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)?$/;
|
|
28647
27911
|
}
|
|
28648
27912
|
});
|
|
28649
27913
|
|
|
@@ -28689,7 +27953,7 @@ function prepareParam({ param, value }) {
|
|
|
28689
27953
|
}
|
|
28690
27954
|
if (param.type.startsWith("uint") || param.type.startsWith("int")) {
|
|
28691
27955
|
const signed = param.type.startsWith("int");
|
|
28692
|
-
const [, , size6 = "256"] =
|
|
27956
|
+
const [, , size6 = "256"] = integerRegex.exec(param.type) ?? [];
|
|
28693
27957
|
return encodeNumber(value, {
|
|
28694
27958
|
signed,
|
|
28695
27959
|
size: Number(size6)
|
|
@@ -28793,7 +28057,7 @@ function encodeBytes(value, { param }) {
|
|
|
28793
28057
|
}
|
|
28794
28058
|
function encodeBool(value) {
|
|
28795
28059
|
if (typeof value !== "boolean")
|
|
28796
|
-
throw new
|
|
28060
|
+
throw new BaseError(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
28797
28061
|
return { dynamic: false, encoded: padHex(boolToHex(value)) };
|
|
28798
28062
|
}
|
|
28799
28063
|
function encodeNumber(value, { signed, size: size6 = 256 }) {
|
|
@@ -29065,19 +28329,19 @@ var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededErr
|
|
|
29065
28329
|
var init_cursor = __esm({
|
|
29066
28330
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/cursor.js"() {
|
|
29067
28331
|
init_base();
|
|
29068
|
-
NegativeOffsetError = class extends
|
|
28332
|
+
NegativeOffsetError = class extends BaseError {
|
|
29069
28333
|
constructor({ offset }) {
|
|
29070
28334
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
29071
28335
|
name: "NegativeOffsetError"
|
|
29072
28336
|
});
|
|
29073
28337
|
}
|
|
29074
28338
|
};
|
|
29075
|
-
PositionOutOfBoundsError = class extends
|
|
28339
|
+
PositionOutOfBoundsError = class extends BaseError {
|
|
29076
28340
|
constructor({ length, position }) {
|
|
29077
28341
|
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, { name: "PositionOutOfBoundsError" });
|
|
29078
28342
|
}
|
|
29079
28343
|
};
|
|
29080
|
-
RecursiveReadLimitExceededError = class extends
|
|
28344
|
+
RecursiveReadLimitExceededError = class extends BaseError {
|
|
29081
28345
|
constructor({ count, limit }) {
|
|
29082
28346
|
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
29083
28347
|
}
|
|
@@ -29326,14 +28590,14 @@ var InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeyS
|
|
|
29326
28590
|
var init_transaction = __esm({
|
|
29327
28591
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/transaction.js"() {
|
|
29328
28592
|
init_base();
|
|
29329
|
-
InvalidLegacyVError = class extends
|
|
28593
|
+
InvalidLegacyVError = class extends BaseError {
|
|
29330
28594
|
constructor({ v }) {
|
|
29331
28595
|
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
|
29332
28596
|
name: "InvalidLegacyVError"
|
|
29333
28597
|
});
|
|
29334
28598
|
}
|
|
29335
28599
|
};
|
|
29336
|
-
InvalidSerializableTransactionError = class extends
|
|
28600
|
+
InvalidSerializableTransactionError = class extends BaseError {
|
|
29337
28601
|
constructor({ transaction }) {
|
|
29338
28602
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
29339
28603
|
metaMessages: [
|
|
@@ -29354,7 +28618,7 @@ var init_transaction = __esm({
|
|
|
29354
28618
|
});
|
|
29355
28619
|
}
|
|
29356
28620
|
};
|
|
29357
|
-
InvalidStorageKeySizeError = class extends
|
|
28621
|
+
InvalidStorageKeySizeError = class extends BaseError {
|
|
29358
28622
|
constructor({ storageKey }) {
|
|
29359
28623
|
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
29360
28624
|
}
|
|
@@ -29460,7 +28724,7 @@ function getSizeOfLength(length) {
|
|
|
29460
28724
|
return 3;
|
|
29461
28725
|
if (length < 2 ** 32)
|
|
29462
28726
|
return 4;
|
|
29463
|
-
throw new
|
|
28727
|
+
throw new BaseError("Length is too large.");
|
|
29464
28728
|
}
|
|
29465
28729
|
var init_toRlp = __esm({
|
|
29466
28730
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/utils/encoding/toRlp.js"() {
|
|
@@ -29503,7 +28767,7 @@ var init_node = __esm({
|
|
|
29503
28767
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/node.js"() {
|
|
29504
28768
|
init_formatGwei();
|
|
29505
28769
|
init_base();
|
|
29506
|
-
ExecutionRevertedError = class extends
|
|
28770
|
+
ExecutionRevertedError = class extends BaseError {
|
|
29507
28771
|
constructor({ cause, message } = {}) {
|
|
29508
28772
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
29509
28773
|
super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
|
|
@@ -29524,7 +28788,7 @@ var init_node = __esm({
|
|
|
29524
28788
|
writable: true,
|
|
29525
28789
|
value: /execution reverted|gas required exceeds allowance/
|
|
29526
28790
|
});
|
|
29527
|
-
FeeCapTooHighError = class extends
|
|
28791
|
+
FeeCapTooHighError = class extends BaseError {
|
|
29528
28792
|
constructor({ cause, maxFeePerGas } = {}) {
|
|
29529
28793
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
29530
28794
|
cause,
|
|
@@ -29538,7 +28802,7 @@ var init_node = __esm({
|
|
|
29538
28802
|
writable: true,
|
|
29539
28803
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
29540
28804
|
});
|
|
29541
|
-
FeeCapTooLowError = class extends
|
|
28805
|
+
FeeCapTooLowError = class extends BaseError {
|
|
29542
28806
|
constructor({ cause, maxFeePerGas } = {}) {
|
|
29543
28807
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
29544
28808
|
cause,
|
|
@@ -29552,7 +28816,7 @@ var init_node = __esm({
|
|
|
29552
28816
|
writable: true,
|
|
29553
28817
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
29554
28818
|
});
|
|
29555
|
-
NonceTooHighError = class extends
|
|
28819
|
+
NonceTooHighError = class extends BaseError {
|
|
29556
28820
|
constructor({ cause, nonce } = {}) {
|
|
29557
28821
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause, name: "NonceTooHighError" });
|
|
29558
28822
|
}
|
|
@@ -29563,7 +28827,7 @@ var init_node = __esm({
|
|
|
29563
28827
|
writable: true,
|
|
29564
28828
|
value: /nonce too high/
|
|
29565
28829
|
});
|
|
29566
|
-
NonceTooLowError = class extends
|
|
28830
|
+
NonceTooLowError = class extends BaseError {
|
|
29567
28831
|
constructor({ cause, nonce } = {}) {
|
|
29568
28832
|
super([
|
|
29569
28833
|
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -29577,7 +28841,7 @@ var init_node = __esm({
|
|
|
29577
28841
|
writable: true,
|
|
29578
28842
|
value: /nonce too low|transaction already imported|already known/
|
|
29579
28843
|
});
|
|
29580
|
-
NonceMaxValueError = class extends
|
|
28844
|
+
NonceMaxValueError = class extends BaseError {
|
|
29581
28845
|
constructor({ cause, nonce } = {}) {
|
|
29582
28846
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause, name: "NonceMaxValueError" });
|
|
29583
28847
|
}
|
|
@@ -29588,7 +28852,7 @@ var init_node = __esm({
|
|
|
29588
28852
|
writable: true,
|
|
29589
28853
|
value: /nonce has max value/
|
|
29590
28854
|
});
|
|
29591
|
-
InsufficientFundsError = class extends
|
|
28855
|
+
InsufficientFundsError = class extends BaseError {
|
|
29592
28856
|
constructor({ cause } = {}) {
|
|
29593
28857
|
super([
|
|
29594
28858
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -29614,7 +28878,7 @@ var init_node = __esm({
|
|
|
29614
28878
|
writable: true,
|
|
29615
28879
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
29616
28880
|
});
|
|
29617
|
-
IntrinsicGasTooHighError = class extends
|
|
28881
|
+
IntrinsicGasTooHighError = class extends BaseError {
|
|
29618
28882
|
constructor({ cause, gas } = {}) {
|
|
29619
28883
|
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
29620
28884
|
cause,
|
|
@@ -29628,7 +28892,7 @@ var init_node = __esm({
|
|
|
29628
28892
|
writable: true,
|
|
29629
28893
|
value: /intrinsic gas too high|gas limit reached/
|
|
29630
28894
|
});
|
|
29631
|
-
IntrinsicGasTooLowError = class extends
|
|
28895
|
+
IntrinsicGasTooLowError = class extends BaseError {
|
|
29632
28896
|
constructor({ cause, gas } = {}) {
|
|
29633
28897
|
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
|
|
29634
28898
|
cause,
|
|
@@ -29642,7 +28906,7 @@ var init_node = __esm({
|
|
|
29642
28906
|
writable: true,
|
|
29643
28907
|
value: /intrinsic gas too low/
|
|
29644
28908
|
});
|
|
29645
|
-
TransactionTypeNotSupportedError = class extends
|
|
28909
|
+
TransactionTypeNotSupportedError = class extends BaseError {
|
|
29646
28910
|
constructor({ cause }) {
|
|
29647
28911
|
super("The transaction type is not supported for this chain.", {
|
|
29648
28912
|
cause,
|
|
@@ -29656,7 +28920,7 @@ var init_node = __esm({
|
|
|
29656
28920
|
writable: true,
|
|
29657
28921
|
value: /transaction type not valid/
|
|
29658
28922
|
});
|
|
29659
|
-
TipAboveFeeCapError = class extends
|
|
28923
|
+
TipAboveFeeCapError = class extends BaseError {
|
|
29660
28924
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas } = {}) {
|
|
29661
28925
|
super([
|
|
29662
28926
|
`The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
|
|
@@ -29838,7 +29102,7 @@ function Maj(a, b, c) {
|
|
|
29838
29102
|
var HashMD, SHA256_IV, SHA512_IV;
|
|
29839
29103
|
var init_md = __esm({
|
|
29840
29104
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js"() {
|
|
29841
|
-
|
|
29105
|
+
init_utils();
|
|
29842
29106
|
HashMD = class extends Hash {
|
|
29843
29107
|
constructor(blockLen, outputLen, padOffset, isLE2) {
|
|
29844
29108
|
super();
|
|
@@ -29966,7 +29230,7 @@ var init_sha2 = __esm({
|
|
|
29966
29230
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js"() {
|
|
29967
29231
|
init_md();
|
|
29968
29232
|
init_u64();
|
|
29969
|
-
|
|
29233
|
+
init_utils();
|
|
29970
29234
|
SHA256_K = /* @__PURE__ */ Uint32Array.from([
|
|
29971
29235
|
1116352408,
|
|
29972
29236
|
1899447441,
|
|
@@ -30334,10 +29598,10 @@ var init_sha2562 = __esm({
|
|
|
30334
29598
|
|
|
30335
29599
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
30336
29600
|
function commitmentToVersionedHash(parameters) {
|
|
30337
|
-
const { commitment, version:
|
|
29601
|
+
const { commitment, version: version5 = 1 } = parameters;
|
|
30338
29602
|
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
|
30339
29603
|
const versionedHash = sha2563(commitment, "bytes");
|
|
30340
|
-
versionedHash.set([
|
|
29604
|
+
versionedHash.set([version5], 0);
|
|
30341
29605
|
return to === "bytes" ? versionedHash : bytesToHex(versionedHash);
|
|
30342
29606
|
}
|
|
30343
29607
|
var init_commitmentToVersionedHash = __esm({
|
|
@@ -30349,14 +29613,14 @@ var init_commitmentToVersionedHash = __esm({
|
|
|
30349
29613
|
|
|
30350
29614
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
|
30351
29615
|
function commitmentsToVersionedHashes(parameters) {
|
|
30352
|
-
const { commitments, version:
|
|
29616
|
+
const { commitments, version: version5 } = parameters;
|
|
30353
29617
|
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
|
30354
29618
|
const hashes = [];
|
|
30355
29619
|
for (const commitment of commitments) {
|
|
30356
29620
|
hashes.push(commitmentToVersionedHash({
|
|
30357
29621
|
commitment,
|
|
30358
29622
|
to,
|
|
30359
|
-
version:
|
|
29623
|
+
version: version5
|
|
30360
29624
|
}));
|
|
30361
29625
|
}
|
|
30362
29626
|
return hashes;
|
|
@@ -30395,7 +29659,7 @@ var init_blob2 = __esm({
|
|
|
30395
29659
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/blob.js"() {
|
|
30396
29660
|
init_kzg();
|
|
30397
29661
|
init_base();
|
|
30398
|
-
BlobSizeTooLargeError = class extends
|
|
29662
|
+
BlobSizeTooLargeError = class extends BaseError {
|
|
30399
29663
|
constructor({ maxSize, size: size6 }) {
|
|
30400
29664
|
super("Blob size is too large.", {
|
|
30401
29665
|
metaMessages: [`Max: ${maxSize} bytes`, `Given: ${size6} bytes`],
|
|
@@ -30403,12 +29667,12 @@ var init_blob2 = __esm({
|
|
|
30403
29667
|
});
|
|
30404
29668
|
}
|
|
30405
29669
|
};
|
|
30406
|
-
EmptyBlobError = class extends
|
|
29670
|
+
EmptyBlobError = class extends BaseError {
|
|
30407
29671
|
constructor() {
|
|
30408
29672
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
30409
29673
|
}
|
|
30410
29674
|
};
|
|
30411
|
-
InvalidVersionedHashSizeError = class extends
|
|
29675
|
+
InvalidVersionedHashSizeError = class extends BaseError {
|
|
30412
29676
|
constructor({ hash: hash4, size: size6 }) {
|
|
30413
29677
|
super(`Versioned hash "${hash4}" size is invalid.`, {
|
|
30414
29678
|
metaMessages: ["Expected: 32", `Received: ${size6}`],
|
|
@@ -30416,12 +29680,12 @@ var init_blob2 = __esm({
|
|
|
30416
29680
|
});
|
|
30417
29681
|
}
|
|
30418
29682
|
};
|
|
30419
|
-
InvalidVersionedHashVersionError = class extends
|
|
30420
|
-
constructor({ hash: hash4, version:
|
|
29683
|
+
InvalidVersionedHashVersionError = class extends BaseError {
|
|
29684
|
+
constructor({ hash: hash4, version: version5 }) {
|
|
30421
29685
|
super(`Versioned hash "${hash4}" version is invalid.`, {
|
|
30422
29686
|
metaMessages: [
|
|
30423
29687
|
`Expected: ${versionedHashVersionKzg}`,
|
|
30424
|
-
`Received: ${
|
|
29688
|
+
`Received: ${version5}`
|
|
30425
29689
|
],
|
|
30426
29690
|
name: "InvalidVersionedHashVersionError"
|
|
30427
29691
|
});
|
|
@@ -30725,7 +29989,7 @@ function memoized(fn) {
|
|
|
30725
29989
|
};
|
|
30726
29990
|
}
|
|
30727
29991
|
var _0n2, _1n2, hasHexBuiltin2, hexes3, asciis2, isPosBig, bitMask, u8n, u8fr, validatorFns;
|
|
30728
|
-
var
|
|
29992
|
+
var init_utils2 = __esm({
|
|
30729
29993
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js"() {
|
|
30730
29994
|
_0n2 = /* @__PURE__ */ BigInt(0);
|
|
30731
29995
|
_1n2 = /* @__PURE__ */ BigInt(1);
|
|
@@ -30756,7 +30020,7 @@ var InvalidChainIdError;
|
|
|
30756
30020
|
var init_chain = __esm({
|
|
30757
30021
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/chain.js"() {
|
|
30758
30022
|
init_base();
|
|
30759
|
-
InvalidChainIdError = class extends
|
|
30023
|
+
InvalidChainIdError = class extends BaseError {
|
|
30760
30024
|
constructor({ chainId }) {
|
|
30761
30025
|
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
30762
30026
|
}
|
|
@@ -30786,13 +30050,13 @@ function assertTransactionEIP4844(transaction) {
|
|
|
30786
30050
|
throw new EmptyBlobError();
|
|
30787
30051
|
for (const hash4 of blobVersionedHashes) {
|
|
30788
30052
|
const size_ = size(hash4);
|
|
30789
|
-
const
|
|
30053
|
+
const version5 = hexToNumber(slice(hash4, 0, 1));
|
|
30790
30054
|
if (size_ !== 32)
|
|
30791
30055
|
throw new InvalidVersionedHashSizeError({ hash: hash4, size: size_ });
|
|
30792
|
-
if (
|
|
30056
|
+
if (version5 !== versionedHashVersionKzg)
|
|
30793
30057
|
throw new InvalidVersionedHashVersionError({
|
|
30794
30058
|
hash: hash4,
|
|
30795
|
-
version:
|
|
30059
|
+
version: version5
|
|
30796
30060
|
});
|
|
30797
30061
|
}
|
|
30798
30062
|
}
|
|
@@ -30816,7 +30080,7 @@ function assertTransactionEIP2930(transaction) {
|
|
|
30816
30080
|
if (to && !isAddress(to))
|
|
30817
30081
|
throw new InvalidAddressError({ address: to });
|
|
30818
30082
|
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
30819
|
-
throw new
|
|
30083
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
30820
30084
|
if (gasPrice && gasPrice > maxUint256)
|
|
30821
30085
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
30822
30086
|
}
|
|
@@ -30827,7 +30091,7 @@ function assertTransactionLegacy(transaction) {
|
|
|
30827
30091
|
if (typeof chainId !== "undefined" && chainId <= 0)
|
|
30828
30092
|
throw new InvalidChainIdError({ chainId });
|
|
30829
30093
|
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
30830
|
-
throw new
|
|
30094
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
30831
30095
|
if (gasPrice && gasPrice > maxUint256)
|
|
30832
30096
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
30833
30097
|
}
|
|
@@ -31131,7 +30395,7 @@ var Rho160, Id160, Pi160, idxLR, idxL, idxR, shifts160, shiftsL160, shiftsR160,
|
|
|
31131
30395
|
var init_legacy = __esm({
|
|
31132
30396
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/legacy.js"() {
|
|
31133
30397
|
init_md();
|
|
31134
|
-
|
|
30398
|
+
init_utils();
|
|
31135
30399
|
Rho160 = /* @__PURE__ */ Uint8Array.from([
|
|
31136
30400
|
7,
|
|
31137
30401
|
4,
|
|
@@ -31286,14 +30550,14 @@ var init_typedData = __esm({
|
|
|
31286
30550
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/errors/typedData.js"() {
|
|
31287
30551
|
init_stringify();
|
|
31288
30552
|
init_base();
|
|
31289
|
-
InvalidDomainError = class extends
|
|
30553
|
+
InvalidDomainError = class extends BaseError {
|
|
31290
30554
|
constructor({ domain }) {
|
|
31291
30555
|
super(`Invalid domain "${stringify(domain)}".`, {
|
|
31292
30556
|
metaMessages: ["Must be a valid EIP-712 domain."]
|
|
31293
30557
|
});
|
|
31294
30558
|
}
|
|
31295
30559
|
};
|
|
31296
|
-
InvalidPrimaryTypeError = class extends
|
|
30560
|
+
InvalidPrimaryTypeError = class extends BaseError {
|
|
31297
30561
|
constructor({ primaryType, types }) {
|
|
31298
30562
|
super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types))}\`.`, {
|
|
31299
30563
|
docsPath: "/api/glossary/Errors#typeddatainvalidprimarytypeerror",
|
|
@@ -31301,7 +30565,7 @@ var init_typedData = __esm({
|
|
|
31301
30565
|
});
|
|
31302
30566
|
}
|
|
31303
30567
|
};
|
|
31304
|
-
InvalidStructTypeError = class extends
|
|
30568
|
+
InvalidStructTypeError = class extends BaseError {
|
|
31305
30569
|
constructor({ type }) {
|
|
31306
30570
|
super(`Struct type "${type}" is invalid.`, {
|
|
31307
30571
|
metaMessages: ["Struct type must not be a Solidity type."],
|
|
@@ -31319,7 +30583,7 @@ function validateTypedData(parameters) {
|
|
|
31319
30583
|
for (const param of struct) {
|
|
31320
30584
|
const { name, type } = param;
|
|
31321
30585
|
const value = data[name];
|
|
31322
|
-
const integerMatch = type.match(
|
|
30586
|
+
const integerMatch = type.match(integerRegex);
|
|
31323
30587
|
if (integerMatch && (typeof value === "number" || typeof value === "bigint")) {
|
|
31324
30588
|
const [_type, base, size_] = integerMatch;
|
|
31325
30589
|
numberToHex(value, {
|
|
@@ -31329,7 +30593,7 @@ function validateTypedData(parameters) {
|
|
|
31329
30593
|
}
|
|
31330
30594
|
if (type === "address" && typeof value === "string" && !isAddress(value))
|
|
31331
30595
|
throw new InvalidAddressError({ address: value });
|
|
31332
|
-
const bytesMatch = type.match(
|
|
30596
|
+
const bytesMatch = type.match(bytesRegex);
|
|
31333
30597
|
if (bytesMatch) {
|
|
31334
30598
|
const [_type, size_] = bytesMatch;
|
|
31335
30599
|
if (size_ && size(value) !== Number.parseInt(size_, 10))
|
|
@@ -31511,7 +30775,7 @@ var init_hashTypedData = __esm({
|
|
|
31511
30775
|
var HMAC, hmac;
|
|
31512
30776
|
var init_hmac = __esm({
|
|
31513
30777
|
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js"() {
|
|
31514
|
-
|
|
30778
|
+
init_utils();
|
|
31515
30779
|
HMAC = class extends Hash {
|
|
31516
30780
|
constructor(hash4, _key) {
|
|
31517
30781
|
super();
|
|
@@ -31831,8 +31095,8 @@ function mapHashToField(key, fieldOrder, isLE2 = false) {
|
|
|
31831
31095
|
var _0n3, _1n3, _2n2, _3n, _4n, _5n, _8n, FIELD_FIELDS;
|
|
31832
31096
|
var init_modular = __esm({
|
|
31833
31097
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js"() {
|
|
31098
|
+
init_utils();
|
|
31834
31099
|
init_utils2();
|
|
31835
|
-
init_utils3();
|
|
31836
31100
|
_0n3 = BigInt(0);
|
|
31837
31101
|
_1n3 = BigInt(1);
|
|
31838
31102
|
_2n2 = /* @__PURE__ */ BigInt(2);
|
|
@@ -32095,7 +31359,7 @@ var _0n4, _1n4, pointPrecomputes, pointWindowSizes;
|
|
|
32095
31359
|
var init_curve = __esm({
|
|
32096
31360
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/curve.js"() {
|
|
32097
31361
|
init_modular();
|
|
32098
|
-
|
|
31362
|
+
init_utils2();
|
|
32099
31363
|
_0n4 = BigInt(0);
|
|
32100
31364
|
_1n4 = BigInt(1);
|
|
32101
31365
|
pointPrecomputes = /* @__PURE__ */ new WeakMap();
|
|
@@ -32983,7 +32247,7 @@ var init_weierstrass = __esm({
|
|
|
32983
32247
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/weierstrass.js"() {
|
|
32984
32248
|
init_curve();
|
|
32985
32249
|
init_modular();
|
|
32986
|
-
|
|
32250
|
+
init_utils2();
|
|
32987
32251
|
DERErr = class extends Error {
|
|
32988
32252
|
constructor(m = "") {
|
|
32989
32253
|
super(m);
|
|
@@ -33112,7 +32376,7 @@ function createCurve(curveDef, defHash) {
|
|
|
33112
32376
|
var init_shortw_utils = __esm({
|
|
33113
32377
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/_shortw_utils.js"() {
|
|
33114
32378
|
init_hmac();
|
|
33115
|
-
|
|
32379
|
+
init_utils();
|
|
33116
32380
|
init_weierstrass();
|
|
33117
32381
|
}
|
|
33118
32382
|
});
|
|
@@ -33267,7 +32531,7 @@ var os2ip;
|
|
|
33267
32531
|
var init_hash_to_curve = __esm({
|
|
33268
32532
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/hash-to-curve.js"() {
|
|
33269
32533
|
init_modular();
|
|
33270
|
-
|
|
32534
|
+
init_utils2();
|
|
33271
32535
|
os2ip = bytesToNumberBE;
|
|
33272
32536
|
}
|
|
33273
32537
|
});
|
|
@@ -33378,11 +32642,11 @@ var secp256k1P, secp256k1N, _0n6, _1n6, _2n4, divNearest, Fpk1, secp256k1, TAGGE
|
|
|
33378
32642
|
var init_secp256k1 = __esm({
|
|
33379
32643
|
"../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/secp256k1.js"() {
|
|
33380
32644
|
init_sha2();
|
|
33381
|
-
|
|
32645
|
+
init_utils();
|
|
33382
32646
|
init_shortw_utils();
|
|
33383
32647
|
init_hash_to_curve();
|
|
33384
32648
|
init_modular();
|
|
33385
|
-
|
|
32649
|
+
init_utils2();
|
|
33386
32650
|
init_weierstrass();
|
|
33387
32651
|
secp256k1P = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f");
|
|
33388
32652
|
secp256k1N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
|
|
@@ -33536,29 +32800,27 @@ var init_serializeSignature = __esm({
|
|
|
33536
32800
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/index.js
|
|
33537
32801
|
var init_esm = __esm({
|
|
33538
32802
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.4.3/node_modules/viem/_esm/index.js"() {
|
|
33539
|
-
init_exports();
|
|
33540
32803
|
init_address2();
|
|
33541
32804
|
init_encodeFunctionData();
|
|
33542
|
-
init_toBytes();
|
|
33543
32805
|
init_keccak256();
|
|
33544
32806
|
init_hashTypedData();
|
|
33545
32807
|
}
|
|
33546
32808
|
});
|
|
33547
32809
|
|
|
33548
32810
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/version.js
|
|
33549
|
-
var
|
|
33550
|
-
var
|
|
32811
|
+
var version2;
|
|
32812
|
+
var init_version2 = __esm({
|
|
33551
32813
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/version.js"() {
|
|
33552
|
-
|
|
32814
|
+
version2 = "1.2.3";
|
|
33553
32815
|
}
|
|
33554
32816
|
});
|
|
33555
32817
|
|
|
33556
32818
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/errors.js
|
|
33557
|
-
var
|
|
33558
|
-
var
|
|
32819
|
+
var BaseError2;
|
|
32820
|
+
var init_errors = __esm({
|
|
33559
32821
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/errors.js"() {
|
|
33560
|
-
|
|
33561
|
-
|
|
32822
|
+
init_version2();
|
|
32823
|
+
BaseError2 = class _BaseError extends Error {
|
|
33562
32824
|
constructor(shortMessage, args = {}) {
|
|
33563
32825
|
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
33564
32826
|
const docsPath9 = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
@@ -33568,7 +32830,7 @@ var init_errors2 = __esm({
|
|
|
33568
32830
|
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
33569
32831
|
...docsPath9 ? [`Docs: https://abitype.dev${docsPath9}`] : [],
|
|
33570
32832
|
...details ? [`Details: ${details}`] : [],
|
|
33571
|
-
`Version: abitype@${
|
|
32833
|
+
`Version: abitype@${version2}`
|
|
33572
32834
|
].join("\n");
|
|
33573
32835
|
super(message);
|
|
33574
32836
|
Object.defineProperty(this, "details", {
|
|
@@ -33617,12 +32879,12 @@ function execTyped2(regex, string) {
|
|
|
33617
32879
|
const match = regex.exec(string);
|
|
33618
32880
|
return match?.groups;
|
|
33619
32881
|
}
|
|
33620
|
-
var
|
|
32882
|
+
var bytesRegex2, integerRegex2, isTupleRegex;
|
|
33621
32883
|
var init_regex3 = __esm({
|
|
33622
32884
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/regex.js"() {
|
|
33623
|
-
|
|
33624
|
-
|
|
33625
|
-
|
|
32885
|
+
bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
32886
|
+
integerRegex2 = /^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)?$/;
|
|
32887
|
+
isTupleRegex = /^\(.+?\).*?$/;
|
|
33626
32888
|
}
|
|
33627
32889
|
});
|
|
33628
32890
|
|
|
@@ -33698,64 +32960,64 @@ var init_formatAbiItem3 = __esm({
|
|
|
33698
32960
|
});
|
|
33699
32961
|
|
|
33700
32962
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
33701
|
-
function
|
|
33702
|
-
return
|
|
32963
|
+
function isErrorSignature(signature) {
|
|
32964
|
+
return errorSignatureRegex.test(signature);
|
|
33703
32965
|
}
|
|
33704
|
-
function
|
|
33705
|
-
return execTyped2(
|
|
32966
|
+
function execErrorSignature(signature) {
|
|
32967
|
+
return execTyped2(errorSignatureRegex, signature);
|
|
33706
32968
|
}
|
|
33707
|
-
function
|
|
33708
|
-
return
|
|
32969
|
+
function isEventSignature(signature) {
|
|
32970
|
+
return eventSignatureRegex.test(signature);
|
|
33709
32971
|
}
|
|
33710
|
-
function
|
|
33711
|
-
return execTyped2(
|
|
32972
|
+
function execEventSignature(signature) {
|
|
32973
|
+
return execTyped2(eventSignatureRegex, signature);
|
|
33712
32974
|
}
|
|
33713
|
-
function
|
|
33714
|
-
return
|
|
32975
|
+
function isFunctionSignature(signature) {
|
|
32976
|
+
return functionSignatureRegex.test(signature);
|
|
33715
32977
|
}
|
|
33716
|
-
function
|
|
33717
|
-
return execTyped2(
|
|
32978
|
+
function execFunctionSignature(signature) {
|
|
32979
|
+
return execTyped2(functionSignatureRegex, signature);
|
|
33718
32980
|
}
|
|
33719
|
-
function
|
|
33720
|
-
return
|
|
32981
|
+
function isStructSignature(signature) {
|
|
32982
|
+
return structSignatureRegex.test(signature);
|
|
33721
32983
|
}
|
|
33722
|
-
function
|
|
33723
|
-
return execTyped2(
|
|
32984
|
+
function execStructSignature(signature) {
|
|
32985
|
+
return execTyped2(structSignatureRegex, signature);
|
|
33724
32986
|
}
|
|
33725
|
-
function
|
|
33726
|
-
return
|
|
32987
|
+
function isConstructorSignature(signature) {
|
|
32988
|
+
return constructorSignatureRegex.test(signature);
|
|
33727
32989
|
}
|
|
33728
|
-
function
|
|
33729
|
-
return execTyped2(
|
|
32990
|
+
function execConstructorSignature(signature) {
|
|
32991
|
+
return execTyped2(constructorSignatureRegex, signature);
|
|
33730
32992
|
}
|
|
33731
|
-
function
|
|
33732
|
-
return
|
|
32993
|
+
function isFallbackSignature(signature) {
|
|
32994
|
+
return fallbackSignatureRegex.test(signature);
|
|
33733
32995
|
}
|
|
33734
|
-
function
|
|
33735
|
-
return execTyped2(
|
|
32996
|
+
function execFallbackSignature(signature) {
|
|
32997
|
+
return execTyped2(fallbackSignatureRegex, signature);
|
|
33736
32998
|
}
|
|
33737
|
-
function
|
|
33738
|
-
return
|
|
32999
|
+
function isReceiveSignature(signature) {
|
|
33000
|
+
return receiveSignatureRegex.test(signature);
|
|
33739
33001
|
}
|
|
33740
|
-
var
|
|
33741
|
-
var
|
|
33002
|
+
var errorSignatureRegex, eventSignatureRegex, functionSignatureRegex, structSignatureRegex, constructorSignatureRegex, fallbackSignatureRegex, receiveSignatureRegex, modifiers, eventModifiers, functionModifiers;
|
|
33003
|
+
var init_signatures = __esm({
|
|
33742
33004
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js"() {
|
|
33743
33005
|
init_regex3();
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
|
|
33006
|
+
errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
33007
|
+
eventSignatureRegex = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
33008
|
+
functionSignatureRegex = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
33009
|
+
structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
33010
|
+
constructorSignatureRegex = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
33011
|
+
fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
33012
|
+
receiveSignatureRegex = /^receive\(\) external payable$/;
|
|
33751
33013
|
modifiers = /* @__PURE__ */ new Set([
|
|
33752
33014
|
"memory",
|
|
33753
33015
|
"indexed",
|
|
33754
33016
|
"storage",
|
|
33755
33017
|
"calldata"
|
|
33756
33018
|
]);
|
|
33757
|
-
|
|
33758
|
-
|
|
33019
|
+
eventModifiers = /* @__PURE__ */ new Set(["indexed"]);
|
|
33020
|
+
functionModifiers = /* @__PURE__ */ new Set([
|
|
33759
33021
|
"calldata",
|
|
33760
33022
|
"memory",
|
|
33761
33023
|
"storage"
|
|
@@ -33764,11 +33026,11 @@ var init_signatures2 = __esm({
|
|
|
33764
33026
|
});
|
|
33765
33027
|
|
|
33766
33028
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
33767
|
-
var
|
|
33768
|
-
var
|
|
33029
|
+
var InvalidAbiItemError, UnknownTypeError, UnknownSolidityTypeError;
|
|
33030
|
+
var init_abiItem = __esm({
|
|
33769
33031
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js"() {
|
|
33770
|
-
|
|
33771
|
-
|
|
33032
|
+
init_errors();
|
|
33033
|
+
InvalidAbiItemError = class extends BaseError2 {
|
|
33772
33034
|
constructor({ signature }) {
|
|
33773
33035
|
super("Failed to parse ABI item.", {
|
|
33774
33036
|
details: `parseAbiItem(${JSON.stringify(signature, null, 2)})`,
|
|
@@ -33782,7 +33044,7 @@ var init_abiItem2 = __esm({
|
|
|
33782
33044
|
});
|
|
33783
33045
|
}
|
|
33784
33046
|
};
|
|
33785
|
-
|
|
33047
|
+
UnknownTypeError = class extends BaseError2 {
|
|
33786
33048
|
constructor({ type }) {
|
|
33787
33049
|
super("Unknown type.", {
|
|
33788
33050
|
metaMessages: [
|
|
@@ -33797,7 +33059,7 @@ var init_abiItem2 = __esm({
|
|
|
33797
33059
|
});
|
|
33798
33060
|
}
|
|
33799
33061
|
};
|
|
33800
|
-
|
|
33062
|
+
UnknownSolidityTypeError = class extends BaseError2 {
|
|
33801
33063
|
constructor({ type }) {
|
|
33802
33064
|
super("Unknown type.", {
|
|
33803
33065
|
metaMessages: [`Type "${type}" is not a valid ABI type.`]
|
|
@@ -33814,11 +33076,11 @@ var init_abiItem2 = __esm({
|
|
|
33814
33076
|
});
|
|
33815
33077
|
|
|
33816
33078
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
33817
|
-
var
|
|
33818
|
-
var
|
|
33079
|
+
var InvalidAbiParametersError, InvalidParameterError, SolidityProtectedKeywordError, InvalidModifierError, InvalidFunctionModifierError, InvalidAbiTypeParameterError;
|
|
33080
|
+
var init_abiParameter = __esm({
|
|
33819
33081
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js"() {
|
|
33820
|
-
|
|
33821
|
-
|
|
33082
|
+
init_errors();
|
|
33083
|
+
InvalidAbiParametersError = class extends BaseError2 {
|
|
33822
33084
|
constructor({ params }) {
|
|
33823
33085
|
super("Failed to parse ABI parameters.", {
|
|
33824
33086
|
details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
|
|
@@ -33832,7 +33094,7 @@ var init_abiParameter2 = __esm({
|
|
|
33832
33094
|
});
|
|
33833
33095
|
}
|
|
33834
33096
|
};
|
|
33835
|
-
|
|
33097
|
+
InvalidParameterError = class extends BaseError2 {
|
|
33836
33098
|
constructor({ param }) {
|
|
33837
33099
|
super("Invalid ABI parameter.", {
|
|
33838
33100
|
details: param
|
|
@@ -33845,7 +33107,7 @@ var init_abiParameter2 = __esm({
|
|
|
33845
33107
|
});
|
|
33846
33108
|
}
|
|
33847
33109
|
};
|
|
33848
|
-
|
|
33110
|
+
SolidityProtectedKeywordError = class extends BaseError2 {
|
|
33849
33111
|
constructor({ param, name }) {
|
|
33850
33112
|
super("Invalid ABI parameter.", {
|
|
33851
33113
|
details: param,
|
|
@@ -33861,7 +33123,7 @@ var init_abiParameter2 = __esm({
|
|
|
33861
33123
|
});
|
|
33862
33124
|
}
|
|
33863
33125
|
};
|
|
33864
|
-
|
|
33126
|
+
InvalidModifierError = class extends BaseError2 {
|
|
33865
33127
|
constructor({ param, type, modifier }) {
|
|
33866
33128
|
super("Invalid ABI parameter.", {
|
|
33867
33129
|
details: param,
|
|
@@ -33877,7 +33139,7 @@ var init_abiParameter2 = __esm({
|
|
|
33877
33139
|
});
|
|
33878
33140
|
}
|
|
33879
33141
|
};
|
|
33880
|
-
|
|
33142
|
+
InvalidFunctionModifierError = class extends BaseError2 {
|
|
33881
33143
|
constructor({ param, type, modifier }) {
|
|
33882
33144
|
super("Invalid ABI parameter.", {
|
|
33883
33145
|
details: param,
|
|
@@ -33894,7 +33156,7 @@ var init_abiParameter2 = __esm({
|
|
|
33894
33156
|
});
|
|
33895
33157
|
}
|
|
33896
33158
|
};
|
|
33897
|
-
|
|
33159
|
+
InvalidAbiTypeParameterError = class extends BaseError2 {
|
|
33898
33160
|
constructor({ abiParameter }) {
|
|
33899
33161
|
super("Invalid ABI parameter.", {
|
|
33900
33162
|
details: JSON.stringify(abiParameter, null, 2),
|
|
@@ -33912,11 +33174,11 @@ var init_abiParameter2 = __esm({
|
|
|
33912
33174
|
});
|
|
33913
33175
|
|
|
33914
33176
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
33915
|
-
var
|
|
33916
|
-
var
|
|
33177
|
+
var InvalidSignatureError, UnknownSignatureError, InvalidStructSignatureError;
|
|
33178
|
+
var init_signature = __esm({
|
|
33917
33179
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/signature.js"() {
|
|
33918
|
-
|
|
33919
|
-
|
|
33180
|
+
init_errors();
|
|
33181
|
+
InvalidSignatureError = class extends BaseError2 {
|
|
33920
33182
|
constructor({ signature, type }) {
|
|
33921
33183
|
super(`Invalid ${type} signature.`, {
|
|
33922
33184
|
details: signature
|
|
@@ -33929,7 +33191,7 @@ var init_signature2 = __esm({
|
|
|
33929
33191
|
});
|
|
33930
33192
|
}
|
|
33931
33193
|
};
|
|
33932
|
-
|
|
33194
|
+
UnknownSignatureError = class extends BaseError2 {
|
|
33933
33195
|
constructor({ signature }) {
|
|
33934
33196
|
super("Unknown signature.", {
|
|
33935
33197
|
details: signature
|
|
@@ -33942,7 +33204,7 @@ var init_signature2 = __esm({
|
|
|
33942
33204
|
});
|
|
33943
33205
|
}
|
|
33944
33206
|
};
|
|
33945
|
-
|
|
33207
|
+
InvalidStructSignatureError = class extends BaseError2 {
|
|
33946
33208
|
constructor({ signature }) {
|
|
33947
33209
|
super("Invalid struct signature.", {
|
|
33948
33210
|
details: signature,
|
|
@@ -33960,11 +33222,11 @@ var init_signature2 = __esm({
|
|
|
33960
33222
|
});
|
|
33961
33223
|
|
|
33962
33224
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
33963
|
-
var
|
|
33964
|
-
var
|
|
33225
|
+
var CircularReferenceError;
|
|
33226
|
+
var init_struct = __esm({
|
|
33965
33227
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/struct.js"() {
|
|
33966
|
-
|
|
33967
|
-
|
|
33228
|
+
init_errors();
|
|
33229
|
+
CircularReferenceError = class extends BaseError2 {
|
|
33968
33230
|
constructor({ type }) {
|
|
33969
33231
|
super("Circular reference detected.", {
|
|
33970
33232
|
metaMessages: [`Struct "${type}" is a circular reference.`]
|
|
@@ -33981,11 +33243,11 @@ var init_struct2 = __esm({
|
|
|
33981
33243
|
});
|
|
33982
33244
|
|
|
33983
33245
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
33984
|
-
var
|
|
33985
|
-
var
|
|
33246
|
+
var InvalidParenthesisError;
|
|
33247
|
+
var init_splitParameters = __esm({
|
|
33986
33248
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js"() {
|
|
33987
|
-
|
|
33988
|
-
|
|
33249
|
+
init_errors();
|
|
33250
|
+
InvalidParenthesisError = class extends BaseError2 {
|
|
33989
33251
|
constructor({ current, depth }) {
|
|
33990
33252
|
super("Unbalanced parentheses.", {
|
|
33991
33253
|
metaMessages: [
|
|
@@ -34005,7 +33267,7 @@ var init_splitParameters2 = __esm({
|
|
|
34005
33267
|
});
|
|
34006
33268
|
|
|
34007
33269
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
34008
|
-
function
|
|
33270
|
+
function getParameterCacheKey(param, type, structs) {
|
|
34009
33271
|
let structKey = "";
|
|
34010
33272
|
if (structs)
|
|
34011
33273
|
for (const struct of Object.entries(structs)) {
|
|
@@ -34021,10 +33283,10 @@ function getParameterCacheKey2(param, type, structs) {
|
|
|
34021
33283
|
return `${type}:${param}${structKey}`;
|
|
34022
33284
|
return `${param}${structKey}`;
|
|
34023
33285
|
}
|
|
34024
|
-
var
|
|
34025
|
-
var
|
|
33286
|
+
var parameterCache;
|
|
33287
|
+
var init_cache = __esm({
|
|
34026
33288
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/cache.js"() {
|
|
34027
|
-
|
|
33289
|
+
parameterCache = /* @__PURE__ */ new Map([
|
|
34028
33290
|
// Unnamed
|
|
34029
33291
|
["address", { type: "address" }],
|
|
34030
33292
|
["bool", { type: "bool" }],
|
|
@@ -34082,45 +33344,45 @@ var init_cache2 = __esm({
|
|
|
34082
33344
|
});
|
|
34083
33345
|
|
|
34084
33346
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
34085
|
-
function
|
|
34086
|
-
if (
|
|
34087
|
-
return
|
|
34088
|
-
if (
|
|
34089
|
-
return
|
|
34090
|
-
if (
|
|
34091
|
-
return
|
|
34092
|
-
if (
|
|
34093
|
-
return
|
|
34094
|
-
if (
|
|
34095
|
-
return
|
|
34096
|
-
if (
|
|
33347
|
+
function parseSignature(signature, structs = {}) {
|
|
33348
|
+
if (isFunctionSignature(signature))
|
|
33349
|
+
return parseFunctionSignature(signature, structs);
|
|
33350
|
+
if (isEventSignature(signature))
|
|
33351
|
+
return parseEventSignature(signature, structs);
|
|
33352
|
+
if (isErrorSignature(signature))
|
|
33353
|
+
return parseErrorSignature(signature, structs);
|
|
33354
|
+
if (isConstructorSignature(signature))
|
|
33355
|
+
return parseConstructorSignature(signature, structs);
|
|
33356
|
+
if (isFallbackSignature(signature))
|
|
33357
|
+
return parseFallbackSignature(signature);
|
|
33358
|
+
if (isReceiveSignature(signature))
|
|
34097
33359
|
return {
|
|
34098
33360
|
type: "receive",
|
|
34099
33361
|
stateMutability: "payable"
|
|
34100
33362
|
};
|
|
34101
|
-
throw new
|
|
33363
|
+
throw new UnknownSignatureError({ signature });
|
|
34102
33364
|
}
|
|
34103
|
-
function
|
|
34104
|
-
const match =
|
|
33365
|
+
function parseFunctionSignature(signature, structs = {}) {
|
|
33366
|
+
const match = execFunctionSignature(signature);
|
|
34105
33367
|
if (!match)
|
|
34106
|
-
throw new
|
|
34107
|
-
const inputParams =
|
|
33368
|
+
throw new InvalidSignatureError({ signature, type: "function" });
|
|
33369
|
+
const inputParams = splitParameters(match.parameters);
|
|
34108
33370
|
const inputs = [];
|
|
34109
33371
|
const inputLength = inputParams.length;
|
|
34110
33372
|
for (let i = 0; i < inputLength; i++) {
|
|
34111
|
-
inputs.push(
|
|
34112
|
-
modifiers:
|
|
33373
|
+
inputs.push(parseAbiParameter(inputParams[i], {
|
|
33374
|
+
modifiers: functionModifiers,
|
|
34113
33375
|
structs,
|
|
34114
33376
|
type: "function"
|
|
34115
33377
|
}));
|
|
34116
33378
|
}
|
|
34117
33379
|
const outputs = [];
|
|
34118
33380
|
if (match.returns) {
|
|
34119
|
-
const outputParams =
|
|
33381
|
+
const outputParams = splitParameters(match.returns);
|
|
34120
33382
|
const outputLength = outputParams.length;
|
|
34121
33383
|
for (let i = 0; i < outputLength; i++) {
|
|
34122
|
-
outputs.push(
|
|
34123
|
-
modifiers:
|
|
33384
|
+
outputs.push(parseAbiParameter(outputParams[i], {
|
|
33385
|
+
modifiers: functionModifiers,
|
|
34124
33386
|
structs,
|
|
34125
33387
|
type: "function"
|
|
34126
33388
|
}));
|
|
@@ -34134,66 +33396,66 @@ function parseFunctionSignature2(signature, structs = {}) {
|
|
|
34134
33396
|
outputs
|
|
34135
33397
|
};
|
|
34136
33398
|
}
|
|
34137
|
-
function
|
|
34138
|
-
const match =
|
|
33399
|
+
function parseEventSignature(signature, structs = {}) {
|
|
33400
|
+
const match = execEventSignature(signature);
|
|
34139
33401
|
if (!match)
|
|
34140
|
-
throw new
|
|
34141
|
-
const params =
|
|
33402
|
+
throw new InvalidSignatureError({ signature, type: "event" });
|
|
33403
|
+
const params = splitParameters(match.parameters);
|
|
34142
33404
|
const abiParameters = [];
|
|
34143
33405
|
const length = params.length;
|
|
34144
33406
|
for (let i = 0; i < length; i++)
|
|
34145
|
-
abiParameters.push(
|
|
34146
|
-
modifiers:
|
|
33407
|
+
abiParameters.push(parseAbiParameter(params[i], {
|
|
33408
|
+
modifiers: eventModifiers,
|
|
34147
33409
|
structs,
|
|
34148
33410
|
type: "event"
|
|
34149
33411
|
}));
|
|
34150
33412
|
return { name: match.name, type: "event", inputs: abiParameters };
|
|
34151
33413
|
}
|
|
34152
|
-
function
|
|
34153
|
-
const match =
|
|
33414
|
+
function parseErrorSignature(signature, structs = {}) {
|
|
33415
|
+
const match = execErrorSignature(signature);
|
|
34154
33416
|
if (!match)
|
|
34155
|
-
throw new
|
|
34156
|
-
const params =
|
|
33417
|
+
throw new InvalidSignatureError({ signature, type: "error" });
|
|
33418
|
+
const params = splitParameters(match.parameters);
|
|
34157
33419
|
const abiParameters = [];
|
|
34158
33420
|
const length = params.length;
|
|
34159
33421
|
for (let i = 0; i < length; i++)
|
|
34160
|
-
abiParameters.push(
|
|
33422
|
+
abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
|
|
34161
33423
|
return { name: match.name, type: "error", inputs: abiParameters };
|
|
34162
33424
|
}
|
|
34163
|
-
function
|
|
34164
|
-
const match =
|
|
33425
|
+
function parseConstructorSignature(signature, structs = {}) {
|
|
33426
|
+
const match = execConstructorSignature(signature);
|
|
34165
33427
|
if (!match)
|
|
34166
|
-
throw new
|
|
34167
|
-
const params =
|
|
33428
|
+
throw new InvalidSignatureError({ signature, type: "constructor" });
|
|
33429
|
+
const params = splitParameters(match.parameters);
|
|
34168
33430
|
const abiParameters = [];
|
|
34169
33431
|
const length = params.length;
|
|
34170
33432
|
for (let i = 0; i < length; i++)
|
|
34171
|
-
abiParameters.push(
|
|
33433
|
+
abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
|
|
34172
33434
|
return {
|
|
34173
33435
|
type: "constructor",
|
|
34174
33436
|
stateMutability: match.stateMutability ?? "nonpayable",
|
|
34175
33437
|
inputs: abiParameters
|
|
34176
33438
|
};
|
|
34177
33439
|
}
|
|
34178
|
-
function
|
|
34179
|
-
const match =
|
|
33440
|
+
function parseFallbackSignature(signature) {
|
|
33441
|
+
const match = execFallbackSignature(signature);
|
|
34180
33442
|
if (!match)
|
|
34181
|
-
throw new
|
|
33443
|
+
throw new InvalidSignatureError({ signature, type: "fallback" });
|
|
34182
33444
|
return {
|
|
34183
33445
|
type: "fallback",
|
|
34184
33446
|
stateMutability: match.stateMutability ?? "nonpayable"
|
|
34185
33447
|
};
|
|
34186
33448
|
}
|
|
34187
|
-
function
|
|
34188
|
-
const parameterCacheKey =
|
|
34189
|
-
if (
|
|
34190
|
-
return
|
|
34191
|
-
const isTuple =
|
|
34192
|
-
const match = execTyped2(isTuple ?
|
|
33449
|
+
function parseAbiParameter(param, options) {
|
|
33450
|
+
const parameterCacheKey = getParameterCacheKey(param, options?.type, options?.structs);
|
|
33451
|
+
if (parameterCache.has(parameterCacheKey))
|
|
33452
|
+
return parameterCache.get(parameterCacheKey);
|
|
33453
|
+
const isTuple = isTupleRegex.test(param);
|
|
33454
|
+
const match = execTyped2(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
|
|
34193
33455
|
if (!match)
|
|
34194
|
-
throw new
|
|
34195
|
-
if (match.name &&
|
|
34196
|
-
throw new
|
|
33456
|
+
throw new InvalidParameterError({ param });
|
|
33457
|
+
if (match.name && isSolidityKeyword(match.name))
|
|
33458
|
+
throw new SolidityProtectedKeywordError({ param, name: match.name });
|
|
34197
33459
|
const name = match.name ? { name: match.name } : {};
|
|
34198
33460
|
const indexed = match.modifier === "indexed" ? { indexed: true } : {};
|
|
34199
33461
|
const structs = options?.structs ?? {};
|
|
@@ -34201,34 +33463,34 @@ function parseAbiParameter3(param, options) {
|
|
|
34201
33463
|
let components = {};
|
|
34202
33464
|
if (isTuple) {
|
|
34203
33465
|
type = "tuple";
|
|
34204
|
-
const params =
|
|
33466
|
+
const params = splitParameters(match.type);
|
|
34205
33467
|
const components_ = [];
|
|
34206
33468
|
const length = params.length;
|
|
34207
33469
|
for (let i = 0; i < length; i++) {
|
|
34208
|
-
components_.push(
|
|
33470
|
+
components_.push(parseAbiParameter(params[i], { structs }));
|
|
34209
33471
|
}
|
|
34210
33472
|
components = { components: components_ };
|
|
34211
33473
|
} else if (match.type in structs) {
|
|
34212
33474
|
type = "tuple";
|
|
34213
33475
|
components = { components: structs[match.type] };
|
|
34214
|
-
} else if (
|
|
33476
|
+
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
34215
33477
|
type = `${match.type}256`;
|
|
34216
33478
|
} else if (match.type === "address payable") {
|
|
34217
33479
|
type = "address";
|
|
34218
33480
|
} else {
|
|
34219
33481
|
type = match.type;
|
|
34220
|
-
if (!(options?.type === "struct") && !
|
|
34221
|
-
throw new
|
|
33482
|
+
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
33483
|
+
throw new UnknownSolidityTypeError({ type });
|
|
34222
33484
|
}
|
|
34223
33485
|
if (match.modifier) {
|
|
34224
33486
|
if (!options?.modifiers?.has?.(match.modifier))
|
|
34225
|
-
throw new
|
|
33487
|
+
throw new InvalidModifierError({
|
|
34226
33488
|
param,
|
|
34227
33489
|
type: options?.type,
|
|
34228
33490
|
modifier: match.modifier
|
|
34229
33491
|
});
|
|
34230
|
-
if (
|
|
34231
|
-
throw new
|
|
33492
|
+
if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
|
|
33493
|
+
throw new InvalidFunctionModifierError({
|
|
34232
33494
|
param,
|
|
34233
33495
|
type: options?.type,
|
|
34234
33496
|
modifier: match.modifier
|
|
@@ -34240,69 +33502,69 @@ function parseAbiParameter3(param, options) {
|
|
|
34240
33502
|
...indexed,
|
|
34241
33503
|
...components
|
|
34242
33504
|
};
|
|
34243
|
-
|
|
33505
|
+
parameterCache.set(parameterCacheKey, abiParameter);
|
|
34244
33506
|
return abiParameter;
|
|
34245
33507
|
}
|
|
34246
|
-
function
|
|
33508
|
+
function splitParameters(params, result = [], current = "", depth = 0) {
|
|
34247
33509
|
const length = params.trim().length;
|
|
34248
33510
|
for (let i = 0; i < length; i++) {
|
|
34249
33511
|
const char = params[i];
|
|
34250
33512
|
const tail = params.slice(i + 1);
|
|
34251
33513
|
switch (char) {
|
|
34252
33514
|
case ",":
|
|
34253
|
-
return depth === 0 ?
|
|
33515
|
+
return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
|
|
34254
33516
|
case "(":
|
|
34255
|
-
return
|
|
33517
|
+
return splitParameters(tail, result, `${current}${char}`, depth + 1);
|
|
34256
33518
|
case ")":
|
|
34257
|
-
return
|
|
33519
|
+
return splitParameters(tail, result, `${current}${char}`, depth - 1);
|
|
34258
33520
|
default:
|
|
34259
|
-
return
|
|
33521
|
+
return splitParameters(tail, result, `${current}${char}`, depth);
|
|
34260
33522
|
}
|
|
34261
33523
|
}
|
|
34262
33524
|
if (current === "")
|
|
34263
33525
|
return result;
|
|
34264
33526
|
if (depth !== 0)
|
|
34265
|
-
throw new
|
|
33527
|
+
throw new InvalidParenthesisError({ current, depth });
|
|
34266
33528
|
result.push(current.trim());
|
|
34267
33529
|
return result;
|
|
34268
33530
|
}
|
|
34269
|
-
function
|
|
34270
|
-
return type === "address" || type === "bool" || type === "function" || type === "string" ||
|
|
33531
|
+
function isSolidityType(type) {
|
|
33532
|
+
return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex2.test(type) || integerRegex2.test(type);
|
|
34271
33533
|
}
|
|
34272
|
-
function
|
|
34273
|
-
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" ||
|
|
33534
|
+
function isSolidityKeyword(name) {
|
|
33535
|
+
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex2.test(name) || integerRegex2.test(name) || protectedKeywordsRegex.test(name);
|
|
34274
33536
|
}
|
|
34275
|
-
function
|
|
33537
|
+
function isValidDataLocation(type, isArray) {
|
|
34276
33538
|
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
34277
33539
|
}
|
|
34278
|
-
var
|
|
34279
|
-
var
|
|
33540
|
+
var abiParameterWithoutTupleRegex, abiParameterWithTupleRegex, dynamicIntegerRegex, protectedKeywordsRegex;
|
|
33541
|
+
var init_utils3 = __esm({
|
|
34280
33542
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/utils.js"() {
|
|
34281
33543
|
init_regex3();
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
33544
|
+
init_abiItem();
|
|
33545
|
+
init_abiParameter();
|
|
33546
|
+
init_signature();
|
|
33547
|
+
init_splitParameters();
|
|
33548
|
+
init_cache();
|
|
33549
|
+
init_signatures();
|
|
33550
|
+
abiParameterWithoutTupleRegex = /^(?<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$_]*))?$/;
|
|
33551
|
+
abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
33552
|
+
dynamicIntegerRegex = /^u?int$/;
|
|
33553
|
+
protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
34292
33554
|
}
|
|
34293
33555
|
});
|
|
34294
33556
|
|
|
34295
33557
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
34296
|
-
function
|
|
33558
|
+
function parseStructs(signatures) {
|
|
34297
33559
|
const shallowStructs = {};
|
|
34298
33560
|
const signaturesLength = signatures.length;
|
|
34299
33561
|
for (let i = 0; i < signaturesLength; i++) {
|
|
34300
33562
|
const signature = signatures[i];
|
|
34301
|
-
if (!
|
|
33563
|
+
if (!isStructSignature(signature))
|
|
34302
33564
|
continue;
|
|
34303
|
-
const match =
|
|
33565
|
+
const match = execStructSignature(signature);
|
|
34304
33566
|
if (!match)
|
|
34305
|
-
throw new
|
|
33567
|
+
throw new InvalidSignatureError({ signature, type: "struct" });
|
|
34306
33568
|
const properties = match.properties.split(";");
|
|
34307
33569
|
const components = [];
|
|
34308
33570
|
const propertiesLength = properties.length;
|
|
@@ -34311,13 +33573,13 @@ function parseStructs2(signatures) {
|
|
|
34311
33573
|
const trimmed = property.trim();
|
|
34312
33574
|
if (!trimmed)
|
|
34313
33575
|
continue;
|
|
34314
|
-
const abiParameter =
|
|
33576
|
+
const abiParameter = parseAbiParameter(trimmed, {
|
|
34315
33577
|
type: "struct"
|
|
34316
33578
|
});
|
|
34317
33579
|
components.push(abiParameter);
|
|
34318
33580
|
}
|
|
34319
33581
|
if (!components.length)
|
|
34320
|
-
throw new
|
|
33582
|
+
throw new InvalidStructSignatureError({ signature });
|
|
34321
33583
|
shallowStructs[match.name] = components;
|
|
34322
33584
|
}
|
|
34323
33585
|
const resolvedStructs = {};
|
|
@@ -34325,139 +33587,139 @@ function parseStructs2(signatures) {
|
|
|
34325
33587
|
const entriesLength = entries.length;
|
|
34326
33588
|
for (let i = 0; i < entriesLength; i++) {
|
|
34327
33589
|
const [name, parameters] = entries[i];
|
|
34328
|
-
resolvedStructs[name] =
|
|
33590
|
+
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
34329
33591
|
}
|
|
34330
33592
|
return resolvedStructs;
|
|
34331
33593
|
}
|
|
34332
|
-
function
|
|
33594
|
+
function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
|
|
34333
33595
|
const components = [];
|
|
34334
33596
|
const length = abiParameters.length;
|
|
34335
33597
|
for (let i = 0; i < length; i++) {
|
|
34336
33598
|
const abiParameter = abiParameters[i];
|
|
34337
|
-
const isTuple =
|
|
33599
|
+
const isTuple = isTupleRegex.test(abiParameter.type);
|
|
34338
33600
|
if (isTuple)
|
|
34339
33601
|
components.push(abiParameter);
|
|
34340
33602
|
else {
|
|
34341
|
-
const match = execTyped2(
|
|
33603
|
+
const match = execTyped2(typeWithoutTupleRegex, abiParameter.type);
|
|
34342
33604
|
if (!match?.type)
|
|
34343
|
-
throw new
|
|
33605
|
+
throw new InvalidAbiTypeParameterError({ abiParameter });
|
|
34344
33606
|
const { array, type } = match;
|
|
34345
33607
|
if (type in structs) {
|
|
34346
33608
|
if (ancestors.has(type))
|
|
34347
|
-
throw new
|
|
33609
|
+
throw new CircularReferenceError({ type });
|
|
34348
33610
|
components.push({
|
|
34349
33611
|
...abiParameter,
|
|
34350
33612
|
type: `tuple${array ?? ""}`,
|
|
34351
|
-
components:
|
|
33613
|
+
components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
34352
33614
|
});
|
|
34353
33615
|
} else {
|
|
34354
|
-
if (
|
|
33616
|
+
if (isSolidityType(type))
|
|
34355
33617
|
components.push(abiParameter);
|
|
34356
33618
|
else
|
|
34357
|
-
throw new
|
|
33619
|
+
throw new UnknownTypeError({ type });
|
|
34358
33620
|
}
|
|
34359
33621
|
}
|
|
34360
33622
|
}
|
|
34361
33623
|
return components;
|
|
34362
33624
|
}
|
|
34363
|
-
var
|
|
34364
|
-
var
|
|
33625
|
+
var typeWithoutTupleRegex;
|
|
33626
|
+
var init_structs = __esm({
|
|
34365
33627
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/structs.js"() {
|
|
34366
33628
|
init_regex3();
|
|
34367
|
-
|
|
34368
|
-
|
|
34369
|
-
|
|
34370
|
-
|
|
34371
|
-
|
|
34372
|
-
|
|
34373
|
-
|
|
33629
|
+
init_abiItem();
|
|
33630
|
+
init_abiParameter();
|
|
33631
|
+
init_signature();
|
|
33632
|
+
init_struct();
|
|
33633
|
+
init_signatures();
|
|
33634
|
+
init_utils3();
|
|
33635
|
+
typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
34374
33636
|
}
|
|
34375
33637
|
});
|
|
34376
33638
|
|
|
34377
33639
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
34378
|
-
function
|
|
34379
|
-
const structs =
|
|
33640
|
+
function parseAbi(signatures) {
|
|
33641
|
+
const structs = parseStructs(signatures);
|
|
34380
33642
|
const abi2 = [];
|
|
34381
33643
|
const length = signatures.length;
|
|
34382
33644
|
for (let i = 0; i < length; i++) {
|
|
34383
33645
|
const signature = signatures[i];
|
|
34384
|
-
if (
|
|
33646
|
+
if (isStructSignature(signature))
|
|
34385
33647
|
continue;
|
|
34386
|
-
abi2.push(
|
|
33648
|
+
abi2.push(parseSignature(signature, structs));
|
|
34387
33649
|
}
|
|
34388
33650
|
return abi2;
|
|
34389
33651
|
}
|
|
34390
|
-
var
|
|
33652
|
+
var init_parseAbi = __esm({
|
|
34391
33653
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbi.js"() {
|
|
34392
|
-
|
|
34393
|
-
|
|
34394
|
-
|
|
33654
|
+
init_signatures();
|
|
33655
|
+
init_structs();
|
|
33656
|
+
init_utils3();
|
|
34395
33657
|
}
|
|
34396
33658
|
});
|
|
34397
33659
|
|
|
34398
33660
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js
|
|
34399
|
-
function
|
|
33661
|
+
function parseAbiItem(signature) {
|
|
34400
33662
|
let abiItem;
|
|
34401
33663
|
if (typeof signature === "string")
|
|
34402
|
-
abiItem =
|
|
33664
|
+
abiItem = parseSignature(signature);
|
|
34403
33665
|
else {
|
|
34404
|
-
const structs =
|
|
33666
|
+
const structs = parseStructs(signature);
|
|
34405
33667
|
const length = signature.length;
|
|
34406
33668
|
for (let i = 0; i < length; i++) {
|
|
34407
33669
|
const signature_ = signature[i];
|
|
34408
|
-
if (
|
|
33670
|
+
if (isStructSignature(signature_))
|
|
34409
33671
|
continue;
|
|
34410
|
-
abiItem =
|
|
33672
|
+
abiItem = parseSignature(signature_, structs);
|
|
34411
33673
|
break;
|
|
34412
33674
|
}
|
|
34413
33675
|
}
|
|
34414
33676
|
if (!abiItem)
|
|
34415
|
-
throw new
|
|
33677
|
+
throw new InvalidAbiItemError({ signature });
|
|
34416
33678
|
return abiItem;
|
|
34417
33679
|
}
|
|
34418
33680
|
var init_parseAbiItem = __esm({
|
|
34419
33681
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js"() {
|
|
34420
|
-
|
|
34421
|
-
|
|
34422
|
-
|
|
34423
|
-
|
|
33682
|
+
init_abiItem();
|
|
33683
|
+
init_signatures();
|
|
33684
|
+
init_structs();
|
|
33685
|
+
init_utils3();
|
|
34424
33686
|
}
|
|
34425
33687
|
});
|
|
34426
33688
|
|
|
34427
33689
|
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
|
|
34428
|
-
function
|
|
33690
|
+
function parseAbiParameters(params) {
|
|
34429
33691
|
const abiParameters = [];
|
|
34430
33692
|
if (typeof params === "string") {
|
|
34431
|
-
const parameters =
|
|
33693
|
+
const parameters = splitParameters(params);
|
|
34432
33694
|
const length = parameters.length;
|
|
34433
33695
|
for (let i = 0; i < length; i++) {
|
|
34434
|
-
abiParameters.push(
|
|
33696
|
+
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
34435
33697
|
}
|
|
34436
33698
|
} else {
|
|
34437
|
-
const structs =
|
|
33699
|
+
const structs = parseStructs(params);
|
|
34438
33700
|
const length = params.length;
|
|
34439
33701
|
for (let i = 0; i < length; i++) {
|
|
34440
33702
|
const signature = params[i];
|
|
34441
|
-
if (
|
|
33703
|
+
if (isStructSignature(signature))
|
|
34442
33704
|
continue;
|
|
34443
|
-
const parameters =
|
|
33705
|
+
const parameters = splitParameters(signature);
|
|
34444
33706
|
const length2 = parameters.length;
|
|
34445
33707
|
for (let k = 0; k < length2; k++) {
|
|
34446
|
-
abiParameters.push(
|
|
33708
|
+
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
34447
33709
|
}
|
|
34448
33710
|
}
|
|
34449
33711
|
}
|
|
34450
33712
|
if (abiParameters.length === 0)
|
|
34451
|
-
throw new
|
|
33713
|
+
throw new InvalidAbiParametersError({ params });
|
|
34452
33714
|
return abiParameters;
|
|
34453
33715
|
}
|
|
34454
33716
|
var init_parseAbiParameters = __esm({
|
|
34455
33717
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js"() {
|
|
34456
|
-
|
|
34457
|
-
|
|
34458
|
-
|
|
34459
|
-
|
|
34460
|
-
|
|
33718
|
+
init_abiParameter();
|
|
33719
|
+
init_signatures();
|
|
33720
|
+
init_structs();
|
|
33721
|
+
init_utils3();
|
|
33722
|
+
init_utils3();
|
|
34461
33723
|
}
|
|
34462
33724
|
});
|
|
34463
33725
|
|
|
@@ -34466,7 +33728,7 @@ var init_exports2 = __esm({
|
|
|
34466
33728
|
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/exports/index.js"() {
|
|
34467
33729
|
init_formatAbiItem3();
|
|
34468
33730
|
init_formatAbiParameters2();
|
|
34469
|
-
|
|
33731
|
+
init_parseAbi();
|
|
34470
33732
|
init_parseAbiItem();
|
|
34471
33733
|
init_parseAbiParameters();
|
|
34472
33734
|
}
|
|
@@ -34521,10 +33783,10 @@ var init_size2 = __esm({
|
|
|
34521
33783
|
});
|
|
34522
33784
|
|
|
34523
33785
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/version.js
|
|
34524
|
-
var
|
|
34525
|
-
var
|
|
33786
|
+
var version3;
|
|
33787
|
+
var init_version3 = __esm({
|
|
34526
33788
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/version.js"() {
|
|
34527
|
-
|
|
33789
|
+
version3 = "2.51.3";
|
|
34528
33790
|
}
|
|
34529
33791
|
});
|
|
34530
33792
|
|
|
@@ -34536,15 +33798,15 @@ function walk2(err, fn) {
|
|
|
34536
33798
|
return walk2(err.cause, fn);
|
|
34537
33799
|
return fn ? null : err;
|
|
34538
33800
|
}
|
|
34539
|
-
var errorConfig2,
|
|
33801
|
+
var errorConfig2, BaseError3;
|
|
34540
33802
|
var init_base2 = __esm({
|
|
34541
33803
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/base.js"() {
|
|
34542
|
-
|
|
33804
|
+
init_version3();
|
|
34543
33805
|
errorConfig2 = {
|
|
34544
33806
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath9 = "", docsSlug }) => docsPath9 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath9}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
34545
|
-
version: `viem@${
|
|
33807
|
+
version: `viem@${version3}`
|
|
34546
33808
|
};
|
|
34547
|
-
|
|
33809
|
+
BaseError3 = class _BaseError extends Error {
|
|
34548
33810
|
constructor(shortMessage, args = {}) {
|
|
34549
33811
|
const details = (() => {
|
|
34550
33812
|
if (args.cause instanceof _BaseError)
|
|
@@ -34609,7 +33871,7 @@ var init_base2 = __esm({
|
|
|
34609
33871
|
this.metaMessages = args.metaMessages;
|
|
34610
33872
|
this.name = args.name ?? this.name;
|
|
34611
33873
|
this.shortMessage = shortMessage;
|
|
34612
|
-
this.version =
|
|
33874
|
+
this.version = version3;
|
|
34613
33875
|
}
|
|
34614
33876
|
walk(fn) {
|
|
34615
33877
|
return walk2(this, fn);
|
|
@@ -34625,7 +33887,7 @@ var init_abi2 = __esm({
|
|
|
34625
33887
|
init_formatAbiItem4();
|
|
34626
33888
|
init_size2();
|
|
34627
33889
|
init_base2();
|
|
34628
|
-
AbiConstructorNotFoundError = class extends
|
|
33890
|
+
AbiConstructorNotFoundError = class extends BaseError3 {
|
|
34629
33891
|
constructor({ docsPath: docsPath9 }) {
|
|
34630
33892
|
super([
|
|
34631
33893
|
"A constructor was not found on the ABI.",
|
|
@@ -34636,7 +33898,7 @@ var init_abi2 = __esm({
|
|
|
34636
33898
|
});
|
|
34637
33899
|
}
|
|
34638
33900
|
};
|
|
34639
|
-
AbiConstructorParamsNotFoundError = class extends
|
|
33901
|
+
AbiConstructorParamsNotFoundError = class extends BaseError3 {
|
|
34640
33902
|
constructor({ docsPath: docsPath9 }) {
|
|
34641
33903
|
super([
|
|
34642
33904
|
"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
|
|
@@ -34647,7 +33909,7 @@ var init_abi2 = __esm({
|
|
|
34647
33909
|
});
|
|
34648
33910
|
}
|
|
34649
33911
|
};
|
|
34650
|
-
AbiDecodingDataSizeTooSmallError = class extends
|
|
33912
|
+
AbiDecodingDataSizeTooSmallError = class extends BaseError3 {
|
|
34651
33913
|
constructor({ data, params, size: size6 }) {
|
|
34652
33914
|
super([`Data size of ${size6} bytes is too small for given parameters.`].join("\n"), {
|
|
34653
33915
|
metaMessages: [
|
|
@@ -34679,7 +33941,7 @@ var init_abi2 = __esm({
|
|
|
34679
33941
|
this.size = size6;
|
|
34680
33942
|
}
|
|
34681
33943
|
};
|
|
34682
|
-
AbiDecodingZeroDataError = class extends
|
|
33944
|
+
AbiDecodingZeroDataError = class extends BaseError3 {
|
|
34683
33945
|
constructor({ cause } = {}) {
|
|
34684
33946
|
super('Cannot decode zero data ("0x") with ABI parameters.', {
|
|
34685
33947
|
name: "AbiDecodingZeroDataError",
|
|
@@ -34687,7 +33949,7 @@ var init_abi2 = __esm({
|
|
|
34687
33949
|
});
|
|
34688
33950
|
}
|
|
34689
33951
|
};
|
|
34690
|
-
AbiEncodingArrayLengthMismatchError2 = class extends
|
|
33952
|
+
AbiEncodingArrayLengthMismatchError2 = class extends BaseError3 {
|
|
34691
33953
|
constructor({ expectedLength, givenLength, type }) {
|
|
34692
33954
|
super([
|
|
34693
33955
|
`ABI encoding array length mismatch for type ${type}.`,
|
|
@@ -34696,12 +33958,12 @@ var init_abi2 = __esm({
|
|
|
34696
33958
|
].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
34697
33959
|
}
|
|
34698
33960
|
};
|
|
34699
|
-
AbiEncodingBytesSizeMismatchError2 = class extends
|
|
33961
|
+
AbiEncodingBytesSizeMismatchError2 = class extends BaseError3 {
|
|
34700
33962
|
constructor({ expectedSize, value }) {
|
|
34701
33963
|
super(`Size of bytes "${value}" (bytes${size2(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
34702
33964
|
}
|
|
34703
33965
|
};
|
|
34704
|
-
AbiEncodingLengthMismatchError2 = class extends
|
|
33966
|
+
AbiEncodingLengthMismatchError2 = class extends BaseError3 {
|
|
34705
33967
|
constructor({ expectedLength, givenLength }) {
|
|
34706
33968
|
super([
|
|
34707
33969
|
"ABI encoding params/values length mismatch.",
|
|
@@ -34710,7 +33972,7 @@ var init_abi2 = __esm({
|
|
|
34710
33972
|
].join("\n"), { name: "AbiEncodingLengthMismatchError" });
|
|
34711
33973
|
}
|
|
34712
33974
|
};
|
|
34713
|
-
AbiErrorInputsNotFoundError = class extends
|
|
33975
|
+
AbiErrorInputsNotFoundError = class extends BaseError3 {
|
|
34714
33976
|
constructor(errorName, { docsPath: docsPath9 }) {
|
|
34715
33977
|
super([
|
|
34716
33978
|
`Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
|
|
@@ -34722,7 +33984,7 @@ var init_abi2 = __esm({
|
|
|
34722
33984
|
});
|
|
34723
33985
|
}
|
|
34724
33986
|
};
|
|
34725
|
-
AbiErrorNotFoundError = class extends
|
|
33987
|
+
AbiErrorNotFoundError = class extends BaseError3 {
|
|
34726
33988
|
constructor(errorName, { docsPath: docsPath9 } = {}) {
|
|
34727
33989
|
super([
|
|
34728
33990
|
`Error ${errorName ? `"${errorName}" ` : ""}not found on ABI.`,
|
|
@@ -34733,7 +33995,7 @@ var init_abi2 = __esm({
|
|
|
34733
33995
|
});
|
|
34734
33996
|
}
|
|
34735
33997
|
};
|
|
34736
|
-
AbiErrorSignatureNotFoundError = class extends
|
|
33998
|
+
AbiErrorSignatureNotFoundError = class extends BaseError3 {
|
|
34737
33999
|
constructor(signature, { docsPath: docsPath9, cause }) {
|
|
34738
34000
|
super([
|
|
34739
34001
|
`Encoded error signature "${signature}" not found on ABI.`,
|
|
@@ -34753,7 +34015,7 @@ var init_abi2 = __esm({
|
|
|
34753
34015
|
this.signature = signature;
|
|
34754
34016
|
}
|
|
34755
34017
|
};
|
|
34756
|
-
AbiEventSignatureEmptyTopicsError = class extends
|
|
34018
|
+
AbiEventSignatureEmptyTopicsError = class extends BaseError3 {
|
|
34757
34019
|
constructor({ docsPath: docsPath9 }) {
|
|
34758
34020
|
super("Cannot extract event signature from empty topics.", {
|
|
34759
34021
|
docsPath: docsPath9,
|
|
@@ -34761,7 +34023,7 @@ var init_abi2 = __esm({
|
|
|
34761
34023
|
});
|
|
34762
34024
|
}
|
|
34763
34025
|
};
|
|
34764
|
-
AbiEventSignatureNotFoundError = class extends
|
|
34026
|
+
AbiEventSignatureNotFoundError = class extends BaseError3 {
|
|
34765
34027
|
constructor(signature, { docsPath: docsPath9 }) {
|
|
34766
34028
|
super([
|
|
34767
34029
|
`Encoded event signature "${signature}" not found on ABI.`,
|
|
@@ -34773,7 +34035,7 @@ var init_abi2 = __esm({
|
|
|
34773
34035
|
});
|
|
34774
34036
|
}
|
|
34775
34037
|
};
|
|
34776
|
-
AbiEventNotFoundError = class extends
|
|
34038
|
+
AbiEventNotFoundError = class extends BaseError3 {
|
|
34777
34039
|
constructor(eventName, { docsPath: docsPath9 } = {}) {
|
|
34778
34040
|
super([
|
|
34779
34041
|
`Event ${eventName ? `"${eventName}" ` : ""}not found on ABI.`,
|
|
@@ -34784,7 +34046,7 @@ var init_abi2 = __esm({
|
|
|
34784
34046
|
});
|
|
34785
34047
|
}
|
|
34786
34048
|
};
|
|
34787
|
-
AbiFunctionNotFoundError2 = class extends
|
|
34049
|
+
AbiFunctionNotFoundError2 = class extends BaseError3 {
|
|
34788
34050
|
constructor(functionName, { docsPath: docsPath9 } = {}) {
|
|
34789
34051
|
super([
|
|
34790
34052
|
`Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
|
|
@@ -34795,7 +34057,7 @@ var init_abi2 = __esm({
|
|
|
34795
34057
|
});
|
|
34796
34058
|
}
|
|
34797
34059
|
};
|
|
34798
|
-
AbiFunctionOutputsNotFoundError = class extends
|
|
34060
|
+
AbiFunctionOutputsNotFoundError = class extends BaseError3 {
|
|
34799
34061
|
constructor(functionName, { docsPath: docsPath9 }) {
|
|
34800
34062
|
super([
|
|
34801
34063
|
`Function "${functionName}" does not contain any \`outputs\` on ABI.`,
|
|
@@ -34807,7 +34069,7 @@ var init_abi2 = __esm({
|
|
|
34807
34069
|
});
|
|
34808
34070
|
}
|
|
34809
34071
|
};
|
|
34810
|
-
AbiFunctionSignatureNotFoundError = class extends
|
|
34072
|
+
AbiFunctionSignatureNotFoundError = class extends BaseError3 {
|
|
34811
34073
|
constructor(signature, { docsPath: docsPath9 }) {
|
|
34812
34074
|
super([
|
|
34813
34075
|
`Encoded function signature "${signature}" not found on ABI.`,
|
|
@@ -34819,7 +34081,7 @@ var init_abi2 = __esm({
|
|
|
34819
34081
|
});
|
|
34820
34082
|
}
|
|
34821
34083
|
};
|
|
34822
|
-
AbiItemAmbiguityError2 = class extends
|
|
34084
|
+
AbiItemAmbiguityError2 = class extends BaseError3 {
|
|
34823
34085
|
constructor(x, y) {
|
|
34824
34086
|
super("Found ambiguous types in overloaded ABI items.", {
|
|
34825
34087
|
metaMessages: [
|
|
@@ -34833,14 +34095,14 @@ var init_abi2 = __esm({
|
|
|
34833
34095
|
});
|
|
34834
34096
|
}
|
|
34835
34097
|
};
|
|
34836
|
-
BytesSizeMismatchError2 = class extends
|
|
34098
|
+
BytesSizeMismatchError2 = class extends BaseError3 {
|
|
34837
34099
|
constructor({ expectedSize, givenSize }) {
|
|
34838
34100
|
super(`Expected bytes${expectedSize}, got bytes${givenSize}.`, {
|
|
34839
34101
|
name: "BytesSizeMismatchError"
|
|
34840
34102
|
});
|
|
34841
34103
|
}
|
|
34842
34104
|
};
|
|
34843
|
-
DecodeLogDataMismatch = class extends
|
|
34105
|
+
DecodeLogDataMismatch = class extends BaseError3 {
|
|
34844
34106
|
constructor({ abiItem, data, params, size: size6 }) {
|
|
34845
34107
|
super([
|
|
34846
34108
|
`Data size of ${size6} bytes is too small for non-indexed event parameters.`
|
|
@@ -34881,7 +34143,7 @@ var init_abi2 = __esm({
|
|
|
34881
34143
|
this.size = size6;
|
|
34882
34144
|
}
|
|
34883
34145
|
};
|
|
34884
|
-
DecodeLogTopicsMismatch = class extends
|
|
34146
|
+
DecodeLogTopicsMismatch = class extends BaseError3 {
|
|
34885
34147
|
constructor({ abiItem, param }) {
|
|
34886
34148
|
super([
|
|
34887
34149
|
`Expected a topic for indexed event parameter${param.name ? ` "${param.name}"` : ""} on event "${formatAbiItem4(abiItem, { includeName: true })}".`
|
|
@@ -34895,7 +34157,7 @@ var init_abi2 = __esm({
|
|
|
34895
34157
|
this.abiItem = abiItem;
|
|
34896
34158
|
}
|
|
34897
34159
|
};
|
|
34898
|
-
InvalidAbiEncodingTypeError2 = class extends
|
|
34160
|
+
InvalidAbiEncodingTypeError2 = class extends BaseError3 {
|
|
34899
34161
|
constructor(type, { docsPath: docsPath9 }) {
|
|
34900
34162
|
super([
|
|
34901
34163
|
`Type "${type}" is not a valid encoding type.`,
|
|
@@ -34903,7 +34165,7 @@ var init_abi2 = __esm({
|
|
|
34903
34165
|
].join("\n"), { docsPath: docsPath9, name: "InvalidAbiEncodingType" });
|
|
34904
34166
|
}
|
|
34905
34167
|
};
|
|
34906
|
-
InvalidAbiDecodingTypeError = class extends
|
|
34168
|
+
InvalidAbiDecodingTypeError = class extends BaseError3 {
|
|
34907
34169
|
constructor(type, { docsPath: docsPath9 }) {
|
|
34908
34170
|
super([
|
|
34909
34171
|
`Type "${type}" is not a valid decoding type.`,
|
|
@@ -34911,14 +34173,14 @@ var init_abi2 = __esm({
|
|
|
34911
34173
|
].join("\n"), { docsPath: docsPath9, name: "InvalidAbiDecodingType" });
|
|
34912
34174
|
}
|
|
34913
34175
|
};
|
|
34914
|
-
InvalidArrayError2 = class extends
|
|
34176
|
+
InvalidArrayError2 = class extends BaseError3 {
|
|
34915
34177
|
constructor(value) {
|
|
34916
34178
|
super([`Value "${value}" is not a valid array.`].join("\n"), {
|
|
34917
34179
|
name: "InvalidArrayError"
|
|
34918
34180
|
});
|
|
34919
34181
|
}
|
|
34920
34182
|
};
|
|
34921
|
-
InvalidDefinitionTypeError2 = class extends
|
|
34183
|
+
InvalidDefinitionTypeError2 = class extends BaseError3 {
|
|
34922
34184
|
constructor(type) {
|
|
34923
34185
|
super([
|
|
34924
34186
|
`"${type}" is not a valid definition type.`,
|
|
@@ -34934,17 +34196,17 @@ var SliceOffsetOutOfBoundsError2, SizeExceedsPaddingSizeError2, InvalidBytesLeng
|
|
|
34934
34196
|
var init_data2 = __esm({
|
|
34935
34197
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/data.js"() {
|
|
34936
34198
|
init_base2();
|
|
34937
|
-
SliceOffsetOutOfBoundsError2 = class extends
|
|
34199
|
+
SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
|
|
34938
34200
|
constructor({ offset, position, size: size6 }) {
|
|
34939
34201
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size6}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
34940
34202
|
}
|
|
34941
34203
|
};
|
|
34942
|
-
SizeExceedsPaddingSizeError2 = class extends
|
|
34204
|
+
SizeExceedsPaddingSizeError2 = class extends BaseError3 {
|
|
34943
34205
|
constructor({ size: size6, targetSize, type }) {
|
|
34944
34206
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size6}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
34945
34207
|
}
|
|
34946
34208
|
};
|
|
34947
|
-
InvalidBytesLengthError = class extends
|
|
34209
|
+
InvalidBytesLengthError = class extends BaseError3 {
|
|
34948
34210
|
constructor({ size: size6, targetSize, type }) {
|
|
34949
34211
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size6} ${type} long.`, { name: "InvalidBytesLengthError" });
|
|
34950
34212
|
}
|
|
@@ -34997,24 +34259,24 @@ var IntegerOutOfRangeError2, InvalidBytesBooleanError, InvalidHexBooleanError2,
|
|
|
34997
34259
|
var init_encoding2 = __esm({
|
|
34998
34260
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/encoding.js"() {
|
|
34999
34261
|
init_base2();
|
|
35000
|
-
IntegerOutOfRangeError2 = class extends
|
|
34262
|
+
IntegerOutOfRangeError2 = class extends BaseError3 {
|
|
35001
34263
|
constructor({ max, min, signed, size: size6, value }) {
|
|
35002
34264
|
super(`Number "${value}" is not in safe ${size6 ? `${size6 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
35003
34265
|
}
|
|
35004
34266
|
};
|
|
35005
|
-
InvalidBytesBooleanError = class extends
|
|
34267
|
+
InvalidBytesBooleanError = class extends BaseError3 {
|
|
35006
34268
|
constructor(bytes) {
|
|
35007
34269
|
super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
35008
34270
|
name: "InvalidBytesBooleanError"
|
|
35009
34271
|
});
|
|
35010
34272
|
}
|
|
35011
34273
|
};
|
|
35012
|
-
InvalidHexBooleanError2 = class extends
|
|
34274
|
+
InvalidHexBooleanError2 = class extends BaseError3 {
|
|
35013
34275
|
constructor(hex) {
|
|
35014
34276
|
super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
35015
34277
|
}
|
|
35016
34278
|
};
|
|
35017
|
-
SizeOverflowError2 = class extends
|
|
34279
|
+
SizeOverflowError2 = class extends BaseError3 {
|
|
35018
34280
|
constructor({ givenSize, maxSize }) {
|
|
35019
34281
|
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
35020
34282
|
}
|
|
@@ -35216,7 +34478,7 @@ function hexToBytes4(hex_, opts = {}) {
|
|
|
35216
34478
|
const nibbleLeft = charCodeToBase162(hexString.charCodeAt(j++));
|
|
35217
34479
|
const nibbleRight = charCodeToBase162(hexString.charCodeAt(j++));
|
|
35218
34480
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
35219
|
-
throw new
|
|
34481
|
+
throw new BaseError3(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
35220
34482
|
}
|
|
35221
34483
|
bytes[index2] = nibbleLeft * 16 + nibbleRight;
|
|
35222
34484
|
}
|
|
@@ -35324,7 +34586,7 @@ function normalizeSignature2(signature) {
|
|
|
35324
34586
|
current += char;
|
|
35325
34587
|
}
|
|
35326
34588
|
if (!valid)
|
|
35327
|
-
throw new
|
|
34589
|
+
throw new BaseError3("Unable to normalize signature.");
|
|
35328
34590
|
return result;
|
|
35329
34591
|
}
|
|
35330
34592
|
var init_normalizeSignature2 = __esm({
|
|
@@ -35375,7 +34637,7 @@ var InvalidAddressError2;
|
|
|
35375
34637
|
var init_address3 = __esm({
|
|
35376
34638
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/address.js"() {
|
|
35377
34639
|
init_base2();
|
|
35378
|
-
InvalidAddressError2 = class extends
|
|
34640
|
+
InvalidAddressError2 = class extends BaseError3 {
|
|
35379
34641
|
constructor({ address }) {
|
|
35380
34642
|
super(`Address "${address}" is invalid.`, {
|
|
35381
34643
|
metaMessages: [
|
|
@@ -35568,11 +34830,11 @@ var init_slice2 = __esm({
|
|
|
35568
34830
|
});
|
|
35569
34831
|
|
|
35570
34832
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/regex.js
|
|
35571
|
-
var
|
|
34833
|
+
var bytesRegex3, integerRegex3;
|
|
35572
34834
|
var init_regex4 = __esm({
|
|
35573
34835
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/regex.js"() {
|
|
35574
|
-
|
|
35575
|
-
|
|
34836
|
+
bytesRegex3 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
34837
|
+
integerRegex3 = /^(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)?$/;
|
|
35576
34838
|
}
|
|
35577
34839
|
});
|
|
35578
34840
|
|
|
@@ -35618,7 +34880,7 @@ function prepareParam2({ param, value }) {
|
|
|
35618
34880
|
}
|
|
35619
34881
|
if (param.type.startsWith("uint") || param.type.startsWith("int")) {
|
|
35620
34882
|
const signed = param.type.startsWith("int");
|
|
35621
|
-
const [, , size6 = "256"] =
|
|
34883
|
+
const [, , size6 = "256"] = integerRegex3.exec(param.type) ?? [];
|
|
35622
34884
|
return encodeNumber2(value, {
|
|
35623
34885
|
signed,
|
|
35624
34886
|
size: Number(size6)
|
|
@@ -35722,7 +34984,7 @@ function encodeBytes2(value, { param }) {
|
|
|
35722
34984
|
}
|
|
35723
34985
|
function encodeBool2(value) {
|
|
35724
34986
|
if (typeof value !== "boolean")
|
|
35725
|
-
throw new
|
|
34987
|
+
throw new BaseError3(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
35726
34988
|
return { dynamic: false, encoded: padHex2(boolToHex2(value)) };
|
|
35727
34989
|
}
|
|
35728
34990
|
function encodeNumber2(value, { signed, size: size6 = 256 }) {
|
|
@@ -36043,19 +35305,19 @@ var NegativeOffsetError2, PositionOutOfBoundsError2, RecursiveReadLimitExceededE
|
|
|
36043
35305
|
var init_cursor3 = __esm({
|
|
36044
35306
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/cursor.js"() {
|
|
36045
35307
|
init_base2();
|
|
36046
|
-
NegativeOffsetError2 = class extends
|
|
35308
|
+
NegativeOffsetError2 = class extends BaseError3 {
|
|
36047
35309
|
constructor({ offset }) {
|
|
36048
35310
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
36049
35311
|
name: "NegativeOffsetError"
|
|
36050
35312
|
});
|
|
36051
35313
|
}
|
|
36052
35314
|
};
|
|
36053
|
-
PositionOutOfBoundsError2 = class extends
|
|
35315
|
+
PositionOutOfBoundsError2 = class extends BaseError3 {
|
|
36054
35316
|
constructor({ length, position }) {
|
|
36055
35317
|
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, { name: "PositionOutOfBoundsError" });
|
|
36056
35318
|
}
|
|
36057
35319
|
};
|
|
36058
|
-
RecursiveReadLimitExceededError2 = class extends
|
|
35320
|
+
RecursiveReadLimitExceededError2 = class extends BaseError3 {
|
|
36059
35321
|
constructor({ count, limit }) {
|
|
36060
35322
|
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
36061
35323
|
}
|
|
@@ -36628,14 +35890,14 @@ var AccountStateConflictError, StateAssignmentConflictError;
|
|
|
36628
35890
|
var init_stateOverride = __esm({
|
|
36629
35891
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/stateOverride.js"() {
|
|
36630
35892
|
init_base2();
|
|
36631
|
-
AccountStateConflictError = class extends
|
|
35893
|
+
AccountStateConflictError = class extends BaseError3 {
|
|
36632
35894
|
constructor({ address }) {
|
|
36633
35895
|
super(`State for account "${address}" is set multiple times.`, {
|
|
36634
35896
|
name: "AccountStateConflictError"
|
|
36635
35897
|
});
|
|
36636
35898
|
}
|
|
36637
35899
|
};
|
|
36638
|
-
StateAssignmentConflictError = class extends
|
|
35900
|
+
StateAssignmentConflictError = class extends BaseError3 {
|
|
36639
35901
|
constructor() {
|
|
36640
35902
|
super("state and stateDiff are set on the same account.", {
|
|
36641
35903
|
name: "StateAssignmentConflictError"
|
|
@@ -36661,14 +35923,14 @@ var init_transaction2 = __esm({
|
|
|
36661
35923
|
init_formatEther();
|
|
36662
35924
|
init_formatGwei2();
|
|
36663
35925
|
init_base2();
|
|
36664
|
-
InvalidLegacyVError2 = class extends
|
|
35926
|
+
InvalidLegacyVError2 = class extends BaseError3 {
|
|
36665
35927
|
constructor({ v }) {
|
|
36666
35928
|
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
|
36667
35929
|
name: "InvalidLegacyVError"
|
|
36668
35930
|
});
|
|
36669
35931
|
}
|
|
36670
35932
|
};
|
|
36671
|
-
InvalidSerializableTransactionError2 = class extends
|
|
35933
|
+
InvalidSerializableTransactionError2 = class extends BaseError3 {
|
|
36672
35934
|
constructor({ transaction }) {
|
|
36673
35935
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
36674
35936
|
metaMessages: [
|
|
@@ -36689,12 +35951,12 @@ var init_transaction2 = __esm({
|
|
|
36689
35951
|
});
|
|
36690
35952
|
}
|
|
36691
35953
|
};
|
|
36692
|
-
InvalidStorageKeySizeError2 = class extends
|
|
35954
|
+
InvalidStorageKeySizeError2 = class extends BaseError3 {
|
|
36693
35955
|
constructor({ storageKey }) {
|
|
36694
35956
|
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
36695
35957
|
}
|
|
36696
35958
|
};
|
|
36697
|
-
TransactionExecutionError = class extends
|
|
35959
|
+
TransactionExecutionError = class extends BaseError3 {
|
|
36698
35960
|
constructor(cause, { account, docsPath: docsPath9, chain: chain2, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
|
|
36699
35961
|
const prettyArgs = prettyPrint2({
|
|
36700
35962
|
chain: chain2 && `${chain2?.name} (id: ${chain2?.id})`,
|
|
@@ -36727,7 +35989,7 @@ var init_transaction2 = __esm({
|
|
|
36727
35989
|
this.cause = cause;
|
|
36728
35990
|
}
|
|
36729
35991
|
};
|
|
36730
|
-
TransactionNotFoundError = class extends
|
|
35992
|
+
TransactionNotFoundError = class extends BaseError3 {
|
|
36731
35993
|
constructor({ blockHash, blockNumber, blockTag, hash: hash4, index: index2 }) {
|
|
36732
35994
|
let identifier = "Transaction";
|
|
36733
35995
|
if (blockTag && index2 !== void 0)
|
|
@@ -36743,14 +36005,14 @@ var init_transaction2 = __esm({
|
|
|
36743
36005
|
});
|
|
36744
36006
|
}
|
|
36745
36007
|
};
|
|
36746
|
-
TransactionReceiptNotFoundError = class extends
|
|
36008
|
+
TransactionReceiptNotFoundError = class extends BaseError3 {
|
|
36747
36009
|
constructor({ hash: hash4 }) {
|
|
36748
36010
|
super(`Transaction receipt with hash "${hash4}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
36749
36011
|
name: "TransactionReceiptNotFoundError"
|
|
36750
36012
|
});
|
|
36751
36013
|
}
|
|
36752
36014
|
};
|
|
36753
|
-
TransactionReceiptRevertedError = class extends
|
|
36015
|
+
TransactionReceiptRevertedError = class extends BaseError3 {
|
|
36754
36016
|
constructor({ receipt }) {
|
|
36755
36017
|
super(`Transaction with hash "${receipt.transactionHash}" reverted.`, {
|
|
36756
36018
|
metaMessages: [
|
|
@@ -36771,7 +36033,7 @@ var init_transaction2 = __esm({
|
|
|
36771
36033
|
this.receipt = receipt;
|
|
36772
36034
|
}
|
|
36773
36035
|
};
|
|
36774
|
-
WaitForTransactionReceiptTimeoutError = class extends
|
|
36036
|
+
WaitForTransactionReceiptTimeoutError = class extends BaseError3 {
|
|
36775
36037
|
constructor({ hash: hash4 }) {
|
|
36776
36038
|
super(`Timed out while waiting for transaction with hash "${hash4}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
36777
36039
|
}
|
|
@@ -36793,7 +36055,7 @@ function isAbortError(error) {
|
|
|
36793
36055
|
return typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
|
|
36794
36056
|
}
|
|
36795
36057
|
var getContractAddress, getUrl;
|
|
36796
|
-
var
|
|
36058
|
+
var init_utils4 = __esm({
|
|
36797
36059
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/utils.js"() {
|
|
36798
36060
|
getContractAddress = (address) => address;
|
|
36799
36061
|
getUrl = (url) => {
|
|
@@ -36827,8 +36089,8 @@ var init_contract = __esm({
|
|
|
36827
36089
|
init_base2();
|
|
36828
36090
|
init_stateOverride();
|
|
36829
36091
|
init_transaction2();
|
|
36830
|
-
|
|
36831
|
-
CallExecutionError = class extends
|
|
36092
|
+
init_utils4();
|
|
36093
|
+
CallExecutionError = class extends BaseError3 {
|
|
36832
36094
|
constructor(cause, { account: account_, docsPath: docsPath9, chain: chain2, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
36833
36095
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
36834
36096
|
let prettyArgs = prettyPrint2({
|
|
@@ -36865,7 +36127,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
36865
36127
|
this.cause = cause;
|
|
36866
36128
|
}
|
|
36867
36129
|
};
|
|
36868
|
-
ContractFunctionExecutionError = class extends
|
|
36130
|
+
ContractFunctionExecutionError = class extends BaseError3 {
|
|
36869
36131
|
constructor(cause, { abi: abi2, args, contractAddress, docsPath: docsPath9, functionName, sender }) {
|
|
36870
36132
|
const abiItem = getAbiItem2({ abi: abi2, args, name: functionName });
|
|
36871
36133
|
const formattedArgs = abiItem ? formatAbiItemWithArgs({
|
|
@@ -36941,7 +36203,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
36941
36203
|
this.sender = sender;
|
|
36942
36204
|
}
|
|
36943
36205
|
};
|
|
36944
|
-
ContractFunctionRevertedError = class extends
|
|
36206
|
+
ContractFunctionRevertedError = class extends BaseError3 {
|
|
36945
36207
|
constructor({ abi: abi2, data, functionName, message, cause: error }) {
|
|
36946
36208
|
let cause;
|
|
36947
36209
|
let decodedData;
|
|
@@ -37021,7 +36283,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
37021
36283
|
this.signature = signature;
|
|
37022
36284
|
}
|
|
37023
36285
|
};
|
|
37024
|
-
ContractFunctionZeroDataError = class extends
|
|
36286
|
+
ContractFunctionZeroDataError = class extends BaseError3 {
|
|
37025
36287
|
constructor({ functionName, cause }) {
|
|
37026
36288
|
super(`The contract function "${functionName}" returned no data ("0x").`, {
|
|
37027
36289
|
metaMessages: [
|
|
@@ -37035,7 +36297,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
37035
36297
|
});
|
|
37036
36298
|
}
|
|
37037
36299
|
};
|
|
37038
|
-
CounterfactualDeploymentFailedError = class extends
|
|
36300
|
+
CounterfactualDeploymentFailedError = class extends BaseError3 {
|
|
37039
36301
|
constructor({ factory }) {
|
|
37040
36302
|
super(`Deployment for counterfactual contract call failed${factory ? ` for factory "${factory}".` : ""}`, {
|
|
37041
36303
|
metaMessages: [
|
|
@@ -37047,7 +36309,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
37047
36309
|
});
|
|
37048
36310
|
}
|
|
37049
36311
|
};
|
|
37050
|
-
RawContractError = class extends
|
|
36312
|
+
RawContractError = class extends BaseError3 {
|
|
37051
36313
|
constructor({ data, message }) {
|
|
37052
36314
|
super(message || "", { name: "RawContractError" });
|
|
37053
36315
|
Object.defineProperty(this, "code", {
|
|
@@ -37074,8 +36336,8 @@ var init_request = __esm({
|
|
|
37074
36336
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/request.js"() {
|
|
37075
36337
|
init_stringify2();
|
|
37076
36338
|
init_base2();
|
|
37077
|
-
|
|
37078
|
-
HttpRequestError = class extends
|
|
36339
|
+
init_utils4();
|
|
36340
|
+
HttpRequestError = class extends BaseError3 {
|
|
37079
36341
|
constructor({ body, cause, details, headers, status, url }) {
|
|
37080
36342
|
super("HTTP request failed.", {
|
|
37081
36343
|
cause,
|
|
@@ -37117,7 +36379,7 @@ var init_request = __esm({
|
|
|
37117
36379
|
this.url = url;
|
|
37118
36380
|
}
|
|
37119
36381
|
};
|
|
37120
|
-
RpcRequestError = class extends
|
|
36382
|
+
RpcRequestError = class extends BaseError3 {
|
|
37121
36383
|
constructor({ body, error, url }) {
|
|
37122
36384
|
super("RPC Request failed.", {
|
|
37123
36385
|
cause: error,
|
|
@@ -37148,7 +36410,7 @@ var init_request = __esm({
|
|
|
37148
36410
|
this.url = url;
|
|
37149
36411
|
}
|
|
37150
36412
|
};
|
|
37151
|
-
TimeoutError = class extends
|
|
36413
|
+
TimeoutError = class extends BaseError3 {
|
|
37152
36414
|
constructor({ body, url }) {
|
|
37153
36415
|
super("The request took too long to respond.", {
|
|
37154
36416
|
details: "The request timed out.",
|
|
@@ -37174,7 +36436,7 @@ var init_rpc = __esm({
|
|
|
37174
36436
|
init_base2();
|
|
37175
36437
|
init_request();
|
|
37176
36438
|
unknownErrorCode = -1;
|
|
37177
|
-
RpcError = class extends
|
|
36439
|
+
RpcError = class extends BaseError3 {
|
|
37178
36440
|
constructor(cause, { code, docsPath: docsPath9, metaMessages, name, shortMessage }) {
|
|
37179
36441
|
super(shortMessage, {
|
|
37180
36442
|
cause,
|
|
@@ -37623,7 +36885,7 @@ var init_node2 = __esm({
|
|
|
37623
36885
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/node.js"() {
|
|
37624
36886
|
init_formatGwei2();
|
|
37625
36887
|
init_base2();
|
|
37626
|
-
ExecutionRevertedError2 = class extends
|
|
36888
|
+
ExecutionRevertedError2 = class extends BaseError3 {
|
|
37627
36889
|
constructor({ cause, message } = {}) {
|
|
37628
36890
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
37629
36891
|
super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
|
|
@@ -37644,7 +36906,7 @@ var init_node2 = __esm({
|
|
|
37644
36906
|
writable: true,
|
|
37645
36907
|
value: /execution reverted|gas required exceeds allowance/
|
|
37646
36908
|
});
|
|
37647
|
-
FeeCapTooHighError2 = class extends
|
|
36909
|
+
FeeCapTooHighError2 = class extends BaseError3 {
|
|
37648
36910
|
constructor({ cause, maxFeePerGas } = {}) {
|
|
37649
36911
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei2(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
37650
36912
|
cause,
|
|
@@ -37658,7 +36920,7 @@ var init_node2 = __esm({
|
|
|
37658
36920
|
writable: true,
|
|
37659
36921
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
37660
36922
|
});
|
|
37661
|
-
FeeCapTooLowError2 = class extends
|
|
36923
|
+
FeeCapTooLowError2 = class extends BaseError3 {
|
|
37662
36924
|
constructor({ cause, maxFeePerGas } = {}) {
|
|
37663
36925
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei2(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
37664
36926
|
cause,
|
|
@@ -37672,7 +36934,7 @@ var init_node2 = __esm({
|
|
|
37672
36934
|
writable: true,
|
|
37673
36935
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
37674
36936
|
});
|
|
37675
|
-
NonceTooHighError2 = class extends
|
|
36937
|
+
NonceTooHighError2 = class extends BaseError3 {
|
|
37676
36938
|
constructor({ cause, nonce } = {}) {
|
|
37677
36939
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause, name: "NonceTooHighError" });
|
|
37678
36940
|
}
|
|
@@ -37683,7 +36945,7 @@ var init_node2 = __esm({
|
|
|
37683
36945
|
writable: true,
|
|
37684
36946
|
value: /nonce too high/
|
|
37685
36947
|
});
|
|
37686
|
-
NonceTooLowError2 = class extends
|
|
36948
|
+
NonceTooLowError2 = class extends BaseError3 {
|
|
37687
36949
|
constructor({ cause, nonce } = {}) {
|
|
37688
36950
|
super([
|
|
37689
36951
|
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -37697,7 +36959,7 @@ var init_node2 = __esm({
|
|
|
37697
36959
|
writable: true,
|
|
37698
36960
|
value: /nonce too low|transaction already imported|already known/
|
|
37699
36961
|
});
|
|
37700
|
-
NonceMaxValueError2 = class extends
|
|
36962
|
+
NonceMaxValueError2 = class extends BaseError3 {
|
|
37701
36963
|
constructor({ cause, nonce } = {}) {
|
|
37702
36964
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause, name: "NonceMaxValueError" });
|
|
37703
36965
|
}
|
|
@@ -37708,7 +36970,7 @@ var init_node2 = __esm({
|
|
|
37708
36970
|
writable: true,
|
|
37709
36971
|
value: /nonce has max value/
|
|
37710
36972
|
});
|
|
37711
|
-
InsufficientFundsError2 = class extends
|
|
36973
|
+
InsufficientFundsError2 = class extends BaseError3 {
|
|
37712
36974
|
constructor({ cause } = {}) {
|
|
37713
36975
|
super([
|
|
37714
36976
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -37734,7 +36996,7 @@ var init_node2 = __esm({
|
|
|
37734
36996
|
writable: true,
|
|
37735
36997
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
37736
36998
|
});
|
|
37737
|
-
IntrinsicGasTooHighError2 = class extends
|
|
36999
|
+
IntrinsicGasTooHighError2 = class extends BaseError3 {
|
|
37738
37000
|
constructor({ cause, gas } = {}) {
|
|
37739
37001
|
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
37740
37002
|
cause,
|
|
@@ -37748,7 +37010,7 @@ var init_node2 = __esm({
|
|
|
37748
37010
|
writable: true,
|
|
37749
37011
|
value: /intrinsic gas too high|gas limit reached/
|
|
37750
37012
|
});
|
|
37751
|
-
IntrinsicGasTooLowError2 = class extends
|
|
37013
|
+
IntrinsicGasTooLowError2 = class extends BaseError3 {
|
|
37752
37014
|
constructor({ cause, gas } = {}) {
|
|
37753
37015
|
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
|
|
37754
37016
|
cause,
|
|
@@ -37762,7 +37024,7 @@ var init_node2 = __esm({
|
|
|
37762
37024
|
writable: true,
|
|
37763
37025
|
value: /intrinsic gas too low/
|
|
37764
37026
|
});
|
|
37765
|
-
TransactionTypeNotSupportedError2 = class extends
|
|
37027
|
+
TransactionTypeNotSupportedError2 = class extends BaseError3 {
|
|
37766
37028
|
constructor({ cause }) {
|
|
37767
37029
|
super("The transaction type is not supported for this chain.", {
|
|
37768
37030
|
cause,
|
|
@@ -37776,7 +37038,7 @@ var init_node2 = __esm({
|
|
|
37776
37038
|
writable: true,
|
|
37777
37039
|
value: /transaction type not valid/
|
|
37778
37040
|
});
|
|
37779
|
-
TipAboveFeeCapError2 = class extends
|
|
37041
|
+
TipAboveFeeCapError2 = class extends BaseError3 {
|
|
37780
37042
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas } = {}) {
|
|
37781
37043
|
super([
|
|
37782
37044
|
`The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei2(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei2(maxFeePerGas)} gwei` : ""}).`
|
|
@@ -37792,7 +37054,7 @@ var init_node2 = __esm({
|
|
|
37792
37054
|
writable: true,
|
|
37793
37055
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
37794
37056
|
});
|
|
37795
|
-
UnknownNodeError = class extends
|
|
37057
|
+
UnknownNodeError = class extends BaseError3 {
|
|
37796
37058
|
constructor({ cause }) {
|
|
37797
37059
|
super(`An error occurred while executing: ${cause?.shortMessage}`, {
|
|
37798
37060
|
cause,
|
|
@@ -37806,8 +37068,8 @@ var init_node2 = __esm({
|
|
|
37806
37068
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
37807
37069
|
function getNodeError(err, args) {
|
|
37808
37070
|
const message = (err.details || "").toLowerCase();
|
|
37809
|
-
const executionRevertedError = err instanceof
|
|
37810
|
-
if (executionRevertedError instanceof
|
|
37071
|
+
const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError2.code) : err;
|
|
37072
|
+
if (executionRevertedError instanceof BaseError3)
|
|
37811
37073
|
return new ExecutionRevertedError2({
|
|
37812
37074
|
cause: err,
|
|
37813
37075
|
message: executionRevertedError.details
|
|
@@ -38139,7 +37401,7 @@ var init_assertRequest = __esm({
|
|
|
38139
37401
|
function formatBlockParameter(parameters) {
|
|
38140
37402
|
const { blockHash, blockNumber, blockTag, requireCanonical } = parameters;
|
|
38141
37403
|
if (requireCanonical !== void 0 && !blockHash)
|
|
38142
|
-
throw new
|
|
37404
|
+
throw new BaseError3("`requireCanonical` can only be provided when `blockHash` is set.");
|
|
38143
37405
|
if (blockHash)
|
|
38144
37406
|
return requireCanonical ? { blockHash, requireCanonical } : { blockHash };
|
|
38145
37407
|
if (typeof blockNumber === "bigint")
|
|
@@ -38200,20 +37462,20 @@ var init_decodeFunctionResult = __esm({
|
|
|
38200
37462
|
});
|
|
38201
37463
|
|
|
38202
37464
|
// ../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/version.js
|
|
38203
|
-
var
|
|
38204
|
-
var
|
|
37465
|
+
var version4;
|
|
37466
|
+
var init_version4 = __esm({
|
|
38205
37467
|
"../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/version.js"() {
|
|
38206
|
-
|
|
37468
|
+
version4 = "0.1.1";
|
|
38207
37469
|
}
|
|
38208
37470
|
});
|
|
38209
37471
|
|
|
38210
37472
|
// ../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/errors.js
|
|
38211
37473
|
function getVersion() {
|
|
38212
|
-
return
|
|
37474
|
+
return version4;
|
|
38213
37475
|
}
|
|
38214
|
-
var
|
|
37476
|
+
var init_errors2 = __esm({
|
|
38215
37477
|
"../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/errors.js"() {
|
|
38216
|
-
|
|
37478
|
+
init_version4();
|
|
38217
37479
|
}
|
|
38218
37480
|
});
|
|
38219
37481
|
|
|
@@ -38225,11 +37487,11 @@ function walk3(err, fn) {
|
|
|
38225
37487
|
return walk3(err.cause, fn);
|
|
38226
37488
|
return fn ? null : err;
|
|
38227
37489
|
}
|
|
38228
|
-
var
|
|
37490
|
+
var BaseError4;
|
|
38229
37491
|
var init_Errors = __esm({
|
|
38230
37492
|
"../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Errors.js"() {
|
|
38231
|
-
|
|
38232
|
-
|
|
37493
|
+
init_errors2();
|
|
37494
|
+
BaseError4 = class _BaseError extends Error {
|
|
38233
37495
|
static setStaticOptions(options) {
|
|
38234
37496
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
38235
37497
|
_BaseError.prototype.showVersion = options.showVersion;
|
|
@@ -38257,7 +37519,7 @@ var init_Errors = __esm({
|
|
|
38257
37519
|
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
38258
37520
|
const docs = `${docsBaseUrl}${docsPath9 ?? ""}`;
|
|
38259
37521
|
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
38260
|
-
const
|
|
37522
|
+
const version5 = options.version ?? _BaseError.prototype.version;
|
|
38261
37523
|
const message = [
|
|
38262
37524
|
shortMessage || "An error occurred.",
|
|
38263
37525
|
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
@@ -38265,7 +37527,7 @@ var init_Errors = __esm({
|
|
|
38265
37527
|
"",
|
|
38266
37528
|
details ? `Details: ${details}` : void 0,
|
|
38267
37529
|
docsPath9 ? `See: ${docs}` : void 0,
|
|
38268
|
-
showVersion ? `Version: ${
|
|
37530
|
+
showVersion ? `Version: ${version5}` : void 0
|
|
38269
37531
|
] : []
|
|
38270
37532
|
].filter((x) => typeof x === "string").join("\n");
|
|
38271
37533
|
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
@@ -38330,13 +37592,13 @@ var init_Errors = __esm({
|
|
|
38330
37592
|
this.docsPath = docsPath9;
|
|
38331
37593
|
this.shortMessage = shortMessage;
|
|
38332
37594
|
this.showVersion = showVersion;
|
|
38333
|
-
this.version =
|
|
37595
|
+
this.version = version5;
|
|
38334
37596
|
}
|
|
38335
37597
|
walk(fn) {
|
|
38336
37598
|
return walk3(this, fn);
|
|
38337
37599
|
}
|
|
38338
37600
|
};
|
|
38339
|
-
Object.defineProperty(
|
|
37601
|
+
Object.defineProperty(BaseError4, "defaultStaticOptions", {
|
|
38340
37602
|
enumerable: true,
|
|
38341
37603
|
configurable: true,
|
|
38342
37604
|
writable: true,
|
|
@@ -38347,7 +37609,7 @@ var init_Errors = __esm({
|
|
|
38347
37609
|
}
|
|
38348
37610
|
});
|
|
38349
37611
|
(() => {
|
|
38350
|
-
|
|
37612
|
+
BaseError4.setStaticOptions(BaseError4.defaultStaticOptions);
|
|
38351
37613
|
})();
|
|
38352
37614
|
}
|
|
38353
37615
|
});
|
|
@@ -38548,7 +37810,7 @@ function fromHex(value, options = {}) {
|
|
|
38548
37810
|
const nibbleLeft = charCodeToBase163(hexString.charCodeAt(j++));
|
|
38549
37811
|
const nibbleRight = charCodeToBase163(hexString.charCodeAt(j++));
|
|
38550
37812
|
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
38551
|
-
throw new
|
|
37813
|
+
throw new BaseError4(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
38552
37814
|
}
|
|
38553
37815
|
bytes[index2] = nibbleLeft << 4 | nibbleRight;
|
|
38554
37816
|
}
|
|
@@ -38635,7 +37897,7 @@ var init_Bytes = __esm({
|
|
|
38635
37897
|
init_Json();
|
|
38636
37898
|
decoder = /* @__PURE__ */ new TextDecoder();
|
|
38637
37899
|
encoder5 = /* @__PURE__ */ new TextEncoder();
|
|
38638
|
-
InvalidBytesBooleanError2 = class extends
|
|
37900
|
+
InvalidBytesBooleanError2 = class extends BaseError4 {
|
|
38639
37901
|
constructor(bytes) {
|
|
38640
37902
|
super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
|
|
38641
37903
|
metaMessages: [
|
|
@@ -38650,7 +37912,7 @@ var init_Bytes = __esm({
|
|
|
38650
37912
|
});
|
|
38651
37913
|
}
|
|
38652
37914
|
};
|
|
38653
|
-
InvalidBytesTypeError = class extends
|
|
37915
|
+
InvalidBytesTypeError = class extends BaseError4 {
|
|
38654
37916
|
constructor(value) {
|
|
38655
37917
|
super(`Value \`${typeof value === "object" ? stringify3(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
|
|
38656
37918
|
metaMessages: ["Bytes values must be of type `Bytes`."]
|
|
@@ -38663,7 +37925,7 @@ var init_Bytes = __esm({
|
|
|
38663
37925
|
});
|
|
38664
37926
|
}
|
|
38665
37927
|
};
|
|
38666
|
-
SizeOverflowError3 = class extends
|
|
37928
|
+
SizeOverflowError3 = class extends BaseError4 {
|
|
38667
37929
|
constructor({ givenSize, maxSize }) {
|
|
38668
37930
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
38669
37931
|
Object.defineProperty(this, "name", {
|
|
@@ -38674,7 +37936,7 @@ var init_Bytes = __esm({
|
|
|
38674
37936
|
});
|
|
38675
37937
|
}
|
|
38676
37938
|
};
|
|
38677
|
-
SliceOffsetOutOfBoundsError3 = class extends
|
|
37939
|
+
SliceOffsetOutOfBoundsError3 = class extends BaseError4 {
|
|
38678
37940
|
constructor({ offset, position, size: size6 }) {
|
|
38679
37941
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size6}\`).`);
|
|
38680
37942
|
Object.defineProperty(this, "name", {
|
|
@@ -38685,7 +37947,7 @@ var init_Bytes = __esm({
|
|
|
38685
37947
|
});
|
|
38686
37948
|
}
|
|
38687
37949
|
};
|
|
38688
|
-
SizeExceedsPaddingSizeError3 = class extends
|
|
37950
|
+
SizeExceedsPaddingSizeError3 = class extends BaseError4 {
|
|
38689
37951
|
constructor({ size: size6, targetSize, type }) {
|
|
38690
37952
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size6}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
38691
37953
|
Object.defineProperty(this, "name", {
|
|
@@ -38831,7 +38093,7 @@ var init_Hex = __esm({
|
|
|
38831
38093
|
init_Json();
|
|
38832
38094
|
encoder6 = /* @__PURE__ */ new TextEncoder();
|
|
38833
38095
|
hexes5 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
38834
|
-
IntegerOutOfRangeError3 = class extends
|
|
38096
|
+
IntegerOutOfRangeError3 = class extends BaseError4 {
|
|
38835
38097
|
constructor({ max, min, signed, size: size6, value }) {
|
|
38836
38098
|
super(`Number \`${value}\` is not in safe${size6 ? ` ${size6 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
|
|
38837
38099
|
Object.defineProperty(this, "name", {
|
|
@@ -38842,7 +38104,7 @@ var init_Hex = __esm({
|
|
|
38842
38104
|
});
|
|
38843
38105
|
}
|
|
38844
38106
|
};
|
|
38845
|
-
InvalidHexTypeError = class extends
|
|
38107
|
+
InvalidHexTypeError = class extends BaseError4 {
|
|
38846
38108
|
constructor(value) {
|
|
38847
38109
|
super(`Value \`${typeof value === "object" ? stringify3(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
|
|
38848
38110
|
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
@@ -38855,7 +38117,7 @@ var init_Hex = __esm({
|
|
|
38855
38117
|
});
|
|
38856
38118
|
}
|
|
38857
38119
|
};
|
|
38858
|
-
InvalidHexValueError = class extends
|
|
38120
|
+
InvalidHexValueError = class extends BaseError4 {
|
|
38859
38121
|
constructor(value) {
|
|
38860
38122
|
super(`Value \`${value}\` is an invalid hex value.`, {
|
|
38861
38123
|
metaMessages: [
|
|
@@ -38870,7 +38132,7 @@ var init_Hex = __esm({
|
|
|
38870
38132
|
});
|
|
38871
38133
|
}
|
|
38872
38134
|
};
|
|
38873
|
-
SizeOverflowError4 = class extends
|
|
38135
|
+
SizeOverflowError4 = class extends BaseError4 {
|
|
38874
38136
|
constructor({ givenSize, maxSize }) {
|
|
38875
38137
|
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
38876
38138
|
Object.defineProperty(this, "name", {
|
|
@@ -38881,7 +38143,7 @@ var init_Hex = __esm({
|
|
|
38881
38143
|
});
|
|
38882
38144
|
}
|
|
38883
38145
|
};
|
|
38884
|
-
SliceOffsetOutOfBoundsError4 = class extends
|
|
38146
|
+
SliceOffsetOutOfBoundsError4 = class extends BaseError4 {
|
|
38885
38147
|
constructor({ offset, position, size: size6 }) {
|
|
38886
38148
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size6}\`).`);
|
|
38887
38149
|
Object.defineProperty(this, "name", {
|
|
@@ -38892,7 +38154,7 @@ var init_Hex = __esm({
|
|
|
38892
38154
|
});
|
|
38893
38155
|
}
|
|
38894
38156
|
};
|
|
38895
|
-
SizeExceedsPaddingSizeError4 = class extends
|
|
38157
|
+
SizeExceedsPaddingSizeError4 = class extends BaseError4 {
|
|
38896
38158
|
constructor({ size: size6, targetSize, type }) {
|
|
38897
38159
|
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size6}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
38898
38160
|
Object.defineProperty(this, "name", {
|
|
@@ -39339,7 +38601,7 @@ var ChainDoesNotSupportContract, ClientChainNotConfiguredError, InvalidChainIdEr
|
|
|
39339
38601
|
var init_chain2 = __esm({
|
|
39340
38602
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/chain.js"() {
|
|
39341
38603
|
init_base2();
|
|
39342
|
-
ChainDoesNotSupportContract = class extends
|
|
38604
|
+
ChainDoesNotSupportContract = class extends BaseError3 {
|
|
39343
38605
|
constructor({ blockNumber, chain: chain2, contract }) {
|
|
39344
38606
|
super(`Chain "${chain2.name}" does not support contract "${contract.name}".`, {
|
|
39345
38607
|
metaMessages: [
|
|
@@ -39354,14 +38616,14 @@ var init_chain2 = __esm({
|
|
|
39354
38616
|
});
|
|
39355
38617
|
}
|
|
39356
38618
|
};
|
|
39357
|
-
ClientChainNotConfiguredError = class extends
|
|
38619
|
+
ClientChainNotConfiguredError = class extends BaseError3 {
|
|
39358
38620
|
constructor() {
|
|
39359
38621
|
super("No chain was provided to the Client.", {
|
|
39360
38622
|
name: "ClientChainNotConfiguredError"
|
|
39361
38623
|
});
|
|
39362
38624
|
}
|
|
39363
38625
|
};
|
|
39364
|
-
InvalidChainIdError2 = class extends
|
|
38626
|
+
InvalidChainIdError2 = class extends BaseError3 {
|
|
39365
38627
|
constructor({ chainId }) {
|
|
39366
38628
|
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
39367
38629
|
}
|
|
@@ -39513,8 +38775,8 @@ var init_ccip = __esm({
|
|
|
39513
38775
|
"../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/ccip.js"() {
|
|
39514
38776
|
init_stringify2();
|
|
39515
38777
|
init_base2();
|
|
39516
|
-
|
|
39517
|
-
OffchainLookupError = class extends
|
|
38778
|
+
init_utils4();
|
|
38779
|
+
OffchainLookupError = class extends BaseError3 {
|
|
39518
38780
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
39519
38781
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
39520
38782
|
cause,
|
|
@@ -39535,7 +38797,7 @@ var init_ccip = __esm({
|
|
|
39535
38797
|
});
|
|
39536
38798
|
}
|
|
39537
38799
|
};
|
|
39538
|
-
OffchainLookupResponseMalformedError = class extends
|
|
38800
|
+
OffchainLookupResponseMalformedError = class extends BaseError3 {
|
|
39539
38801
|
constructor({ result, url }) {
|
|
39540
38802
|
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
|
39541
38803
|
metaMessages: [
|
|
@@ -39546,7 +38808,7 @@ var init_ccip = __esm({
|
|
|
39546
38808
|
});
|
|
39547
38809
|
}
|
|
39548
38810
|
};
|
|
39549
|
-
OffchainLookupSenderMismatchError = class extends
|
|
38811
|
+
OffchainLookupSenderMismatchError = class extends BaseError3 {
|
|
39550
38812
|
constructor({ sender, to }) {
|
|
39551
38813
|
super("Reverted sender address does not match target contract address (`to`).", {
|
|
39552
38814
|
metaMessages: [
|
|
@@ -39809,7 +39071,7 @@ var init_ccip2 = __esm({
|
|
|
39809
39071
|
init_call();
|
|
39810
39072
|
init_ccip();
|
|
39811
39073
|
init_request();
|
|
39812
|
-
|
|
39074
|
+
init_utils4();
|
|
39813
39075
|
init_decodeErrorResult();
|
|
39814
39076
|
init_encodeAbiParameters2();
|
|
39815
39077
|
init_isAddressEqual();
|
|
@@ -39852,9 +39114,9 @@ async function call(client, args) {
|
|
|
39852
39114
|
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", requireCanonical, accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, requestOptions, to, value, stateOverride, ...rest } = args;
|
|
39853
39115
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
39854
39116
|
if (code && (factory || factoryData))
|
|
39855
|
-
throw new
|
|
39117
|
+
throw new BaseError3("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
39856
39118
|
if (code && to)
|
|
39857
|
-
throw new
|
|
39119
|
+
throw new BaseError3("Cannot provide both `code` & `to` as parameters.");
|
|
39858
39120
|
const deploylessCallViaBytecode = code && data_;
|
|
39859
39121
|
const deploylessCallViaFactory = factory && factoryData && to && data_;
|
|
39860
39122
|
const deploylessCall = deploylessCallViaBytecode || deploylessCallViaFactory;
|
|
@@ -40067,7 +39329,7 @@ function hasStateOverrideForAddress(rpcStateOverride, address) {
|
|
|
40067
39329
|
function toDeploylessCallViaBytecodeData(parameters) {
|
|
40068
39330
|
const { code, data } = parameters;
|
|
40069
39331
|
return encodeDeployData({
|
|
40070
|
-
abi:
|
|
39332
|
+
abi: parseAbi(["constructor(bytes, bytes)"]),
|
|
40071
39333
|
bytecode: deploylessCallViaBytecodeBytecode,
|
|
40072
39334
|
args: [code, data]
|
|
40073
39335
|
});
|
|
@@ -40075,13 +39337,13 @@ function toDeploylessCallViaBytecodeData(parameters) {
|
|
|
40075
39337
|
function toDeploylessCallViaFactoryData(parameters) {
|
|
40076
39338
|
const { data, factory, factoryData, to } = parameters;
|
|
40077
39339
|
return encodeDeployData({
|
|
40078
|
-
abi:
|
|
39340
|
+
abi: parseAbi(["constructor(address, bytes, address, bytes)"]),
|
|
40079
39341
|
bytecode: deploylessCallViaFactoryBytecode,
|
|
40080
39342
|
args: [to, data, factory, factoryData]
|
|
40081
39343
|
});
|
|
40082
39344
|
}
|
|
40083
39345
|
function getRevertErrorData(err) {
|
|
40084
|
-
if (!(err instanceof
|
|
39346
|
+
if (!(err instanceof BaseError3))
|
|
40085
39347
|
return void 0;
|
|
40086
39348
|
const error = err.walk();
|
|
40087
39349
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
@@ -40098,7 +39360,7 @@ var init_call = __esm({
|
|
|
40098
39360
|
init_base2();
|
|
40099
39361
|
init_chain2();
|
|
40100
39362
|
init_contract();
|
|
40101
|
-
|
|
39363
|
+
init_utils4();
|
|
40102
39364
|
init_decodeFunctionResult();
|
|
40103
39365
|
init_encodeDeployData();
|
|
40104
39366
|
init_encodeFunctionData2();
|
|
@@ -40443,25 +39705,6 @@ var SailKernelAbi = [
|
|
|
40443
39705
|
}
|
|
40444
39706
|
];
|
|
40445
39707
|
|
|
40446
|
-
// ../sdk/dist/capabilities.js
|
|
40447
|
-
init_esm();
|
|
40448
|
-
var DISPATCH_TYPE_STRINGS = {
|
|
40449
|
-
conjunctive: "Dispatch(address account,address target,uint256 value,bytes32 dataHash,uint256 nonce,uint256 deadline)",
|
|
40450
|
-
selective: "Dispatch(address account,address permission,address target,uint256 value,bytes32 dataHash,uint256 nonce,uint256 deadline)"
|
|
40451
|
-
};
|
|
40452
|
-
var REGISTER_PERMISSION_TYPE_STRINGS = {
|
|
40453
|
-
noDeadline: "RegisterPermission(address account,address permission,uint256 nonce)",
|
|
40454
|
-
withDeadline: "RegisterPermission(address account,address permission,uint256 nonce,uint256 deadline)"
|
|
40455
|
-
};
|
|
40456
|
-
var DISPATCH_TYPEHASHES = {
|
|
40457
|
-
conjunctive: keccak256(toBytes(DISPATCH_TYPE_STRINGS.conjunctive)),
|
|
40458
|
-
selective: keccak256(toBytes(DISPATCH_TYPE_STRINGS.selective))
|
|
40459
|
-
};
|
|
40460
|
-
var REGISTER_PERMISSION_TYPEHASHES = {
|
|
40461
|
-
noDeadline: keccak256(toBytes(REGISTER_PERMISSION_TYPE_STRINGS.noDeadline)),
|
|
40462
|
-
withDeadline: keccak256(toBytes(REGISTER_PERMISSION_TYPE_STRINGS.withDeadline))
|
|
40463
|
-
};
|
|
40464
|
-
|
|
40465
39708
|
// ../sdk/dist/deployments.js
|
|
40466
39709
|
var CREATE2_KERNEL = "0x02ABC18B65A328de2e749F56ba79ACF2718a6659";
|
|
40467
39710
|
var CREATE2_GOVERNANCE = "0x7A478118715791728BDE3bc7A4D7ECfdEB89C6EC";
|
|
@@ -40615,64 +39858,6 @@ function getSailDeployment(chainId) {
|
|
|
40615
39858
|
return deployment;
|
|
40616
39859
|
}
|
|
40617
39860
|
|
|
40618
|
-
// ../sdk/dist/errors.js
|
|
40619
|
-
init_esm();
|
|
40620
|
-
var KERNEL_ERROR_SIGNATURES = [
|
|
40621
|
-
"error AccountAlreadyRegistered(address account)",
|
|
40622
|
-
"error AccountNotRegistered(address account)",
|
|
40623
|
-
"error AccountSelfTarget()",
|
|
40624
|
-
"error ArrayLengthMismatch()",
|
|
40625
|
-
"error BatchPermissionDenied()",
|
|
40626
|
-
"error BatchSubcallFailed(uint256 index, address target)",
|
|
40627
|
-
"error BatchTooLong(uint256 length)",
|
|
40628
|
-
"error BatchZeroTarget(uint256 index)",
|
|
40629
|
-
"error DeadlineExpired(uint256 deadline, uint256 current)",
|
|
40630
|
-
"error DistributorBpsTooLarge(uint256 bps)",
|
|
40631
|
-
"error EmptyBatch()",
|
|
40632
|
-
"error FeePolicyNotSet()",
|
|
40633
|
-
"error FeeTokenMismatch(address provided, address expected)",
|
|
40634
|
-
"error FeeTooLarge(uint256 requested, uint256 maxAllowed)",
|
|
40635
|
-
"error FeeTransferFailed()",
|
|
40636
|
-
"error InsufficientFee(uint256 required, uint256 provided)",
|
|
40637
|
-
"error InvalidInitializer()",
|
|
40638
|
-
"error InvalidManagerSignature()",
|
|
40639
|
-
"error InvalidSignerSignature()",
|
|
40640
|
-
"error KernelSelfTarget(uint256 index)",
|
|
40641
|
-
// SAIL-405: setManager rejects a no-op rotation (newManager == current).
|
|
40642
|
-
"error ManagerUnchanged()",
|
|
40643
|
-
"error ModuleNotEnabled()",
|
|
40644
|
-
// Present in the deployed conjunctive kernel; dropped in the latest source.
|
|
40645
|
-
"error NoPermissionsRegistered(address account)",
|
|
40646
|
-
"error NotAContract(address addr)",
|
|
40647
|
-
"error NotGovernance()",
|
|
40648
|
-
"error NotManager(address caller, address expected)",
|
|
40649
|
-
"error NotPermissionSigner()",
|
|
40650
|
-
"error NotTimelock()",
|
|
40651
|
-
"error PermissionAlreadyRegistered(address permission)",
|
|
40652
|
-
"error PermissionDenied(address permission)",
|
|
40653
|
-
"error PermissionNotBatchAware(address permission)",
|
|
40654
|
-
"error PermissionNotRegistered(address permission)",
|
|
40655
|
-
"error ProtocolPaused()",
|
|
40656
|
-
"error SafeExecutionFailed()",
|
|
40657
|
-
"error SessionInactive(address account)",
|
|
40658
|
-
"error TooManyPermissions(address account, uint256 limit)",
|
|
40659
|
-
"error UntrustedFactory(address factory)",
|
|
40660
|
-
"error UntrustedFeePolicy(address policy)",
|
|
40661
|
-
"error UntrustedModuleSetup(address setup)",
|
|
40662
|
-
"error UntrustedProxyCodehash(bytes32 codehash)",
|
|
40663
|
-
"error UntrustedSingleton(address singleton)",
|
|
40664
|
-
"error ZeroAddress()",
|
|
40665
|
-
"error ZeroFee()"
|
|
40666
|
-
];
|
|
40667
|
-
var KERNEL_ERROR_ABI = parseAbi(KERNEL_ERROR_SIGNATURES);
|
|
40668
|
-
|
|
40669
|
-
// ../sdk/dist/lifi.js
|
|
40670
|
-
init_esm();
|
|
40671
|
-
var ERC20_ABI = parseAbi([
|
|
40672
|
-
"function approve(address spender, uint256 amount)",
|
|
40673
|
-
"function allowance(address owner, address spender) view returns (uint256)"
|
|
40674
|
-
]);
|
|
40675
|
-
|
|
40676
39861
|
// ../sdk/dist/keyring.js
|
|
40677
39862
|
var import_node_crypto = require("node:crypto");
|
|
40678
39863
|
var import_node_fs = require("node:fs");
|
|
@@ -40684,7 +39869,7 @@ init_secp256k1();
|
|
|
40684
39869
|
init_hmac();
|
|
40685
39870
|
init_legacy();
|
|
40686
39871
|
init_sha2();
|
|
40687
|
-
|
|
39872
|
+
init_utils();
|
|
40688
39873
|
|
|
40689
39874
|
// ../../node_modules/.pnpm/@scure+base@1.2.6/node_modules/@scure/base/lib/esm/index.js
|
|
40690
39875
|
function isBytes3(a) {
|
|
@@ -40943,7 +40128,7 @@ var HDKey = class _HDKey {
|
|
|
40943
40128
|
static fromExtendedKey(base58key, versions = BITCOIN_VERSIONS) {
|
|
40944
40129
|
const keyBuffer = base58check.decode(base58key);
|
|
40945
40130
|
const keyView = createView(keyBuffer);
|
|
40946
|
-
const
|
|
40131
|
+
const version5 = keyView.getUint32(0, false);
|
|
40947
40132
|
const opt = {
|
|
40948
40133
|
versions,
|
|
40949
40134
|
depth: keyBuffer[4],
|
|
@@ -40953,7 +40138,7 @@ var HDKey = class _HDKey {
|
|
|
40953
40138
|
};
|
|
40954
40139
|
const key = keyBuffer.slice(45);
|
|
40955
40140
|
const isPriv = key[0] === 0;
|
|
40956
|
-
if (
|
|
40141
|
+
if (version5 !== versions[isPriv ? "private" : "public"]) {
|
|
40957
40142
|
throw new Error("Version mismatch");
|
|
40958
40143
|
}
|
|
40959
40144
|
if (isPriv) {
|
|
@@ -41106,18 +40291,18 @@ var HDKey = class _HDKey {
|
|
|
41106
40291
|
xpub: this.publicExtendedKey
|
|
41107
40292
|
};
|
|
41108
40293
|
}
|
|
41109
|
-
serialize(
|
|
40294
|
+
serialize(version5, key) {
|
|
41110
40295
|
if (!this.chainCode) {
|
|
41111
40296
|
throw new Error("No chainCode set");
|
|
41112
40297
|
}
|
|
41113
40298
|
abytes(key, 33);
|
|
41114
|
-
return concatBytes(toU32(
|
|
40299
|
+
return concatBytes(toU32(version5), new Uint8Array([this.depth]), toU32(this.parentFingerprint), toU32(this.index), this.chainCode, key);
|
|
41115
40300
|
}
|
|
41116
40301
|
};
|
|
41117
40302
|
|
|
41118
40303
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/pbkdf2.js
|
|
41119
40304
|
init_hmac();
|
|
41120
|
-
|
|
40305
|
+
init_utils();
|
|
41121
40306
|
function pbkdf2Init(hash4, _password, _salt, _opts) {
|
|
41122
40307
|
ahash(hash4);
|
|
41123
40308
|
const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts);
|
|
@@ -41577,7 +40762,7 @@ init_abi2();
|
|
|
41577
40762
|
|
|
41578
40763
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/log.js
|
|
41579
40764
|
init_base2();
|
|
41580
|
-
var FilterTypeNotSupportedError = class extends
|
|
40765
|
+
var FilterTypeNotSupportedError = class extends BaseError3 {
|
|
41581
40766
|
constructor(type) {
|
|
41582
40767
|
super(`Filter type "${type}" is not supported.`, {
|
|
41583
40768
|
name: "FilterTypeNotSupportedError"
|
|
@@ -41689,7 +40874,7 @@ init_request();
|
|
|
41689
40874
|
init_rpc();
|
|
41690
40875
|
var EXECUTION_REVERTED_ERROR_CODE = 3;
|
|
41691
40876
|
function getContractError(err, { abi: abi2, address, args, docsPath: docsPath9, functionName, sender }) {
|
|
41692
|
-
const error = err instanceof RawContractError ? err : err instanceof
|
|
40877
|
+
const error = err instanceof RawContractError ? err : err instanceof BaseError3 ? err.walk((err2) => "data" in err2) || err.walk() : {};
|
|
41693
40878
|
const { code, data, details, message, shortMessage } = error;
|
|
41694
40879
|
const cause = (() => {
|
|
41695
40880
|
if (err instanceof AbiDecodingZeroDataError)
|
|
@@ -41862,7 +41047,7 @@ function getSizeOfLength2(length) {
|
|
|
41862
41047
|
return 3;
|
|
41863
41048
|
if (length < 2 ** 32)
|
|
41864
41049
|
return 4;
|
|
41865
|
-
throw new
|
|
41050
|
+
throw new BaseError3("Length is too large.");
|
|
41866
41051
|
}
|
|
41867
41052
|
|
|
41868
41053
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/authorization/hashAuthorization.js
|
|
@@ -41900,7 +41085,7 @@ init_formatEther();
|
|
|
41900
41085
|
init_formatGwei2();
|
|
41901
41086
|
init_base2();
|
|
41902
41087
|
init_transaction2();
|
|
41903
|
-
var EstimateGasExecutionError = class extends
|
|
41088
|
+
var EstimateGasExecutionError = class extends BaseError3 {
|
|
41904
41089
|
constructor(cause, { account, docsPath: docsPath9, chain: chain2, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
|
|
41905
41090
|
const prettyArgs = prettyPrint2({
|
|
41906
41091
|
from: account?.address,
|
|
@@ -41961,21 +41146,21 @@ init_parseAccount();
|
|
|
41961
41146
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/fee.js
|
|
41962
41147
|
init_formatGwei2();
|
|
41963
41148
|
init_base2();
|
|
41964
|
-
var BaseFeeScalarError = class extends
|
|
41149
|
+
var BaseFeeScalarError = class extends BaseError3 {
|
|
41965
41150
|
constructor() {
|
|
41966
41151
|
super("`baseFeeMultiplier` must be greater than 1.", {
|
|
41967
41152
|
name: "BaseFeeScalarError"
|
|
41968
41153
|
});
|
|
41969
41154
|
}
|
|
41970
41155
|
};
|
|
41971
|
-
var Eip1559FeesNotSupportedError = class extends
|
|
41156
|
+
var Eip1559FeesNotSupportedError = class extends BaseError3 {
|
|
41972
41157
|
constructor() {
|
|
41973
41158
|
super("Chain does not support EIP-1559 fees.", {
|
|
41974
41159
|
name: "Eip1559FeesNotSupportedError"
|
|
41975
41160
|
});
|
|
41976
41161
|
}
|
|
41977
41162
|
};
|
|
41978
|
-
var MaxFeePerGasTooLowError = class extends
|
|
41163
|
+
var MaxFeePerGasTooLowError = class extends BaseError3 {
|
|
41979
41164
|
constructor({ maxPriorityFeePerGas }) {
|
|
41980
41165
|
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${formatGwei2(maxPriorityFeePerGas)} gwei).`, { name: "MaxFeePerGasTooLowError" });
|
|
41981
41166
|
}
|
|
@@ -41986,7 +41171,7 @@ init_fromHex2();
|
|
|
41986
41171
|
|
|
41987
41172
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/block.js
|
|
41988
41173
|
init_base2();
|
|
41989
|
-
var BlockNotFoundError = class extends
|
|
41174
|
+
var BlockNotFoundError = class extends BaseError3 {
|
|
41990
41175
|
constructor({ blockHash, blockNumber }) {
|
|
41991
41176
|
let identifier = "Block";
|
|
41992
41177
|
if (blockHash)
|
|
@@ -42288,23 +41473,23 @@ function sha2564(value, to_) {
|
|
|
42288
41473
|
|
|
42289
41474
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
42290
41475
|
function commitmentToVersionedHash2(parameters) {
|
|
42291
|
-
const { commitment, version:
|
|
41476
|
+
const { commitment, version: version5 = 1 } = parameters;
|
|
42292
41477
|
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
|
42293
41478
|
const versionedHash = sha2564(commitment, "bytes");
|
|
42294
|
-
versionedHash.set([
|
|
41479
|
+
versionedHash.set([version5], 0);
|
|
42295
41480
|
return to === "bytes" ? versionedHash : bytesToHex4(versionedHash);
|
|
42296
41481
|
}
|
|
42297
41482
|
|
|
42298
41483
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
|
42299
41484
|
function commitmentsToVersionedHashes2(parameters) {
|
|
42300
|
-
const { commitments, version:
|
|
41485
|
+
const { commitments, version: version5 } = parameters;
|
|
42301
41486
|
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
|
42302
41487
|
const hashes = [];
|
|
42303
41488
|
for (const commitment of commitments) {
|
|
42304
41489
|
hashes.push(commitmentToVersionedHash2({
|
|
42305
41490
|
commitment,
|
|
42306
41491
|
to,
|
|
42307
|
-
version:
|
|
41492
|
+
version: version5
|
|
42308
41493
|
}));
|
|
42309
41494
|
}
|
|
42310
41495
|
return hashes;
|
|
@@ -42324,7 +41509,7 @@ var versionedHashVersionKzg2 = 1;
|
|
|
42324
41509
|
|
|
42325
41510
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/blob.js
|
|
42326
41511
|
init_base2();
|
|
42327
|
-
var BlobSizeTooLargeError2 = class extends
|
|
41512
|
+
var BlobSizeTooLargeError2 = class extends BaseError3 {
|
|
42328
41513
|
constructor({ maxSize, size: size6 }) {
|
|
42329
41514
|
super("Blob size is too large.", {
|
|
42330
41515
|
metaMessages: [`Max: ${maxSize} bytes`, `Given: ${size6} bytes`],
|
|
@@ -42332,12 +41517,12 @@ var BlobSizeTooLargeError2 = class extends BaseError4 {
|
|
|
42332
41517
|
});
|
|
42333
41518
|
}
|
|
42334
41519
|
};
|
|
42335
|
-
var EmptyBlobError2 = class extends
|
|
41520
|
+
var EmptyBlobError2 = class extends BaseError3 {
|
|
42336
41521
|
constructor() {
|
|
42337
41522
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
42338
41523
|
}
|
|
42339
41524
|
};
|
|
42340
|
-
var InvalidVersionedHashSizeError2 = class extends
|
|
41525
|
+
var InvalidVersionedHashSizeError2 = class extends BaseError3 {
|
|
42341
41526
|
constructor({ hash: hash4, size: size6 }) {
|
|
42342
41527
|
super(`Versioned hash "${hash4}" size is invalid.`, {
|
|
42343
41528
|
metaMessages: ["Expected: 32", `Received: ${size6}`],
|
|
@@ -42345,12 +41530,12 @@ var InvalidVersionedHashSizeError2 = class extends BaseError4 {
|
|
|
42345
41530
|
});
|
|
42346
41531
|
}
|
|
42347
41532
|
};
|
|
42348
|
-
var InvalidVersionedHashVersionError2 = class extends
|
|
42349
|
-
constructor({ hash: hash4, version:
|
|
41533
|
+
var InvalidVersionedHashVersionError2 = class extends BaseError3 {
|
|
41534
|
+
constructor({ hash: hash4, version: version5 }) {
|
|
42350
41535
|
super(`Versioned hash "${hash4}" version is invalid.`, {
|
|
42351
41536
|
metaMessages: [
|
|
42352
41537
|
`Expected: ${versionedHashVersionKzg2}`,
|
|
42353
|
-
`Received: ${
|
|
41538
|
+
`Received: ${version5}`
|
|
42354
41539
|
],
|
|
42355
41540
|
name: "InvalidVersionedHashVersionError"
|
|
42356
41541
|
});
|
|
@@ -42815,7 +42000,7 @@ async function estimateGas(client, args) {
|
|
|
42815
42000
|
return await recoverAuthorizationAddress({
|
|
42816
42001
|
authorization: args.authorizationList[0]
|
|
42817
42002
|
}).catch(() => {
|
|
42818
|
-
throw new
|
|
42003
|
+
throw new BaseError3("`to` is required. Could not infer from `authorizationList`");
|
|
42819
42004
|
});
|
|
42820
42005
|
return void 0;
|
|
42821
42006
|
})();
|
|
@@ -43320,7 +42505,7 @@ function observe(observerId, callbacks, fn) {
|
|
|
43320
42505
|
}
|
|
43321
42506
|
|
|
43322
42507
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/wait.js
|
|
43323
|
-
|
|
42508
|
+
init_utils4();
|
|
43324
42509
|
async function wait(time, { signal } = {}) {
|
|
43325
42510
|
return new Promise((resolve, reject) => {
|
|
43326
42511
|
if (signal?.aborted) {
|
|
@@ -43630,7 +42815,7 @@ async function sendRawTransaction(client, { serializedTransaction }) {
|
|
|
43630
42815
|
}
|
|
43631
42816
|
|
|
43632
42817
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/promise/withRetry.js
|
|
43633
|
-
|
|
42818
|
+
init_utils4();
|
|
43634
42819
|
function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true, signal } = {}) {
|
|
43635
42820
|
return new Promise((resolve, reject) => {
|
|
43636
42821
|
const attemptRetry = async ({ count = 0 } = {}) => {
|
|
@@ -43773,7 +42958,7 @@ init_toHex2();
|
|
|
43773
42958
|
init_base2();
|
|
43774
42959
|
init_contract();
|
|
43775
42960
|
function isNullUniversalResolverError(err) {
|
|
43776
|
-
if (!(err instanceof
|
|
42961
|
+
if (!(err instanceof BaseError3))
|
|
43777
42962
|
return false;
|
|
43778
42963
|
const cause = err.walk((e) => e instanceof ContractFunctionRevertedError);
|
|
43779
42964
|
if (!(cause instanceof ContractFunctionRevertedError))
|
|
@@ -43950,7 +43135,7 @@ function decodeAddress2({ coinType, data, args }) {
|
|
|
43950
43135
|
|
|
43951
43136
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/ens.js
|
|
43952
43137
|
init_base2();
|
|
43953
|
-
var EnsAvatarInvalidMetadataError = class extends
|
|
43138
|
+
var EnsAvatarInvalidMetadataError = class extends BaseError3 {
|
|
43954
43139
|
constructor({ data }) {
|
|
43955
43140
|
super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
|
|
43956
43141
|
metaMessages: [
|
|
@@ -43962,19 +43147,19 @@ var EnsAvatarInvalidMetadataError = class extends BaseError4 {
|
|
|
43962
43147
|
});
|
|
43963
43148
|
}
|
|
43964
43149
|
};
|
|
43965
|
-
var EnsAvatarInvalidNftUriError = class extends
|
|
43150
|
+
var EnsAvatarInvalidNftUriError = class extends BaseError3 {
|
|
43966
43151
|
constructor({ reason }) {
|
|
43967
43152
|
super(`ENS NFT avatar URI is invalid. ${reason}`, {
|
|
43968
43153
|
name: "EnsAvatarInvalidNftUriError"
|
|
43969
43154
|
});
|
|
43970
43155
|
}
|
|
43971
43156
|
};
|
|
43972
|
-
var EnsAvatarUriResolutionError = class extends
|
|
43157
|
+
var EnsAvatarUriResolutionError = class extends BaseError3 {
|
|
43973
43158
|
constructor({ uri }) {
|
|
43974
43159
|
super(`Unable to resolve ENS avatar URI "${uri}". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: "EnsAvatarUriResolutionError" });
|
|
43975
43160
|
}
|
|
43976
43161
|
};
|
|
43977
|
-
var EnsAvatarUnsupportedNamespaceError = class extends
|
|
43162
|
+
var EnsAvatarUnsupportedNamespaceError = class extends BaseError3 {
|
|
43978
43163
|
constructor({ namespace }) {
|
|
43979
43164
|
super(`ENS NFT avatar namespace "${namespace}" is not supported. Must be "erc721" or "erc1155".`, { name: "EnsAvatarUnsupportedNamespaceError" });
|
|
43980
43165
|
}
|
|
@@ -44385,7 +43570,7 @@ async function createAccessList(client, args) {
|
|
|
44385
43570
|
params: [request, block]
|
|
44386
43571
|
});
|
|
44387
43572
|
if (response.error)
|
|
44388
|
-
throw new
|
|
43573
|
+
throw new BaseError3(response.error, { details: response.error });
|
|
44389
43574
|
return {
|
|
44390
43575
|
accessList: response.accessList,
|
|
44391
43576
|
gasUsed: BigInt(response.gasUsed)
|
|
@@ -44587,7 +43772,7 @@ async function getDelegation(client, { address, blockNumber, blockTag = "latest"
|
|
|
44587
43772
|
|
|
44588
43773
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/eip712.js
|
|
44589
43774
|
init_base2();
|
|
44590
|
-
var Eip712DomainNotFoundError = class extends
|
|
43775
|
+
var Eip712DomainNotFoundError = class extends BaseError3 {
|
|
44591
43776
|
constructor({ address }) {
|
|
44592
43777
|
super(`No EIP-712 domain found on contract "${address}".`, {
|
|
44593
43778
|
metaMessages: [
|
|
@@ -44605,7 +43790,7 @@ var Eip712DomainNotFoundError = class extends BaseError4 {
|
|
|
44605
43790
|
async function getEip712Domain(client, parameters) {
|
|
44606
43791
|
const { address, factory, factoryData } = parameters;
|
|
44607
43792
|
try {
|
|
44608
|
-
const [fields, name,
|
|
43793
|
+
const [fields, name, version5, chainId, verifyingContract, salt, extensions] = await getAction(client, readContract, "readContract")({
|
|
44609
43794
|
abi,
|
|
44610
43795
|
address,
|
|
44611
43796
|
functionName: "eip712Domain",
|
|
@@ -44615,7 +43800,7 @@ async function getEip712Domain(client, parameters) {
|
|
|
44615
43800
|
return {
|
|
44616
43801
|
domain: {
|
|
44617
43802
|
name,
|
|
44618
|
-
version:
|
|
43803
|
+
version: version5,
|
|
44619
43804
|
chainId: Number(chainId),
|
|
44620
43805
|
verifyingContract,
|
|
44621
43806
|
salt
|
|
@@ -44736,13 +43921,13 @@ function assertTransactionEIP48442(transaction) {
|
|
|
44736
43921
|
throw new EmptyBlobError2();
|
|
44737
43922
|
for (const hash4 of blobVersionedHashes) {
|
|
44738
43923
|
const size_ = size2(hash4);
|
|
44739
|
-
const
|
|
43924
|
+
const version5 = hexToNumber3(slice2(hash4, 0, 1));
|
|
44740
43925
|
if (size_ !== 32)
|
|
44741
43926
|
throw new InvalidVersionedHashSizeError2({ hash: hash4, size: size_ });
|
|
44742
|
-
if (
|
|
43927
|
+
if (version5 !== versionedHashVersionKzg2)
|
|
44743
43928
|
throw new InvalidVersionedHashVersionError2({
|
|
44744
43929
|
hash: hash4,
|
|
44745
|
-
version:
|
|
43930
|
+
version: version5
|
|
44746
43931
|
});
|
|
44747
43932
|
}
|
|
44748
43933
|
}
|
|
@@ -44766,7 +43951,7 @@ function assertTransactionEIP29302(transaction) {
|
|
|
44766
43951
|
if (to && !isAddress2(to))
|
|
44767
43952
|
throw new InvalidAddressError2({ address: to });
|
|
44768
43953
|
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
44769
|
-
throw new
|
|
43954
|
+
throw new BaseError3("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
44770
43955
|
if (gasPrice && gasPrice > maxUint2562)
|
|
44771
43956
|
throw new FeeCapTooHighError2({ maxFeePerGas: gasPrice });
|
|
44772
43957
|
}
|
|
@@ -44777,7 +43962,7 @@ function assertTransactionLegacy2(transaction) {
|
|
|
44777
43962
|
if (typeof chainId !== "undefined" && chainId <= 0)
|
|
44778
43963
|
throw new InvalidChainIdError2({ chainId });
|
|
44779
43964
|
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
44780
|
-
throw new
|
|
43965
|
+
throw new BaseError3("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
44781
43966
|
if (gasPrice && gasPrice > maxUint2562)
|
|
44782
43967
|
throw new FeeCapTooHighError2({ maxFeePerGas: gasPrice });
|
|
44783
43968
|
}
|
|
@@ -45037,7 +44222,7 @@ async function verifyAuthorization({ address, authorization, signature }) {
|
|
|
45037
44222
|
init_base2();
|
|
45038
44223
|
init_request();
|
|
45039
44224
|
init_rpc();
|
|
45040
|
-
|
|
44225
|
+
init_utils4();
|
|
45041
44226
|
|
|
45042
44227
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/promise/withDedupe.js
|
|
45043
44228
|
init_lru2();
|
|
@@ -45168,7 +44353,7 @@ function buildRequest(request, options = {}) {
|
|
|
45168
44353
|
case WalletConnectSessionSettlementError.code:
|
|
45169
44354
|
throw new WalletConnectSessionSettlementError(err);
|
|
45170
44355
|
default:
|
|
45171
|
-
if (err_ instanceof
|
|
44356
|
+
if (err_ instanceof BaseError3)
|
|
45172
44357
|
throw err_;
|
|
45173
44358
|
throw new UnknownRpcError(err);
|
|
45174
44359
|
}
|
|
@@ -45243,10 +44428,10 @@ init_fromHex2();
|
|
|
45243
44428
|
|
|
45244
44429
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/rpc/http.js
|
|
45245
44430
|
init_request();
|
|
45246
|
-
|
|
44431
|
+
init_utils4();
|
|
45247
44432
|
|
|
45248
44433
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/promise/withTimeout.js
|
|
45249
|
-
|
|
44434
|
+
init_utils4();
|
|
45250
44435
|
function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, signal }) {
|
|
45251
44436
|
return new Promise((resolve, reject) => {
|
|
45252
44437
|
;
|
|
@@ -45441,14 +44626,14 @@ init_address3();
|
|
|
45441
44626
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/typedData.js
|
|
45442
44627
|
init_stringify2();
|
|
45443
44628
|
init_base2();
|
|
45444
|
-
var InvalidDomainError2 = class extends
|
|
44629
|
+
var InvalidDomainError2 = class extends BaseError3 {
|
|
45445
44630
|
constructor({ domain }) {
|
|
45446
44631
|
super(`Invalid domain "${stringify2(domain)}".`, {
|
|
45447
44632
|
metaMessages: ["Must be a valid EIP-712 domain."]
|
|
45448
44633
|
});
|
|
45449
44634
|
}
|
|
45450
44635
|
};
|
|
45451
|
-
var InvalidPrimaryTypeError2 = class extends
|
|
44636
|
+
var InvalidPrimaryTypeError2 = class extends BaseError3 {
|
|
45452
44637
|
constructor({ primaryType, types }) {
|
|
45453
44638
|
super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types))}\`.`, {
|
|
45454
44639
|
docsPath: "/api/glossary/Errors#typeddatainvalidprimarytypeerror",
|
|
@@ -45456,7 +44641,7 @@ var InvalidPrimaryTypeError2 = class extends BaseError4 {
|
|
|
45456
44641
|
});
|
|
45457
44642
|
}
|
|
45458
44643
|
};
|
|
45459
|
-
var InvalidStructTypeError2 = class extends
|
|
44644
|
+
var InvalidStructTypeError2 = class extends BaseError3 {
|
|
45460
44645
|
constructor({ type }) {
|
|
45461
44646
|
super(`Struct type "${type}" is invalid.`, {
|
|
45462
44647
|
metaMessages: ["Struct type must not be a Solidity type."],
|
|
@@ -45476,7 +44661,7 @@ function validateTypedData2(parameters) {
|
|
|
45476
44661
|
for (const param of struct) {
|
|
45477
44662
|
const { name, type } = param;
|
|
45478
44663
|
const value = data[name];
|
|
45479
|
-
const integerMatch = type.match(
|
|
44664
|
+
const integerMatch = type.match(integerRegex3);
|
|
45480
44665
|
if (integerMatch && (typeof value === "number" || typeof value === "bigint")) {
|
|
45481
44666
|
const [_type, base, size_] = integerMatch;
|
|
45482
44667
|
numberToHex2(value, {
|
|
@@ -45486,7 +44671,7 @@ function validateTypedData2(parameters) {
|
|
|
45486
44671
|
}
|
|
45487
44672
|
if (type === "address" && typeof value === "string" && !isAddress2(value))
|
|
45488
44673
|
throw new InvalidAddressError2({ address: value });
|
|
45489
|
-
const bytesMatch = type.match(
|
|
44674
|
+
const bytesMatch = type.match(bytesRegex3);
|
|
45490
44675
|
if (bytesMatch) {
|
|
45491
44676
|
const [_type, size_] = bytesMatch;
|
|
45492
44677
|
if (size_ && size2(value) !== Number.parseInt(size_, 10))
|
|
@@ -45799,7 +44984,7 @@ function toHex3(publicKey, options = {}) {
|
|
|
45799
44984
|
);
|
|
45800
44985
|
return publicKey_;
|
|
45801
44986
|
}
|
|
45802
|
-
var InvalidError = class extends
|
|
44987
|
+
var InvalidError = class extends BaseError4 {
|
|
45803
44988
|
constructor({ publicKey }) {
|
|
45804
44989
|
super(`Value \`${stringify3(publicKey)}\` is not a valid public key.`, {
|
|
45805
44990
|
metaMessages: [
|
|
@@ -45816,7 +45001,7 @@ var InvalidError = class extends BaseError5 {
|
|
|
45816
45001
|
});
|
|
45817
45002
|
}
|
|
45818
45003
|
};
|
|
45819
|
-
var InvalidPrefixError = class extends
|
|
45004
|
+
var InvalidPrefixError = class extends BaseError4 {
|
|
45820
45005
|
constructor({ prefix, cause }) {
|
|
45821
45006
|
super(`Prefix "${prefix}" is invalid.`, {
|
|
45822
45007
|
cause
|
|
@@ -45829,7 +45014,7 @@ var InvalidPrefixError = class extends BaseError5 {
|
|
|
45829
45014
|
});
|
|
45830
45015
|
}
|
|
45831
45016
|
};
|
|
45832
|
-
var InvalidCompressedPrefixError = class extends
|
|
45017
|
+
var InvalidCompressedPrefixError = class extends BaseError4 {
|
|
45833
45018
|
constructor() {
|
|
45834
45019
|
super("Prefix must be 2 or 3 for compressed public keys.");
|
|
45835
45020
|
Object.defineProperty(this, "name", {
|
|
@@ -45840,7 +45025,7 @@ var InvalidCompressedPrefixError = class extends BaseError5 {
|
|
|
45840
45025
|
});
|
|
45841
45026
|
}
|
|
45842
45027
|
};
|
|
45843
|
-
var InvalidUncompressedPrefixError = class extends
|
|
45028
|
+
var InvalidUncompressedPrefixError = class extends BaseError4 {
|
|
45844
45029
|
constructor() {
|
|
45845
45030
|
super("Prefix must be 4 for uncompressed public keys.");
|
|
45846
45031
|
Object.defineProperty(this, "name", {
|
|
@@ -45851,7 +45036,7 @@ var InvalidUncompressedPrefixError = class extends BaseError5 {
|
|
|
45851
45036
|
});
|
|
45852
45037
|
}
|
|
45853
45038
|
};
|
|
45854
|
-
var InvalidSerializedSizeError = class extends
|
|
45039
|
+
var InvalidSerializedSizeError = class extends BaseError4 {
|
|
45855
45040
|
constructor({ publicKey }) {
|
|
45856
45041
|
super(`Value \`${publicKey}\` is an invalid public key size.`, {
|
|
45857
45042
|
metaMessages: [
|
|
@@ -45926,7 +45111,7 @@ function validate3(address, options = {}) {
|
|
|
45926
45111
|
return false;
|
|
45927
45112
|
}
|
|
45928
45113
|
}
|
|
45929
|
-
var InvalidAddressError3 = class extends
|
|
45114
|
+
var InvalidAddressError3 = class extends BaseError4 {
|
|
45930
45115
|
constructor({ address, cause }) {
|
|
45931
45116
|
super(`Address "${address}" is invalid.`, {
|
|
45932
45117
|
cause
|
|
@@ -45939,7 +45124,7 @@ var InvalidAddressError3 = class extends BaseError5 {
|
|
|
45939
45124
|
});
|
|
45940
45125
|
}
|
|
45941
45126
|
};
|
|
45942
|
-
var InvalidInputError = class extends
|
|
45127
|
+
var InvalidInputError = class extends BaseError4 {
|
|
45943
45128
|
constructor() {
|
|
45944
45129
|
super("Address is not a 20 byte (40 hexadecimal character) value.");
|
|
45945
45130
|
Object.defineProperty(this, "name", {
|
|
@@ -45950,7 +45135,7 @@ var InvalidInputError = class extends BaseError5 {
|
|
|
45950
45135
|
});
|
|
45951
45136
|
}
|
|
45952
45137
|
};
|
|
45953
|
-
var InvalidChecksumError = class extends
|
|
45138
|
+
var InvalidChecksumError = class extends BaseError4 {
|
|
45954
45139
|
constructor() {
|
|
45955
45140
|
super("Address does not match its checksum counterpart.");
|
|
45956
45141
|
Object.defineProperty(this, "name", {
|
|
@@ -45974,8 +45159,8 @@ init_Hex();
|
|
|
45974
45159
|
|
|
45975
45160
|
// ../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Solidity.js
|
|
45976
45161
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
45977
|
-
var
|
|
45978
|
-
var
|
|
45162
|
+
var bytesRegex4 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
45163
|
+
var integerRegex4 = /^(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)?$/;
|
|
45979
45164
|
var maxInt83 = 2n ** (8n - 1n) - 1n;
|
|
45980
45165
|
var maxInt163 = 2n ** (16n - 1n) - 1n;
|
|
45981
45166
|
var maxInt243 = 2n ** (24n - 1n) - 1n;
|
|
@@ -46272,7 +45457,7 @@ function prepareParameter({ checksumAddress: checksumAddress3 = false, parameter
|
|
|
46272
45457
|
}
|
|
46273
45458
|
if (parameter.type.startsWith("uint") || parameter.type.startsWith("int")) {
|
|
46274
45459
|
const signed = parameter.type.startsWith("int");
|
|
46275
|
-
const [, , size6 = "256"] =
|
|
45460
|
+
const [, , size6 = "256"] = integerRegex4.exec(parameter.type) ?? [];
|
|
46276
45461
|
return encodeNumber3(value, {
|
|
46277
45462
|
signed,
|
|
46278
45463
|
size: Number(size6)
|
|
@@ -46379,7 +45564,7 @@ function encodeBytes3(value, { type }) {
|
|
|
46379
45564
|
}
|
|
46380
45565
|
function encodeBoolean(value) {
|
|
46381
45566
|
if (typeof value !== "boolean")
|
|
46382
|
-
throw new
|
|
45567
|
+
throw new BaseError4(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
46383
45568
|
return { dynamic: false, encoded: padLeft(fromBoolean(value)) };
|
|
46384
45569
|
}
|
|
46385
45570
|
function encodeNumber3(value, { signed, size: size6 }) {
|
|
@@ -46631,7 +45816,7 @@ function create(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
46631
45816
|
cursor.recursiveReadLimit = recursiveReadLimit;
|
|
46632
45817
|
return cursor;
|
|
46633
45818
|
}
|
|
46634
|
-
var NegativeOffsetError3 = class extends
|
|
45819
|
+
var NegativeOffsetError3 = class extends BaseError4 {
|
|
46635
45820
|
constructor({ offset }) {
|
|
46636
45821
|
super(`Offset \`${offset}\` cannot be negative.`);
|
|
46637
45822
|
Object.defineProperty(this, "name", {
|
|
@@ -46642,7 +45827,7 @@ var NegativeOffsetError3 = class extends BaseError5 {
|
|
|
46642
45827
|
});
|
|
46643
45828
|
}
|
|
46644
45829
|
};
|
|
46645
|
-
var PositionOutOfBoundsError3 = class extends
|
|
45830
|
+
var PositionOutOfBoundsError3 = class extends BaseError4 {
|
|
46646
45831
|
constructor({ length, position }) {
|
|
46647
45832
|
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`);
|
|
46648
45833
|
Object.defineProperty(this, "name", {
|
|
@@ -46653,7 +45838,7 @@ var PositionOutOfBoundsError3 = class extends BaseError5 {
|
|
|
46653
45838
|
});
|
|
46654
45839
|
}
|
|
46655
45840
|
};
|
|
46656
|
-
var RecursiveReadLimitExceededError3 = class extends
|
|
45841
|
+
var RecursiveReadLimitExceededError3 = class extends BaseError4 {
|
|
46657
45842
|
constructor({ count, limit }) {
|
|
46658
45843
|
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`);
|
|
46659
45844
|
Object.defineProperty(this, "name", {
|
|
@@ -46739,7 +45924,7 @@ function encodePacked2(types, values) {
|
|
|
46739
45924
|
return value;
|
|
46740
45925
|
if (type === "bool")
|
|
46741
45926
|
return padLeft(fromBoolean(value), isArray ? 32 : 1);
|
|
46742
|
-
const intMatch = type.match(
|
|
45927
|
+
const intMatch = type.match(integerRegex4);
|
|
46743
45928
|
if (intMatch) {
|
|
46744
45929
|
const [_type, baseType, bits = "256"] = intMatch;
|
|
46745
45930
|
const size6 = Number.parseInt(bits, 10) / 8;
|
|
@@ -46748,7 +45933,7 @@ function encodePacked2(types, values) {
|
|
|
46748
45933
|
signed: baseType === "int"
|
|
46749
45934
|
});
|
|
46750
45935
|
}
|
|
46751
|
-
const bytesMatch = type.match(
|
|
45936
|
+
const bytesMatch = type.match(bytesRegex4);
|
|
46752
45937
|
if (bytesMatch) {
|
|
46753
45938
|
const [_type, size6] = bytesMatch;
|
|
46754
45939
|
if (Number.parseInt(size6, 10) !== (value.length - 2) / 2)
|
|
@@ -46775,12 +45960,12 @@ function encodePacked2(types, values) {
|
|
|
46775
45960
|
})(encodePacked2 || (encodePacked2 = {}));
|
|
46776
45961
|
function from5(parameters) {
|
|
46777
45962
|
if (Array.isArray(parameters) && typeof parameters[0] === "string")
|
|
46778
|
-
return
|
|
45963
|
+
return parseAbiParameters(parameters);
|
|
46779
45964
|
if (typeof parameters === "string")
|
|
46780
|
-
return
|
|
45965
|
+
return parseAbiParameters(parameters);
|
|
46781
45966
|
return parameters;
|
|
46782
45967
|
}
|
|
46783
|
-
var DataSizeTooSmallError = class extends
|
|
45968
|
+
var DataSizeTooSmallError = class extends BaseError4 {
|
|
46784
45969
|
constructor({ data, parameters, size: size6 }) {
|
|
46785
45970
|
super(`Data size of ${size6} bytes is too small for given parameters.`, {
|
|
46786
45971
|
metaMessages: [
|
|
@@ -46796,7 +45981,7 @@ var DataSizeTooSmallError = class extends BaseError5 {
|
|
|
46796
45981
|
});
|
|
46797
45982
|
}
|
|
46798
45983
|
};
|
|
46799
|
-
var ZeroDataError = class extends
|
|
45984
|
+
var ZeroDataError = class extends BaseError4 {
|
|
46800
45985
|
constructor() {
|
|
46801
45986
|
super('Cannot decode zero data ("0x") with ABI parameters.');
|
|
46802
45987
|
Object.defineProperty(this, "name", {
|
|
@@ -46807,7 +45992,7 @@ var ZeroDataError = class extends BaseError5 {
|
|
|
46807
45992
|
});
|
|
46808
45993
|
}
|
|
46809
45994
|
};
|
|
46810
|
-
var ArrayLengthMismatchError = class extends
|
|
45995
|
+
var ArrayLengthMismatchError = class extends BaseError4 {
|
|
46811
45996
|
constructor({ expectedLength, givenLength, type }) {
|
|
46812
45997
|
super(`Array length mismatch for type \`${type}\`. Expected: \`${expectedLength}\`. Given: \`${givenLength}\`.`);
|
|
46813
45998
|
Object.defineProperty(this, "name", {
|
|
@@ -46818,7 +46003,7 @@ var ArrayLengthMismatchError = class extends BaseError5 {
|
|
|
46818
46003
|
});
|
|
46819
46004
|
}
|
|
46820
46005
|
};
|
|
46821
|
-
var BytesSizeMismatchError3 = class extends
|
|
46006
|
+
var BytesSizeMismatchError3 = class extends BaseError4 {
|
|
46822
46007
|
constructor({ expectedSize, value }) {
|
|
46823
46008
|
super(`Size of bytes "${value}" (bytes${size4(value)}) does not match expected size (bytes${expectedSize}).`);
|
|
46824
46009
|
Object.defineProperty(this, "name", {
|
|
@@ -46829,7 +46014,7 @@ var BytesSizeMismatchError3 = class extends BaseError5 {
|
|
|
46829
46014
|
});
|
|
46830
46015
|
}
|
|
46831
46016
|
};
|
|
46832
|
-
var LengthMismatchError = class extends
|
|
46017
|
+
var LengthMismatchError = class extends BaseError4 {
|
|
46833
46018
|
constructor({ expectedLength, givenLength }) {
|
|
46834
46019
|
super([
|
|
46835
46020
|
"ABI encoding parameters/values length mismatch.",
|
|
@@ -46844,7 +46029,7 @@ var LengthMismatchError = class extends BaseError5 {
|
|
|
46844
46029
|
});
|
|
46845
46030
|
}
|
|
46846
46031
|
};
|
|
46847
|
-
var InvalidArrayError3 = class extends
|
|
46032
|
+
var InvalidArrayError3 = class extends BaseError4 {
|
|
46848
46033
|
constructor(value) {
|
|
46849
46034
|
super(`Value \`${value}\` is not a valid array.`);
|
|
46850
46035
|
Object.defineProperty(this, "name", {
|
|
@@ -46855,7 +46040,7 @@ var InvalidArrayError3 = class extends BaseError5 {
|
|
|
46855
46040
|
});
|
|
46856
46041
|
}
|
|
46857
46042
|
};
|
|
46858
|
-
var InvalidTypeError = class extends
|
|
46043
|
+
var InvalidTypeError = class extends BaseError4 {
|
|
46859
46044
|
constructor(type) {
|
|
46860
46045
|
super(`Type \`${type}\` is not a valid ABI Type.`);
|
|
46861
46046
|
Object.defineProperty(this, "name", {
|
|
@@ -46964,7 +46149,7 @@ function getSizeOfLength3(length) {
|
|
|
46964
46149
|
return 3;
|
|
46965
46150
|
if (length <= 4294967295)
|
|
46966
46151
|
return 4;
|
|
46967
|
-
throw new
|
|
46152
|
+
throw new BaseError4("Length is too large.");
|
|
46968
46153
|
}
|
|
46969
46154
|
|
|
46970
46155
|
// ../../node_modules/.pnpm/ox@0.14.25_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Signature.js
|
|
@@ -47081,7 +46266,7 @@ function vToYParity(v) {
|
|
|
47081
46266
|
return v % 2 === 0 ? 1 : 0;
|
|
47082
46267
|
throw new InvalidVError({ value: v });
|
|
47083
46268
|
}
|
|
47084
|
-
var InvalidSerializedSizeError2 = class extends
|
|
46269
|
+
var InvalidSerializedSizeError2 = class extends BaseError4 {
|
|
47085
46270
|
constructor({ signature }) {
|
|
47086
46271
|
super(`Value \`${signature}\` is an invalid signature size.`, {
|
|
47087
46272
|
metaMessages: [
|
|
@@ -47097,7 +46282,7 @@ var InvalidSerializedSizeError2 = class extends BaseError5 {
|
|
|
47097
46282
|
});
|
|
47098
46283
|
}
|
|
47099
46284
|
};
|
|
47100
|
-
var MissingPropertiesError = class extends
|
|
46285
|
+
var MissingPropertiesError = class extends BaseError4 {
|
|
47101
46286
|
constructor({ signature }) {
|
|
47102
46287
|
super(`Signature \`${stringify3(signature)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`);
|
|
47103
46288
|
Object.defineProperty(this, "name", {
|
|
@@ -47108,7 +46293,7 @@ var MissingPropertiesError = class extends BaseError5 {
|
|
|
47108
46293
|
});
|
|
47109
46294
|
}
|
|
47110
46295
|
};
|
|
47111
|
-
var InvalidRError = class extends
|
|
46296
|
+
var InvalidRError = class extends BaseError4 {
|
|
47112
46297
|
constructor({ value }) {
|
|
47113
46298
|
super(`Value \`${value}\` is an invalid r value. r must be a positive integer less than 2^256.`);
|
|
47114
46299
|
Object.defineProperty(this, "name", {
|
|
@@ -47119,7 +46304,7 @@ var InvalidRError = class extends BaseError5 {
|
|
|
47119
46304
|
});
|
|
47120
46305
|
}
|
|
47121
46306
|
};
|
|
47122
|
-
var InvalidSError = class extends
|
|
46307
|
+
var InvalidSError = class extends BaseError4 {
|
|
47123
46308
|
constructor({ value }) {
|
|
47124
46309
|
super(`Value \`${value}\` is an invalid s value. s must be a positive integer less than 2^256.`);
|
|
47125
46310
|
Object.defineProperty(this, "name", {
|
|
@@ -47130,7 +46315,7 @@ var InvalidSError = class extends BaseError5 {
|
|
|
47130
46315
|
});
|
|
47131
46316
|
}
|
|
47132
46317
|
};
|
|
47133
|
-
var InvalidYParityError = class extends
|
|
46318
|
+
var InvalidYParityError = class extends BaseError4 {
|
|
47134
46319
|
constructor({ value }) {
|
|
47135
46320
|
super(`Value \`${value}\` is an invalid y-parity value. Y-parity must be 0 or 1.`);
|
|
47136
46321
|
Object.defineProperty(this, "name", {
|
|
@@ -47141,7 +46326,7 @@ var InvalidYParityError = class extends BaseError5 {
|
|
|
47141
46326
|
});
|
|
47142
46327
|
}
|
|
47143
46328
|
};
|
|
47144
|
-
var InvalidVError = class extends
|
|
46329
|
+
var InvalidVError = class extends BaseError4 {
|
|
47145
46330
|
constructor({ value }) {
|
|
47146
46331
|
super(`Value \`${value}\` is an invalid v value. v must be 27, 28 or >=35.`);
|
|
47147
46332
|
Object.defineProperty(this, "name", {
|
|
@@ -47271,7 +46456,7 @@ function validate4(value) {
|
|
|
47271
46456
|
return false;
|
|
47272
46457
|
}
|
|
47273
46458
|
}
|
|
47274
|
-
var InvalidWrappedSignatureError = class extends
|
|
46459
|
+
var InvalidWrappedSignatureError = class extends BaseError4 {
|
|
47275
46460
|
constructor(wrapped) {
|
|
47276
46461
|
super(`Value \`${wrapped}\` is an invalid ERC-8010 wrapped signature.`);
|
|
47277
46462
|
Object.defineProperty(this, "name", {
|
|
@@ -47530,7 +46715,7 @@ async function multicall(client, parameters) {
|
|
|
47530
46715
|
}
|
|
47531
46716
|
}
|
|
47532
46717
|
if (results.length !== contracts.length)
|
|
47533
|
-
throw new
|
|
46718
|
+
throw new BaseError3("multicall results mismatch");
|
|
47534
46719
|
return results;
|
|
47535
46720
|
}
|
|
47536
46721
|
|
|
@@ -47681,7 +46866,7 @@ function normalizeSignature3(signature) {
|
|
|
47681
46866
|
current += char;
|
|
47682
46867
|
}
|
|
47683
46868
|
if (!valid)
|
|
47684
|
-
throw new
|
|
46869
|
+
throw new BaseError4("Unable to normalize signature.");
|
|
47685
46870
|
return result;
|
|
47686
46871
|
}
|
|
47687
46872
|
function isArgOfType3(arg, abiParameter) {
|
|
@@ -47747,9 +46932,9 @@ function from10(abiItem, options = {}) {
|
|
|
47747
46932
|
const { prepare = true } = options;
|
|
47748
46933
|
const item = (() => {
|
|
47749
46934
|
if (Array.isArray(abiItem))
|
|
47750
|
-
return
|
|
46935
|
+
return parseAbiItem(abiItem);
|
|
47751
46936
|
if (typeof abiItem === "string")
|
|
47752
|
-
return
|
|
46937
|
+
return parseAbiItem(abiItem);
|
|
47753
46938
|
return abiItem;
|
|
47754
46939
|
})();
|
|
47755
46940
|
return {
|
|
@@ -47866,7 +47051,7 @@ function getSignatureHash(...parameters) {
|
|
|
47866
47051
|
return abiItem.hash;
|
|
47867
47052
|
return keccak2563(fromString2(getSignature(abiItem)));
|
|
47868
47053
|
}
|
|
47869
|
-
var AmbiguityError = class extends
|
|
47054
|
+
var AmbiguityError = class extends BaseError4 {
|
|
47870
47055
|
constructor(x, y) {
|
|
47871
47056
|
super("Found ambiguous types in overloaded ABI Items.", {
|
|
47872
47057
|
metaMessages: [
|
|
@@ -47886,7 +47071,7 @@ var AmbiguityError = class extends BaseError5 {
|
|
|
47886
47071
|
});
|
|
47887
47072
|
}
|
|
47888
47073
|
};
|
|
47889
|
-
var NotFoundError = class extends
|
|
47074
|
+
var NotFoundError = class extends BaseError4 {
|
|
47890
47075
|
constructor({ name, data, type = "item" }) {
|
|
47891
47076
|
const selector = (() => {
|
|
47892
47077
|
if (name)
|
|
@@ -47976,7 +47161,7 @@ async function simulateCalls(client, parameters) {
|
|
|
47976
47161
|
const { blockNumber, blockTag, calls, stateOverrides, traceAssetChanges, traceTransfers, validation } = parameters;
|
|
47977
47162
|
const account = parameters.account ? parseAccount(parameters.account) : void 0;
|
|
47978
47163
|
if (traceAssetChanges && !account)
|
|
47979
|
-
throw new
|
|
47164
|
+
throw new BaseError3("`account` is required when `traceAssetChanges` is true");
|
|
47980
47165
|
const getBalanceData = account ? encode3(from11("constructor(bytes, bytes)"), {
|
|
47981
47166
|
bytecode: deploylessCallViaBytecodeBytecode,
|
|
47982
47167
|
args: [
|
|
@@ -48258,7 +47443,7 @@ function validate5(wrapped) {
|
|
|
48258
47443
|
return false;
|
|
48259
47444
|
}
|
|
48260
47445
|
}
|
|
48261
|
-
var InvalidWrappedSignatureError2 = class extends
|
|
47446
|
+
var InvalidWrappedSignatureError2 = class extends BaseError4 {
|
|
48262
47447
|
constructor(wrapped) {
|
|
48263
47448
|
super(`Value \`${wrapped}\` is an invalid ERC-6492 wrapped signature.`);
|
|
48264
47449
|
Object.defineProperty(this, "name", {
|
|
@@ -49282,7 +48467,7 @@ init_request();
|
|
|
49282
48467
|
|
|
49283
48468
|
// ../../node_modules/.pnpm/viem@2.51.3_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/transport.js
|
|
49284
48469
|
init_base2();
|
|
49285
|
-
var UrlRequiredError = class extends
|
|
48470
|
+
var UrlRequiredError = class extends BaseError3 {
|
|
49286
48471
|
constructor() {
|
|
49287
48472
|
super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
|
|
49288
48473
|
docsPath: "/docs/clients/intro",
|