@inco/js 0.1.31 → 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.
Files changed (102) hide show
  1. package/README.md +28 -57
  2. package/dist/binary.js +67 -0
  3. package/dist/chain.js +24 -0
  4. package/dist/encryption/encryption.js +98 -0
  5. package/dist/encryption/index.cjs +132 -123
  6. package/dist/encryption/index.js +2 -0
  7. package/dist/encryption/index.mjs +132 -123
  8. package/dist/fhevm/fhe-environment.js +8 -0
  9. package/dist/fhevm/fhevm.js +139 -0
  10. package/dist/fhevm/index.js +2 -0
  11. package/dist/fhevm/reencrypt.js +123 -0
  12. package/dist/fhevm/tfhe.js +324 -0
  13. package/dist/fhevm/types.js +26 -0
  14. package/dist/generated/abis/addTwo.js +59 -0
  15. package/dist/generated/abis/inco-fhevm.js +6242 -0
  16. package/dist/generated/abis/index.js +3 -0
  17. package/dist/generated/abis/lightning.js +12489 -0
  18. package/dist/generated/es/cosmos/ics23/v1/proofs_pb.js +198 -0
  19. package/dist/generated/es/cosmos/msg/v1/msg_pb.js +33 -0
  20. package/dist/generated/es/cosmos_proto/cosmos_pb.js +115 -0
  21. package/dist/generated/es/google/api/annotations_pb.js +27 -0
  22. package/dist/generated/es/google/api/http_pb.js +34 -0
  23. package/dist/generated/es/inco/fhe/v1/events_pb.js +21 -0
  24. package/dist/generated/es/inco/fhe/v1/genesis_pb.js +46 -0
  25. package/dist/generated/es/inco/fhe/v1/query_pb.js +108 -0
  26. package/dist/generated/es/inco/fhe/v1/tx_pb.js +108 -0
  27. package/dist/generated/es/inco/fhe/v1/types_pb.js +133 -0
  28. package/dist/generated/es/inco/kms/lite/v1/kms_service_pb.js +43 -0
  29. package/dist/generated/es/inco/kms/lite/v1/types_pb.js +44 -0
  30. package/dist/generated/es/inco/preflight/v1/genesis_pb.js +20 -0
  31. package/dist/generated/es/inco/preflight/v1/query_pb.js +38 -0
  32. package/dist/generated/es/inco/preflight/v1/tx_pb.js +48 -0
  33. package/dist/generated/es/inco/preflight/v1/types_pb.js +34 -0
  34. package/dist/generated/es/kms/base_pb.js +238 -0
  35. package/dist/generated/es/sf/ethereum/type/v2/type_pb.js +571 -0
  36. package/dist/generated/fhe-environments.js +15 -0
  37. package/dist/generated/lightning.js +399 -0
  38. package/dist/generated/local-node.js +8 -0
  39. package/dist/generated/ts/amino/amino.js +8 -0
  40. package/dist/generated/ts/cometbft/abci/v1/types.js +5063 -0
  41. package/dist/generated/ts/cometbft/crypto/v1/keys.js +105 -0
  42. package/dist/generated/ts/cometbft/crypto/v1/proof.js +430 -0
  43. package/dist/generated/ts/cometbft/types/v1/params.js +713 -0
  44. package/dist/generated/ts/cometbft/types/v1/validator.js +353 -0
  45. package/dist/generated/ts/cosmos/app/v1alpha1/module.js +218 -0
  46. package/dist/generated/ts/cosmos/msg/v1/msg.js +8 -0
  47. package/dist/generated/ts/cosmos_proto/cosmos.js +211 -0
  48. package/dist/generated/ts/gogoproto/gogo.js +8 -0
  49. package/dist/generated/ts/google/api/annotations.js +8 -0
  50. package/dist/generated/ts/google/api/http.js +353 -0
  51. package/dist/generated/ts/google/protobuf/descriptor.js +5070 -0
  52. package/dist/generated/ts/google/protobuf/duration.js +90 -0
  53. package/dist/generated/ts/google/protobuf/timestamp.js +90 -0
  54. package/dist/generated/ts/google/protobuf/wrappers.js +506 -0
  55. package/dist/generated/ts/inco/abci/v1/types.js +70 -0
  56. package/dist/generated/ts/inco/fhe/module/v1/module.js +63 -0
  57. package/dist/generated/ts/inco/fhe/v1/events.js +187 -0
  58. package/dist/generated/ts/inco/fhe/v1/genesis.js +711 -0
  59. package/dist/generated/ts/inco/fhe/v1/query.js +1391 -0
  60. package/dist/generated/ts/inco/fhe/v1/tx.js +1233 -0
  61. package/dist/generated/ts/inco/fhe/v1/types.js +985 -0
  62. package/dist/generated/ts/inco/originchain/module/v1/module.js +63 -0
  63. package/dist/generated/ts/inco/originchain/v1/abci.js +328 -0
  64. package/dist/generated/ts/inco/originchain/v1/events.js +213 -0
  65. package/dist/generated/ts/inco/originchain/v1/genesis.js +66 -0
  66. package/dist/generated/ts/inco/originchain/v1/query.js +277 -0
  67. package/dist/generated/ts/inco/originchain/v1/tx.js +137 -0
  68. package/dist/generated/ts/inco/originchain/v1/types.js +200 -0
  69. package/dist/generated/ts/inco/preflight/module/v1/module.js +63 -0
  70. package/dist/generated/ts/inco/preflight/v1/genesis.js +182 -0
  71. package/dist/generated/ts/inco/preflight/v1/query.js +256 -0
  72. package/dist/generated/ts/inco/preflight/v1/tx.js +445 -0
  73. package/dist/generated/ts/inco/preflight/v1/types.js +395 -0
  74. package/dist/handle.js +94 -0
  75. package/dist/index.cjs +140 -131
  76. package/dist/index.js +6 -0
  77. package/dist/index.mjs +140 -131
  78. package/dist/l1/client.js +93 -0
  79. package/dist/l1/index.js +3 -0
  80. package/dist/l1/preflight.js +39 -0
  81. package/dist/lite/deployments.js +17 -0
  82. package/dist/lite/ecies.js +124 -0
  83. package/dist/lite/hadu.js +36 -0
  84. package/dist/lite/index.cjs +186 -146
  85. package/dist/lite/index.js +7 -0
  86. package/dist/lite/index.mjs +3890 -3788
  87. package/dist/lite/lightning.js +179 -0
  88. package/dist/lite/reencrypt.d.ts +1 -0
  89. package/dist/lite/reencrypt.js +148 -0
  90. package/dist/local/index.cjs +25 -2573
  91. package/dist/local/index.js +2 -0
  92. package/dist/local/index.mjs +5352 -7837
  93. package/dist/local/local-node.js +24 -0
  94. package/dist/reencryption/eip712.js +81 -0
  95. package/dist/reencryption/index.cjs +132 -123
  96. package/dist/reencryption/index.js +3 -0
  97. package/dist/reencryption/index.mjs +132 -123
  98. package/dist/reencryption/types.js +2 -0
  99. package/dist/schema.js +15 -0
  100. package/dist/viem.d.ts +53 -52
  101. package/dist/viem.js +8 -0
  102. package/package.json +11 -48
