@1delta/margin-fetcher 0.0.145 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_esm-THA2ITDF.js → _esm-2UAQOYNJ.js} +35 -35
- package/dist/{_esm-THA2ITDF.js.map → _esm-2UAQOYNJ.js.map} +1 -1
- package/dist/abis/morpho/lens.d.ts +52 -0
- package/dist/abis/morpho/lens.d.ts.map +1 -1
- package/dist/ccip-4Z7OPIYF.js +5 -0
- package/dist/{ccip-5WZ2VUTL.js.map → ccip-4Z7OPIYF.js.map} +1 -1
- package/dist/{chunk-ZT5S5OCM.js → chunk-GJEFCA2S.js} +150 -114
- package/dist/chunk-GJEFCA2S.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +285 -36
- package/dist/index.js.map +1 -1
- package/dist/lending/index.d.ts +2 -2
- package/dist/lending/index.d.ts.map +1 -1
- package/dist/lending/lista/getMarketsFromChain.d.ts +0 -4
- package/dist/lending/lista/getMarketsFromChain.d.ts.map +1 -1
- package/dist/lending/morpho/getMarketsFromChain.d.ts +0 -4
- package/dist/lending/morpho/getMarketsFromChain.d.ts.map +1 -1
- package/dist/lending/morpho/index.d.ts +1 -1
- package/dist/lending/morpho/index.d.ts.map +1 -1
- package/dist/lending/morpho/utils/evmParser.d.ts +26 -3
- package/dist/lending/morpho/utils/evmParser.d.ts.map +1 -1
- package/dist/lending/user-data/abis.d.ts +37 -0
- package/dist/lending/user-data/abis.d.ts.map +1 -1
- package/dist/lending/user-data/fetchUserData.d.ts +4 -0
- package/dist/lending/user-data/fetchUserData.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/decoder.d.ts +20 -1
- package/dist/lending/user-data/morpho/decoder.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/userCallBuild.d.ts +2 -3
- package/dist/lending/user-data/morpho/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/userCallParse.d.ts +14 -0
- package/dist/lending/user-data/morpho/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts +1 -0
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts.map +1 -1
- package/dist/types/lender/morpho-types.d.ts +6 -0
- package/dist/types/lender/morpho-types.d.ts.map +1 -1
- package/dist/types/lenderTypes.d.ts +7 -4
- package/dist/types/lenderTypes.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ccip-5WZ2VUTL.js +0 -5
- package/dist/chunk-ZT5S5OCM.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { split, createHasher, Hash, anumber, u32, swap32IfBE, aexists, toBytes, abytes, aoutput, clean, rotlSH, rotlSL, rotlBH, rotlBL } from './chunk-BYTNVMX7.js';
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
4
|
-
var version = "1.
|
|
3
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/version.js
|
|
4
|
+
var version = "1.2.3";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
6
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/errors.js
|
|
7
7
|
var BaseError = class _BaseError extends Error {
|
|
8
8
|
constructor(shortMessage, args = {}) {
|
|
9
9
|
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
@@ -56,7 +56,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
59
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/regex.js
|
|
60
60
|
function execTyped(regex, string) {
|
|
61
61
|
const match = regex.exec(string);
|
|
62
62
|
return match?.groups;
|
|
@@ -65,7 +65,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
|
65
65
|
var 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)?$/;
|
|
66
66
|
var isTupleRegex = /^\(.+?\).*?$/;
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
68
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
69
69
|
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
70
70
|
function formatAbiParameter(abiParameter) {
|
|
71
71
|
let type = abiParameter.type;
|
|
@@ -79,7 +79,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
79
79
|
type += ", ";
|
|
80
80
|
}
|
|
81
81
|
const result = execTyped(tupleRegex, abiParameter.type);
|
|
82
|
-
type += `)${result?.array
|
|
82
|
+
type += `)${result?.array || ""}`;
|
|
83
83
|
return formatAbiParameter({
|
|
84
84
|
...abiParameter,
|
|
85
85
|
type
|
|
@@ -92,7 +92,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
92
92
|
return type;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
95
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
96
96
|
function formatAbiParameters(abiParameters) {
|
|
97
97
|
let params = "";
|
|
98
98
|
const length = abiParameters.length;
|
|
@@ -105,7 +105,7 @@ function formatAbiParameters(abiParameters) {
|
|
|
105
105
|
return params;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
108
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
109
109
|
function formatAbiItem(abiItem) {
|
|
110
110
|
if (abiItem.type === "function")
|
|
111
111
|
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
@@ -120,7 +120,7 @@ function formatAbiItem(abiItem) {
|
|
|
120
120
|
return "receive() external payable";
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
123
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
124
124
|
var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
125
125
|
function isErrorSignature(signature) {
|
|
126
126
|
return errorSignatureRegex.test(signature);
|
|
@@ -174,7 +174,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
|
|
|
174
174
|
"storage"
|
|
175
175
|
]);
|
|
176
176
|
|
|
177
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
177
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
178
178
|
var UnknownTypeError = class extends BaseError {
|
|
179
179
|
constructor({ type }) {
|
|
180
180
|
super("Unknown type.", {
|
|
@@ -204,7 +204,7 @@ var UnknownSolidityTypeError = class extends BaseError {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
207
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
208
208
|
var InvalidParameterError = class extends BaseError {
|
|
209
209
|
constructor({ param }) {
|
|
210
210
|
super("Invalid ABI parameter.", {
|
|
@@ -282,7 +282,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
|
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
285
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
286
286
|
var InvalidSignatureError = class extends BaseError {
|
|
287
287
|
constructor({ signature, type }) {
|
|
288
288
|
super(`Invalid ${type} signature.`, {
|
|
@@ -324,7 +324,7 @@ var InvalidStructSignatureError = class extends BaseError {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
327
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
328
328
|
var CircularReferenceError = class extends BaseError {
|
|
329
329
|
constructor({ type }) {
|
|
330
330
|
super("Circular reference detected.", {
|
|
@@ -339,7 +339,7 @@ var CircularReferenceError = class extends BaseError {
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
342
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
343
343
|
var InvalidParenthesisError = class extends BaseError {
|
|
344
344
|
constructor({ current, depth }) {
|
|
345
345
|
super("Unbalanced parentheses.", {
|
|
@@ -357,7 +357,7 @@ var InvalidParenthesisError = class extends BaseError {
|
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
359
|
|
|
360
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
360
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
361
361
|
function getParameterCacheKey(param, type, structs) {
|
|
362
362
|
let structKey = "";
|
|
363
363
|
if (structs)
|
|
@@ -372,7 +372,7 @@ function getParameterCacheKey(param, type, structs) {
|
|
|
372
372
|
}
|
|
373
373
|
if (type)
|
|
374
374
|
return `${type}:${param}${structKey}`;
|
|
375
|
-
return param
|
|
375
|
+
return `${param}${structKey}`;
|
|
376
376
|
}
|
|
377
377
|
var parameterCache = /* @__PURE__ */ new Map([
|
|
378
378
|
// Unnamed
|
|
@@ -429,7 +429,7 @@ var parameterCache = /* @__PURE__ */ new Map([
|
|
|
429
429
|
]
|
|
430
430
|
]);
|
|
431
431
|
|
|
432
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
432
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
433
433
|
function parseSignature(signature, structs = {}) {
|
|
434
434
|
if (isFunctionSignature(signature))
|
|
435
435
|
return parseFunctionSignature(signature, structs);
|
|
@@ -628,7 +628,7 @@ function isValidDataLocation(type, isArray) {
|
|
|
628
628
|
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
629
629
|
}
|
|
630
630
|
|
|
631
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
631
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
632
632
|
function parseStructs(signatures) {
|
|
633
633
|
const shallowStructs = {};
|
|
634
634
|
const signaturesLength = signatures.length;
|
|
@@ -666,7 +666,7 @@ function parseStructs(signatures) {
|
|
|
666
666
|
return resolvedStructs;
|
|
667
667
|
}
|
|
668
668
|
var typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
669
|
-
function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new Set()) {
|
|
669
|
+
function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
|
|
670
670
|
const components = [];
|
|
671
671
|
const length = abiParameters.length;
|
|
672
672
|
for (let i = 0; i < length; i++) {
|
|
@@ -685,7 +685,7 @@ function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new
|
|
|
685
685
|
components.push({
|
|
686
686
|
...abiParameter,
|
|
687
687
|
type: `tuple${array ?? ""}`,
|
|
688
|
-
components: resolveStructs(structs[type]
|
|
688
|
+
components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
689
689
|
});
|
|
690
690
|
} else {
|
|
691
691
|
if (isSolidityType(type))
|
|
@@ -698,7 +698,7 @@ function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new
|
|
|
698
698
|
return components;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
701
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.2.1/node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
702
702
|
function parseAbi(signatures) {
|
|
703
703
|
const structs = parseStructs(signatures);
|
|
704
704
|
const abi = [];
|
|
@@ -712,16 +712,21 @@ function parseAbi(signatures) {
|
|
|
712
712
|
return abi;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
715
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/version.js
|
|
716
716
|
var version2 = "0.1.1";
|
|
717
717
|
|
|
718
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
718
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/internal/errors.js
|
|
719
719
|
function getVersion() {
|
|
720
720
|
return version2;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
723
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/Errors.js
|
|
724
724
|
var BaseError2 = class _BaseError extends Error {
|
|
725
|
+
static setStaticOptions(options) {
|
|
726
|
+
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
727
|
+
_BaseError.prototype.showVersion = options.showVersion;
|
|
728
|
+
_BaseError.prototype.version = options.version;
|
|
729
|
+
}
|
|
725
730
|
constructor(shortMessage, options = {}) {
|
|
726
731
|
const details = (() => {
|
|
727
732
|
if (options.cause instanceof _BaseError) {
|
|
@@ -741,15 +746,18 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
741
746
|
return options.cause.docsPath || options.docsPath;
|
|
742
747
|
return options.docsPath;
|
|
743
748
|
})();
|
|
744
|
-
const docsBaseUrl =
|
|
749
|
+
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
745
750
|
const docs = `${docsBaseUrl}${docsPath6 ?? ""}`;
|
|
751
|
+
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
752
|
+
const version4 = options.version ?? _BaseError.prototype.version;
|
|
746
753
|
const message = [
|
|
747
754
|
shortMessage || "An error occurred.",
|
|
748
755
|
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
749
|
-
...details || docsPath6 ? [
|
|
756
|
+
...details || docsPath6 || showVersion ? [
|
|
750
757
|
"",
|
|
751
758
|
details ? `Details: ${details}` : void 0,
|
|
752
|
-
docsPath6 ? `See: ${docs}` : void 0
|
|
759
|
+
docsPath6 ? `See: ${docs}` : void 0,
|
|
760
|
+
showVersion ? `Version: ${version4}` : void 0
|
|
753
761
|
] : []
|
|
754
762
|
].filter((x) => typeof x === "string").join("\n");
|
|
755
763
|
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
@@ -765,6 +773,12 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
765
773
|
writable: true,
|
|
766
774
|
value: void 0
|
|
767
775
|
});
|
|
776
|
+
Object.defineProperty(this, "docsOrigin", {
|
|
777
|
+
enumerable: true,
|
|
778
|
+
configurable: true,
|
|
779
|
+
writable: true,
|
|
780
|
+
value: void 0
|
|
781
|
+
});
|
|
768
782
|
Object.defineProperty(this, "docsPath", {
|
|
769
783
|
enumerable: true,
|
|
770
784
|
configurable: true,
|
|
@@ -777,34 +791,56 @@ var BaseError2 = class _BaseError extends Error {
|
|
|
777
791
|
writable: true,
|
|
778
792
|
value: void 0
|
|
779
793
|
});
|
|
780
|
-
Object.defineProperty(this, "
|
|
794
|
+
Object.defineProperty(this, "showVersion", {
|
|
781
795
|
enumerable: true,
|
|
782
796
|
configurable: true,
|
|
783
797
|
writable: true,
|
|
784
798
|
value: void 0
|
|
785
799
|
});
|
|
786
|
-
Object.defineProperty(this, "
|
|
800
|
+
Object.defineProperty(this, "version", {
|
|
787
801
|
enumerable: true,
|
|
788
802
|
configurable: true,
|
|
789
803
|
writable: true,
|
|
790
|
-
value:
|
|
804
|
+
value: void 0
|
|
791
805
|
});
|
|
792
|
-
Object.defineProperty(this, "
|
|
806
|
+
Object.defineProperty(this, "cause", {
|
|
793
807
|
enumerable: true,
|
|
794
808
|
configurable: true,
|
|
795
809
|
writable: true,
|
|
796
|
-
value:
|
|
810
|
+
value: void 0
|
|
811
|
+
});
|
|
812
|
+
Object.defineProperty(this, "name", {
|
|
813
|
+
enumerable: true,
|
|
814
|
+
configurable: true,
|
|
815
|
+
writable: true,
|
|
816
|
+
value: "BaseError"
|
|
797
817
|
});
|
|
798
818
|
this.cause = options.cause;
|
|
799
819
|
this.details = details;
|
|
800
820
|
this.docs = docs;
|
|
821
|
+
this.docsOrigin = docsBaseUrl;
|
|
801
822
|
this.docsPath = docsPath6;
|
|
802
823
|
this.shortMessage = shortMessage;
|
|
824
|
+
this.showVersion = showVersion;
|
|
825
|
+
this.version = version4;
|
|
803
826
|
}
|
|
804
827
|
walk(fn) {
|
|
805
828
|
return walk(this, fn);
|
|
806
829
|
}
|
|
807
830
|
};
|
|
831
|
+
Object.defineProperty(BaseError2, "defaultStaticOptions", {
|
|
832
|
+
enumerable: true,
|
|
833
|
+
configurable: true,
|
|
834
|
+
writable: true,
|
|
835
|
+
value: {
|
|
836
|
+
docsOrigin: "https://oxlib.sh",
|
|
837
|
+
showVersion: false,
|
|
838
|
+
version: `ox@${getVersion()}`
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
(() => {
|
|
842
|
+
BaseError2.setStaticOptions(BaseError2.defaultStaticOptions);
|
|
843
|
+
})();
|
|
808
844
|
function walk(err, fn) {
|
|
809
845
|
if (fn?.(err))
|
|
810
846
|
return err;
|
|
@@ -813,7 +849,7 @@ function walk(err, fn) {
|
|
|
813
849
|
return fn ? null : err;
|
|
814
850
|
}
|
|
815
851
|
|
|
816
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
852
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/internal/hex.js
|
|
817
853
|
function pad(hex_, options = {}) {
|
|
818
854
|
const { dir, size: size3 = 32 } = options;
|
|
819
855
|
if (size3 === 0)
|
|
@@ -828,7 +864,7 @@ function pad(hex_, options = {}) {
|
|
|
828
864
|
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size3 * 2, "0")}`;
|
|
829
865
|
}
|
|
830
866
|
|
|
831
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
867
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/Hex.js
|
|
832
868
|
function fromNumber(value, options = {}) {
|
|
833
869
|
const { signed, size: size3 } = options;
|
|
834
870
|
const value_ = BigInt(value);
|
|
@@ -852,7 +888,7 @@ function fromNumber(value, options = {}) {
|
|
|
852
888
|
value: `${value}${suffix}`
|
|
853
889
|
});
|
|
854
890
|
}
|
|
855
|
-
const stringValue = (signed && value_ < 0 ?
|
|
891
|
+
const stringValue = (signed && value_ < 0 ? BigInt.asUintN(size3 * 8, BigInt(value_)) : value_).toString(16);
|
|
856
892
|
const hex = `0x${stringValue}`;
|
|
857
893
|
if (size3)
|
|
858
894
|
return padLeft(hex, size3);
|
|
@@ -884,7 +920,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
|
884
920
|
}
|
|
885
921
|
};
|
|
886
922
|
|
|
887
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
923
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/Withdrawal.js
|
|
888
924
|
function toRpc(withdrawal) {
|
|
889
925
|
return {
|
|
890
926
|
address: withdrawal.address,
|
|
@@ -894,7 +930,7 @@ function toRpc(withdrawal) {
|
|
|
894
930
|
};
|
|
895
931
|
}
|
|
896
932
|
|
|
897
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
933
|
+
// ../../node_modules/.pnpm/ox@0.10.6_typescript@5.9.3_zod@4.2.1/node_modules/ox/_esm/core/BlockOverrides.js
|
|
898
934
|
function toRpc2(blockOverrides) {
|
|
899
935
|
return {
|
|
900
936
|
...typeof blockOverrides.baseFeePerGas === "bigint" && {
|
|
@@ -924,14 +960,14 @@ function toRpc2(blockOverrides) {
|
|
|
924
960
|
};
|
|
925
961
|
}
|
|
926
962
|
|
|
927
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
963
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
928
964
|
function parseAccount(account) {
|
|
929
965
|
if (typeof account === "string")
|
|
930
966
|
return { address: account, type: "json-rpc" };
|
|
931
967
|
return account;
|
|
932
968
|
}
|
|
933
969
|
|
|
934
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
970
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/constants/abis.js
|
|
935
971
|
var multicall3Abi = [
|
|
936
972
|
{
|
|
937
973
|
inputs: [
|
|
@@ -1040,18 +1076,18 @@ var batchGatewayAbi = [
|
|
|
1040
1076
|
}
|
|
1041
1077
|
];
|
|
1042
1078
|
|
|
1043
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1079
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/constants/contract.js
|
|
1044
1080
|
var aggregate3Signature = "0x82ad56cb";
|
|
1045
1081
|
|
|
1046
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1082
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/constants/contracts.js
|
|
1047
1083
|
var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
|
|
1048
1084
|
var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
|
|
1049
1085
|
var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
|
|
1050
1086
|
|
|
1051
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1052
|
-
var version3 = "2.
|
|
1087
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/version.js
|
|
1088
|
+
var version3 = "2.43.2";
|
|
1053
1089
|
|
|
1054
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1090
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/base.js
|
|
1055
1091
|
var errorConfig = {
|
|
1056
1092
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
1057
1093
|
version: `viem@${version3}`
|
|
@@ -1135,7 +1171,7 @@ function walk2(err, fn) {
|
|
|
1135
1171
|
return fn ? null : err;
|
|
1136
1172
|
}
|
|
1137
1173
|
|
|
1138
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1174
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/chain.js
|
|
1139
1175
|
var ChainDoesNotSupportContract = class extends BaseError3 {
|
|
1140
1176
|
constructor({ blockNumber, chain, contract }) {
|
|
1141
1177
|
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
@@ -1159,7 +1195,7 @@ var ClientChainNotConfiguredError = class extends BaseError3 {
|
|
|
1159
1195
|
}
|
|
1160
1196
|
};
|
|
1161
1197
|
|
|
1162
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1198
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/constants/solidity.js
|
|
1163
1199
|
var solidityError = {
|
|
1164
1200
|
inputs: [
|
|
1165
1201
|
{
|
|
@@ -1181,7 +1217,7 @@ var solidityPanic = {
|
|
|
1181
1217
|
type: "error"
|
|
1182
1218
|
};
|
|
1183
1219
|
|
|
1184
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1220
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
1185
1221
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
1186
1222
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
1187
1223
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -1199,7 +1235,7 @@ function formatAbiParam(param, { includeName }) {
|
|
|
1199
1235
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
1200
1236
|
}
|
|
1201
1237
|
|
|
1202
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1238
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/isHex.js
|
|
1203
1239
|
function isHex(value, { strict = true } = {}) {
|
|
1204
1240
|
if (!value)
|
|
1205
1241
|
return false;
|
|
@@ -1208,14 +1244,14 @@ function isHex(value, { strict = true } = {}) {
|
|
|
1208
1244
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
1209
1245
|
}
|
|
1210
1246
|
|
|
1211
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1247
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/size.js
|
|
1212
1248
|
function size2(value) {
|
|
1213
1249
|
if (isHex(value, { strict: false }))
|
|
1214
1250
|
return Math.ceil((value.length - 2) / 2);
|
|
1215
1251
|
return value.length;
|
|
1216
1252
|
}
|
|
1217
1253
|
|
|
1218
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1254
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/abi.js
|
|
1219
1255
|
var AbiConstructorNotFoundError = class extends BaseError3 {
|
|
1220
1256
|
constructor({ docsPath: docsPath6 }) {
|
|
1221
1257
|
super([
|
|
@@ -1423,7 +1459,7 @@ var InvalidDefinitionTypeError = class extends BaseError3 {
|
|
|
1423
1459
|
}
|
|
1424
1460
|
};
|
|
1425
1461
|
|
|
1426
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1462
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/data.js
|
|
1427
1463
|
var SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
|
|
1428
1464
|
constructor({ offset, position, size: size3 }) {
|
|
1429
1465
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size3}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
@@ -1440,7 +1476,7 @@ var InvalidBytesLengthError = class extends BaseError3 {
|
|
|
1440
1476
|
}
|
|
1441
1477
|
};
|
|
1442
1478
|
|
|
1443
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1479
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/slice.js
|
|
1444
1480
|
function slice(value, start, end, { strict } = {}) {
|
|
1445
1481
|
if (isHex(value, { strict: false }))
|
|
1446
1482
|
return sliceHex(value, start, end, {
|
|
@@ -1482,7 +1518,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1482
1518
|
return value;
|
|
1483
1519
|
}
|
|
1484
1520
|
|
|
1485
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1521
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/pad.js
|
|
1486
1522
|
function pad2(hexOrBytes, { dir, size: size3 = 32 } = {}) {
|
|
1487
1523
|
if (typeof hexOrBytes === "string")
|
|
1488
1524
|
return padHex(hexOrBytes, { dir, size: size3 });
|
|
@@ -1517,7 +1553,7 @@ function padBytes(bytes, { dir, size: size3 = 32 } = {}) {
|
|
|
1517
1553
|
return paddedBytes;
|
|
1518
1554
|
}
|
|
1519
1555
|
|
|
1520
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1556
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/encoding.js
|
|
1521
1557
|
var IntegerOutOfRangeError2 = class extends BaseError3 {
|
|
1522
1558
|
constructor({ max, min, signed, size: size3, value }) {
|
|
1523
1559
|
super(`Number "${value}" is not in safe ${size3 ? `${size3 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
@@ -1536,7 +1572,7 @@ var SizeOverflowError2 = class extends BaseError3 {
|
|
|
1536
1572
|
}
|
|
1537
1573
|
};
|
|
1538
1574
|
|
|
1539
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1575
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/trim.js
|
|
1540
1576
|
function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
1541
1577
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
1542
1578
|
let sliceLength = 0;
|
|
@@ -1555,7 +1591,7 @@ function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
|
1555
1591
|
return data;
|
|
1556
1592
|
}
|
|
1557
1593
|
|
|
1558
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1594
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
1559
1595
|
function assertSize2(hexOrBytes, { size: size3 }) {
|
|
1560
1596
|
if (size2(hexOrBytes) > size3)
|
|
1561
1597
|
throw new SizeOverflowError2({
|
|
@@ -1580,7 +1616,7 @@ function hexToNumber(hex, opts = {}) {
|
|
|
1580
1616
|
return Number(hexToBigInt(hex, opts));
|
|
1581
1617
|
}
|
|
1582
1618
|
|
|
1583
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1619
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
1584
1620
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
1585
1621
|
function toHex(value, opts = {}) {
|
|
1586
1622
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1646,7 +1682,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
1646
1682
|
return bytesToHex(value, opts);
|
|
1647
1683
|
}
|
|
1648
1684
|
|
|
1649
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1685
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
1650
1686
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
1651
1687
|
function toBytes2(value, opts = {}) {
|
|
1652
1688
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1898,7 +1934,7 @@ var Keccak = class _Keccak extends Hash {
|
|
|
1898
1934
|
var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
1899
1935
|
var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
1900
1936
|
|
|
1901
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1937
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1902
1938
|
function keccak256(value, to_) {
|
|
1903
1939
|
const to = to_ || "hex";
|
|
1904
1940
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
|
|
@@ -1907,13 +1943,13 @@ function keccak256(value, to_) {
|
|
|
1907
1943
|
return toHex(bytes);
|
|
1908
1944
|
}
|
|
1909
1945
|
|
|
1910
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1946
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1911
1947
|
var hash = (value) => keccak256(toBytes2(value));
|
|
1912
1948
|
function hashSignature(sig) {
|
|
1913
1949
|
return hash(sig);
|
|
1914
1950
|
}
|
|
1915
1951
|
|
|
1916
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1952
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1917
1953
|
function normalizeSignature(signature) {
|
|
1918
1954
|
let active = true;
|
|
1919
1955
|
let current = "";
|
|
@@ -1957,7 +1993,7 @@ function normalizeSignature(signature) {
|
|
|
1957
1993
|
return result;
|
|
1958
1994
|
}
|
|
1959
1995
|
|
|
1960
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1996
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1961
1997
|
var toSignature = (def) => {
|
|
1962
1998
|
const def_ = (() => {
|
|
1963
1999
|
if (typeof def === "string")
|
|
@@ -1967,15 +2003,15 @@ var toSignature = (def) => {
|
|
|
1967
2003
|
return normalizeSignature(def_);
|
|
1968
2004
|
};
|
|
1969
2005
|
|
|
1970
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2006
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1971
2007
|
function toSignatureHash(fn) {
|
|
1972
2008
|
return hashSignature(toSignature(fn));
|
|
1973
2009
|
}
|
|
1974
2010
|
|
|
1975
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2011
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1976
2012
|
var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
|
|
1977
2013
|
|
|
1978
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2014
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/address.js
|
|
1979
2015
|
var InvalidAddressError = class extends BaseError3 {
|
|
1980
2016
|
constructor({ address }) {
|
|
1981
2017
|
super(`Address "${address}" is invalid.`, {
|
|
@@ -1988,7 +2024,7 @@ var InvalidAddressError = class extends BaseError3 {
|
|
|
1988
2024
|
}
|
|
1989
2025
|
};
|
|
1990
2026
|
|
|
1991
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2027
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/lru.js
|
|
1992
2028
|
var LruMap = class extends Map {
|
|
1993
2029
|
constructor(size3) {
|
|
1994
2030
|
super();
|
|
@@ -2019,7 +2055,7 @@ var LruMap = class extends Map {
|
|
|
2019
2055
|
}
|
|
2020
2056
|
};
|
|
2021
2057
|
|
|
2022
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2058
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/address/isAddress.js
|
|
2023
2059
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
2024
2060
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2025
2061
|
function isAddress(address, options) {
|
|
@@ -2040,7 +2076,7 @@ function isAddress(address, options) {
|
|
|
2040
2076
|
return result;
|
|
2041
2077
|
}
|
|
2042
2078
|
|
|
2043
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2079
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/address/getAddress.js
|
|
2044
2080
|
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2045
2081
|
function checksumAddress(address_, chainId) {
|
|
2046
2082
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
@@ -2061,7 +2097,7 @@ function checksumAddress(address_, chainId) {
|
|
|
2061
2097
|
return result;
|
|
2062
2098
|
}
|
|
2063
2099
|
|
|
2064
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2100
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/cursor.js
|
|
2065
2101
|
var NegativeOffsetError = class extends BaseError3 {
|
|
2066
2102
|
constructor({ offset }) {
|
|
2067
2103
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
@@ -2080,7 +2116,7 @@ var RecursiveReadLimitExceededError = class extends BaseError3 {
|
|
|
2080
2116
|
}
|
|
2081
2117
|
};
|
|
2082
2118
|
|
|
2083
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2119
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/cursor.js
|
|
2084
2120
|
var staticCursor = {
|
|
2085
2121
|
bytes: new Uint8Array(),
|
|
2086
2122
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -2249,7 +2285,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
2249
2285
|
return cursor;
|
|
2250
2286
|
}
|
|
2251
2287
|
|
|
2252
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2288
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
2253
2289
|
function bytesToBigInt(bytes, opts = {}) {
|
|
2254
2290
|
if (typeof opts.size !== "undefined")
|
|
2255
2291
|
assertSize2(bytes, { size: opts.size });
|
|
@@ -2281,7 +2317,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
2281
2317
|
return new TextDecoder().decode(bytes);
|
|
2282
2318
|
}
|
|
2283
2319
|
|
|
2284
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2320
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/data/concat.js
|
|
2285
2321
|
function concat(values) {
|
|
2286
2322
|
if (typeof values[0] === "string")
|
|
2287
2323
|
return concatHex(values);
|
|
@@ -2304,10 +2340,10 @@ function concatHex(values) {
|
|
|
2304
2340
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2305
2341
|
}
|
|
2306
2342
|
|
|
2307
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2343
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/regex.js
|
|
2308
2344
|
var 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)?$/;
|
|
2309
2345
|
|
|
2310
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2346
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
2311
2347
|
function encodeAbiParameters(params, values) {
|
|
2312
2348
|
if (params.length !== values.length)
|
|
2313
2349
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -2521,7 +2557,7 @@ function getArrayComponents(type) {
|
|
|
2521
2557
|
) : void 0;
|
|
2522
2558
|
}
|
|
2523
2559
|
|
|
2524
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2560
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
2525
2561
|
function decodeAbiParameters(params, data) {
|
|
2526
2562
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
2527
2563
|
const cursor = createCursor(bytes);
|
|
@@ -2708,7 +2744,7 @@ function hasDynamicChild(param) {
|
|
|
2708
2744
|
return false;
|
|
2709
2745
|
}
|
|
2710
2746
|
|
|
2711
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2747
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
2712
2748
|
function decodeErrorResult(parameters) {
|
|
2713
2749
|
const { abi, data } = parameters;
|
|
2714
2750
|
const signature = slice(data, 0, 4);
|
|
@@ -2727,16 +2763,16 @@ function decodeErrorResult(parameters) {
|
|
|
2727
2763
|
};
|
|
2728
2764
|
}
|
|
2729
2765
|
|
|
2730
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2766
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/stringify.js
|
|
2731
2767
|
var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
2732
2768
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
2733
2769
|
return value2;
|
|
2734
2770
|
}, space);
|
|
2735
2771
|
|
|
2736
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2772
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
2737
2773
|
var toEventSelector = toSignatureHash;
|
|
2738
2774
|
|
|
2739
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2775
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
2740
2776
|
function getAbiItem(parameters) {
|
|
2741
2777
|
const { abi, args = [], name } = parameters;
|
|
2742
2778
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -2848,7 +2884,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
2848
2884
|
return;
|
|
2849
2885
|
}
|
|
2850
2886
|
|
|
2851
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2887
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/constants/unit.js
|
|
2852
2888
|
var etherUnits = {
|
|
2853
2889
|
gwei: 9,
|
|
2854
2890
|
wei: 18
|
|
@@ -2858,7 +2894,7 @@ var gweiUnits = {
|
|
|
2858
2894
|
wei: 9
|
|
2859
2895
|
};
|
|
2860
2896
|
|
|
2861
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2897
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
2862
2898
|
function formatUnits(value, decimals) {
|
|
2863
2899
|
let display = value.toString();
|
|
2864
2900
|
const negative = display.startsWith("-");
|
|
@@ -2873,17 +2909,17 @@ function formatUnits(value, decimals) {
|
|
|
2873
2909
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
2874
2910
|
}
|
|
2875
2911
|
|
|
2876
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2912
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2877
2913
|
function formatEther(wei, unit = "wei") {
|
|
2878
2914
|
return formatUnits(wei, etherUnits[unit]);
|
|
2879
2915
|
}
|
|
2880
2916
|
|
|
2881
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2917
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2882
2918
|
function formatGwei(wei, unit = "wei") {
|
|
2883
2919
|
return formatUnits(wei, gweiUnits[unit]);
|
|
2884
2920
|
}
|
|
2885
2921
|
|
|
2886
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2922
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/stateOverride.js
|
|
2887
2923
|
var AccountStateConflictError = class extends BaseError3 {
|
|
2888
2924
|
constructor({ address }) {
|
|
2889
2925
|
super(`State for account "${address}" is set multiple times.`, {
|
|
@@ -2929,7 +2965,7 @@ function prettyStateOverride(stateOverride) {
|
|
|
2929
2965
|
}, " State Override:\n").slice(0, -1);
|
|
2930
2966
|
}
|
|
2931
2967
|
|
|
2932
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2968
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/transaction.js
|
|
2933
2969
|
function prettyPrint(args) {
|
|
2934
2970
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
2935
2971
|
if (value === void 0 || value === false)
|
|
@@ -2940,10 +2976,10 @@ function prettyPrint(args) {
|
|
|
2940
2976
|
return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
|
|
2941
2977
|
}
|
|
2942
2978
|
|
|
2943
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2979
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/utils.js
|
|
2944
2980
|
var getUrl = (url) => url;
|
|
2945
2981
|
|
|
2946
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2982
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/contract.js
|
|
2947
2983
|
var CallExecutionError = class extends BaseError3 {
|
|
2948
2984
|
constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
2949
2985
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3012,7 +3048,7 @@ var RawContractError = class extends BaseError3 {
|
|
|
3012
3048
|
}
|
|
3013
3049
|
};
|
|
3014
3050
|
|
|
3015
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3051
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
3016
3052
|
var docsPath = "/docs/contract/decodeFunctionResult";
|
|
3017
3053
|
function decodeFunctionResult(parameters) {
|
|
3018
3054
|
const { abi, args, functionName, data } = parameters;
|
|
@@ -3035,7 +3071,7 @@ function decodeFunctionResult(parameters) {
|
|
|
3035
3071
|
return void 0;
|
|
3036
3072
|
}
|
|
3037
3073
|
|
|
3038
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3074
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/encodeDeployData.js
|
|
3039
3075
|
var docsPath2 = "/docs/contract/encodeDeployData";
|
|
3040
3076
|
function encodeDeployData(parameters) {
|
|
3041
3077
|
const { abi, args, bytecode } = parameters;
|
|
@@ -3052,7 +3088,7 @@ function encodeDeployData(parameters) {
|
|
|
3052
3088
|
return concatHex([bytecode, data]);
|
|
3053
3089
|
}
|
|
3054
3090
|
|
|
3055
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3091
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
3056
3092
|
var docsPath3 = "/docs/contract/encodeFunctionData";
|
|
3057
3093
|
function prepareEncodeFunctionData(parameters) {
|
|
3058
3094
|
const { abi, args, functionName } = parameters;
|
|
@@ -3075,7 +3111,7 @@ function prepareEncodeFunctionData(parameters) {
|
|
|
3075
3111
|
};
|
|
3076
3112
|
}
|
|
3077
3113
|
|
|
3078
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3114
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
3079
3115
|
function encodeFunctionData(parameters) {
|
|
3080
3116
|
const { args } = parameters;
|
|
3081
3117
|
const { abi, functionName } = (() => {
|
|
@@ -3089,7 +3125,7 @@ function encodeFunctionData(parameters) {
|
|
|
3089
3125
|
return concatHex([signature, data ?? "0x"]);
|
|
3090
3126
|
}
|
|
3091
3127
|
|
|
3092
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3128
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
3093
3129
|
function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
3094
3130
|
const contract = chain?.contracts?.[name];
|
|
3095
3131
|
if (!contract)
|
|
@@ -3109,7 +3145,7 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
|
3109
3145
|
return contract.address;
|
|
3110
3146
|
}
|
|
3111
3147
|
|
|
3112
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3148
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/node.js
|
|
3113
3149
|
var ExecutionRevertedError = class extends BaseError3 {
|
|
3114
3150
|
constructor({ cause, message } = {}) {
|
|
3115
3151
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
@@ -3129,7 +3165,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
|
|
3129
3165
|
enumerable: true,
|
|
3130
3166
|
configurable: true,
|
|
3131
3167
|
writable: true,
|
|
3132
|
-
value: /execution reverted/
|
|
3168
|
+
value: /execution reverted|gas required exceeds allowance/
|
|
3133
3169
|
});
|
|
3134
3170
|
var FeeCapTooHighError = class extends BaseError3 {
|
|
3135
3171
|
constructor({ cause, maxFeePerGas } = {}) {
|
|
@@ -3288,7 +3324,7 @@ var UnknownNodeError = class extends BaseError3 {
|
|
|
3288
3324
|
}
|
|
3289
3325
|
};
|
|
3290
3326
|
|
|
3291
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3327
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/request.js
|
|
3292
3328
|
var HttpRequestError = class extends BaseError3 {
|
|
3293
3329
|
constructor({ body, cause, details, headers, status, url }) {
|
|
3294
3330
|
super("HTTP request failed.", {
|
|
@@ -3332,7 +3368,7 @@ var HttpRequestError = class extends BaseError3 {
|
|
|
3332
3368
|
}
|
|
3333
3369
|
};
|
|
3334
3370
|
|
|
3335
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3371
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
3336
3372
|
function getNodeError(err, args) {
|
|
3337
3373
|
const message = (err.details || "").toLowerCase();
|
|
3338
3374
|
const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
|
|
@@ -3381,7 +3417,7 @@ function getNodeError(err, args) {
|
|
|
3381
3417
|
});
|
|
3382
3418
|
}
|
|
3383
3419
|
|
|
3384
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3420
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/errors/getCallError.js
|
|
3385
3421
|
function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
3386
3422
|
const cause = (() => {
|
|
3387
3423
|
const cause2 = getNodeError(err, args);
|
|
@@ -3395,7 +3431,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
|
3395
3431
|
});
|
|
3396
3432
|
}
|
|
3397
3433
|
|
|
3398
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3434
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/formatters/extract.js
|
|
3399
3435
|
function extract(value_, { format }) {
|
|
3400
3436
|
if (!format)
|
|
3401
3437
|
return {};
|
|
@@ -3414,7 +3450,7 @@ function extract(value_, { format }) {
|
|
|
3414
3450
|
return value;
|
|
3415
3451
|
}
|
|
3416
3452
|
|
|
3417
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3453
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
3418
3454
|
var rpcTransactionType = {
|
|
3419
3455
|
legacy: "0x0",
|
|
3420
3456
|
eip2930: "0x1",
|
|
@@ -3474,7 +3510,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
3474
3510
|
}));
|
|
3475
3511
|
}
|
|
3476
3512
|
|
|
3477
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3513
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/promise/withResolvers.js
|
|
3478
3514
|
function withResolvers() {
|
|
3479
3515
|
let resolve = () => void 0;
|
|
3480
3516
|
let reject = () => void 0;
|
|
@@ -3485,7 +3521,7 @@ function withResolvers() {
|
|
|
3485
3521
|
return { promise, resolve, reject };
|
|
3486
3522
|
}
|
|
3487
3523
|
|
|
3488
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3524
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
3489
3525
|
var schedulerCache = /* @__PURE__ */ new Map();
|
|
3490
3526
|
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
3491
3527
|
const exec = async () => {
|
|
@@ -3531,7 +3567,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
|
3531
3567
|
};
|
|
3532
3568
|
}
|
|
3533
3569
|
|
|
3534
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3570
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/stateOverride.js
|
|
3535
3571
|
function serializeStateMapping(stateMapping) {
|
|
3536
3572
|
if (!stateMapping || stateMapping.length === 0)
|
|
3537
3573
|
return void 0;
|
|
@@ -3585,7 +3621,7 @@ function serializeStateOverride(parameters) {
|
|
|
3585
3621
|
}
|
|
3586
3622
|
var maxUint256 = 2n ** 256n - 1n;
|
|
3587
3623
|
|
|
3588
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3624
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
3589
3625
|
function assertRequest(args) {
|
|
3590
3626
|
const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
3591
3627
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3599,7 +3635,7 @@ function assertRequest(args) {
|
|
|
3599
3635
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
3600
3636
|
}
|
|
3601
3637
|
|
|
3602
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3638
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/actions/public/call.js
|
|
3603
3639
|
async function call(client, args) {
|
|
3604
3640
|
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
|
|
3605
3641
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3684,7 +3720,7 @@ async function call(client, args) {
|
|
|
3684
3720
|
return { data: response };
|
|
3685
3721
|
} catch (err) {
|
|
3686
3722
|
const data2 = getRevertErrorData(err);
|
|
3687
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-
|
|
3723
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-4Z7OPIYF.js');
|
|
3688
3724
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3689
3725
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3690
3726
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -3797,7 +3833,7 @@ function getRevertErrorData(err) {
|
|
|
3797
3833
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
3798
3834
|
}
|
|
3799
3835
|
|
|
3800
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3836
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/errors/ccip.js
|
|
3801
3837
|
var OffchainLookupError = class extends BaseError3 {
|
|
3802
3838
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
3803
3839
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -3842,7 +3878,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError3 {
|
|
|
3842
3878
|
}
|
|
3843
3879
|
};
|
|
3844
3880
|
|
|
3845
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3881
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3846
3882
|
function isAddressEqual(a, b) {
|
|
3847
3883
|
if (!isAddress(a, { strict: false }))
|
|
3848
3884
|
throw new InvalidAddressError({ address: a });
|
|
@@ -3851,7 +3887,7 @@ function isAddressEqual(a, b) {
|
|
|
3851
3887
|
return a.toLowerCase() === b.toLowerCase();
|
|
3852
3888
|
}
|
|
3853
3889
|
|
|
3854
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3890
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
|
|
3855
3891
|
function decodeFunctionData(parameters) {
|
|
3856
3892
|
const { abi, data } = parameters;
|
|
3857
3893
|
const signature = slice(data, 0, 4);
|
|
@@ -3866,7 +3902,7 @@ function decodeFunctionData(parameters) {
|
|
|
3866
3902
|
};
|
|
3867
3903
|
}
|
|
3868
3904
|
|
|
3869
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3905
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
|
|
3870
3906
|
var docsPath4 = "/docs/contract/encodeErrorResult";
|
|
3871
3907
|
function encodeErrorResult(parameters) {
|
|
3872
3908
|
const { abi, errorName, args } = parameters;
|
|
@@ -3890,7 +3926,7 @@ function encodeErrorResult(parameters) {
|
|
|
3890
3926
|
return concatHex([signature, data]);
|
|
3891
3927
|
}
|
|
3892
3928
|
|
|
3893
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3929
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
|
|
3894
3930
|
var docsPath5 = "/docs/contract/encodeFunctionResult";
|
|
3895
3931
|
function encodeFunctionResult(parameters) {
|
|
3896
3932
|
const { abi, functionName, result } = parameters;
|
|
@@ -3917,7 +3953,7 @@ function encodeFunctionResult(parameters) {
|
|
|
3917
3953
|
return encodeAbiParameters(abiItem.outputs, values);
|
|
3918
3954
|
}
|
|
3919
3955
|
|
|
3920
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3956
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
|
|
3921
3957
|
var localBatchGatewayUrl = "x-batch-gateway:true";
|
|
3922
3958
|
async function localBatchGatewayRequest(parameters) {
|
|
3923
3959
|
const { data, ccipRequest: ccipRequest2 } = parameters;
|
|
@@ -3953,7 +3989,7 @@ function encodeError(error) {
|
|
|
3953
3989
|
});
|
|
3954
3990
|
}
|
|
3955
3991
|
|
|
3956
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3992
|
+
// ../../node_modules/.pnpm/viem@2.43.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.2.1/node_modules/viem/_esm/utils/ccip.js
|
|
3957
3993
|
var offchainLookupSignature = "0x556f1830";
|
|
3958
3994
|
var offchainLookupAbiItem = {
|
|
3959
3995
|
name: "OffchainLookup",
|
|
@@ -4066,5 +4102,5 @@ async function ccipRequest({ data, sender, urls }) {
|
|
|
4066
4102
|
}
|
|
4067
4103
|
|
|
4068
4104
|
export { BaseError3 as BaseError, ccipRequest, formatEther, formatUnits, offchainLookup, offchainLookupAbiItem, offchainLookupSignature };
|
|
4069
|
-
//# sourceMappingURL=chunk-
|
|
4070
|
-
//# sourceMappingURL=chunk-
|
|
4105
|
+
//# sourceMappingURL=chunk-GJEFCA2S.js.map
|
|
4106
|
+
//# sourceMappingURL=chunk-GJEFCA2S.js.map
|