@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.
@@ -41,7 +41,7 @@ var __export = (target, all) => {
41
41
  };
42
42
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
43
43
 
44
- // ../node_modules/viem/_esm/utils/data/isHex.js
44
+ // node_modules/viem/_esm/utils/data/isHex.js
45
45
  function isHex(value6, { strict: strict2 = true } = {}) {
46
46
  if (!value6)
47
47
  return false;
@@ -50,18 +50,19 @@ function isHex(value6, { strict: strict2 = true } = {}) {
50
50
  return strict2 ? /^0x[0-9a-fA-F]*$/.test(value6) : value6.startsWith("0x");
51
51
  }
52
52
 
53
- // ../node_modules/viem/_esm/utils/data/size.js
53
+ // node_modules/viem/_esm/utils/data/size.js
54
54
  function size21(value6) {
55
55
  if (isHex(value6, { strict: false }))
56
56
  return Math.ceil((value6.length - 2) / 2);
57
57
  return value6.length;
58
58
  }
59
- var init_size = () => {};
59
+ var init_size = () => {
60
+ };
60
61
 
61
- // ../node_modules/viem/_esm/errors/version.js
62
- var version = "2.24.3";
62
+ // node_modules/viem/_esm/errors/version.js
63
+ var version = "2.22.23";
63
64
 
64
- // ../node_modules/viem/_esm/errors/base.js
65
+ // node_modules/viem/_esm/errors/base.js
65
66
  function walk(err, fn) {
66
67
  if (fn?.(err))
67
68
  return err;
@@ -149,7 +150,7 @@ var init_base = __esm(() => {
149
150
  };
150
151
  });
151
152
 
152
- // ../node_modules/viem/_esm/errors/abi.js
153
+ // node_modules/viem/_esm/errors/abi.js
153
154
  var AbiEncodingLengthMismatchError, BytesSizeMismatchError, UnsupportedPackedAbiType;
154
155
  var init_abi = __esm(() => {
155
156
  init_base();
@@ -179,10 +180,15 @@ var init_abi = __esm(() => {
179
180
  };
180
181
  });
181
182
 
182
- // ../node_modules/viem/_esm/errors/data.js
183
- var SizeExceedsPaddingSizeError;
183
+ // node_modules/viem/_esm/errors/data.js
184
+ var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
184
185
  var init_data = __esm(() => {
185
186
  init_base();
187
+ SliceOffsetOutOfBoundsError = class SliceOffsetOutOfBoundsError extends BaseError {
188
+ constructor({ offset, position, size: size22 }) {
189
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size22}).`, { name: "SliceOffsetOutOfBoundsError" });
190
+ }
191
+ };
186
192
  SizeExceedsPaddingSizeError = class SizeExceedsPaddingSizeError extends BaseError {
187
193
  constructor({ size: size22, targetSize, type: type2 }) {
188
194
  super(`${type2.charAt(0).toUpperCase()}${type2.slice(1).toLowerCase()} size (${size22}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
@@ -190,7 +196,7 @@ var init_data = __esm(() => {
190
196
  };
191
197
  });
192
198
 
193
- // ../node_modules/viem/_esm/utils/data/pad.js
199
+ // node_modules/viem/_esm/utils/data/pad.js
194
200
  function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
195
201
  if (typeof hexOrBytes === "string")
196
202
  return padHex(hexOrBytes, { dir: dir2, size: size22 });
@@ -228,7 +234,7 @@ var init_pad = __esm(() => {
228
234
  init_data();
229
235
  });
230
236
 
231
- // ../node_modules/viem/_esm/errors/encoding.js
237
+ // node_modules/viem/_esm/errors/encoding.js
232
238
  var IntegerOutOfRangeError, SizeOverflowError;
233
239
  var init_encoding = __esm(() => {
234
240
  init_base();
@@ -244,7 +250,26 @@ var init_encoding = __esm(() => {
244
250
  };
245
251
  });
246
252
 
247
- // ../node_modules/viem/_esm/utils/encoding/fromHex.js
253
+ // node_modules/viem/_esm/utils/data/trim.js
254
+ function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
255
+ let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
256
+ let sliceLength = 0;
257
+ for (let i = 0;i < data.length - 1; i++) {
258
+ if (data[dir2 === "left" ? i : data.length - i - 1].toString() === "0")
259
+ sliceLength++;
260
+ else
261
+ break;
262
+ }
263
+ data = dir2 === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
264
+ if (typeof hexOrBytes === "string") {
265
+ if (data.length === 1 && dir2 === "right")
266
+ data = `${data}0`;
267
+ return `0x${data.length % 2 === 1 ? `0${data}` : data}`;
268
+ }
269
+ return data;
270
+ }
271
+
272
+ // node_modules/viem/_esm/utils/encoding/fromHex.js
248
273
  function assertSize(hexOrBytes, { size: size22 }) {
249
274
  if (size21(hexOrBytes) > size22)
250
275
  throw new SizeOverflowError({
@@ -252,12 +277,28 @@ function assertSize(hexOrBytes, { size: size22 }) {
252
277
  maxSize: size22
253
278
  });
254
279
  }
280
+ function hexToBigInt(hex, opts = {}) {
281
+ const { signed } = opts;
282
+ if (opts.size)
283
+ assertSize(hex, { size: opts.size });
284
+ const value6 = BigInt(hex);
285
+ if (!signed)
286
+ return value6;
287
+ const size22 = (hex.length - 2) / 2;
288
+ const max6 = (1n << BigInt(size22) * 8n - 1n) - 1n;
289
+ if (value6 <= max6)
290
+ return value6;
291
+ return value6 - BigInt(`0x${"f".padStart(size22 * 2, "f")}`) - 1n;
292
+ }
293
+ function hexToNumber(hex, opts = {}) {
294
+ return Number(hexToBigInt(hex, opts));
295
+ }
255
296
  var init_fromHex = __esm(() => {
256
297
  init_encoding();
257
298
  init_size();
258
299
  });
259
300
 
260
- // ../node_modules/viem/_esm/utils/encoding/toHex.js
301
+ // node_modules/viem/_esm/utils/encoding/toHex.js
261
302
  function toHex(value6, opts = {}) {
262
303
  if (typeof value6 === "number" || typeof value6 === "bigint")
263
304
  return numberToHex(value6, opts);
@@ -329,7 +370,7 @@ var init_toHex = __esm(() => {
329
370
  encoder2 = /* @__PURE__ */ new TextEncoder;
330
371
  });
331
372
 
332
- // ../node_modules/viem/_esm/utils/encoding/toBytes.js
373
+ // node_modules/viem/_esm/utils/encoding/toBytes.js
333
374
  function toBytes(value6, opts = {}) {
334
375
  if (typeof value6 === "number" || typeof value6 === "bigint")
335
376
  return numberToBytes(value6, opts);
@@ -434,7 +475,8 @@ function aoutput(out, instance) {
434
475
  throw new Error("digestInto() expects output buffer of length at least " + min4);
435
476
  }
436
477
  }
437
- var init__assert = () => {};
478
+ var init__assert = () => {
479
+ };
438
480
 
439
481
  // ../node_modules/@noble/hashes/esm/_u64.js
440
482
  function fromBig(n, le = false) {
@@ -461,6 +503,12 @@ var init__u64 = __esm(() => {
461
503
  function u32(arr) {
462
504
  return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
463
505
  }
506
+ function createView(arr) {
507
+ return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
508
+ }
509
+ function rotr(word, shift2) {
510
+ return word << 32 - shift2 | word >>> shift2;
511
+ }
464
512
  function byteSwap(word) {
465
513
  return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
466
514
  }
@@ -696,7 +744,7 @@ var init_sha3 = __esm(() => {
696
744
  shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
697
745
  });
698
746
 
699
- // ../node_modules/viem/_esm/utils/hash/keccak256.js
747
+ // node_modules/viem/_esm/utils/hash/keccak256.js
700
748
  function keccak256(value6, to_) {
701
749
  const to = to_ || "hex";
702
750
  const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
@@ -710,7 +758,7 @@ var init_keccak256 = __esm(() => {
710
758
  init_toHex();
711
759
  });
712
760
 
713
- // ../node_modules/viem/_esm/errors/address.js
761
+ // node_modules/viem/_esm/errors/address.js
714
762
  var InvalidAddressError;
715
763
  var init_address = __esm(() => {
716
764
  init_base();
@@ -727,7 +775,7 @@ var init_address = __esm(() => {
727
775
  };
728
776
  });
729
777
 
730
- // ../node_modules/viem/_esm/utils/lru.js
778
+ // node_modules/viem/_esm/utils/lru.js
731
779
  var LruMap;
732
780
  var init_lru = __esm(() => {
733
781
  LruMap = class LruMap extends Map {
@@ -761,7 +809,7 @@ var init_lru = __esm(() => {
761
809
  };
762
810
  });
763
811
 
764
- // ../node_modules/viem/_esm/utils/address/getAddress.js
812
+ // node_modules/viem/_esm/utils/address/getAddress.js
765
813
  function checksumAddress(address_, chainId) {
766
814
  if (checksumAddressCache.has(`${address_}.${chainId}`))
767
815
  return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -788,7 +836,7 @@ var init_getAddress = __esm(() => {
788
836
  checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
789
837
  });
790
838
 
791
- // ../node_modules/viem/_esm/utils/address/isAddress.js
839
+ // node_modules/viem/_esm/utils/address/isAddress.js
792
840
  function isAddress(address, options) {
793
841
  const { strict: strict2 = true } = options ?? {};
794
842
  const cacheKey = `${address}.${strict2}`;
@@ -814,12 +862,58 @@ var init_isAddress = __esm(() => {
814
862
  isAddressCache = /* @__PURE__ */ new LruMap(8192);
815
863
  });
816
864
 
817
- // ../node_modules/viem/_esm/utils/data/concat.js
865
+ // node_modules/viem/_esm/utils/data/concat.js
818
866
  function concatHex(values7) {
819
867
  return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
820
868
  }
821
869
 
822
- // ../node_modules/viem/_esm/utils/regex.js
870
+ // node_modules/viem/_esm/utils/data/slice.js
871
+ function slice(value6, start5, end6, { strict: strict2 } = {}) {
872
+ if (isHex(value6, { strict: false }))
873
+ return sliceHex(value6, start5, end6, {
874
+ strict: strict2
875
+ });
876
+ return sliceBytes(value6, start5, end6, {
877
+ strict: strict2
878
+ });
879
+ }
880
+ function assertStartOffset(value6, start5) {
881
+ if (typeof start5 === "number" && start5 > 0 && start5 > size21(value6) - 1)
882
+ throw new SliceOffsetOutOfBoundsError({
883
+ offset: start5,
884
+ position: "start",
885
+ size: size21(value6)
886
+ });
887
+ }
888
+ function assertEndOffset(value6, start5, end6) {
889
+ if (typeof start5 === "number" && typeof end6 === "number" && size21(value6) !== end6 - start5) {
890
+ throw new SliceOffsetOutOfBoundsError({
891
+ offset: end6,
892
+ position: "end",
893
+ size: size21(value6)
894
+ });
895
+ }
896
+ }
897
+ function sliceBytes(value_, start5, end6, { strict: strict2 } = {}) {
898
+ assertStartOffset(value_, start5);
899
+ const value6 = value_.slice(start5, end6);
900
+ if (strict2)
901
+ assertEndOffset(value6, start5, end6);
902
+ return value6;
903
+ }
904
+ function sliceHex(value_, start5, end6, { strict: strict2 } = {}) {
905
+ assertStartOffset(value_, start5);
906
+ const value6 = `0x${value_.replace("0x", "").slice((start5 ?? 0) * 2, (end6 ?? value_.length) * 2)}`;
907
+ if (strict2)
908
+ assertEndOffset(value6, start5, end6);
909
+ return value6;
910
+ }
911
+ var init_slice = __esm(() => {
912
+ init_data();
913
+ init_size();
914
+ });
915
+
916
+ // node_modules/viem/_esm/utils/regex.js
823
917
  var arrayRegex, bytesRegex, integerRegex;
824
918
  var init_regex = __esm(() => {
825
919
  arrayRegex = /^(.*)\[([0-9]*)\]$/;
@@ -827,6 +921,861 @@ var init_regex = __esm(() => {
827
921
  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)?$/;
828
922
  });
829
923
 
924
+ // node_modules/viem/_esm/errors/cursor.js
925
+ var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
926
+ var init_cursor = __esm(() => {
927
+ init_base();
928
+ NegativeOffsetError = class NegativeOffsetError extends BaseError {
929
+ constructor({ offset }) {
930
+ super(`Offset \`${offset}\` cannot be negative.`, {
931
+ name: "NegativeOffsetError"
932
+ });
933
+ }
934
+ };
935
+ PositionOutOfBoundsError = class PositionOutOfBoundsError extends BaseError {
936
+ constructor({ length: length4, position }) {
937
+ super(`Position \`${position}\` is out of bounds (\`0 < position < ${length4}\`).`, { name: "PositionOutOfBoundsError" });
938
+ }
939
+ };
940
+ RecursiveReadLimitExceededError = class RecursiveReadLimitExceededError extends BaseError {
941
+ constructor({ count: count5, limit }) {
942
+ super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count5}\`).`, { name: "RecursiveReadLimitExceededError" });
943
+ }
944
+ };
945
+ });
946
+
947
+ // node_modules/viem/_esm/utils/cursor.js
948
+ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
949
+ const cursor = Object.create(staticCursor);
950
+ cursor.bytes = bytes;
951
+ cursor.dataView = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
952
+ cursor.positionReadCount = new Map;
953
+ cursor.recursiveReadLimit = recursiveReadLimit;
954
+ return cursor;
955
+ }
956
+ var staticCursor;
957
+ var init_cursor2 = __esm(() => {
958
+ init_cursor();
959
+ staticCursor = {
960
+ bytes: new Uint8Array,
961
+ dataView: new DataView(new ArrayBuffer(0)),
962
+ position: 0,
963
+ positionReadCount: new Map,
964
+ recursiveReadCount: 0,
965
+ recursiveReadLimit: Number.POSITIVE_INFINITY,
966
+ assertReadLimit() {
967
+ if (this.recursiveReadCount >= this.recursiveReadLimit)
968
+ throw new RecursiveReadLimitExceededError({
969
+ count: this.recursiveReadCount + 1,
970
+ limit: this.recursiveReadLimit
971
+ });
972
+ },
973
+ assertPosition(position) {
974
+ if (position < 0 || position > this.bytes.length - 1)
975
+ throw new PositionOutOfBoundsError({
976
+ length: this.bytes.length,
977
+ position
978
+ });
979
+ },
980
+ decrementPosition(offset) {
981
+ if (offset < 0)
982
+ throw new NegativeOffsetError({ offset });
983
+ const position = this.position - offset;
984
+ this.assertPosition(position);
985
+ this.position = position;
986
+ },
987
+ getReadCount(position) {
988
+ return this.positionReadCount.get(position || this.position) || 0;
989
+ },
990
+ incrementPosition(offset) {
991
+ if (offset < 0)
992
+ throw new NegativeOffsetError({ offset });
993
+ const position = this.position + offset;
994
+ this.assertPosition(position);
995
+ this.position = position;
996
+ },
997
+ inspectByte(position_) {
998
+ const position = position_ ?? this.position;
999
+ this.assertPosition(position);
1000
+ return this.bytes[position];
1001
+ },
1002
+ inspectBytes(length4, position_) {
1003
+ const position = position_ ?? this.position;
1004
+ this.assertPosition(position + length4 - 1);
1005
+ return this.bytes.subarray(position, position + length4);
1006
+ },
1007
+ inspectUint8(position_) {
1008
+ const position = position_ ?? this.position;
1009
+ this.assertPosition(position);
1010
+ return this.bytes[position];
1011
+ },
1012
+ inspectUint16(position_) {
1013
+ const position = position_ ?? this.position;
1014
+ this.assertPosition(position + 1);
1015
+ return this.dataView.getUint16(position);
1016
+ },
1017
+ inspectUint24(position_) {
1018
+ const position = position_ ?? this.position;
1019
+ this.assertPosition(position + 2);
1020
+ return (this.dataView.getUint16(position) << 8) + this.dataView.getUint8(position + 2);
1021
+ },
1022
+ inspectUint32(position_) {
1023
+ const position = position_ ?? this.position;
1024
+ this.assertPosition(position + 3);
1025
+ return this.dataView.getUint32(position);
1026
+ },
1027
+ pushByte(byte) {
1028
+ this.assertPosition(this.position);
1029
+ this.bytes[this.position] = byte;
1030
+ this.position++;
1031
+ },
1032
+ pushBytes(bytes) {
1033
+ this.assertPosition(this.position + bytes.length - 1);
1034
+ this.bytes.set(bytes, this.position);
1035
+ this.position += bytes.length;
1036
+ },
1037
+ pushUint8(value6) {
1038
+ this.assertPosition(this.position);
1039
+ this.bytes[this.position] = value6;
1040
+ this.position++;
1041
+ },
1042
+ pushUint16(value6) {
1043
+ this.assertPosition(this.position + 1);
1044
+ this.dataView.setUint16(this.position, value6);
1045
+ this.position += 2;
1046
+ },
1047
+ pushUint24(value6) {
1048
+ this.assertPosition(this.position + 2);
1049
+ this.dataView.setUint16(this.position, value6 >> 8);
1050
+ this.dataView.setUint8(this.position + 2, value6 & ~4294967040);
1051
+ this.position += 3;
1052
+ },
1053
+ pushUint32(value6) {
1054
+ this.assertPosition(this.position + 3);
1055
+ this.dataView.setUint32(this.position, value6);
1056
+ this.position += 4;
1057
+ },
1058
+ readByte() {
1059
+ this.assertReadLimit();
1060
+ this._touch();
1061
+ const value6 = this.inspectByte();
1062
+ this.position++;
1063
+ return value6;
1064
+ },
1065
+ readBytes(length4, size22) {
1066
+ this.assertReadLimit();
1067
+ this._touch();
1068
+ const value6 = this.inspectBytes(length4);
1069
+ this.position += size22 ?? length4;
1070
+ return value6;
1071
+ },
1072
+ readUint8() {
1073
+ this.assertReadLimit();
1074
+ this._touch();
1075
+ const value6 = this.inspectUint8();
1076
+ this.position += 1;
1077
+ return value6;
1078
+ },
1079
+ readUint16() {
1080
+ this.assertReadLimit();
1081
+ this._touch();
1082
+ const value6 = this.inspectUint16();
1083
+ this.position += 2;
1084
+ return value6;
1085
+ },
1086
+ readUint24() {
1087
+ this.assertReadLimit();
1088
+ this._touch();
1089
+ const value6 = this.inspectUint24();
1090
+ this.position += 3;
1091
+ return value6;
1092
+ },
1093
+ readUint32() {
1094
+ this.assertReadLimit();
1095
+ this._touch();
1096
+ const value6 = this.inspectUint32();
1097
+ this.position += 4;
1098
+ return value6;
1099
+ },
1100
+ get remaining() {
1101
+ return this.bytes.length - this.position;
1102
+ },
1103
+ setPosition(position) {
1104
+ const oldPosition = this.position;
1105
+ this.assertPosition(position);
1106
+ this.position = position;
1107
+ return () => this.position = oldPosition;
1108
+ },
1109
+ _touch() {
1110
+ if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
1111
+ return;
1112
+ const count5 = this.getReadCount();
1113
+ this.positionReadCount.set(this.position, count5 + 1);
1114
+ if (count5 > 0)
1115
+ this.recursiveReadCount++;
1116
+ }
1117
+ };
1118
+ });
1119
+
1120
+ // node_modules/viem/_esm/constants/unit.js
1121
+ var gweiUnits;
1122
+ var init_unit = __esm(() => {
1123
+ gweiUnits = {
1124
+ ether: -9,
1125
+ wei: 9
1126
+ };
1127
+ });
1128
+
1129
+ // node_modules/viem/_esm/utils/unit/formatUnits.js
1130
+ function formatUnits(value6, decimals) {
1131
+ let display = value6.toString();
1132
+ const negative2 = display.startsWith("-");
1133
+ if (negative2)
1134
+ display = display.slice(1);
1135
+ display = display.padStart(decimals, "0");
1136
+ let [integer3, fraction] = [
1137
+ display.slice(0, display.length - decimals),
1138
+ display.slice(display.length - decimals)
1139
+ ];
1140
+ fraction = fraction.replace(/(0+)$/, "");
1141
+ return `${negative2 ? "-" : ""}${integer3 || "0"}${fraction ? `.${fraction}` : ""}`;
1142
+ }
1143
+
1144
+ // node_modules/viem/_esm/utils/unit/formatGwei.js
1145
+ function formatGwei(wei, unit = "wei") {
1146
+ return formatUnits(wei, gweiUnits[unit]);
1147
+ }
1148
+ var init_formatGwei = __esm(() => {
1149
+ init_unit();
1150
+ });
1151
+
1152
+ // node_modules/viem/_esm/errors/transaction.js
1153
+ function prettyPrint(args2) {
1154
+ const entries3 = Object.entries(args2).map(([key, value6]) => {
1155
+ if (value6 === undefined || value6 === false)
1156
+ return null;
1157
+ return [key, value6];
1158
+ }).filter(Boolean);
1159
+ const maxLength2 = entries3.reduce((acc, [key]) => Math.max(acc, key.length), 0);
1160
+ return entries3.map(([key, value6]) => ` ${`${key}:`.padEnd(maxLength2 + 1)} ${value6}`).join(`
1161
+ `);
1162
+ }
1163
+ var InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError;
1164
+ var init_transaction = __esm(() => {
1165
+ init_base();
1166
+ InvalidLegacyVError = class InvalidLegacyVError extends BaseError {
1167
+ constructor({ v }) {
1168
+ super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
1169
+ name: "InvalidLegacyVError"
1170
+ });
1171
+ }
1172
+ };
1173
+ InvalidSerializableTransactionError = class InvalidSerializableTransactionError extends BaseError {
1174
+ constructor({ transaction }) {
1175
+ super("Cannot infer a transaction type from provided transaction.", {
1176
+ metaMessages: [
1177
+ "Provided Transaction:",
1178
+ "{",
1179
+ prettyPrint(transaction),
1180
+ "}",
1181
+ "",
1182
+ "To infer the type, either provide:",
1183
+ "- a `type` to the Transaction, or",
1184
+ "- an EIP-1559 Transaction with `maxFeePerGas`, or",
1185
+ "- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
1186
+ "- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
1187
+ "- an EIP-7702 Transaction with `authorizationList`, or",
1188
+ "- a Legacy Transaction with `gasPrice`"
1189
+ ],
1190
+ name: "InvalidSerializableTransactionError"
1191
+ });
1192
+ }
1193
+ };
1194
+ InvalidStorageKeySizeError = class InvalidStorageKeySizeError extends BaseError {
1195
+ constructor({ storageKey }) {
1196
+ super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
1197
+ }
1198
+ };
1199
+ });
1200
+
1201
+ // node_modules/viem/_esm/errors/node.js
1202
+ var ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, NonceTooHighError, NonceTooLowError, NonceMaxValueError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, TransactionTypeNotSupportedError, TipAboveFeeCapError;
1203
+ var init_node = __esm(() => {
1204
+ init_formatGwei();
1205
+ init_base();
1206
+ ExecutionRevertedError = class ExecutionRevertedError extends BaseError {
1207
+ constructor({ cause: cause2, message } = {}) {
1208
+ const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
1209
+ super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
1210
+ cause: cause2,
1211
+ name: "ExecutionRevertedError"
1212
+ });
1213
+ }
1214
+ };
1215
+ Object.defineProperty(ExecutionRevertedError, "code", {
1216
+ enumerable: true,
1217
+ configurable: true,
1218
+ writable: true,
1219
+ value: 3
1220
+ });
1221
+ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
1222
+ enumerable: true,
1223
+ configurable: true,
1224
+ writable: true,
1225
+ value: /execution reverted/
1226
+ });
1227
+ FeeCapTooHighError = class FeeCapTooHighError extends BaseError {
1228
+ constructor({ cause: cause2, maxFeePerGas } = {}) {
1229
+ super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
1230
+ cause: cause2,
1231
+ name: "FeeCapTooHighError"
1232
+ });
1233
+ }
1234
+ };
1235
+ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
1236
+ enumerable: true,
1237
+ configurable: true,
1238
+ writable: true,
1239
+ value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1240
+ });
1241
+ FeeCapTooLowError = class FeeCapTooLowError extends BaseError {
1242
+ constructor({ cause: cause2, maxFeePerGas } = {}) {
1243
+ super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
1244
+ cause: cause2,
1245
+ name: "FeeCapTooLowError"
1246
+ });
1247
+ }
1248
+ };
1249
+ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
1250
+ enumerable: true,
1251
+ configurable: true,
1252
+ writable: true,
1253
+ value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1254
+ });
1255
+ NonceTooHighError = class NonceTooHighError extends BaseError {
1256
+ constructor({ cause: cause2, nonce } = {}) {
1257
+ super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause: cause2, name: "NonceTooHighError" });
1258
+ }
1259
+ };
1260
+ Object.defineProperty(NonceTooHighError, "nodeMessage", {
1261
+ enumerable: true,
1262
+ configurable: true,
1263
+ writable: true,
1264
+ value: /nonce too high/
1265
+ });
1266
+ NonceTooLowError = class NonceTooLowError extends BaseError {
1267
+ constructor({ cause: cause2, nonce } = {}) {
1268
+ super([
1269
+ `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
1270
+ "Try increasing the nonce or find the latest nonce with `getTransactionCount`."
1271
+ ].join(`
1272
+ `), { cause: cause2, name: "NonceTooLowError" });
1273
+ }
1274
+ };
1275
+ Object.defineProperty(NonceTooLowError, "nodeMessage", {
1276
+ enumerable: true,
1277
+ configurable: true,
1278
+ writable: true,
1279
+ value: /nonce too low|transaction already imported|already known/
1280
+ });
1281
+ NonceMaxValueError = class NonceMaxValueError extends BaseError {
1282
+ constructor({ cause: cause2, nonce } = {}) {
1283
+ super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause: cause2, name: "NonceMaxValueError" });
1284
+ }
1285
+ };
1286
+ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
1287
+ enumerable: true,
1288
+ configurable: true,
1289
+ writable: true,
1290
+ value: /nonce has max value/
1291
+ });
1292
+ InsufficientFundsError = class InsufficientFundsError extends BaseError {
1293
+ constructor({ cause: cause2 } = {}) {
1294
+ super([
1295
+ "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
1296
+ ].join(`
1297
+ `), {
1298
+ cause: cause2,
1299
+ metaMessages: [
1300
+ "This error could arise when the account does not have enough funds to:",
1301
+ " - pay for the total gas fee,",
1302
+ " - pay for the value to send.",
1303
+ " ",
1304
+ "The cost of the transaction is calculated as `gas * gas fee + value`, where:",
1305
+ " - `gas` is the amount of gas needed for transaction to execute,",
1306
+ " - `gas fee` is the gas fee,",
1307
+ " - `value` is the amount of ether to send to the recipient."
1308
+ ],
1309
+ name: "InsufficientFundsError"
1310
+ });
1311
+ }
1312
+ };
1313
+ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
1314
+ enumerable: true,
1315
+ configurable: true,
1316
+ writable: true,
1317
+ value: /insufficient funds|exceeds transaction sender account balance/
1318
+ });
1319
+ IntrinsicGasTooHighError = class IntrinsicGasTooHighError extends BaseError {
1320
+ constructor({ cause: cause2, gas } = {}) {
1321
+ super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1322
+ cause: cause2,
1323
+ name: "IntrinsicGasTooHighError"
1324
+ });
1325
+ }
1326
+ };
1327
+ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
1328
+ enumerable: true,
1329
+ configurable: true,
1330
+ writable: true,
1331
+ value: /intrinsic gas too high|gas limit reached/
1332
+ });
1333
+ IntrinsicGasTooLowError = class IntrinsicGasTooLowError extends BaseError {
1334
+ constructor({ cause: cause2, gas } = {}) {
1335
+ super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
1336
+ cause: cause2,
1337
+ name: "IntrinsicGasTooLowError"
1338
+ });
1339
+ }
1340
+ };
1341
+ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
1342
+ enumerable: true,
1343
+ configurable: true,
1344
+ writable: true,
1345
+ value: /intrinsic gas too low/
1346
+ });
1347
+ TransactionTypeNotSupportedError = class TransactionTypeNotSupportedError extends BaseError {
1348
+ constructor({ cause: cause2 }) {
1349
+ super("The transaction type is not supported for this chain.", {
1350
+ cause: cause2,
1351
+ name: "TransactionTypeNotSupportedError"
1352
+ });
1353
+ }
1354
+ };
1355
+ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
1356
+ enumerable: true,
1357
+ configurable: true,
1358
+ writable: true,
1359
+ value: /transaction type not valid/
1360
+ });
1361
+ TipAboveFeeCapError = class TipAboveFeeCapError extends BaseError {
1362
+ constructor({ cause: cause2, maxPriorityFeePerGas, maxFeePerGas } = {}) {
1363
+ super([
1364
+ `The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
1365
+ ].join(`
1366
+ `), {
1367
+ cause: cause2,
1368
+ name: "TipAboveFeeCapError"
1369
+ });
1370
+ }
1371
+ };
1372
+ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
1373
+ enumerable: true,
1374
+ configurable: true,
1375
+ writable: true,
1376
+ value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
1377
+ });
1378
+ });
1379
+
1380
+ // node_modules/viem/_esm/utils/formatters/formatter.js
1381
+ function defineFormatter(type2, format7) {
1382
+ return ({ exclude: exclude3, format: overrides }) => {
1383
+ return {
1384
+ exclude: exclude3,
1385
+ format: (args2) => {
1386
+ const formatted = format7(args2);
1387
+ if (exclude3) {
1388
+ for (const key of exclude3) {
1389
+ delete formatted[key];
1390
+ }
1391
+ }
1392
+ return {
1393
+ ...formatted,
1394
+ ...overrides(args2)
1395
+ };
1396
+ },
1397
+ type: type2
1398
+ };
1399
+ };
1400
+ }
1401
+
1402
+ // node_modules/viem/_esm/constants/number.js
1403
+ 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;
1404
+ var init_number = __esm(() => {
1405
+ maxInt8 = 2n ** (8n - 1n) - 1n;
1406
+ maxInt16 = 2n ** (16n - 1n) - 1n;
1407
+ maxInt24 = 2n ** (24n - 1n) - 1n;
1408
+ maxInt32 = 2n ** (32n - 1n) - 1n;
1409
+ maxInt40 = 2n ** (40n - 1n) - 1n;
1410
+ maxInt48 = 2n ** (48n - 1n) - 1n;
1411
+ maxInt56 = 2n ** (56n - 1n) - 1n;
1412
+ maxInt64 = 2n ** (64n - 1n) - 1n;
1413
+ maxInt72 = 2n ** (72n - 1n) - 1n;
1414
+ maxInt80 = 2n ** (80n - 1n) - 1n;
1415
+ maxInt88 = 2n ** (88n - 1n) - 1n;
1416
+ maxInt96 = 2n ** (96n - 1n) - 1n;
1417
+ maxInt104 = 2n ** (104n - 1n) - 1n;
1418
+ maxInt112 = 2n ** (112n - 1n) - 1n;
1419
+ maxInt120 = 2n ** (120n - 1n) - 1n;
1420
+ maxInt128 = 2n ** (128n - 1n) - 1n;
1421
+ maxInt136 = 2n ** (136n - 1n) - 1n;
1422
+ maxInt144 = 2n ** (144n - 1n) - 1n;
1423
+ maxInt152 = 2n ** (152n - 1n) - 1n;
1424
+ maxInt160 = 2n ** (160n - 1n) - 1n;
1425
+ maxInt168 = 2n ** (168n - 1n) - 1n;
1426
+ maxInt176 = 2n ** (176n - 1n) - 1n;
1427
+ maxInt184 = 2n ** (184n - 1n) - 1n;
1428
+ maxInt192 = 2n ** (192n - 1n) - 1n;
1429
+ maxInt200 = 2n ** (200n - 1n) - 1n;
1430
+ maxInt208 = 2n ** (208n - 1n) - 1n;
1431
+ maxInt216 = 2n ** (216n - 1n) - 1n;
1432
+ maxInt224 = 2n ** (224n - 1n) - 1n;
1433
+ maxInt232 = 2n ** (232n - 1n) - 1n;
1434
+ maxInt240 = 2n ** (240n - 1n) - 1n;
1435
+ maxInt248 = 2n ** (248n - 1n) - 1n;
1436
+ maxInt256 = 2n ** (256n - 1n) - 1n;
1437
+ minInt8 = -(2n ** (8n - 1n));
1438
+ minInt16 = -(2n ** (16n - 1n));
1439
+ minInt24 = -(2n ** (24n - 1n));
1440
+ minInt32 = -(2n ** (32n - 1n));
1441
+ minInt40 = -(2n ** (40n - 1n));
1442
+ minInt48 = -(2n ** (48n - 1n));
1443
+ minInt56 = -(2n ** (56n - 1n));
1444
+ minInt64 = -(2n ** (64n - 1n));
1445
+ minInt72 = -(2n ** (72n - 1n));
1446
+ minInt80 = -(2n ** (80n - 1n));
1447
+ minInt88 = -(2n ** (88n - 1n));
1448
+ minInt96 = -(2n ** (96n - 1n));
1449
+ minInt104 = -(2n ** (104n - 1n));
1450
+ minInt112 = -(2n ** (112n - 1n));
1451
+ minInt120 = -(2n ** (120n - 1n));
1452
+ minInt128 = -(2n ** (128n - 1n));
1453
+ minInt136 = -(2n ** (136n - 1n));
1454
+ minInt144 = -(2n ** (144n - 1n));
1455
+ minInt152 = -(2n ** (152n - 1n));
1456
+ minInt160 = -(2n ** (160n - 1n));
1457
+ minInt168 = -(2n ** (168n - 1n));
1458
+ minInt176 = -(2n ** (176n - 1n));
1459
+ minInt184 = -(2n ** (184n - 1n));
1460
+ minInt192 = -(2n ** (192n - 1n));
1461
+ minInt200 = -(2n ** (200n - 1n));
1462
+ minInt208 = -(2n ** (208n - 1n));
1463
+ minInt216 = -(2n ** (216n - 1n));
1464
+ minInt224 = -(2n ** (224n - 1n));
1465
+ minInt232 = -(2n ** (232n - 1n));
1466
+ minInt240 = -(2n ** (240n - 1n));
1467
+ minInt248 = -(2n ** (248n - 1n));
1468
+ minInt256 = -(2n ** (256n - 1n));
1469
+ maxUint8 = 2n ** 8n - 1n;
1470
+ maxUint16 = 2n ** 16n - 1n;
1471
+ maxUint24 = 2n ** 24n - 1n;
1472
+ maxUint32 = 2n ** 32n - 1n;
1473
+ maxUint40 = 2n ** 40n - 1n;
1474
+ maxUint48 = 2n ** 48n - 1n;
1475
+ maxUint56 = 2n ** 56n - 1n;
1476
+ maxUint64 = 2n ** 64n - 1n;
1477
+ maxUint72 = 2n ** 72n - 1n;
1478
+ maxUint80 = 2n ** 80n - 1n;
1479
+ maxUint88 = 2n ** 88n - 1n;
1480
+ maxUint96 = 2n ** 96n - 1n;
1481
+ maxUint104 = 2n ** 104n - 1n;
1482
+ maxUint112 = 2n ** 112n - 1n;
1483
+ maxUint120 = 2n ** 120n - 1n;
1484
+ maxUint128 = 2n ** 128n - 1n;
1485
+ maxUint136 = 2n ** 136n - 1n;
1486
+ maxUint144 = 2n ** 144n - 1n;
1487
+ maxUint152 = 2n ** 152n - 1n;
1488
+ maxUint160 = 2n ** 160n - 1n;
1489
+ maxUint168 = 2n ** 168n - 1n;
1490
+ maxUint176 = 2n ** 176n - 1n;
1491
+ maxUint184 = 2n ** 184n - 1n;
1492
+ maxUint192 = 2n ** 192n - 1n;
1493
+ maxUint200 = 2n ** 200n - 1n;
1494
+ maxUint208 = 2n ** 208n - 1n;
1495
+ maxUint216 = 2n ** 216n - 1n;
1496
+ maxUint224 = 2n ** 224n - 1n;
1497
+ maxUint232 = 2n ** 232n - 1n;
1498
+ maxUint240 = 2n ** 240n - 1n;
1499
+ maxUint248 = 2n ** 248n - 1n;
1500
+ maxUint256 = 2n ** 256n - 1n;
1501
+ });
1502
+
1503
+ // ../node_modules/@noble/hashes/esm/_md.js
1504
+ function setBigUint64(view, byteOffset, value6, isLE2) {
1505
+ if (typeof view.setBigUint64 === "function")
1506
+ return view.setBigUint64(byteOffset, value6, isLE2);
1507
+ const _32n2 = BigInt(32);
1508
+ const _u32_max = BigInt(4294967295);
1509
+ const wh = Number(value6 >> _32n2 & _u32_max);
1510
+ const wl = Number(value6 & _u32_max);
1511
+ const h = isLE2 ? 4 : 0;
1512
+ const l = isLE2 ? 0 : 4;
1513
+ view.setUint32(byteOffset + h, wh, isLE2);
1514
+ view.setUint32(byteOffset + l, wl, isLE2);
1515
+ }
1516
+ function Chi(a, b, c) {
1517
+ return a & b ^ ~a & c;
1518
+ }
1519
+ function Maj(a, b, c) {
1520
+ return a & b ^ a & c ^ b & c;
1521
+ }
1522
+ var HashMD;
1523
+ var init__md = __esm(() => {
1524
+ init__assert();
1525
+ init_utils();
1526
+ HashMD = class HashMD extends Hash {
1527
+ constructor(blockLen, outputLen, padOffset, isLE2) {
1528
+ super();
1529
+ this.blockLen = blockLen;
1530
+ this.outputLen = outputLen;
1531
+ this.padOffset = padOffset;
1532
+ this.isLE = isLE2;
1533
+ this.finished = false;
1534
+ this.length = 0;
1535
+ this.pos = 0;
1536
+ this.destroyed = false;
1537
+ this.buffer = new Uint8Array(blockLen);
1538
+ this.view = createView(this.buffer);
1539
+ }
1540
+ update(data) {
1541
+ aexists(this);
1542
+ const { view, buffer: buffer3, blockLen } = this;
1543
+ data = toBytes2(data);
1544
+ const len = data.length;
1545
+ for (let pos = 0;pos < len; ) {
1546
+ const take10 = Math.min(blockLen - this.pos, len - pos);
1547
+ if (take10 === blockLen) {
1548
+ const dataView = createView(data);
1549
+ for (;blockLen <= len - pos; pos += blockLen)
1550
+ this.process(dataView, pos);
1551
+ continue;
1552
+ }
1553
+ buffer3.set(data.subarray(pos, pos + take10), this.pos);
1554
+ this.pos += take10;
1555
+ pos += take10;
1556
+ if (this.pos === blockLen) {
1557
+ this.process(view, 0);
1558
+ this.pos = 0;
1559
+ }
1560
+ }
1561
+ this.length += data.length;
1562
+ this.roundClean();
1563
+ return this;
1564
+ }
1565
+ digestInto(out) {
1566
+ aexists(this);
1567
+ aoutput(out, this);
1568
+ this.finished = true;
1569
+ const { buffer: buffer3, view, blockLen, isLE: isLE2 } = this;
1570
+ let { pos } = this;
1571
+ buffer3[pos++] = 128;
1572
+ this.buffer.subarray(pos).fill(0);
1573
+ if (this.padOffset > blockLen - pos) {
1574
+ this.process(view, 0);
1575
+ pos = 0;
1576
+ }
1577
+ for (let i = pos;i < blockLen; i++)
1578
+ buffer3[i] = 0;
1579
+ setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE2);
1580
+ this.process(view, 0);
1581
+ const oview = createView(out);
1582
+ const len = this.outputLen;
1583
+ if (len % 4)
1584
+ throw new Error("_sha2: outputLen should be aligned to 32bit");
1585
+ const outLen = len / 4;
1586
+ const state = this.get();
1587
+ if (outLen > state.length)
1588
+ throw new Error("_sha2: outputLen bigger than state");
1589
+ for (let i = 0;i < outLen; i++)
1590
+ oview.setUint32(4 * i, state[i], isLE2);
1591
+ }
1592
+ digest() {
1593
+ const { buffer: buffer3, outputLen } = this;
1594
+ this.digestInto(buffer3);
1595
+ const res = buffer3.slice(0, outputLen);
1596
+ this.destroy();
1597
+ return res;
1598
+ }
1599
+ _cloneInto(to) {
1600
+ to || (to = new this.constructor);
1601
+ to.set(...this.get());
1602
+ const { blockLen, buffer: buffer3, length: length4, finished, destroyed, pos } = this;
1603
+ to.length = length4;
1604
+ to.pos = pos;
1605
+ to.finished = finished;
1606
+ to.destroyed = destroyed;
1607
+ if (length4 % blockLen)
1608
+ to.buffer.set(buffer3);
1609
+ return to;
1610
+ }
1611
+ };
1612
+ });
1613
+
1614
+ // ../node_modules/@noble/hashes/esm/sha256.js
1615
+ var SHA256_K, SHA256_IV, SHA256_W, SHA256, sha256;
1616
+ var init_sha256 = __esm(() => {
1617
+ init__md();
1618
+ init_utils();
1619
+ SHA256_K = /* @__PURE__ */ new Uint32Array([
1620
+ 1116352408,
1621
+ 1899447441,
1622
+ 3049323471,
1623
+ 3921009573,
1624
+ 961987163,
1625
+ 1508970993,
1626
+ 2453635748,
1627
+ 2870763221,
1628
+ 3624381080,
1629
+ 310598401,
1630
+ 607225278,
1631
+ 1426881987,
1632
+ 1925078388,
1633
+ 2162078206,
1634
+ 2614888103,
1635
+ 3248222580,
1636
+ 3835390401,
1637
+ 4022224774,
1638
+ 264347078,
1639
+ 604807628,
1640
+ 770255983,
1641
+ 1249150122,
1642
+ 1555081692,
1643
+ 1996064986,
1644
+ 2554220882,
1645
+ 2821834349,
1646
+ 2952996808,
1647
+ 3210313671,
1648
+ 3336571891,
1649
+ 3584528711,
1650
+ 113926993,
1651
+ 338241895,
1652
+ 666307205,
1653
+ 773529912,
1654
+ 1294757372,
1655
+ 1396182291,
1656
+ 1695183700,
1657
+ 1986661051,
1658
+ 2177026350,
1659
+ 2456956037,
1660
+ 2730485921,
1661
+ 2820302411,
1662
+ 3259730800,
1663
+ 3345764771,
1664
+ 3516065817,
1665
+ 3600352804,
1666
+ 4094571909,
1667
+ 275423344,
1668
+ 430227734,
1669
+ 506948616,
1670
+ 659060556,
1671
+ 883997877,
1672
+ 958139571,
1673
+ 1322822218,
1674
+ 1537002063,
1675
+ 1747873779,
1676
+ 1955562222,
1677
+ 2024104815,
1678
+ 2227730452,
1679
+ 2361852424,
1680
+ 2428436474,
1681
+ 2756734187,
1682
+ 3204031479,
1683
+ 3329325298
1684
+ ]);
1685
+ SHA256_IV = /* @__PURE__ */ new Uint32Array([
1686
+ 1779033703,
1687
+ 3144134277,
1688
+ 1013904242,
1689
+ 2773480762,
1690
+ 1359893119,
1691
+ 2600822924,
1692
+ 528734635,
1693
+ 1541459225
1694
+ ]);
1695
+ SHA256_W = /* @__PURE__ */ new Uint32Array(64);
1696
+ SHA256 = class SHA256 extends HashMD {
1697
+ constructor() {
1698
+ super(64, 32, 8, false);
1699
+ this.A = SHA256_IV[0] | 0;
1700
+ this.B = SHA256_IV[1] | 0;
1701
+ this.C = SHA256_IV[2] | 0;
1702
+ this.D = SHA256_IV[3] | 0;
1703
+ this.E = SHA256_IV[4] | 0;
1704
+ this.F = SHA256_IV[5] | 0;
1705
+ this.G = SHA256_IV[6] | 0;
1706
+ this.H = SHA256_IV[7] | 0;
1707
+ }
1708
+ get() {
1709
+ const { A, B, C, D, E, F, G, H } = this;
1710
+ return [A, B, C, D, E, F, G, H];
1711
+ }
1712
+ set(A, B, C, D, E, F, G, H) {
1713
+ this.A = A | 0;
1714
+ this.B = B | 0;
1715
+ this.C = C | 0;
1716
+ this.D = D | 0;
1717
+ this.E = E | 0;
1718
+ this.F = F | 0;
1719
+ this.G = G | 0;
1720
+ this.H = H | 0;
1721
+ }
1722
+ process(view, offset) {
1723
+ for (let i = 0;i < 16; i++, offset += 4)
1724
+ SHA256_W[i] = view.getUint32(offset, false);
1725
+ for (let i = 16;i < 64; i++) {
1726
+ const W15 = SHA256_W[i - 15];
1727
+ const W2 = SHA256_W[i - 2];
1728
+ const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ W15 >>> 3;
1729
+ const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ W2 >>> 10;
1730
+ SHA256_W[i] = s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16] | 0;
1731
+ }
1732
+ let { A, B, C, D, E, F, G, H } = this;
1733
+ for (let i = 0;i < 64; i++) {
1734
+ const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
1735
+ const T1 = H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i] | 0;
1736
+ const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
1737
+ const T2 = sigma0 + Maj(A, B, C) | 0;
1738
+ H = G;
1739
+ G = F;
1740
+ F = E;
1741
+ E = D + T1 | 0;
1742
+ D = C;
1743
+ C = B;
1744
+ B = A;
1745
+ A = T1 + T2 | 0;
1746
+ }
1747
+ A = A + this.A | 0;
1748
+ B = B + this.B | 0;
1749
+ C = C + this.C | 0;
1750
+ D = D + this.D | 0;
1751
+ E = E + this.E | 0;
1752
+ F = F + this.F | 0;
1753
+ G = G + this.G | 0;
1754
+ H = H + this.H | 0;
1755
+ this.set(A, B, C, D, E, F, G, H);
1756
+ }
1757
+ roundClean() {
1758
+ SHA256_W.fill(0);
1759
+ }
1760
+ destroy() {
1761
+ this.set(0, 0, 0, 0, 0, 0, 0, 0);
1762
+ this.buffer.fill(0);
1763
+ }
1764
+ };
1765
+ sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
1766
+ });
1767
+
1768
+ // node_modules/viem/_esm/errors/chain.js
1769
+ var InvalidChainIdError;
1770
+ var init_chain = __esm(() => {
1771
+ init_base();
1772
+ InvalidChainIdError = class InvalidChainIdError extends BaseError {
1773
+ constructor({ chainId }) {
1774
+ super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1775
+ }
1776
+ };
1777
+ });
1778
+
830
1779
  // ../node_modules/sha3/sponge/permute/copy/index.js
