@inco/js 0.1.20 → 0.1.22
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/README.md +86 -30
- package/dist/encryption/index.cjs +1745 -35
- package/dist/encryption/index.mjs +1745 -35
- package/dist/generated/abis/addTwo.d.ts +8 -0
- package/dist/generated/abis/index.cjs +11 -0
- package/dist/generated/abis/index.mjs +11 -0
- package/dist/generated/lightning.d.ts +252 -6
- package/dist/index.cjs +1992 -35
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1992 -35
- package/dist/lite/index.cjs +2068 -87
- package/dist/lite/index.mjs +5767 -3724
- package/dist/lite/reencrypt.d.ts +2 -2
- package/dist/local/index.cjs +31 -878
- package/dist/local/index.mjs +5358 -6142
- package/dist/local/local-node.d.ts +1 -2
- package/dist/reencryption/index.cjs +2034 -66
- package/dist/reencryption/index.mjs +2034 -66
- package/dist/viem.d.ts +53 -52
- package/package.json +1 -1
@@ -48,7 +48,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
48
48
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
49
49
|
});
|
50
50
|
|
51
|
-
//
|
51
|
+
// node_modules/viem/_esm/utils/data/isHex.js
|
52
52
|
function isHex(value6, { strict: strict2 = true } = {}) {
|
53
53
|
if (!value6)
|
54
54
|
return false;
|
@@ -57,18 +57,19 @@ function isHex(value6, { strict: strict2 = true } = {}) {
|
|
57
57
|
return strict2 ? /^0x[0-9a-fA-F]*$/.test(value6) : value6.startsWith("0x");
|
58
58
|
}
|
59
59
|
|
60
|
-
//
|
60
|
+
// node_modules/viem/_esm/utils/data/size.js
|
61
61
|
function size21(value6) {
|
62
62
|
if (isHex(value6, { strict: false }))
|
63
63
|
return Math.ceil((value6.length - 2) / 2);
|
64
64
|
return value6.length;
|
65
65
|
}
|
66
|
-
var init_size = () => {
|
66
|
+
var init_size = () => {
|
67
|
+
};
|
67
68
|
|
68
|
-
//
|
69
|
-
var version = "2.
|
69
|
+
// node_modules/viem/_esm/errors/version.js
|
70
|
+
var version = "2.22.23";
|
70
71
|
|
71
|
-
//
|
72
|
+
// node_modules/viem/_esm/errors/base.js
|
72
73
|
function walk(err, fn) {
|
73
74
|
if (fn?.(err))
|
74
75
|
return err;
|
@@ -156,7 +157,7 @@ var init_base = __esm(() => {
|
|
156
157
|
};
|
157
158
|
});
|
158
159
|
|
159
|
-
//
|
160
|
+
// node_modules/viem/_esm/errors/abi.js
|
160
161
|
var AbiEncodingLengthMismatchError, BytesSizeMismatchError, UnsupportedPackedAbiType;
|
161
162
|
var init_abi = __esm(() => {
|
162
163
|
init_base();
|
@@ -186,10 +187,15 @@ var init_abi = __esm(() => {
|
|
186
187
|
};
|
187
188
|
});
|
188
189
|
|
189
|
-
//
|
190
|
-
var SizeExceedsPaddingSizeError;
|
190
|
+
// node_modules/viem/_esm/errors/data.js
|
191
|
+
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
191
192
|
var init_data = __esm(() => {
|
192
193
|
init_base();
|
194
|
+
SliceOffsetOutOfBoundsError = class SliceOffsetOutOfBoundsError extends BaseError {
|
195
|
+
constructor({ offset, position, size: size22 }) {
|
196
|
+
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size22}).`, { name: "SliceOffsetOutOfBoundsError" });
|
197
|
+
}
|
198
|
+
};
|
193
199
|
SizeExceedsPaddingSizeError = class SizeExceedsPaddingSizeError extends BaseError {
|
194
200
|
constructor({ size: size22, targetSize, type: type2 }) {
|
195
201
|
super(`${type2.charAt(0).toUpperCase()}${type2.slice(1).toLowerCase()} size (${size22}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
@@ -197,7 +203,7 @@ var init_data = __esm(() => {
|
|
197
203
|
};
|
198
204
|
});
|
199
205
|
|
200
|
-
//
|
206
|
+
// node_modules/viem/_esm/utils/data/pad.js
|
201
207
|
function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
|
202
208
|
if (typeof hexOrBytes === "string")
|
203
209
|
return padHex(hexOrBytes, { dir: dir2, size: size22 });
|
@@ -235,7 +241,7 @@ var init_pad = __esm(() => {
|
|
235
241
|
init_data();
|
236
242
|
});
|
237
243
|
|
238
|
-
//
|
244
|
+
// node_modules/viem/_esm/errors/encoding.js
|
239
245
|
var IntegerOutOfRangeError, SizeOverflowError;
|
240
246
|
var init_encoding = __esm(() => {
|
241
247
|
init_base();
|
@@ -251,7 +257,26 @@ var init_encoding = __esm(() => {
|
|
251
257
|
};
|
252
258
|
});
|
253
259
|
|
254
|
-
//
|
260
|
+
// node_modules/viem/_esm/utils/data/trim.js
|
261
|
+
function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
|
262
|
+
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
263
|
+
let sliceLength = 0;
|
264
|
+
for (let i = 0;i < data.length - 1; i++) {
|
265
|
+
if (data[dir2 === "left" ? i : data.length - i - 1].toString() === "0")
|
266
|
+
sliceLength++;
|
267
|
+
else
|
268
|
+
break;
|
269
|
+
}
|
270
|
+
data = dir2 === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
|
271
|
+
if (typeof hexOrBytes === "string") {
|
272
|
+
if (data.length === 1 && dir2 === "right")
|
273
|
+
data = `${data}0`;
|
274
|
+
return `0x${data.length % 2 === 1 ? `0${data}` : data}`;
|
275
|
+
}
|
276
|
+
return data;
|
277
|
+
}
|
278
|
+
|
279
|
+
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
255
280
|
function assertSize(hexOrBytes, { size: size22 }) {
|
256
281
|
if (size21(hexOrBytes) > size22)
|
257
282
|
throw new SizeOverflowError({
|
@@ -259,12 +284,28 @@ function assertSize(hexOrBytes, { size: size22 }) {
|
|
259
284
|
maxSize: size22
|
260
285
|
});
|
261
286
|
}
|
287
|
+
function hexToBigInt(hex, opts = {}) {
|
288
|
+
const { signed } = opts;
|
289
|
+
if (opts.size)
|
290
|
+
assertSize(hex, { size: opts.size });
|
291
|
+
const value6 = BigInt(hex);
|
292
|
+
if (!signed)
|
293
|
+
return value6;
|
294
|
+
const size22 = (hex.length - 2) / 2;
|
295
|
+
const max6 = (1n << BigInt(size22) * 8n - 1n) - 1n;
|
296
|
+
if (value6 <= max6)
|
297
|
+
return value6;
|
298
|
+
return value6 - BigInt(`0x${"f".padStart(size22 * 2, "f")}`) - 1n;
|
299
|
+
}
|
300
|
+
function hexToNumber(hex, opts = {}) {
|
301
|
+
return Number(hexToBigInt(hex, opts));
|
302
|
+
}
|
262
303
|
var init_fromHex = __esm(() => {
|
263
304
|
init_encoding();
|
264
305
|
init_size();
|
265
306
|
});
|
266
307
|
|
267
|
-
//
|
308
|
+
// node_modules/viem/_esm/utils/encoding/toHex.js
|
268
309
|
function toHex(value6, opts = {}) {
|
269
310
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
270
311
|
return numberToHex(value6, opts);
|
@@ -336,7 +377,7 @@ var init_toHex = __esm(() => {
|
|
336
377
|
encoder2 = /* @__PURE__ */ new TextEncoder;
|
337
378
|
});
|
338
379
|
|
339
|
-
//
|
380
|
+
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
340
381
|
function toBytes(value6, opts = {}) {
|
341
382
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
342
383
|
return numberToBytes(value6, opts);
|
@@ -441,7 +482,8 @@ function aoutput(out, instance) {
|
|
441
482
|
throw new Error("digestInto() expects output buffer of length at least " + min4);
|
442
483
|
}
|
443
484
|
}
|
444
|
-
var init__assert = () => {
|
485
|
+
var init__assert = () => {
|
486
|
+
};
|
445
487
|
|
446
488
|
// ../node_modules/@noble/hashes/esm/_u64.js
|
447
489
|
function fromBig(n, le = false) {
|
@@ -468,6 +510,12 @@ var init__u64 = __esm(() => {
|
|
468
510
|
function u32(arr) {
|
469
511
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
470
512
|
}
|
513
|
+
function createView(arr) {
|
514
|
+
return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
|
515
|
+
}
|
516
|
+
function rotr(word, shift2) {
|
517
|
+
return word << 32 - shift2 | word >>> shift2;
|
518
|
+
}
|
471
519
|
function byteSwap(word) {
|
472
520
|
return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
473
521
|
}
|
@@ -703,7 +751,7 @@ var init_sha3 = __esm(() => {
|
|
703
751
|
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
704
752
|
});
|
705
753
|
|
706
|
-
//
|
754
|
+
// node_modules/viem/_esm/utils/hash/keccak256.js
|
707
755
|
function keccak256(value6, to_) {
|
708
756
|
const to = to_ || "hex";
|
709
757
|
const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
@@ -717,7 +765,7 @@ var init_keccak256 = __esm(() => {
|
|
717
765
|
init_toHex();
|
718
766
|
});
|
719
767
|
|
720
|
-
//
|
768
|
+
// node_modules/viem/_esm/errors/address.js
|
721
769
|
var InvalidAddressError;
|
722
770
|
var init_address = __esm(() => {
|
723
771
|
init_base();
|
@@ -734,7 +782,7 @@ var init_address = __esm(() => {
|
|
734
782
|
};
|
735
783
|
});
|
736
784
|
|
737
|
-
//
|
785
|
+
// node_modules/viem/_esm/utils/lru.js
|
738
786
|
var LruMap;
|
739
787
|
var init_lru = __esm(() => {
|
740
788
|
LruMap = class LruMap extends Map {
|
@@ -768,7 +816,7 @@ var init_lru = __esm(() => {
|
|
768
816
|
};
|
769
817
|
});
|
770
818
|
|
771
|
-
//
|
819
|
+
// node_modules/viem/_esm/utils/address/getAddress.js
|
772
820
|
function checksumAddress(address_, chainId) {
|
773
821
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
774
822
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
@@ -795,7 +843,7 @@ var init_getAddress = __esm(() => {
|
|
795
843
|
checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
796
844
|
});
|
797
845
|
|
798
|
-
//
|
846
|
+
// node_modules/viem/_esm/utils/address/isAddress.js
|
799
847
|
function isAddress(address, options) {
|
800
848
|
const { strict: strict2 = true } = options ?? {};
|
801
849
|
const cacheKey = `${address}.${strict2}`;
|
@@ -821,12 +869,58 @@ var init_isAddress = __esm(() => {
|
|
821
869
|
isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
822
870
|
});
|
823
871
|
|
824
|
-
//
|
872
|
+
// node_modules/viem/_esm/utils/data/concat.js
|
825
873
|
function concatHex(values7) {
|
826
874
|
return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
827
875
|
}
|
828
876
|
|
829
|
-
//
|
877
|
+
// node_modules/viem/_esm/utils/data/slice.js
|
878
|
+
function slice(value6, start5, end6, { strict: strict2 } = {}) {
|
879
|
+
if (isHex(value6, { strict: false }))
|
880
|
+
return sliceHex(value6, start5, end6, {
|
881
|
+
strict: strict2
|
882
|
+
});
|
883
|
+
return sliceBytes(value6, start5, end6, {
|
884
|
+
strict: strict2
|
885
|
+
});
|
886
|
+
}
|
887
|
+
function assertStartOffset(value6, start5) {
|
888
|
+
if (typeof start5 === "number" && start5 > 0 && start5 > size21(value6) - 1)
|
889
|
+
throw new SliceOffsetOutOfBoundsError({
|
890
|
+
offset: start5,
|
891
|
+
position: "start",
|
892
|
+
size: size21(value6)
|
893
|
+
});
|
894
|
+
}
|
895
|
+
function assertEndOffset(value6, start5, end6) {
|
896
|
+
if (typeof start5 === "number" && typeof end6 === "number" && size21(value6) !== end6 - start5) {
|
897
|
+
throw new SliceOffsetOutOfBoundsError({
|
898
|
+
offset: end6,
|
899
|
+
position: "end",
|
900
|
+
size: size21(value6)
|
901
|
+
});
|
902
|
+
}
|
903
|
+
}
|
904
|
+
function sliceBytes(value_, start5, end6, { strict: strict2 } = {}) {
|
905
|
+
assertStartOffset(value_, start5);
|
906
|
+
const value6 = value_.slice(start5, end6);
|
907
|
+
if (strict2)
|
908
|
+
assertEndOffset(value6, start5, end6);
|
909
|
+
return value6;
|
910
|
+
}
|
911
|
+
function sliceHex(value_, start5, end6, { strict: strict2 } = {}) {
|
912
|
+
assertStartOffset(value_, start5);
|
913
|
+
const value6 = `0x${value_.replace("0x", "").slice((start5 ?? 0) * 2, (end6 ?? value_.length) * 2)}`;
|
914
|
+
if (strict2)
|
915
|
+
assertEndOffset(value6, start5, end6);
|
916
|
+
return value6;
|
917
|
+
}
|
918
|
+
var init_slice = __esm(() => {
|
919
|
+
init_data();
|
920
|
+
init_size();
|
921
|
+
});
|
922
|
+
|
923
|
+
// node_modules/viem/_esm/utils/regex.js
|
830
924
|
var arrayRegex, bytesRegex, integerRegex;
|
831
925
|
var init_regex = __esm(() => {
|
832
926
|
arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
@@ -834,6 +928,861 @@ var init_regex = __esm(() => {
|
|
834
928
|
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)?$/;
|
835
929
|
});
|
836
930
|
|
931
|
+
// node_modules/viem/_esm/errors/cursor.js
|
932
|
+
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
933
|
+
var init_cursor = __esm(() => {
|
934
|
+
init_base();
|
935
|
+
NegativeOffsetError = class NegativeOffsetError extends BaseError {
|
936
|
+
constructor({ offset }) {
|
937
|
+
super(`Offset \`${offset}\` cannot be negative.`, {
|
938
|
+
name: "NegativeOffsetError"
|
939
|
+
});
|
940
|
+
}
|
941
|
+
};
|
942
|
+
PositionOutOfBoundsError = class PositionOutOfBoundsError extends BaseError {
|
943
|
+
constructor({ length: length4, position }) {
|
944
|
+
super(`Position \`${position}\` is out of bounds (\`0 < position < ${length4}\`).`, { name: "PositionOutOfBoundsError" });
|
945
|
+
}
|
946
|
+
};
|
947
|
+
RecursiveReadLimitExceededError = class RecursiveReadLimitExceededError extends BaseError {
|
948
|
+
constructor({ count: count5, limit }) {
|
949
|
+
super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count5}\`).`, { name: "RecursiveReadLimitExceededError" });
|
950
|
+
}
|
951
|
+
};
|
952
|
+
});
|
953
|
+
|
954
|
+
// node_modules/viem/_esm/utils/cursor.js
|
955
|
+
function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
956
|
+
const cursor = Object.create(staticCursor);
|
957
|
+
cursor.bytes = bytes;
|
958
|
+
cursor.dataView = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
959
|
+
cursor.positionReadCount = new Map;
|
960
|
+
cursor.recursiveReadLimit = recursiveReadLimit;
|
961
|
+
return cursor;
|
962
|
+
}
|
963
|
+
var staticCursor;
|
964
|
+
var init_cursor2 = __esm(() => {
|
965
|
+
init_cursor();
|
966
|
+
staticCursor = {
|
967
|
+
bytes: new Uint8Array,
|
968
|
+
dataView: new DataView(new ArrayBuffer(0)),
|
969
|
+
position: 0,
|
970
|
+
positionReadCount: new Map,
|
971
|
+
recursiveReadCount: 0,
|
972
|
+
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
973
|
+
assertReadLimit() {
|
974
|
+
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
975
|
+
throw new RecursiveReadLimitExceededError({
|
976
|
+
count: this.recursiveReadCount + 1,
|
977
|
+
limit: this.recursiveReadLimit
|
978
|
+
});
|
979
|
+
},
|
980
|
+
assertPosition(position) {
|
981
|
+
if (position < 0 || position > this.bytes.length - 1)
|
982
|
+
throw new PositionOutOfBoundsError({
|
983
|
+
length: this.bytes.length,
|
984
|
+
position
|
985
|
+
});
|
986
|
+
},
|
987
|
+
decrementPosition(offset) {
|
988
|
+
if (offset < 0)
|
989
|
+
throw new NegativeOffsetError({ offset });
|
990
|
+
const position = this.position - offset;
|
991
|
+
this.assertPosition(position);
|
992
|
+
this.position = position;
|
993
|
+
},
|
994
|
+
getReadCount(position) {
|
995
|
+
return this.positionReadCount.get(position || this.position) || 0;
|
996
|
+
},
|
997
|
+
incrementPosition(offset) {
|
998
|
+
if (offset < 0)
|
999
|
+
throw new NegativeOffsetError({ offset });
|
1000
|
+
const position = this.position + offset;
|
1001
|
+
this.assertPosition(position);
|
1002
|
+
this.position = position;
|
1003
|
+
},
|
1004
|
+
inspectByte(position_) {
|
1005
|
+
const position = position_ ?? this.position;
|
1006
|
+
this.assertPosition(position);
|
1007
|
+
return this.bytes[position];
|
1008
|
+
},
|
1009
|
+
inspectBytes(length4, position_) {
|
1010
|
+
const position = position_ ?? this.position;
|
1011
|
+
this.assertPosition(position + length4 - 1);
|
1012
|
+
return this.bytes.subarray(position, position + length4);
|
1013
|
+
},
|
1014
|
+
inspectUint8(position_) {
|
1015
|
+
const position = position_ ?? this.position;
|
1016
|
+
this.assertPosition(position);
|
1017
|
+
return this.bytes[position];
|
1018
|
+
},
|
1019
|
+
inspectUint16(position_) {
|
1020
|
+
const position = position_ ?? this.position;
|
1021
|
+
this.assertPosition(position + 1);
|
1022
|
+
return this.dataView.getUint16(position);
|
1023
|
+
},
|
1024
|
+
inspectUint24(position_) {
|
1025
|
+
const position = position_ ?? this.position;
|
1026
|
+
this.assertPosition(position + 2);
|
1027
|
+
return (this.dataView.getUint16(position) << 8) + this.dataView.getUint8(position + 2);
|
1028
|
+
},
|
1029
|
+
inspectUint32(position_) {
|
1030
|
+
const position = position_ ?? this.position;
|
1031
|
+
this.assertPosition(position + 3);
|
1032
|
+
return this.dataView.getUint32(position);
|
1033
|
+
},
|
1034
|
+
pushByte(byte) {
|
1035
|
+
this.assertPosition(this.position);
|
1036
|
+
this.bytes[this.position] = byte;
|
1037
|
+
this.position++;
|
1038
|
+
},
|
1039
|
+
pushBytes(bytes) {
|
1040
|
+
this.assertPosition(this.position + bytes.length - 1);
|
1041
|
+
this.bytes.set(bytes, this.position);
|
1042
|
+
this.position += bytes.length;
|
1043
|
+
},
|
1044
|
+
pushUint8(value6) {
|
1045
|
+
this.assertPosition(this.position);
|
1046
|
+
this.bytes[this.position] = value6;
|
1047
|
+
this.position++;
|
1048
|
+
},
|
1049
|
+
pushUint16(value6) {
|
1050
|
+
this.assertPosition(this.position + 1);
|
1051
|
+
this.dataView.setUint16(this.position, value6);
|
1052
|
+
this.position += 2;
|
1053
|
+
},
|
1054
|
+
pushUint24(value6) {
|
1055
|
+
this.assertPosition(this.position + 2);
|
1056
|
+
this.dataView.setUint16(this.position, value6 >> 8);
|
1057
|
+
this.dataView.setUint8(this.position + 2, value6 & ~4294967040);
|
1058
|
+
this.position += 3;
|
1059
|
+
},
|
1060
|
+
pushUint32(value6) {
|
1061
|
+
this.assertPosition(this.position + 3);
|
1062
|
+
this.dataView.setUint32(this.position, value6);
|
1063
|
+
this.position += 4;
|
1064
|
+
},
|
1065
|
+
readByte() {
|
1066
|
+
this.assertReadLimit();
|
1067
|
+
this._touch();
|
1068
|
+
const value6 = this.inspectByte();
|
1069
|
+
this.position++;
|
1070
|
+
return value6;
|
1071
|
+
},
|
1072
|
+
readBytes(length4, size22) {
|
1073
|
+
this.assertReadLimit();
|
1074
|
+
this._touch();
|
1075
|
+
const value6 = this.inspectBytes(length4);
|
1076
|
+
this.position += size22 ?? length4;
|
1077
|
+
return value6;
|
1078
|
+
},
|
1079
|
+
readUint8() {
|
1080
|
+
this.assertReadLimit();
|
1081
|
+
this._touch();
|
1082
|
+
const value6 = this.inspectUint8();
|
1083
|
+
this.position += 1;
|
1084
|
+
return value6;
|
1085
|
+
},
|
1086
|
+
readUint16() {
|
1087
|
+
this.assertReadLimit();
|
1088
|
+
this._touch();
|
1089
|
+
const value6 = this.inspectUint16();
|
1090
|
+
this.position += 2;
|
1091
|
+
return value6;
|
1092
|
+
},
|
1093
|
+
readUint24() {
|
1094
|
+
this.assertReadLimit();
|
1095
|
+
this._touch();
|
1096
|
+
const value6 = this.inspectUint24();
|
1097
|
+
this.position += 3;
|
1098
|
+
return value6;
|
1099
|
+
},
|
1100
|
+
readUint32() {
|
1101
|
+
this.assertReadLimit();
|
1102
|
+
this._touch();
|
1103
|
+
const value6 = this.inspectUint32();
|
1104
|
+
this.position += 4;
|
1105
|
+
return value6;
|
1106
|
+
},
|
1107
|
+
get remaining() {
|
1108
|
+
return this.bytes.length - this.position;
|
1109
|
+
},
|
1110
|
+
setPosition(position) {
|
1111
|
+
const oldPosition = this.position;
|
1112
|
+
this.assertPosition(position);
|
1113
|
+
this.position = position;
|
1114
|
+
return () => this.position = oldPosition;
|
1115
|
+
},
|
1116
|
+
_touch() {
|
1117
|
+
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
1118
|
+
return;
|
1119
|
+
const count5 = this.getReadCount();
|
1120
|
+
this.positionReadCount.set(this.position, count5 + 1);
|
1121
|
+
if (count5 > 0)
|
1122
|
+
this.recursiveReadCount++;
|
1123
|
+
}
|
1124
|
+
};
|
1125
|
+
});
|
1126
|
+
|
1127
|
+
// node_modules/viem/_esm/constants/unit.js
|
1128
|
+
var gweiUnits;
|
1129
|
+
var init_unit = __esm(() => {
|
1130
|
+
gweiUnits = {
|
1131
|
+
ether: -9,
|
1132
|
+
wei: 9
|
1133
|
+
};
|
1134
|
+
});
|
1135
|
+
|
1136
|
+
// node_modules/viem/_esm/utils/unit/formatUnits.js
|
1137
|
+
function formatUnits(value6, decimals) {
|
1138
|
+
let display = value6.toString();
|
1139
|
+
const negative2 = display.startsWith("-");
|
1140
|
+
if (negative2)
|
1141
|
+
display = display.slice(1);
|
1142
|
+
display = display.padStart(decimals, "0");
|
1143
|
+
let [integer3, fraction] = [
|
1144
|
+
display.slice(0, display.length - decimals),
|
1145
|
+
display.slice(display.length - decimals)
|
1146
|
+
];
|
1147
|
+
fraction = fraction.replace(/(0+)$/, "");
|
1148
|
+
return `${negative2 ? "-" : ""}${integer3 || "0"}${fraction ? `.${fraction}` : ""}`;
|
1149
|
+
}
|
1150
|
+
|
1151
|
+
// node_modules/viem/_esm/utils/unit/formatGwei.js
|
1152
|
+
function formatGwei(wei, unit = "wei") {
|
1153
|
+
return formatUnits(wei, gweiUnits[unit]);
|
1154
|
+
}
|
1155
|
+
var init_formatGwei = __esm(() => {
|
1156
|
+
init_unit();
|
1157
|
+
});
|
1158
|
+
|
1159
|
+
// node_modules/viem/_esm/errors/transaction.js
|
1160
|
+
function prettyPrint(args2) {
|
1161
|
+
const entries3 = Object.entries(args2).map(([key, value6]) => {
|
1162
|
+
if (value6 === undefined || value6 === false)
|
1163
|
+
return null;
|
1164
|
+
return [key, value6];
|
1165
|
+
}).filter(Boolean);
|
1166
|
+
const maxLength2 = entries3.reduce((acc, [key]) => Math.max(acc, key.length), 0);
|
1167
|
+
return entries3.map(([key, value6]) => ` ${`${key}:`.padEnd(maxLength2 + 1)} ${value6}`).join(`
|
1168
|
+
`);
|
1169
|
+
}
|
1170
|
+
var InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError;
|
1171
|
+
var init_transaction = __esm(() => {
|
1172
|
+
init_base();
|
1173
|
+
InvalidLegacyVError = class InvalidLegacyVError extends BaseError {
|
1174
|
+
constructor({ v }) {
|
1175
|
+
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
1176
|
+
name: "InvalidLegacyVError"
|
1177
|
+
});
|
1178
|
+
}
|
1179
|
+
};
|
1180
|
+
InvalidSerializableTransactionError = class InvalidSerializableTransactionError extends BaseError {
|
1181
|
+
constructor({ transaction }) {
|
1182
|
+
super("Cannot infer a transaction type from provided transaction.", {
|
1183
|
+
metaMessages: [
|
1184
|
+
"Provided Transaction:",
|
1185
|
+
"{",
|
1186
|
+
prettyPrint(transaction),
|
1187
|
+
"}",
|
1188
|
+
"",
|
1189
|
+
"To infer the type, either provide:",
|
1190
|
+
"- a `type` to the Transaction, or",
|
1191
|
+
"- an EIP-1559 Transaction with `maxFeePerGas`, or",
|
1192
|
+
"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
|
1193
|
+
"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
|
1194
|
+
"- an EIP-7702 Transaction with `authorizationList`, or",
|
1195
|
+
"- a Legacy Transaction with `gasPrice`"
|
1196
|
+
],
|
1197
|
+
name: "InvalidSerializableTransactionError"
|
1198
|
+
});
|
1199
|
+
}
|
1200
|
+
};
|
1201
|
+
InvalidStorageKeySizeError = class InvalidStorageKeySizeError extends BaseError {
|
1202
|
+
constructor({ storageKey }) {
|
1203
|
+
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
1204
|
+
}
|
1205
|
+
};
|
1206
|
+
});
|
1207
|
+
|
1208
|
+
// node_modules/viem/_esm/errors/node.js
|
1209
|
+
var ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, NonceTooHighError, NonceTooLowError, NonceMaxValueError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, TransactionTypeNotSupportedError, TipAboveFeeCapError;
|
1210
|
+
var init_node = __esm(() => {
|
1211
|
+
init_formatGwei();
|
1212
|
+
init_base();
|
1213
|
+
ExecutionRevertedError = class ExecutionRevertedError extends BaseError {
|
1214
|
+
constructor({ cause: cause2, message } = {}) {
|
1215
|
+
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
1216
|
+
super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
|
1217
|
+
cause: cause2,
|
1218
|
+
name: "ExecutionRevertedError"
|
1219
|
+
});
|
1220
|
+
}
|
1221
|
+
};
|
1222
|
+
Object.defineProperty(ExecutionRevertedError, "code", {
|
1223
|
+
enumerable: true,
|
1224
|
+
configurable: true,
|
1225
|
+
writable: true,
|
1226
|
+
value: 3
|
1227
|
+
});
|
1228
|
+
Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
1229
|
+
enumerable: true,
|
1230
|
+
configurable: true,
|
1231
|
+
writable: true,
|
1232
|
+
value: /execution reverted/
|
1233
|
+
});
|
1234
|
+
FeeCapTooHighError = class FeeCapTooHighError extends BaseError {
|
1235
|
+
constructor({ cause: cause2, maxFeePerGas } = {}) {
|
1236
|
+
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
1237
|
+
cause: cause2,
|
1238
|
+
name: "FeeCapTooHighError"
|
1239
|
+
});
|
1240
|
+
}
|
1241
|
+
};
|
1242
|
+
Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
|
1243
|
+
enumerable: true,
|
1244
|
+
configurable: true,
|
1245
|
+
writable: true,
|
1246
|
+
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
1247
|
+
});
|
1248
|
+
FeeCapTooLowError = class FeeCapTooLowError extends BaseError {
|
1249
|
+
constructor({ cause: cause2, maxFeePerGas } = {}) {
|
1250
|
+
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
1251
|
+
cause: cause2,
|
1252
|
+
name: "FeeCapTooLowError"
|
1253
|
+
});
|
1254
|
+
}
|
1255
|
+
};
|
1256
|
+
Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
|
1257
|
+
enumerable: true,
|
1258
|
+
configurable: true,
|
1259
|
+
writable: true,
|
1260
|
+
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
1261
|
+
});
|
1262
|
+
NonceTooHighError = class NonceTooHighError extends BaseError {
|
1263
|
+
constructor({ cause: cause2, nonce } = {}) {
|
1264
|
+
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause: cause2, name: "NonceTooHighError" });
|
1265
|
+
}
|
1266
|
+
};
|
1267
|
+
Object.defineProperty(NonceTooHighError, "nodeMessage", {
|
1268
|
+
enumerable: true,
|
1269
|
+
configurable: true,
|
1270
|
+
writable: true,
|
1271
|
+
value: /nonce too high/
|
1272
|
+
});
|
1273
|
+
NonceTooLowError = class NonceTooLowError extends BaseError {
|
1274
|
+
constructor({ cause: cause2, nonce } = {}) {
|
1275
|
+
super([
|
1276
|
+
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
|
1277
|
+
"Try increasing the nonce or find the latest nonce with `getTransactionCount`."
|
1278
|
+
].join(`
|
1279
|
+
`), { cause: cause2, name: "NonceTooLowError" });
|
1280
|
+
}
|
1281
|
+
};
|
1282
|
+
Object.defineProperty(NonceTooLowError, "nodeMessage", {
|
1283
|
+
enumerable: true,
|
1284
|
+
configurable: true,
|
1285
|
+
writable: true,
|
1286
|
+
value: /nonce too low|transaction already imported|already known/
|
1287
|
+
});
|
1288
|
+
NonceMaxValueError = class NonceMaxValueError extends BaseError {
|
1289
|
+
constructor({ cause: cause2, nonce } = {}) {
|
1290
|
+
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause: cause2, name: "NonceMaxValueError" });
|
1291
|
+
}
|
1292
|
+
};
|
1293
|
+
Object.defineProperty(NonceMaxValueError, "nodeMessage", {
|
1294
|
+
enumerable: true,
|
1295
|
+
configurable: true,
|
1296
|
+
writable: true,
|
1297
|
+
value: /nonce has max value/
|
1298
|
+
});
|
1299
|
+
InsufficientFundsError = class InsufficientFundsError extends BaseError {
|
1300
|
+
constructor({ cause: cause2 } = {}) {
|
1301
|
+
super([
|
1302
|
+
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
1303
|
+
].join(`
|
1304
|
+
`), {
|
1305
|
+
cause: cause2,
|
1306
|
+
metaMessages: [
|
1307
|
+
"This error could arise when the account does not have enough funds to:",
|
1308
|
+
" - pay for the total gas fee,",
|
1309
|
+
" - pay for the value to send.",
|
1310
|
+
" ",
|
1311
|
+
"The cost of the transaction is calculated as `gas * gas fee + value`, where:",
|
1312
|
+
" - `gas` is the amount of gas needed for transaction to execute,",
|
1313
|
+
" - `gas fee` is the gas fee,",
|
1314
|
+
" - `value` is the amount of ether to send to the recipient."
|
1315
|
+
],
|
1316
|
+
name: "InsufficientFundsError"
|
1317
|
+
});
|
1318
|
+
}
|
1319
|
+
};
|
1320
|
+
Object.defineProperty(InsufficientFundsError, "nodeMessage", {
|
1321
|
+
enumerable: true,
|
1322
|
+
configurable: true,
|
1323
|
+
writable: true,
|
1324
|
+
value: /insufficient funds|exceeds transaction sender account balance/
|
1325
|
+
});
|
1326
|
+
IntrinsicGasTooHighError = class IntrinsicGasTooHighError extends BaseError {
|
1327
|
+
constructor({ cause: cause2, gas } = {}) {
|
1328
|
+
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
1329
|
+
cause: cause2,
|
1330
|
+
name: "IntrinsicGasTooHighError"
|
1331
|
+
});
|
1332
|
+
}
|
1333
|
+
};
|
1334
|
+
Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
|
1335
|
+
enumerable: true,
|
1336
|
+
configurable: true,
|
1337
|
+
writable: true,
|
1338
|
+
value: /intrinsic gas too high|gas limit reached/
|
1339
|
+
});
|
1340
|
+
IntrinsicGasTooLowError = class IntrinsicGasTooLowError extends BaseError {
|
1341
|
+
constructor({ cause: cause2, gas } = {}) {
|
1342
|
+
super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
|
1343
|
+
cause: cause2,
|
1344
|
+
name: "IntrinsicGasTooLowError"
|
1345
|
+
});
|
1346
|
+
}
|
1347
|
+
};
|
1348
|
+
Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
|
1349
|
+
enumerable: true,
|
1350
|
+
configurable: true,
|
1351
|
+
writable: true,
|
1352
|
+
value: /intrinsic gas too low/
|
1353
|
+
});
|
1354
|
+
TransactionTypeNotSupportedError = class TransactionTypeNotSupportedError extends BaseError {
|
1355
|
+
constructor({ cause: cause2 }) {
|
1356
|
+
super("The transaction type is not supported for this chain.", {
|
1357
|
+
cause: cause2,
|
1358
|
+
name: "TransactionTypeNotSupportedError"
|
1359
|
+
});
|
1360
|
+
}
|
1361
|
+
};
|
1362
|
+
Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
|
1363
|
+
enumerable: true,
|
1364
|
+
configurable: true,
|
1365
|
+
writable: true,
|
1366
|
+
value: /transaction type not valid/
|
1367
|
+
});
|
1368
|
+
TipAboveFeeCapError = class TipAboveFeeCapError extends BaseError {
|
1369
|
+
constructor({ cause: cause2, maxPriorityFeePerGas, maxFeePerGas } = {}) {
|
1370
|
+
super([
|
1371
|
+
`The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
|
1372
|
+
].join(`
|
1373
|
+
`), {
|
1374
|
+
cause: cause2,
|
1375
|
+
name: "TipAboveFeeCapError"
|
1376
|
+
});
|
1377
|
+
}
|
1378
|
+
};
|
1379
|
+
Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
|
1380
|
+
enumerable: true,
|
1381
|
+
configurable: true,
|
1382
|
+
writable: true,
|
1383
|
+
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
1384
|
+
});
|
1385
|
+
});
|
1386
|
+
|
1387
|
+
// node_modules/viem/_esm/utils/formatters/formatter.js
|
1388
|
+
function defineFormatter(type2, format7) {
|
1389
|
+
return ({ exclude: exclude3, format: overrides }) => {
|
1390
|
+
return {
|
1391
|
+
exclude: exclude3,
|
1392
|
+
format: (args2) => {
|
1393
|
+
const formatted = format7(args2);
|
1394
|
+
if (exclude3) {
|
1395
|
+
for (const key of exclude3) {
|
1396
|
+
delete formatted[key];
|
1397
|
+
}
|
1398
|
+
}
|
1399
|
+
return {
|
1400
|
+
...formatted,
|
1401
|
+
...overrides(args2)
|
1402
|
+
};
|
1403
|
+
},
|
1404
|
+
type: type2
|
1405
|
+
};
|
1406
|
+
};
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
// node_modules/viem/_esm/constants/number.js
|
1410
|
+
var maxInt8, maxInt16, maxInt24, maxInt32, maxInt40, maxInt48, maxInt56, maxInt64, maxInt72, maxInt80, maxInt88, maxInt96, maxInt104, maxInt112, maxInt120, maxInt128, maxInt136, maxInt144, maxInt152, maxInt160, maxInt168, maxInt176, maxInt184, maxInt192, maxInt200, maxInt208, maxInt216, maxInt224, maxInt232, maxInt240, maxInt248, maxInt256, minInt8, minInt16, minInt24, minInt32, minInt40, minInt48, minInt56, minInt64, minInt72, minInt80, minInt88, minInt96, minInt104, minInt112, minInt120, minInt128, minInt136, minInt144, minInt152, minInt160, minInt168, minInt176, minInt184, minInt192, minInt200, minInt208, minInt216, minInt224, minInt232, minInt240, minInt248, minInt256, maxUint8, maxUint16, maxUint24, maxUint32, maxUint40, maxUint48, maxUint56, maxUint64, maxUint72, maxUint80, maxUint88, maxUint96, maxUint104, maxUint112, maxUint120, maxUint128, maxUint136, maxUint144, maxUint152, maxUint160, maxUint168, maxUint176, maxUint184, maxUint192, maxUint200, maxUint208, maxUint216, maxUint224, maxUint232, maxUint240, maxUint248, maxUint256;
|
1411
|
+
var init_number = __esm(() => {
|
1412
|
+
maxInt8 = 2n ** (8n - 1n) - 1n;
|
1413
|
+
maxInt16 = 2n ** (16n - 1n) - 1n;
|
1414
|
+
maxInt24 = 2n ** (24n - 1n) - 1n;
|
1415
|
+
maxInt32 = 2n ** (32n - 1n) - 1n;
|
1416
|
+
maxInt40 = 2n ** (40n - 1n) - 1n;
|
1417
|
+
maxInt48 = 2n ** (48n - 1n) - 1n;
|
1418
|
+
maxInt56 = 2n ** (56n - 1n) - 1n;
|
1419
|
+
maxInt64 = 2n ** (64n - 1n) - 1n;
|
1420
|
+
maxInt72 = 2n ** (72n - 1n) - 1n;
|
1421
|
+
maxInt80 = 2n ** (80n - 1n) - 1n;
|
1422
|
+
maxInt88 = 2n ** (88n - 1n) - 1n;
|
1423
|
+
maxInt96 = 2n ** (96n - 1n) - 1n;
|
1424
|
+
maxInt104 = 2n ** (104n - 1n) - 1n;
|
1425
|
+
maxInt112 = 2n ** (112n - 1n) - 1n;
|
1426
|
+
maxInt120 = 2n ** (120n - 1n) - 1n;
|
1427
|
+
maxInt128 = 2n ** (128n - 1n) - 1n;
|
1428
|
+
maxInt136 = 2n ** (136n - 1n) - 1n;
|
1429
|
+
maxInt144 = 2n ** (144n - 1n) - 1n;
|
1430
|
+
maxInt152 = 2n ** (152n - 1n) - 1n;
|
1431
|
+
maxInt160 = 2n ** (160n - 1n) - 1n;
|
1432
|
+
maxInt168 = 2n ** (168n - 1n) - 1n;
|
1433
|
+
maxInt176 = 2n ** (176n - 1n) - 1n;
|
1434
|
+
maxInt184 = 2n ** (184n - 1n) - 1n;
|
1435
|
+
maxInt192 = 2n ** (192n - 1n) - 1n;
|
1436
|
+
maxInt200 = 2n ** (200n - 1n) - 1n;
|
1437
|
+
maxInt208 = 2n ** (208n - 1n) - 1n;
|
1438
|
+
maxInt216 = 2n ** (216n - 1n) - 1n;
|
1439
|
+
maxInt224 = 2n ** (224n - 1n) - 1n;
|
1440
|
+
maxInt232 = 2n ** (232n - 1n) - 1n;
|
1441
|
+
maxInt240 = 2n ** (240n - 1n) - 1n;
|
1442
|
+
maxInt248 = 2n ** (248n - 1n) - 1n;
|
1443
|
+
maxInt256 = 2n ** (256n - 1n) - 1n;
|
1444
|
+
minInt8 = -(2n ** (8n - 1n));
|
1445
|
+
minInt16 = -(2n ** (16n - 1n));
|
1446
|
+
minInt24 = -(2n ** (24n - 1n));
|
1447
|
+
minInt32 = -(2n ** (32n - 1n));
|
1448
|
+
minInt40 = -(2n ** (40n - 1n));
|
1449
|
+
minInt48 = -(2n ** (48n - 1n));
|
1450
|
+
minInt56 = -(2n ** (56n - 1n));
|
1451
|
+
minInt64 = -(2n ** (64n - 1n));
|
1452
|
+
minInt72 = -(2n ** (72n - 1n));
|
1453
|
+
minInt80 = -(2n ** (80n - 1n));
|
1454
|
+
minInt88 = -(2n ** (88n - 1n));
|
1455
|
+
minInt96 = -(2n ** (96n - 1n));
|
1456
|
+
minInt104 = -(2n ** (104n - 1n));
|
1457
|
+
minInt112 = -(2n ** (112n - 1n));
|
1458
|
+
minInt120 = -(2n ** (120n - 1n));
|
1459
|
+
minInt128 = -(2n ** (128n - 1n));
|
1460
|
+
minInt136 = -(2n ** (136n - 1n));
|
1461
|
+
minInt144 = -(2n ** (144n - 1n));
|
1462
|
+
minInt152 = -(2n ** (152n - 1n));
|
1463
|
+
minInt160 = -(2n ** (160n - 1n));
|
1464
|
+
minInt168 = -(2n ** (168n - 1n));
|
1465
|
+
minInt176 = -(2n ** (176n - 1n));
|
1466
|
+
minInt184 = -(2n ** (184n - 1n));
|
1467
|
+
minInt192 = -(2n ** (192n - 1n));
|
1468
|
+
minInt200 = -(2n ** (200n - 1n));
|
1469
|
+
minInt208 = -(2n ** (208n - 1n));
|
1470
|
+
minInt216 = -(2n ** (216n - 1n));
|
1471
|
+
minInt224 = -(2n ** (224n - 1n));
|
1472
|
+
minInt232 = -(2n ** (232n - 1n));
|
1473
|
+
minInt240 = -(2n ** (240n - 1n));
|
1474
|
+
minInt248 = -(2n ** (248n - 1n));
|
1475
|
+
minInt256 = -(2n ** (256n - 1n));
|
1476
|
+
maxUint8 = 2n ** 8n - 1n;
|
1477
|
+
maxUint16 = 2n ** 16n - 1n;
|
1478
|
+
maxUint24 = 2n ** 24n - 1n;
|
1479
|
+
maxUint32 = 2n ** 32n - 1n;
|
1480
|
+
maxUint40 = 2n ** 40n - 1n;
|
1481
|
+
maxUint48 = 2n ** 48n - 1n;
|
1482
|
+
maxUint56 = 2n ** 56n - 1n;
|
1483
|
+
maxUint64 = 2n ** 64n - 1n;
|
1484
|
+
maxUint72 = 2n ** 72n - 1n;
|
1485
|
+
maxUint80 = 2n ** 80n - 1n;
|
1486
|
+
maxUint88 = 2n ** 88n - 1n;
|
1487
|
+
maxUint96 = 2n ** 96n - 1n;
|
1488
|
+
maxUint104 = 2n ** 104n - 1n;
|
1489
|
+
maxUint112 = 2n ** 112n - 1n;
|
1490
|
+
maxUint120 = 2n ** 120n - 1n;
|
1491
|
+
maxUint128 = 2n ** 128n - 1n;
|
1492
|
+
maxUint136 = 2n ** 136n - 1n;
|
1493
|
+
maxUint144 = 2n ** 144n - 1n;
|
1494
|
+
maxUint152 = 2n ** 152n - 1n;
|
1495
|
+
maxUint160 = 2n ** 160n - 1n;
|
1496
|
+
maxUint168 = 2n ** 168n - 1n;
|
1497
|
+
maxUint176 = 2n ** 176n - 1n;
|
1498
|
+
maxUint184 = 2n ** 184n - 1n;
|
1499
|
+
maxUint192 = 2n ** 192n - 1n;
|
1500
|
+
maxUint200 = 2n ** 200n - 1n;
|
1501
|
+
maxUint208 = 2n ** 208n - 1n;
|
1502
|
+
maxUint216 = 2n ** 216n - 1n;
|
1503
|
+
maxUint224 = 2n ** 224n - 1n;
|
1504
|
+
maxUint232 = 2n ** 232n - 1n;
|
1505
|
+
maxUint240 = 2n ** 240n - 1n;
|
1506
|
+
maxUint248 = 2n ** 248n - 1n;
|
1507
|
+
maxUint256 = 2n ** 256n - 1n;
|
1508
|
+
});
|
1509
|
+
|
1510
|
+
// ../node_modules/@noble/hashes/esm/_md.js
|
1511
|
+
function setBigUint64(view, byteOffset, value6, isLE2) {
|
1512
|
+
if (typeof view.setBigUint64 === "function")
|
1513
|
+
return view.setBigUint64(byteOffset, value6, isLE2);
|
1514
|
+
const _32n2 = BigInt(32);
|
1515
|
+
const _u32_max = BigInt(4294967295);
|
1516
|
+
const wh = Number(value6 >> _32n2 & _u32_max);
|
1517
|
+
const wl = Number(value6 & _u32_max);
|
1518
|
+
const h = isLE2 ? 4 : 0;
|
1519
|
+
const l = isLE2 ? 0 : 4;
|
1520
|
+
view.setUint32(byteOffset + h, wh, isLE2);
|
1521
|
+
view.setUint32(byteOffset + l, wl, isLE2);
|
1522
|
+
}
|
1523
|
+
function Chi(a, b, c) {
|
1524
|
+
return a & b ^ ~a & c;
|
1525
|
+
}
|
1526
|
+
function Maj(a, b, c) {
|
1527
|
+
return a & b ^ a & c ^ b & c;
|
1528
|
+
}
|
1529
|
+
var HashMD;
|
1530
|
+
var init__md = __esm(() => {
|
1531
|
+
init__assert();
|
1532
|
+
init_utils();
|
1533
|
+
HashMD = class HashMD extends Hash {
|
1534
|
+
constructor(blockLen, outputLen, padOffset, isLE2) {
|
1535
|
+
super();
|
1536
|
+
this.blockLen = blockLen;
|
1537
|
+
this.outputLen = outputLen;
|
1538
|
+
this.padOffset = padOffset;
|
1539
|
+
this.isLE = isLE2;
|
1540
|
+
this.finished = false;
|
1541
|
+
this.length = 0;
|
1542
|
+
this.pos = 0;
|
1543
|
+
this.destroyed = false;
|
1544
|
+
this.buffer = new Uint8Array(blockLen);
|
1545
|
+
this.view = createView(this.buffer);
|
1546
|
+
}
|
1547
|
+
update(data) {
|
1548
|
+
aexists(this);
|
1549
|
+
const { view, buffer: buffer3, blockLen } = this;
|
1550
|
+
data = toBytes2(data);
|
1551
|
+
const len = data.length;
|
1552
|
+
for (let pos = 0;pos < len; ) {
|
1553
|
+
const take10 = Math.min(blockLen - this.pos, len - pos);
|
1554
|
+
if (take10 === blockLen) {
|
1555
|
+
const dataView = createView(data);
|
1556
|
+
for (;blockLen <= len - pos; pos += blockLen)
|
1557
|
+
this.process(dataView, pos);
|
1558
|
+
continue;
|
1559
|
+
}
|
1560
|
+
buffer3.set(data.subarray(pos, pos + take10), this.pos);
|
1561
|
+
this.pos += take10;
|
1562
|
+
pos += take10;
|
1563
|
+
if (this.pos === blockLen) {
|
1564
|
+
this.process(view, 0);
|
1565
|
+
this.pos = 0;
|
1566
|
+
}
|
1567
|
+
}
|
1568
|
+
this.length += data.length;
|
1569
|
+
this.roundClean();
|
1570
|
+
return this;
|
1571
|
+
}
|
1572
|
+
digestInto(out) {
|
1573
|
+
aexists(this);
|
1574
|
+
aoutput(out, this);
|
1575
|
+
this.finished = true;
|
1576
|
+
const { buffer: buffer3, view, blockLen, isLE: isLE2 } = this;
|
1577
|
+
let { pos } = this;
|
1578
|
+
buffer3[pos++] = 128;
|
1579
|
+
this.buffer.subarray(pos).fill(0);
|
1580
|
+
if (this.padOffset > blockLen - pos) {
|
1581
|
+
this.process(view, 0);
|
1582
|
+
pos = 0;
|
1583
|
+
}
|
1584
|
+
for (let i = pos;i < blockLen; i++)
|
1585
|
+
buffer3[i] = 0;
|
1586
|
+
setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE2);
|
1587
|
+
this.process(view, 0);
|
1588
|
+
const oview = createView(out);
|
1589
|
+
const len = this.outputLen;
|
1590
|
+
if (len % 4)
|
1591
|
+
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
1592
|
+
const outLen = len / 4;
|
1593
|
+
const state = this.get();
|
1594
|
+
if (outLen > state.length)
|
1595
|
+
throw new Error("_sha2: outputLen bigger than state");
|
1596
|
+
for (let i = 0;i < outLen; i++)
|
1597
|
+
oview.setUint32(4 * i, state[i], isLE2);
|
1598
|
+
}
|
1599
|
+
digest() {
|
1600
|
+
const { buffer: buffer3, outputLen } = this;
|
1601
|
+
this.digestInto(buffer3);
|
1602
|
+
const res = buffer3.slice(0, outputLen);
|
1603
|
+
this.destroy();
|
1604
|
+
return res;
|
1605
|
+
}
|
1606
|
+
_cloneInto(to) {
|
1607
|
+
to || (to = new this.constructor);
|
1608
|
+
to.set(...this.get());
|
1609
|
+
const { blockLen, buffer: buffer3, length: length4, finished, destroyed, pos } = this;
|
1610
|
+
to.length = length4;
|
1611
|
+
to.pos = pos;
|
1612
|
+
to.finished = finished;
|
1613
|
+
to.destroyed = destroyed;
|
1614
|
+
if (length4 % blockLen)
|
1615
|
+
to.buffer.set(buffer3);
|
1616
|
+
return to;
|
1617
|
+
}
|
1618
|
+
};
|
1619
|
+
});
|
1620
|
+
|
1621
|
+
// ../node_modules/@noble/hashes/esm/sha256.js
|
1622
|
+
var SHA256_K, SHA256_IV, SHA256_W, SHA256, sha256;
|
1623
|
+
var init_sha256 = __esm(() => {
|
1624
|
+
init__md();
|
1625
|
+
init_utils();
|
1626
|
+
SHA256_K = /* @__PURE__ */ new Uint32Array([
|
1627
|
+
1116352408,
|
1628
|
+
1899447441,
|
1629
|
+
3049323471,
|
1630
|
+
3921009573,
|
1631
|
+
961987163,
|
1632
|
+
1508970993,
|
1633
|
+
2453635748,
|
1634
|
+
2870763221,
|
1635
|
+
3624381080,
|
1636
|
+
310598401,
|
1637
|
+
607225278,
|
1638
|
+
1426881987,
|
1639
|
+
1925078388,
|
1640
|
+
2162078206,
|
1641
|
+
2614888103,
|
1642
|
+
3248222580,
|
1643
|
+
3835390401,
|
1644
|
+
4022224774,
|
1645
|
+
264347078,
|
1646
|
+
604807628,
|
1647
|
+
770255983,
|
1648
|
+
1249150122,
|
1649
|
+
1555081692,
|
1650
|
+
1996064986,
|
1651
|
+
2554220882,
|
1652
|
+
2821834349,
|
1653
|
+
2952996808,
|
1654
|
+
3210313671,
|
1655
|
+
3336571891,
|
1656
|
+
3584528711,
|
1657
|
+
113926993,
|
1658
|
+
338241895,
|
1659
|
+
666307205,
|
1660
|
+
773529912,
|
1661
|
+
1294757372,
|
1662
|
+
1396182291,
|
1663
|
+
1695183700,
|
1664
|
+
1986661051,
|
1665
|
+
2177026350,
|
1666
|
+
2456956037,
|
1667
|
+
2730485921,
|
1668
|
+
2820302411,
|
1669
|
+
3259730800,
|
1670
|
+
3345764771,
|
1671
|
+
3516065817,
|
1672
|
+
3600352804,
|
1673
|
+
4094571909,
|
1674
|
+
275423344,
|
1675
|
+
430227734,
|
1676
|
+
506948616,
|
1677
|
+
659060556,
|
1678
|
+
883997877,
|
1679
|
+
958139571,
|
1680
|
+
1322822218,
|
1681
|
+
1537002063,
|
1682
|
+
1747873779,
|
1683
|
+
1955562222,
|
1684
|
+
2024104815,
|
1685
|
+
2227730452,
|
1686
|
+
2361852424,
|
1687
|
+
2428436474,
|
1688
|
+
2756734187,
|
1689
|
+
3204031479,
|
1690
|
+
3329325298
|
1691
|
+
]);
|
1692
|
+
SHA256_IV = /* @__PURE__ */ new Uint32Array([
|
1693
|
+
1779033703,
|
1694
|
+
3144134277,
|
1695
|
+
1013904242,
|
1696
|
+
2773480762,
|
1697
|
+
1359893119,
|
1698
|
+
2600822924,
|
1699
|
+
528734635,
|
1700
|
+
1541459225
|
1701
|
+
]);
|
1702
|
+
SHA256_W = /* @__PURE__ */ new Uint32Array(64);
|
1703
|
+
SHA256 = class SHA256 extends HashMD {
|
1704
|
+
constructor() {
|
1705
|
+
super(64, 32, 8, false);
|
1706
|
+
this.A = SHA256_IV[0] | 0;
|
1707
|
+
this.B = SHA256_IV[1] | 0;
|
1708
|
+
this.C = SHA256_IV[2] | 0;
|
1709
|
+
this.D = SHA256_IV[3] | 0;
|
1710
|
+
this.E = SHA256_IV[4] | 0;
|
1711
|
+
this.F = SHA256_IV[5] | 0;
|
1712
|
+
this.G = SHA256_IV[6] | 0;
|
1713
|
+
this.H = SHA256_IV[7] | 0;
|
1714
|
+
}
|
1715
|
+
get() {
|
1716
|
+
const { A, B, C, D, E, F, G, H } = this;
|
1717
|
+
return [A, B, C, D, E, F, G, H];
|
1718
|
+
}
|
1719
|
+
set(A, B, C, D, E, F, G, H) {
|
1720
|
+
this.A = A | 0;
|
1721
|
+
this.B = B | 0;
|
1722
|
+
this.C = C | 0;
|
1723
|
+
this.D = D | 0;
|
1724
|
+
this.E = E | 0;
|
1725
|
+
this.F = F | 0;
|
1726
|
+
this.G = G | 0;
|
1727
|
+
this.H = H | 0;
|
1728
|
+
}
|
1729
|
+
process(view, offset) {
|
1730
|
+
for (let i = 0;i < 16; i++, offset += 4)
|
1731
|
+
SHA256_W[i] = view.getUint32(offset, false);
|
1732
|
+
for (let i = 16;i < 64; i++) {
|
1733
|
+
const W15 = SHA256_W[i - 15];
|
1734
|
+
const W2 = SHA256_W[i - 2];
|
1735
|
+
const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ W15 >>> 3;
|
1736
|
+
const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ W2 >>> 10;
|
1737
|
+
SHA256_W[i] = s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16] | 0;
|
1738
|
+
}
|
1739
|
+
let { A, B, C, D, E, F, G, H } = this;
|
1740
|
+
for (let i = 0;i < 64; i++) {
|
1741
|
+
const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
|
1742
|
+
const T1 = H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i] | 0;
|
1743
|
+
const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
|
1744
|
+
const T2 = sigma0 + Maj(A, B, C) | 0;
|
1745
|
+
H = G;
|
1746
|
+
G = F;
|
1747
|
+
F = E;
|
1748
|
+
E = D + T1 | 0;
|
1749
|
+
D = C;
|
1750
|
+
C = B;
|
1751
|
+
B = A;
|
1752
|
+
A = T1 + T2 | 0;
|
1753
|
+
}
|
1754
|
+
A = A + this.A | 0;
|
1755
|
+
B = B + this.B | 0;
|
1756
|
+
C = C + this.C | 0;
|
1757
|
+
D = D + this.D | 0;
|
1758
|
+
E = E + this.E | 0;
|
1759
|
+
F = F + this.F | 0;
|
1760
|
+
G = G + this.G | 0;
|
1761
|
+
H = H + this.H | 0;
|
1762
|
+
this.set(A, B, C, D, E, F, G, H);
|
1763
|
+
}
|
1764
|
+
roundClean() {
|
1765
|
+
SHA256_W.fill(0);
|
1766
|
+
}
|
1767
|
+
destroy() {
|
1768
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0);
|
1769
|
+
this.buffer.fill(0);
|
1770
|
+
}
|
1771
|
+
};
|
1772
|
+
sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
|
1773
|
+
});
|
1774
|
+
|
1775
|
+
// node_modules/viem/_esm/errors/chain.js
|
1776
|
+
var InvalidChainIdError;
|
1777
|
+
var init_chain = __esm(() => {
|
1778
|
+
init_base();
|
1779
|
+
InvalidChainIdError = class InvalidChainIdError extends BaseError {
|
1780
|
+
constructor({ chainId }) {
|
1781
|
+
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
1782
|
+
}
|
1783
|
+
};
|
1784
|
+
});
|
1785
|
+
|
837
1786
|
// ../node_modules/effect/dist/esm/Function.js
|
838
1787
|
var isFunction = (input) => typeof input === "function";
|
839
1788
|
var dual = function(arity, body) {
|
@@ -1152,7 +2101,8 @@ var tracingFunction = (name) => {
|
|
1152
2101
|
};
|
1153
2102
|
};
|
1154
2103
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
1155
|
-
var genConstructor = function* () {
|
2104
|
+
var genConstructor = function* () {
|
2105
|
+
}.constructor;
|
1156
2106
|
|
1157
2107
|
// ../node_modules/effect/dist/esm/Hash.js
|
1158
2108
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -1499,7 +2449,8 @@ var StructuralCommitPrototype = {
|
|
1499
2449
|
...StructuralPrototype
|
1500
2450
|
};
|
1501
2451
|
var Base = /* @__PURE__ */ function() {
|
1502
|
-
function Base2() {
|
2452
|
+
function Base2() {
|
2453
|
+
}
|
1503
2454
|
Base2.prototype = CommitPrototype;
|
1504
2455
|
return Base2;
|
1505
2456
|
}();
|
@@ -5002,7 +5953,8 @@ var Reference = () => (id, options) => {
|
|
5002
5953
|
Error.stackTraceLimit = 2;
|
5003
5954
|
const creationError = new Error;
|
5004
5955
|
Error.stackTraceLimit = limit;
|
5005
|
-
function ReferenceClass() {
|
5956
|
+
function ReferenceClass() {
|
5957
|
+
}
|
5006
5958
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
5007
5959
|
ReferenceClass.key = id;
|
5008
5960
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -7942,7 +8894,8 @@ var prettyErrorMessage = (u) => {
|
|
7942
8894
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
7943
8895
|
return u["toString"]();
|
7944
8896
|
}
|
7945
|
-
} catch {
|
8897
|
+
} catch {
|
8898
|
+
}
|
7946
8899
|
return stringifyCircular(u);
|
7947
8900
|
};
|
7948
8901
|
var locationRegex = /\((.*)\)/g;
|
@@ -8516,7 +9469,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
|
|
8516
9469
|
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
|
8517
9470
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
|
8518
9471
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
8519
|
-
const interval = setInterval(() => {
|
9472
|
+
const interval = setInterval(() => {
|
9473
|
+
}, 2 ** 31 - 1);
|
8520
9474
|
return sync(() => clearInterval(interval));
|
8521
9475
|
});
|
8522
9476
|
var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
|
@@ -12336,11 +13290,16 @@ class Const {
|
|
12336
13290
|
get value() {
|
12337
13291
|
return this.effect;
|
12338
13292
|
}
|
12339
|
-
onStart(_context, _effect, _parent, _fiber) {
|
12340
|
-
|
12341
|
-
|
12342
|
-
|
12343
|
-
|
13293
|
+
onStart(_context, _effect, _parent, _fiber) {
|
13294
|
+
}
|
13295
|
+
onEnd(_value, _fiber) {
|
13296
|
+
}
|
13297
|
+
onEffect(_fiber, _effect) {
|
13298
|
+
}
|
13299
|
+
onSuspend(_fiber) {
|
13300
|
+
}
|
13301
|
+
onResume(_fiber) {
|
13302
|
+
}
|
12344
13303
|
map(f) {
|
12345
13304
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
12346
13305
|
}
|
@@ -12814,7 +13773,8 @@ class FiberRuntime extends Class {
|
|
12814
13773
|
return whileLoop({
|
12815
13774
|
while: () => !isDone3,
|
12816
13775
|
body,
|
12817
|
-
step: () => {
|
13776
|
+
step: () => {
|
13777
|
+
}
|
12818
13778
|
});
|
12819
13779
|
}
|
12820
13780
|
return null;
|
@@ -22344,34 +23304,441 @@ class TrieIterator {
|
|
22344
23304
|
}
|
22345
23305
|
}
|
22346
23306
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
22347
|
-
//
|
22348
|
-
|
22349
|
-
|
22350
|
-
|
22351
|
-
init_pad();
|
23307
|
+
// node_modules/viem/_esm/utils/encoding/toRlp.js
|
23308
|
+
init_base();
|
23309
|
+
init_cursor2();
|
23310
|
+
init_toBytes();
|
22352
23311
|
init_toHex();
|
22353
|
-
|
22354
|
-
|
22355
|
-
|
22356
|
-
|
22357
|
-
|
22358
|
-
|
22359
|
-
|
22360
|
-
|
22361
|
-
|
22362
|
-
|
22363
|
-
|
22364
|
-
|
22365
|
-
|
22366
|
-
|
23312
|
+
function toRlp(bytes, to = "hex") {
|
23313
|
+
const encodable = getEncodable(bytes);
|
23314
|
+
const cursor = createCursor(new Uint8Array(encodable.length));
|
23315
|
+
encodable.encode(cursor);
|
23316
|
+
if (to === "hex")
|
23317
|
+
return bytesToHex2(cursor.bytes);
|
23318
|
+
return cursor.bytes;
|
23319
|
+
}
|
23320
|
+
function getEncodable(bytes) {
|
23321
|
+
if (Array.isArray(bytes))
|
23322
|
+
return getEncodableList(bytes.map((x) => getEncodable(x)));
|
23323
|
+
return getEncodableBytes(bytes);
|
23324
|
+
}
|
23325
|
+
function getEncodableList(list) {
|
23326
|
+
const bodyLength = list.reduce((acc, x) => acc + x.length, 0);
|
23327
|
+
const sizeOfBodyLength = getSizeOfLength(bodyLength);
|
23328
|
+
const length4 = (() => {
|
23329
|
+
if (bodyLength <= 55)
|
23330
|
+
return 1 + bodyLength;
|
23331
|
+
return 1 + sizeOfBodyLength + bodyLength;
|
23332
|
+
})();
|
23333
|
+
return {
|
23334
|
+
length: length4,
|
23335
|
+
encode(cursor) {
|
23336
|
+
if (bodyLength <= 55) {
|
23337
|
+
cursor.pushByte(192 + bodyLength);
|
23338
|
+
} else {
|
23339
|
+
cursor.pushByte(192 + 55 + sizeOfBodyLength);
|
23340
|
+
if (sizeOfBodyLength === 1)
|
23341
|
+
cursor.pushUint8(bodyLength);
|
23342
|
+
else if (sizeOfBodyLength === 2)
|
23343
|
+
cursor.pushUint16(bodyLength);
|
23344
|
+
else if (sizeOfBodyLength === 3)
|
23345
|
+
cursor.pushUint24(bodyLength);
|
23346
|
+
else
|
23347
|
+
cursor.pushUint32(bodyLength);
|
23348
|
+
}
|
23349
|
+
for (const { encode: encode6 } of list) {
|
23350
|
+
encode6(cursor);
|
23351
|
+
}
|
23352
|
+
}
|
23353
|
+
};
|
22367
23354
|
}
|
22368
|
-
function
|
22369
|
-
|
22370
|
-
|
22371
|
-
|
22372
|
-
|
22373
|
-
|
22374
|
-
|
23355
|
+
function getEncodableBytes(bytesOrHex) {
|
23356
|
+
const bytes = typeof bytesOrHex === "string" ? hexToBytes(bytesOrHex) : bytesOrHex;
|
23357
|
+
const sizeOfBytesLength = getSizeOfLength(bytes.length);
|
23358
|
+
const length4 = (() => {
|
23359
|
+
if (bytes.length === 1 && bytes[0] < 128)
|
23360
|
+
return 1;
|
23361
|
+
if (bytes.length <= 55)
|
23362
|
+
return 1 + bytes.length;
|
23363
|
+
return 1 + sizeOfBytesLength + bytes.length;
|
23364
|
+
})();
|
23365
|
+
return {
|
23366
|
+
length: length4,
|
23367
|
+
encode(cursor) {
|
23368
|
+
if (bytes.length === 1 && bytes[0] < 128) {
|
23369
|
+
cursor.pushBytes(bytes);
|
23370
|
+
} else if (bytes.length <= 55) {
|
23371
|
+
cursor.pushByte(128 + bytes.length);
|
23372
|
+
cursor.pushBytes(bytes);
|
23373
|
+
} else {
|
23374
|
+
cursor.pushByte(128 + 55 + sizeOfBytesLength);
|
23375
|
+
if (sizeOfBytesLength === 1)
|
23376
|
+
cursor.pushUint8(bytes.length);
|
23377
|
+
else if (sizeOfBytesLength === 2)
|
23378
|
+
cursor.pushUint16(bytes.length);
|
23379
|
+
else if (sizeOfBytesLength === 3)
|
23380
|
+
cursor.pushUint24(bytes.length);
|
23381
|
+
else
|
23382
|
+
cursor.pushUint32(bytes.length);
|
23383
|
+
cursor.pushBytes(bytes);
|
23384
|
+
}
|
23385
|
+
}
|
23386
|
+
};
|
23387
|
+
}
|
23388
|
+
function getSizeOfLength(length4) {
|
23389
|
+
if (length4 < 2 ** 8)
|
23390
|
+
return 1;
|
23391
|
+
if (length4 < 2 ** 16)
|
23392
|
+
return 2;
|
23393
|
+
if (length4 < 2 ** 24)
|
23394
|
+
return 3;
|
23395
|
+
if (length4 < 2 ** 32)
|
23396
|
+
return 4;
|
23397
|
+
throw new BaseError("Length is too large.");
|
23398
|
+
}
|
23399
|
+
// node_modules/viem/_esm/utils/formatters/transaction.js
|
23400
|
+
init_fromHex();
|
23401
|
+
var transactionType = {
|
23402
|
+
"0x0": "legacy",
|
23403
|
+
"0x1": "eip2930",
|
23404
|
+
"0x2": "eip1559",
|
23405
|
+
"0x3": "eip4844",
|
23406
|
+
"0x4": "eip7702"
|
23407
|
+
};
|
23408
|
+
function formatTransaction(transaction) {
|
23409
|
+
const transaction_ = {
|
23410
|
+
...transaction,
|
23411
|
+
blockHash: transaction.blockHash ? transaction.blockHash : null,
|
23412
|
+
blockNumber: transaction.blockNumber ? BigInt(transaction.blockNumber) : null,
|
23413
|
+
chainId: transaction.chainId ? hexToNumber(transaction.chainId) : undefined,
|
23414
|
+
gas: transaction.gas ? BigInt(transaction.gas) : undefined,
|
23415
|
+
gasPrice: transaction.gasPrice ? BigInt(transaction.gasPrice) : undefined,
|
23416
|
+
maxFeePerBlobGas: transaction.maxFeePerBlobGas ? BigInt(transaction.maxFeePerBlobGas) : undefined,
|
23417
|
+
maxFeePerGas: transaction.maxFeePerGas ? BigInt(transaction.maxFeePerGas) : undefined,
|
23418
|
+
maxPriorityFeePerGas: transaction.maxPriorityFeePerGas ? BigInt(transaction.maxPriorityFeePerGas) : undefined,
|
23419
|
+
nonce: transaction.nonce ? hexToNumber(transaction.nonce) : undefined,
|
23420
|
+
to: transaction.to ? transaction.to : null,
|
23421
|
+
transactionIndex: transaction.transactionIndex ? Number(transaction.transactionIndex) : null,
|
23422
|
+
type: transaction.type ? transactionType[transaction.type] : undefined,
|
23423
|
+
typeHex: transaction.type ? transaction.type : undefined,
|
23424
|
+
value: transaction.value ? BigInt(transaction.value) : undefined,
|
23425
|
+
v: transaction.v ? BigInt(transaction.v) : undefined
|
23426
|
+
};
|
23427
|
+
if (transaction.authorizationList)
|
23428
|
+
transaction_.authorizationList = formatAuthorizationList(transaction.authorizationList);
|
23429
|
+
transaction_.yParity = (() => {
|
23430
|
+
if (transaction.yParity)
|
23431
|
+
return Number(transaction.yParity);
|
23432
|
+
if (typeof transaction_.v === "bigint") {
|
23433
|
+
if (transaction_.v === 0n || transaction_.v === 27n)
|
23434
|
+
return 0;
|
23435
|
+
if (transaction_.v === 1n || transaction_.v === 28n)
|
23436
|
+
return 1;
|
23437
|
+
if (transaction_.v >= 35n)
|
23438
|
+
return transaction_.v % 2n === 0n ? 1 : 0;
|
23439
|
+
}
|
23440
|
+
return;
|
23441
|
+
})();
|
23442
|
+
if (transaction_.type === "legacy") {
|
23443
|
+
delete transaction_.accessList;
|
23444
|
+
delete transaction_.maxFeePerBlobGas;
|
23445
|
+
delete transaction_.maxFeePerGas;
|
23446
|
+
delete transaction_.maxPriorityFeePerGas;
|
23447
|
+
delete transaction_.yParity;
|
23448
|
+
}
|
23449
|
+
if (transaction_.type === "eip2930") {
|
23450
|
+
delete transaction_.maxFeePerBlobGas;
|
23451
|
+
delete transaction_.maxFeePerGas;
|
23452
|
+
delete transaction_.maxPriorityFeePerGas;
|
23453
|
+
}
|
23454
|
+
if (transaction_.type === "eip1559") {
|
23455
|
+
delete transaction_.maxFeePerBlobGas;
|
23456
|
+
}
|
23457
|
+
return transaction_;
|
23458
|
+
}
|
23459
|
+
var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
|
23460
|
+
function formatAuthorizationList(authorizationList) {
|
23461
|
+
return authorizationList.map((authorization) => ({
|
23462
|
+
contractAddress: authorization.address,
|
23463
|
+
chainId: Number(authorization.chainId),
|
23464
|
+
nonce: Number(authorization.nonce),
|
23465
|
+
r: authorization.r,
|
23466
|
+
s: authorization.s,
|
23467
|
+
yParity: Number(authorization.yParity)
|
23468
|
+
}));
|
23469
|
+
}
|
23470
|
+
|
23471
|
+
// node_modules/viem/_esm/utils/formatters/block.js
|
23472
|
+
function formatBlock(block) {
|
23473
|
+
const transactions = (block.transactions ?? []).map((transaction) => {
|
23474
|
+
if (typeof transaction === "string")
|
23475
|
+
return transaction;
|
23476
|
+
return formatTransaction(transaction);
|
23477
|
+
});
|
23478
|
+
return {
|
23479
|
+
...block,
|
23480
|
+
baseFeePerGas: block.baseFeePerGas ? BigInt(block.baseFeePerGas) : null,
|
23481
|
+
blobGasUsed: block.blobGasUsed ? BigInt(block.blobGasUsed) : undefined,
|
23482
|
+
difficulty: block.difficulty ? BigInt(block.difficulty) : undefined,
|
23483
|
+
excessBlobGas: block.excessBlobGas ? BigInt(block.excessBlobGas) : undefined,
|
23484
|
+
gasLimit: block.gasLimit ? BigInt(block.gasLimit) : undefined,
|
23485
|
+
gasUsed: block.gasUsed ? BigInt(block.gasUsed) : undefined,
|
23486
|
+
hash: block.hash ? block.hash : null,
|
23487
|
+
logsBloom: block.logsBloom ? block.logsBloom : null,
|
23488
|
+
nonce: block.nonce ? block.nonce : null,
|
23489
|
+
number: block.number ? BigInt(block.number) : null,
|
23490
|
+
size: block.size ? BigInt(block.size) : undefined,
|
23491
|
+
timestamp: block.timestamp ? BigInt(block.timestamp) : undefined,
|
23492
|
+
transactions,
|
23493
|
+
totalDifficulty: block.totalDifficulty ? BigInt(block.totalDifficulty) : null
|
23494
|
+
};
|
23495
|
+
}
|
23496
|
+
var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
|
23497
|
+
|
23498
|
+
// node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
23499
|
+
init_toBytes();
|
23500
|
+
init_toHex();
|
23501
|
+
function blobsToCommitments(parameters) {
|
23502
|
+
const { kzg } = parameters;
|
23503
|
+
const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
23504
|
+
const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
|
23505
|
+
const commitments = [];
|
23506
|
+
for (const blob of blobs)
|
23507
|
+
commitments.push(Uint8Array.from(kzg.blobToKzgCommitment(blob)));
|
23508
|
+
return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
|
23509
|
+
}
|
23510
|
+
|
23511
|
+
// node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
23512
|
+
init_toBytes();
|
23513
|
+
init_toHex();
|
23514
|
+
function blobsToProofs(parameters) {
|
23515
|
+
const { kzg } = parameters;
|
23516
|
+
const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
23517
|
+
const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
|
23518
|
+
const commitments = typeof parameters.commitments[0] === "string" ? parameters.commitments.map((x) => hexToBytes(x)) : parameters.commitments;
|
23519
|
+
const proofs = [];
|
23520
|
+
for (let i = 0;i < blobs.length; i++) {
|
23521
|
+
const blob = blobs[i];
|
23522
|
+
const commitment = commitments[i];
|
23523
|
+
proofs.push(Uint8Array.from(kzg.computeBlobKzgProof(blob, commitment)));
|
23524
|
+
}
|
23525
|
+
return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
|
23526
|
+
}
|
23527
|
+
|
23528
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
23529
|
+
init_toHex();
|
23530
|
+
|
23531
|
+
// node_modules/viem/_esm/utils/hash/sha256.js
|
23532
|
+
init_sha256();
|
23533
|
+
init_toBytes();
|
23534
|
+
init_toHex();
|
23535
|
+
function sha2562(value6, to_) {
|
23536
|
+
const to = to_ || "hex";
|
23537
|
+
const bytes = sha256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
23538
|
+
if (to === "bytes")
|
23539
|
+
return bytes;
|
23540
|
+
return toHex(bytes);
|
23541
|
+
}
|
23542
|
+
|
23543
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
23544
|
+
function commitmentToVersionedHash(parameters) {
|
23545
|
+
const { commitment, version: version2 = 1 } = parameters;
|
23546
|
+
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
23547
|
+
const versionedHash = sha2562(commitment, "bytes");
|
23548
|
+
versionedHash.set([version2], 0);
|
23549
|
+
return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
|
23550
|
+
}
|
23551
|
+
|
23552
|
+
// node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
23553
|
+
function commitmentsToVersionedHashes(parameters) {
|
23554
|
+
const { commitments, version: version2 } = parameters;
|
23555
|
+
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
23556
|
+
const hashes = [];
|
23557
|
+
for (const commitment of commitments) {
|
23558
|
+
hashes.push(commitmentToVersionedHash({
|
23559
|
+
commitment,
|
23560
|
+
to,
|
23561
|
+
version: version2
|
23562
|
+
}));
|
23563
|
+
}
|
23564
|
+
return hashes;
|
23565
|
+
}
|
23566
|
+
|
23567
|
+
// node_modules/viem/_esm/constants/blob.js
|
23568
|
+
var blobsPerTransaction = 6;
|
23569
|
+
var bytesPerFieldElement = 32;
|
23570
|
+
var fieldElementsPerBlob = 4096;
|
23571
|
+
var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
|
23572
|
+
var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
|
23573
|
+
|
23574
|
+
// node_modules/viem/_esm/constants/kzg.js
|
23575
|
+
var versionedHashVersionKzg = 1;
|
23576
|
+
|
23577
|
+
// node_modules/viem/_esm/errors/blob.js
|
23578
|
+
init_base();
|
23579
|
+
|
23580
|
+
class BlobSizeTooLargeError extends BaseError {
|
23581
|
+
constructor({ maxSize, size: size22 }) {
|
23582
|
+
super("Blob size is too large.", {
|
23583
|
+
metaMessages: [`Max: ${maxSize} bytes`, `Given: ${size22} bytes`],
|
23584
|
+
name: "BlobSizeTooLargeError"
|
23585
|
+
});
|
23586
|
+
}
|
23587
|
+
}
|
23588
|
+
|
23589
|
+
class EmptyBlobError extends BaseError {
|
23590
|
+
constructor() {
|
23591
|
+
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
23592
|
+
}
|
23593
|
+
}
|
23594
|
+
|
23595
|
+
class InvalidVersionedHashSizeError extends BaseError {
|
23596
|
+
constructor({ hash: hash2, size: size22 }) {
|
23597
|
+
super(`Versioned hash "${hash2}" size is invalid.`, {
|
23598
|
+
metaMessages: ["Expected: 32", `Received: ${size22}`],
|
23599
|
+
name: "InvalidVersionedHashSizeError"
|
23600
|
+
});
|
23601
|
+
}
|
23602
|
+
}
|
23603
|
+
|
23604
|
+
class InvalidVersionedHashVersionError extends BaseError {
|
23605
|
+
constructor({ hash: hash2, version: version2 }) {
|
23606
|
+
super(`Versioned hash "${hash2}" version is invalid.`, {
|
23607
|
+
metaMessages: [
|
23608
|
+
`Expected: ${versionedHashVersionKzg}`,
|
23609
|
+
`Received: ${version2}`
|
23610
|
+
],
|
23611
|
+
name: "InvalidVersionedHashVersionError"
|
23612
|
+
});
|
23613
|
+
}
|
23614
|
+
}
|
23615
|
+
|
23616
|
+
// node_modules/viem/_esm/utils/blob/toBlobs.js
|
23617
|
+
init_cursor2();
|
23618
|
+
init_size();
|
23619
|
+
init_toBytes();
|
23620
|
+
init_toHex();
|
23621
|
+
function toBlobs(parameters) {
|
23622
|
+
const to = parameters.to ?? (typeof parameters.data === "string" ? "hex" : "bytes");
|
23623
|
+
const data = typeof parameters.data === "string" ? hexToBytes(parameters.data) : parameters.data;
|
23624
|
+
const size_ = size21(data);
|
23625
|
+
if (!size_)
|
23626
|
+
throw new EmptyBlobError;
|
23627
|
+
if (size_ > maxBytesPerTransaction)
|
23628
|
+
throw new BlobSizeTooLargeError({
|
23629
|
+
maxSize: maxBytesPerTransaction,
|
23630
|
+
size: size_
|
23631
|
+
});
|
23632
|
+
const blobs = [];
|
23633
|
+
let active2 = true;
|
23634
|
+
let position = 0;
|
23635
|
+
while (active2) {
|
23636
|
+
const blob = createCursor(new Uint8Array(bytesPerBlob));
|
23637
|
+
let size22 = 0;
|
23638
|
+
while (size22 < fieldElementsPerBlob) {
|
23639
|
+
const bytes = data.slice(position, position + (bytesPerFieldElement - 1));
|
23640
|
+
blob.pushByte(0);
|
23641
|
+
blob.pushBytes(bytes);
|
23642
|
+
if (bytes.length < 31) {
|
23643
|
+
blob.pushByte(128);
|
23644
|
+
active2 = false;
|
23645
|
+
break;
|
23646
|
+
}
|
23647
|
+
size22++;
|
23648
|
+
position += 31;
|
23649
|
+
}
|
23650
|
+
blobs.push(blob);
|
23651
|
+
}
|
23652
|
+
return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
|
23653
|
+
}
|
23654
|
+
|
23655
|
+
// node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
23656
|
+
function toBlobSidecars(parameters) {
|
23657
|
+
const { data, kzg, to } = parameters;
|
23658
|
+
const blobs = parameters.blobs ?? toBlobs({ data, to });
|
23659
|
+
const commitments = parameters.commitments ?? blobsToCommitments({ blobs, kzg, to });
|
23660
|
+
const proofs = parameters.proofs ?? blobsToProofs({ blobs, commitments, kzg, to });
|
23661
|
+
const sidecars = [];
|
23662
|
+
for (let i = 0;i < blobs.length; i++)
|
23663
|
+
sidecars.push({
|
23664
|
+
blob: blobs[i],
|
23665
|
+
commitment: commitments[i],
|
23666
|
+
proof: proofs[i]
|
23667
|
+
});
|
23668
|
+
return sidecars;
|
23669
|
+
}
|
23670
|
+
|
23671
|
+
// node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
23672
|
+
init_transaction();
|
23673
|
+
function getTransactionType(transaction) {
|
23674
|
+
if (transaction.type)
|
23675
|
+
return transaction.type;
|
23676
|
+
if (typeof transaction.authorizationList !== "undefined")
|
23677
|
+
return "eip7702";
|
23678
|
+
if (typeof transaction.blobs !== "undefined" || typeof transaction.blobVersionedHashes !== "undefined" || typeof transaction.maxFeePerBlobGas !== "undefined" || typeof transaction.sidecars !== "undefined")
|
23679
|
+
return "eip4844";
|
23680
|
+
if (typeof transaction.maxFeePerGas !== "undefined" || typeof transaction.maxPriorityFeePerGas !== "undefined") {
|
23681
|
+
return "eip1559";
|
23682
|
+
}
|
23683
|
+
if (typeof transaction.gasPrice !== "undefined") {
|
23684
|
+
if (typeof transaction.accessList !== "undefined")
|
23685
|
+
return "eip2930";
|
23686
|
+
return "legacy";
|
23687
|
+
}
|
23688
|
+
throw new InvalidSerializableTransactionError({ transaction });
|
23689
|
+
}
|
23690
|
+
|
23691
|
+
// node_modules/viem/_esm/utils/formatters/log.js
|
23692
|
+
function formatLog(log3, { args: args2, eventName } = {}) {
|
23693
|
+
return {
|
23694
|
+
...log3,
|
23695
|
+
blockHash: log3.blockHash ? log3.blockHash : null,
|
23696
|
+
blockNumber: log3.blockNumber ? BigInt(log3.blockNumber) : null,
|
23697
|
+
logIndex: log3.logIndex ? Number(log3.logIndex) : null,
|
23698
|
+
transactionHash: log3.transactionHash ? log3.transactionHash : null,
|
23699
|
+
transactionIndex: log3.transactionIndex ? Number(log3.transactionIndex) : null,
|
23700
|
+
...eventName ? { args: args2, eventName } : {}
|
23701
|
+
};
|
23702
|
+
}
|
23703
|
+
|
23704
|
+
// node_modules/viem/_esm/utils/chain/defineChain.js
|
23705
|
+
function defineChain(chain) {
|
23706
|
+
return {
|
23707
|
+
formatters: undefined,
|
23708
|
+
fees: undefined,
|
23709
|
+
serializers: undefined,
|
23710
|
+
...chain
|
23711
|
+
};
|
23712
|
+
}
|
23713
|
+
|
23714
|
+
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
23715
|
+
init_abi();
|
23716
|
+
init_address();
|
23717
|
+
init_isAddress();
|
23718
|
+
init_pad();
|
23719
|
+
init_toHex();
|
23720
|
+
init_regex();
|
23721
|
+
function encodePacked(types, values7) {
|
23722
|
+
if (types.length !== values7.length)
|
23723
|
+
throw new AbiEncodingLengthMismatchError({
|
23724
|
+
expectedLength: types.length,
|
23725
|
+
givenLength: values7.length
|
23726
|
+
});
|
23727
|
+
const data = [];
|
23728
|
+
for (let i = 0;i < types.length; i++) {
|
23729
|
+
const type2 = types[i];
|
23730
|
+
const value6 = values7[i];
|
23731
|
+
data.push(encode6(type2, value6));
|
23732
|
+
}
|
23733
|
+
return concatHex(data);
|
23734
|
+
}
|
23735
|
+
function encode6(type2, value6, isArray2 = false) {
|
23736
|
+
if (type2 === "address") {
|
23737
|
+
const address = value6;
|
23738
|
+
if (!isAddress(address))
|
23739
|
+
throw new InvalidAddressError({ address });
|
23740
|
+
return pad(address.toLowerCase(), {
|
23741
|
+
size: isArray2 ? 32 : null
|
22375
23742
|
});
|
22376
23743
|
}
|
22377
23744
|
if (type2 === "string")
|
@@ -22413,7 +23780,350 @@ function encode6(type2, value6, isArray2 = false) {
|
|
22413
23780
|
throw new UnsupportedPackedAbiType(type2);
|
22414
23781
|
}
|
22415
23782
|
|
22416
|
-
//
|
23783
|
+
// node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
23784
|
+
init_fromHex();
|
23785
|
+
var receiptStatuses = {
|
23786
|
+
"0x0": "reverted",
|
23787
|
+
"0x1": "success"
|
23788
|
+
};
|
23789
|
+
function formatTransactionReceipt(transactionReceipt) {
|
23790
|
+
const receipt = {
|
23791
|
+
...transactionReceipt,
|
23792
|
+
blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
|
23793
|
+
contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
|
23794
|
+
cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
|
23795
|
+
effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
|
23796
|
+
gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
|
23797
|
+
logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
|
23798
|
+
to: transactionReceipt.to ? transactionReceipt.to : null,
|
23799
|
+
transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
|
23800
|
+
status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
|
23801
|
+
type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
|
23802
|
+
};
|
23803
|
+
if (transactionReceipt.blobGasPrice)
|
23804
|
+
receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
|
23805
|
+
if (transactionReceipt.blobGasUsed)
|
23806
|
+
receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
|
23807
|
+
return receipt;
|
23808
|
+
}
|
23809
|
+
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
23810
|
+
|
23811
|
+
// node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
23812
|
+
init_number();
|
23813
|
+
init_address();
|
23814
|
+
init_base();
|
23815
|
+
init_chain();
|
23816
|
+
init_node();
|
23817
|
+
init_isAddress();
|
23818
|
+
init_size();
|
23819
|
+
init_slice();
|
23820
|
+
init_fromHex();
|
23821
|
+
function assertTransactionEIP7702(transaction) {
|
23822
|
+
const { authorizationList } = transaction;
|
23823
|
+
if (authorizationList) {
|
23824
|
+
for (const authorization of authorizationList) {
|
23825
|
+
const { contractAddress, chainId } = authorization;
|
23826
|
+
if (!isAddress(contractAddress))
|
23827
|
+
throw new InvalidAddressError({ address: contractAddress });
|
23828
|
+
if (chainId < 0)
|
23829
|
+
throw new InvalidChainIdError({ chainId });
|
23830
|
+
}
|
23831
|
+
}
|
23832
|
+
assertTransactionEIP1559(transaction);
|
23833
|
+
}
|
23834
|
+
function assertTransactionEIP4844(transaction) {
|
23835
|
+
const { blobVersionedHashes } = transaction;
|
23836
|
+
if (blobVersionedHashes) {
|
23837
|
+
if (blobVersionedHashes.length === 0)
|
23838
|
+
throw new EmptyBlobError;
|
23839
|
+
for (const hash2 of blobVersionedHashes) {
|
23840
|
+
const size_ = size21(hash2);
|
23841
|
+
const version2 = hexToNumber(slice(hash2, 0, 1));
|
23842
|
+
if (size_ !== 32)
|
23843
|
+
throw new InvalidVersionedHashSizeError({ hash: hash2, size: size_ });
|
23844
|
+
if (version2 !== versionedHashVersionKzg)
|
23845
|
+
throw new InvalidVersionedHashVersionError({
|
23846
|
+
hash: hash2,
|
23847
|
+
version: version2
|
23848
|
+
});
|
23849
|
+
}
|
23850
|
+
}
|
23851
|
+
assertTransactionEIP1559(transaction);
|
23852
|
+
}
|
23853
|
+
function assertTransactionEIP1559(transaction) {
|
23854
|
+
const { chainId, maxPriorityFeePerGas, maxFeePerGas, to } = transaction;
|
23855
|
+
if (chainId <= 0)
|
23856
|
+
throw new InvalidChainIdError({ chainId });
|
23857
|
+
if (to && !isAddress(to))
|
23858
|
+
throw new InvalidAddressError({ address: to });
|
23859
|
+
if (maxFeePerGas && maxFeePerGas > maxUint256)
|
23860
|
+
throw new FeeCapTooHighError({ maxFeePerGas });
|
23861
|
+
if (maxPriorityFeePerGas && maxFeePerGas && maxPriorityFeePerGas > maxFeePerGas)
|
23862
|
+
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
23863
|
+
}
|
23864
|
+
function assertTransactionEIP2930(transaction) {
|
23865
|
+
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
|
23866
|
+
if (chainId <= 0)
|
23867
|
+
throw new InvalidChainIdError({ chainId });
|
23868
|
+
if (to && !isAddress(to))
|
23869
|
+
throw new InvalidAddressError({ address: to });
|
23870
|
+
if (maxPriorityFeePerGas || maxFeePerGas)
|
23871
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
23872
|
+
if (gasPrice && gasPrice > maxUint256)
|
23873
|
+
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
23874
|
+
}
|
23875
|
+
function assertTransactionLegacy(transaction) {
|
23876
|
+
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
|
23877
|
+
if (to && !isAddress(to))
|
23878
|
+
throw new InvalidAddressError({ address: to });
|
23879
|
+
if (typeof chainId !== "undefined" && chainId <= 0)
|
23880
|
+
throw new InvalidChainIdError({ chainId });
|
23881
|
+
if (maxPriorityFeePerGas || maxFeePerGas)
|
23882
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
23883
|
+
if (gasPrice && gasPrice > maxUint256)
|
23884
|
+
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
23885
|
+
}
|
23886
|
+
|
23887
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
23888
|
+
init_transaction();
|
23889
|
+
init_toHex();
|
23890
|
+
|
23891
|
+
// node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
|
23892
|
+
init_toHex();
|
23893
|
+
function serializeAuthorizationList(authorizationList) {
|
23894
|
+
if (!authorizationList || authorizationList.length === 0)
|
23895
|
+
return [];
|
23896
|
+
const serializedAuthorizationList = [];
|
23897
|
+
for (const authorization of authorizationList) {
|
23898
|
+
const { contractAddress, chainId, nonce, ...signature } = authorization;
|
23899
|
+
serializedAuthorizationList.push([
|
23900
|
+
chainId ? toHex(chainId) : "0x",
|
23901
|
+
contractAddress,
|
23902
|
+
nonce ? toHex(nonce) : "0x",
|
23903
|
+
...toYParitySignatureArray({}, signature)
|
23904
|
+
]);
|
23905
|
+
}
|
23906
|
+
return serializedAuthorizationList;
|
23907
|
+
}
|
23908
|
+
|
23909
|
+
// node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
23910
|
+
init_address();
|
23911
|
+
init_transaction();
|
23912
|
+
init_isAddress();
|
23913
|
+
function serializeAccessList(accessList) {
|
23914
|
+
if (!accessList || accessList.length === 0)
|
23915
|
+
return [];
|
23916
|
+
const serializedAccessList = [];
|
23917
|
+
for (let i = 0;i < accessList.length; i++) {
|
23918
|
+
const { address, storageKeys } = accessList[i];
|
23919
|
+
for (let j = 0;j < storageKeys.length; j++) {
|
23920
|
+
if (storageKeys[j].length - 2 !== 64) {
|
23921
|
+
throw new InvalidStorageKeySizeError({ storageKey: storageKeys[j] });
|
23922
|
+
}
|
23923
|
+
}
|
23924
|
+
if (!isAddress(address, { strict: false })) {
|
23925
|
+
throw new InvalidAddressError({ address });
|
23926
|
+
}
|
23927
|
+
serializedAccessList.push([address, storageKeys]);
|
23928
|
+
}
|
23929
|
+
return serializedAccessList;
|
23930
|
+
}
|
23931
|
+
|
23932
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
23933
|
+
function serializeTransaction(transaction, signature) {
|
23934
|
+
const type2 = getTransactionType(transaction);
|
23935
|
+
if (type2 === "eip1559")
|
23936
|
+
return serializeTransactionEIP1559(transaction, signature);
|
23937
|
+
if (type2 === "eip2930")
|
23938
|
+
return serializeTransactionEIP2930(transaction, signature);
|
23939
|
+
if (type2 === "eip4844")
|
23940
|
+
return serializeTransactionEIP4844(transaction, signature);
|
23941
|
+
if (type2 === "eip7702")
|
23942
|
+
return serializeTransactionEIP7702(transaction, signature);
|
23943
|
+
return serializeTransactionLegacy(transaction, signature);
|
23944
|
+
}
|
23945
|
+
function serializeTransactionEIP7702(transaction, signature) {
|
23946
|
+
const { authorizationList, chainId, gas, nonce, to, value: value6, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
23947
|
+
assertTransactionEIP7702(transaction);
|
23948
|
+
const serializedAccessList = serializeAccessList(accessList);
|
23949
|
+
const serializedAuthorizationList = serializeAuthorizationList(authorizationList);
|
23950
|
+
return concatHex([
|
23951
|
+
"0x04",
|
23952
|
+
toRlp([
|
23953
|
+
toHex(chainId),
|
23954
|
+
nonce ? toHex(nonce) : "0x",
|
23955
|
+
maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
|
23956
|
+
maxFeePerGas ? toHex(maxFeePerGas) : "0x",
|
23957
|
+
gas ? toHex(gas) : "0x",
|
23958
|
+
to ?? "0x",
|
23959
|
+
value6 ? toHex(value6) : "0x",
|
23960
|
+
data ?? "0x",
|
23961
|
+
serializedAccessList,
|
23962
|
+
serializedAuthorizationList,
|
23963
|
+
...toYParitySignatureArray(transaction, signature)
|
23964
|
+
])
|
23965
|
+
]);
|
23966
|
+
}
|
23967
|
+
function serializeTransactionEIP4844(transaction, signature) {
|
23968
|
+
const { chainId, gas, nonce, to, value: value6, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
23969
|
+
assertTransactionEIP4844(transaction);
|
23970
|
+
let blobVersionedHashes = transaction.blobVersionedHashes;
|
23971
|
+
let sidecars = transaction.sidecars;
|
23972
|
+
if (transaction.blobs && (typeof blobVersionedHashes === "undefined" || typeof sidecars === "undefined")) {
|
23973
|
+
const blobs2 = typeof transaction.blobs[0] === "string" ? transaction.blobs : transaction.blobs.map((x) => bytesToHex2(x));
|
23974
|
+
const kzg = transaction.kzg;
|
23975
|
+
const commitments2 = blobsToCommitments({
|
23976
|
+
blobs: blobs2,
|
23977
|
+
kzg
|
23978
|
+
});
|
23979
|
+
if (typeof blobVersionedHashes === "undefined")
|
23980
|
+
blobVersionedHashes = commitmentsToVersionedHashes({
|
23981
|
+
commitments: commitments2
|
23982
|
+
});
|
23983
|
+
if (typeof sidecars === "undefined") {
|
23984
|
+
const proofs2 = blobsToProofs({ blobs: blobs2, commitments: commitments2, kzg });
|
23985
|
+
sidecars = toBlobSidecars({ blobs: blobs2, commitments: commitments2, proofs: proofs2 });
|
23986
|
+
}
|
23987
|
+
}
|
23988
|
+
const serializedAccessList = serializeAccessList(accessList);
|
23989
|
+
const serializedTransaction = [
|
23990
|
+
toHex(chainId),
|
23991
|
+
nonce ? toHex(nonce) : "0x",
|
23992
|
+
maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
|
23993
|
+
maxFeePerGas ? toHex(maxFeePerGas) : "0x",
|
23994
|
+
gas ? toHex(gas) : "0x",
|
23995
|
+
to ?? "0x",
|
23996
|
+
value6 ? toHex(value6) : "0x",
|
23997
|
+
data ?? "0x",
|
23998
|
+
serializedAccessList,
|
23999
|
+
maxFeePerBlobGas ? toHex(maxFeePerBlobGas) : "0x",
|
24000
|
+
blobVersionedHashes ?? [],
|
24001
|
+
...toYParitySignatureArray(transaction, signature)
|
24002
|
+
];
|
24003
|
+
const blobs = [];
|
24004
|
+
const commitments = [];
|
24005
|
+
const proofs = [];
|
24006
|
+
if (sidecars)
|
24007
|
+
for (let i = 0;i < sidecars.length; i++) {
|
24008
|
+
const { blob, commitment, proof } = sidecars[i];
|
24009
|
+
blobs.push(blob);
|
24010
|
+
commitments.push(commitment);
|
24011
|
+
proofs.push(proof);
|
24012
|
+
}
|
24013
|
+
return concatHex([
|
24014
|
+
"0x03",
|
24015
|
+
sidecars ? toRlp([serializedTransaction, blobs, commitments, proofs]) : toRlp(serializedTransaction)
|
24016
|
+
]);
|
24017
|
+
}
|
24018
|
+
function serializeTransactionEIP1559(transaction, signature) {
|
24019
|
+
const { chainId, gas, nonce, to, value: value6, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
24020
|
+
assertTransactionEIP1559(transaction);
|
24021
|
+
const serializedAccessList = serializeAccessList(accessList);
|
24022
|
+
const serializedTransaction = [
|
24023
|
+
toHex(chainId),
|
24024
|
+
nonce ? toHex(nonce) : "0x",
|
24025
|
+
maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
|
24026
|
+
maxFeePerGas ? toHex(maxFeePerGas) : "0x",
|
24027
|
+
gas ? toHex(gas) : "0x",
|
24028
|
+
to ?? "0x",
|
24029
|
+
value6 ? toHex(value6) : "0x",
|
24030
|
+
data ?? "0x",
|
24031
|
+
serializedAccessList,
|
24032
|
+
...toYParitySignatureArray(transaction, signature)
|
24033
|
+
];
|
24034
|
+
return concatHex([
|
24035
|
+
"0x02",
|
24036
|
+
toRlp(serializedTransaction)
|
24037
|
+
]);
|
24038
|
+
}
|
24039
|
+
function serializeTransactionEIP2930(transaction, signature) {
|
24040
|
+
const { chainId, gas, data, nonce, to, value: value6, accessList, gasPrice } = transaction;
|
24041
|
+
assertTransactionEIP2930(transaction);
|
24042
|
+
const serializedAccessList = serializeAccessList(accessList);
|
24043
|
+
const serializedTransaction = [
|
24044
|
+
toHex(chainId),
|
24045
|
+
nonce ? toHex(nonce) : "0x",
|
24046
|
+
gasPrice ? toHex(gasPrice) : "0x",
|
24047
|
+
gas ? toHex(gas) : "0x",
|
24048
|
+
to ?? "0x",
|
24049
|
+
value6 ? toHex(value6) : "0x",
|
24050
|
+
data ?? "0x",
|
24051
|
+
serializedAccessList,
|
24052
|
+
...toYParitySignatureArray(transaction, signature)
|
24053
|
+
];
|
24054
|
+
return concatHex([
|
24055
|
+
"0x01",
|
24056
|
+
toRlp(serializedTransaction)
|
24057
|
+
]);
|
24058
|
+
}
|
24059
|
+
function serializeTransactionLegacy(transaction, signature) {
|
24060
|
+
const { chainId = 0, gas, data, nonce, to, value: value6, gasPrice } = transaction;
|
24061
|
+
assertTransactionLegacy(transaction);
|
24062
|
+
let serializedTransaction = [
|
24063
|
+
nonce ? toHex(nonce) : "0x",
|
24064
|
+
gasPrice ? toHex(gasPrice) : "0x",
|
24065
|
+
gas ? toHex(gas) : "0x",
|
24066
|
+
to ?? "0x",
|
24067
|
+
value6 ? toHex(value6) : "0x",
|
24068
|
+
data ?? "0x"
|
24069
|
+
];
|
24070
|
+
if (signature) {
|
24071
|
+
const v = (() => {
|
24072
|
+
if (signature.v >= 35n) {
|
24073
|
+
const inferredChainId = (signature.v - 35n) / 2n;
|
24074
|
+
if (inferredChainId > 0)
|
24075
|
+
return signature.v;
|
24076
|
+
return 27n + (signature.v === 35n ? 0n : 1n);
|
24077
|
+
}
|
24078
|
+
if (chainId > 0)
|
24079
|
+
return BigInt(chainId * 2) + BigInt(35n + signature.v - 27n);
|
24080
|
+
const v2 = 27n + (signature.v === 27n ? 0n : 1n);
|
24081
|
+
if (signature.v !== v2)
|
24082
|
+
throw new InvalidLegacyVError({ v: signature.v });
|
24083
|
+
return v2;
|
24084
|
+
})();
|
24085
|
+
const r = trim(signature.r);
|
24086
|
+
const s = trim(signature.s);
|
24087
|
+
serializedTransaction = [
|
24088
|
+
...serializedTransaction,
|
24089
|
+
toHex(v),
|
24090
|
+
r === "0x00" ? "0x" : r,
|
24091
|
+
s === "0x00" ? "0x" : s
|
24092
|
+
];
|
24093
|
+
} else if (chainId > 0) {
|
24094
|
+
serializedTransaction = [
|
24095
|
+
...serializedTransaction,
|
24096
|
+
toHex(chainId),
|
24097
|
+
"0x",
|
24098
|
+
"0x"
|
24099
|
+
];
|
24100
|
+
}
|
24101
|
+
return toRlp(serializedTransaction);
|
24102
|
+
}
|
24103
|
+
function toYParitySignatureArray(transaction, signature_) {
|
24104
|
+
const signature = signature_ ?? transaction;
|
24105
|
+
const { v, yParity } = signature;
|
24106
|
+
if (typeof signature.r === "undefined")
|
24107
|
+
return [];
|
24108
|
+
if (typeof signature.s === "undefined")
|
24109
|
+
return [];
|
24110
|
+
if (typeof v === "undefined" && typeof yParity === "undefined")
|
24111
|
+
return [];
|
24112
|
+
const r = trim(signature.r);
|
24113
|
+
const s = trim(signature.s);
|
24114
|
+
const yParity_ = (() => {
|
24115
|
+
if (typeof yParity === "number")
|
24116
|
+
return yParity ? toHex(1) : "0x";
|
24117
|
+
if (v === 0n)
|
24118
|
+
return "0x";
|
24119
|
+
if (v === 1n)
|
24120
|
+
return toHex(1);
|
24121
|
+
return v === 27n ? "0x" : toHex(1);
|
24122
|
+
})();
|
24123
|
+
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
24124
|
+
}
|
24125
|
+
|
24126
|
+
// node_modules/viem/_esm/index.js
|
22417
24127
|
init_toBytes();
|
22418
24128
|
init_toHex();
|
22419
24129
|
// src/schema.ts
|
@@ -22494,6 +24204,270 @@ function getSupportedChain(chainish) {
|
|
22494
24204
|
|
22495
24205
|
// src/generated/lightning.ts
|
22496
24206
|
var lightningDeployments = [
|
24207
|
+
{
|
24208
|
+
name: "incoLightning_0_1_29__183408998",
|
24209
|
+
executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
|
24210
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24211
|
+
pepper: "testnet",
|
24212
|
+
version: {
|
24213
|
+
major: 0,
|
24214
|
+
minor: 1,
|
24215
|
+
patch: 29,
|
24216
|
+
shortSalt: "183408998"
|
24217
|
+
},
|
24218
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
|
24219
|
+
decryptSigner: "0x000000000000000000000000000000000000baBe",
|
24220
|
+
eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
|
24221
|
+
chainId: "7311099111",
|
24222
|
+
blockNumber: "1",
|
24223
|
+
chainName: "Inco Release Chain",
|
24224
|
+
active: true,
|
24225
|
+
deployDate: "2025-04-22T16:02:38.372Z",
|
24226
|
+
commit: "v3-28-g93c05a49-dirty",
|
24227
|
+
addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
|
24228
|
+
},
|
24229
|
+
{
|
24230
|
+
name: "incoLightning_0_1_29__183408998",
|
24231
|
+
executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
|
24232
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24233
|
+
pepper: "testnet",
|
24234
|
+
version: {
|
24235
|
+
major: 0,
|
24236
|
+
minor: 1,
|
24237
|
+
patch: 29,
|
24238
|
+
shortSalt: "183408998"
|
24239
|
+
},
|
24240
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
|
24241
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24242
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24243
|
+
chainId: "10143",
|
24244
|
+
blockNumber: "13464615",
|
24245
|
+
chainName: "Monad Testnet",
|
24246
|
+
active: true,
|
24247
|
+
deployDate: "2025-04-22T16:01:14.380Z",
|
24248
|
+
commit: "v3-28-g93c05a49-dirty",
|
24249
|
+
addTwoAddress: "0x3E0Aa45e4BD7E86093460A302803298a0EE7155a"
|
24250
|
+
},
|
24251
|
+
{
|
24252
|
+
name: "incoLightning_0_1_29__183408998",
|
24253
|
+
executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
|
24254
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24255
|
+
pepper: "testnet",
|
24256
|
+
version: {
|
24257
|
+
major: 0,
|
24258
|
+
minor: 1,
|
24259
|
+
patch: 29,
|
24260
|
+
shortSalt: "183408998"
|
24261
|
+
},
|
24262
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
|
24263
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24264
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24265
|
+
chainId: "84532",
|
24266
|
+
blockNumber: "24784654",
|
24267
|
+
chainName: "Base Sepolia",
|
24268
|
+
active: true,
|
24269
|
+
deployDate: "2025-04-22T16:00:02.028Z",
|
24270
|
+
commit: "v3-28-g93c05a49-dirty",
|
24271
|
+
addTwoAddress: "0xF10E6B2ddd168D105546f39E1Ba64004E4FbeF10"
|
24272
|
+
},
|
24273
|
+
{
|
24274
|
+
name: "incoLightning_0_1_29__340846814",
|
24275
|
+
executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
|
24276
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24277
|
+
pepper: "devnet",
|
24278
|
+
version: {
|
24279
|
+
major: 0,
|
24280
|
+
minor: 1,
|
24281
|
+
patch: 29,
|
24282
|
+
shortSalt: "340846814"
|
24283
|
+
},
|
24284
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
|
24285
|
+
decryptSigner: "0x000000000000000000000000000000000000baBe",
|
24286
|
+
eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
|
24287
|
+
chainId: "7311099111",
|
24288
|
+
blockNumber: "1",
|
24289
|
+
chainName: "Inco Release Chain",
|
24290
|
+
active: true,
|
24291
|
+
deployDate: "2025-04-22T15:59:01.071Z",
|
24292
|
+
commit: "v3-28-g93c05a49-dirty",
|
24293
|
+
addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
|
24294
|
+
},
|
24295
|
+
{
|
24296
|
+
name: "incoLightning_0_1_29__340846814",
|
24297
|
+
executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
|
24298
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24299
|
+
pepper: "devnet",
|
24300
|
+
version: {
|
24301
|
+
major: 0,
|
24302
|
+
minor: 1,
|
24303
|
+
patch: 29,
|
24304
|
+
shortSalt: "340846814"
|
24305
|
+
},
|
24306
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
|
24307
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24308
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24309
|
+
chainId: "10143",
|
24310
|
+
blockNumber: "13464197",
|
24311
|
+
chainName: "Monad Testnet",
|
24312
|
+
active: true,
|
24313
|
+
deployDate: "2025-04-22T15:57:26.862Z",
|
24314
|
+
commit: "v3-28-g93c05a49-dirty",
|
24315
|
+
addTwoAddress: "0x6A23b79203F1Db95947423291C8177B144DDE372"
|
24316
|
+
},
|
24317
|
+
{
|
24318
|
+
name: "incoLightning_0_1_29__340846814",
|
24319
|
+
executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
|
24320
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24321
|
+
pepper: "devnet",
|
24322
|
+
version: {
|
24323
|
+
major: 0,
|
24324
|
+
minor: 1,
|
24325
|
+
patch: 29,
|
24326
|
+
shortSalt: "340846814"
|
24327
|
+
},
|
24328
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
|
24329
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24330
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24331
|
+
chainId: "84532",
|
24332
|
+
blockNumber: "24784527",
|
24333
|
+
chainName: "Base Sepolia",
|
24334
|
+
active: true,
|
24335
|
+
deployDate: "2025-04-22T15:55:47.828Z",
|
24336
|
+
commit: "v3-28-g93c05a49-dirty",
|
24337
|
+
addTwoAddress: "0x1A98fB1f7E57C0648b1d2A7DEA6e126C302A7e93"
|
24338
|
+
},
|
24339
|
+
{
|
24340
|
+
name: "incoLightning_0_1_27__558243565",
|
24341
|
+
executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
|
24342
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24343
|
+
pepper: "testnet",
|
24344
|
+
version: {
|
24345
|
+
major: 0,
|
24346
|
+
minor: 1,
|
24347
|
+
patch: 27,
|
24348
|
+
shortSalt: "558243565"
|
24349
|
+
},
|
24350
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
|
24351
|
+
decryptSigner: "0x000000000000000000000000000000000000baBe",
|
24352
|
+
eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
|
24353
|
+
chainId: "7311099111",
|
24354
|
+
blockNumber: "1",
|
24355
|
+
chainName: "Inco Release Chain",
|
24356
|
+
active: true,
|
24357
|
+
deployDate: "2025-04-22T14:57:24.620Z",
|
24358
|
+
commit: "v3-28-g652cc4a1-dirty",
|
24359
|
+
addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
|
24360
|
+
},
|
24361
|
+
{
|
24362
|
+
name: "incoLightning_0_1_27__558243565",
|
24363
|
+
executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
|
24364
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24365
|
+
pepper: "testnet",
|
24366
|
+
version: {
|
24367
|
+
major: 0,
|
24368
|
+
minor: 1,
|
24369
|
+
patch: 27,
|
24370
|
+
shortSalt: "558243565"
|
24371
|
+
},
|
24372
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
|
24373
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24374
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24375
|
+
chainId: "10143",
|
24376
|
+
blockNumber: "13457424",
|
24377
|
+
chainName: "Monad Testnet",
|
24378
|
+
active: true,
|
24379
|
+
deployDate: "2025-04-22T14:57:15.486Z",
|
24380
|
+
commit: "v3-28-g652cc4a1-dirty",
|
24381
|
+
addTwoAddress: "0xbbf1f797b5e132b72f4a45E1923cBb0BFeca80FA"
|
24382
|
+
},
|
24383
|
+
{
|
24384
|
+
name: "incoLightning_0_1_27__558243565",
|
24385
|
+
executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
|
24386
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24387
|
+
pepper: "testnet",
|
24388
|
+
version: {
|
24389
|
+
major: 0,
|
24390
|
+
minor: 1,
|
24391
|
+
patch: 27,
|
24392
|
+
shortSalt: "558243565"
|
24393
|
+
},
|
24394
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
|
24395
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24396
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24397
|
+
chainId: "84532",
|
24398
|
+
blockNumber: "24782764",
|
24399
|
+
chainName: "Base Sepolia",
|
24400
|
+
active: true,
|
24401
|
+
deployDate: "2025-04-22T14:57:02.375Z",
|
24402
|
+
commit: "v3-28-g652cc4a1",
|
24403
|
+
addTwoAddress: "0x0c6320A91ec6BA7d42B4f079132fD71A90C12e22"
|
24404
|
+
},
|
24405
|
+
{
|
24406
|
+
name: "incoLightning_0_1_27__125335042",
|
24407
|
+
executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
|
24408
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24409
|
+
pepper: "devnet",
|
24410
|
+
version: {
|
24411
|
+
major: 0,
|
24412
|
+
minor: 1,
|
24413
|
+
patch: 27,
|
24414
|
+
shortSalt: "125335042"
|
24415
|
+
},
|
24416
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
|
24417
|
+
decryptSigner: "0x000000000000000000000000000000000000baBe",
|
24418
|
+
eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
|
24419
|
+
chainId: "7311099111",
|
24420
|
+
blockNumber: "1",
|
24421
|
+
chainName: "Inco Release Chain",
|
24422
|
+
active: true,
|
24423
|
+
deployDate: "2025-04-22T14:35:10.281Z",
|
24424
|
+
commit: "v3-27-ge3d04b6a-dirty",
|
24425
|
+
addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
|
24426
|
+
},
|
24427
|
+
{
|
24428
|
+
name: "incoLightning_0_1_27__125335042",
|
24429
|
+
executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
|
24430
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24431
|
+
pepper: "devnet",
|
24432
|
+
version: {
|
24433
|
+
major: 0,
|
24434
|
+
minor: 1,
|
24435
|
+
patch: 27,
|
24436
|
+
shortSalt: "125335042"
|
24437
|
+
},
|
24438
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
|
24439
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24440
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24441
|
+
chainId: "10143",
|
24442
|
+
blockNumber: "13454931",
|
24443
|
+
chainName: "Monad Testnet",
|
24444
|
+
active: true,
|
24445
|
+
deployDate: "2025-04-22T14:35:02.958Z",
|
24446
|
+
commit: "v3-27-ge3d04b6a-dirty",
|
24447
|
+
addTwoAddress: "0xC1ee708D522B8b0743B5C5309AeD6b6b4C4102a6"
|
24448
|
+
},
|
24449
|
+
{
|
24450
|
+
name: "incoLightning_0_1_27__125335042",
|
24451
|
+
executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
|
24452
|
+
deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
|
24453
|
+
pepper: "devnet",
|
24454
|
+
version: {
|
24455
|
+
major: 0,
|
24456
|
+
minor: 1,
|
24457
|
+
patch: 27,
|
24458
|
+
shortSalt: "125335042"
|
24459
|
+
},
|
24460
|
+
salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
|
24461
|
+
decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
|
24462
|
+
eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
|
24463
|
+
chainId: "84532",
|
24464
|
+
blockNumber: "24782097",
|
24465
|
+
chainName: "Base Sepolia",
|
24466
|
+
active: true,
|
24467
|
+
deployDate: "2025-04-22T14:34:47.565Z",
|
24468
|
+
commit: "v3-27-ge3d04b6a-dirty",
|
24469
|
+
addTwoAddress: "0xAac318ca07FCA665c4d27A7e9e8FB65B89AfAC83"
|
24470
|
+
},
|
22497
24471
|
{
|
22498
24472
|
name: "incoLightning_0_1_26__18043964",
|
22499
24473
|
executorAddress: "0x69Ef6a59f9eE2d6f3b49eA3F79bcF1553512DF0e",
|
@@ -22514,7 +24488,6 @@ var lightningDeployments = [
|
|
22514
24488
|
active: true,
|
22515
24489
|
deployDate: "2025-04-22T12:14:50.447Z",
|
22516
24490
|
commit: "v3-26-g623cec72-dirty",
|
22517
|
-
sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
|
22518
24491
|
addTwoAddress: "0x70fC34B18B12E945cb2204FA77E5f8e1581890C3"
|
22519
24492
|
},
|
22520
24493
|
{
|
@@ -22537,7 +24510,6 @@ var lightningDeployments = [
|
|
22537
24510
|
active: true,
|
22538
24511
|
deployDate: "2025-04-22T12:14:42.391Z",
|
22539
24512
|
commit: "v3-26-g623cec72-dirty",
|
22540
|
-
sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
|
22541
24513
|
addTwoAddress: "0x4A49112FB866F6d5D05845D264b430cD3bbAb9f6"
|
22542
24514
|
},
|
22543
24515
|
{
|
@@ -22560,7 +24532,6 @@ var lightningDeployments = [
|
|
22560
24532
|
active: true,
|
22561
24533
|
deployDate: "2025-04-22T12:14:25.354Z",
|
22562
24534
|
commit: "v3-26-g623cec72-dirty",
|
22563
|
-
sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
|
22564
24535
|
addTwoAddress: "0x2b5E34844997681168049783D30CD84B5962cb50"
|
22565
24536
|
},
|
22566
24537
|
{
|
@@ -22583,7 +24554,6 @@ var lightningDeployments = [
|
|
22583
24554
|
active: true,
|
22584
24555
|
deployDate: "2025-04-22T09:11:15.398Z",
|
22585
24556
|
commit: "v3-24-gc9716e6c-dirty",
|
22586
|
-
sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
|
22587
24557
|
addTwoAddress: "0x70fC34B18B12E945cb2204FA77E5f8e1581890C3"
|
22588
24558
|
},
|
22589
24559
|
{
|
@@ -22606,7 +24576,6 @@ var lightningDeployments = [
|
|
22606
24576
|
active: true,
|
22607
24577
|
deployDate: "2025-04-22T09:11:06.223Z",
|
22608
24578
|
commit: "v3-24-gc9716e6c-dirty",
|
22609
|
-
sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
|
22610
24579
|
addTwoAddress: "0xfeE9C1E41b2268a4ad8EaDA35f510b8d89Cd041c"
|
22611
24580
|
},
|
22612
24581
|
{
|
@@ -22629,7 +24598,6 @@ var lightningDeployments = [
|
|
22629
24598
|
active: true,
|
22630
24599
|
deployDate: "2025-04-22T09:10:33.275Z",
|
22631
24600
|
commit: "v3-24-gc9716e6c-dirty",
|
22632
|
-
sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
|
22633
24601
|
addTwoAddress: "0xeEa387f7c866A81c2AF532D9ed48c60F179C9827"
|
22634
24602
|
}
|
22635
24603
|
];
|