@zoralabs/protocol-deployments 0.1.11 → 0.1.12
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/.turbo/turbo-build.log +19 -19
- package/CHANGELOG.md +6 -0
- package/dist/{_esm-UK4OVIHX.js → _esm-ZN7ZVJVO.js} +495 -5
- package/dist/_esm-ZN7ZVJVO.js.map +1 -0
- package/dist/{ccip-XSYMJLYD.js → ccip-IGMHQQR7.js} +2 -2
- package/dist/{chunk-ANM5XPUU.js → chunk-KIPP2F4J.js} +153 -145
- package/dist/chunk-KIPP2F4J.js.map +1 -0
- package/dist/generated/1155.d.ts +1 -1
- package/dist/generated/mints.d.ts +38 -11
- package/dist/generated/mints.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +679 -0
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +392 -106
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +318 -43
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/generated/1155.ts +11 -11
- package/src/generated/mints.ts +42 -31
- package/src/generated/wagmi.ts +349 -0
- package/src/types.ts +2 -0
- package/dist/_esm-UK4OVIHX.js.map +0 -1
- package/dist/chunk-ANM5XPUU.js.map +0 -1
- /package/dist/{ccip-XSYMJLYD.js.map → ccip-IGMHQQR7.js.map} +0 -0
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
wrapXOFConstructorWithOpts
|
|
11
11
|
} from "./chunk-2FDPSBOH.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
13
|
+
// ../../node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
14
14
|
function parseAccount(account) {
|
|
15
15
|
if (typeof account === "string")
|
|
16
16
|
return { address: account, type: "json-rpc" };
|
|
17
17
|
return account;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// node_modules/viem/_esm/constants/abis.js
|
|
20
|
+
// ../../node_modules/viem/_esm/constants/abis.js
|
|
21
21
|
var multicall3Abi = [
|
|
22
22
|
{
|
|
23
23
|
inputs: [
|
|
@@ -169,17 +169,17 @@ var universalResolverReverseAbi = [
|
|
|
169
169
|
}
|
|
170
170
|
];
|
|
171
171
|
|
|
172
|
-
// node_modules/viem/_esm/constants/contract.js
|
|
172
|
+
// ../../node_modules/viem/_esm/constants/contract.js
|
|
173
173
|
var aggregate3Signature = "0x82ad56cb";
|
|
174
174
|
|
|
175
|
-
// node_modules/viem/_esm/errors/version.js
|
|
176
|
-
var version = "2.
|
|
175
|
+
// ../../node_modules/viem/_esm/errors/version.js
|
|
176
|
+
var version = "2.12.1";
|
|
177
177
|
|
|
178
|
-
// node_modules/viem/_esm/errors/utils.js
|
|
178
|
+
// ../../node_modules/viem/_esm/errors/utils.js
|
|
179
179
|
var getUrl = (url) => url;
|
|
180
180
|
var getVersion = () => `viem@${version}`;
|
|
181
181
|
|
|
182
|
-
// node_modules/viem/_esm/errors/base.js
|
|
182
|
+
// ../../node_modules/viem/_esm/errors/base.js
|
|
183
183
|
var BaseError = class _BaseError extends Error {
|
|
184
184
|
constructor(shortMessage, args = {}) {
|
|
185
185
|
super();
|
|
@@ -250,25 +250,7 @@ function walk(err, fn) {
|
|
|
250
250
|
return fn ? null : err;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
// node_modules/viem/_esm/errors/
|
|
254
|
-
var InvalidAddressError = class extends BaseError {
|
|
255
|
-
constructor({ address }) {
|
|
256
|
-
super(`Address "${address}" is invalid.`, {
|
|
257
|
-
metaMessages: [
|
|
258
|
-
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
259
|
-
"- Address must match its checksum counterpart."
|
|
260
|
-
]
|
|
261
|
-
});
|
|
262
|
-
Object.defineProperty(this, "name", {
|
|
263
|
-
enumerable: true,
|
|
264
|
-
configurable: true,
|
|
265
|
-
writable: true,
|
|
266
|
-
value: "InvalidAddressError"
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
// node_modules/viem/_esm/errors/chain.js
|
|
253
|
+
// ../../node_modules/viem/_esm/errors/chain.js
|
|
272
254
|
var ChainDoesNotSupportContract = class extends BaseError {
|
|
273
255
|
constructor({ blockNumber, chain, contract }) {
|
|
274
256
|
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
@@ -301,7 +283,7 @@ var ClientChainNotConfiguredError = class extends BaseError {
|
|
|
301
283
|
}
|
|
302
284
|
};
|
|
303
285
|
|
|
304
|
-
// node_modules/viem/_esm/constants/solidity.js
|
|
286
|
+
// ../../node_modules/viem/_esm/constants/solidity.js
|
|
305
287
|
var solidityError = {
|
|
306
288
|
inputs: [
|
|
307
289
|
{
|
|
@@ -323,7 +305,7 @@ var solidityPanic = {
|
|
|
323
305
|
type: "error"
|
|
324
306
|
};
|
|
325
307
|
|
|
326
|
-
// node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
308
|
+
// ../../node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
327
309
|
function formatAbiItem(abiItem, { includeName = false } = {}) {
|
|
328
310
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
329
311
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -341,7 +323,7 @@ function formatAbiParam(param, { includeName }) {
|
|
|
341
323
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
342
324
|
}
|
|
343
325
|
|
|
344
|
-
// node_modules/viem/_esm/utils/data/isHex.js
|
|
326
|
+
// ../../node_modules/viem/_esm/utils/data/isHex.js
|
|
345
327
|
function isHex(value, { strict = true } = {}) {
|
|
346
328
|
if (!value)
|
|
347
329
|
return false;
|
|
@@ -350,14 +332,14 @@ function isHex(value, { strict = true } = {}) {
|
|
|
350
332
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
351
333
|
}
|
|
352
334
|
|
|
353
|
-
// node_modules/viem/_esm/utils/data/size.js
|
|
335
|
+
// ../../node_modules/viem/_esm/utils/data/size.js
|
|
354
336
|
function size(value) {
|
|
355
337
|
if (isHex(value, { strict: false }))
|
|
356
338
|
return Math.ceil((value.length - 2) / 2);
|
|
357
339
|
return value.length;
|
|
358
340
|
}
|
|
359
341
|
|
|
360
|
-
// node_modules/viem/_esm/errors/abi.js
|
|
342
|
+
// ../../node_modules/viem/_esm/errors/abi.js
|
|
361
343
|
var AbiDecodingDataSizeTooSmallError = class extends BaseError {
|
|
362
344
|
constructor({ data, params, size: size2 }) {
|
|
363
345
|
super([`Data size of ${size2} bytes is too small for given parameters.`].join("\n"), {
|
|
@@ -577,7 +559,7 @@ var InvalidDefinitionTypeError = class extends BaseError {
|
|
|
577
559
|
}
|
|
578
560
|
};
|
|
579
561
|
|
|
580
|
-
// node_modules/viem/_esm/errors/data.js
|
|
562
|
+
// ../../node_modules/viem/_esm/errors/data.js
|
|
581
563
|
var SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
582
564
|
constructor({ offset, position, size: size2 }) {
|
|
583
565
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`);
|
|
@@ -612,7 +594,7 @@ var InvalidBytesLengthError = class extends BaseError {
|
|
|
612
594
|
}
|
|
613
595
|
};
|
|
614
596
|
|
|
615
|
-
// node_modules/viem/_esm/utils/data/slice.js
|
|
597
|
+
// ../../node_modules/viem/_esm/utils/data/slice.js
|
|
616
598
|
function slice(value, start, end, { strict } = {}) {
|
|
617
599
|
if (isHex(value, { strict: false }))
|
|
618
600
|
return sliceHex(value, start, end, {
|
|
@@ -654,7 +636,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
654
636
|
return value;
|
|
655
637
|
}
|
|
656
638
|
|
|
657
|
-
// node_modules/viem/_esm/utils/data/pad.js
|
|
639
|
+
// ../../node_modules/viem/_esm/utils/data/pad.js
|
|
658
640
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
659
641
|
if (typeof hexOrBytes === "string")
|
|
660
642
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -689,7 +671,7 @@ function padBytes(bytes2, { dir, size: size2 = 32 } = {}) {
|
|
|
689
671
|
return paddedBytes;
|
|
690
672
|
}
|
|
691
673
|
|
|
692
|
-
// node_modules/viem/_esm/errors/encoding.js
|
|
674
|
+
// ../../node_modules/viem/_esm/errors/encoding.js
|
|
693
675
|
var IntegerOutOfRangeError = class extends BaseError {
|
|
694
676
|
constructor({ max, min, signed, size: size2, value }) {
|
|
695
677
|
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`);
|
|
@@ -724,7 +706,7 @@ var SizeOverflowError = class extends BaseError {
|
|
|
724
706
|
}
|
|
725
707
|
};
|
|
726
708
|
|
|
727
|
-
// node_modules/viem/_esm/utils/data/trim.js
|
|
709
|
+
// ../../node_modules/viem/_esm/utils/data/trim.js
|
|
728
710
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
729
711
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
730
712
|
let sliceLength = 0;
|
|
@@ -743,7 +725,7 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
743
725
|
return data;
|
|
744
726
|
}
|
|
745
727
|
|
|
746
|
-
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
728
|
+
// ../../node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
747
729
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
748
730
|
if (size(hexOrBytes) > size2)
|
|
749
731
|
throw new SizeOverflowError({
|
|
@@ -768,7 +750,7 @@ function hexToNumber(hex, opts = {}) {
|
|
|
768
750
|
return Number(hexToBigInt(hex, opts));
|
|
769
751
|
}
|
|
770
752
|
|
|
771
|
-
// node_modules/viem/_esm/utils/encoding/toHex.js
|
|
753
|
+
// ../../node_modules/viem/_esm/utils/encoding/toHex.js
|
|
772
754
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
773
755
|
function toHex(value, opts = {}) {
|
|
774
756
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -834,7 +816,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
834
816
|
return bytesToHex(value, opts);
|
|
835
817
|
}
|
|
836
818
|
|
|
837
|
-
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
819
|
+
// ../../node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
838
820
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
839
821
|
function toBytes2(value, opts = {}) {
|
|
840
822
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -1107,7 +1089,7 @@ var genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts
|
|
|
1107
1089
|
var shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
|
|
1108
1090
|
var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
|
1109
1091
|
|
|
1110
|
-
// node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1092
|
+
// ../../node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1111
1093
|
function keccak256(value, to_) {
|
|
1112
1094
|
const to = to_ || "hex";
|
|
1113
1095
|
const bytes2 = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
|
|
@@ -1116,7 +1098,7 @@ function keccak256(value, to_) {
|
|
|
1116
1098
|
return toHex(bytes2);
|
|
1117
1099
|
}
|
|
1118
1100
|
|
|
1119
|
-
// node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1101
|
+
// ../../node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1120
1102
|
var hash = (value) => keccak256(toBytes2(value));
|
|
1121
1103
|
function hashSignature(sig) {
|
|
1122
1104
|
return hash(sig);
|
|
@@ -1183,7 +1165,7 @@ function formatAbiItem2(abiItem) {
|
|
|
1183
1165
|
return "receive() external payable";
|
|
1184
1166
|
}
|
|
1185
1167
|
|
|
1186
|
-
// node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1168
|
+
// ../../node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1187
1169
|
function normalizeSignature(signature) {
|
|
1188
1170
|
let active = true;
|
|
1189
1171
|
let current = "";
|
|
@@ -1227,7 +1209,7 @@ function normalizeSignature(signature) {
|
|
|
1227
1209
|
return result;
|
|
1228
1210
|
}
|
|
1229
1211
|
|
|
1230
|
-
// node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1212
|
+
// ../../node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1231
1213
|
var toSignature = (def) => {
|
|
1232
1214
|
const def_ = (() => {
|
|
1233
1215
|
if (typeof def === "string")
|
|
@@ -1237,15 +1219,33 @@ var toSignature = (def) => {
|
|
|
1237
1219
|
return normalizeSignature(def_);
|
|
1238
1220
|
};
|
|
1239
1221
|
|
|
1240
|
-
// node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1222
|
+
// ../../node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1241
1223
|
function toSignatureHash(fn) {
|
|
1242
1224
|
return hashSignature(toSignature(fn));
|
|
1243
1225
|
}
|
|
1244
1226
|
|
|
1245
|
-
// node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1227
|
+
// ../../node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1246
1228
|
var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
|
|
1247
1229
|
|
|
1248
|
-
// node_modules/viem/_esm/
|
|
1230
|
+
// ../../node_modules/viem/_esm/errors/address.js
|
|
1231
|
+
var InvalidAddressError = class extends BaseError {
|
|
1232
|
+
constructor({ address }) {
|
|
1233
|
+
super(`Address "${address}" is invalid.`, {
|
|
1234
|
+
metaMessages: [
|
|
1235
|
+
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
1236
|
+
"- Address must match its checksum counterpart."
|
|
1237
|
+
]
|
|
1238
|
+
});
|
|
1239
|
+
Object.defineProperty(this, "name", {
|
|
1240
|
+
enumerable: true,
|
|
1241
|
+
configurable: true,
|
|
1242
|
+
writable: true,
|
|
1243
|
+
value: "InvalidAddressError"
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
// ../../node_modules/viem/_esm/utils/lru.js
|
|
1249
1249
|
var LruMap = class extends Map {
|
|
1250
1250
|
constructor(size2) {
|
|
1251
1251
|
super();
|
|
@@ -1265,13 +1265,14 @@ var LruMap = class extends Map {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
-
// node_modules/viem/_esm/utils/address/isAddress.js
|
|
1268
|
+
// ../../node_modules/viem/_esm/utils/address/isAddress.js
|
|
1269
1269
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
1270
1270
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
1271
1271
|
function isAddress(address, options) {
|
|
1272
1272
|
const { strict = true } = options ?? {};
|
|
1273
|
-
|
|
1274
|
-
|
|
1273
|
+
const cacheKey = `${address}.${strict}`;
|
|
1274
|
+
if (isAddressCache.has(cacheKey))
|
|
1275
|
+
return isAddressCache.get(cacheKey);
|
|
1275
1276
|
const result = (() => {
|
|
1276
1277
|
if (!addressRegex.test(address))
|
|
1277
1278
|
return false;
|
|
@@ -1281,12 +1282,15 @@ function isAddress(address, options) {
|
|
|
1281
1282
|
return checksumAddress(address) === address;
|
|
1282
1283
|
return true;
|
|
1283
1284
|
})();
|
|
1284
|
-
isAddressCache.set(
|
|
1285
|
+
isAddressCache.set(cacheKey, result);
|
|
1285
1286
|
return result;
|
|
1286
1287
|
}
|
|
1287
1288
|
|
|
1288
|
-
// node_modules/viem/_esm/utils/address/getAddress.js
|
|
1289
|
+
// ../../node_modules/viem/_esm/utils/address/getAddress.js
|
|
1290
|
+
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
1289
1291
|
function checksumAddress(address_, chainId) {
|
|
1292
|
+
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1293
|
+
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
1290
1294
|
const hexAddress = chainId ? `${chainId}${address_.toLowerCase()}` : address_.substring(2).toLowerCase();
|
|
1291
1295
|
const hash2 = keccak256(stringToBytes(hexAddress), "bytes");
|
|
1292
1296
|
const address = (chainId ? hexAddress.substring(`${chainId}0x`.length) : hexAddress).split("");
|
|
@@ -1298,10 +1302,12 @@ function checksumAddress(address_, chainId) {
|
|
|
1298
1302
|
address[i + 1] = address[i + 1].toUpperCase();
|
|
1299
1303
|
}
|
|
1300
1304
|
}
|
|
1301
|
-
|
|
1305
|
+
const result = `0x${address.join("")}`;
|
|
1306
|
+
checksumAddressCache.set(`${address_}.${chainId}`, result);
|
|
1307
|
+
return result;
|
|
1302
1308
|
}
|
|
1303
1309
|
|
|
1304
|
-
// node_modules/viem/_esm/errors/cursor.js
|
|
1310
|
+
// ../../node_modules/viem/_esm/errors/cursor.js
|
|
1305
1311
|
var NegativeOffsetError = class extends BaseError {
|
|
1306
1312
|
constructor({ offset }) {
|
|
1307
1313
|
super(`Offset \`${offset}\` cannot be negative.`);
|
|
@@ -1336,14 +1342,14 @@ var RecursiveReadLimitExceededError = class extends BaseError {
|
|
|
1336
1342
|
}
|
|
1337
1343
|
};
|
|
1338
1344
|
|
|
1339
|
-
// node_modules/viem/_esm/utils/cursor.js
|
|
1345
|
+
// ../../node_modules/viem/_esm/utils/cursor.js
|
|
1340
1346
|
var staticCursor = {
|
|
1341
1347
|
bytes: new Uint8Array(),
|
|
1342
1348
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
1343
1349
|
position: 0,
|
|
1344
1350
|
positionReadCount: /* @__PURE__ */ new Map(),
|
|
1345
1351
|
recursiveReadCount: 0,
|
|
1346
|
-
recursiveReadLimit:
|
|
1352
|
+
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
1347
1353
|
assertReadLimit() {
|
|
1348
1354
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
1349
1355
|
throw new RecursiveReadLimitExceededError({
|
|
@@ -1488,7 +1494,7 @@ var staticCursor = {
|
|
|
1488
1494
|
return () => this.position = oldPosition;
|
|
1489
1495
|
},
|
|
1490
1496
|
_touch() {
|
|
1491
|
-
if (this.recursiveReadLimit ===
|
|
1497
|
+
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
1492
1498
|
return;
|
|
1493
1499
|
const count = this.getReadCount();
|
|
1494
1500
|
this.positionReadCount.set(this.position, count + 1);
|
|
@@ -1505,7 +1511,7 @@ function createCursor(bytes2, { recursiveReadLimit = 8192 } = {}) {
|
|
|
1505
1511
|
return cursor;
|
|
1506
1512
|
}
|
|
1507
1513
|
|
|
1508
|
-
// node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
1514
|
+
// ../../node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
1509
1515
|
function bytesToBigInt(bytes2, opts = {}) {
|
|
1510
1516
|
if (typeof opts.size !== "undefined")
|
|
1511
1517
|
assertSize(bytes2, { size: opts.size });
|
|
@@ -1537,7 +1543,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
1537
1543
|
return new TextDecoder().decode(bytes2);
|
|
1538
1544
|
}
|
|
1539
1545
|
|
|
1540
|
-
// node_modules/viem/_esm/utils/data/concat.js
|
|
1546
|
+
// ../../node_modules/viem/_esm/utils/data/concat.js
|
|
1541
1547
|
function concat(values) {
|
|
1542
1548
|
if (typeof values[0] === "string")
|
|
1543
1549
|
return concatHex(values);
|
|
@@ -1560,7 +1566,7 @@ function concatHex(values) {
|
|
|
1560
1566
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1561
1567
|
}
|
|
1562
1568
|
|
|
1563
|
-
// node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1569
|
+
// ../../node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1564
1570
|
function encodeAbiParameters(params, values) {
|
|
1565
1571
|
if (params.length !== values.length)
|
|
1566
1572
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -1693,9 +1699,9 @@ function encodeBytes(value, { param }) {
|
|
|
1693
1699
|
encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
|
|
1694
1700
|
};
|
|
1695
1701
|
}
|
|
1696
|
-
if (bytesSize !== parseInt(paramSize))
|
|
1702
|
+
if (bytesSize !== Number.parseInt(paramSize))
|
|
1697
1703
|
throw new AbiEncodingBytesSizeMismatchError({
|
|
1698
|
-
expectedSize: parseInt(paramSize),
|
|
1704
|
+
expectedSize: Number.parseInt(paramSize),
|
|
1699
1705
|
value
|
|
1700
1706
|
});
|
|
1701
1707
|
return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
|
|
@@ -1758,7 +1764,7 @@ function getArrayComponents(type) {
|
|
|
1758
1764
|
) : void 0;
|
|
1759
1765
|
}
|
|
1760
1766
|
|
|
1761
|
-
// node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
1767
|
+
// ../../node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
1762
1768
|
function decodeAbiParameters(params, data) {
|
|
1763
1769
|
const bytes2 = typeof data === "string" ? hexToBytes(data) : data;
|
|
1764
1770
|
const cursor = createCursor(bytes2);
|
|
@@ -1874,12 +1880,12 @@ function decodeBytes(cursor, param, { staticPosition }) {
|
|
|
1874
1880
|
cursor.setPosition(staticPosition + 32);
|
|
1875
1881
|
return [bytesToHex(data), 32];
|
|
1876
1882
|
}
|
|
1877
|
-
const value = bytesToHex(cursor.readBytes(parseInt(size2), 32));
|
|
1883
|
+
const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
|
|
1878
1884
|
return [value, 32];
|
|
1879
1885
|
}
|
|
1880
1886
|
function decodeNumber(cursor, param) {
|
|
1881
1887
|
const signed = param.type.startsWith("int");
|
|
1882
|
-
const size2 = parseInt(param.type.split("int")[1] || "256");
|
|
1888
|
+
const size2 = Number.parseInt(param.type.split("int")[1] || "256");
|
|
1883
1889
|
const value = cursor.readBytes(32);
|
|
1884
1890
|
return [
|
|
1885
1891
|
size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
|
|
@@ -1945,7 +1951,7 @@ function hasDynamicChild(param) {
|
|
|
1945
1951
|
return false;
|
|
1946
1952
|
}
|
|
1947
1953
|
|
|
1948
|
-
// node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
1954
|
+
// ../../node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
1949
1955
|
function decodeErrorResult(parameters) {
|
|
1950
1956
|
const { abi, data } = parameters;
|
|
1951
1957
|
const signature = slice(data, 0, 4);
|
|
@@ -1964,16 +1970,16 @@ function decodeErrorResult(parameters) {
|
|
|
1964
1970
|
};
|
|
1965
1971
|
}
|
|
1966
1972
|
|
|
1967
|
-
// node_modules/viem/_esm/utils/stringify.js
|
|
1973
|
+
// ../../node_modules/viem/_esm/utils/stringify.js
|
|
1968
1974
|
var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
1969
1975
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
1970
1976
|
return typeof replacer === "function" ? replacer(key, value2) : value2;
|
|
1971
1977
|
}, space);
|
|
1972
1978
|
|
|
1973
|
-
// node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1979
|
+
// ../../node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1974
1980
|
var toEventSelector = toSignatureHash;
|
|
1975
1981
|
|
|
1976
|
-
// node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1982
|
+
// ../../node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1977
1983
|
function getAbiItem(parameters) {
|
|
1978
1984
|
const { abi, args = [], name } = parameters;
|
|
1979
1985
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -2085,7 +2091,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
2085
2091
|
return;
|
|
2086
2092
|
}
|
|
2087
2093
|
|
|
2088
|
-
// node_modules/viem/_esm/constants/unit.js
|
|
2094
|
+
// ../../node_modules/viem/_esm/constants/unit.js
|
|
2089
2095
|
var etherUnits = {
|
|
2090
2096
|
gwei: 9,
|
|
2091
2097
|
wei: 18
|
|
@@ -2095,7 +2101,7 @@ var gweiUnits = {
|
|
|
2095
2101
|
wei: 9
|
|
2096
2102
|
};
|
|
2097
2103
|
|
|
2098
|
-
// node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
2104
|
+
// ../../node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
2099
2105
|
function formatUnits(value, decimals) {
|
|
2100
2106
|
let display = value.toString();
|
|
2101
2107
|
const negative = display.startsWith("-");
|
|
@@ -2110,17 +2116,17 @@ function formatUnits(value, decimals) {
|
|
|
2110
2116
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
2111
2117
|
}
|
|
2112
2118
|
|
|
2113
|
-
// node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2119
|
+
// ../../node_modules/viem/_esm/utils/unit/formatEther.js
|
|
2114
2120
|
function formatEther(wei, unit = "wei") {
|
|
2115
2121
|
return formatUnits(wei, etherUnits[unit]);
|
|
2116
2122
|
}
|
|
2117
2123
|
|
|
2118
|
-
// node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2124
|
+
// ../../node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
2119
2125
|
function formatGwei(wei, unit = "wei") {
|
|
2120
2126
|
return formatUnits(wei, gweiUnits[unit]);
|
|
2121
2127
|
}
|
|
2122
2128
|
|
|
2123
|
-
// node_modules/viem/_esm/errors/stateOverride.js
|
|
2129
|
+
// ../../node_modules/viem/_esm/errors/stateOverride.js
|
|
2124
2130
|
var AccountStateConflictError = class extends BaseError {
|
|
2125
2131
|
constructor({ address }) {
|
|
2126
2132
|
super(`State for account "${address}" is set multiple times.`);
|
|
@@ -2174,7 +2180,7 @@ function prettyStateOverride(stateOverride) {
|
|
|
2174
2180
|
}, " State Override:\n").slice(0, -1);
|
|
2175
2181
|
}
|
|
2176
2182
|
|
|
2177
|
-
// node_modules/viem/_esm/errors/transaction.js
|
|
2183
|
+
// ../../node_modules/viem/_esm/errors/transaction.js
|
|
2178
2184
|
function prettyPrint(args) {
|
|
2179
2185
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
2180
2186
|
if (value === void 0 || value === false)
|
|
@@ -2199,7 +2205,7 @@ var FeeConflictError = class extends BaseError {
|
|
|
2199
2205
|
}
|
|
2200
2206
|
};
|
|
2201
2207
|
|
|
2202
|
-
// node_modules/viem/_esm/errors/contract.js
|
|
2208
|
+
// ../../node_modules/viem/_esm/errors/contract.js
|
|
2203
2209
|
var CallExecutionError = class extends BaseError {
|
|
2204
2210
|
constructor(cause, { account: account_, docsPath: docsPath3, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
2205
2211
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -2267,7 +2273,7 @@ var RawContractError = class extends BaseError {
|
|
|
2267
2273
|
}
|
|
2268
2274
|
};
|
|
2269
2275
|
|
|
2270
|
-
// node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
2276
|
+
// ../../node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
2271
2277
|
var docsPath = "/docs/contract/decodeFunctionResult";
|
|
2272
2278
|
function decodeFunctionResult(parameters) {
|
|
2273
2279
|
const { abi, args, functionName, data } = parameters;
|
|
@@ -2290,7 +2296,7 @@ function decodeFunctionResult(parameters) {
|
|
|
2290
2296
|
return void 0;
|
|
2291
2297
|
}
|
|
2292
2298
|
|
|
2293
|
-
// node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
2299
|
+
// ../../node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
2294
2300
|
var docsPath2 = "/docs/contract/encodeFunctionData";
|
|
2295
2301
|
function prepareEncodeFunctionData(parameters) {
|
|
2296
2302
|
const { abi, args, functionName } = parameters;
|
|
@@ -2313,7 +2319,7 @@ function prepareEncodeFunctionData(parameters) {
|
|
|
2313
2319
|
};
|
|
2314
2320
|
}
|
|
2315
2321
|
|
|
2316
|
-
// node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
2322
|
+
// ../../node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
2317
2323
|
function encodeFunctionData(parameters) {
|
|
2318
2324
|
const { args } = parameters;
|
|
2319
2325
|
const { abi, functionName } = (() => {
|
|
@@ -2327,7 +2333,7 @@ function encodeFunctionData(parameters) {
|
|
|
2327
2333
|
return concatHex([signature, data ?? "0x"]);
|
|
2328
2334
|
}
|
|
2329
2335
|
|
|
2330
|
-
// node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
2336
|
+
// ../../node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
2331
2337
|
function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
2332
2338
|
const contract = chain?.contracts?.[name];
|
|
2333
2339
|
if (!contract)
|
|
@@ -2347,7 +2353,7 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
|
2347
2353
|
return contract.address;
|
|
2348
2354
|
}
|
|
2349
2355
|
|
|
2350
|
-
// node_modules/viem/_esm/errors/node.js
|
|
2356
|
+
// ../../node_modules/viem/_esm/errors/node.js
|
|
2351
2357
|
var ExecutionRevertedError = class extends BaseError {
|
|
2352
2358
|
constructor({ cause, message } = {}) {
|
|
2353
2359
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
@@ -2589,7 +2595,7 @@ var UnknownNodeError = class extends BaseError {
|
|
|
2589
2595
|
}
|
|
2590
2596
|
};
|
|
2591
2597
|
|
|
2592
|
-
// node_modules/viem/_esm/errors/request.js
|
|
2598
|
+
// ../../node_modules/viem/_esm/errors/request.js
|
|
2593
2599
|
var HttpRequestError = class extends BaseError {
|
|
2594
2600
|
constructor({ body, details, headers, status, url }) {
|
|
2595
2601
|
super("HTTP request failed.", {
|
|
@@ -2637,7 +2643,7 @@ var HttpRequestError = class extends BaseError {
|
|
|
2637
2643
|
}
|
|
2638
2644
|
};
|
|
2639
2645
|
|
|
2640
|
-
// node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
2646
|
+
// ../../node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
2641
2647
|
function getNodeError(err, args) {
|
|
2642
2648
|
const message = (err.details || "").toLowerCase();
|
|
2643
2649
|
const executionRevertedError = err instanceof BaseError ? err.walk((e) => e.code === ExecutionRevertedError.code) : err;
|
|
@@ -2687,7 +2693,7 @@ function getNodeError(err, args) {
|
|
|
2687
2693
|
});
|
|
2688
2694
|
}
|
|
2689
2695
|
|
|
2690
|
-
// node_modules/viem/_esm/utils/errors/getCallError.js
|
|
2696
|
+
// ../../node_modules/viem/_esm/utils/errors/getCallError.js
|
|
2691
2697
|
function getCallError(err, { docsPath: docsPath3, ...args }) {
|
|
2692
2698
|
const cause = (() => {
|
|
2693
2699
|
const cause2 = getNodeError(err, args);
|
|
@@ -2701,7 +2707,7 @@ function getCallError(err, { docsPath: docsPath3, ...args }) {
|
|
|
2701
2707
|
});
|
|
2702
2708
|
}
|
|
2703
2709
|
|
|
2704
|
-
// node_modules/viem/_esm/utils/formatters/extract.js
|
|
2710
|
+
// ../../node_modules/viem/_esm/utils/formatters/extract.js
|
|
2705
2711
|
function extract(value_, { format }) {
|
|
2706
2712
|
if (!format)
|
|
2707
2713
|
return {};
|
|
@@ -2720,7 +2726,7 @@ function extract(value_, { format }) {
|
|
|
2720
2726
|
return value;
|
|
2721
2727
|
}
|
|
2722
2728
|
|
|
2723
|
-
// node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
2729
|
+
// ../../node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
2724
2730
|
var rpcTransactionType = {
|
|
2725
2731
|
legacy: "0x0",
|
|
2726
2732
|
eip2930: "0x1",
|
|
@@ -2764,7 +2770,7 @@ function formatTransactionRequest(request) {
|
|
|
2764
2770
|
return rpcRequest;
|
|
2765
2771
|
}
|
|
2766
2772
|
|
|
2767
|
-
// node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
2773
|
+
// ../../node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
2768
2774
|
var schedulerCache = /* @__PURE__ */ new Map();
|
|
2769
2775
|
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
2770
2776
|
const exec = async () => {
|
|
@@ -2814,7 +2820,60 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
|
2814
2820
|
};
|
|
2815
2821
|
}
|
|
2816
2822
|
|
|
2817
|
-
// node_modules/viem/_esm/utils/
|
|
2823
|
+
// ../../node_modules/viem/_esm/utils/stateOverride.js
|
|
2824
|
+
function serializeStateMapping(stateMapping) {
|
|
2825
|
+
if (!stateMapping || stateMapping.length === 0)
|
|
2826
|
+
return void 0;
|
|
2827
|
+
return stateMapping.reduce((acc, { slot, value }) => {
|
|
2828
|
+
if (slot.length !== 66)
|
|
2829
|
+
throw new InvalidBytesLengthError({
|
|
2830
|
+
size: slot.length,
|
|
2831
|
+
targetSize: 66,
|
|
2832
|
+
type: "hex"
|
|
2833
|
+
});
|
|
2834
|
+
if (value.length !== 66)
|
|
2835
|
+
throw new InvalidBytesLengthError({
|
|
2836
|
+
size: value.length,
|
|
2837
|
+
targetSize: 66,
|
|
2838
|
+
type: "hex"
|
|
2839
|
+
});
|
|
2840
|
+
acc[slot] = value;
|
|
2841
|
+
return acc;
|
|
2842
|
+
}, {});
|
|
2843
|
+
}
|
|
2844
|
+
function serializeAccountStateOverride(parameters) {
|
|
2845
|
+
const { balance, nonce, state, stateDiff, code } = parameters;
|
|
2846
|
+
const rpcAccountStateOverride = {};
|
|
2847
|
+
if (code !== void 0)
|
|
2848
|
+
rpcAccountStateOverride.code = code;
|
|
2849
|
+
if (balance !== void 0)
|
|
2850
|
+
rpcAccountStateOverride.balance = numberToHex(balance);
|
|
2851
|
+
if (nonce !== void 0)
|
|
2852
|
+
rpcAccountStateOverride.nonce = numberToHex(nonce);
|
|
2853
|
+
if (state !== void 0)
|
|
2854
|
+
rpcAccountStateOverride.state = serializeStateMapping(state);
|
|
2855
|
+
if (stateDiff !== void 0) {
|
|
2856
|
+
if (rpcAccountStateOverride.state)
|
|
2857
|
+
throw new StateAssignmentConflictError();
|
|
2858
|
+
rpcAccountStateOverride.stateDiff = serializeStateMapping(stateDiff);
|
|
2859
|
+
}
|
|
2860
|
+
return rpcAccountStateOverride;
|
|
2861
|
+
}
|
|
2862
|
+
function serializeStateOverride(parameters) {
|
|
2863
|
+
if (!parameters)
|
|
2864
|
+
return void 0;
|
|
2865
|
+
const rpcStateOverride = {};
|
|
2866
|
+
for (const { address, ...accountState } of parameters) {
|
|
2867
|
+
if (!isAddress(address, { strict: false }))
|
|
2868
|
+
throw new InvalidAddressError({ address });
|
|
2869
|
+
if (rpcStateOverride[address])
|
|
2870
|
+
throw new AccountStateConflictError({ address });
|
|
2871
|
+
rpcStateOverride[address] = serializeAccountStateOverride(accountState);
|
|
2872
|
+
}
|
|
2873
|
+
return rpcStateOverride;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
// ../../node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
2818
2877
|
function assertRequest(args) {
|
|
2819
2878
|
const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
2820
2879
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -2830,7 +2889,7 @@ function assertRequest(args) {
|
|
|
2830
2889
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
2831
2890
|
}
|
|
2832
2891
|
|
|
2833
|
-
// node_modules/viem/_esm/actions/public/call.js
|
|
2892
|
+
// ../../node_modules/viem/_esm/actions/public/call.js
|
|
2834
2893
|
async function call(client, args) {
|
|
2835
2894
|
const { account: account_ = client.account, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
|
|
2836
2895
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -2838,7 +2897,7 @@ async function call(client, args) {
|
|
|
2838
2897
|
assertRequest(args);
|
|
2839
2898
|
const blockNumberHex = blockNumber ? numberToHex(blockNumber) : void 0;
|
|
2840
2899
|
const block = blockNumberHex || blockTag;
|
|
2841
|
-
const rpcStateOverride =
|
|
2900
|
+
const rpcStateOverride = serializeStateOverride(stateOverride);
|
|
2842
2901
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
|
2843
2902
|
const format = chainFormat || formatTransactionRequest;
|
|
2844
2903
|
const request = format({
|
|
@@ -2882,7 +2941,7 @@ async function call(client, args) {
|
|
|
2882
2941
|
return { data: response };
|
|
2883
2942
|
} catch (err) {
|
|
2884
2943
|
const data2 = getRevertErrorData(err);
|
|
2885
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
2944
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-IGMHQQR7.js");
|
|
2886
2945
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
2887
2946
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
2888
2947
|
throw getCallError(err, {
|
|
@@ -2968,59 +3027,8 @@ function getRevertErrorData(err) {
|
|
|
2968
3027
|
const error = err.walk();
|
|
2969
3028
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
2970
3029
|
}
|
|
2971
|
-
function parseStateMapping(stateMapping) {
|
|
2972
|
-
if (!stateMapping || stateMapping.length === 0)
|
|
2973
|
-
return void 0;
|
|
2974
|
-
return stateMapping.reduce((acc, { slot, value }) => {
|
|
2975
|
-
if (slot.length !== 66)
|
|
2976
|
-
throw new InvalidBytesLengthError({
|
|
2977
|
-
size: slot.length,
|
|
2978
|
-
targetSize: 66,
|
|
2979
|
-
type: "hex"
|
|
2980
|
-
});
|
|
2981
|
-
if (value.length !== 66)
|
|
2982
|
-
throw new InvalidBytesLengthError({
|
|
2983
|
-
size: value.length,
|
|
2984
|
-
targetSize: 66,
|
|
2985
|
-
type: "hex"
|
|
2986
|
-
});
|
|
2987
|
-
acc[slot] = value;
|
|
2988
|
-
return acc;
|
|
2989
|
-
}, {});
|
|
2990
|
-
}
|
|
2991
|
-
function parseAccountStateOverride(args) {
|
|
2992
|
-
const { balance, nonce, state, stateDiff, code } = args;
|
|
2993
|
-
const rpcAccountStateOverride = {};
|
|
2994
|
-
if (code !== void 0)
|
|
2995
|
-
rpcAccountStateOverride.code = code;
|
|
2996
|
-
if (balance !== void 0)
|
|
2997
|
-
rpcAccountStateOverride.balance = numberToHex(balance);
|
|
2998
|
-
if (nonce !== void 0)
|
|
2999
|
-
rpcAccountStateOverride.nonce = numberToHex(nonce);
|
|
3000
|
-
if (state !== void 0)
|
|
3001
|
-
rpcAccountStateOverride.state = parseStateMapping(state);
|
|
3002
|
-
if (stateDiff !== void 0) {
|
|
3003
|
-
if (rpcAccountStateOverride.state)
|
|
3004
|
-
throw new StateAssignmentConflictError();
|
|
3005
|
-
rpcAccountStateOverride.stateDiff = parseStateMapping(stateDiff);
|
|
3006
|
-
}
|
|
3007
|
-
return rpcAccountStateOverride;
|
|
3008
|
-
}
|
|
3009
|
-
function parseStateOverride(args) {
|
|
3010
|
-
if (!args)
|
|
3011
|
-
return void 0;
|
|
3012
|
-
const rpcStateOverride = {};
|
|
3013
|
-
for (const { address, ...accountState } of args) {
|
|
3014
|
-
if (!isAddress(address, { strict: false }))
|
|
3015
|
-
throw new InvalidAddressError({ address });
|
|
3016
|
-
if (rpcStateOverride[address])
|
|
3017
|
-
throw new AccountStateConflictError({ address });
|
|
3018
|
-
rpcStateOverride[address] = parseAccountStateOverride(accountState);
|
|
3019
|
-
}
|
|
3020
|
-
return rpcStateOverride;
|
|
3021
|
-
}
|
|
3022
3030
|
|
|
3023
|
-
// node_modules/viem/_esm/errors/ccip.js
|
|
3031
|
+
// ../../node_modules/viem/_esm/errors/ccip.js
|
|
3024
3032
|
var OffchainLookupError = class extends BaseError {
|
|
3025
3033
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
3026
3034
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -3080,7 +3088,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError {
|
|
|
3080
3088
|
}
|
|
3081
3089
|
};
|
|
3082
3090
|
|
|
3083
|
-
// node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3091
|
+
// ../../node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
3084
3092
|
function isAddressEqual(a, b) {
|
|
3085
3093
|
if (!isAddress(a, { strict: false }))
|
|
3086
3094
|
throw new InvalidAddressError({ address: a });
|
|
@@ -3089,7 +3097,7 @@ function isAddressEqual(a, b) {
|
|
|
3089
3097
|
return a.toLowerCase() === b.toLowerCase();
|
|
3090
3098
|
}
|
|
3091
3099
|
|
|
3092
|
-
// node_modules/viem/_esm/utils/ccip.js
|
|
3100
|
+
// ../../node_modules/viem/_esm/utils/ccip.js
|
|
3093
3101
|
var offchainLookupSignature = "0x556f1830";
|
|
3094
3102
|
var offchainLookupAbiItem = {
|
|
3095
3103
|
name: "OffchainLookup",
|
|
@@ -3206,4 +3214,4 @@ export {
|
|
|
3206
3214
|
offchainLookup,
|
|
3207
3215
|
ccipRequest
|
|
3208
3216
|
};
|
|
3209
|
-
//# sourceMappingURL=chunk-
|
|
3217
|
+
//# sourceMappingURL=chunk-KIPP2F4J.js.map
|