831
1780
  var require_copy = __commonJS((exports2, module2) => {
832
1781
  var copy4 = function copy(I, i) {
@@ -1229,7 +2178,8 @@ var require_bn = __commonJS((exports2, module2) => {
1229
2178
  }
1230
2179
  function inherits(ctor, superCtor) {
1231
2180
  ctor.super_ = superCtor;
1232
- var TempCtor = function() {};
2181
+ var TempCtor = function() {
2182
+ };
1233
2183
  TempCtor.prototype = superCtor.prototype;
1234
2184
  ctor.prototype = new TempCtor;
1235
2185
  ctor.prototype.constructor = ctor;
@@ -1264,7 +2214,8 @@ var require_bn = __commonJS((exports2, module2) => {
1264
2214
  } else {
1265
2215
  Buffer2 = require("buffer").Buffer;
1266
2216
  }
1267
- } catch (e) {}
2217
+ } catch (e) {
2218
+ }
1268
2219
  BN.isBN = function isBN(num) {
1269
2220
  if (num instanceof BN) {
1270
2221
  return true;
@@ -2965,7 +3916,8 @@ var require_bn = __commonJS((exports2, module2) => {
2965
3916
  }
2966
3917
  maskedWords.length = s;
2967
3918
  }
2968
- if (s === 0) {} else if (this.length > s) {
3919
+ if (s === 0) {
3920
+ } else if (this.length > s) {
2969
3921
  this.length -= s;
2970
3922
  for (i = 0;i < this.length; i++) {
2971
3923
  this.words[i] = this.words[i + s];
@@ -4269,7 +5221,8 @@ var require_brorand = __commonJS((exports2, module2) => {
4269
5221
  Rand.prototype._rand = function _rand(n) {
4270
5222
  return crypto.randomBytes(n);
4271
5223
  };
4272
- } catch (e) {}
5224
+ } catch (e) {
5225
+ }
4273
5226
  }
4274
5227
  var crypto;
4275
5228
  });
@@ -4596,7 +5549,8 @@ var require_inherits_browser = __commonJS((exports2, module2) => {
4596
5549
  module2.exports = function inherits(ctor, superCtor) {
4597
5550
  if (superCtor) {
4598
5551
  ctor.super_ = superCtor;
4599
- var TempCtor = function() {};
5552
+ var TempCtor = function() {
5553
+ };
4600
5554
  TempCtor.prototype = superCtor.prototype;
4601
5555
  ctor.prototype = new TempCtor;
4602
5556
  ctor.prototype.constructor = ctor;
@@ -5360,7 +6314,8 @@ var require_mont = __commonJS((exports2, module2) => {
5360
6314
  MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
5361
6315
  return Point.fromJSON(this, obj);
5362
6316
  };
5363
- Point.prototype.precompute = function precompute() {};
6317
+ Point.prototype.precompute = function precompute() {
6318
+ };
5364
6319
  Point.prototype._encode = function _encode() {
5365
6320
  return this.getX().toArray("be", this.curve.p.byteLength());
5366
6321
  };
@@ -6251,9 +7206,9 @@ var require_256 = __commonJS((exports2, module2) => {
6251
7206
  3204031479,
6252
7207
  3329325298
6253
7208
  ];
6254
- function SHA256() {
6255
- if (!(this instanceof SHA256))
6256
- return new SHA256;
7209
+ function SHA2562() {
7210
+ if (!(this instanceof SHA2562))
7211
+ return new SHA2562;
6257
7212
  BlockHash.call(this);
6258
7213
  this.h = [
6259
7214
  1779033703,
@@ -6268,13 +7223,13 @@ var require_256 = __commonJS((exports2, module2) => {
6268
7223
  this.k = sha256_K;
6269
7224
  this.W = new Array(64);
6270
7225
  }
6271
- utils.inherits(SHA256, BlockHash);
6272
- module2.exports = SHA256;
6273
- SHA256.blockSize = 512;
6274
- SHA256.outSize = 256;
6275
- SHA256.hmacStrength = 192;
6276
- SHA256.padLength = 64;
6277
- SHA256.prototype._update = function _update(msg, start5) {
7226
+ utils.inherits(SHA2562, BlockHash);
7227
+ module2.exports = SHA2562;
7228
+ SHA2562.blockSize = 512;
7229
+ SHA2562.outSize = 256;
7230
+ SHA2562.hmacStrength = 192;
7231
+ SHA2562.padLength = 64;
7232
+ SHA2562.prototype._update = function _update(msg, start5) {
6278
7233
  var W = this.W;
6279
7234
  for (var i = 0;i < 16; i++)
6280
7235
  W[i] = msg[start5 + i];
@@ -6310,7 +7265,7 @@ var require_256 = __commonJS((exports2, module2) => {
6310
7265
  this.h[6] = sum32(this.h[6], g);
6311
7266
  this.h[7] = sum32(this.h[7], h);
6312
7267
  };
6313
- SHA256.prototype._digest = function digest(enc) {
7268
+ SHA2562.prototype._digest = function digest(enc) {
6314
7269
  if (enc === "hex")
6315
7270
  return utils.toHex32(this.h, "big");
6316
7271
  else
@@ -6321,11 +7276,11 @@ var require_256 = __commonJS((exports2, module2) => {
6321
7276
  // ../node_modules/hash.js/lib/hash/sha/224.js
6322
7277
  var require_224 = __commonJS((exports2, module2) => {
6323
7278
  var utils = require_utils3();
6324
- var SHA256 = require_256();
7279
+ var SHA2562 = require_256();
6325
7280
  function SHA224() {
6326
7281
  if (!(this instanceof SHA224))
6327
7282
  return new SHA224;
6328
- SHA256.call(this);
7283
+ SHA2562.call(this);
6329
7284
  this.h = [
6330
7285
  3238371032,
6331
7286
  914150663,
@@ -6337,7 +7292,7 @@ var require_224 = __commonJS((exports2, module2) => {
6337
7292
  3204075428
6338
7293
  ];
6339
7294
  }
6340
- utils.inherits(SHA224, SHA256);
7295
+ utils.inherits(SHA224, SHA2562);
6341
7296
  module2.exports = SHA224;
6342
7297
  SHA224.blockSize = 512;
6343
7298
  SHA224.outSize = 224;
@@ -8998,7 +9953,8 @@ var require_node_gyp_build = __commonJS((exports2, module2) => {
8998
9953
  var name = runtimeRequire(path.join(dir2, "package.json")).name.toUpperCase().replace(/-/g, "_");
8999
9954
  if (process.env[name + "_PREBUILD"])
9000
9955
  dir2 = process.env[name + "_PREBUILD"];
9001
- } catch (err) {}
9956
+ } catch (err) {
9957
+ }
9002
9958
  if (!prebuildsOnly) {
9003
9959
  var release2 = getFirst(path.join(dir2, "build/Release"), matchBuild);
9004
9960
  if (release2)
@@ -9469,7 +10425,7 @@ var require_lib = __commonJS((exports2, module2) => {
9469
10425
 
9470
10426
  // ../node_modules/secp256k1/bindings.js
9471
10427
  var require_bindings = __commonJS((exports2, module2) => {
9472
- var __dirname = "/home/silas/code/inco-monorepo/node_modules/secp256k1";
10428
+ var __dirname = "/Users/amaury/Workspace/inco/inco-monorepo/node_modules/secp256k1";
9473
10429
  var addon = require_node_gyp_build2()(__dirname);
9474
10430
  module2.exports = require_lib()(new addon.Secp256k1);
9475
10431
  });
@@ -9807,9 +10763,9 @@ var require_elliptic2 = __commonJS((exports2, module2) => {
9807
10763
  const point = pair.getPublic().mul(scalar);
9808
10764
  if (hashfn === undefined) {
9809
10765
  const data2 = point.encode(null, true);
9810
- const sha256 = ec.hash().update(data2).digest();
10766
+ const sha2563 = ec.hash().update(data2).digest();
9811
10767
  for (let i = 0;i < 32; ++i)
9812
- output[i] = sha256[i];
10768
+ output[i] = sha2563[i];
9813
10769
  } else {
9814
10770
  if (!xbuf)
9815
10771
  xbuf = new Uint8Array(32);
@@ -10034,7 +10990,7 @@ var require_node = __commonJS((exports2) => {
10034
10990
  var elliptic_1 = require_elliptic();
10035
10991
  var secp256k1_1 = __importDefault(require_secp256k12());
10036
10992
  var ec = new elliptic_1.ec("secp256k1");
10037
- var sha256 = function(msg) {
10993
+ var sha2563 = function(msg) {
10038
10994
  return (0, crypto_1.createHash)("sha256").update(msg).digest();
10039
10995
  };
10040
10996
  var hmacSha256 = function(key, msg) {
@@ -10077,7 +11033,7 @@ var require_node = __commonJS((exports2) => {
10077
11033
  var result = Buffer.from("");
10078
11034
  while (written < outputLength) {
10079
11035
  var ctrs = Buffer.from([ctr >> 24, ctr >> 16, ctr >> 8, ctr]);
10080
- var hashResult = sha256(Buffer.concat([ctrs, secret2]));
11036
+ var hashResult = sha2563(Buffer.concat([ctrs, secret2]));
10081
11037
  result = Buffer.concat([result, hashResult]);
10082
11038
  written += 32;
10083
11039
  ctr += 1;
@@ -10163,7 +11119,7 @@ var require_node = __commonJS((exports2) => {
10163
11119
  return __generator(this, function(_a2) {
10164
11120
  encryptionKey = hash2.slice(0, 16);
10165
11121
  iv = opts.iv || (0, crypto_1.randomBytes)(16);
10166
- macKey = sha256(hash2.slice(16));
11122
+ macKey = sha2563(hash2.slice(16));
10167
11123
  cipherText = aes128CtrEncrypt(iv, encryptionKey, msg);
10168
11124
  HMAC = hmacSha256(macKey, cipherText);
10169
11125
  return [2, (0, exports2.getPublic)(ephemPrivateKey).then(function(ephemPublicKey) {
@@ -10194,7 +11150,7 @@ var require_node = __commonJS((exports2) => {
10194
11150
  return (0, exports2.kdf)(sharedPx, 32);
10195
11151
  }).then(function(hash2) {
10196
11152
  var encryptionKey = hash2.slice(0, 16);
10197
- var macKey = sha256(hash2.slice(16));
11153
+ var macKey = sha2563(hash2.slice(16));
10198
11154
  var currentHMAC = hmacSha256(macKey, cipherAndIv_1);
10199
11155
  if (!equalConstTime(currentHMAC, msgMac_1)) {
10200
11156
  return Promise.reject(new Error("Incorrect MAC"));
@@ -10346,7 +11302,7 @@ var require_browser = __commonJS((exports2) => {
10346
11302
  var randomBytes = function(size22) {
10347
11303
  return crypto.getRandomValues(Buffer.alloc(size22));
10348
11304
  };
10349
- var sha256 = function(msg) {
11305
+ var sha2563 = function(msg) {
10350
11306
  return subtle.digest({ name: "SHA-256" }, msg).then(Buffer.from);
10351
11307
  };
10352
11308
  var kdf = function(secret2, outputLength) {
@@ -10355,7 +11311,7 @@ var require_browser = __commonJS((exports2) => {
10355
11311
  var willBeResult = Promise.resolve(Buffer.from(""));
10356
11312
  var _loop_1 = function() {
10357
11313
  var ctrs = Buffer.from([ctr >> 24, ctr >> 16, ctr >> 8, ctr]);
10358
- var willBeHashResult = sha256(Buffer.concat([ctrs, secret2]));
11314
+ var willBeHashResult = sha2563(Buffer.concat([ctrs, secret2]));
10359
11315
  willBeResult = willBeResult.then(function(result) {
10360
11316
  return willBeHashResult.then(function(hashResult) {
10361
11317
  return Buffer.concat([result, hashResult]);
@@ -10471,7 +11427,7 @@ var require_browser = __commonJS((exports2) => {
10471
11427
  return [2, aesCtrEncrypt(iv, encryptionKey, msg).then(function(cipherText) {
10472
11428
  return Buffer.concat([iv, cipherText]);
10473
11429
  }).then(function(ivCipherText) {
10474
- return sha256(hash2.slice(16)).then(function(macKey) {
11430
+ return sha2563(hash2.slice(16)).then(function(macKey) {
10475
11431
  return hmacSha256Sign(macKey, ivCipherText);
10476
11432
  }).then(function(HMAC) {
10477
11433
  return (0, exports2.getPublic)(ephemPrivateKey).then(function(ephemPublicKey) {
@@ -10503,7 +11459,7 @@ var require_browser = __commonJS((exports2) => {
10503
11459
  resolve((0, exports2.derive)(privateKey, ephemPublicKey).then(function(px) {
10504
11460
  return (0, exports2.kdf)(px, 32);
10505
11461
  }).then(function(hash2) {
10506
- return sha256(hash2.slice(16)).then(function(macKey) {
11462
+ return sha2563(hash2.slice(16)).then(function(macKey) {
10507
11463
  return [hash2.slice(0, 16), macKey];
10508
11464
  });
10509
11465
  }).then(function(_a) {
@@ -10882,7 +11838,8 @@ var tracingFunction = (name) => {
10882
11838
  };
10883
11839
  };
10884
11840
  var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
10885
- var genConstructor = function* () {}.constructor;
11841
+ var genConstructor = function* () {
11842
+ }.constructor;
10886
11843
 
10887
11844
  // ../node_modules/effect/dist/esm/Hash.js
10888
11845
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
@@ -11229,7 +12186,8 @@ var StructuralCommitPrototype = {
11229
12186
  ...StructuralPrototype
11230
12187
  };
11231
12188
  var Base = /* @__PURE__ */ function() {
11232
- function Base2() {}
12189
+ function Base2() {
12190
+ }
11233
12191
  Base2.prototype = CommitPrototype;
11234
12192
  return Base2;
11235
12193
  }();
@@ -14732,7 +15690,8 @@ var Reference = () => (id, options) => {
14732
15690
  Error.stackTraceLimit = 2;
14733
15691
  const creationError = new Error;
14734
15692
  Error.stackTraceLimit = limit;
14735
- function ReferenceClass() {}
15693
+ function ReferenceClass() {
15694
+ }
14736
15695
  Object.setPrototypeOf(ReferenceClass, ReferenceProto);
14737
15696
  ReferenceClass.key = id;
14738
15697
  ReferenceClass.defaultValue = options.defaultValue;
@@ -17672,7 +18631,8 @@ var prettyErrorMessage = (u) => {
17672
18631
  if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
17673
18632
  return u["toString"]();
17674
18633
  }
17675
- } catch {}
18634
+ } catch {
18635
+ }
17676
18636
  return stringifyCircular(u);
17677
18637
  };
17678
18638
  var locationRegex = /\((.*)\)/g;
@@ -18246,7 +19206,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, (a) => map9(
18246
19206
  var zipLeft = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, (a) => as(that, a)));
18247
19207
  var zipRight = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, () => that));
18248
19208
  var never = /* @__PURE__ */ asyncInterrupt(() => {
18249
- const interval = setInterval(() => {}, 2 ** 31 - 1);
19209
+ const interval = setInterval(() => {
19210
+ }, 2 ** 31 - 1);
18250
19211
  return sync(() => clearInterval(interval));
18251
19212
  });
18252
19213
  var interruptFiber = (self2) => flatMap6(fiberId, (fiberId2) => pipe(self2, interruptAsFiber(fiberId2)));
@@ -22066,11 +23027,16 @@ class Const {
22066
23027
  get value() {
22067
23028
  return this.effect;
22068
23029
  }
22069
- onStart(_context, _effect, _parent, _fiber) {}
22070
- onEnd(_value, _fiber) {}
22071
- onEffect(_fiber, _effect) {}
22072
- onSuspend(_fiber) {}
22073
- onResume(_fiber) {}
23030
+ onStart(_context, _effect, _parent, _fiber) {
23031
+ }
23032
+ onEnd(_value, _fiber) {
23033
+ }
23034
+ onEffect(_fiber, _effect) {
23035
+ }
23036
+ onSuspend(_fiber) {
23037
+ }
23038
+ onResume(_fiber) {
23039
+ }
22074
23040
  map(f) {
22075
23041
  return new ProxySupervisor(this, pipe(this.value, map9(f)));
22076
23042
  }
@@ -22544,7 +23510,8 @@ class FiberRuntime extends Class {
22544
23510
  return whileLoop({
22545
23511
  while: () => !isDone3,
22546
23512
  body,
22547
- step: () => {}
23513
+ step: () => {
23514
+ }
22548
23515
  });
22549
23516
  }
22550
23517
  return null;
@@ -32074,7 +33041,414 @@ class TrieIterator {
32074
33041
  }
32075
33042
  }
32076
33043
  var isTrie = (u) => hasProperty(u, TrieTypeId);
32077
- // ../node_modules/viem/_esm/utils/abi/encodePacked.js
33044
+ // node_modules/viem/_esm/utils/encoding/toRlp.js
33045
+ init_base();
33046
+ init_cursor2();
33047
+ init_toBytes();
33048
+ init_toHex();
33049
+ function toRlp(bytes, to = "hex") {
33050
+ const encodable = getEncodable(bytes);
33051
+ const cursor = createCursor(new Uint8Array(encodable.length));
33052
+ encodable.encode(cursor);
33053
+ if (to === "hex")
33054
+ return bytesToHex2(cursor.bytes);
33055
+ return cursor.bytes;
33056
+ }
33057
+ function getEncodable(bytes) {
33058
+ if (Array.isArray(bytes))
33059
+ return getEncodableList(bytes.map((x) => getEncodable(x)));
33060
+ return getEncodableBytes(bytes);
33061
+ }
33062
+ function getEncodableList(list) {
33063
+ const bodyLength = list.reduce((acc, x) => acc + x.length, 0);
33064
+ const sizeOfBodyLength = getSizeOfLength(bodyLength);
33065
+ const length4 = (() => {
33066
+ if (bodyLength <= 55)
33067
+ return 1 + bodyLength;
33068
+ return 1 + sizeOfBodyLength + bodyLength;
33069
+ })();
33070
+ return {
33071
+ length: length4,
33072
+ encode(cursor) {
33073
+ if (bodyLength <= 55) {
33074
+ cursor.pushByte(192 + bodyLength);
33075
+ } else {
33076
+ cursor.pushByte(192 + 55 + sizeOfBodyLength);
33077
+ if (sizeOfBodyLength === 1)
33078
+ cursor.pushUint8(bodyLength);
33079
+ else if (sizeOfBodyLength === 2)
33080
+ cursor.pushUint16(bodyLength);
33081
+ else if (sizeOfBodyLength === 3)
33082
+ cursor.pushUint24(bodyLength);
33083
+ else
33084
+ cursor.pushUint32(bodyLength);
33085
+ }
33086
+ for (const { encode: encode6 } of list) {
33087
+ encode6(cursor);
33088
+ }
33089
+ }
33090
+ };
33091
+ }
33092
+ function getEncodableBytes(bytesOrHex) {
33093
+ const bytes = typeof bytesOrHex === "string" ? hexToBytes(bytesOrHex) : bytesOrHex;
33094
+ const sizeOfBytesLength = getSizeOfLength(bytes.length);
33095
+ const length4 = (() => {
33096
+ if (bytes.length === 1 && bytes[0] < 128)
33097
+ return 1;
33098
+ if (bytes.length <= 55)
33099
+ return 1 + bytes.length;
33100
+ return 1 + sizeOfBytesLength + bytes.length;
33101
+ })();
33102
+ return {
33103
+ length: length4,
33104
+ encode(cursor) {
33105
+ if (bytes.length === 1 && bytes[0] < 128) {
33106
+ cursor.pushBytes(bytes);
33107
+ } else if (bytes.length <= 55) {
33108
+ cursor.pushByte(128 + bytes.length);
33109
+ cursor.pushBytes(bytes);
33110
+ } else {
33111
+ cursor.pushByte(128 + 55 + sizeOfBytesLength);
33112
+ if (sizeOfBytesLength === 1)
33113
+ cursor.pushUint8(bytes.length);
33114
+ else if (sizeOfBytesLength === 2)
33115
+ cursor.pushUint16(bytes.length);
33116
+ else if (sizeOfBytesLength === 3)
33117
+ cursor.pushUint24(bytes.length);
33118
+ else
33119
+ cursor.pushUint32(bytes.length);
33120
+ cursor.pushBytes(bytes);
33121
+ }
33122
+ }
33123
+ };
33124
+ }
33125
+ function getSizeOfLength(length4) {
33126
+ if (length4 < 2 ** 8)
33127
+ return 1;
33128
+ if (length4 < 2 ** 16)
33129
+ return 2;
33130
+ if (length4 < 2 ** 24)
33131
+ return 3;
33132
+ if (length4 < 2 ** 32)
33133
+ return 4;
33134
+ throw new BaseError("Length is too large.");
33135
+ }
33136
+ // node_modules/viem/_esm/utils/formatters/transaction.js
33137
+ init_fromHex();
33138
+ var transactionType = {
33139
+ "0x0": "legacy",
33140
+ "0x1": "eip2930",
33141
+ "0x2": "eip1559",
33142
+ "0x3": "eip4844",
33143
+ "0x4": "eip7702"
33144
+ };
33145
+ function formatTransaction(transaction) {
33146
+ const transaction_ = {
33147
+ ...transaction,
33148
+ blockHash: transaction.blockHash ? transaction.blockHash : null,
33149
+ blockNumber: transaction.blockNumber ? BigInt(transaction.blockNumber) : null,
33150
+ chainId: transaction.chainId ? hexToNumber(transaction.chainId) : undefined,
33151
+ gas: transaction.gas ? BigInt(transaction.gas) : undefined,
33152
+ gasPrice: transaction.gasPrice ? BigInt(transaction.gasPrice) : undefined,
33153
+ maxFeePerBlobGas: transaction.maxFeePerBlobGas ? BigInt(transaction.maxFeePerBlobGas) : undefined,
33154
+ maxFeePerGas: transaction.maxFeePerGas ? BigInt(transaction.maxFeePerGas) : undefined,
33155
+ maxPriorityFeePerGas: transaction.maxPriorityFeePerGas ? BigInt(transaction.maxPriorityFeePerGas) : undefined,
33156
+ nonce: transaction.nonce ? hexToNumber(transaction.nonce) : undefined,
33157
+ to: transaction.to ? transaction.to : null,
33158
+ transactionIndex: transaction.transactionIndex ? Number(transaction.transactionIndex) : null,
33159
+ type: transaction.type ? transactionType[transaction.type] : undefined,
33160
+ typeHex: transaction.type ? transaction.type : undefined,
33161
+ value: transaction.value ? BigInt(transaction.value) : undefined,
33162
+ v: transaction.v ? BigInt(transaction.v) : undefined
33163
+ };
33164
+ if (transaction.authorizationList)
33165
+ transaction_.authorizationList = formatAuthorizationList(transaction.authorizationList);
33166
+ transaction_.yParity = (() => {
33167
+ if (transaction.yParity)
33168
+ return Number(transaction.yParity);
33169
+ if (typeof transaction_.v === "bigint") {
33170
+ if (transaction_.v === 0n || transaction_.v === 27n)
33171
+ return 0;
33172
+ if (transaction_.v === 1n || transaction_.v === 28n)
33173
+ return 1;
33174
+ if (transaction_.v >= 35n)
33175
+ return transaction_.v % 2n === 0n ? 1 : 0;
33176
+ }
33177
+ return;
33178
+ })();
33179
+ if (transaction_.type === "legacy") {
33180
+ delete transaction_.accessList;
33181
+ delete transaction_.maxFeePerBlobGas;
33182
+ delete transaction_.maxFeePerGas;
33183
+ delete transaction_.maxPriorityFeePerGas;
33184
+ delete transaction_.yParity;
33185
+ }
33186
+ if (transaction_.type === "eip2930") {
33187
+ delete transaction_.maxFeePerBlobGas;
33188
+ delete transaction_.maxFeePerGas;
33189
+ delete transaction_.maxPriorityFeePerGas;
33190
+ }
33191
+ if (transaction_.type === "eip1559") {
33192
+ delete transaction_.maxFeePerBlobGas;
33193
+ }
33194
+ return transaction_;
33195
+ }
33196
+ var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
33197
+ function formatAuthorizationList(authorizationList) {
33198
+ return authorizationList.map((authorization) => ({
33199
+ contractAddress: authorization.address,
33200
+ chainId: Number(authorization.chainId),
33201
+ nonce: Number(authorization.nonce),
33202
+ r: authorization.r,
33203
+ s: authorization.s,
33204
+ yParity: Number(authorization.yParity)
33205
+ }));
33206
+ }
33207
+
33208
+ // node_modules/viem/_esm/utils/formatters/block.js
33209
+ function formatBlock(block) {
33210
+ const transactions = (block.transactions ?? []).map((transaction) => {
33211
+ if (typeof transaction === "string")
33212
+ return transaction;
33213
+ return formatTransaction(transaction);
33214
+ });
33215
+ return {
33216
+ ...block,
33217
+ baseFeePerGas: block.baseFeePerGas ? BigInt(block.baseFeePerGas) : null,
33218
+ blobGasUsed: block.blobGasUsed ? BigInt(block.blobGasUsed) : undefined,
33219
+ difficulty: block.difficulty ? BigInt(block.difficulty) : undefined,
33220
+ excessBlobGas: block.excessBlobGas ? BigInt(block.excessBlobGas) : undefined,
33221
+ gasLimit: block.gasLimit ? BigInt(block.gasLimit) : undefined,
33222
+ gasUsed: block.gasUsed ? BigInt(block.gasUsed) : undefined,
33223
+ hash: block.hash ? block.hash : null,
33224
+ logsBloom: block.logsBloom ? block.logsBloom : null,
33225
+ nonce: block.nonce ? block.nonce : null,
33226
+ number: block.number ? BigInt(block.number) : null,
33227
+ size: block.size ? BigInt(block.size) : undefined,
33228
+ timestamp: block.timestamp ? BigInt(block.timestamp) : undefined,
33229
+ transactions,
33230
+ totalDifficulty: block.totalDifficulty ? BigInt(block.totalDifficulty) : null
33231
+ };
33232
+ }
33233
+ var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
33234
+
33235
+ // node_modules/viem/_esm/utils/blob/blobsToCommitments.js
33236
+ init_toBytes();
33237
+ init_toHex();
33238
+ function blobsToCommitments(parameters) {
33239
+ const { kzg } = parameters;
33240
+ const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
33241
+ const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
33242
+ const commitments = [];
33243
+ for (const blob of blobs)
33244
+ commitments.push(Uint8Array.from(kzg.blobToKzgCommitment(blob)));
33245
+ return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
33246
+ }
33247
+
33248
+ // node_modules/viem/_esm/utils/blob/blobsToProofs.js
33249
+ init_toBytes();
33250
+ init_toHex();
33251
+ function blobsToProofs(parameters) {
33252
+ const { kzg } = parameters;
33253
+ const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
33254
+ const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
33255
+ const commitments = typeof parameters.commitments[0] === "string" ? parameters.commitments.map((x) => hexToBytes(x)) : parameters.commitments;
33256
+ const proofs = [];
33257
+ for (let i = 0;i < blobs.length; i++) {
33258
+ const blob = blobs[i];
33259
+ const commitment = commitments[i];
33260
+ proofs.push(Uint8Array.from(kzg.computeBlobKzgProof(blob, commitment)));
33261
+ }
33262
+ return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
33263
+ }
33264
+
33265
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
33266
+ init_toHex();
33267
+
33268
+ // node_modules/viem/_esm/utils/hash/sha256.js
33269
+ init_sha256();
33270
+ init_toBytes();
33271
+ init_toHex();
33272
+ function sha2562(value6, to_) {
33273
+ const to = to_ || "hex";
33274
+ const bytes = sha256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
33275
+ if (to === "bytes")
33276
+ return bytes;
33277
+ return toHex(bytes);
33278
+ }
33279
+
33280
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
33281
+ function commitmentToVersionedHash(parameters) {
33282
+ const { commitment, version: version2 = 1 } = parameters;
33283
+ const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
33284
+ const versionedHash = sha2562(commitment, "bytes");
33285
+ versionedHash.set([version2], 0);
33286
+ return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
33287
+ }
33288
+
33289
+ // node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
33290
+ function commitmentsToVersionedHashes(parameters) {
33291
+ const { commitments, version: version2 } = parameters;
33292
+ const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
33293
+ const hashes = [];
33294
+ for (const commitment of commitments) {
33295
+ hashes.push(commitmentToVersionedHash({
33296
+ commitment,
33297
+ to,
33298
+ version: version2
33299
+ }));
33300
+ }
33301
+ return hashes;
33302
+ }
33303
+
33304
+ // node_modules/viem/_esm/constants/blob.js
33305
+ var blobsPerTransaction = 6;
33306
+ var bytesPerFieldElement = 32;
33307
+ var fieldElementsPerBlob = 4096;
33308
+ var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
33309
+ var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
33310
+
33311
+ // node_modules/viem/_esm/constants/kzg.js
33312
+ var versionedHashVersionKzg = 1;
33313
+
33314
+ // node_modules/viem/_esm/errors/blob.js
33315
+ init_base();
33316
+
33317
+ class BlobSizeTooLargeError extends BaseError {
33318
+ constructor({ maxSize, size: size22 }) {
33319
+ super("Blob size is too large.", {
33320
+ metaMessages: [`Max: ${maxSize} bytes`, `Given: ${size22} bytes`],
33321
+ name: "BlobSizeTooLargeError"
33322
+ });
33323
+ }
33324
+ }
33325
+
33326
+ class EmptyBlobError extends BaseError {
33327
+ constructor() {
33328
+ super("Blob data must not be empty.", { name: "EmptyBlobError" });
33329
+ }
33330
+ }
33331
+
33332
+ class InvalidVersionedHashSizeError extends BaseError {
33333
+ constructor({ hash: hash2, size: size22 }) {
33334
+ super(`Versioned hash "${hash2}" size is invalid.`, {
33335
+ metaMessages: ["Expected: 32", `Received: ${size22}`],
33336
+ name: "InvalidVersionedHashSizeError"
33337
+ });
33338
+ }
33339
+ }
33340
+
33341
+ class InvalidVersionedHashVersionError extends BaseError {
33342
+ constructor({ hash: hash2, version: version2 }) {
33343
+ super(`Versioned hash "${hash2}" version is invalid.`, {
33344
+ metaMessages: [
33345
+ `Expected: ${versionedHashVersionKzg}`,
33346
+ `Received: ${version2}`
33347
+ ],
33348
+ name: "InvalidVersionedHashVersionError"
33349
+ });
33350
+ }
33351
+ }
33352
+
33353
+ // node_modules/viem/_esm/utils/blob/toBlobs.js
33354
+ init_cursor2();
33355
+ init_size();
33356
+ init_toBytes();
33357
+ init_toHex();
33358
+ function toBlobs(parameters) {
33359
+ const to = parameters.to ?? (typeof parameters.data === "string" ? "hex" : "bytes");
33360
+ const data = typeof parameters.data === "string" ? hexToBytes(parameters.data) : parameters.data;
33361
+ const size_ = size21(data);
33362
+ if (!size_)
33363
+ throw new EmptyBlobError;
33364
+ if (size_ > maxBytesPerTransaction)
33365
+ throw new BlobSizeTooLargeError({
33366
+ maxSize: maxBytesPerTransaction,
33367
+ size: size_
33368
+ });
33369
+ const blobs = [];
33370
+ let active2 = true;
33371
+ let position = 0;
33372
+ while (active2) {
33373
+ const blob = createCursor(new Uint8Array(bytesPerBlob));
33374
+ let size22 = 0;
33375
+ while (size22 < fieldElementsPerBlob) {
33376
+ const bytes = data.slice(position, position + (bytesPerFieldElement - 1));
33377
+ blob.pushByte(0);
33378
+ blob.pushBytes(bytes);
33379
+ if (bytes.length < 31) {
33380
+ blob.pushByte(128);
33381
+ active2 = false;
33382
+ break;
33383
+ }
33384
+ size22++;
33385
+ position += 31;
33386
+ }
33387
+ blobs.push(blob);
33388
+ }
33389
+ return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
33390
+ }
33391
+
33392
+ // node_modules/viem/_esm/utils/blob/toBlobSidecars.js
33393
+ function toBlobSidecars(parameters) {
33394
+ const { data, kzg, to } = parameters;
33395
+ const blobs = parameters.blobs ?? toBlobs({ data, to });
33396
+ const commitments = parameters.commitments ?? blobsToCommitments({ blobs, kzg, to });
33397
+ const proofs = parameters.proofs ?? blobsToProofs({ blobs, commitments, kzg, to });
33398
+ const sidecars = [];
33399
+ for (let i = 0;i < blobs.length; i++)
33400
+ sidecars.push({
33401
+ blob: blobs[i],
33402
+ commitment: commitments[i],
33403
+ proof: proofs[i]
33404
+ });
33405
+ return sidecars;
33406
+ }
33407
+
33408
+ // node_modules/viem/_esm/utils/transaction/getTransactionType.js
33409
+ init_transaction();
33410
+ function getTransactionType(transaction) {
33411
+ if (transaction.type)
33412
+ return transaction.type;
33413
+ if (typeof transaction.authorizationList !== "undefined")
33414
+ return "eip7702";
33415
+ if (typeof transaction.blobs !== "undefined" || typeof transaction.blobVersionedHashes !== "undefined" || typeof transaction.maxFeePerBlobGas !== "undefined" || typeof transaction.sidecars !== "undefined")
33416
+ return "eip4844";
33417
+ if (typeof transaction.maxFeePerGas !== "undefined" || typeof transaction.maxPriorityFeePerGas !== "undefined") {
33418
+ return "eip1559";
33419
+ }
33420
+ if (typeof transaction.gasPrice !== "undefined") {
33421
+ if (typeof transaction.accessList !== "undefined")
33422
+ return "eip2930";
33423
+ return "legacy";
33424
+ }
33425
+ throw new InvalidSerializableTransactionError({ transaction });
33426
+ }
33427
+
33428
+ // node_modules/viem/_esm/utils/formatters/log.js
33429
+ function formatLog(log3, { args: args2, eventName } = {}) {
33430
+ return {
33431
+ ...log3,
33432
+ blockHash: log3.blockHash ? log3.blockHash : null,
33433
+ blockNumber: log3.blockNumber ? BigInt(log3.blockNumber) : null,
33434
+ logIndex: log3.logIndex ? Number(log3.logIndex) : null,
33435
+ transactionHash: log3.transactionHash ? log3.transactionHash : null,
33436
+ transactionIndex: log3.transactionIndex ? Number(log3.transactionIndex) : null,
33437
+ ...eventName ? { args: args2, eventName } : {}
33438
+ };
33439
+ }
33440
+
33441
+ // node_modules/viem/_esm/utils/chain/defineChain.js
33442
+ function defineChain(chain) {
33443
+ return {
33444
+ formatters: undefined,
33445
+ fees: undefined,
33446
+ serializers: undefined,
33447
+ ...chain
33448
+ };
33449
+ }
33450
+
33451
+ // node_modules/viem/_esm/utils/abi/encodePacked.js
32078
33452
  init_abi();
32079
33453
  init_address();
32080
33454
  init_isAddress();
@@ -32143,7 +33517,350 @@ function encode6(type2, value6, isArray2 = false) {
32143
33517
  throw new UnsupportedPackedAbiType(type2);
32144
33518
  }
32145
33519
 
32146
- // ../node_modules/viem/_esm/index.js
33520
+ // node_modules/viem/_esm/utils/formatters/transactionReceipt.js
33521
+ init_fromHex();
33522
+ var receiptStatuses = {
33523
+ "0x0": "reverted",
33524
+ "0x1": "success"
33525
+ };
33526
+ function formatTransactionReceipt(transactionReceipt) {
33527
+ const receipt = {
33528
+ ...transactionReceipt,
33529
+ blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
33530
+ contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
33531
+ cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
33532
+ effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
33533
+ gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
33534
+ logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
33535
+ to: transactionReceipt.to ? transactionReceipt.to : null,
33536
+ transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
33537
+ status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
33538
+ type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
33539
+ };
33540
+ if (transactionReceipt.blobGasPrice)
33541
+ receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
33542
+ if (transactionReceipt.blobGasUsed)
33543
+ receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
33544
+ return receipt;
33545
+ }
33546
+ var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
33547
+
33548
+ // node_modules/viem/_esm/utils/transaction/assertTransaction.js
33549
+ init_number();
33550
+ init_address();
33551
+ init_base();
33552
+ init_chain();
33553
+ init_node();
33554
+ init_isAddress();
33555
+ init_size();
33556
+ init_slice();
33557
+ init_fromHex();
33558
+ function assertTransactionEIP7702(transaction) {
33559
+ const { authorizationList } = transaction;
33560
+ if (authorizationList) {
33561
+ for (const authorization of authorizationList) {
33562
+ const { contractAddress, chainId } = authorization;
33563
+ if (!isAddress(contractAddress))
33564
+ throw new InvalidAddressError({ address: contractAddress });
33565
+ if (chainId < 0)
33566
+ throw new InvalidChainIdError({ chainId });
33567
+ }
33568
+ }
33569
+ assertTransactionEIP1559(transaction);
33570
+ }
33571
+ function assertTransactionEIP4844(transaction) {
33572
+ const { blobVersionedHashes } = transaction;
33573
+ if (blobVersionedHashes) {
33574
+ if (blobVersionedHashes.length === 0)
33575
+ throw new EmptyBlobError;
33576
+ for (const hash2 of blobVersionedHashes) {
33577
+ const size_ = size21(hash2);
33578
+ const version2 = hexToNumber(slice(hash2, 0, 1));
33579
+ if (size_ !== 32)
33580
+ throw new InvalidVersionedHashSizeError({ hash: hash2, size: size_ });
33581
+ if (version2 !== versionedHashVersionKzg)
33582
+ throw new InvalidVersionedHashVersionError({
33583
+ hash: hash2,
33584
+ version: version2
33585
+ });
33586
+ }
33587
+ }
33588
+ assertTransactionEIP1559(transaction);
33589
+ }
33590
+ function assertTransactionEIP1559(transaction) {
33591
+ const { chainId, maxPriorityFeePerGas, maxFeePerGas, to } = transaction;
33592
+ if (chainId <= 0)
33593
+ throw new InvalidChainIdError({ chainId });
33594
+ if (to && !isAddress(to))
33595
+ throw new InvalidAddressError({ address: to });
33596
+ if (maxFeePerGas && maxFeePerGas > maxUint256)
33597
+ throw new FeeCapTooHighError({ maxFeePerGas });
33598
+ if (maxPriorityFeePerGas && maxFeePerGas && maxPriorityFeePerGas > maxFeePerGas)
33599
+ throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
33600
+ }
33601
+ function assertTransactionEIP2930(transaction) {
33602
+ const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
33603
+ if (chainId <= 0)
33604
+ throw new InvalidChainIdError({ chainId });
33605
+ if (to && !isAddress(to))
33606
+ throw new InvalidAddressError({ address: to });
33607
+ if (maxPriorityFeePerGas || maxFeePerGas)
33608
+ throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
33609
+ if (gasPrice && gasPrice > maxUint256)
33610
+ throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
33611
+ }
33612
+ function assertTransactionLegacy(transaction) {
33613
+ const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
33614
+ if (to && !isAddress(to))
33615
+ throw new InvalidAddressError({ address: to });
33616
+ if (typeof chainId !== "undefined" && chainId <= 0)
33617
+ throw new InvalidChainIdError({ chainId });
33618
+ if (maxPriorityFeePerGas || maxFeePerGas)
33619
+ throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
33620
+ if (gasPrice && gasPrice > maxUint256)
33621
+ throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
33622
+ }
33623
+
33624
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
33625
+ init_transaction();
33626
+ init_toHex();
33627
+
33628
+ // node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
33629
+ init_toHex();
33630
+ function serializeAuthorizationList(authorizationList) {
33631
+ if (!authorizationList || authorizationList.length === 0)
33632
+ return [];
33633
+ const serializedAuthorizationList = [];
33634
+ for (const authorization of authorizationList) {
33635
+ const { contractAddress, chainId, nonce, ...signature } = authorization;
33636
+ serializedAuthorizationList.push([
33637
+ chainId ? toHex(chainId) : "0x",
33638
+ contractAddress,
33639
+ nonce ? toHex(nonce) : "0x",
33640
+ ...toYParitySignatureArray({}, signature)
33641
+ ]);
33642
+ }
33643
+ return serializedAuthorizationList;
33644
+ }
33645
+
33646
+ // node_modules/viem/_esm/utils/transaction/serializeAccessList.js
33647
+ init_address();
33648
+ init_transaction();
33649
+ init_isAddress();
33650
+ function serializeAccessList(accessList) {
33651
+ if (!accessList || accessList.length === 0)
33652
+ return [];
33653
+ const serializedAccessList = [];
33654
+ for (let i = 0;i < accessList.length; i++) {
33655
+ const { address, storageKeys } = accessList[i];
33656
+ for (let j = 0;j < storageKeys.length; j++) {
33657
+ if (storageKeys[j].length - 2 !== 64) {
33658
+ throw new InvalidStorageKeySizeError({ storageKey: storageKeys[j] });
33659
+ }
33660
+ }
33661
+ if (!isAddress(address, { strict: false })) {
33662
+ throw new InvalidAddressError({ address });
33663
+ }
33664
+ serializedAccessList.push([address, storageKeys]);
33665
+ }
33666
+ return serializedAccessList;
33667
+ }
33668
+
33669
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
33670
+ function serializeTransaction(transaction, signature) {
33671
+ const type2 = getTransactionType(transaction);
33672
+ if (type2 === "eip1559")
33673
+ return serializeTransactionEIP1559(transaction, signature);
33674
+ if (type2 === "eip2930")
33675
+ return serializeTransactionEIP2930(transaction, signature);
33676
+ if (type2 === "eip4844")
33677
+ return serializeTransactionEIP4844(transaction, signature);
33678
+ if (type2 === "eip7702")
33679
+ return serializeTransactionEIP7702(transaction, signature);
33680
+ return serializeTransactionLegacy(transaction, signature);
33681
+ }
33682
+ function serializeTransactionEIP7702(transaction, signature) {
33683
+ const { authorizationList, chainId, gas, nonce, to, value: value6, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
33684
+ assertTransactionEIP7702(transaction);
33685
+ const serializedAccessList = serializeAccessList(accessList);
33686
+ const serializedAuthorizationList = serializeAuthorizationList(authorizationList);
33687
+ return concatHex([
33688
+ "0x04",
33689
+ toRlp([
33690
+ toHex(chainId),
33691
+ nonce ? toHex(nonce) : "0x",
33692
+ maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
33693
+ maxFeePerGas ? toHex(maxFeePerGas) : "0x",
33694
+ gas ? toHex(gas) : "0x",
33695
+ to ?? "0x",
33696
+ value6 ? toHex(value6) : "0x",
33697
+ data ?? "0x",
33698
+ serializedAccessList,
33699
+ serializedAuthorizationList,
33700
+ ...toYParitySignatureArray(transaction, signature)
33701
+ ])
33702
+ ]);
33703
+ }
33704
+ function serializeTransactionEIP4844(transaction, signature) {
33705
+ const { chainId, gas, nonce, to, value: value6, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
33706
+ assertTransactionEIP4844(transaction);
33707
+ let blobVersionedHashes = transaction.blobVersionedHashes;
33708
+ let sidecars = transaction.sidecars;
33709
+ if (transaction.blobs && (typeof blobVersionedHashes === "undefined" || typeof sidecars === "undefined")) {
33710
+ const blobs2 = typeof transaction.blobs[0] === "string" ? transaction.blobs : transaction.blobs.map((x) => bytesToHex2(x));
33711
+ const kzg = transaction.kzg;
33712
+ const commitments2 = blobsToCommitments({
33713
+ blobs: blobs2,
33714
+ kzg
33715
+ });
33716
+ if (typeof blobVersionedHashes === "undefined")
33717
+ blobVersionedHashes = commitmentsToVersionedHashes({
33718
+ commitments: commitments2
33719
+ });
33720
+ if (typeof sidecars === "undefined") {
33721
+ const proofs2 = blobsToProofs({ blobs: blobs2, commitments: commitments2, kzg });
33722
+ sidecars = toBlobSidecars({ blobs: blobs2, commitments: commitments2, proofs: proofs2 });
33723
+ }
33724
+ }
33725
+ const serializedAccessList = serializeAccessList(accessList);
33726
+ const serializedTransaction = [
33727
+ toHex(chainId),
33728
+ nonce ? toHex(nonce) : "0x",
33729
+ maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
33730
+ maxFeePerGas ? toHex(maxFeePerGas) : "0x",
33731
+ gas ? toHex(gas) : "0x",
33732
+ to ?? "0x",
33733
+ value6 ? toHex(value6) : "0x",
33734
+ data ?? "0x",
33735
+ serializedAccessList,
33736
+ maxFeePerBlobGas ? toHex(maxFeePerBlobGas) : "0x",
33737
+ blobVersionedHashes ?? [],
33738
+ ...toYParitySignatureArray(transaction, signature)
33739
+ ];
33740
+ const blobs = [];
33741
+ const commitments = [];
33742
+ const proofs = [];
33743
+ if (sidecars)
33744
+ for (let i = 0;i < sidecars.length; i++) {
33745
+ const { blob, commitment, proof } = sidecars[i];
33746
+ blobs.push(blob);
33747
+ commitments.push(commitment);
33748
+ proofs.push(proof);
33749
+ }
33750
+ return concatHex([
33751
+ "0x03",
33752
+ sidecars ? toRlp([serializedTransaction, blobs, commitments, proofs]) : toRlp(serializedTransaction)
33753
+ ]);
33754
+ }
33755
+ function serializeTransactionEIP1559(transaction, signature) {
33756
+ const { chainId, gas, nonce, to, value: value6, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
33757
+ assertTransactionEIP1559(transaction);
33758
+ const serializedAccessList = serializeAccessList(accessList);
33759
+ const serializedTransaction = [
33760
+ toHex(chainId),
33761
+ nonce ? toHex(nonce) : "0x",
33762
+ maxPriorityFeePerGas ? toHex(maxPriorityFeePerGas) : "0x",
33763
+ maxFeePerGas ? toHex(maxFeePerGas) : "0x",
33764
+ gas ? toHex(gas) : "0x",
33765
+ to ?? "0x",
33766
+ value6 ? toHex(value6) : "0x",
33767
+ data ?? "0x",
33768
+ serializedAccessList,
33769
+ ...toYParitySignatureArray(transaction, signature)
33770
+ ];
33771
+ return concatHex([
33772
+ "0x02",
33773
+ toRlp(serializedTransaction)
33774
+ ]);
33775
+ }
33776
+ function serializeTransactionEIP2930(transaction, signature) {
33777
+ const { chainId, gas, data, nonce, to, value: value6, accessList, gasPrice } = transaction;
33778
+ assertTransactionEIP2930(transaction);
33779
+ const serializedAccessList = serializeAccessList(accessList);
33780
+ const serializedTransaction = [
33781
+ toHex(chainId),
33782
+ nonce ? toHex(nonce) : "0x",
33783
+ gasPrice ? toHex(gasPrice) : "0x",
33784
+ gas ? toHex(gas) : "0x",
33785
+ to ?? "0x",
33786
+ value6 ? toHex(value6) : "0x",
33787
+ data ?? "0x",
33788
+ serializedAccessList,
33789
+ ...toYParitySignatureArray(transaction, signature)
33790
+ ];
33791
+ return concatHex([
33792
+ "0x01",
33793
+ toRlp(serializedTransaction)
33794
+ ]);
33795
+ }
33796
+ function serializeTransactionLegacy(transaction, signature) {
33797
+ const { chainId = 0, gas, data, nonce, to, value: value6, gasPrice } = transaction;
33798
+ assertTransactionLegacy(transaction);
33799
+ let serializedTransaction = [
33800
+ nonce ? toHex(nonce) : "0x",
33801
+ gasPrice ? toHex(gasPrice) : "0x",
33802
+ gas ? toHex(gas) : "0x",
33803
+ to ?? "0x",
33804
+ value6 ? toHex(value6) : "0x",
33805
+ data ?? "0x"
33806
+ ];
33807
+ if (signature) {
33808
+ const v = (() => {
33809
+ if (signature.v >= 35n) {
33810
+ const inferredChainId = (signature.v - 35n) / 2n;
33811
+ if (inferredChainId > 0)
33812
+ return signature.v;
33813
+ return 27n + (signature.v === 35n ? 0n : 1n);
33814
+ }
33815
+ if (chainId > 0)
33816
+ return BigInt(chainId * 2) + BigInt(35n + signature.v - 27n);
33817
+ const v2 = 27n + (signature.v === 27n ? 0n : 1n);
33818
+ if (signature.v !== v2)
33819
+ throw new InvalidLegacyVError({ v: signature.v });
33820
+ return v2;
33821
+ })();
33822
+ const r = trim(signature.r);
33823
+ const s = trim(signature.s);
33824
+ serializedTransaction = [
33825
+ ...serializedTransaction,
33826
+ toHex(v),
33827
+ r === "0x00" ? "0x" : r,
33828
+ s === "0x00" ? "0x" : s
33829
+ ];
33830
+ } else if (chainId > 0) {
33831
+ serializedTransaction = [
33832
+ ...serializedTransaction,
33833
+ toHex(chainId),
33834
+ "0x",
33835
+ "0x"
33836
+ ];
33837
+ }
33838
+ return toRlp(serializedTransaction);
33839
+ }
33840
+ function toYParitySignatureArray(transaction, signature_) {
33841
+ const signature = signature_ ?? transaction;
33842
+ const { v, yParity } = signature;
33843
+ if (typeof signature.r === "undefined")
33844
+ return [];
33845
+ if (typeof signature.s === "undefined")
33846
+ return [];
33847
+ if (typeof v === "undefined" && typeof yParity === "undefined")
33848
+ return [];
33849
+ const r = trim(signature.r);
33850
+ const s = trim(signature.s);
33851
+ const yParity_ = (() => {
33852
+ if (typeof yParity === "number")
33853
+ return yParity ? toHex(1) : "0x";
33854
+ if (v === 0n)
33855
+ return "0x";
33856
+ if (v === 1n)
33857
+ return toHex(1);
33858
+ return v === 27n ? "0x" : toHex(1);
33859
+ })();
33860
+ return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
33861
+ }
33862
+
33863
+ // node_modules/viem/_esm/index.js
32147
33864
  init_toBytes();
32148
33865
  init_toHex();
32149
33866
  // src/schema.ts
@@ -32408,6 +34125,8 @@ __export(exports_lite, {
32408
34125
  proxyAbi: () => proxyAbi,
32409
34126
  ownableUpgradeableAbi: () => ownableUpgradeableAbi,
32410
34127
  mockOpHandlerAbi: () => mockOpHandlerAbi,
34128
+ lightningTestnetCovalidatorGrpc: () => lightningTestnetCovalidatorGrpc,
34129
+ lightningDevnetCovalidatorGrpc: () => lightningDevnetCovalidatorGrpc,
32411
34130
  initializableAbi: () => initializableAbi,
32412
34131
  incoTestAbi: () => incoTestAbi,
32413
34132
  incoLiteReencryptor: () => incoLiteReencryptor,
@@ -32439,8 +34158,6 @@ __export(exports_lite, {
32439
34158
  emitterAbi: () => emitterAbi,
32440
34159
  eip712Abi: () => eip712Abi,
32441
34160
  deployUtilsAbi: () => deployUtilsAbi,
32442
- denverTestnetCovalidatorGrpc: () => denverTestnetCovalidatorGrpc,
32443
- denverDevnetCovalidatorGrpc: () => denverDevnetCovalidatorGrpc,
32444
34161
  defaultCovalidatorGrpc: () => defaultCovalidatorGrpc,
32445
34162
  decryptionHandlerEip712CheckerAbi: () => decryptionHandlerEip712CheckerAbi,
32446
34163
  decryptionHandlerAbi: () => decryptionHandlerAbi,
@@ -32476,6 +34193,270 @@ function getSupportedChain(chainish) {
32476
34193
 
32477
34194
  // src/generated/lightning.ts
32478
34195
  var lightningDeployments = [
34196
+ {
34197
+ name: "incoLightning_0_1_29__183408998",
34198
+ executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
34199
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34200
+ pepper: "testnet",
34201
+ version: {
34202
+ major: 0,
34203
+ minor: 1,
34204
+ patch: 29,
34205
+ shortSalt: "183408998"
34206
+ },
34207
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
34208
+ decryptSigner: "0x000000000000000000000000000000000000baBe",
34209
+ eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
34210
+ chainId: "7311099111",
34211
+ blockNumber: "1",
34212
+ chainName: "Inco Release Chain",
34213
+ active: true,
34214
+ deployDate: "2025-04-22T16:02:38.372Z",
34215
+ commit: "v3-28-g93c05a49-dirty",
34216
+ addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
34217
+ },
34218
+ {
34219
+ name: "incoLightning_0_1_29__183408998",
34220
+ executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
34221
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34222
+ pepper: "testnet",
34223
+ version: {
34224
+ major: 0,
34225
+ minor: 1,
34226
+ patch: 29,
34227
+ shortSalt: "183408998"
34228
+ },
34229
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
34230
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34231
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34232
+ chainId: "10143",
34233
+ blockNumber: "13464615",
34234
+ chainName: "Monad Testnet",
34235
+ active: true,
34236
+ deployDate: "2025-04-22T16:01:14.380Z",
34237
+ commit: "v3-28-g93c05a49-dirty",
34238
+ addTwoAddress: "0x3E0Aa45e4BD7E86093460A302803298a0EE7155a"
34239
+ },
34240
+ {
34241
+ name: "incoLightning_0_1_29__183408998",
34242
+ executorAddress: "0x63D8135aF4D393B1dB43B649010c8D3EE19FC9fd",
34243
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34244
+ pepper: "testnet",
34245
+ version: {
34246
+ major: 0,
34247
+ minor: 1,
34248
+ patch: 29,
34249
+ shortSalt: "183408998"
34250
+ },
34251
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00d75ffa0caf0797c3f12d66",
34252
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34253
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34254
+ chainId: "84532",
34255
+ blockNumber: "24784654",
34256
+ chainName: "Base Sepolia",
34257
+ active: true,
34258
+ deployDate: "2025-04-22T16:00:02.028Z",
34259
+ commit: "v3-28-g93c05a49-dirty",
34260
+ addTwoAddress: "0xF10E6B2ddd168D105546f39E1Ba64004E4FbeF10"
34261
+ },
34262
+ {
34263
+ name: "incoLightning_0_1_29__340846814",
34264
+ executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
34265
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34266
+ pepper: "devnet",
34267
+ version: {
34268
+ major: 0,
34269
+ minor: 1,
34270
+ patch: 29,
34271
+ shortSalt: "340846814"
34272
+ },
34273
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
34274
+ decryptSigner: "0x000000000000000000000000000000000000baBe",
34275
+ eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
34276
+ chainId: "7311099111",
34277
+ blockNumber: "1",
34278
+ chainName: "Inco Release Chain",
34279
+ active: true,
34280
+ deployDate: "2025-04-22T15:59:01.071Z",
34281
+ commit: "v3-28-g93c05a49-dirty",
34282
+ addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
34283
+ },
34284
+ {
34285
+ name: "incoLightning_0_1_29__340846814",
34286
+ executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
34287
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34288
+ pepper: "devnet",
34289
+ version: {
34290
+ major: 0,
34291
+ minor: 1,
34292
+ patch: 29,
34293
+ shortSalt: "340846814"
34294
+ },
34295
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
34296
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34297
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34298
+ chainId: "10143",
34299
+ blockNumber: "13464197",
34300
+ chainName: "Monad Testnet",
34301
+ active: true,
34302
+ deployDate: "2025-04-22T15:57:26.862Z",
34303
+ commit: "v3-28-g93c05a49-dirty",
34304
+ addTwoAddress: "0x6A23b79203F1Db95947423291C8177B144DDE372"
34305
+ },
34306
+ {
34307
+ name: "incoLightning_0_1_29__340846814",
34308
+ executorAddress: "0x3B22be60Ae699933959CA3cE147C96caa88Ccd3D",
34309
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34310
+ pepper: "devnet",
34311
+ version: {
34312
+ major: 0,
34313
+ minor: 1,
34314
+ patch: 29,
34315
+ shortSalt: "340846814"
34316
+ },
34317
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc00b001d6742fded0dd599ede",
34318
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34319
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34320
+ chainId: "84532",
34321
+ blockNumber: "24784527",
34322
+ chainName: "Base Sepolia",
34323
+ active: true,
34324
+ deployDate: "2025-04-22T15:55:47.828Z",
34325
+ commit: "v3-28-g93c05a49-dirty",
34326
+ addTwoAddress: "0x1A98fB1f7E57C0648b1d2A7DEA6e126C302A7e93"
34327
+ },
34328
+ {
34329
+ name: "incoLightning_0_1_27__558243565",
34330
+ executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
34331
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34332
+ pepper: "testnet",
34333
+ version: {
34334
+ major: 0,
34335
+ minor: 1,
34336
+ patch: 27,
34337
+ shortSalt: "558243565"
34338
+ },
34339
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
34340
+ decryptSigner: "0x000000000000000000000000000000000000baBe",
34341
+ eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
34342
+ chainId: "7311099111",
34343
+ blockNumber: "1",
34344
+ chainName: "Inco Release Chain",
34345
+ active: true,
34346
+ deployDate: "2025-04-22T14:57:24.620Z",
34347
+ commit: "v3-28-g652cc4a1-dirty",
34348
+ addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
34349
+ },
34350
+ {
34351
+ name: "incoLightning_0_1_27__558243565",
34352
+ executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
34353
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34354
+ pepper: "testnet",
34355
+ version: {
34356
+ major: 0,
34357
+ minor: 1,
34358
+ patch: 27,
34359
+ shortSalt: "558243565"
34360
+ },
34361
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
34362
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34363
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34364
+ chainId: "10143",
34365
+ blockNumber: "13457424",
34366
+ chainName: "Monad Testnet",
34367
+ active: true,
34368
+ deployDate: "2025-04-22T14:57:15.486Z",
34369
+ commit: "v3-28-g652cc4a1-dirty",
34370
+ addTwoAddress: "0xbbf1f797b5e132b72f4a45E1923cBb0BFeca80FA"
34371
+ },
34372
+ {
34373
+ name: "incoLightning_0_1_27__558243565",
34374
+ executorAddress: "0x595dc0fA68e7847aC1b1d52a56A1551ad0e38472",
34375
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34376
+ pepper: "testnet",
34377
+ version: {
34378
+ major: 0,
34379
+ minor: 1,
34380
+ patch: 27,
34381
+ shortSalt: "558243565"
34382
+ },
34383
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc008f0e1b154a58f3ce49d6ed",
34384
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34385
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34386
+ chainId: "84532",
34387
+ blockNumber: "24782764",
34388
+ chainName: "Base Sepolia",
34389
+ active: true,
34390
+ deployDate: "2025-04-22T14:57:02.375Z",
34391
+ commit: "v3-28-g652cc4a1",
34392
+ addTwoAddress: "0x0c6320A91ec6BA7d42B4f079132fD71A90C12e22"
34393
+ },
34394
+ {
34395
+ name: "incoLightning_0_1_27__125335042",
34396
+ executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
34397
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34398
+ pepper: "devnet",
34399
+ version: {
34400
+ major: 0,
34401
+ minor: 1,
34402
+ patch: 27,
34403
+ shortSalt: "125335042"
34404
+ },
34405
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
34406
+ decryptSigner: "0x000000000000000000000000000000000000baBe",
34407
+ eciesPublicKey: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000babe",
34408
+ chainId: "7311099111",
34409
+ blockNumber: "1",
34410
+ chainName: "Inco Release Chain",
34411
+ active: true,
34412
+ deployDate: "2025-04-22T14:35:10.281Z",
34413
+ commit: "v3-27-ge3d04b6a-dirty",
34414
+ addTwoAddress: "0x04461CD161001BC484C55D253F744462A6eADc10"
34415
+ },
34416
+ {
34417
+ name: "incoLightning_0_1_27__125335042",
34418
+ executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
34419
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34420
+ pepper: "devnet",
34421
+ version: {
34422
+ major: 0,
34423
+ minor: 1,
34424
+ patch: 27,
34425
+ shortSalt: "125335042"
34426
+ },
34427
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
34428
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34429
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34430
+ chainId: "10143",
34431
+ blockNumber: "13454931",
34432
+ chainName: "Monad Testnet",
34433
+ active: true,
34434
+ deployDate: "2025-04-22T14:35:02.958Z",
34435
+ commit: "v3-27-ge3d04b6a-dirty",
34436
+ addTwoAddress: "0xC1ee708D522B8b0743B5C5309AeD6b6b4C4102a6"
34437
+ },
34438
+ {
34439
+ name: "incoLightning_0_1_27__125335042",
34440
+ executorAddress: "0x902B77583C7C5df71C95114707C4974A8d5Dff9D",
34441
+ deployer: "0x8202D2D747784Cb7D48868E44C42C4bf162a70BC",
34442
+ pepper: "devnet",
34443
+ version: {
34444
+ major: 0,
34445
+ minor: 1,
34446
+ patch: 27,
34447
+ shortSalt: "125335042"
34448
+ },
34449
+ salt: "0x8202d2d747784cb7d48868e44c42c4bf162a70bc003343825a7e951afb24c202",
34450
+ decryptSigner: "0xA8822DE8910f66D3d03F1eAfe2C0141dBc327Ee0",
34451
+ eciesPublicKey: "0x048a582d29083c2f3fefe024bf4dd9ab913ab8973716977da5f01106e0b84095b1e647a9e377175fcb66bda05087c93b05e1fd53a704d0914bb23a0b2a69e9f235",
34452
+ chainId: "84532",
34453
+ blockNumber: "24782097",
34454
+ chainName: "Base Sepolia",
34455
+ active: true,
34456
+ deployDate: "2025-04-22T14:34:47.565Z",
34457
+ commit: "v3-27-ge3d04b6a-dirty",
34458
+ addTwoAddress: "0xAac318ca07FCA665c4d27A7e9e8FB65B89AfAC83"
34459
+ },
32479
34460
  {
32480
34461
  name: "incoLightning_0_1_26__18043964",
32481
34462
  executorAddress: "0x69Ef6a59f9eE2d6f3b49eA3F79bcF1553512DF0e",
@@ -32496,7 +34477,6 @@ var lightningDeployments = [
32496
34477
  active: true,
32497
34478
  deployDate: "2025-04-22T12:14:50.447Z",
32498
34479
  commit: "v3-26-g623cec72-dirty",
32499
- sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
32500
34480
  addTwoAddress: "0x70fC34B18B12E945cb2204FA77E5f8e1581890C3"
32501
34481
  },
32502
34482
  {
@@ -32519,7 +34499,6 @@ var lightningDeployments = [
32519
34499
  active: true,
32520
34500
  deployDate: "2025-04-22T12:14:42.391Z",
32521
34501
  commit: "v3-26-g623cec72-dirty",
32522
- sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
32523
34502
  addTwoAddress: "0x4A49112FB866F6d5D05845D264b430cD3bbAb9f6"
32524
34503
  },
32525
34504
  {
@@ -32542,7 +34521,6 @@ var lightningDeployments = [
32542
34521
  active: true,
32543
34522
  deployDate: "2025-04-22T12:14:25.354Z",
32544
34523
  commit: "v3-26-g623cec72-dirty",
32545
- sessionVerifierAddress: "0x0F508B0Fb940595046AB0eceB7A4C8b3e20Cb674",
32546
34524
  addTwoAddress: "0x2b5E34844997681168049783D30CD84B5962cb50"
32547
34525
  },
32548
34526
  {
@@ -32565,7 +34543,6 @@ var lightningDeployments = [
32565
34543
  active: true,
32566
34544
  deployDate: "2025-04-22T09:11:15.398Z",
32567
34545
  commit: "v3-24-gc9716e6c-dirty",
32568
- sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
32569
34546
  addTwoAddress: "0x70fC34B18B12E945cb2204FA77E5f8e1581890C3"
32570
34547
  },
32571
34548
  {
@@ -32588,7 +34565,6 @@ var lightningDeployments = [
32588
34565
  active: true,
32589
34566
  deployDate: "2025-04-22T09:11:06.223Z",
32590
34567
  commit: "v3-24-gc9716e6c-dirty",
32591
- sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
32592
34568
  addTwoAddress: "0xfeE9C1E41b2268a4ad8EaDA35f510b8d89Cd041c"
32593
34569
  },
32594
34570
  {
@@ -32611,7 +34587,6 @@ var lightningDeployments = [
32611
34587
  active: true,
32612
34588
  deployDate: "2025-04-22T09:10:33.275Z",
32613
34589
  commit: "v3-24-gc9716e6c-dirty",
32614
- sessionVerifierAddress: "0x3D4eB5f90E6d996c2b45b0BEb4110b5be98e243F",
32615
34590
  addTwoAddress: "0xeEa387f7c866A81c2AF532D9ed48c60F179C9827"
32616
34591
  }
32617
34592
  ];
@@ -33658,7 +35633,8 @@ class BinaryReader {
33658
35633
  let start5 = this.pos;
33659
35634
  switch (wireType) {
33660
35635
  case WireType.Varint:
33661
- while (this.buf[this.pos++] & 128) {}
35636
+ while (this.buf[this.pos++] & 128) {
35637
+ }
33662
35638
  break;
33663
35639
  case WireType.Bit64:
33664
35640
  this.pos += 4;
@@ -34292,12 +36268,14 @@ function mapKeyToReflect(key, type2) {
34292
36268
  case ScalarType.FIXED64:
34293
36269
  try {
34294
36270
  return protoInt64.uParse(key);
34295
- } catch (_a) {}
36271
+ } catch (_a) {
36272
+ }
34296
36273
  break;
34297
36274
  default:
34298
36275
  try {
34299
36276
  return protoInt64.parse(key);
34300
- } catch (_b) {}
36277
+ } catch (_b) {
36278
+ }
34301
36279
  break;
34302
36280
  }
34303
36281
  return key;
@@ -36985,7 +38963,8 @@ class ConnectError extends Error {
36985
38963
  if (desc) {
36986
38964
  try {
36987
38965
  details.push(fromBinary(desc, data.value));
36988
- } catch (_) {}
38966
+ } catch (_) {
38967
+ }
36989
38968
  }
36990
38969
  }
36991
38970
  return details;
@@ -37734,9 +39713,11 @@ function runStreamingCall(opt) {
37734
39713
  var _a, _b;
37735
39714
  const it = opt.req.message[Symbol.asyncIterator]();
37736
39715
  if (!doneCalled) {
37737
- (_a = it.throw) === null || _a === undefined || _a.call(it, this.reason).catch(() => {});
39716
+ (_a = it.throw) === null || _a === undefined || _a.call(it, this.reason).catch(() => {
39717
+ });
37738
39718
  }
37739
- (_b = it.return) === null || _b === undefined || _b.call(it).catch(() => {});
39719
+ (_b = it.return) === null || _b === undefined || _b.call(it).catch(() => {
39720
+ });
37740
39721
  });
37741
39722
  return next5(req).then((res) => {
37742
39723
  return Object.assign(Object.assign({}, res), { message: {
@@ -38097,7 +40078,7 @@ async function incoLiteReencryptor({
38097
40078
  return decryptGrpcResponse(response, ephemeralKeypair, handle);
38098
40079
  } catch (error2) {
38099
40080
  console.log(error2);
38100
- process.exit(1);
40081
+ throw error2;
38101
40082
  }
38102
40083
  };
38103
40084
  }
@@ -38120,16 +40101,16 @@ async function decryptGrpcResponse(response, ephemeralKeypair, handle) {
38120
40101
  return bigintToPlaintext(encryptionSchemes.ecies, getHandleType(handle), plaintext);
38121
40102
  }
38122
40103
  function defaultCovalidatorGrpc(chain) {
38123
- return denverTestnetCovalidatorGrpc(chain);
40104
+ return lightningTestnetCovalidatorGrpc(chain);
38124
40105
  }
38125
40106
  function pulumiCovalidatorGrpc(chain) {
38126
40107
  return `https://grpc.${chain.name.toLowerCase()}.covalidator.denver.inco.org`;
38127
40108
  }
38128
- function denverDevnetCovalidatorGrpc(chain) {
38129
- return getCovalidatorGrpcHelper(chain, "devnet", "denver");
40109
+ function lightningDevnetCovalidatorGrpc(chain) {
40110
+ return getCovalidatorGrpcHelper(chain, "devnet", "lightning");
38130
40111
  }
38131
- function denverTestnetCovalidatorGrpc(chain) {
38132
- return getCovalidatorGrpcHelper(chain, "testnet", "denver");
40112
+ function lightningTestnetCovalidatorGrpc(chain) {
40113
+ return getCovalidatorGrpcHelper(chain, "testnet", "lightning");
38133
40114
  }
38134
40115
  function camelToDashCase(str) {
38135
40116
  return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();