package/dist/index.cjs CHANGED
@@ -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();
@@ -2461,7 +2463,8 @@ var tracingFunction = (name) => {
2461
2463
  };
2462
2464
  };
2463
2465
  var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
2464
- var genConstructor = function* () {}.constructor;
2466
+ var genConstructor = function* () {
2467
+ }.constructor;
2465
2468
 
2466
2469
  // ../node_modules/effect/dist/esm/Hash.js
2467
2470
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
@@ -2808,7 +2811,8 @@ var StructuralCommitPrototype = {
2808
2811
  ...StructuralPrototype
2809
2812
  };
2810
2813
  var Base = /* @__PURE__ */ function() {
2811
- function Base2() {}
2814
+ function Base2() {
2815
+ }
2812
2816
  Base2.prototype = CommitPrototype;
2813
2817
  return Base2;
2814
2818
  }();
@@ -6311,7 +6315,8 @@ var Reference = () => (id, options) => {
6311
6315
  Error.stackTraceLimit = 2;
6312
6316
  const creationError = new Error;
6313
6317
  Error.stackTraceLimit = limit;
6314
- function ReferenceClass() {}
6318
+ function ReferenceClass() {
6319
+ }
6315
6320
  Object.setPrototypeOf(ReferenceClass, ReferenceProto);
6316
6321
  ReferenceClass.key = id;
6317
6322
  ReferenceClass.defaultValue = options.defaultValue;
@@ -9251,7 +9256,8 @@ var prettyErrorMessage = (u) => {
9251
9256
  if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
9252
9257
  return u["toString"]();
9253
9258
  }
9254
- } catch {}
9259
+ } catch {
9260
+ }
9255
9261
  return stringifyCircular(u);
