@1delta/margin-fetcher 0.0.152 → 0.0.154
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/assets/index.d.ts +2 -2
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/ccip-ZCD57SLY.js +5 -0
- package/dist/{ccip-4Z7OPIYF.js.map → ccip-ZCD57SLY.js.map} +1 -1
- package/dist/{chunk-GJEFCA2S.js → chunk-ODBGQEBG.js} +115 -105
- package/dist/chunk-ODBGQEBG.js.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1385 -508
- package/dist/index.js.map +1 -1
- package/dist/lending/index.d.ts +1 -1
- package/dist/lending/index.d.ts.map +1 -1
- package/dist/lending/init/publicCallParse.d.ts +1 -2
- package/dist/lending/init/publicCallParse.d.ts.map +1 -1
- package/dist/lending/meta/index.d.ts +2 -0
- package/dist/lending/meta/index.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts +1 -2
- package/dist/lending/user-data/aave-v2-type/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts +2 -7
- package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts +1 -2
- package/dist/lending/user-data/aave-v3-type/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts +2 -7
- package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/aave-v3-type/userCallParseYldr.d.ts +2 -7
- package/dist/lending/user-data/aave-v3-type/userCallParseYldr.d.ts.map +1 -1
- package/dist/lending/user-data/abis.d.ts +3307 -3307
- package/dist/lending/user-data/compound-v2/userCallBuild.d.ts +1 -2
- package/dist/lending/user-data/compound-v2/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v2/userCallParse.d.ts +2 -7
- package/dist/lending/user-data/compound-v2/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts +1 -2
- package/dist/lending/user-data/compound-v3/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts +2 -7
- package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/fetchUserData.d.ts +28 -15
- package/dist/lending/user-data/fetchUserData.d.ts.map +1 -1
- package/dist/lending/user-data/index.d.ts +1 -0
- package/dist/lending/user-data/index.d.ts.map +1 -1
- package/dist/lending/user-data/init/userCallParse.d.ts +2 -7
- package/dist/lending/user-data/init/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/morpho/userCallParse.d.ts +7 -17
- package/dist/lending/user-data/morpho/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts +3 -45
- package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts +4 -11
- package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts.map +1 -1
- package/dist/lending/user-data/utils/index.d.ts +1 -0
- package/dist/lending/user-data/utils/index.d.ts.map +1 -1
- package/dist/lending/user-data/utils/types.d.ts +68 -0
- package/dist/lending/user-data/utils/types.d.ts.map +1 -0
- package/dist/prices/index.d.ts +1 -0
- package/dist/prices/index.d.ts.map +1 -1
- package/dist/prices/main-prices/fetchOracleData.d.ts.map +1 -1
- package/dist/prices/oracle-prices/fetchOraclePrices.d.ts +55 -0
- package/dist/prices/oracle-prices/fetchOraclePrices.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/aave.d.ts +91 -0
- package/dist/prices/oracle-prices/fetchers/aave.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/compoundV2.d.ts +66 -0
- package/dist/prices/oracle-prices/fetchers/compoundV2.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/compoundV3.d.ts +85 -0
- package/dist/prices/oracle-prices/fetchers/compoundV3.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/index.d.ts +6 -0
- package/dist/prices/oracle-prices/fetchers/index.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/lista.d.ts +66 -0
- package/dist/prices/oracle-prices/fetchers/lista.d.ts.map +1 -0
- package/dist/prices/oracle-prices/fetchers/morpho.d.ts +69 -0
- package/dist/prices/oracle-prices/fetchers/morpho.d.ts.map +1 -0
- package/dist/prices/oracle-prices/index.d.ts +8 -0
- package/dist/prices/oracle-prices/index.d.ts.map +1 -0
- package/dist/prices/oracle-prices/types.d.ts +158 -0
- package/dist/prices/oracle-prices/types.d.ts.map +1 -0
- package/dist/secp256k1-XP7IUONI.js +1 -1
- package/dist/types/lenderTypes.d.ts +5 -5
- package/dist/types/lenderTypes.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/marketUid.d.ts +3 -0
- package/dist/utils/marketUid.d.ts.map +1 -0
- package/dist/utils/multicall.d.ts +11 -1
- package/dist/utils/multicall.d.ts.map +1 -1
- package/dist/utils/rpcCall.d.ts +65 -0
- package/dist/utils/rpcCall.d.ts.map +1 -0
- package/dist/utils/rpcParse.d.ts +19 -0
- package/dist/utils/rpcParse.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/ccip-4Z7OPIYF.js +0 -5
- package/dist/chunk-GJEFCA2S.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { split, createHasher, Hash, anumber, u32, swap32IfBE, aexists, toBytes, abytes, aoutput, clean,
|
|
1
|
+
import { split, createHasher, Hash, anumber, u32, swap32IfBE, aexists, toBytes, abytes, aoutput, clean, rotlBH, rotlSH, rotlBL, rotlSL } from './chunk-BYTNVMX7.js';
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.
|
|
3
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/version.js
|
|
4
4
|
var version = "1.2.3";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.
|
|
6
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
59
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
68
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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;
|
|
@@ -92,7 +92,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
92
92
|
return type;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.
|
|
95
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
108
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
123
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
177
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
207
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
285
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
327
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
342
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
360
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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)
|
|
@@ -429,7 +429,7 @@ var parameterCache = /* @__PURE__ */ new Map([
|
|
|
429
429
|
]
|
|
430
430
|
]);
|
|
431
431
|
|
|
432
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.
|
|
432
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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.2.3_typescript@5.9.3_zod@4.
|
|
631
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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;
|
|
@@ -698,7 +698,7 @@ function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE
|
|
|
698
698
|
return components;
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.
|
|
701
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/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,15 +712,15 @@ function parseAbi(signatures) {
|
|
|
712
712
|
return abi;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
715
|
+
// ../../node_modules/.pnpm/ox@0.11.3_typescript@5.9.3_zod@4.3.6/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.11.3_typescript@5.9.3_zod@4.3.6/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.11.3_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Errors.js
|
|
724
724
|
var BaseError2 = class _BaseError extends Error {
|
|
725
725
|
static setStaticOptions(options) {
|
|
726
726
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
@@ -849,7 +849,7 @@ function walk(err, fn) {
|
|
|
849
849
|
return fn ? null : err;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
852
|
+
// ../../node_modules/.pnpm/ox@0.11.3_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/hex.js
|
|
853
853
|
function pad(hex_, options = {}) {
|
|
854
854
|
const { dir, size: size3 = 32 } = options;
|
|
855
855
|
if (size3 === 0)
|
|
@@ -864,7 +864,7 @@ function pad(hex_, options = {}) {
|
|
|
864
864
|
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size3 * 2, "0")}`;
|
|
865
865
|
}
|
|
866
866
|
|
|
867
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
867
|
+
// ../../node_modules/.pnpm/ox@0.11.3_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Hex.js
|
|
868
868
|
function fromNumber(value, options = {}) {
|
|
869
869
|
const { signed, size: size3 } = options;
|
|
870
870
|
const value_ = BigInt(value);
|
|
@@ -920,7 +920,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
922
|
|
|
923
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
923
|
+
// ../../node_modules/.pnpm/ox@0.11.3_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Withdrawal.js
|
|
924
924
|
function toRpc(withdrawal) {
|
|
925
925
|
return {
|
|
926
926
|
address: withdrawal.address,
|
|
@@ -930,7 +930,7 @@ function toRpc(withdrawal) {
|
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
932
|
|
|
933
|
-
// ../../node_modules/.pnpm/ox@0.
|
|
933
|
+
// ../../node_modules/.pnpm/ox@0.11.3_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/BlockOverrides.js
|
|
934
934
|
function toRpc2(blockOverrides) {
|
|
935
935
|
return {
|
|
936
936
|
...typeof blockOverrides.baseFeePerGas === "bigint" && {
|
|
@@ -960,14 +960,14 @@ function toRpc2(blockOverrides) {
|
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
963
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
964
964
|
function parseAccount(account) {
|
|
965
965
|
if (typeof account === "string")
|
|
966
966
|
return { address: account, type: "json-rpc" };
|
|
967
967
|
return account;
|
|
968
968
|
}
|
|
969
969
|
|
|
970
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
970
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/abis.js
|
|
971
971
|
var multicall3Abi = [
|
|
972
972
|
{
|
|
973
973
|
inputs: [
|
|
@@ -1076,18 +1076,18 @@ var batchGatewayAbi = [
|
|
|
1076
1076
|
}
|
|
1077
1077
|
];
|
|
1078
1078
|
|
|
1079
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1079
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/contract.js
|
|
1080
1080
|
var aggregate3Signature = "0x82ad56cb";
|
|
1081
1081
|
|
|
1082
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1082
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/contracts.js
|
|
1083
1083
|
var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
|
|
1084
1084
|
var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
|
|
1085
1085
|
var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
|
|
1086
1086
|
|
|
1087
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1088
|
-
var version3 = "2.
|
|
1087
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/version.js
|
|
1088
|
+
var version3 = "2.45.1";
|
|
1089
1089
|
|
|
1090
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1090
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/base.js
|
|
1091
1091
|
var errorConfig = {
|
|
1092
1092
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
1093
1093
|
version: `viem@${version3}`
|
|
@@ -1171,7 +1171,7 @@ function walk2(err, fn) {
|
|
|
1171
1171
|
return fn ? null : err;
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1174
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/chain.js
|
|
1175
1175
|
var ChainDoesNotSupportContract = class extends BaseError3 {
|
|
1176
1176
|
constructor({ blockNumber, chain, contract }) {
|
|
1177
1177
|
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
@@ -1195,7 +1195,7 @@ var ClientChainNotConfiguredError = class extends BaseError3 {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
};
|
|
1197
1197
|
|
|
1198
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1198
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/solidity.js
|
|
1199
1199
|
var solidityError = {
|
|
1200
1200
|
inputs: [
|
|
1201
1201
|
{
|
|
@@ -1217,7 +1217,7 @@ var solidityPanic = {
|
|
|
1217
1217
|
type: "error"
|
|
1218
1218
|
};
|
|
1219
1219
|
|
|
1220
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1220
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
1221
1221
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
1222
1222
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
1223
1223
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -1235,7 +1235,7 @@ function formatAbiParam(param, { includeName }) {
|
|
|
1235
1235
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
1236
1236
|
}
|
|
1237
1237
|
|
|
1238
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1238
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js
|
|
1239
1239
|
function isHex(value, { strict = true } = {}) {
|
|
1240
1240
|
if (!value)
|
|
1241
1241
|
return false;
|
|
@@ -1244,14 +1244,14 @@ function isHex(value, { strict = true } = {}) {
|
|
|
1244
1244
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1247
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
|
|
1248
1248
|
function size2(value) {
|
|
1249
1249
|
if (isHex(value, { strict: false }))
|
|
1250
1250
|
return Math.ceil((value.length - 2) / 2);
|
|
1251
1251
|
return value.length;
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1254
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/abi.js
|
|
1255
1255
|
var AbiConstructorNotFoundError = class extends BaseError3 {
|
|
1256
1256
|
constructor({ docsPath: docsPath6 }) {
|
|
1257
1257
|
super([
|
|
@@ -1364,7 +1364,7 @@ var AbiErrorSignatureNotFoundError = class extends BaseError3 {
|
|
|
1364
1364
|
super([
|
|
1365
1365
|
`Encoded error signature "${signature}" not found on ABI.`,
|
|
1366
1366
|
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
1367
|
-
`You can look up the decoded signature here: https://
|
|
1367
|
+
`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${signature}.`
|
|
1368
1368
|
].join("\n"), {
|
|
1369
1369
|
docsPath: docsPath6,
|
|
1370
1370
|
name: "AbiErrorSignatureNotFoundError"
|
|
@@ -1406,7 +1406,7 @@ var AbiFunctionSignatureNotFoundError = class extends BaseError3 {
|
|
|
1406
1406
|
super([
|
|
1407
1407
|
`Encoded function signature "${signature}" not found on ABI.`,
|
|
1408
1408
|
"Make sure you are using the correct ABI and that the function exists on it.",
|
|
1409
|
-
`You can look up the signature here: https://
|
|
1409
|
+
`You can look up the signature here: https://4byte.sourcify.dev/?q=${signature}.`
|
|
1410
1410
|
].join("\n"), {
|
|
1411
1411
|
docsPath: docsPath6,
|
|
1412
1412
|
name: "AbiFunctionSignatureNotFoundError"
|
|
@@ -1459,7 +1459,7 @@ var InvalidDefinitionTypeError = class extends BaseError3 {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1462
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/data.js
|
|
1463
1463
|
var SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
|
|
1464
1464
|
constructor({ offset, position, size: size3 }) {
|
|
1465
1465
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size3}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
@@ -1476,7 +1476,7 @@ var InvalidBytesLengthError = class extends BaseError3 {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
1478
|
|
|
1479
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1479
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
|
|
1480
1480
|
function slice(value, start, end, { strict } = {}) {
|
|
1481
1481
|
if (isHex(value, { strict: false }))
|
|
1482
1482
|
return sliceHex(value, start, end, {
|
|
@@ -1518,7 +1518,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1518
1518
|
return value;
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1521
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
|
|
1522
1522
|
function pad2(hexOrBytes, { dir, size: size3 = 32 } = {}) {
|
|
1523
1523
|
if (typeof hexOrBytes === "string")
|
|
1524
1524
|
return padHex(hexOrBytes, { dir, size: size3 });
|
|
@@ -1553,7 +1553,7 @@ function padBytes(bytes, { dir, size: size3 = 32 } = {}) {
|
|
|
1553
1553
|
return paddedBytes;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1556
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
|
|
1557
1557
|
var IntegerOutOfRangeError2 = class extends BaseError3 {
|
|
1558
1558
|
constructor({ max, min, signed, size: size3, value }) {
|
|
1559
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" });
|
|
@@ -1572,7 +1572,7 @@ var SizeOverflowError2 = class extends BaseError3 {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
};
|
|
1574
1574
|
|
|
1575
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1575
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
|
|
1576
1576
|
function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
1577
1577
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
1578
1578
|
let sliceLength = 0;
|
|
@@ -1591,7 +1591,7 @@ function trim2(hexOrBytes, { dir = "left" } = {}) {
|
|
|
1591
1591
|
return data;
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1594
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
1595
1595
|
function assertSize2(hexOrBytes, { size: size3 }) {
|
|
1596
1596
|
if (size2(hexOrBytes) > size3)
|
|
1597
1597
|
throw new SizeOverflowError2({
|
|
@@ -1613,10 +1613,20 @@ function hexToBigInt(hex, opts = {}) {
|
|
|
1613
1613
|
return value - BigInt(`0x${"f".padStart(size3 * 2, "f")}`) - 1n;
|
|
1614
1614
|
}
|
|
1615
1615
|
function hexToNumber(hex, opts = {}) {
|
|
1616
|
-
|
|
1616
|
+
const value = hexToBigInt(hex, opts);
|
|
1617
|
+
const number = Number(value);
|
|
1618
|
+
if (!Number.isSafeInteger(number))
|
|
1619
|
+
throw new IntegerOutOfRangeError2({
|
|
1620
|
+
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
1621
|
+
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
1622
|
+
signed: opts.signed,
|
|
1623
|
+
size: opts.size,
|
|
1624
|
+
value: `${value}n`
|
|
1625
|
+
});
|
|
1626
|
+
return number;
|
|
1617
1627
|
}
|
|
1618
1628
|
|
|
1619
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1629
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
1620
1630
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
1621
1631
|
function toHex(value, opts = {}) {
|
|
1622
1632
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1682,7 +1692,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
1682
1692
|
return bytesToHex(value, opts);
|
|
1683
1693
|
}
|
|
1684
1694
|
|
|
1685
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1695
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
1686
1696
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
1687
1697
|
function toBytes2(value, opts = {}) {
|
|
1688
1698
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1934,7 +1944,7 @@ var Keccak = class _Keccak extends Hash {
|
|
|
1934
1944
|
var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
1935
1945
|
var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
1936
1946
|
|
|
1937
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1947
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1938
1948
|
function keccak256(value, to_) {
|
|
1939
1949
|
const to = to_ || "hex";
|
|
1940
1950
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
|
|
@@ -1943,13 +1953,13 @@ function keccak256(value, to_) {
|
|
|
1943
1953
|
return toHex(bytes);
|
|
1944
1954
|
}
|
|
1945
1955
|
|
|
1946
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1956
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1947
1957
|
var hash = (value) => keccak256(toBytes2(value));
|
|
1948
1958
|
function hashSignature(sig) {
|
|
1949
1959
|
return hash(sig);
|
|
1950
1960
|
}
|
|
1951
1961
|
|
|
1952
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1962
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1953
1963
|
function normalizeSignature(signature) {
|
|
1954
1964
|
let active = true;
|
|
1955
1965
|
let current = "";
|
|
@@ -1993,7 +2003,7 @@ function normalizeSignature(signature) {
|
|
|
1993
2003
|
return result;
|
|
1994
2004
|
}
|
|
1995
2005
|
|
|
1996
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2006
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1997
2007
|
var toSignature = (def) => {
|
|
1998
2008
|
const def_ = (() => {
|
|
1999
2009
|
if (typeof def === "string")
|
|
@@ -2003,15 +2013,15 @@ var toSignature = (def) => {
|
|
|
2003
2013
|
return normalizeSignature(def_);
|
|
2004
2014
|
};
|
|
2005
2015
|
|
|
2006
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2016
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
2007
2017
|
function toSignatureHash(fn) {
|
|
2008
2018
|
return hashSignature(toSignature(fn));
|
|
2009
2019
|
}
|
|
2010
2020
|
|
|
2011
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2021
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
2012
2022
|
var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
|
|
2013
2023
|
|
|
2014
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2024
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/address.js
|
|
2015
2025
|
var InvalidAddressError = class extends BaseError3 {
|
|
2016
2026
|
constructor({ address }) {
|
|
2017
2027
|
super(`Address "${address}" is invalid.`, {
|
|
@@ -2024,7 +2034,7 @@ var InvalidAddressError = class extends BaseError3 {
|
|
|
2024
2034
|
}
|
|
2025
2035
|
};
|
|
2026
2036
|
|
|
2027
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2037
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/lru.js
|
|
2028
2038
|
var LruMap = class extends Map {
|
|
2029
2039
|
constructor(size3) {
|
|
2030
2040
|
super();
|
|
@@ -2055,7 +2065,7 @@ var LruMap = class extends Map {
|
|
|
2055
2065
|
}
|
|
2056
2066
|
};
|
|
2057
2067
|
|
|
2058
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2068
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js
|
|
2059
2069
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
2060
2070
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2061
2071
|
function isAddress(address, options) {
|
|
@@ -2076,7 +2086,7 @@ function isAddress(address, options) {
|
|
|
2076
2086
|
return result;
|
|
2077
2087
|
}
|
|
2078
2088
|
|
|
2079
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2089
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js
|
|
2080
2090
|
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2081
2091
|
function checksumAddress(address_, chainId) {
|
|
2082
2092
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
@@ -2097,7 +2107,7 @@ function checksumAddress(address_, chainId) {
|
|
|
2097
2107
|
return result;
|
|
2098
2108
|
}
|
|
2099
2109
|
|
|
2100
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2110
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
|
|
2101
2111
|
var NegativeOffsetError = class extends BaseError3 {
|
|
2102
2112
|
constructor({ offset }) {
|
|
2103
2113
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
@@ -2116,7 +2126,7 @@ var RecursiveReadLimitExceededError = class extends BaseError3 {
|
|
|
2116
2126
|
}
|
|
2117
2127
|
};
|
|
2118
2128
|
|
|
2119
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2129
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js
|
|
2120
2130
|
var staticCursor = {
|
|
2121
2131
|
bytes: new Uint8Array(),
|
|
2122
2132
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -2285,7 +2295,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
2285
2295
|
return cursor;
|
|
2286
2296
|
}
|
|
2287
2297
|
|
|
2288
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2298
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
2289
2299
|
function bytesToBigInt(bytes, opts = {}) {
|
|
2290
2300
|
if (typeof opts.size !== "undefined")
|
|
2291
2301
|
assertSize2(bytes, { size: opts.size });
|
|
@@ -2317,7 +2327,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
2317
2327
|
return new TextDecoder().decode(bytes);
|
|
2318
2328
|
}
|
|
2319
2329
|
|
|
2320
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2330
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
|
|
2321
2331
|
function concat(values) {
|
|
2322
2332
|
if (typeof values[0] === "string")
|
|
2323
2333
|
return concatHex(values);
|
|
@@ -2340,10 +2350,10 @@ function concatHex(values) {
|
|
|
2340
2350
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2341
2351
|
}
|
|
2342
2352
|
|
|
2343
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2353
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/regex.js
|
|
2344
2354
|
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)?$/;
|
|
2345
2355
|
|
|
2346
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2356
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
2347
2357
|
function encodeAbiParameters(params, values) {
|
|
2348
2358
|
if (params.length !== values.length)
|
|
2349
2359
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -2557,7 +2567,7 @@ function getArrayComponents(type) {
|
|
|
2557
2567
|
) : void 0;
|
|
2558
2568
|
}
|
|
2559
2569
|
|
|
2560
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2570
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
2561
2571
|
function decodeAbiParameters(params, data) {
|
|
2562
2572
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
2563
2573
|
const cursor = createCursor(bytes);
|
|
@@ -2744,7 +2754,7 @@ function hasDynamicChild(param) {
|
|
|
2744
2754
|
return false;
|
|
2745
2755
|
}
|
|
2746
2756
|
|
|
2747
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2757
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
2748
2758
|
function decodeErrorResult(parameters) {
|
|
2749
2759
|
const { abi, data } = parameters;
|
|
2750
2760
|
const signature = slice(data, 0, 4);
|
|
@@ -2763,16 +2773,16 @@ function decodeErrorResult(parameters) {
|
|
|
2763
2773
|
};
|
|
2764
2774
|
}
|
|
2765
2775
|
|
|
2766
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2776
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/stringify.js
|
|
2767
2777
|
var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
2768
2778
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
2769
2779
|
return value2;
|
|
2770
2780
|
}, space);
|
|
2771
2781
|
|
|
2772
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2782
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
2773
2783
|
var toEventSelector = toSignatureHash;
|
|
2774
2784
|
|
|
2775
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2785
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
2776
2786
|
function getAbiItem(parameters) {
|
|
2777
2787
|
const { abi, args = [], name } = parameters;
|
|
2778
2788
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -2845,7 +2855,7 @@ function isArgOfType(arg, abiParameter) {
|
|
|
2845
2855
|
default: {
|
|
2846
2856
|
if (abiParameterType === "tuple" && "components" in abiParameter)
|
|
2847
2857
|
return Object.values(abiParameter.components).every((component, index) => {
|
|
2848
|
-
return isArgOfType(Object.values(arg)[index], component);
|
|
2858
|
+
return argType === "object" && isArgOfType(Object.values(arg)[index], component);
|
|
2849
2859
|
});
|
|
2850
2860
|
if (/^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)?$/.test(abiParameterType))
|
|
2851
2861
|
return argType === "number" || argType === "bigint";
|
|
@@ -2884,7 +2894,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
2884
2894
|
return;
|
|
2885
2895
|
}
|
|
2886
2896
|
|
|
2887
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2897
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/unit.js
|
|
2888
2898
|
var etherUnits = {
|
|
2889
2899
|
gwei: 9,
|
|
2890
2900
|
wei: 18
|
|
@@ -2894,7 +2904,7 @@ var gweiUnits = {
|
|
|
2894
2904
|
wei: 9
|
|
2895
2905
|
};
|
|
2896
2906
|
|
|
2897
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2907
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
2898
2908
|
function formatUnits(value, decimals) {
|
|
2899
2909
|
let display = value.toString();
|
|
2900
2910
|
const negative = display.startsWith("-");
|
|
@@ -2909,17 +2919,17 @@ function formatUnits(value, decimals) {
|
|
|
2909
2919
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
2910
2920
|
}
|
|
2911
2921
|
|
|
2912
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2922
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2913
2923
|
function formatEther(wei, unit = "wei") {
|
|
2914
2924
|
return formatUnits(wei, etherUnits[unit]);
|
|
2915
2925
|
}
|
|
2916
2926
|
|
|
2917
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2927
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2918
2928
|
function formatGwei(wei, unit = "wei") {
|
|
2919
2929
|
return formatUnits(wei, gweiUnits[unit]);
|
|
2920
2930
|
}
|
|
2921
2931
|
|
|
2922
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2932
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/stateOverride.js
|
|
2923
2933
|
var AccountStateConflictError = class extends BaseError3 {
|
|
2924
2934
|
constructor({ address }) {
|
|
2925
2935
|
super(`State for account "${address}" is set multiple times.`, {
|
|
@@ -2965,7 +2975,7 @@ function prettyStateOverride(stateOverride) {
|
|
|
2965
2975
|
}, " State Override:\n").slice(0, -1);
|
|
2966
2976
|
}
|
|
2967
2977
|
|
|
2968
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2978
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/transaction.js
|
|
2969
2979
|
function prettyPrint(args) {
|
|
2970
2980
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
2971
2981
|
if (value === void 0 || value === false)
|
|
@@ -2976,10 +2986,10 @@ function prettyPrint(args) {
|
|
|
2976
2986
|
return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
|
|
2977
2987
|
}
|
|
2978
2988
|
|
|
2979
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2989
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/utils.js
|
|
2980
2990
|
var getUrl = (url) => url;
|
|
2981
2991
|
|
|
2982
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2992
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/contract.js
|
|
2983
2993
|
var CallExecutionError = class extends BaseError3 {
|
|
2984
2994
|
constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
2985
2995
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3048,7 +3058,7 @@ var RawContractError = class extends BaseError3 {
|
|
|
3048
3058
|
}
|
|
3049
3059
|
};
|
|
3050
3060
|
|
|
3051
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3061
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
3052
3062
|
var docsPath = "/docs/contract/decodeFunctionResult";
|
|
3053
3063
|
function decodeFunctionResult(parameters) {
|
|
3054
3064
|
const { abi, args, functionName, data } = parameters;
|
|
@@ -3071,7 +3081,7 @@ function decodeFunctionResult(parameters) {
|
|
|
3071
3081
|
return void 0;
|
|
3072
3082
|
}
|
|
3073
3083
|
|
|
3074
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3084
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeDeployData.js
|
|
3075
3085
|
var docsPath2 = "/docs/contract/encodeDeployData";
|
|
3076
3086
|
function encodeDeployData(parameters) {
|
|
3077
3087
|
const { abi, args, bytecode } = parameters;
|
|
@@ -3088,7 +3098,7 @@ function encodeDeployData(parameters) {
|
|
|
3088
3098
|
return concatHex([bytecode, data]);
|
|
3089
3099
|
}
|
|
3090
3100
|
|
|
3091
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3101
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
3092
3102
|
var docsPath3 = "/docs/contract/encodeFunctionData";
|
|
3093
3103
|
function prepareEncodeFunctionData(parameters) {
|
|
3094
3104
|
const { abi, args, functionName } = parameters;
|
|
@@ -3111,7 +3121,7 @@ function prepareEncodeFunctionData(parameters) {
|
|
|
3111
3121
|
};
|
|
3112
3122
|
}
|
|
3113
3123
|
|
|
3114
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3124
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
3115
3125
|
function encodeFunctionData(parameters) {
|
|
3116
3126
|
const { args } = parameters;
|
|
3117
3127
|
const { abi, functionName } = (() => {
|
|
@@ -3125,7 +3135,7 @@ function encodeFunctionData(parameters) {
|
|
|
3125
3135
|
return concatHex([signature, data ?? "0x"]);
|
|
3126
3136
|
}
|
|
3127
3137
|
|
|
3128
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3138
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
3129
3139
|
function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
3130
3140
|
const contract = chain?.contracts?.[name];
|
|
3131
3141
|
if (!contract)
|
|
@@ -3145,7 +3155,7 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
|
3145
3155
|
return contract.address;
|
|
3146
3156
|
}
|
|
3147
3157
|
|
|
3148
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3158
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/node.js
|
|
3149
3159
|
var ExecutionRevertedError = class extends BaseError3 {
|
|
3150
3160
|
constructor({ cause, message } = {}) {
|
|
3151
3161
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
@@ -3324,7 +3334,7 @@ var UnknownNodeError = class extends BaseError3 {
|
|
|
3324
3334
|
}
|
|
3325
3335
|
};
|
|
3326
3336
|
|
|
3327
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3337
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/request.js
|
|
3328
3338
|
var HttpRequestError = class extends BaseError3 {
|
|
3329
3339
|
constructor({ body, cause, details, headers, status, url }) {
|
|
3330
3340
|
super("HTTP request failed.", {
|
|
@@ -3368,7 +3378,7 @@ var HttpRequestError = class extends BaseError3 {
|
|
|
3368
3378
|
}
|
|
3369
3379
|
};
|
|
3370
3380
|
|
|
3371
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3381
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
3372
3382
|
function getNodeError(err, args) {
|
|
3373
3383
|
const message = (err.details || "").toLowerCase();
|
|
3374
3384
|
const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
|
|
@@ -3417,7 +3427,7 @@ function getNodeError(err, args) {
|
|
|
3417
3427
|
});
|
|
3418
3428
|
}
|
|
3419
3429
|
|
|
3420
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3430
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/errors/getCallError.js
|
|
3421
3431
|
function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
3422
3432
|
const cause = (() => {
|
|
3423
3433
|
const cause2 = getNodeError(err, args);
|
|
@@ -3431,7 +3441,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
|
3431
3441
|
});
|
|
3432
3442
|
}
|
|
3433
3443
|
|
|
3434
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3444
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/formatters/extract.js
|
|
3435
3445
|
function extract(value_, { format }) {
|
|
3436
3446
|
if (!format)
|
|
3437
3447
|
return {};
|
|
@@ -3450,7 +3460,7 @@ function extract(value_, { format }) {
|
|
|
3450
3460
|
return value;
|
|
3451
3461
|
}
|
|
3452
3462
|
|
|
3453
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3463
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
3454
3464
|
var rpcTransactionType = {
|
|
3455
3465
|
legacy: "0x0",
|
|
3456
3466
|
eip2930: "0x1",
|
|
@@ -3510,7 +3520,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
3510
3520
|
}));
|
|
3511
3521
|
}
|
|
3512
3522
|
|
|
3513
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3523
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/promise/withResolvers.js
|
|
3514
3524
|
function withResolvers() {
|
|
3515
3525
|
let resolve = () => void 0;
|
|
3516
3526
|
let reject = () => void 0;
|
|
@@ -3521,7 +3531,7 @@ function withResolvers() {
|
|
|
3521
3531
|
return { promise, resolve, reject };
|
|
3522
3532
|
}
|
|
3523
3533
|
|
|
3524
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3534
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
3525
3535
|
var schedulerCache = /* @__PURE__ */ new Map();
|
|
3526
3536
|
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
3527
3537
|
const exec = async () => {
|
|
@@ -3567,7 +3577,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
|
3567
3577
|
};
|
|
3568
3578
|
}
|
|
3569
3579
|
|
|
3570
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3580
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/stateOverride.js
|
|
3571
3581
|
function serializeStateMapping(stateMapping) {
|
|
3572
3582
|
if (!stateMapping || stateMapping.length === 0)
|
|
3573
3583
|
return void 0;
|
|
@@ -3621,7 +3631,7 @@ function serializeStateOverride(parameters) {
|
|
|
3621
3631
|
}
|
|
3622
3632
|
var maxUint256 = 2n ** 256n - 1n;
|
|
3623
3633
|
|
|
3624
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3634
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
3625
3635
|
function assertRequest(args) {
|
|
3626
3636
|
const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
3627
3637
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3635,7 +3645,7 @@ function assertRequest(args) {
|
|
|
3635
3645
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
3636
3646
|
}
|
|
3637
3647
|
|
|
3638
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3648
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/actions/public/call.js
|
|
3639
3649
|
async function call(client, args) {
|
|
3640
3650
|
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;
|
|
3641
3651
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3720,7 +3730,7 @@ async function call(client, args) {
|
|
|
3720
3730
|
return { data: response };
|
|
3721
3731
|
} catch (err) {
|
|
3722
3732
|
const data2 = getRevertErrorData(err);
|
|
3723
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-
|
|
3733
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import('./ccip-ZCD57SLY.js');
|
|
3724
3734
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3725
3735
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3726
3736
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -3833,7 +3843,7 @@ function getRevertErrorData(err) {
|
|
|
3833
3843
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
3834
3844
|
}
|
|
3835
3845
|
|
|
3836
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3846
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/ccip.js
|
|
3837
3847
|
var OffchainLookupError = class extends BaseError3 {
|
|
3838
3848
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
3839
3849
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -3878,7 +3888,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError3 {
|
|
|
3878
3888
|
}
|
|
3879
3889
|
};
|
|
3880
3890
|
|
|
3881
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3891
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3882
3892
|
function isAddressEqual(a, b) {
|
|
3883
3893
|
if (!isAddress(a, { strict: false }))
|
|
3884
3894
|
throw new InvalidAddressError({ address: a });
|
|
@@ -3887,7 +3897,7 @@ function isAddressEqual(a, b) {
|
|
|
3887
3897
|
return a.toLowerCase() === b.toLowerCase();
|
|
3888
3898
|
}
|
|
3889
3899
|
|
|
3890
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3900
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
|
|
3891
3901
|
function decodeFunctionData(parameters) {
|
|
3892
3902
|
const { abi, data } = parameters;
|
|
3893
3903
|
const signature = slice(data, 0, 4);
|
|
@@ -3902,7 +3912,7 @@ function decodeFunctionData(parameters) {
|
|
|
3902
3912
|
};
|
|
3903
3913
|
}
|
|
3904
3914
|
|
|
3905
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3915
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
|
|
3906
3916
|
var docsPath4 = "/docs/contract/encodeErrorResult";
|
|
3907
3917
|
function encodeErrorResult(parameters) {
|
|
3908
3918
|
const { abi, errorName, args } = parameters;
|
|
@@ -3926,7 +3936,7 @@ function encodeErrorResult(parameters) {
|
|
|
3926
3936
|
return concatHex([signature, data]);
|
|
3927
3937
|
}
|
|
3928
3938
|
|
|
3929
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3939
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
|
|
3930
3940
|
var docsPath5 = "/docs/contract/encodeFunctionResult";
|
|
3931
3941
|
function encodeFunctionResult(parameters) {
|
|
3932
3942
|
const { abi, functionName, result } = parameters;
|
|
@@ -3953,7 +3963,7 @@ function encodeFunctionResult(parameters) {
|
|
|
3953
3963
|
return encodeAbiParameters(abiItem.outputs, values);
|
|
3954
3964
|
}
|
|
3955
3965
|
|
|
3956
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
3966
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
|
|
3957
3967
|
var localBatchGatewayUrl = "x-batch-gateway:true";
|
|
3958
3968
|
async function localBatchGatewayRequest(parameters) {
|
|
3959
3969
|
const { data, ccipRequest: ccipRequest2 } = parameters;
|
|
@@ -3989,7 +3999,7 @@ function encodeError(error) {
|
|
|
3989
3999
|
});
|
|
3990
4000
|
}
|
|
3991
4001
|
|
|
3992
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
4002
|
+
// ../../node_modules/.pnpm/viem@2.45.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/ccip.js
|
|
3993
4003
|
var offchainLookupSignature = "0x556f1830";
|
|
3994
4004
|
var offchainLookupAbiItem = {
|
|
3995
4005
|
name: "OffchainLookup",
|
|
@@ -4101,6 +4111,6 @@ async function ccipRequest({ data, sender, urls }) {
|
|
|
4101
4111
|
throw error;
|
|
4102
4112
|
}
|
|
4103
4113
|
|
|
4104
|
-
export { BaseError3 as BaseError, ccipRequest, formatEther, formatUnits, offchainLookup, offchainLookupAbiItem, offchainLookupSignature };
|
|
4105
|
-
//# sourceMappingURL=chunk-
|
|
4106
|
-
//# sourceMappingURL=chunk-
|
|
4114
|
+
export { BaseError3 as BaseError, ccipRequest, decodeAbiParameters, decodeFunctionResult, encodeFunctionData, formatEther, formatUnits, offchainLookup, offchainLookupAbiItem, offchainLookupSignature };
|
|
4115
|
+
//# sourceMappingURL=chunk-ODBGQEBG.js.map
|
|
4116
|
+
//# sourceMappingURL=chunk-ODBGQEBG.js.map
|