@inco/js 0.1.32 → 0.1.33

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,7 +180,7 @@ var init_abi = __esm(() => {
179
180
  };
180
181
  });
181
182
 
182
- // ../node_modules/viem/_esm/errors/data.js
183
+ // node_modules/viem/_esm/errors/data.js
183
184
  var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
184
185
  var init_data = __esm(() => {
185
186
  init_base();
@@ -195,7 +196,7 @@ var init_data = __esm(() => {
195
196
  };
196
197
  });
197
198
 
198
- // ../node_modules/viem/_esm/utils/data/pad.js
199
+ // node_modules/viem/_esm/utils/data/pad.js
199
200
  function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
200
201
  if (typeof hexOrBytes === "string")
201
202
  return padHex(hexOrBytes, { dir: dir2, size: size22 });
@@ -233,7 +234,7 @@ var init_pad = __esm(() => {
233
234
  init_data();
234
235
  });
235
236
 
236
- // ../node_modules/viem/_esm/errors/encoding.js
237
+ // node_modules/viem/_esm/errors/encoding.js
237
238
  var IntegerOutOfRangeError, SizeOverflowError;
238
239
  var init_encoding = __esm(() => {
239
240
  init_base();
@@ -249,7 +250,7 @@ var init_encoding = __esm(() => {
249
250
  };
250
251
  });
251
252
 
252
- // ../node_modules/viem/_esm/utils/data/trim.js
253
+ // node_modules/viem/_esm/utils/data/trim.js
253
254
  function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
254
255
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
255
256
  let sliceLength = 0;
@@ -268,7 +269,7 @@ function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
268
269
  return data;
269
270
  }
270
271
 
271
- // ../node_modules/viem/_esm/utils/encoding/fromHex.js
272
+ // node_modules/viem/_esm/utils/encoding/fromHex.js
272
273
  function assertSize(hexOrBytes, { size: size22 }) {
273
274
  if (size21(hexOrBytes) > size22)
274
275
  throw new SizeOverflowError({
@@ -297,7 +298,7 @@ var init_fromHex = __esm(() => {
297
298
  init_size();
298
299
  });
299
300
 
300
- // ../node_modules/viem/_esm/utils/encoding/toHex.js
301
+ // node_modules/viem/_esm/utils/encoding/toHex.js
301
302
  function toHex(value6, opts = {}) {
302
303
  if (typeof value6 === "number" || typeof value6 === "bigint")
303
304
  return numberToHex(value6, opts);
@@ -369,7 +370,7 @@ var init_toHex = __esm(() => {
369
370
  encoder2 = /* @__PURE__ */ new TextEncoder;
370
371
  });
371
372
 
372
- // ../node_modules/viem/_esm/utils/encoding/toBytes.js
373
+ // node_modules/viem/_esm/utils/encoding/toBytes.js
373
374
  function toBytes(value6, opts = {}) {
374
375
  if (typeof value6 === "number" || typeof value6 === "bigint")
375
376
  return numberToBytes(value6, opts);
@@ -474,7 +475,8 @@ function aoutput(out, instance) {
474
475
  throw new Error("digestInto() expects output buffer of length at least " + min4);
475
476
  }
476
477
  }
477
- var init__assert = () => {};
478
+ var init__assert = () => {
479
+ };
478
480
 
479
481
  // ../node_modules/@noble/hashes/esm/_u64.js
480
482
  function fromBig(n, le = false) {
@@ -742,7 +744,7 @@ var init_sha3 = __esm(() => {
742
744
  shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
743
745
  });
744
746
 
745
- // ../node_modules/viem/_esm/utils/hash/keccak256.js
747
+ // node_modules/viem/_esm/utils/hash/keccak256.js
746
748
  function keccak256(value6, to_) {
747
749
  const to = to_ || "hex";
748
750
  const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
@@ -756,7 +758,7 @@ var init_keccak256 = __esm(() => {
756
758
  init_toHex();
757
759
  });
758
760
 
759
- // ../node_modules/viem/_esm/errors/address.js
761
+ // node_modules/viem/_esm/errors/address.js
760
762
  var InvalidAddressError;
761
763
  var init_address = __esm(() => {
762
764
  init_base();
@@ -773,7 +775,7 @@ var init_address = __esm(() => {
773
775
  };
774
776
  });
775
777
 
776
- // ../node_modules/viem/_esm/utils/lru.js
778
+ // node_modules/viem/_esm/utils/lru.js
777
779
  var LruMap;
778
780
  var init_lru = __esm(() => {
779
781
  LruMap = class LruMap extends Map {
@@ -807,7 +809,7 @@ var init_lru = __esm(() => {
807
809
  };
808
810
  });
809
811
 
810
- // ../node_modules/viem/_esm/utils/address/getAddress.js
812
+ // node_modules/viem/_esm/utils/address/getAddress.js
811
813
  function checksumAddress(address_, chainId) {
812
814
  if (checksumAddressCache.has(`${address_}.${chainId}`))
813
815
  return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -834,7 +836,7 @@ var init_getAddress = __esm(() => {
834
836
  checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
835
837
  });
836
838
 
837
- // ../node_modules/viem/_esm/utils/address/isAddress.js
839
+ // node_modules/viem/_esm/utils/address/isAddress.js
838
840
  function isAddress(address, options) {
839
841
  const { strict: strict2 = true } = options ?? {};
840
842
  const cacheKey = `${address}.${strict2}`;
@@ -860,12 +862,12 @@ var init_isAddress = __esm(() => {
860
862
  isAddressCache = /* @__PURE__ */ new LruMap(8192);
861
863
  });
862
864
 
863
- // ../node_modules/viem/_esm/utils/data/concat.js
865
+ // node_modules/viem/_esm/utils/data/concat.js
864
866
  function concatHex(values7) {
865
867
  return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
866
868
  }
867
869
 
868
- // ../node_modules/viem/_esm/utils/data/slice.js
870
+ // node_modules/viem/_esm/utils/data/slice.js
869
871
  function slice(value6, start5, end6, { strict: strict2 } = {}) {
870
872
  if (isHex(value6, { strict: false }))
871
873
  return sliceHex(value6, start5, end6, {
@@ -911,7 +913,7 @@ var init_slice = __esm(() => {
911
913
  init_size();
912
914
  });
913
915
 
914
- // ../node_modules/viem/_esm/utils/regex.js
916
+ // node_modules/viem/_esm/utils/regex.js
915
917
  var arrayRegex, bytesRegex, integerRegex;
916
918
  var init_regex = __esm(() => {
917
919
  arrayRegex = /^(.*)\[([0-9]*)\]$/;
@@ -919,7 +921,7 @@ var init_regex = __esm(() => {
919
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)?$/;
920
922
  });
921
923
 
922
- // ../node_modules/viem/_esm/errors/cursor.js
924
+ // node_modules/viem/_esm/errors/cursor.js
923
925
  var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
924
926
  var init_cursor = __esm(() => {
925
927
  init_base();
@@ -942,7 +944,7 @@ var init_cursor = __esm(() => {
942
944
  };
943
945
  });
944
946
 
945
- // ../node_modules/viem/_esm/utils/cursor.js
947
+ // node_modules/viem/_esm/utils/cursor.js
946
948
  function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
947
949
  const cursor = Object.create(staticCursor);
948
950
  cursor.bytes = bytes;
@@ -1115,7 +1117,7 @@ var init_cursor2 = __esm(() => {
1115
1117
  };
1116
1118
  });
1117
1119
 
1118
- // ../node_modules/viem/_esm/constants/unit.js
1120
+ // node_modules/viem/_esm/constants/unit.js
1119
1121
  var gweiUnits;
1120
1122
  var init_unit = __esm(() => {
1121
1123
  gweiUnits = {
@@ -1124,7 +1126,7 @@ var init_unit = __esm(() => {
1124
1126
  };
1125
1127
  });
1126
1128
 
1127
- // ../node_modules/viem/_esm/utils/unit/formatUnits.js
1129
+ // node_modules/viem/_esm/utils/unit/formatUnits.js
1128
1130
  function formatUnits(value6, decimals) {
1129
1131
  let display = value6.toString();
1130
1132
  const negative2 = display.startsWith("-");
@@ -1139,7 +1141,7 @@ function formatUnits(value6, decimals) {
1139
1141
  return `${negative2 ? "-" : ""}${integer3 || "0"}${fraction ? `.${fraction}` : ""}`;
1140
1142
  }
1141
1143
 
1142
- // ../node_modules/viem/_esm/utils/unit/formatGwei.js
1144
+ // node_modules/viem/_esm/utils/unit/formatGwei.js
1143
1145
  function formatGwei(wei, unit = "wei") {
1144
1146
  return formatUnits(wei, gweiUnits[unit]);
1145
1147
  }
@@ -1147,7 +1149,7 @@ var init_formatGwei = __esm(() => {
1147
1149
  init_unit();
1148
1150
  });
1149
1151
 
1150
- // ../node_modules/viem/_esm/errors/transaction.js
1152
+ // node_modules/viem/_esm/errors/transaction.js
1151
1153
  function prettyPrint(args2) {
1152
1154
  const entries3 = Object.entries(args2).map(([key, value6]) => {
1153
1155
  if (value6 === undefined || value6 === false)
@@ -1196,7 +1198,7 @@ var init_transaction = __esm(() => {
1196
1198
  };
1197
1199
  });
1198
1200
 
1199
- // ../node_modules/viem/_esm/errors/node.js
1201
+ // node_modules/viem/_esm/errors/node.js
1200
1202
  var ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, NonceTooHighError, NonceTooLowError, NonceMaxValueError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, TransactionTypeNotSupportedError, TipAboveFeeCapError;
1201
1203
  var init_node = __esm(() => {
1202
1204
  init_formatGwei();
@@ -1375,7 +1377,7 @@ var init_node = __esm(() => {
1375
1377
  });
1376
1378
  });
1377
1379
 
1378
- // ../node_modules/viem/_esm/utils/formatters/formatter.js
1380
+ // node_modules/viem/_esm/utils/formatters/formatter.js
1379
1381
  function defineFormatter(type2, format7) {
1380
1382
  return ({ exclude: exclude3, format: overrides }) => {
1381
1383
  return {
@@ -1397,7 +1399,7 @@ function defineFormatter(type2, format7) {
1397
1399
  };
1398
1400
  }
1399
1401
 
1400
- // ../node_modules/viem/_esm/constants/number.js
1402
+ // node_modules/viem/_esm/constants/number.js
1401
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;
1402
1404
  var init_number = __esm(() => {
1403
1405
  maxInt8 = 2n ** (8n - 1n) - 1n;
@@ -1763,7 +1765,7 @@ var init_sha256 = __esm(() => {
1763
1765
  sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
1764
1766
  });
1765
1767
 
1766
- // ../node_modules/viem/_esm/errors/chain.js
1768
+ // node_modules/viem/_esm/errors/chain.js
1767
1769
  var InvalidChainIdError;
1768
1770
  var init_chain = __esm(() => {
1769
1771
  init_base();
@@ -2099,7 +2101,8 @@ var tracingFunction = (name) => {
2099
2101
  };
2100
2102
  };
2101
2103
  var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
2102
- var genConstructor = function* () {}.constructor;
2104
+ var genConstructor = function* () {
2105
+ }.constructor;
2103
2106
 
2104
2107
  // ../node_modules/effect/dist/esm/Hash.js
2105
2108
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
@@ -2446,7 +2449,8 @@ var StructuralCommitPrototype = {
2446
2449
  ...StructuralPrototype
2447
2450
  };
2448
2451
  var Base = /* @__PURE__ */ function() {
2449
- function Base2() {}
2452
+ function Base2() {
2453
+ }
2450
2454
  Base2.prototype = CommitPrototype;
2451
2455
  return Base2;
2452
2456
  }();
@@ -5949,7 +5953,8 @@ var Reference = () => (id, options) => {
5949
5953
  Error.stackTraceLimit = 2;
5950
5954
  const creationError = new Error;
5951
5955
  Error.stackTraceLimit = limit;
5952
- function ReferenceClass() {}
5956
+ function ReferenceClass() {
5957
+ }
5953
5958
  Object.setPrototypeOf(ReferenceClass, ReferenceProto);
5954
5959
  ReferenceClass.key = id;
5955
5960
  ReferenceClass.defaultValue = options.defaultValue;
@@ -8889,7 +8894,8 @@ var prettyErrorMessage = (u) => {
8889
8894
  if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
8890
8895
  return u["toString"]();
8891
8896
  }
8892
- } catch {}
8897
+ } catch {
8898
+ }
8893
8899
  return stringifyCircular(u);
8894
8900
  };
8895
8901
  var locationRegex = /\((.*)\)/g;
@@ -9463,7 +9469,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
9463
9469
  var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
9464
9470
  var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
9465
9471
  var never = /* @__PURE__ */ asyncInterrupt(() => {
9466
- const interval = setInterval(() => {}, 2 ** 31 - 1);
9472
+ const interval = setInterval(() => {
9473
+ }, 2 ** 31 - 1);
9467
9474
  return sync(() => clearInterval(interval));
9468
9475
  });
9469
9476
  var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
@@ -13283,11 +13290,16 @@ class Const {
13283
13290
  get value() {
13284
13291
  return this.effect;
13285
13292
  }
13286
- onStart(_context, _effect, _parent, _fiber) {}
13287
- onEnd(_value, _fiber) {}
13288
- onEffect(_fiber, _effect) {}
13289
- onSuspend(_fiber) {}
13290
- onResume(_fiber) {}
13293
+ onStart(_context, _effect, _parent, _fiber) {
13294
+ }
13295
+ onEnd(_value, _fiber) {
13296
+ }
13297
+ onEffect(_fiber, _effect) {
13298
+ }
13299
+ onSuspend(_fiber) {
13300
+ }
13301
+ onResume(_fiber) {
13302
+ }
13291
13303
  map(f) {
13292
13304
  return new ProxySupervisor(this, pipe(this.value, map9(f)));
13293
13305
  }
@@ -13761,7 +13773,8 @@ class FiberRuntime extends Class {
13761
13773
  return whileLoop({
13762
13774
  while: () => !isDone3,
13763
13775
  body,
13764
- step: () => {}
13776
+ step: () => {
13777
+ }
13765
13778
  });
13766
13779
  }
13767
13780
  return null;
@@ -23291,7 +23304,7 @@ class TrieIterator {
23291
23304
  }
23292
23305
  }
23293
23306
  var isTrie = (u) => hasProperty(u, TrieTypeId);
23294
- // ../node_modules/viem/_esm/utils/encoding/toRlp.js
23307
+ // node_modules/viem/_esm/utils/encoding/toRlp.js
23295
23308
  init_base();
23296
23309
  init_cursor2();
23297
23310
  init_toBytes();
@@ -23383,7 +23396,7 @@ function getSizeOfLength(length4) {
23383
23396
  return 4;
23384
23397
  throw new BaseError("Length is too large.");
23385
23398
  }
23386
- // ../node_modules/viem/_esm/utils/formatters/transaction.js
23399
+ // node_modules/viem/_esm/utils/formatters/transaction.js
23387
23400
  init_fromHex();
23388
23401
  var transactionType = {
23389
23402
  "0x0": "legacy",
@@ -23446,7 +23459,7 @@ function formatTransaction(transaction) {
23446
23459
  var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
23447
23460
  function formatAuthorizationList(authorizationList) {
23448
23461
  return authorizationList.map((authorization) => ({
23449
- address: authorization.address,
23462
+ contractAddress: authorization.address,
23450
23463
  chainId: Number(authorization.chainId),
23451
23464
  nonce: Number(authorization.nonce),
23452
23465
  r: authorization.r,
@@ -23455,7 +23468,7 @@ function formatAuthorizationList(authorizationList) {
23455
23468
  }));
23456
23469
  }
23457
23470
 
23458
- // ../node_modules/viem/_esm/utils/formatters/block.js
23471
+ // node_modules/viem/_esm/utils/formatters/block.js
23459
23472
  function formatBlock(block) {
23460
23473
  const transactions = (block.transactions ?? []).map((transaction) => {
23461
23474
  if (typeof transaction === "string")
@@ -23482,7 +23495,7 @@ function formatBlock(block) {
23482
23495
  }
23483
23496
  var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
23484
23497
 
23485
- // ../node_modules/viem/_esm/utils/blob/blobsToCommitments.js
23498
+ // node_modules/viem/_esm/utils/blob/blobsToCommitments.js
23486
23499
  init_toBytes();
23487
23500
  init_toHex();
23488
23501
  function blobsToCommitments(parameters) {
@@ -23495,7 +23508,7 @@ function blobsToCommitments(parameters) {
23495
23508
  return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
23496
23509
  }
23497
23510
 
23498
- // ../node_modules/viem/_esm/utils/blob/blobsToProofs.js
23511
+ // node_modules/viem/_esm/utils/blob/blobsToProofs.js
23499
23512
  init_toBytes();
23500
23513
  init_toHex();
23501
23514
  function blobsToProofs(parameters) {
@@ -23512,10 +23525,10 @@ function blobsToProofs(parameters) {
23512
23525
  return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
23513
23526
  }
23514
23527
 
23515
- // ../node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23528
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23516
23529
  init_toHex();
23517
23530
 
23518
- // ../node_modules/viem/_esm/utils/hash/sha256.js
23531
+ // node_modules/viem/_esm/utils/hash/sha256.js
23519
23532
  init_sha256();
23520
23533
  init_toBytes();
23521
23534
  init_toHex();
@@ -23527,7 +23540,7 @@ function sha2562(value6, to_) {
23527
23540
  return toHex(bytes);
23528
23541
  }
23529
23542
 
23530
- // ../node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23543
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23531
23544
  function commitmentToVersionedHash(parameters) {
23532
23545
  const { commitment, version: version2 = 1 } = parameters;
23533
23546
  const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
@@ -23536,7 +23549,7 @@ function commitmentToVersionedHash(parameters) {
23536
23549
  return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
23537
23550
  }
23538
23551
 
23539
- // ../node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
23552
+ // node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
23540
23553
  function commitmentsToVersionedHashes(parameters) {
23541
23554
  const { commitments, version: version2 } = parameters;
23542
23555
  const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
@@ -23551,17 +23564,17 @@ function commitmentsToVersionedHashes(parameters) {
23551
23564
  return hashes;
23552
23565
  }
23553
23566
 
23554
- // ../node_modules/viem/_esm/constants/blob.js
23567
+ // node_modules/viem/_esm/constants/blob.js
23555
23568
  var blobsPerTransaction = 6;
23556
23569
  var bytesPerFieldElement = 32;
23557
23570
  var fieldElementsPerBlob = 4096;
23558
23571
  var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
23559
23572
  var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
23560
23573
 
23561
- // ../node_modules/viem/_esm/constants/kzg.js
23574
+ // node_modules/viem/_esm/constants/kzg.js
23562
23575
  var versionedHashVersionKzg = 1;
23563
23576
 
23564
- // ../node_modules/viem/_esm/errors/blob.js
23577
+ // node_modules/viem/_esm/errors/blob.js
23565
23578
  init_base();
23566
23579
 
23567
23580
  class BlobSizeTooLargeError extends BaseError {
@@ -23600,7 +23613,7 @@ class InvalidVersionedHashVersionError extends BaseError {
23600
23613
  }
23601
23614
  }
23602
23615
 
23603
- // ../node_modules/viem/_esm/utils/blob/toBlobs.js
23616
+ // node_modules/viem/_esm/utils/blob/toBlobs.js
23604
23617
  init_cursor2();
23605
23618
  init_size();
23606
23619
  init_toBytes();
@@ -23639,7 +23652,7 @@ function toBlobs(parameters) {
23639
23652
  return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
23640
23653
  }
23641
23654
 
23642
- // ../node_modules/viem/_esm/utils/blob/toBlobSidecars.js
23655
+ // node_modules/viem/_esm/utils/blob/toBlobSidecars.js
23643
23656
  function toBlobSidecars(parameters) {
23644
23657
  const { data, kzg, to } = parameters;
23645
23658
  const blobs = parameters.blobs ?? toBlobs({ data, to });
@@ -23655,7 +23668,7 @@ function toBlobSidecars(parameters) {
23655
23668
  return sidecars;
23656
23669
  }
23657
23670
 
23658
- // ../node_modules/viem/_esm/utils/transaction/getTransactionType.js
23671
+ // node_modules/viem/_esm/utils/transaction/getTransactionType.js
23659
23672
  init_transaction();
23660
23673
  function getTransactionType(transaction) {
23661
23674
  if (transaction.type)
@@ -23675,7 +23688,7 @@ function getTransactionType(transaction) {
23675
23688
  throw new InvalidSerializableTransactionError({ transaction });
23676
23689
  }
23677
23690
 
23678
- // ../node_modules/viem/_esm/utils/formatters/log.js
23691
+ // node_modules/viem/_esm/utils/formatters/log.js
23679
23692
  function formatLog(log3, { args: args2, eventName } = {}) {
23680
23693
  return {
23681
23694
  ...log3,
@@ -23688,7 +23701,7 @@ function formatLog(log3, { args: args2, eventName } = {}) {
23688
23701
  };
23689
23702
  }
23690
23703
 
23691
- // ../node_modules/viem/_esm/utils/chain/defineChain.js
23704
+ // node_modules/viem/_esm/utils/chain/defineChain.js
23692
23705
  function defineChain(chain) {
23693
23706
  return {
23694
23707
  formatters: undefined,
@@ -23698,7 +23711,7 @@ function defineChain(chain) {
23698
23711
  };
23699
23712
  }
23700
23713
 
23701
- // ../node_modules/viem/_esm/utils/abi/encodePacked.js
23714
+ // node_modules/viem/_esm/utils/abi/encodePacked.js
23702
23715
  init_abi();
23703
23716
  init_address();
23704
23717
  init_isAddress();
@@ -23767,14 +23780,35 @@ function encode6(type2, value6, isArray2 = false) {
23767
23780
  throw new UnsupportedPackedAbiType(type2);
23768
23781
  }
23769
23782
 
23770
- // ../node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
23771
- init_toHex();
23772
-
23773
- // ../node_modules/viem/_esm/utils/transaction/serializeTransaction.js
23774
- init_transaction();
23775
- init_toHex();
23783
+ // node_modules/viem/_esm/utils/formatters/transactionReceipt.js
23784
+ init_fromHex();
23785
+ var receiptStatuses = {
23786
+ "0x0": "reverted",
23787
+ "0x1": "success"
23788
+ };
23789
+ function formatTransactionReceipt(transactionReceipt) {
23790
+ const receipt = {
23791
+ ...transactionReceipt,
23792
+ blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
23793
+ contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
23794
+ cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
23795
+ effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
23796
+ gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
23797
+ logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
23798
+ to: transactionReceipt.to ? transactionReceipt.to : null,
23799
+ transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
23800
+ status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
23801
+ type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
23802
+ };
23803
+ if (transactionReceipt.blobGasPrice)
23804
+ receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
23805
+ if (transactionReceipt.blobGasUsed)
23806
+ receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
23807
+ return receipt;
23808
+ }
23809
+ var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
23776
23810
 
23777
- // ../node_modules/viem/_esm/utils/transaction/assertTransaction.js
23811
+ // node_modules/viem/_esm/utils/transaction/assertTransaction.js
23778
23812
  init_number();
23779
23813
  init_address();
23780
23814
  init_base();
@@ -23788,10 +23822,9 @@ function assertTransactionEIP7702(transaction) {
23788
23822
  const { authorizationList } = transaction;
23789
23823
  if (authorizationList) {
23790
23824
  for (const authorization of authorizationList) {
23791
- const { chainId } = authorization;
23792
- const address = authorization.address;
23793
- if (!isAddress(address))
23794
- throw new InvalidAddressError({ address });
23825
+ const { contractAddress, chainId } = authorization;
23826
+ if (!isAddress(contractAddress))
23827
+ throw new InvalidAddressError({ address: contractAddress });
23795
23828
  if (chainId < 0)
23796
23829
  throw new InvalidChainIdError({ chainId });
23797
23830
  }
@@ -23851,7 +23884,29 @@ function assertTransactionLegacy(transaction) {
23851
23884
  throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
23852
23885
  }
23853
23886
 
23854
- // ../node_modules/viem/_esm/utils/transaction/serializeAccessList.js
23887
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
23888
+ init_transaction();
23889
+ init_toHex();
23890
+
23891
+ // node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
23892
+ init_toHex();
23893
+ function serializeAuthorizationList(authorizationList) {
23894
+ if (!authorizationList || authorizationList.length === 0)
23895
+ return [];
23896
+ const serializedAuthorizationList = [];
23897
+ for (const authorization of authorizationList) {
23898
+ const { contractAddress, chainId, nonce, ...signature } = authorization;
23899
+ serializedAuthorizationList.push([
23900
+ chainId ? toHex(chainId) : "0x",
23901
+ contractAddress,
23902
+ nonce ? toHex(nonce) : "0x",
23903
+ ...toYParitySignatureArray({}, signature)
23904
+ ]);
23905
+ }
23906
+ return serializedAuthorizationList;
23907
+ }
23908
+
23909
+ // node_modules/viem/_esm/utils/transaction/serializeAccessList.js
23855
23910
  init_address();
23856
23911
  init_transaction();
23857
23912
  init_isAddress();
@@ -23874,7 +23929,7 @@ function serializeAccessList(accessList) {
23874
23929
  return serializedAccessList;
23875
23930
  }
23876
23931
 
23877
- // ../node_modules/viem/_esm/utils/transaction/serializeTransaction.js
23932
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
23878
23933
  function serializeTransaction(transaction, signature) {
23879
23934
  const type2 = getTransactionType(transaction);
23880
23935
  if (type2 === "eip1559")
@@ -24068,53 +24123,7 @@ function toYParitySignatureArray(transaction, signature_) {
24068
24123
  return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
24069
24124
  }
24070
24125
 
24071
- // ../node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
24072
- function serializeAuthorizationList(authorizationList) {
24073
- if (!authorizationList || authorizationList.length === 0)
24074
- return [];
24075
- const serializedAuthorizationList = [];
24076
- for (const authorization of authorizationList) {
24077
- const { chainId, nonce, ...signature } = authorization;
24078
- const contractAddress = authorization.address;
24079
- serializedAuthorizationList.push([
24080
- chainId ? toHex(chainId) : "0x",
24081
- contractAddress,
24082
- nonce ? toHex(nonce) : "0x",
24083
- ...toYParitySignatureArray({}, signature)
24084
- ]);
24085
- }
24086
- return serializedAuthorizationList;
24087
- }
24088
-
24089
- // ../node_modules/viem/_esm/utils/formatters/transactionReceipt.js
24090
- init_fromHex();
24091
- var receiptStatuses = {
24092
- "0x0": "reverted",
24093
- "0x1": "success"
24094
- };
24095
- function formatTransactionReceipt(transactionReceipt) {
24096
- const receipt = {
24097
- ...transactionReceipt,
24098
- blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
24099
- contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
24100
- cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
24101
- effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
24102
- gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
24103
- logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
24104
- to: transactionReceipt.to ? transactionReceipt.to : null,
24105
- transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
24106
- status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
24107
- type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
24108
- };
24109
- if (transactionReceipt.blobGasPrice)
24110
- receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
24111
- if (transactionReceipt.blobGasUsed)
24112
- receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
24113
- return receipt;
24114
- }
24115
- var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
24116
-
24117
- // ../node_modules/viem/_esm/index.js
24126
+ // node_modules/viem/_esm/index.js
24118
24127
  init_toBytes();
24119
24128
  init_toHex();
24120
24129
  // src/schema.ts