9256
9262
  };
9257
9263
  var locationRegex = /\((.*)\)/g;
@@ -9825,7 +9831,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
9825
9831
  var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
9826
9832
  var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
9827
9833
  var never = /* @__PURE__ */ asyncInterrupt(() => {
9828
- const interval = setInterval(() => {}, 2 ** 31 - 1);
9834
+ const interval = setInterval(() => {
9835
+ }, 2 ** 31 - 1);
9829
9836
  return sync(() => clearInterval(interval));
9830
9837
  });
9831
9838
  var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
@@ -13645,11 +13652,16 @@ class Const {
13645
13652
  get value() {
13646
13653
  return this.effect;
13647
13654
  }
13648
- onStart(_context, _effect, _parent, _fiber) {}
13649
- onEnd(_value, _fiber) {}
13650
- onEffect(_fiber, _effect) {}
13651
- onSuspend(_fiber) {}
13652
- onResume(_fiber) {}
13655
+ onStart(_context, _effect, _parent, _fiber) {
13656
+ }
13657
+ onEnd(_value, _fiber) {
13658
+ }
13659
+ onEffect(_fiber, _effect) {
13660
+ }
13661
+ onSuspend(_fiber) {
13662
+ }
13663
+ onResume(_fiber) {
13664
+ }
13653
13665
  map(f) {
13654
13666
  return new ProxySupervisor(this, pipe(this.value, map9(f)));
13655
13667
  }
@@ -14123,7 +14135,8 @@ class FiberRuntime extends Class {
14123
14135
  return whileLoop({
14124
14136
  while: () => !isDone3,
14125
14137
  body,
14126
- step: () => {}
14138
+ step: () => {
14139
+ }
14127
14140
  });
14128
14141
  }
14129
14142
  return null;
@@ -23653,7 +23666,7 @@ class TrieIterator {
23653
23666
  }
23654
23667
  }
23655
23668
  var isTrie = (u) => hasProperty(u, TrieTypeId);
23656
- // ../node_modules/viem/_esm/utils/encoding/toRlp.js
23669
+ // node_modules/viem/_esm/utils/encoding/toRlp.js
23657
23670
  init_base();
23658
23671
  init_cursor2();
23659
23672
  init_toBytes();
@@ -23745,7 +23758,7 @@ function getSizeOfLength(length4) {
23745
23758
  return 4;
23746
23759
  throw new BaseError("Length is too large.");
23747
23760
  }
23748
- // ../node_modules/viem/_esm/utils/formatters/transaction.js
23761
+ // node_modules/viem/_esm/utils/formatters/transaction.js
23749
23762
  init_fromHex();
23750
23763
  var transactionType = {
23751
23764
  "0x0": "legacy",
@@ -23808,7 +23821,7 @@ function formatTransaction(transaction) {
23808
23821
  var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
23809
23822
  function formatAuthorizationList(authorizationList) {
23810
23823
  return authorizationList.map((authorization) => ({
23811
- address: authorization.address,
23824
+ contractAddress: authorization.address,
23812
23825
  chainId: Number(authorization.chainId),
23813
23826
  nonce: Number(authorization.nonce),
23814
23827
  r: authorization.r,
@@ -23817,7 +23830,7 @@ function formatAuthorizationList(authorizationList) {
23817
23830
  }));
23818
23831
  }
23819
23832
 
23820
- // ../node_modules/viem/_esm/utils/formatters/block.js
23833
+ // node_modules/viem/_esm/utils/formatters/block.js
23821
23834
  function formatBlock(block) {
23822
23835
  const transactions = (block.transactions ?? []).map((transaction) => {
23823
23836
  if (typeof transaction === "string")
@@ -23844,7 +23857,7 @@ function formatBlock(block) {
23844
23857
  }
23845
23858
  var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
23846
23859
 
23847
- // ../node_modules/viem/_esm/utils/blob/blobsToCommitments.js
23860
+ // node_modules/viem/_esm/utils/blob/blobsToCommitments.js
23848
23861
  init_toBytes();
23849
23862
  init_toHex();
23850
23863
  function blobsToCommitments(parameters) {
@@ -23857,7 +23870,7 @@ function blobsToCommitments(parameters) {
23857
23870
  return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
23858
23871
  }
23859
23872
 
23860
- // ../node_modules/viem/_esm/utils/blob/blobsToProofs.js
23873
+ // node_modules/viem/_esm/utils/blob/blobsToProofs.js
23861
23874
  init_toBytes();
23862
23875
  init_toHex();
23863
23876
  function blobsToProofs(parameters) {
@@ -23874,10 +23887,10 @@ function blobsToProofs(parameters) {
23874
23887
  return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
23875
23888
  }
23876
23889
 
23877
- // ../node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23890
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23878
23891
  init_toHex();
23879
23892
 
23880
- // ../node_modules/viem/_esm/utils/hash/sha256.js
23893
+ // node_modules/viem/_esm/utils/hash/sha256.js
23881
23894
  init_sha256();
23882
23895
  init_toBytes();
23883
23896
  init_toHex();
@@ -23889,7 +23902,7 @@ function sha2562(value6, to_) {
23889
23902
  return toHex(bytes);
23890
23903
  }
23891
23904
 
23892
- // ../node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23905
+ // node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
23893
23906
  function commitmentToVersionedHash(parameters) {
23894
23907
  const { commitment, version: version2 = 1 } = parameters;
23895
23908
  const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
@@ -23898,7 +23911,7 @@ function commitmentToVersionedHash(parameters) {
23898
23911
  return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
23899
23912
  }
23900
23913
 
23901
- // ../node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
23914
+ // node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
23902
23915
  function commitmentsToVersionedHashes(parameters) {
23903
23916
  const { commitments, version: version2 } = parameters;
23904
23917
  const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
@@ -23913,17 +23926,17 @@ function commitmentsToVersionedHashes(parameters) {
23913
23926
  return hashes;
23914
23927
  }
23915
23928
 
23916
- // ../node_modules/viem/_esm/constants/blob.js
23929
+ // node_modules/viem/_esm/constants/blob.js
23917
23930
  var blobsPerTransaction = 6;
23918
23931
  var bytesPerFieldElement = 32;
23919
23932
  var fieldElementsPerBlob = 4096;
23920
23933
  var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
23921
23934
  var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
23922
23935
 
23923
- // ../node_modules/viem/_esm/constants/kzg.js
23936
+ // node_modules/viem/_esm/constants/kzg.js
23924
23937
  var versionedHashVersionKzg = 1;
23925
23938
 
23926
- // ../node_modules/viem/_esm/errors/blob.js
23939
+ // node_modules/viem/_esm/errors/blob.js
23927
23940
  init_base();
23928
23941
 
23929
23942
  class BlobSizeTooLargeError extends BaseError {
@@ -23962,7 +23975,7 @@ class InvalidVersionedHashVersionError extends BaseError {
23962
23975
  }
23963
23976
  }
23964
23977
 
23965
- // ../node_modules/viem/_esm/utils/blob/toBlobs.js
23978
+ // node_modules/viem/_esm/utils/blob/toBlobs.js
23966
23979
  init_cursor2();
23967
23980
  init_size();
23968
23981
  init_toBytes();
@@ -24001,7 +24014,7 @@ function toBlobs(parameters) {
24001
24014
  return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
24002
24015
  }
24003
24016
 
24004
- // ../node_modules/viem/_esm/utils/blob/toBlobSidecars.js
24017
+ // node_modules/viem/_esm/utils/blob/toBlobSidecars.js
24005
24018
  function toBlobSidecars(parameters) {
24006
24019
  const { data, kzg, to } = parameters;
24007
24020
  const blobs = parameters.blobs ?? toBlobs({ data, to });
@@ -24017,7 +24030,7 @@ function toBlobSidecars(parameters) {
24017
24030
  return sidecars;
24018
24031
  }
24019
24032
 
24020
- // ../node_modules/viem/_esm/utils/transaction/getTransactionType.js
24033
+ // node_modules/viem/_esm/utils/transaction/getTransactionType.js
24021
24034
  init_transaction();
24022
24035
  function getTransactionType(transaction) {
24023
24036
  if (transaction.type)
@@ -24037,7 +24050,7 @@ function getTransactionType(transaction) {
24037
24050
  throw new InvalidSerializableTransactionError({ transaction });
24038
24051
  }
24039
24052
 
24040
- // ../node_modules/viem/_esm/utils/formatters/log.js
24053
+ // node_modules/viem/_esm/utils/formatters/log.js
24041
24054
  function formatLog(log3, { args: args2, eventName } = {}) {
24042
24055
  return {
24043
24056
  ...log3,
@@ -24050,7 +24063,7 @@ function formatLog(log3, { args: args2, eventName } = {}) {
24050
24063
  };
24051
24064
  }
24052
24065
 
24053
- // ../node_modules/viem/_esm/utils/chain/defineChain.js
24066
+ // node_modules/viem/_esm/utils/chain/defineChain.js
24054
24067
  function defineChain(chain) {
24055
24068
  return {
24056
24069
  formatters: undefined,
@@ -24060,7 +24073,7 @@ function defineChain(chain) {
24060
24073
  };
24061
24074
  }
24062
24075
 
24063
- // ../node_modules/viem/_esm/utils/abi/encodePacked.js
24076
+ // node_modules/viem/_esm/utils/abi/encodePacked.js
24064
24077
  init_abi();
24065
24078
  init_address();
24066
24079
  init_isAddress();
@@ -24129,14 +24142,35 @@ function encode6(type2, value6, isArray2 = false) {
24129
24142
  throw new UnsupportedPackedAbiType(type2);
24130
24143
  }
24131
24144
 
24132
- // ../node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
24133
- init_toHex();
24134
-
24135
- // ../node_modules/viem/_esm/utils/transaction/serializeTransaction.js
24136
- init_transaction();
24137
- init_toHex();
24145
+ // node_modules/viem/_esm/utils/formatters/transactionReceipt.js
24146
+ init_fromHex();
24147
+ var receiptStatuses = {
24148
+ "0x0": "reverted",
24149
+ "0x1": "success"
24150
+ };
24151
+ function formatTransactionReceipt(transactionReceipt) {
24152
+ const receipt = {
24153
+ ...transactionReceipt,
24154
+ blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
24155
+ contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
24156
+ cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
24157
+ effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
24158
+ gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
24159
+ logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
24160
+ to: transactionReceipt.to ? transactionReceipt.to : null,
24161
+ transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
24162
+ status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
24163
+ type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
24164
+ };
24165
+ if (transactionReceipt.blobGasPrice)
24166
+ receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
24167
+ if (transactionReceipt.blobGasUsed)
24168
+ receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
24169
+ return receipt;
24170
+ }
24171
+ var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
24138
24172
 
24139
- // ../node_modules/viem/_esm/utils/transaction/assertTransaction.js
24173
+ // node_modules/viem/_esm/utils/transaction/assertTransaction.js
24140
24174
  init_number();
24141
24175
  init_address();
24142
24176
  init_base();
@@ -24150,10 +24184,9 @@ function assertTransactionEIP7702(transaction) {
24150
24184
  const { authorizationList } = transaction;
24151
24185
  if (authorizationList) {
24152
24186
  for (const authorization of authorizationList) {
24153
- const { chainId } = authorization;
24154
- const address = authorization.address;
24155
- if (!isAddress(address))
24156
- throw new InvalidAddressError({ address });
24187
+ const { contractAddress, chainId } = authorization;
24188
+ if (!isAddress(contractAddress))
24189
+ throw new InvalidAddressError({ address: contractAddress });
24157
24190
  if (chainId < 0)
24158
24191
  throw new InvalidChainIdError({ chainId });
24159
24192
  }
@@ -24213,7 +24246,29 @@ function assertTransactionLegacy(transaction) {
24213
24246
  throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
24214
24247
  }
24215
24248
 
24216
- // ../node_modules/viem/_esm/utils/transaction/serializeAccessList.js
24249
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
24250
+ init_transaction();
24251
+ init_toHex();
24252
+
24253
+ // node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
24254
+ init_toHex();
24255
+ function serializeAuthorizationList(authorizationList) {
24256
+ if (!authorizationList || authorizationList.length === 0)
24257
+ return [];
24258
+ const serializedAuthorizationList = [];
24259
+ for (const authorization of authorizationList) {
24260
+ const { contractAddress, chainId, nonce, ...signature } = authorization;
24261
+ serializedAuthorizationList.push([
24262
+ chainId ? toHex(chainId) : "0x",
24263
+ contractAddress,
24264
+ nonce ? toHex(nonce) : "0x",
24265
+ ...toYParitySignatureArray({}, signature)
24266
+ ]);
24267
+ }
24268
+ return serializedAuthorizationList;
24269
+ }
24270
+
24271
+ // node_modules/viem/_esm/utils/transaction/serializeAccessList.js
24217
24272
  init_address();
24218
24273
  init_transaction();
24219
24274
  init_isAddress();
@@ -24236,7 +24291,7 @@ function serializeAccessList(accessList) {
24236
24291
  return serializedAccessList;
24237
24292
  }
24238
24293
 
24239
- // ../node_modules/viem/_esm/utils/transaction/serializeTransaction.js
24294
+ // node_modules/viem/_esm/utils/transaction/serializeTransaction.js
24240
24295
  function serializeTransaction(transaction, signature) {
24241
24296
  const type2 = getTransactionType(transaction);
24242
24297
  if (type2 === "eip1559")
@@ -24430,53 +24485,7 @@ function toYParitySignatureArray(transaction, signature_) {
24430
24485
  return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
24431
24486
  }
24432
24487
 
24433
- // ../node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
24434
- function serializeAuthorizationList(authorizationList) {
24435
- if (!authorizationList || authorizationList.length === 0)
24436
- return [];
24437
- const serializedAuthorizationList = [];
24438
- for (const authorization of authorizationList) {
24439
- const { chainId, nonce, ...signature } = authorization;
24440
- const contractAddress = authorization.address;
24441
- serializedAuthorizationList.push([
24442
- chainId ? toHex(chainId) : "0x",
24443
- contractAddress,
24444
- nonce ? toHex(nonce) : "0x",
24445
- ...toYParitySignatureArray({}, signature)
24446
- ]);
24447
- }
24448
- return serializedAuthorizationList;
24449
- }
24450
-
24451
- // ../node_modules/viem/_esm/utils/formatters/transactionReceipt.js
24452
- init_fromHex();
24453
- var receiptStatuses = {
24454
- "0x0": "reverted",
24455
- "0x1": "success"
24456
- };
24457
- function formatTransactionReceipt(transactionReceipt) {
24458
- const receipt = {
24459
- ...transactionReceipt,
24460
- blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
24461
- contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
24462
- cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
24463
- effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
24464
- gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
24465
- logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
24466
- to: transactionReceipt.to ? transactionReceipt.to : null,
24467
- transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
24468
- status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
24469
- type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
24470
- };
24471
- if (transactionReceipt.blobGasPrice)
24472
- receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
24473
- if (transactionReceipt.blobGasUsed)
24474
- receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
24475
- return receipt;
24476
- }
24477
- var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
24478
-
24479
- // ../node_modules/viem/_esm/index.js
24488
+ // node_modules/viem/_esm/index.js
24480
24489
  init_toBytes();
24481
24490
  init_toHex();
24482
24491
  // src/schema.ts
@@ -24636,7 +24645,7 @@ function assertUint8(value6) {
24636
24645
  throw new Error(`Invalid uint8 value: ${value6}`);
24637
24646
  }
24638
24647
  }
24639
- // ../node_modules/viem/_esm/op-stack/contracts.js
24648
+ // node_modules/viem/_esm/op-stack/contracts.js
24640
24649
  var contracts = {
24641
24650
  gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
24642
24651
  l1Block: { address: "0x4200000000000000000000000000000000000015" },
@@ -24650,7 +24659,7 @@ var contracts = {
24650
24659
  }
24651
24660
  };
24652
24661
 
24653
- // ../node_modules/viem/_esm/op-stack/formatters.js
24662
+ // node_modules/viem/_esm/op-stack/formatters.js
24654
24663
  init_fromHex();
24655
24664
  var formatters = {
24656
24665
  block: /* @__PURE__ */ defineBlock({
@@ -24697,7 +24706,7 @@ var formatters = {
24697
24706
  })
24698
24707
  };
24699
24708
 
24700
- // ../node_modules/viem/_esm/op-stack/serializers.js
24709
+ // node_modules/viem/_esm/op-stack/serializers.js
24701
24710
  init_address();
24702
24711
  init_isAddress();
24703
24712
  init_toHex();
@@ -24742,14 +24751,14 @@ function assertTransactionDeposit(transaction) {
24742
24751
  throw new InvalidAddressError({ address: to });
24743
24752
  }
24744
24753
 
24745
- // ../node_modules/viem/_esm/op-stack/chainConfig.js
24754
+ // node_modules/viem/_esm/op-stack/chainConfig.js
24746
24755
  var chainConfig = {
24747
24756
  contracts,
24748
24757
  formatters,
24749
24758
  serializers
24750
24759
  };
24751
24760
 
24752
- // ../node_modules/viem/_esm/chains/definitions/anvil.js
24761
+ // node_modules/viem/_esm/chains/definitions/anvil.js
24753
24762
  var anvil = /* @__PURE__ */ defineChain({
24754
24763
  id: 31337,
24755
24764
  name: "Anvil",
@@ -24765,7 +24774,7 @@ var anvil = /* @__PURE__ */ defineChain({
24765
24774
  }
24766
24775
  }
24767
24776
  });
24768
- // ../node_modules/viem/_esm/chains/definitions/baseSepolia.js
24777
+ // node_modules/viem/_esm/chains/definitions/baseSepolia.js
24769
24778
  var sourceId = 11155111;
24770
24779
  var baseSepolia = /* @__PURE__ */ defineChain({
24771
24780
  ...chainConfig,
@@ -24817,7 +24826,7 @@ var baseSepolia = /* @__PURE__ */ defineChain({
24817
24826
  testnet: true,
24818
24827
  sourceId
24819
24828
  });
24820
- // ../node_modules/viem/_esm/chains/definitions/monadTestnet.js
24829
+ // node_modules/viem/_esm/chains/definitions/monadTestnet.js
24821
24830
  var monadTestnet = /* @__PURE__ */ defineChain({
24822
24831
  id: 10143,
24823
24832
  name: "Monad Testnet",
@@ -24845,7 +24854,7 @@ var monadTestnet = /* @__PURE__ */ defineChain({
24845
24854
  },
24846
24855
  testnet: true
24847
24856
  });
24848
- // ../node_modules/viem/_esm/chains/definitions/sepolia.js
24857
+ // node_modules/viem/_esm/chains/definitions/sepolia.js
24849
24858
  var sepolia = /* @__PURE__ */ defineChain({
24850
24859
  id: 11155111,
24851
24860
  name: "Sepolia",