@apibara/evm 2.0.0 → 2.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { BytesFromUint8Array, Bytes, StreamConfig } from '@apibara/protocol';
2
2
  import { Schema } from '@effect/schema';
3
3
  import { hexToBytes, pad } from 'viem';
4
4
  import Long from 'long';
5
- import _m0 from 'protobufjs/minimal';
5
+ import _m0 from 'protobufjs/minimal.js';
6
6
 
7
7
  const MAX_U64 = 0xffffffffffffffffn;
8
8
  const _Address = Schema.TemplateLiteral(Schema.Literal("0x"), Schema.String);
@@ -125,13 +125,13 @@ const Address = {
125
125
  if (tag !== 9) {
126
126
  break;
127
127
  }
128
- message.x0 = longToBigint$3(reader.fixed64());
128
+ message.x0 = longToBigint$2(reader.fixed64());
129
129
  continue;
130
130
  case 2:
131
131
  if (tag !== 17) {
132
132
  break;
133
133
  }
134
- message.x1 = longToBigint$3(reader.fixed64());
134
+ message.x1 = longToBigint$2(reader.fixed64());
135
135
  continue;
136
136
  case 3:
137
137
  if (tag !== 29) {
@@ -258,13 +258,13 @@ const U128 = {
258
258
  if (tag !== 9) {
259
259
  break;
260
260
  }
261
- message.x0 = longToBigint$3(reader.fixed64());
261
+ message.x0 = longToBigint$2(reader.fixed64());
262
262
  continue;
263
263
  case 2:
264
264
  if (tag !== 17) {
265
265
  break;
266
266
  }
267
- message.x1 = longToBigint$3(reader.fixed64());
267
+ message.x1 = longToBigint$2(reader.fixed64());
268
268
  continue;
269
269
  }
270
270
  if ((tag & 7) === 4 || tag === 0) {
@@ -342,25 +342,25 @@ const U256 = {
342
342
  if (tag !== 9) {
343
343
  break;
344
344
  }
345
- message.x0 = longToBigint$3(reader.fixed64());
345
+ message.x0 = longToBigint$2(reader.fixed64());
346
346
  continue;
347
347
  case 2:
348
348
  if (tag !== 17) {
349
349
  break;
350
350
  }
351
- message.x1 = longToBigint$3(reader.fixed64());
351
+ message.x1 = longToBigint$2(reader.fixed64());
352
352
  continue;
353
353
  case 3:
354
354
  if (tag !== 25) {
355
355
  break;
356
356
  }
357
- message.x2 = longToBigint$3(reader.fixed64());
357
+ message.x2 = longToBigint$2(reader.fixed64());
358
358
  continue;
359
359
  case 4:
360
360
  if (tag !== 33) {
361
361
  break;
362
362
  }
363
- message.x3 = longToBigint$3(reader.fixed64());
363
+ message.x3 = longToBigint$2(reader.fixed64());
364
364
  continue;
365
365
  }
366
366
  if ((tag & 7) === 4 || tag === 0) {
@@ -448,25 +448,25 @@ const B256 = {
448
448
  if (tag !== 9) {
449
449
  break;
450
450
  }
451
- message.x0 = longToBigint$3(reader.fixed64());
451
+ message.x0 = longToBigint$2(reader.fixed64());
452
452
  continue;
453
453
  case 2:
454
454
  if (tag !== 17) {
455
455
  break;
456
456
  }
457
- message.x1 = longToBigint$3(reader.fixed64());
457
+ message.x1 = longToBigint$2(reader.fixed64());
458
458
  continue;
459
459
  case 3:
460
460
  if (tag !== 25) {
461
461
  break;
462
462
  }
463
- message.x2 = longToBigint$3(reader.fixed64());
463
+ message.x2 = longToBigint$2(reader.fixed64());
464
464
  continue;
465
465
  case 4:
466
466
  if (tag !== 33) {
467
467
  break;
468
468
  }
469
- message.x3 = longToBigint$3(reader.fixed64());
469
+ message.x3 = longToBigint$2(reader.fixed64());
470
470
  continue;
471
471
  }
472
472
  if ((tag & 7) === 4 || tag === 0) {
@@ -535,7 +535,7 @@ function base64FromBytes$1(arr) {
535
535
  return globalThis.btoa(bin.join(""));
536
536
  }
537
537
  }
538
- function longToBigint$3(long) {
538
+ function longToBigint$2(long) {
539
539
  return BigInt(long.toString());
540
540
  }
541
541
  if (_m0.util.Long !== Long) {
@@ -583,7 +583,7 @@ const Timestamp = {
583
583
  if (tag !== 8) {
584
584
  break;
585
585
  }
586
- message.seconds = longToBigint$2(reader.int64());
586
+ message.seconds = longToBigint$1(reader.int64());
587
587
  continue;
588
588
  case 2:
589
589
  if (tag !== 16) {
@@ -625,7 +625,7 @@ const Timestamp = {
625
625
  return message;
626
626
  }
627
627
  };
628
- function longToBigint$2(long) {
628
+ function longToBigint$1(long) {
629
629
  return BigInt(long.toString());
630
630
  }
631
631
  if (_m0.util.Long !== Long) {
@@ -637,6 +637,43 @@ function isSet$2(value) {
637
637
  }
638
638
 
639
639
  const protobufPackage$1 = "evm.v2";
640
+ var TransactionStatus$1 = /* @__PURE__ */ ((TransactionStatus2) => {
641
+ TransactionStatus2[TransactionStatus2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
642
+ TransactionStatus2[TransactionStatus2["SUCCEEDED"] = 1] = "SUCCEEDED";
643
+ TransactionStatus2[TransactionStatus2["REVERTED"] = 2] = "REVERTED";
644
+ TransactionStatus2[TransactionStatus2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
645
+ return TransactionStatus2;
646
+ })(TransactionStatus$1 || {});
647
+ function transactionStatusFromJSON(object) {
648
+ switch (object) {
649
+ case 0:
650
+ case "TRANSACTION_STATUS_UNSPECIFIED":
651
+ return 0 /* UNSPECIFIED */;
652
+ case 1:
653
+ case "TRANSACTION_STATUS_SUCCEEDED":
654
+ return 1 /* SUCCEEDED */;
655
+ case 2:
656
+ case "TRANSACTION_STATUS_REVERTED":
657
+ return 2 /* REVERTED */;
658
+ case -1:
659
+ case "UNRECOGNIZED":
660
+ default:
661
+ return -1 /* UNRECOGNIZED */;
662
+ }
663
+ }
664
+ function transactionStatusToJSON(object) {
665
+ switch (object) {
666
+ case 0 /* UNSPECIFIED */:
667
+ return "TRANSACTION_STATUS_UNSPECIFIED";
668
+ case 1 /* SUCCEEDED */:
669
+ return "TRANSACTION_STATUS_SUCCEEDED";
670
+ case 2 /* REVERTED */:
671
+ return "TRANSACTION_STATUS_REVERTED";
672
+ case -1 /* UNRECOGNIZED */:
673
+ default:
674
+ return "UNRECOGNIZED";
675
+ }
676
+ }
640
677
  function createBaseBlock() {
641
678
  return { header: void 0, withdrawals: [], transactions: [], receipts: [], logs: [] };
642
679
  }
@@ -755,9 +792,9 @@ const Block$1 = {
755
792
  };
756
793
  function createBaseBlockHeader() {
757
794
  return {
758
- number: BigInt("0"),
759
- hash: void 0,
760
- parentHash: void 0,
795
+ blockNumber: BigInt("0"),
796
+ blockHash: void 0,
797
+ parentBlockHash: void 0,
761
798
  unclesHash: void 0,
762
799
  miner: void 0,
763
800
  stateRoot: void 0,
@@ -770,30 +807,28 @@ function createBaseBlockHeader() {
770
807
  timestamp: void 0,
771
808
  extraData: new Uint8Array(0),
772
809
  mixHash: void 0,
773
- nonce: BigInt("0"),
810
+ nonce: void 0,
774
811
  baseFeePerGas: void 0,
775
812
  withdrawalsRoot: void 0,
776
813
  totalDifficulty: void 0,
777
- uncles: [],
778
- size: void 0,
779
- blobGasUsed: BigInt("0"),
780
- excessBlobGas: BigInt("0"),
814
+ blobGasUsed: void 0,
815
+ excessBlobGas: void 0,
781
816
  parentBeaconBlockRoot: void 0
782
817
  };
783
818
  }
784
819
  const BlockHeader$1 = {
785
820
  encode(message, writer = _m0.Writer.create()) {
786
- if (message.number !== void 0 && message.number !== BigInt("0")) {
787
- if (BigInt.asUintN(64, message.number) !== message.number) {
788
- throw new globalThis.Error("value provided for field message.number of type uint64 too large");
821
+ if (message.blockNumber !== void 0 && message.blockNumber !== BigInt("0")) {
822
+ if (BigInt.asUintN(64, message.blockNumber) !== message.blockNumber) {
823
+ throw new globalThis.Error("value provided for field message.blockNumber of type uint64 too large");
789
824
  }
790
- writer.uint32(8).uint64(message.number.toString());
825
+ writer.uint32(8).uint64(message.blockNumber.toString());
791
826
  }
792
- if (message.hash !== void 0) {
793
- B256.encode(message.hash, writer.uint32(18).fork()).ldelim();
827
+ if (message.blockHash !== void 0) {
828
+ B256.encode(message.blockHash, writer.uint32(18).fork()).ldelim();
794
829
  }
795
- if (message.parentHash !== void 0) {
796
- B256.encode(message.parentHash, writer.uint32(26).fork()).ldelim();
830
+ if (message.parentBlockHash !== void 0) {
831
+ B256.encode(message.parentBlockHash, writer.uint32(26).fork()).ldelim();
797
832
  }
798
833
  if (message.unclesHash !== void 0) {
799
834
  B256.encode(message.unclesHash, writer.uint32(34).fork()).ldelim();
@@ -817,10 +852,10 @@ const BlockHeader$1 = {
817
852
  U256.encode(message.difficulty, writer.uint32(82).fork()).ldelim();
818
853
  }
819
854
  if (message.gasLimit !== void 0) {
820
- U256.encode(message.gasLimit, writer.uint32(90).fork()).ldelim();
855
+ U128.encode(message.gasLimit, writer.uint32(90).fork()).ldelim();
821
856
  }
822
857
  if (message.gasUsed !== void 0) {
823
- U256.encode(message.gasUsed, writer.uint32(98).fork()).ldelim();
858
+ U128.encode(message.gasUsed, writer.uint32(98).fork()).ldelim();
824
859
  }
825
860
  if (message.timestamp !== void 0) {
826
861
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(106).fork()).ldelim();
@@ -831,14 +866,14 @@ const BlockHeader$1 = {
831
866
  if (message.mixHash !== void 0) {
832
867
  B256.encode(message.mixHash, writer.uint32(122).fork()).ldelim();
833
868
  }
834
- if (message.nonce !== void 0 && message.nonce !== BigInt("0")) {
869
+ if (message.nonce !== void 0) {
835
870
  if (BigInt.asUintN(64, message.nonce) !== message.nonce) {
836
871
  throw new globalThis.Error("value provided for field message.nonce of type uint64 too large");
837
872
  }
838
873
  writer.uint32(128).uint64(message.nonce.toString());
839
874
  }
840
875
  if (message.baseFeePerGas !== void 0) {
841
- U256.encode(message.baseFeePerGas, writer.uint32(138).fork()).ldelim();
876
+ U128.encode(message.baseFeePerGas, writer.uint32(138).fork()).ldelim();
842
877
  }
843
878
  if (message.withdrawalsRoot !== void 0) {
844
879
  B256.encode(message.withdrawalsRoot, writer.uint32(146).fork()).ldelim();
@@ -846,28 +881,14 @@ const BlockHeader$1 = {
846
881
  if (message.totalDifficulty !== void 0) {
847
882
  U256.encode(message.totalDifficulty, writer.uint32(154).fork()).ldelim();
848
883
  }
849
- if (message.uncles !== void 0 && message.uncles.length !== 0) {
850
- for (const v of message.uncles) {
851
- B256.encode(v, writer.uint32(162).fork()).ldelim();
852
- }
853
- }
854
- if (message.size !== void 0) {
855
- U256.encode(message.size, writer.uint32(170).fork()).ldelim();
856
- }
857
- if (message.blobGasUsed !== void 0 && message.blobGasUsed !== BigInt("0")) {
858
- if (BigInt.asUintN(64, message.blobGasUsed) !== message.blobGasUsed) {
859
- throw new globalThis.Error("value provided for field message.blobGasUsed of type uint64 too large");
860
- }
861
- writer.uint32(176).uint64(message.blobGasUsed.toString());
884
+ if (message.blobGasUsed !== void 0) {
885
+ U128.encode(message.blobGasUsed, writer.uint32(162).fork()).ldelim();
862
886
  }
863
- if (message.excessBlobGas !== void 0 && message.excessBlobGas !== BigInt("0")) {
864
- if (BigInt.asUintN(64, message.excessBlobGas) !== message.excessBlobGas) {
865
- throw new globalThis.Error("value provided for field message.excessBlobGas of type uint64 too large");
866
- }
867
- writer.uint32(184).uint64(message.excessBlobGas.toString());
887
+ if (message.excessBlobGas !== void 0) {
888
+ U128.encode(message.excessBlobGas, writer.uint32(170).fork()).ldelim();
868
889
  }
869
890
  if (message.parentBeaconBlockRoot !== void 0) {
870
- B256.encode(message.parentBeaconBlockRoot, writer.uint32(194).fork()).ldelim();
891
+ B256.encode(message.parentBeaconBlockRoot, writer.uint32(178).fork()).ldelim();
871
892
  }
872
893
  return writer;
873
894
  },
@@ -882,19 +903,19 @@ const BlockHeader$1 = {
882
903
  if (tag !== 8) {
883
904
  break;
884
905
  }
885
- message.number = longToBigint$1(reader.uint64());
906
+ message.blockNumber = longToBigint(reader.uint64());
886
907
  continue;
887
908
  case 2:
888
909
  if (tag !== 18) {
889
910
  break;
890
911
  }
891
- message.hash = B256.decode(reader, reader.uint32());
912
+ message.blockHash = B256.decode(reader, reader.uint32());
892
913
  continue;
893
914
  case 3:
894
915
  if (tag !== 26) {
895
916
  break;
896
917
  }
897
- message.parentHash = B256.decode(reader, reader.uint32());
918
+ message.parentBlockHash = B256.decode(reader, reader.uint32());
898
919
  continue;
899
920
  case 4:
900
921
  if (tag !== 34) {
@@ -942,13 +963,13 @@ const BlockHeader$1 = {
942
963
  if (tag !== 90) {
943
964
  break;
944
965
  }
945
- message.gasLimit = U256.decode(reader, reader.uint32());
966
+ message.gasLimit = U128.decode(reader, reader.uint32());
946
967
  continue;
947
968
  case 12:
948
969
  if (tag !== 98) {
949
970
  break;
950
971
  }
951
- message.gasUsed = U256.decode(reader, reader.uint32());
972
+ message.gasUsed = U128.decode(reader, reader.uint32());
952
973
  continue;
953
974
  case 13:
954
975
  if (tag !== 106) {
@@ -972,13 +993,13 @@ const BlockHeader$1 = {
972
993
  if (tag !== 128) {
973
994
  break;
974
995
  }
975
- message.nonce = longToBigint$1(reader.uint64());
996
+ message.nonce = longToBigint(reader.uint64());
976
997
  continue;
977
998
  case 17:
978
999
  if (tag !== 138) {
979
1000
  break;
980
1001
  }
981
- message.baseFeePerGas = U256.decode(reader, reader.uint32());
1002
+ message.baseFeePerGas = U128.decode(reader, reader.uint32());
982
1003
  continue;
983
1004
  case 18:
984
1005
  if (tag !== 146) {
@@ -996,28 +1017,16 @@ const BlockHeader$1 = {
996
1017
  if (tag !== 162) {
997
1018
  break;
998
1019
  }
999
- message.uncles.push(B256.decode(reader, reader.uint32()));
1020
+ message.blobGasUsed = U128.decode(reader, reader.uint32());
1000
1021
  continue;
1001
1022
  case 21:
1002
1023
  if (tag !== 170) {
1003
1024
  break;
1004
1025
  }
1005
- message.size = U256.decode(reader, reader.uint32());
1026
+ message.excessBlobGas = U128.decode(reader, reader.uint32());
1006
1027
  continue;
1007
1028
  case 22:
1008
- if (tag !== 176) {
1009
- break;
1010
- }
1011
- message.blobGasUsed = longToBigint$1(reader.uint64());
1012
- continue;
1013
- case 23:
1014
- if (tag !== 184) {
1015
- break;
1016
- }
1017
- message.excessBlobGas = longToBigint$1(reader.uint64());
1018
- continue;
1019
- case 24:
1020
- if (tag !== 194) {
1029
+ if (tag !== 178) {
1021
1030
  break;
1022
1031
  }
1023
1032
  message.parentBeaconBlockRoot = B256.decode(reader, reader.uint32());
@@ -1032,9 +1041,9 @@ const BlockHeader$1 = {
1032
1041
  },
1033
1042
  fromJSON(object) {
1034
1043
  return {
1035
- number: isSet$1(object.number) ? BigInt(object.number) : BigInt("0"),
1036
- hash: isSet$1(object.hash) ? B256.fromJSON(object.hash) : void 0,
1037
- parentHash: isSet$1(object.parentHash) ? B256.fromJSON(object.parentHash) : void 0,
1044
+ blockNumber: isSet$1(object.blockNumber) ? BigInt(object.blockNumber) : BigInt("0"),
1045
+ blockHash: isSet$1(object.blockHash) ? B256.fromJSON(object.blockHash) : void 0,
1046
+ parentBlockHash: isSet$1(object.parentBlockHash) ? B256.fromJSON(object.parentBlockHash) : void 0,
1038
1047
  unclesHash: isSet$1(object.unclesHash) ? B256.fromJSON(object.unclesHash) : void 0,
1039
1048
  miner: isSet$1(object.miner) ? Address.fromJSON(object.miner) : void 0,
1040
1049
  stateRoot: isSet$1(object.stateRoot) ? B256.fromJSON(object.stateRoot) : void 0,
@@ -1042,32 +1051,30 @@ const BlockHeader$1 = {
1042
1051
  receiptsRoot: isSet$1(object.receiptsRoot) ? B256.fromJSON(object.receiptsRoot) : void 0,
1043
1052
  logsBloom: isSet$1(object.logsBloom) ? Bloom$1.fromJSON(object.logsBloom) : void 0,
1044
1053
  difficulty: isSet$1(object.difficulty) ? U256.fromJSON(object.difficulty) : void 0,
1045
- gasLimit: isSet$1(object.gasLimit) ? U256.fromJSON(object.gasLimit) : void 0,
1046
- gasUsed: isSet$1(object.gasUsed) ? U256.fromJSON(object.gasUsed) : void 0,
1054
+ gasLimit: isSet$1(object.gasLimit) ? U128.fromJSON(object.gasLimit) : void 0,
1055
+ gasUsed: isSet$1(object.gasUsed) ? U128.fromJSON(object.gasUsed) : void 0,
1047
1056
  timestamp: isSet$1(object.timestamp) ? fromJsonTimestamp(object.timestamp) : void 0,
1048
1057
  extraData: isSet$1(object.extraData) ? bytesFromBase64(object.extraData) : new Uint8Array(0),
1049
1058
  mixHash: isSet$1(object.mixHash) ? B256.fromJSON(object.mixHash) : void 0,
1050
- nonce: isSet$1(object.nonce) ? BigInt(object.nonce) : BigInt("0"),
1051
- baseFeePerGas: isSet$1(object.baseFeePerGas) ? U256.fromJSON(object.baseFeePerGas) : void 0,
1059
+ nonce: isSet$1(object.nonce) ? BigInt(object.nonce) : void 0,
1060
+ baseFeePerGas: isSet$1(object.baseFeePerGas) ? U128.fromJSON(object.baseFeePerGas) : void 0,
1052
1061
  withdrawalsRoot: isSet$1(object.withdrawalsRoot) ? B256.fromJSON(object.withdrawalsRoot) : void 0,
1053
1062
  totalDifficulty: isSet$1(object.totalDifficulty) ? U256.fromJSON(object.totalDifficulty) : void 0,
1054
- uncles: globalThis.Array.isArray(object?.uncles) ? object.uncles.map((e) => B256.fromJSON(e)) : [],
1055
- size: isSet$1(object.size) ? U256.fromJSON(object.size) : void 0,
1056
- blobGasUsed: isSet$1(object.blobGasUsed) ? BigInt(object.blobGasUsed) : BigInt("0"),
1057
- excessBlobGas: isSet$1(object.excessBlobGas) ? BigInt(object.excessBlobGas) : BigInt("0"),
1063
+ blobGasUsed: isSet$1(object.blobGasUsed) ? U128.fromJSON(object.blobGasUsed) : void 0,
1064
+ excessBlobGas: isSet$1(object.excessBlobGas) ? U128.fromJSON(object.excessBlobGas) : void 0,
1058
1065
  parentBeaconBlockRoot: isSet$1(object.parentBeaconBlockRoot) ? B256.fromJSON(object.parentBeaconBlockRoot) : void 0
1059
1066
  };
1060
1067
  },
1061
1068
  toJSON(message) {
1062
1069
  const obj = {};
1063
- if (message.number !== void 0 && message.number !== BigInt("0")) {
1064
- obj.number = message.number.toString();
1070
+ if (message.blockNumber !== void 0 && message.blockNumber !== BigInt("0")) {
1071
+ obj.blockNumber = message.blockNumber.toString();
1065
1072
  }
1066
- if (message.hash !== void 0) {
1067
- obj.hash = B256.toJSON(message.hash);
1073
+ if (message.blockHash !== void 0) {
1074
+ obj.blockHash = B256.toJSON(message.blockHash);
1068
1075
  }
1069
- if (message.parentHash !== void 0) {
1070
- obj.parentHash = B256.toJSON(message.parentHash);
1076
+ if (message.parentBlockHash !== void 0) {
1077
+ obj.parentBlockHash = B256.toJSON(message.parentBlockHash);
1071
1078
  }
1072
1079
  if (message.unclesHash !== void 0) {
1073
1080
  obj.unclesHash = B256.toJSON(message.unclesHash);
@@ -1091,10 +1098,10 @@ const BlockHeader$1 = {
1091
1098
  obj.difficulty = U256.toJSON(message.difficulty);
1092
1099
  }
1093
1100
  if (message.gasLimit !== void 0) {
1094
- obj.gasLimit = U256.toJSON(message.gasLimit);
1101
+ obj.gasLimit = U128.toJSON(message.gasLimit);
1095
1102
  }
1096
1103
  if (message.gasUsed !== void 0) {
1097
- obj.gasUsed = U256.toJSON(message.gasUsed);
1104
+ obj.gasUsed = U128.toJSON(message.gasUsed);
1098
1105
  }
1099
1106
  if (message.timestamp !== void 0) {
1100
1107
  obj.timestamp = message.timestamp.toISOString();
@@ -1105,11 +1112,11 @@ const BlockHeader$1 = {
1105
1112
  if (message.mixHash !== void 0) {
1106
1113
  obj.mixHash = B256.toJSON(message.mixHash);
1107
1114
  }
1108
- if (message.nonce !== void 0 && message.nonce !== BigInt("0")) {
1115
+ if (message.nonce !== void 0) {
1109
1116
  obj.nonce = message.nonce.toString();
1110
1117
  }
1111
1118
  if (message.baseFeePerGas !== void 0) {
1112
- obj.baseFeePerGas = U256.toJSON(message.baseFeePerGas);
1119
+ obj.baseFeePerGas = U128.toJSON(message.baseFeePerGas);
1113
1120
  }
1114
1121
  if (message.withdrawalsRoot !== void 0) {
1115
1122
  obj.withdrawalsRoot = B256.toJSON(message.withdrawalsRoot);
@@ -1117,17 +1124,11 @@ const BlockHeader$1 = {
1117
1124
  if (message.totalDifficulty !== void 0) {
1118
1125
  obj.totalDifficulty = U256.toJSON(message.totalDifficulty);
1119
1126
  }
1120
- if (message.uncles?.length) {
1121
- obj.uncles = message.uncles.map((e) => B256.toJSON(e));
1122
- }
1123
- if (message.size !== void 0) {
1124
- obj.size = U256.toJSON(message.size);
1125
- }
1126
- if (message.blobGasUsed !== void 0 && message.blobGasUsed !== BigInt("0")) {
1127
- obj.blobGasUsed = message.blobGasUsed.toString();
1127
+ if (message.blobGasUsed !== void 0) {
1128
+ obj.blobGasUsed = U128.toJSON(message.blobGasUsed);
1128
1129
  }
1129
- if (message.excessBlobGas !== void 0 && message.excessBlobGas !== BigInt("0")) {
1130
- obj.excessBlobGas = message.excessBlobGas.toString();
1130
+ if (message.excessBlobGas !== void 0) {
1131
+ obj.excessBlobGas = U128.toJSON(message.excessBlobGas);
1131
1132
  }
1132
1133
  if (message.parentBeaconBlockRoot !== void 0) {
1133
1134
  obj.parentBeaconBlockRoot = B256.toJSON(message.parentBeaconBlockRoot);
@@ -1139,9 +1140,9 @@ const BlockHeader$1 = {
1139
1140
  },
1140
1141
  fromPartial(object) {
1141
1142
  const message = createBaseBlockHeader();
1142
- message.number = object.number ?? BigInt("0");
1143
- message.hash = object.hash !== void 0 && object.hash !== null ? B256.fromPartial(object.hash) : void 0;
1144
- message.parentHash = object.parentHash !== void 0 && object.parentHash !== null ? B256.fromPartial(object.parentHash) : void 0;
1143
+ message.blockNumber = object.blockNumber ?? BigInt("0");
1144
+ message.blockHash = object.blockHash !== void 0 && object.blockHash !== null ? B256.fromPartial(object.blockHash) : void 0;
1145
+ message.parentBlockHash = object.parentBlockHash !== void 0 && object.parentBlockHash !== null ? B256.fromPartial(object.parentBlockHash) : void 0;
1145
1146
  message.unclesHash = object.unclesHash !== void 0 && object.unclesHash !== null ? B256.fromPartial(object.unclesHash) : void 0;
1146
1147
  message.miner = object.miner !== void 0 && object.miner !== null ? Address.fromPartial(object.miner) : void 0;
1147
1148
  message.stateRoot = object.stateRoot !== void 0 && object.stateRoot !== null ? B256.fromPartial(object.stateRoot) : void 0;
@@ -1149,57 +1150,60 @@ const BlockHeader$1 = {
1149
1150
  message.receiptsRoot = object.receiptsRoot !== void 0 && object.receiptsRoot !== null ? B256.fromPartial(object.receiptsRoot) : void 0;
1150
1151
  message.logsBloom = object.logsBloom !== void 0 && object.logsBloom !== null ? Bloom$1.fromPartial(object.logsBloom) : void 0;
1151
1152
  message.difficulty = object.difficulty !== void 0 && object.difficulty !== null ? U256.fromPartial(object.difficulty) : void 0;
1152
- message.gasLimit = object.gasLimit !== void 0 && object.gasLimit !== null ? U256.fromPartial(object.gasLimit) : void 0;
1153
- message.gasUsed = object.gasUsed !== void 0 && object.gasUsed !== null ? U256.fromPartial(object.gasUsed) : void 0;
1153
+ message.gasLimit = object.gasLimit !== void 0 && object.gasLimit !== null ? U128.fromPartial(object.gasLimit) : void 0;
1154
+ message.gasUsed = object.gasUsed !== void 0 && object.gasUsed !== null ? U128.fromPartial(object.gasUsed) : void 0;
1154
1155
  message.timestamp = object.timestamp ?? void 0;
1155
1156
  message.extraData = object.extraData ?? new Uint8Array(0);
1156
1157
  message.mixHash = object.mixHash !== void 0 && object.mixHash !== null ? B256.fromPartial(object.mixHash) : void 0;
1157
- message.nonce = object.nonce ?? BigInt("0");
1158
- message.baseFeePerGas = object.baseFeePerGas !== void 0 && object.baseFeePerGas !== null ? U256.fromPartial(object.baseFeePerGas) : void 0;
1158
+ message.nonce = object.nonce ?? void 0;
1159
+ message.baseFeePerGas = object.baseFeePerGas !== void 0 && object.baseFeePerGas !== null ? U128.fromPartial(object.baseFeePerGas) : void 0;
1159
1160
  message.withdrawalsRoot = object.withdrawalsRoot !== void 0 && object.withdrawalsRoot !== null ? B256.fromPartial(object.withdrawalsRoot) : void 0;
1160
1161
  message.totalDifficulty = object.totalDifficulty !== void 0 && object.totalDifficulty !== null ? U256.fromPartial(object.totalDifficulty) : void 0;
1161
- message.uncles = object.uncles?.map((e) => B256.fromPartial(e)) || [];
1162
- message.size = object.size !== void 0 && object.size !== null ? U256.fromPartial(object.size) : void 0;
1163
- message.blobGasUsed = object.blobGasUsed ?? BigInt("0");
1164
- message.excessBlobGas = object.excessBlobGas ?? BigInt("0");
1162
+ message.blobGasUsed = object.blobGasUsed !== void 0 && object.blobGasUsed !== null ? U128.fromPartial(object.blobGasUsed) : void 0;
1163
+ message.excessBlobGas = object.excessBlobGas !== void 0 && object.excessBlobGas !== null ? U128.fromPartial(object.excessBlobGas) : void 0;
1165
1164
  message.parentBeaconBlockRoot = object.parentBeaconBlockRoot !== void 0 && object.parentBeaconBlockRoot !== null ? B256.fromPartial(object.parentBeaconBlockRoot) : void 0;
1166
1165
  return message;
1167
1166
  }
1168
1167
  };
1169
1168
  function createBaseWithdrawal() {
1170
1169
  return {
1170
+ filterIds: [],
1171
+ withdrawalIndex: 0,
1171
1172
  index: BigInt("0"),
1172
- validatorIndex: BigInt("0"),
1173
- withdrawalIndex: BigInt("0"),
1173
+ validatorIndex: 0,
1174
1174
  address: void 0,
1175
- amount: void 0
1175
+ amount: BigInt("0")
1176
1176
  };
1177
1177
  }
1178
1178
  const Withdrawal$1 = {
1179
1179
  encode(message, writer = _m0.Writer.create()) {
1180
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
1181
+ writer.uint32(10).fork();
1182
+ for (const v of message.filterIds) {
1183
+ writer.uint32(v);
1184
+ }
1185
+ writer.ldelim();
1186
+ }
1187
+ if (message.withdrawalIndex !== void 0 && message.withdrawalIndex !== 0) {
1188
+ writer.uint32(16).uint32(message.withdrawalIndex);
1189
+ }
1180
1190
  if (message.index !== void 0 && message.index !== BigInt("0")) {
1181
1191
  if (BigInt.asUintN(64, message.index) !== message.index) {
1182
1192
  throw new globalThis.Error("value provided for field message.index of type uint64 too large");
1183
1193
  }
1184
- writer.uint32(8).uint64(message.index.toString());
1194
+ writer.uint32(24).uint64(message.index.toString());
1185
1195
  }
1186
- if (message.validatorIndex !== void 0 && message.validatorIndex !== BigInt("0")) {
1187
- if (BigInt.asUintN(64, message.validatorIndex) !== message.validatorIndex) {
1188
- throw new globalThis.Error("value provided for field message.validatorIndex of type uint64 too large");
1189
- }
1190
- writer.uint32(16).uint64(message.validatorIndex.toString());
1191
- }
1192
- if (message.withdrawalIndex !== void 0 && message.withdrawalIndex !== BigInt("0")) {
1193
- if (BigInt.asUintN(64, message.withdrawalIndex) !== message.withdrawalIndex) {
1194
- throw new globalThis.Error("value provided for field message.withdrawalIndex of type uint64 too large");
1195
- }
1196
- writer.uint32(24).uint64(message.withdrawalIndex.toString());
1196
+ if (message.validatorIndex !== void 0 && message.validatorIndex !== 0) {
1197
+ writer.uint32(32).uint32(message.validatorIndex);
1197
1198
  }
1198
1199
  if (message.address !== void 0) {
1199
- Address.encode(message.address, writer.uint32(34).fork()).ldelim();
1200
+ Address.encode(message.address, writer.uint32(42).fork()).ldelim();
1200
1201
  }
1201
- if (message.amount !== void 0) {
1202
- U256.encode(message.amount, writer.uint32(42).fork()).ldelim();
1202
+ if (message.amount !== void 0 && message.amount !== BigInt("0")) {
1203
+ if (BigInt.asUintN(64, message.amount) !== message.amount) {
1204
+ throw new globalThis.Error("value provided for field message.amount of type uint64 too large");
1205
+ }
1206
+ writer.uint32(48).uint64(message.amount.toString());
1203
1207
  }
1204
1208
  return writer;
1205
1209
  },
@@ -1211,34 +1215,47 @@ const Withdrawal$1 = {
1211
1215
  const tag = reader.uint32();
1212
1216
  switch (tag >>> 3) {
1213
1217
  case 1:
1214
- if (tag !== 8) {
1215
- break;
1216
- }
1217
- message.index = longToBigint$1(reader.uint64());
1218
- continue;
1218
+ if (tag === 8) {
1219
+ message.filterIds.push(reader.uint32());
1220
+ continue;
1221
+ }
1222
+ if (tag === 10) {
1223
+ const end2 = reader.uint32() + reader.pos;
1224
+ while (reader.pos < end2) {
1225
+ message.filterIds.push(reader.uint32());
1226
+ }
1227
+ continue;
1228
+ }
1229
+ break;
1219
1230
  case 2:
1220
1231
  if (tag !== 16) {
1221
1232
  break;
1222
1233
  }
1223
- message.validatorIndex = longToBigint$1(reader.uint64());
1234
+ message.withdrawalIndex = reader.uint32();
1224
1235
  continue;
1225
1236
  case 3:
1226
1237
  if (tag !== 24) {
1227
1238
  break;
1228
1239
  }
1229
- message.withdrawalIndex = longToBigint$1(reader.uint64());
1240
+ message.index = longToBigint(reader.uint64());
1230
1241
  continue;
1231
1242
  case 4:
1232
- if (tag !== 34) {
1243
+ if (tag !== 32) {
1233
1244
  break;
1234
1245
  }
1235
- message.address = Address.decode(reader, reader.uint32());
1246
+ message.validatorIndex = reader.uint32();
1236
1247
  continue;
1237
1248
  case 5:
1238
1249
  if (tag !== 42) {
1239
1250
  break;
1240
1251
  }
1241
- message.amount = U256.decode(reader, reader.uint32());
1252
+ message.address = Address.decode(reader, reader.uint32());
1253
+ continue;
1254
+ case 6:
1255
+ if (tag !== 48) {
1256
+ break;
1257
+ }
1258
+ message.amount = longToBigint(reader.uint64());
1242
1259
  continue;
1243
1260
  }
1244
1261
  if ((tag & 7) === 4 || tag === 0) {
@@ -1250,29 +1267,33 @@ const Withdrawal$1 = {
1250
1267
  },
1251
1268
  fromJSON(object) {
1252
1269
  return {
1270
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
1271
+ withdrawalIndex: isSet$1(object.withdrawalIndex) ? globalThis.Number(object.withdrawalIndex) : 0,
1253
1272
  index: isSet$1(object.index) ? BigInt(object.index) : BigInt("0"),
1254
- validatorIndex: isSet$1(object.validatorIndex) ? BigInt(object.validatorIndex) : BigInt("0"),
1255
- withdrawalIndex: isSet$1(object.withdrawalIndex) ? BigInt(object.withdrawalIndex) : BigInt("0"),
1273
+ validatorIndex: isSet$1(object.validatorIndex) ? globalThis.Number(object.validatorIndex) : 0,
1256
1274
  address: isSet$1(object.address) ? Address.fromJSON(object.address) : void 0,
1257
- amount: isSet$1(object.amount) ? U256.fromJSON(object.amount) : void 0
1275
+ amount: isSet$1(object.amount) ? BigInt(object.amount) : BigInt("0")
1258
1276
  };
1259
1277
  },
1260
1278
  toJSON(message) {
1261
1279
  const obj = {};
1280
+ if (message.filterIds?.length) {
1281
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1282
+ }
1283
+ if (message.withdrawalIndex !== void 0 && message.withdrawalIndex !== 0) {
1284
+ obj.withdrawalIndex = Math.round(message.withdrawalIndex);
1285
+ }
1262
1286
  if (message.index !== void 0 && message.index !== BigInt("0")) {
1263
1287
  obj.index = message.index.toString();
1264
1288
  }
1265
- if (message.validatorIndex !== void 0 && message.validatorIndex !== BigInt("0")) {
1266
- obj.validatorIndex = message.validatorIndex.toString();
1267
- }
1268
- if (message.withdrawalIndex !== void 0 && message.withdrawalIndex !== BigInt("0")) {
1269
- obj.withdrawalIndex = message.withdrawalIndex.toString();
1289
+ if (message.validatorIndex !== void 0 && message.validatorIndex !== 0) {
1290
+ obj.validatorIndex = Math.round(message.validatorIndex);
1270
1291
  }
1271
1292
  if (message.address !== void 0) {
1272
1293
  obj.address = Address.toJSON(message.address);
1273
1294
  }
1274
- if (message.amount !== void 0) {
1275
- obj.amount = U256.toJSON(message.amount);
1295
+ if (message.amount !== void 0 && message.amount !== BigInt("0")) {
1296
+ obj.amount = message.amount.toString();
1276
1297
  }
1277
1298
  return obj;
1278
1299
  },
@@ -1281,19 +1302,21 @@ const Withdrawal$1 = {
1281
1302
  },
1282
1303
  fromPartial(object) {
1283
1304
  const message = createBaseWithdrawal();
1305
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1306
+ message.withdrawalIndex = object.withdrawalIndex ?? 0;
1284
1307
  message.index = object.index ?? BigInt("0");
1285
- message.validatorIndex = object.validatorIndex ?? BigInt("0");
1286
- message.withdrawalIndex = object.withdrawalIndex ?? BigInt("0");
1308
+ message.validatorIndex = object.validatorIndex ?? 0;
1287
1309
  message.address = object.address !== void 0 && object.address !== null ? Address.fromPartial(object.address) : void 0;
1288
- message.amount = object.amount !== void 0 && object.amount !== null ? U256.fromPartial(object.amount) : void 0;
1310
+ message.amount = object.amount ?? BigInt("0");
1289
1311
  return message;
1290
1312
  }
1291
1313
  };
1292
1314
  function createBaseTransaction() {
1293
1315
  return {
1294
- hash: void 0,
1316
+ filterIds: [],
1317
+ transactionIndex: 0,
1318
+ transactionHash: void 0,
1295
1319
  nonce: BigInt("0"),
1296
- transactionIndex: BigInt("0"),
1297
1320
  from: void 0,
1298
1321
  to: void 0,
1299
1322
  value: void 0,
@@ -1303,82 +1326,90 @@ function createBaseTransaction() {
1303
1326
  maxPriorityFeePerGas: void 0,
1304
1327
  input: new Uint8Array(0),
1305
1328
  signature: void 0,
1306
- chainId: BigInt("0"),
1329
+ chainId: void 0,
1307
1330
  accessList: [],
1308
1331
  transactionType: BigInt("0"),
1309
1332
  maxFeePerBlobGas: void 0,
1310
- blobVersionedHashes: []
1333
+ blobVersionedHashes: [],
1334
+ transactionStatus: 0
1311
1335
  };
1312
1336
  }
1313
1337
  const Transaction$1 = {
1314
1338
  encode(message, writer = _m0.Writer.create()) {
1315
- if (message.hash !== void 0) {
1316
- B256.encode(message.hash, writer.uint32(10).fork()).ldelim();
1339
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
1340
+ writer.uint32(10).fork();
1341
+ for (const v of message.filterIds) {
1342
+ writer.uint32(v);
1343
+ }
1344
+ writer.ldelim();
1345
+ }
1346
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
1347
+ writer.uint32(16).uint32(message.transactionIndex);
1348
+ }
1349
+ if (message.transactionHash !== void 0) {
1350
+ B256.encode(message.transactionHash, writer.uint32(26).fork()).ldelim();
1317
1351
  }
1318
1352
  if (message.nonce !== void 0 && message.nonce !== BigInt("0")) {
1319
1353
  if (BigInt.asUintN(64, message.nonce) !== message.nonce) {
1320
1354
  throw new globalThis.Error("value provided for field message.nonce of type uint64 too large");
1321
1355
  }
1322
- writer.uint32(16).uint64(message.nonce.toString());
1323
- }
1324
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1325
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1326
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1327
- }
1328
- writer.uint32(24).uint64(message.transactionIndex.toString());
1356
+ writer.uint32(32).uint64(message.nonce.toString());
1329
1357
  }
1330
1358
  if (message.from !== void 0) {
1331
- Address.encode(message.from, writer.uint32(34).fork()).ldelim();
1359
+ Address.encode(message.from, writer.uint32(42).fork()).ldelim();
1332
1360
  }
1333
1361
  if (message.to !== void 0) {
1334
- Address.encode(message.to, writer.uint32(42).fork()).ldelim();
1362
+ Address.encode(message.to, writer.uint32(50).fork()).ldelim();
1335
1363
  }
1336
1364
  if (message.value !== void 0) {
1337
- U256.encode(message.value, writer.uint32(50).fork()).ldelim();
1365
+ U256.encode(message.value, writer.uint32(58).fork()).ldelim();
1338
1366
  }
1339
1367
  if (message.gasPrice !== void 0) {
1340
- U128.encode(message.gasPrice, writer.uint32(58).fork()).ldelim();
1368
+ U128.encode(message.gasPrice, writer.uint32(66).fork()).ldelim();
1341
1369
  }
1342
1370
  if (message.gas !== void 0) {
1343
- U256.encode(message.gas, writer.uint32(66).fork()).ldelim();
1371
+ U128.encode(message.gas, writer.uint32(74).fork()).ldelim();
1344
1372
  }
1345
1373
  if (message.maxFeePerGas !== void 0) {
1346
- U128.encode(message.maxFeePerGas, writer.uint32(74).fork()).ldelim();
1374
+ U128.encode(message.maxFeePerGas, writer.uint32(82).fork()).ldelim();
1347
1375
  }
1348
1376
  if (message.maxPriorityFeePerGas !== void 0) {
1349
- U128.encode(message.maxPriorityFeePerGas, writer.uint32(82).fork()).ldelim();
1377
+ U128.encode(message.maxPriorityFeePerGas, writer.uint32(90).fork()).ldelim();
1350
1378
  }
1351
1379
  if (message.input !== void 0 && message.input.length !== 0) {
1352
- writer.uint32(90).bytes(message.input);
1380
+ writer.uint32(98).bytes(message.input);
1353
1381
  }
1354
1382
  if (message.signature !== void 0) {
1355
- Signature$1.encode(message.signature, writer.uint32(98).fork()).ldelim();
1383
+ Signature$1.encode(message.signature, writer.uint32(106).fork()).ldelim();
1356
1384
  }
1357
- if (message.chainId !== void 0 && message.chainId !== BigInt("0")) {
1385
+ if (message.chainId !== void 0) {
1358
1386
  if (BigInt.asUintN(64, message.chainId) !== message.chainId) {
1359
1387
  throw new globalThis.Error("value provided for field message.chainId of type uint64 too large");
1360
1388
  }
1361
- writer.uint32(104).uint64(message.chainId.toString());
1389
+ writer.uint32(112).uint64(message.chainId.toString());
1362
1390
  }
1363
1391
  if (message.accessList !== void 0 && message.accessList.length !== 0) {
1364
1392
  for (const v of message.accessList) {
1365
- AccessListItem$1.encode(v, writer.uint32(114).fork()).ldelim();
1393
+ AccessListItem$1.encode(v, writer.uint32(122).fork()).ldelim();
1366
1394
  }
1367
1395
  }
1368
1396
  if (message.transactionType !== void 0 && message.transactionType !== BigInt("0")) {
1369
1397
  if (BigInt.asUintN(64, message.transactionType) !== message.transactionType) {
1370
1398
  throw new globalThis.Error("value provided for field message.transactionType of type uint64 too large");
1371
1399
  }
1372
- writer.uint32(120).uint64(message.transactionType.toString());
1400
+ writer.uint32(128).uint64(message.transactionType.toString());
1373
1401
  }
1374
1402
  if (message.maxFeePerBlobGas !== void 0) {
1375
- U128.encode(message.maxFeePerBlobGas, writer.uint32(130).fork()).ldelim();
1403
+ U128.encode(message.maxFeePerBlobGas, writer.uint32(138).fork()).ldelim();
1376
1404
  }
1377
1405
  if (message.blobVersionedHashes !== void 0 && message.blobVersionedHashes.length !== 0) {
1378
1406
  for (const v of message.blobVersionedHashes) {
1379
- B256.encode(v, writer.uint32(138).fork()).ldelim();
1407
+ B256.encode(v, writer.uint32(146).fork()).ldelim();
1380
1408
  }
1381
1409
  }
1410
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1411
+ writer.uint32(152).int32(message.transactionStatus);
1412
+ }
1382
1413
  return writer;
1383
1414
  },
1384
1415
  decode(input, length) {
@@ -1389,107 +1420,126 @@ const Transaction$1 = {
1389
1420
  const tag = reader.uint32();
1390
1421
  switch (tag >>> 3) {
1391
1422
  case 1:
1392
- if (tag !== 10) {
1393
- break;
1394
- }
1395
- message.hash = B256.decode(reader, reader.uint32());
1396
- continue;
1423
+ if (tag === 8) {
1424
+ message.filterIds.push(reader.uint32());
1425
+ continue;
1426
+ }
1427
+ if (tag === 10) {
1428
+ const end2 = reader.uint32() + reader.pos;
1429
+ while (reader.pos < end2) {
1430
+ message.filterIds.push(reader.uint32());
1431
+ }
1432
+ continue;
1433
+ }
1434
+ break;
1397
1435
  case 2:
1398
1436
  if (tag !== 16) {
1399
1437
  break;
1400
1438
  }
1401
- message.nonce = longToBigint$1(reader.uint64());
1439
+ message.transactionIndex = reader.uint32();
1402
1440
  continue;
1403
1441
  case 3:
1404
- if (tag !== 24) {
1442
+ if (tag !== 26) {
1405
1443
  break;
1406
1444
  }
1407
- message.transactionIndex = longToBigint$1(reader.uint64());
1445
+ message.transactionHash = B256.decode(reader, reader.uint32());
1408
1446
  continue;
1409
1447
  case 4:
1410
- if (tag !== 34) {
1448
+ if (tag !== 32) {
1411
1449
  break;
1412
1450
  }
1413
- message.from = Address.decode(reader, reader.uint32());
1451
+ message.nonce = longToBigint(reader.uint64());
1414
1452
  continue;
1415
1453
  case 5:
1416
1454
  if (tag !== 42) {
1417
1455
  break;
1418
1456
  }
1419
- message.to = Address.decode(reader, reader.uint32());
1457
+ message.from = Address.decode(reader, reader.uint32());
1420
1458
  continue;
1421
1459
  case 6:
1422
1460
  if (tag !== 50) {
1423
1461
  break;
1424
1462
  }
1425
- message.value = U256.decode(reader, reader.uint32());
1463
+ message.to = Address.decode(reader, reader.uint32());
1426
1464
  continue;
1427
1465
  case 7:
1428
1466
  if (tag !== 58) {
1429
1467
  break;
1430
1468
  }
1431
- message.gasPrice = U128.decode(reader, reader.uint32());
1469
+ message.value = U256.decode(reader, reader.uint32());
1432
1470
  continue;
1433
1471
  case 8:
1434
1472
  if (tag !== 66) {
1435
1473
  break;
1436
1474
  }
1437
- message.gas = U256.decode(reader, reader.uint32());
1475
+ message.gasPrice = U128.decode(reader, reader.uint32());
1438
1476
  continue;
1439
1477
  case 9:
1440
1478
  if (tag !== 74) {
1441
1479
  break;
1442
1480
  }
1443
- message.maxFeePerGas = U128.decode(reader, reader.uint32());
1481
+ message.gas = U128.decode(reader, reader.uint32());
1444
1482
  continue;
1445
1483
  case 10:
1446
1484
  if (tag !== 82) {
1447
1485
  break;
1448
1486
  }
1449
- message.maxPriorityFeePerGas = U128.decode(reader, reader.uint32());
1487
+ message.maxFeePerGas = U128.decode(reader, reader.uint32());
1450
1488
  continue;
1451
1489
  case 11:
1452
1490
  if (tag !== 90) {
1453
1491
  break;
1454
1492
  }
1455
- message.input = reader.bytes();
1493
+ message.maxPriorityFeePerGas = U128.decode(reader, reader.uint32());
1456
1494
  continue;
1457
1495
  case 12:
1458
1496
  if (tag !== 98) {
1459
1497
  break;
1460
1498
  }
1461
- message.signature = Signature$1.decode(reader, reader.uint32());
1499
+ message.input = reader.bytes();
1462
1500
  continue;
1463
1501
  case 13:
1464
- if (tag !== 104) {
1502
+ if (tag !== 106) {
1465
1503
  break;
1466
1504
  }
1467
- message.chainId = longToBigint$1(reader.uint64());
1505
+ message.signature = Signature$1.decode(reader, reader.uint32());
1468
1506
  continue;
1469
1507
  case 14:
1470
- if (tag !== 114) {
1508
+ if (tag !== 112) {
1471
1509
  break;
1472
1510
  }
1473
- message.accessList.push(AccessListItem$1.decode(reader, reader.uint32()));
1511
+ message.chainId = longToBigint(reader.uint64());
1474
1512
  continue;
1475
1513
  case 15:
1476
- if (tag !== 120) {
1514
+ if (tag !== 122) {
1477
1515
  break;
1478
1516
  }
1479
- message.transactionType = longToBigint$1(reader.uint64());
1517
+ message.accessList.push(AccessListItem$1.decode(reader, reader.uint32()));
1480
1518
  continue;
1481
1519
  case 16:
1482
- if (tag !== 130) {
1520
+ if (tag !== 128) {
1483
1521
  break;
1484
1522
  }
1485
- message.maxFeePerBlobGas = U128.decode(reader, reader.uint32());
1523
+ message.transactionType = longToBigint(reader.uint64());
1486
1524
  continue;
1487
1525
  case 17:
1488
1526
  if (tag !== 138) {
1489
1527
  break;
1490
1528
  }
1529
+ message.maxFeePerBlobGas = U128.decode(reader, reader.uint32());
1530
+ continue;
1531
+ case 18:
1532
+ if (tag !== 146) {
1533
+ break;
1534
+ }
1491
1535
  message.blobVersionedHashes.push(B256.decode(reader, reader.uint32()));
1492
1536
  continue;
1537
+ case 19:
1538
+ if (tag !== 152) {
1539
+ break;
1540
+ }
1541
+ message.transactionStatus = reader.int32();
1542
+ continue;
1493
1543
  }
1494
1544
  if ((tag & 7) === 4 || tag === 0) {
1495
1545
  break;
@@ -1500,36 +1550,41 @@ const Transaction$1 = {
1500
1550
  },
1501
1551
  fromJSON(object) {
1502
1552
  return {
1503
- hash: isSet$1(object.hash) ? B256.fromJSON(object.hash) : void 0,
1553
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
1554
+ transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1555
+ transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0,
1504
1556
  nonce: isSet$1(object.nonce) ? BigInt(object.nonce) : BigInt("0"),
1505
- transactionIndex: isSet$1(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1506
1557
  from: isSet$1(object.from) ? Address.fromJSON(object.from) : void 0,
1507
1558
  to: isSet$1(object.to) ? Address.fromJSON(object.to) : void 0,
1508
1559
  value: isSet$1(object.value) ? U256.fromJSON(object.value) : void 0,
1509
1560
  gasPrice: isSet$1(object.gasPrice) ? U128.fromJSON(object.gasPrice) : void 0,
1510
- gas: isSet$1(object.gas) ? U256.fromJSON(object.gas) : void 0,
1561
+ gas: isSet$1(object.gas) ? U128.fromJSON(object.gas) : void 0,
1511
1562
  maxFeePerGas: isSet$1(object.maxFeePerGas) ? U128.fromJSON(object.maxFeePerGas) : void 0,
1512
1563
  maxPriorityFeePerGas: isSet$1(object.maxPriorityFeePerGas) ? U128.fromJSON(object.maxPriorityFeePerGas) : void 0,
1513
1564
  input: isSet$1(object.input) ? bytesFromBase64(object.input) : new Uint8Array(0),
1514
1565
  signature: isSet$1(object.signature) ? Signature$1.fromJSON(object.signature) : void 0,
1515
- chainId: isSet$1(object.chainId) ? BigInt(object.chainId) : BigInt("0"),
1566
+ chainId: isSet$1(object.chainId) ? BigInt(object.chainId) : void 0,
1516
1567
  accessList: globalThis.Array.isArray(object?.accessList) ? object.accessList.map((e) => AccessListItem$1.fromJSON(e)) : [],
1517
1568
  transactionType: isSet$1(object.transactionType) ? BigInt(object.transactionType) : BigInt("0"),
1518
1569
  maxFeePerBlobGas: isSet$1(object.maxFeePerBlobGas) ? U128.fromJSON(object.maxFeePerBlobGas) : void 0,
1519
- blobVersionedHashes: globalThis.Array.isArray(object?.blobVersionedHashes) ? object.blobVersionedHashes.map((e) => B256.fromJSON(e)) : []
1570
+ blobVersionedHashes: globalThis.Array.isArray(object?.blobVersionedHashes) ? object.blobVersionedHashes.map((e) => B256.fromJSON(e)) : [],
1571
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
1520
1572
  };
1521
1573
  },
1522
1574
  toJSON(message) {
1523
1575
  const obj = {};
1524
- if (message.hash !== void 0) {
1525
- obj.hash = B256.toJSON(message.hash);
1576
+ if (message.filterIds?.length) {
1577
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1578
+ }
1579
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
1580
+ obj.transactionIndex = Math.round(message.transactionIndex);
1581
+ }
1582
+ if (message.transactionHash !== void 0) {
1583
+ obj.transactionHash = B256.toJSON(message.transactionHash);
1526
1584
  }
1527
1585
  if (message.nonce !== void 0 && message.nonce !== BigInt("0")) {
1528
1586
  obj.nonce = message.nonce.toString();
1529
1587
  }
1530
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1531
- obj.transactionIndex = message.transactionIndex.toString();
1532
- }
1533
1588
  if (message.from !== void 0) {
1534
1589
  obj.from = Address.toJSON(message.from);
1535
1590
  }
@@ -1543,7 +1598,7 @@ const Transaction$1 = {
1543
1598
  obj.gasPrice = U128.toJSON(message.gasPrice);
1544
1599
  }
1545
1600
  if (message.gas !== void 0) {
1546
- obj.gas = U256.toJSON(message.gas);
1601
+ obj.gas = U128.toJSON(message.gas);
1547
1602
  }
1548
1603
  if (message.maxFeePerGas !== void 0) {
1549
1604
  obj.maxFeePerGas = U128.toJSON(message.maxFeePerGas);
@@ -1557,7 +1612,7 @@ const Transaction$1 = {
1557
1612
  if (message.signature !== void 0) {
1558
1613
  obj.signature = Signature$1.toJSON(message.signature);
1559
1614
  }
1560
- if (message.chainId !== void 0 && message.chainId !== BigInt("0")) {
1615
+ if (message.chainId !== void 0) {
1561
1616
  obj.chainId = message.chainId.toString();
1562
1617
  }
1563
1618
  if (message.accessList?.length) {
@@ -1572,6 +1627,9 @@ const Transaction$1 = {
1572
1627
  if (message.blobVersionedHashes?.length) {
1573
1628
  obj.blobVersionedHashes = message.blobVersionedHashes.map((e) => B256.toJSON(e));
1574
1629
  }
1630
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1631
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1632
+ }
1575
1633
  return obj;
1576
1634
  },
1577
1635
  create(base) {
@@ -1579,30 +1637,33 @@ const Transaction$1 = {
1579
1637
  },
1580
1638
  fromPartial(object) {
1581
1639
  const message = createBaseTransaction();
1582
- message.hash = object.hash !== void 0 && object.hash !== null ? B256.fromPartial(object.hash) : void 0;
1640
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1641
+ message.transactionIndex = object.transactionIndex ?? 0;
1642
+ message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? B256.fromPartial(object.transactionHash) : void 0;
1583
1643
  message.nonce = object.nonce ?? BigInt("0");
1584
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
1585
1644
  message.from = object.from !== void 0 && object.from !== null ? Address.fromPartial(object.from) : void 0;
1586
1645
  message.to = object.to !== void 0 && object.to !== null ? Address.fromPartial(object.to) : void 0;
1587
1646
  message.value = object.value !== void 0 && object.value !== null ? U256.fromPartial(object.value) : void 0;
1588
1647
  message.gasPrice = object.gasPrice !== void 0 && object.gasPrice !== null ? U128.fromPartial(object.gasPrice) : void 0;
1589
- message.gas = object.gas !== void 0 && object.gas !== null ? U256.fromPartial(object.gas) : void 0;
1648
+ message.gas = object.gas !== void 0 && object.gas !== null ? U128.fromPartial(object.gas) : void 0;
1590
1649
  message.maxFeePerGas = object.maxFeePerGas !== void 0 && object.maxFeePerGas !== null ? U128.fromPartial(object.maxFeePerGas) : void 0;
1591
1650
  message.maxPriorityFeePerGas = object.maxPriorityFeePerGas !== void 0 && object.maxPriorityFeePerGas !== null ? U128.fromPartial(object.maxPriorityFeePerGas) : void 0;
1592
1651
  message.input = object.input ?? new Uint8Array(0);
1593
1652
  message.signature = object.signature !== void 0 && object.signature !== null ? Signature$1.fromPartial(object.signature) : void 0;
1594
- message.chainId = object.chainId ?? BigInt("0");
1653
+ message.chainId = object.chainId ?? void 0;
1595
1654
  message.accessList = object.accessList?.map((e) => AccessListItem$1.fromPartial(e)) || [];
1596
1655
  message.transactionType = object.transactionType ?? BigInt("0");
1597
1656
  message.maxFeePerBlobGas = object.maxFeePerBlobGas !== void 0 && object.maxFeePerBlobGas !== null ? U128.fromPartial(object.maxFeePerBlobGas) : void 0;
1598
1657
  message.blobVersionedHashes = object.blobVersionedHashes?.map((e) => B256.fromPartial(e)) || [];
1658
+ message.transactionStatus = object.transactionStatus ?? 0;
1599
1659
  return message;
1600
1660
  }
1601
1661
  };
1602
1662
  function createBaseTransactionReceipt() {
1603
1663
  return {
1664
+ filterIds: [],
1665
+ transactionIndex: 0,
1604
1666
  transactionHash: void 0,
1605
- transactionIndex: BigInt("0"),
1606
1667
  cumulativeGasUsed: void 0,
1607
1668
  gasUsed: void 0,
1608
1669
  effectiveGasPrice: void 0,
@@ -1610,49 +1671,47 @@ function createBaseTransactionReceipt() {
1610
1671
  to: void 0,
1611
1672
  contractAddress: void 0,
1612
1673
  logsBloom: void 0,
1613
- statusCode: BigInt("0"),
1614
1674
  transactionType: BigInt("0"),
1615
1675
  blobGasUsed: void 0,
1616
- blobGasPrice: void 0
1676
+ blobGasPrice: void 0,
1677
+ transactionStatus: 0
1617
1678
  };
1618
1679
  }
1619
1680
  const TransactionReceipt$1 = {
1620
1681
  encode(message, writer = _m0.Writer.create()) {
1621
- if (message.transactionHash !== void 0) {
1622
- B256.encode(message.transactionHash, writer.uint32(10).fork()).ldelim();
1623
- }
1624
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1625
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1626
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1682
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
1683
+ writer.uint32(10).fork();
1684
+ for (const v of message.filterIds) {
1685
+ writer.uint32(v);
1627
1686
  }
1628
- writer.uint32(16).uint64(message.transactionIndex.toString());
1687
+ writer.ldelim();
1688
+ }
1689
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
1690
+ writer.uint32(16).uint32(message.transactionIndex);
1691
+ }
1692
+ if (message.transactionHash !== void 0) {
1693
+ B256.encode(message.transactionHash, writer.uint32(26).fork()).ldelim();
1629
1694
  }
1630
1695
  if (message.cumulativeGasUsed !== void 0) {
1631
- U256.encode(message.cumulativeGasUsed, writer.uint32(26).fork()).ldelim();
1696
+ U128.encode(message.cumulativeGasUsed, writer.uint32(34).fork()).ldelim();
1632
1697
  }
1633
1698
  if (message.gasUsed !== void 0) {
1634
- U256.encode(message.gasUsed, writer.uint32(34).fork()).ldelim();
1699
+ U128.encode(message.gasUsed, writer.uint32(42).fork()).ldelim();
1635
1700
  }
1636
1701
  if (message.effectiveGasPrice !== void 0) {
1637
- U128.encode(message.effectiveGasPrice, writer.uint32(42).fork()).ldelim();
1702
+ U128.encode(message.effectiveGasPrice, writer.uint32(50).fork()).ldelim();
1638
1703
  }
1639
1704
  if (message.from !== void 0) {
1640
- Address.encode(message.from, writer.uint32(50).fork()).ldelim();
1705
+ Address.encode(message.from, writer.uint32(58).fork()).ldelim();
1641
1706
  }
1642
1707
  if (message.to !== void 0) {
1643
- Address.encode(message.to, writer.uint32(58).fork()).ldelim();
1708
+ Address.encode(message.to, writer.uint32(66).fork()).ldelim();
1644
1709
  }
1645
1710
  if (message.contractAddress !== void 0) {
1646
- Address.encode(message.contractAddress, writer.uint32(66).fork()).ldelim();
1711
+ Address.encode(message.contractAddress, writer.uint32(74).fork()).ldelim();
1647
1712
  }
1648
1713
  if (message.logsBloom !== void 0) {
1649
- Bloom$1.encode(message.logsBloom, writer.uint32(74).fork()).ldelim();
1650
- }
1651
- if (message.statusCode !== void 0 && message.statusCode !== BigInt("0")) {
1652
- if (BigInt.asUintN(64, message.statusCode) !== message.statusCode) {
1653
- throw new globalThis.Error("value provided for field message.statusCode of type uint64 too large");
1654
- }
1655
- writer.uint32(80).uint64(message.statusCode.toString());
1714
+ Bloom$1.encode(message.logsBloom, writer.uint32(82).fork()).ldelim();
1656
1715
  }
1657
1716
  if (message.transactionType !== void 0 && message.transactionType !== BigInt("0")) {
1658
1717
  if (BigInt.asUintN(64, message.transactionType) !== message.transactionType) {
@@ -1666,6 +1725,9 @@ const TransactionReceipt$1 = {
1666
1725
  if (message.blobGasPrice !== void 0) {
1667
1726
  U128.encode(message.blobGasPrice, writer.uint32(106).fork()).ldelim();
1668
1727
  }
1728
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1729
+ writer.uint32(112).int32(message.transactionStatus);
1730
+ }
1669
1731
  return writer;
1670
1732
  },
1671
1733
  decode(input, length) {
@@ -1676,70 +1738,77 @@ const TransactionReceipt$1 = {
1676
1738
  const tag = reader.uint32();
1677
1739
  switch (tag >>> 3) {
1678
1740
  case 1:
1679
- if (tag !== 10) {
1680
- break;
1681
- }
1682
- message.transactionHash = B256.decode(reader, reader.uint32());
1683
- continue;
1741
+ if (tag === 8) {
1742
+ message.filterIds.push(reader.uint32());
1743
+ continue;
1744
+ }
1745
+ if (tag === 10) {
1746
+ const end2 = reader.uint32() + reader.pos;
1747
+ while (reader.pos < end2) {
1748
+ message.filterIds.push(reader.uint32());
1749
+ }
1750
+ continue;
1751
+ }
1752
+ break;
1684
1753
  case 2:
1685
1754
  if (tag !== 16) {
1686
1755
  break;
1687
1756
  }
1688
- message.transactionIndex = longToBigint$1(reader.uint64());
1757
+ message.transactionIndex = reader.uint32();
1689
1758
  continue;
1690
1759
  case 3:
1691
1760
  if (tag !== 26) {
1692
1761
  break;
1693
1762
  }
1694
- message.cumulativeGasUsed = U256.decode(reader, reader.uint32());
1763
+ message.transactionHash = B256.decode(reader, reader.uint32());
1695
1764
  continue;
1696
1765
  case 4:
1697
1766
  if (tag !== 34) {
1698
1767
  break;
1699
1768
  }
1700
- message.gasUsed = U256.decode(reader, reader.uint32());
1769
+ message.cumulativeGasUsed = U128.decode(reader, reader.uint32());
1701
1770
  continue;
1702
1771
  case 5:
1703
1772
  if (tag !== 42) {
1704
1773
  break;
1705
1774
  }
1706
- message.effectiveGasPrice = U128.decode(reader, reader.uint32());
1775
+ message.gasUsed = U128.decode(reader, reader.uint32());
1707
1776
  continue;
1708
1777
  case 6:
1709
1778
  if (tag !== 50) {
1710
1779
  break;
1711
1780
  }
1712
- message.from = Address.decode(reader, reader.uint32());
1781
+ message.effectiveGasPrice = U128.decode(reader, reader.uint32());
1713
1782
  continue;
1714
1783
  case 7:
1715
1784
  if (tag !== 58) {
1716
1785
  break;
1717
1786
  }
1718
- message.to = Address.decode(reader, reader.uint32());
1787
+ message.from = Address.decode(reader, reader.uint32());
1719
1788
  continue;
1720
1789
  case 8:
1721
1790
  if (tag !== 66) {
1722
1791
  break;
1723
1792
  }
1724
- message.contractAddress = Address.decode(reader, reader.uint32());
1793
+ message.to = Address.decode(reader, reader.uint32());
1725
1794
  continue;
1726
1795
  case 9:
1727
1796
  if (tag !== 74) {
1728
1797
  break;
1729
1798
  }
1730
- message.logsBloom = Bloom$1.decode(reader, reader.uint32());
1799
+ message.contractAddress = Address.decode(reader, reader.uint32());
1731
1800
  continue;
1732
1801
  case 10:
1733
- if (tag !== 80) {
1802
+ if (tag !== 82) {
1734
1803
  break;
1735
1804
  }
1736
- message.statusCode = longToBigint$1(reader.uint64());
1805
+ message.logsBloom = Bloom$1.decode(reader, reader.uint32());
1737
1806
  continue;
1738
1807
  case 11:
1739
1808
  if (tag !== 88) {
1740
1809
  break;
1741
1810
  }
1742
- message.transactionType = longToBigint$1(reader.uint64());
1811
+ message.transactionType = longToBigint(reader.uint64());
1743
1812
  continue;
1744
1813
  case 12:
1745
1814
  if (tag !== 98) {
@@ -1753,6 +1822,12 @@ const TransactionReceipt$1 = {
1753
1822
  }
1754
1823
  message.blobGasPrice = U128.decode(reader, reader.uint32());
1755
1824
  continue;
1825
+ case 14:
1826
+ if (tag !== 112) {
1827
+ break;
1828
+ }
1829
+ message.transactionStatus = reader.int32();
1830
+ continue;
1756
1831
  }
1757
1832
  if ((tag & 7) === 4 || tag === 0) {
1758
1833
  break;
@@ -1763,34 +1838,38 @@ const TransactionReceipt$1 = {
1763
1838
  },
1764
1839
  fromJSON(object) {
1765
1840
  return {
1841
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
1842
+ transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1766
1843
  transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0,
1767
- transactionIndex: isSet$1(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1768
- cumulativeGasUsed: isSet$1(object.cumulativeGasUsed) ? U256.fromJSON(object.cumulativeGasUsed) : void 0,
1769
- gasUsed: isSet$1(object.gasUsed) ? U256.fromJSON(object.gasUsed) : void 0,
1844
+ cumulativeGasUsed: isSet$1(object.cumulativeGasUsed) ? U128.fromJSON(object.cumulativeGasUsed) : void 0,
1845
+ gasUsed: isSet$1(object.gasUsed) ? U128.fromJSON(object.gasUsed) : void 0,
1770
1846
  effectiveGasPrice: isSet$1(object.effectiveGasPrice) ? U128.fromJSON(object.effectiveGasPrice) : void 0,
1771
1847
  from: isSet$1(object.from) ? Address.fromJSON(object.from) : void 0,
1772
1848
  to: isSet$1(object.to) ? Address.fromJSON(object.to) : void 0,
1773
1849
  contractAddress: isSet$1(object.contractAddress) ? Address.fromJSON(object.contractAddress) : void 0,
1774
1850
  logsBloom: isSet$1(object.logsBloom) ? Bloom$1.fromJSON(object.logsBloom) : void 0,
1775
- statusCode: isSet$1(object.statusCode) ? BigInt(object.statusCode) : BigInt("0"),
1776
1851
  transactionType: isSet$1(object.transactionType) ? BigInt(object.transactionType) : BigInt("0"),
1777
1852
  blobGasUsed: isSet$1(object.blobGasUsed) ? U128.fromJSON(object.blobGasUsed) : void 0,
1778
- blobGasPrice: isSet$1(object.blobGasPrice) ? U128.fromJSON(object.blobGasPrice) : void 0
1853
+ blobGasPrice: isSet$1(object.blobGasPrice) ? U128.fromJSON(object.blobGasPrice) : void 0,
1854
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
1779
1855
  };
1780
1856
  },
1781
1857
  toJSON(message) {
1782
1858
  const obj = {};
1859
+ if (message.filterIds?.length) {
1860
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1861
+ }
1862
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
1863
+ obj.transactionIndex = Math.round(message.transactionIndex);
1864
+ }
1783
1865
  if (message.transactionHash !== void 0) {
1784
1866
  obj.transactionHash = B256.toJSON(message.transactionHash);
1785
1867
  }
1786
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1787
- obj.transactionIndex = message.transactionIndex.toString();
1788
- }
1789
1868
  if (message.cumulativeGasUsed !== void 0) {
1790
- obj.cumulativeGasUsed = U256.toJSON(message.cumulativeGasUsed);
1869
+ obj.cumulativeGasUsed = U128.toJSON(message.cumulativeGasUsed);
1791
1870
  }
1792
1871
  if (message.gasUsed !== void 0) {
1793
- obj.gasUsed = U256.toJSON(message.gasUsed);
1872
+ obj.gasUsed = U128.toJSON(message.gasUsed);
1794
1873
  }
1795
1874
  if (message.effectiveGasPrice !== void 0) {
1796
1875
  obj.effectiveGasPrice = U128.toJSON(message.effectiveGasPrice);
@@ -1807,9 +1886,6 @@ const TransactionReceipt$1 = {
1807
1886
  if (message.logsBloom !== void 0) {
1808
1887
  obj.logsBloom = Bloom$1.toJSON(message.logsBloom);
1809
1888
  }
1810
- if (message.statusCode !== void 0 && message.statusCode !== BigInt("0")) {
1811
- obj.statusCode = message.statusCode.toString();
1812
- }
1813
1889
  if (message.transactionType !== void 0 && message.transactionType !== BigInt("0")) {
1814
1890
  obj.transactionType = message.transactionType.toString();
1815
1891
  }
@@ -1819,6 +1895,9 @@ const TransactionReceipt$1 = {
1819
1895
  if (message.blobGasPrice !== void 0) {
1820
1896
  obj.blobGasPrice = U128.toJSON(message.blobGasPrice);
1821
1897
  }
1898
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1899
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1900
+ }
1822
1901
  return obj;
1823
1902
  },
1824
1903
  create(base) {
@@ -1826,59 +1905,66 @@ const TransactionReceipt$1 = {
1826
1905
  },
1827
1906
  fromPartial(object) {
1828
1907
  const message = createBaseTransactionReceipt();
1908
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1909
+ message.transactionIndex = object.transactionIndex ?? 0;
1829
1910
  message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? B256.fromPartial(object.transactionHash) : void 0;
1830
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
1831
- message.cumulativeGasUsed = object.cumulativeGasUsed !== void 0 && object.cumulativeGasUsed !== null ? U256.fromPartial(object.cumulativeGasUsed) : void 0;
1832
- message.gasUsed = object.gasUsed !== void 0 && object.gasUsed !== null ? U256.fromPartial(object.gasUsed) : void 0;
1911
+ message.cumulativeGasUsed = object.cumulativeGasUsed !== void 0 && object.cumulativeGasUsed !== null ? U128.fromPartial(object.cumulativeGasUsed) : void 0;
1912
+ message.gasUsed = object.gasUsed !== void 0 && object.gasUsed !== null ? U128.fromPartial(object.gasUsed) : void 0;
1833
1913
  message.effectiveGasPrice = object.effectiveGasPrice !== void 0 && object.effectiveGasPrice !== null ? U128.fromPartial(object.effectiveGasPrice) : void 0;
1834
1914
  message.from = object.from !== void 0 && object.from !== null ? Address.fromPartial(object.from) : void 0;
1835
1915
  message.to = object.to !== void 0 && object.to !== null ? Address.fromPartial(object.to) : void 0;
1836
1916
  message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? Address.fromPartial(object.contractAddress) : void 0;
1837
1917
  message.logsBloom = object.logsBloom !== void 0 && object.logsBloom !== null ? Bloom$1.fromPartial(object.logsBloom) : void 0;
1838
- message.statusCode = object.statusCode ?? BigInt("0");
1839
1918
  message.transactionType = object.transactionType ?? BigInt("0");
1840
1919
  message.blobGasUsed = object.blobGasUsed !== void 0 && object.blobGasUsed !== null ? U128.fromPartial(object.blobGasUsed) : void 0;
1841
1920
  message.blobGasPrice = object.blobGasPrice !== void 0 && object.blobGasPrice !== null ? U128.fromPartial(object.blobGasPrice) : void 0;
1921
+ message.transactionStatus = object.transactionStatus ?? 0;
1842
1922
  return message;
1843
1923
  }
1844
1924
  };
1845
1925
  function createBaseLog() {
1846
1926
  return {
1927
+ filterIds: [],
1928
+ logIndex: 0,
1847
1929
  address: void 0,
1848
1930
  topics: [],
1849
1931
  data: new Uint8Array(0),
1850
- logIndex: BigInt("0"),
1851
- transactionIndex: BigInt("0"),
1852
- transactionHash: void 0
1932
+ transactionIndex: 0,
1933
+ transactionHash: void 0,
1934
+ transactionStatus: 0
1853
1935
  };
1854
1936
  }
1855
1937
  const Log$1 = {
1856
1938
  encode(message, writer = _m0.Writer.create()) {
1939
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
1940
+ writer.uint32(10).fork();
1941
+ for (const v of message.filterIds) {
1942
+ writer.uint32(v);
1943
+ }
1944
+ writer.ldelim();
1945
+ }
1946
+ if (message.logIndex !== void 0 && message.logIndex !== 0) {
1947
+ writer.uint32(16).uint32(message.logIndex);
1948
+ }
1857
1949
  if (message.address !== void 0) {
1858
- Address.encode(message.address, writer.uint32(10).fork()).ldelim();
1950
+ Address.encode(message.address, writer.uint32(26).fork()).ldelim();
1859
1951
  }
1860
1952
  if (message.topics !== void 0 && message.topics.length !== 0) {
1861
1953
  for (const v of message.topics) {
1862
- B256.encode(v, writer.uint32(18).fork()).ldelim();
1954
+ B256.encode(v, writer.uint32(34).fork()).ldelim();
1863
1955
  }
1864
1956
  }
1865
1957
  if (message.data !== void 0 && message.data.length !== 0) {
1866
- writer.uint32(26).bytes(message.data);
1958
+ writer.uint32(42).bytes(message.data);
1867
1959
  }
1868
- if (message.logIndex !== void 0 && message.logIndex !== BigInt("0")) {
1869
- if (BigInt.asUintN(64, message.logIndex) !== message.logIndex) {
1870
- throw new globalThis.Error("value provided for field message.logIndex of type uint64 too large");
1871
- }
1872
- writer.uint32(32).uint64(message.logIndex.toString());
1873
- }
1874
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1875
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1876
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1877
- }
1878
- writer.uint32(40).uint64(message.transactionIndex.toString());
1960
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
1961
+ writer.uint32(48).uint32(message.transactionIndex);
1879
1962
  }
1880
1963
  if (message.transactionHash !== void 0) {
1881
- B256.encode(message.transactionHash, writer.uint32(50).fork()).ldelim();
1964
+ B256.encode(message.transactionHash, writer.uint32(58).fork()).ldelim();
1965
+ }
1966
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1967
+ writer.uint32(64).int32(message.transactionStatus);
1882
1968
  }
1883
1969
  return writer;
1884
1970
  },
@@ -1890,41 +1976,60 @@ const Log$1 = {
1890
1976
  const tag = reader.uint32();
1891
1977
  switch (tag >>> 3) {
1892
1978
  case 1:
1893
- if (tag !== 10) {
1894
- break;
1895
- }
1896
- message.address = Address.decode(reader, reader.uint32());
1897
- continue;
1979
+ if (tag === 8) {
1980
+ message.filterIds.push(reader.uint32());
1981
+ continue;
1982
+ }
1983
+ if (tag === 10) {
1984
+ const end2 = reader.uint32() + reader.pos;
1985
+ while (reader.pos < end2) {
1986
+ message.filterIds.push(reader.uint32());
1987
+ }
1988
+ continue;
1989
+ }
1990
+ break;
1898
1991
  case 2:
1899
- if (tag !== 18) {
1992
+ if (tag !== 16) {
1900
1993
  break;
1901
1994
  }
1902
- message.topics.push(B256.decode(reader, reader.uint32()));
1995
+ message.logIndex = reader.uint32();
1903
1996
  continue;
1904
1997
  case 3:
1905
1998
  if (tag !== 26) {
1906
1999
  break;
1907
2000
  }
1908
- message.data = reader.bytes();
2001
+ message.address = Address.decode(reader, reader.uint32());
1909
2002
  continue;
1910
2003
  case 4:
1911
- if (tag !== 32) {
2004
+ if (tag !== 34) {
1912
2005
  break;
1913
2006
  }
1914
- message.logIndex = longToBigint$1(reader.uint64());
2007
+ message.topics.push(B256.decode(reader, reader.uint32()));
1915
2008
  continue;
1916
2009
  case 5:
1917
- if (tag !== 40) {
2010
+ if (tag !== 42) {
1918
2011
  break;
1919
2012
  }
1920
- message.transactionIndex = longToBigint$1(reader.uint64());
2013
+ message.data = reader.bytes();
1921
2014
  continue;
1922
2015
  case 6:
1923
- if (tag !== 50) {
2016
+ if (tag !== 48) {
2017
+ break;
2018
+ }
2019
+ message.transactionIndex = reader.uint32();
2020
+ continue;
2021
+ case 7:
2022
+ if (tag !== 58) {
1924
2023
  break;
1925
2024
  }
1926
2025
  message.transactionHash = B256.decode(reader, reader.uint32());
1927
2026
  continue;
2027
+ case 8:
2028
+ if (tag !== 64) {
2029
+ break;
2030
+ }
2031
+ message.transactionStatus = reader.int32();
2032
+ continue;
1928
2033
  }
1929
2034
  if ((tag & 7) === 4 || tag === 0) {
1930
2035
  break;
@@ -1935,16 +2040,24 @@ const Log$1 = {
1935
2040
  },
1936
2041
  fromJSON(object) {
1937
2042
  return {
2043
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
2044
+ logIndex: isSet$1(object.logIndex) ? globalThis.Number(object.logIndex) : 0,
1938
2045
  address: isSet$1(object.address) ? Address.fromJSON(object.address) : void 0,
1939
2046
  topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e) => B256.fromJSON(e)) : [],
1940
2047
  data: isSet$1(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
1941
- logIndex: isSet$1(object.logIndex) ? BigInt(object.logIndex) : BigInt("0"),
1942
- transactionIndex: isSet$1(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1943
- transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0
2048
+ transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
2049
+ transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0,
2050
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
1944
2051
  };
1945
2052
  },
1946
2053
  toJSON(message) {
1947
2054
  const obj = {};
2055
+ if (message.filterIds?.length) {
2056
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
2057
+ }
2058
+ if (message.logIndex !== void 0 && message.logIndex !== 0) {
2059
+ obj.logIndex = Math.round(message.logIndex);
2060
+ }
1948
2061
  if (message.address !== void 0) {
1949
2062
  obj.address = Address.toJSON(message.address);
1950
2063
  }
@@ -1954,15 +2067,15 @@ const Log$1 = {
1954
2067
  if (message.data !== void 0 && message.data.length !== 0) {
1955
2068
  obj.data = base64FromBytes(message.data);
1956
2069
  }
1957
- if (message.logIndex !== void 0 && message.logIndex !== BigInt("0")) {
1958
- obj.logIndex = message.logIndex.toString();
1959
- }
1960
- if (message.transactionIndex !== void 0 && message.transactionIndex !== BigInt("0")) {
1961
- obj.transactionIndex = message.transactionIndex.toString();
2070
+ if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
2071
+ obj.transactionIndex = Math.round(message.transactionIndex);
1962
2072
  }
1963
2073
  if (message.transactionHash !== void 0) {
1964
2074
  obj.transactionHash = B256.toJSON(message.transactionHash);
1965
2075
  }
2076
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
2077
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
2078
+ }
1966
2079
  return obj;
1967
2080
  },
1968
2081
  create(base) {
@@ -1970,17 +2083,19 @@ const Log$1 = {
1970
2083
  },
1971
2084
  fromPartial(object) {
1972
2085
  const message = createBaseLog();
2086
+ message.filterIds = object.filterIds?.map((e) => e) || [];
2087
+ message.logIndex = object.logIndex ?? 0;
1973
2088
  message.address = object.address !== void 0 && object.address !== null ? Address.fromPartial(object.address) : void 0;
1974
2089
  message.topics = object.topics?.map((e) => B256.fromPartial(e)) || [];
1975
2090
  message.data = object.data ?? new Uint8Array(0);
1976
- message.logIndex = object.logIndex ?? BigInt("0");
1977
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
2091
+ message.transactionIndex = object.transactionIndex ?? 0;
1978
2092
  message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? B256.fromPartial(object.transactionHash) : void 0;
2093
+ message.transactionStatus = object.transactionStatus ?? 0;
1979
2094
  return message;
1980
2095
  }
1981
2096
  };
1982
2097
  function createBaseSignature() {
1983
- return { r: void 0, s: void 0, v: void 0, yParity: false };
2098
+ return { r: void 0, s: void 0, v: void 0, yParity: void 0 };
1984
2099
  }
1985
2100
  const Signature$1 = {
1986
2101
  encode(message, writer = _m0.Writer.create()) {
@@ -1993,7 +2108,7 @@ const Signature$1 = {
1993
2108
  if (message.v !== void 0) {
1994
2109
  U256.encode(message.v, writer.uint32(26).fork()).ldelim();
1995
2110
  }
1996
- if (message.yParity !== void 0 && message.yParity !== false) {
2111
+ if (message.yParity !== void 0) {
1997
2112
  writer.uint32(32).bool(message.yParity);
1998
2113
  }
1999
2114
  return writer;
@@ -2042,7 +2157,7 @@ const Signature$1 = {
2042
2157
  r: isSet$1(object.r) ? U256.fromJSON(object.r) : void 0,
2043
2158
  s: isSet$1(object.s) ? U256.fromJSON(object.s) : void 0,
2044
2159
  v: isSet$1(object.v) ? U256.fromJSON(object.v) : void 0,
2045
- yParity: isSet$1(object.yParity) ? globalThis.Boolean(object.yParity) : false
2160
+ yParity: isSet$1(object.yParity) ? globalThis.Boolean(object.yParity) : void 0
2046
2161
  };
2047
2162
  },
2048
2163
  toJSON(message) {
@@ -2056,7 +2171,7 @@ const Signature$1 = {
2056
2171
  if (message.v !== void 0) {
2057
2172
  obj.v = U256.toJSON(message.v);
2058
2173
  }
2059
- if (message.yParity !== void 0 && message.yParity !== false) {
2174
+ if (message.yParity !== void 0) {
2060
2175
  obj.yParity = message.yParity;
2061
2176
  }
2062
2177
  return obj;
@@ -2069,7 +2184,7 @@ const Signature$1 = {
2069
2184
  message.r = object.r !== void 0 && object.r !== null ? U256.fromPartial(object.r) : void 0;
2070
2185
  message.s = object.s !== void 0 && object.s !== null ? U256.fromPartial(object.s) : void 0;
2071
2186
  message.v = object.v !== void 0 && object.v !== null ? U256.fromPartial(object.v) : void 0;
2072
- message.yParity = object.yParity ?? false;
2187
+ message.yParity = object.yParity ?? void 0;
2073
2188
  return message;
2074
2189
  }
2075
2190
  };
@@ -2183,7 +2298,7 @@ function fromJsonTimestamp(o) {
2183
2298
  return fromTimestamp(Timestamp.fromJSON(o));
2184
2299
  }
2185
2300
  }
2186
- function longToBigint$1(long) {
2301
+ function longToBigint(long) {
2187
2302
  return BigInt(long.toString());
2188
2303
  }
2189
2304
  if (_m0.util.Long !== Long) {
@@ -2203,18 +2318,107 @@ const data = {
2203
2318
  Signature: Signature$1,
2204
2319
  Transaction: Transaction$1,
2205
2320
  TransactionReceipt: TransactionReceipt$1,
2321
+ TransactionStatus: TransactionStatus$1,
2206
2322
  Withdrawal: Withdrawal$1,
2207
- protobufPackage: protobufPackage$1
2323
+ protobufPackage: protobufPackage$1,
2324
+ transactionStatusFromJSON: transactionStatusFromJSON,
2325
+ transactionStatusToJSON: transactionStatusToJSON
2208
2326
  };
2209
2327
 
2210
2328
  const protobufPackage = "evm.v2";
2329
+ var HeaderFilter$1 = /* @__PURE__ */ ((HeaderFilter2) => {
2330
+ HeaderFilter2[HeaderFilter2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
2331
+ HeaderFilter2[HeaderFilter2["ALWAYS"] = 1] = "ALWAYS";
2332
+ HeaderFilter2[HeaderFilter2["ON_DATA"] = 2] = "ON_DATA";
2333
+ HeaderFilter2[HeaderFilter2["ON_DATA_OR_ON_NEW_BLOCK"] = 3] = "ON_DATA_OR_ON_NEW_BLOCK";
2334
+ HeaderFilter2[HeaderFilter2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2335
+ return HeaderFilter2;
2336
+ })(HeaderFilter$1 || {});
2337
+ function headerFilterFromJSON(object) {
2338
+ switch (object) {
2339
+ case 0:
2340
+ case "HEADER_FILTER_UNSPECIFIED":
2341
+ return 0 /* UNSPECIFIED */;
2342
+ case 1:
2343
+ case "HEADER_FILTER_ALWAYS":
2344
+ return 1 /* ALWAYS */;
2345
+ case 2:
2346
+ case "HEADER_FILTER_ON_DATA":
2347
+ return 2 /* ON_DATA */;
2348
+ case 3:
2349
+ case "HEADER_FILTER_ON_DATA_OR_ON_NEW_BLOCK":
2350
+ return 3 /* ON_DATA_OR_ON_NEW_BLOCK */;
2351
+ case -1:
2352
+ case "UNRECOGNIZED":
2353
+ default:
2354
+ return -1 /* UNRECOGNIZED */;
2355
+ }
2356
+ }
2357
+ function headerFilterToJSON(object) {
2358
+ switch (object) {
2359
+ case 0 /* UNSPECIFIED */:
2360
+ return "HEADER_FILTER_UNSPECIFIED";
2361
+ case 1 /* ALWAYS */:
2362
+ return "HEADER_FILTER_ALWAYS";
2363
+ case 2 /* ON_DATA */:
2364
+ return "HEADER_FILTER_ON_DATA";
2365
+ case 3 /* ON_DATA_OR_ON_NEW_BLOCK */:
2366
+ return "HEADER_FILTER_ON_DATA_OR_ON_NEW_BLOCK";
2367
+ case -1 /* UNRECOGNIZED */:
2368
+ default:
2369
+ return "UNRECOGNIZED";
2370
+ }
2371
+ }
2372
+ var TransactionStatusFilter$1 = /* @__PURE__ */ ((TransactionStatusFilter2) => {
2373
+ TransactionStatusFilter2[TransactionStatusFilter2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
2374
+ TransactionStatusFilter2[TransactionStatusFilter2["SUCCEEDED"] = 1] = "SUCCEEDED";
2375
+ TransactionStatusFilter2[TransactionStatusFilter2["REVERTED"] = 2] = "REVERTED";
2376
+ TransactionStatusFilter2[TransactionStatusFilter2["ALL"] = 3] = "ALL";
2377
+ TransactionStatusFilter2[TransactionStatusFilter2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2378
+ return TransactionStatusFilter2;
2379
+ })(TransactionStatusFilter$1 || {});
2380
+ function transactionStatusFilterFromJSON(object) {
2381
+ switch (object) {
2382
+ case 0:
2383
+ case "TRANSACTION_STATUS_FILTER_UNSPECIFIED":
2384
+ return 0 /* UNSPECIFIED */;
2385
+ case 1:
2386
+ case "TRANSACTION_STATUS_FILTER_SUCCEEDED":
2387
+ return 1 /* SUCCEEDED */;
2388
+ case 2:
2389
+ case "TRANSACTION_STATUS_FILTER_REVERTED":
2390
+ return 2 /* REVERTED */;
2391
+ case 3:
2392
+ case "TRANSACTION_STATUS_FILTER_ALL":
2393
+ return 3 /* ALL */;
2394
+ case -1:
2395
+ case "UNRECOGNIZED":
2396
+ default:
2397
+ return -1 /* UNRECOGNIZED */;
2398
+ }
2399
+ }
2400
+ function transactionStatusFilterToJSON(object) {
2401
+ switch (object) {
2402
+ case 0 /* UNSPECIFIED */:
2403
+ return "TRANSACTION_STATUS_FILTER_UNSPECIFIED";
2404
+ case 1 /* SUCCEEDED */:
2405
+ return "TRANSACTION_STATUS_FILTER_SUCCEEDED";
2406
+ case 2 /* REVERTED */:
2407
+ return "TRANSACTION_STATUS_FILTER_REVERTED";
2408
+ case 3 /* ALL */:
2409
+ return "TRANSACTION_STATUS_FILTER_ALL";
2410
+ case -1 /* UNRECOGNIZED */:
2411
+ default:
2412
+ return "UNRECOGNIZED";
2413
+ }
2414
+ }
2211
2415
  function createBaseFilter() {
2212
- return { header: void 0, withdrawals: [], transactions: [], logs: [] };
2416
+ return { header: 0, withdrawals: [], transactions: [], logs: [] };
2213
2417
  }
2214
2418
  const Filter$1 = {
2215
2419
  encode(message, writer = _m0.Writer.create()) {
2216
- if (message.header !== void 0) {
2217
- HeaderFilter$1.encode(message.header, writer.uint32(10).fork()).ldelim();
2420
+ if (message.header !== void 0 && message.header !== 0) {
2421
+ writer.uint32(8).int32(message.header);
2218
2422
  }
2219
2423
  if (message.withdrawals !== void 0 && message.withdrawals.length !== 0) {
2220
2424
  for (const v of message.withdrawals) {
@@ -2241,10 +2445,10 @@ const Filter$1 = {
2241
2445
  const tag = reader.uint32();
2242
2446
  switch (tag >>> 3) {
2243
2447
  case 1:
2244
- if (tag !== 10) {
2448
+ if (tag !== 8) {
2245
2449
  break;
2246
2450
  }
2247
- message.header = HeaderFilter$1.decode(reader, reader.uint32());
2451
+ message.header = reader.int32();
2248
2452
  continue;
2249
2453
  case 2:
2250
2454
  if (tag !== 18) {
@@ -2274,7 +2478,7 @@ const Filter$1 = {
2274
2478
  },
2275
2479
  fromJSON(object) {
2276
2480
  return {
2277
- header: isSet(object.header) ? HeaderFilter$1.fromJSON(object.header) : void 0,
2481
+ header: isSet(object.header) ? headerFilterFromJSON(object.header) : 0,
2278
2482
  withdrawals: globalThis.Array.isArray(object?.withdrawals) ? object.withdrawals.map((e) => WithdrawalFilter$1.fromJSON(e)) : [],
2279
2483
  transactions: globalThis.Array.isArray(object?.transactions) ? object.transactions.map((e) => TransactionFilter$1.fromJSON(e)) : [],
2280
2484
  logs: globalThis.Array.isArray(object?.logs) ? object.logs.map((e) => LogFilter$1.fromJSON(e)) : []
@@ -2282,8 +2486,8 @@ const Filter$1 = {
2282
2486
  },
2283
2487
  toJSON(message) {
2284
2488
  const obj = {};
2285
- if (message.header !== void 0) {
2286
- obj.header = HeaderFilter$1.toJSON(message.header);
2489
+ if (message.header !== void 0 && message.header !== 0) {
2490
+ obj.header = headerFilterToJSON(message.header);
2287
2491
  }
2288
2492
  if (message.withdrawals?.length) {
2289
2493
  obj.withdrawals = message.withdrawals.map((e) => WithdrawalFilter$1.toJSON(e));
@@ -2301,76 +2505,26 @@ const Filter$1 = {
2301
2505
  },
2302
2506
  fromPartial(object) {
2303
2507
  const message = createBaseFilter();
2304
- message.header = object.header !== void 0 && object.header !== null ? HeaderFilter$1.fromPartial(object.header) : void 0;
2508
+ message.header = object.header ?? 0;
2305
2509
  message.withdrawals = object.withdrawals?.map((e) => WithdrawalFilter$1.fromPartial(e)) || [];
2306
2510
  message.transactions = object.transactions?.map((e) => TransactionFilter$1.fromPartial(e)) || [];
2307
2511
  message.logs = object.logs?.map((e) => LogFilter$1.fromPartial(e)) || [];
2308
2512
  return message;
2309
2513
  }
2310
2514
  };
2311
- function createBaseHeaderFilter() {
2312
- return { always: void 0 };
2313
- }
2314
- const HeaderFilter$1 = {
2315
- encode(message, writer = _m0.Writer.create()) {
2316
- if (message.always !== void 0) {
2317
- writer.uint32(8).bool(message.always);
2318
- }
2319
- return writer;
2320
- },
2321
- decode(input, length) {
2322
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2323
- let end = length === void 0 ? reader.len : reader.pos + length;
2324
- const message = createBaseHeaderFilter();
2325
- while (reader.pos < end) {
2326
- const tag = reader.uint32();
2327
- switch (tag >>> 3) {
2328
- case 1:
2329
- if (tag !== 8) {
2330
- break;
2331
- }
2332
- message.always = reader.bool();
2333
- continue;
2334
- }
2335
- if ((tag & 7) === 4 || tag === 0) {
2336
- break;
2337
- }
2338
- reader.skipType(tag & 7);
2339
- }
2340
- return message;
2341
- },
2342
- fromJSON(object) {
2343
- return { always: isSet(object.always) ? globalThis.Boolean(object.always) : void 0 };
2344
- },
2345
- toJSON(message) {
2346
- const obj = {};
2347
- if (message.always !== void 0) {
2348
- obj.always = message.always;
2349
- }
2350
- return obj;
2351
- },
2352
- create(base) {
2353
- return HeaderFilter$1.fromPartial(base ?? {});
2354
- },
2355
- fromPartial(object) {
2356
- const message = createBaseHeaderFilter();
2357
- message.always = object.always ?? void 0;
2358
- return message;
2359
- }
2360
- };
2361
2515
  function createBaseWithdrawalFilter() {
2362
- return { validatorIndex: void 0, address: void 0 };
2516
+ return { id: 0, validatorIndex: void 0, address: void 0 };
2363
2517
  }
2364
2518
  const WithdrawalFilter$1 = {
2365
2519
  encode(message, writer = _m0.Writer.create()) {
2520
+ if (message.id !== void 0 && message.id !== 0) {
2521
+ writer.uint32(8).uint32(message.id);
2522
+ }
2366
2523
  if (message.validatorIndex !== void 0) {
2367
- if (BigInt.asUintN(64, message.validatorIndex) !== message.validatorIndex) {
2368
- throw new globalThis.Error("value provided for field message.validatorIndex of type uint64 too large");
2369
- }
2370
- writer.uint32(8).uint64(message.validatorIndex.toString());
2524
+ writer.uint32(16).uint32(message.validatorIndex);
2371
2525
  }
2372
2526
  if (message.address !== void 0) {
2373
- Address.encode(message.address, writer.uint32(18).fork()).ldelim();
2527
+ Address.encode(message.address, writer.uint32(26).fork()).ldelim();
2374
2528
  }
2375
2529
  return writer;
2376
2530
  },
@@ -2385,10 +2539,16 @@ const WithdrawalFilter$1 = {
2385
2539
  if (tag !== 8) {
2386
2540
  break;
2387
2541
  }
2388
- message.validatorIndex = longToBigint(reader.uint64());
2542
+ message.id = reader.uint32();
2389
2543
  continue;
2390
2544
  case 2:
2391
- if (tag !== 18) {
2545
+ if (tag !== 16) {
2546
+ break;
2547
+ }
2548
+ message.validatorIndex = reader.uint32();
2549
+ continue;
2550
+ case 3:
2551
+ if (tag !== 26) {
2392
2552
  break;
2393
2553
  }
2394
2554
  message.address = Address.decode(reader, reader.uint32());
@@ -2403,14 +2563,18 @@ const WithdrawalFilter$1 = {
2403
2563
  },
2404
2564
  fromJSON(object) {
2405
2565
  return {
2406
- validatorIndex: isSet(object.validatorIndex) ? BigInt(object.validatorIndex) : void 0,
2566
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
2567
+ validatorIndex: isSet(object.validatorIndex) ? globalThis.Number(object.validatorIndex) : void 0,
2407
2568
  address: isSet(object.address) ? Address.fromJSON(object.address) : void 0
2408
2569
  };
2409
2570
  },
2410
2571
  toJSON(message) {
2411
2572
  const obj = {};
2573
+ if (message.id !== void 0 && message.id !== 0) {
2574
+ obj.id = Math.round(message.id);
2575
+ }
2412
2576
  if (message.validatorIndex !== void 0) {
2413
- obj.validatorIndex = message.validatorIndex.toString();
2577
+ obj.validatorIndex = Math.round(message.validatorIndex);
2414
2578
  }
2415
2579
  if (message.address !== void 0) {
2416
2580
  obj.address = Address.toJSON(message.address);
@@ -2422,27 +2586,45 @@ const WithdrawalFilter$1 = {
2422
2586
  },
2423
2587
  fromPartial(object) {
2424
2588
  const message = createBaseWithdrawalFilter();
2589
+ message.id = object.id ?? 0;
2425
2590
  message.validatorIndex = object.validatorIndex ?? void 0;
2426
2591
  message.address = object.address !== void 0 && object.address !== null ? Address.fromPartial(object.address) : void 0;
2427
2592
  return message;
2428
2593
  }
2429
2594
  };
2430
2595
  function createBaseTransactionFilter() {
2431
- return { from: void 0, to: void 0, includeReceipt: void 0, includeLogs: void 0 };
2596
+ return {
2597
+ id: 0,
2598
+ from: void 0,
2599
+ to: void 0,
2600
+ create: void 0,
2601
+ transactionStatus: void 0,
2602
+ includeReceipt: void 0,
2603
+ includeLogs: void 0
2604
+ };
2432
2605
  }
2433
2606
  const TransactionFilter$1 = {
2434
2607
  encode(message, writer = _m0.Writer.create()) {
2608
+ if (message.id !== void 0 && message.id !== 0) {
2609
+ writer.uint32(8).uint32(message.id);
2610
+ }
2435
2611
  if (message.from !== void 0) {
2436
- Address.encode(message.from, writer.uint32(10).fork()).ldelim();
2612
+ Address.encode(message.from, writer.uint32(18).fork()).ldelim();
2437
2613
  }
2438
2614
  if (message.to !== void 0) {
2439
- Address.encode(message.to, writer.uint32(18).fork()).ldelim();
2615
+ Address.encode(message.to, writer.uint32(26).fork()).ldelim();
2616
+ }
2617
+ if (message.create !== void 0) {
2618
+ writer.uint32(32).bool(message.create);
2619
+ }
2620
+ if (message.transactionStatus !== void 0) {
2621
+ writer.uint32(40).int32(message.transactionStatus);
2440
2622
  }
2441
2623
  if (message.includeReceipt !== void 0) {
2442
- writer.uint32(24).bool(message.includeReceipt);
2624
+ writer.uint32(48).bool(message.includeReceipt);
2443
2625
  }
2444
2626
  if (message.includeLogs !== void 0) {
2445
- writer.uint32(32).bool(message.includeLogs);
2627
+ writer.uint32(56).bool(message.includeLogs);
2446
2628
  }
2447
2629
  return writer;
2448
2630
  },
@@ -2454,27 +2636,45 @@ const TransactionFilter$1 = {
2454
2636
  const tag = reader.uint32();
2455
2637
  switch (tag >>> 3) {
2456
2638
  case 1:
2457
- if (tag !== 10) {
2639
+ if (tag !== 8) {
2458
2640
  break;
2459
2641
  }
2460
- message.from = Address.decode(reader, reader.uint32());
2642
+ message.id = reader.uint32();
2461
2643
  continue;
2462
2644
  case 2:
2463
2645
  if (tag !== 18) {
2464
2646
  break;
2465
2647
  }
2466
- message.to = Address.decode(reader, reader.uint32());
2648
+ message.from = Address.decode(reader, reader.uint32());
2467
2649
  continue;
2468
2650
  case 3:
2469
- if (tag !== 24) {
2651
+ if (tag !== 26) {
2470
2652
  break;
2471
2653
  }
2472
- message.includeReceipt = reader.bool();
2654
+ message.to = Address.decode(reader, reader.uint32());
2473
2655
  continue;
2474
2656
  case 4:
2475
2657
  if (tag !== 32) {
2476
2658
  break;
2477
2659
  }
2660
+ message.create = reader.bool();
2661
+ continue;
2662
+ case 5:
2663
+ if (tag !== 40) {
2664
+ break;
2665
+ }
2666
+ message.transactionStatus = reader.int32();
2667
+ continue;
2668
+ case 6:
2669
+ if (tag !== 48) {
2670
+ break;
2671
+ }
2672
+ message.includeReceipt = reader.bool();
2673
+ continue;
2674
+ case 7:
2675
+ if (tag !== 56) {
2676
+ break;
2677
+ }
2478
2678
  message.includeLogs = reader.bool();
2479
2679
  continue;
2480
2680
  }
@@ -2487,20 +2687,32 @@ const TransactionFilter$1 = {
2487
2687
  },
2488
2688
  fromJSON(object) {
2489
2689
  return {
2690
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
2490
2691
  from: isSet(object.from) ? Address.fromJSON(object.from) : void 0,
2491
2692
  to: isSet(object.to) ? Address.fromJSON(object.to) : void 0,
2693
+ create: isSet(object.create) ? globalThis.Boolean(object.create) : void 0,
2694
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFilterFromJSON(object.transactionStatus) : void 0,
2492
2695
  includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0,
2493
2696
  includeLogs: isSet(object.includeLogs) ? globalThis.Boolean(object.includeLogs) : void 0
2494
2697
  };
2495
2698
  },
2496
2699
  toJSON(message) {
2497
2700
  const obj = {};
2701
+ if (message.id !== void 0 && message.id !== 0) {
2702
+ obj.id = Math.round(message.id);
2703
+ }
2498
2704
  if (message.from !== void 0) {
2499
2705
  obj.from = Address.toJSON(message.from);
2500
2706
  }
2501
2707
  if (message.to !== void 0) {
2502
2708
  obj.to = Address.toJSON(message.to);
2503
2709
  }
2710
+ if (message.create !== void 0) {
2711
+ obj.create = message.create;
2712
+ }
2713
+ if (message.transactionStatus !== void 0) {
2714
+ obj.transactionStatus = transactionStatusFilterToJSON(message.transactionStatus);
2715
+ }
2504
2716
  if (message.includeReceipt !== void 0) {
2505
2717
  obj.includeReceipt = message.includeReceipt;
2506
2718
  }
@@ -2514,8 +2726,11 @@ const TransactionFilter$1 = {
2514
2726
  },
2515
2727
  fromPartial(object) {
2516
2728
  const message = createBaseTransactionFilter();
2729
+ message.id = object.id ?? 0;
2517
2730
  message.from = object.from !== void 0 && object.from !== null ? Address.fromPartial(object.from) : void 0;
2518
2731
  message.to = object.to !== void 0 && object.to !== null ? Address.fromPartial(object.to) : void 0;
2732
+ message.create = object.create ?? void 0;
2733
+ message.transactionStatus = object.transactionStatus ?? void 0;
2519
2734
  message.includeReceipt = object.includeReceipt ?? void 0;
2520
2735
  message.includeLogs = object.includeLogs ?? void 0;
2521
2736
  return message;
@@ -2523,31 +2738,43 @@ const TransactionFilter$1 = {
2523
2738
  };
2524
2739
  function createBaseLogFilter() {
2525
2740
  return {
2741
+ id: 0,
2526
2742
  address: void 0,
2527
2743
  topics: [],
2528
2744
  strict: void 0,
2745
+ transactionStatus: void 0,
2529
2746
  includeTransaction: void 0,
2530
- includeReceipt: void 0
2747
+ includeReceipt: void 0,
2748
+ includeSiblings: void 0
2531
2749
  };
2532
2750
  }
2533
2751
  const LogFilter$1 = {
2534
2752
  encode(message, writer = _m0.Writer.create()) {
2753
+ if (message.id !== void 0 && message.id !== 0) {
2754
+ writer.uint32(8).uint32(message.id);
2755
+ }
2535
2756
  if (message.address !== void 0) {
2536
- Address.encode(message.address, writer.uint32(10).fork()).ldelim();
2757
+ Address.encode(message.address, writer.uint32(18).fork()).ldelim();
2537
2758
  }
2538
2759
  if (message.topics !== void 0 && message.topics.length !== 0) {
2539
2760
  for (const v of message.topics) {
2540
- Topic$1.encode(v, writer.uint32(18).fork()).ldelim();
2761
+ Topic$1.encode(v, writer.uint32(26).fork()).ldelim();
2541
2762
  }
2542
2763
  }
2543
2764
  if (message.strict !== void 0) {
2544
- writer.uint32(24).bool(message.strict);
2765
+ writer.uint32(32).bool(message.strict);
2766
+ }
2767
+ if (message.transactionStatus !== void 0) {
2768
+ writer.uint32(40).int32(message.transactionStatus);
2545
2769
  }
2546
2770
  if (message.includeTransaction !== void 0) {
2547
- writer.uint32(32).bool(message.includeTransaction);
2771
+ writer.uint32(48).bool(message.includeTransaction);
2548
2772
  }
2549
2773
  if (message.includeReceipt !== void 0) {
2550
- writer.uint32(40).bool(message.includeReceipt);
2774
+ writer.uint32(56).bool(message.includeReceipt);
2775
+ }
2776
+ if (message.includeSiblings !== void 0) {
2777
+ writer.uint32(64).bool(message.includeSiblings);
2551
2778
  }
2552
2779
  return writer;
2553
2780
  },
@@ -2559,35 +2786,53 @@ const LogFilter$1 = {
2559
2786
  const tag = reader.uint32();
2560
2787
  switch (tag >>> 3) {
2561
2788
  case 1:
2562
- if (tag !== 10) {
2789
+ if (tag !== 8) {
2563
2790
  break;
2564
2791
  }
2565
- message.address = Address.decode(reader, reader.uint32());
2792
+ message.id = reader.uint32();
2566
2793
  continue;
2567
2794
  case 2:
2568
2795
  if (tag !== 18) {
2569
2796
  break;
2570
2797
  }
2571
- message.topics.push(Topic$1.decode(reader, reader.uint32()));
2798
+ message.address = Address.decode(reader, reader.uint32());
2572
2799
  continue;
2573
2800
  case 3:
2574
- if (tag !== 24) {
2801
+ if (tag !== 26) {
2575
2802
  break;
2576
2803
  }
2577
- message.strict = reader.bool();
2804
+ message.topics.push(Topic$1.decode(reader, reader.uint32()));
2578
2805
  continue;
2579
2806
  case 4:
2580
2807
  if (tag !== 32) {
2581
2808
  break;
2582
2809
  }
2583
- message.includeTransaction = reader.bool();
2810
+ message.strict = reader.bool();
2584
2811
  continue;
2585
2812
  case 5:
2586
2813
  if (tag !== 40) {
2587
2814
  break;
2588
2815
  }
2816
+ message.transactionStatus = reader.int32();
2817
+ continue;
2818
+ case 6:
2819
+ if (tag !== 48) {
2820
+ break;
2821
+ }
2822
+ message.includeTransaction = reader.bool();
2823
+ continue;
2824
+ case 7:
2825
+ if (tag !== 56) {
2826
+ break;
2827
+ }
2589
2828
  message.includeReceipt = reader.bool();
2590
2829
  continue;
2830
+ case 8:
2831
+ if (tag !== 64) {
2832
+ break;
2833
+ }
2834
+ message.includeSiblings = reader.bool();
2835
+ continue;
2591
2836
  }
2592
2837
  if ((tag & 7) === 4 || tag === 0) {
2593
2838
  break;
@@ -2598,15 +2843,21 @@ const LogFilter$1 = {
2598
2843
  },
2599
2844
  fromJSON(object) {
2600
2845
  return {
2846
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
2601
2847
  address: isSet(object.address) ? Address.fromJSON(object.address) : void 0,
2602
2848
  topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e) => Topic$1.fromJSON(e)) : [],
2603
2849
  strict: isSet(object.strict) ? globalThis.Boolean(object.strict) : void 0,
2850
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFilterFromJSON(object.transactionStatus) : void 0,
2604
2851
  includeTransaction: isSet(object.includeTransaction) ? globalThis.Boolean(object.includeTransaction) : void 0,
2605
- includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0
2852
+ includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0,
2853
+ includeSiblings: isSet(object.includeSiblings) ? globalThis.Boolean(object.includeSiblings) : void 0
2606
2854
  };
2607
2855
  },
2608
2856
  toJSON(message) {
2609
2857
  const obj = {};
2858
+ if (message.id !== void 0 && message.id !== 0) {
2859
+ obj.id = Math.round(message.id);
2860
+ }
2610
2861
  if (message.address !== void 0) {
2611
2862
  obj.address = Address.toJSON(message.address);
2612
2863
  }
@@ -2616,12 +2867,18 @@ const LogFilter$1 = {
2616
2867
  if (message.strict !== void 0) {
2617
2868
  obj.strict = message.strict;
2618
2869
  }
2870
+ if (message.transactionStatus !== void 0) {
2871
+ obj.transactionStatus = transactionStatusFilterToJSON(message.transactionStatus);
2872
+ }
2619
2873
  if (message.includeTransaction !== void 0) {
2620
2874
  obj.includeTransaction = message.includeTransaction;
2621
2875
  }
2622
2876
  if (message.includeReceipt !== void 0) {
2623
2877
  obj.includeReceipt = message.includeReceipt;
2624
2878
  }
2879
+ if (message.includeSiblings !== void 0) {
2880
+ obj.includeSiblings = message.includeSiblings;
2881
+ }
2625
2882
  return obj;
2626
2883
  },
2627
2884
  create(base) {
@@ -2629,11 +2886,14 @@ const LogFilter$1 = {
2629
2886
  },
2630
2887
  fromPartial(object) {
2631
2888
  const message = createBaseLogFilter();
2889
+ message.id = object.id ?? 0;
2632
2890
  message.address = object.address !== void 0 && object.address !== null ? Address.fromPartial(object.address) : void 0;
2633
2891
  message.topics = object.topics?.map((e) => Topic$1.fromPartial(e)) || [];
2634
2892
  message.strict = object.strict ?? void 0;
2893
+ message.transactionStatus = object.transactionStatus ?? void 0;
2635
2894
  message.includeTransaction = object.includeTransaction ?? void 0;
2636
2895
  message.includeReceipt = object.includeReceipt ?? void 0;
2896
+ message.includeSiblings = object.includeSiblings ?? void 0;
2637
2897
  return message;
2638
2898
  }
2639
2899
  };
@@ -2687,13 +2947,6 @@ const Topic$1 = {
2687
2947
  return message;
2688
2948
  }
2689
2949
  };
2690
- function longToBigint(long) {
2691
- return BigInt(long.toString());
2692
- }
2693
- if (_m0.util.Long !== Long) {
2694
- _m0.util.Long = Long;
2695
- _m0.configure();
2696
- }
2697
2950
  function isSet(value) {
2698
2951
  return value !== null && value !== void 0;
2699
2952
  }
@@ -2705,8 +2958,13 @@ const filter = {
2705
2958
  LogFilter: LogFilter$1,
2706
2959
  Topic: Topic$1,
2707
2960
  TransactionFilter: TransactionFilter$1,
2961
+ TransactionStatusFilter: TransactionStatusFilter$1,
2708
2962
  WithdrawalFilter: WithdrawalFilter$1,
2709
- protobufPackage: protobufPackage
2963
+ headerFilterFromJSON: headerFilterFromJSON,
2964
+ headerFilterToJSON: headerFilterToJSON,
2965
+ protobufPackage: protobufPackage,
2966
+ transactionStatusFilterFromJSON: transactionStatusFilterFromJSON,
2967
+ transactionStatusFilterToJSON: transactionStatusFilterToJSON
2710
2968
  };
2711
2969
 
2712
2970
  const index = {
@@ -2716,7 +2974,7 @@ const index = {
2716
2974
  filter: filter
2717
2975
  };
2718
2976
 
2719
- const HexData = Schema.transform(
2977
+ const Bloom = Schema.transform(
2720
2978
  Schema.Struct({
2721
2979
  value: BytesFromUint8Array
2722
2980
  }),
@@ -2727,57 +2985,59 @@ const HexData = Schema.transform(
2727
2985
  throw new Error("Not implemented");
2728
2986
  },
2729
2987
  decode({ value }) {
2730
- throw new Error("Not implemented");
2988
+ return value;
2731
2989
  }
2732
2990
  }
2733
2991
  );
2734
- const Bloom = Schema.transform(
2735
- Schema.Struct({
2736
- value: BytesFromUint8Array
2737
- }),
2738
- Bytes,
2992
+ const TransactionStatus = Schema.transform(
2993
+ Schema.Enums(TransactionStatus$1),
2994
+ Schema.Literal("unknown", "succeeded", "reverted"),
2739
2995
  {
2740
- strict: false,
2741
- encode(value) {
2742
- throw new Error("Not implemented");
2996
+ decode(value) {
2997
+ const enumMap = {
2998
+ [TransactionStatus$1.SUCCEEDED]: "succeeded",
2999
+ [TransactionStatus$1.REVERTED]: "reverted",
3000
+ [TransactionStatus$1.UNSPECIFIED]: "unknown",
3001
+ [TransactionStatus$1.UNRECOGNIZED]: "unknown"
3002
+ };
3003
+ return enumMap[value] ?? "unknown";
2743
3004
  },
2744
- decode({ value }) {
2745
- throw new Error("Not implemented");
3005
+ encode(value) {
3006
+ throw new Error("encode: not implemented");
2746
3007
  }
2747
3008
  }
2748
3009
  );
2749
3010
  const BlockHeader = Schema.Struct({
2750
- number: Schema.BigIntFromSelf,
2751
- hash: Schema.optional(B256$1),
2752
- parentHash: Schema.optional(B256$1),
2753
- uncleHash: Schema.optional(B256$1),
3011
+ blockNumber: Schema.BigIntFromSelf,
3012
+ blockHash: Schema.optional(B256$1),
3013
+ parentBlockHash: Schema.optional(B256$1),
3014
+ unclesHash: Schema.optional(B256$1),
2754
3015
  miner: Schema.optional(Address$1),
2755
3016
  stateRoot: Schema.optional(B256$1),
2756
- transactionRoot: Schema.optional(B256$1),
2757
- receiptRoot: Schema.optional(B256$1),
3017
+ transactionsRoot: Schema.optional(B256$1),
3018
+ receiptsRoot: Schema.optional(B256$1),
2758
3019
  logsBloom: Schema.optional(Bloom),
2759
3020
  difficulty: Schema.optional(U256$1),
2760
- gasLimit: Schema.optional(U256$1),
2761
- gasUsed: Schema.optional(U256$1),
3021
+ gasLimit: Schema.optional(U128$1),
3022
+ gasUsed: Schema.optional(U128$1),
2762
3023
  timestamp: Schema.optional(Schema.DateFromSelf),
2763
- // extraData: Schema.optional(HexData),
3024
+ extraData: BytesFromUint8Array,
2764
3025
  mixHash: Schema.optional(B256$1),
2765
- nonce: Schema.BigIntFromSelf,
2766
- baseFeePerGas: Schema.optional(U256$1),
3026
+ nonce: Schema.optional(Schema.BigIntFromSelf),
3027
+ baseFeePerGas: Schema.optional(U128$1),
2767
3028
  withdrawalsRoot: Schema.optional(B256$1),
2768
3029
  totalDifficulty: Schema.optional(U256$1),
2769
- uncles: Schema.Array(B256$1),
2770
- size: Schema.optional(U256$1),
2771
- blobGasUsed: Schema.BigIntFromSelf,
2772
- excessBlobGas: Schema.BigIntFromSelf,
3030
+ blobGasUsed: Schema.optional(U128$1),
3031
+ excessBlobGas: Schema.optional(U128$1),
2773
3032
  parentBeaconBlockRoot: Schema.optional(B256$1)
2774
3033
  });
2775
3034
  const Withdrawal = Schema.Struct({
3035
+ filterIds: Schema.optional(Schema.Array(Schema.Number)),
3036
+ withdrawalIndex: Schema.Number,
2776
3037
  index: Schema.BigIntFromSelf,
2777
- validatorIndex: Schema.BigIntFromSelf,
2778
- withdrawalIndex: Schema.BigIntFromSelf,
3038
+ validatorIndex: Schema.Number,
2779
3039
  address: Schema.optional(Address$1),
2780
- amount: Schema.optional(U256$1)
3040
+ amount: Schema.optional(Schema.BigIntFromSelf)
2781
3041
  });
2782
3042
  const AccessListItem = Schema.Struct({
2783
3043
  address: Schema.optional(Address$1),
@@ -2790,48 +3050,51 @@ const Signature = Schema.Struct({
2790
3050
  YParity: Schema.optional(Schema.Boolean)
2791
3051
  });
2792
3052
  const Transaction = Schema.Struct({
2793
- hash: Schema.optional(B256$1),
2794
- nonce: Schema.BigIntFromSelf,
2795
- transactionIndex: Schema.BigIntFromSelf,
3053
+ filterIds: Schema.optional(Schema.Array(Schema.Number)),
3054
+ transactionIndex: Schema.Number,
3055
+ transactionHash: Schema.optional(B256$1),
3056
+ nonce: Schema.optional(Schema.BigIntFromSelf),
2796
3057
  from: Schema.optional(Address$1),
2797
3058
  to: Schema.optional(Address$1),
2798
3059
  value: Schema.optional(U256$1),
2799
3060
  gasPrice: Schema.optional(U128$1),
2800
- gas: Schema.optional(U256$1),
3061
+ gas: Schema.optional(U128$1),
2801
3062
  maxFeePerGas: Schema.optional(U128$1),
2802
3063
  maxPriorityFeePerGas: Schema.optional(U128$1),
2803
- // TODO
2804
- // input: Schema.optional(HexData),
3064
+ input: BytesFromUint8Array,
2805
3065
  signature: Schema.optional(Signature),
2806
- chainId: Schema.BigIntFromSelf,
3066
+ chainId: Schema.optional(Schema.BigIntFromSelf),
2807
3067
  accessList: Schema.Array(AccessListItem),
2808
- transactionType: Schema.BigIntFromSelf,
3068
+ transactionType: Schema.optional(Schema.BigIntFromSelf),
2809
3069
  maxFeePerBlobGas: Schema.optional(U128$1),
2810
- blobVersionedHashes: Schema.Array(B256$1)
3070
+ blobVersionedHashes: Schema.Array(B256$1),
3071
+ transactionStatus: Schema.optional(TransactionStatus)
2811
3072
  });
2812
3073
  const TransactionReceipt = Schema.Struct({
3074
+ filterIds: Schema.optional(Schema.Array(Schema.Number)),
3075
+ transactionIndex: Schema.optional(Schema.Number),
2813
3076
  transactionHash: Schema.optional(B256$1),
2814
- transactionIndex: Schema.BigIntFromSelf,
2815
- cumulativeGasUsed: Schema.optional(U256$1),
2816
- gasUsed: Schema.optional(U256$1),
3077
+ cumulativeGasUsed: Schema.optional(U128$1),
3078
+ gasUsed: Schema.optional(U128$1),
2817
3079
  effectiveGasPrice: Schema.optional(U128$1),
2818
3080
  from: Schema.optional(Address$1),
2819
3081
  to: Schema.optional(Address$1),
2820
3082
  contractAddress: Schema.optional(Address$1),
2821
3083
  logsBloom: Schema.optional(Bloom),
2822
- statusCode: Schema.BigIntFromSelf,
2823
- transactionType: Schema.BigIntFromSelf,
3084
+ transactionType: Schema.optional(Schema.BigIntFromSelf),
2824
3085
  blobGasUsed: Schema.optional(U128$1),
2825
- blobGasPrice: Schema.optional(U128$1)
3086
+ blobGasPrice: Schema.optional(U128$1),
3087
+ transactionStatus: Schema.optional(TransactionStatus)
2826
3088
  });
2827
3089
  const Log = Schema.Struct({
3090
+ filterIds: Schema.optional(Schema.Array(Schema.Number)),
2828
3091
  address: Schema.optional(Address$1),
2829
3092
  topics: Schema.Array(B256$1),
2830
- // TODO
2831
- // data: Bytes,
2832
- logIndex: Schema.BigIntFromSelf,
2833
- transactionIndex: Schema.BigIntFromSelf,
2834
- transactionHash: Schema.optional(B256$1)
3093
+ data: BytesFromUint8Array,
3094
+ logIndex: Schema.Number,
3095
+ transactionIndex: Schema.Number,
3096
+ transactionHash: Schema.optional(B256$1),
3097
+ transactionStatus: Schema.optional(TransactionStatus)
2835
3098
  });
2836
3099
  const Block = Schema.Struct({
2837
3100
  header: Schema.optional(BlockHeader),
@@ -2861,50 +3124,108 @@ const BlockFromBytes = Schema.transform(
2861
3124
  );
2862
3125
 
2863
3126
  const OptionalArray = (schema) => Schema.optional(Schema.Array(schema));
2864
- const HeaderFilter = Schema.Struct({
2865
- always: Schema.optional(Schema.Boolean)
2866
- });
3127
+ const HeaderFilter = Schema.transform(
3128
+ Schema.Enums(HeaderFilter$1),
3129
+ Schema.Literal("always", "on_data", "on_data_or_on_new_block", "unknown"),
3130
+ {
3131
+ decode(value) {
3132
+ const enumMap = {
3133
+ [HeaderFilter$1.ALWAYS]: "always",
3134
+ [HeaderFilter$1.ON_DATA]: "on_data",
3135
+ [HeaderFilter$1.ON_DATA_OR_ON_NEW_BLOCK]: "on_data_or_on_new_block",
3136
+ [HeaderFilter$1.UNSPECIFIED]: "unknown",
3137
+ [HeaderFilter$1.UNRECOGNIZED]: "unknown"
3138
+ };
3139
+ return enumMap[value] ?? "unknown";
3140
+ },
3141
+ encode(value) {
3142
+ switch (value) {
3143
+ case "always":
3144
+ return HeaderFilter$1.ALWAYS;
3145
+ case "on_data":
3146
+ return HeaderFilter$1.ON_DATA;
3147
+ case "on_data_or_on_new_block":
3148
+ return HeaderFilter$1.ON_DATA_OR_ON_NEW_BLOCK;
3149
+ default:
3150
+ return HeaderFilter$1.UNSPECIFIED;
3151
+ }
3152
+ }
3153
+ }
3154
+ );
2867
3155
  const WithdrawalFilter = Schema.Struct({
2868
- validatorIndex: Schema.optional(Schema.BigIntFromSelf),
3156
+ id: Schema.optional(Schema.Number),
3157
+ validatorIndex: Schema.optional(Schema.Number),
2869
3158
  address: Schema.optional(Address$1)
2870
3159
  });
3160
+ const TransactionStatusFilter = Schema.transform(
3161
+ Schema.Enums(TransactionStatusFilter$1),
3162
+ Schema.Literal("succeeded", "reverted", "all", "unknown"),
3163
+ {
3164
+ decode(value) {
3165
+ const enumMap = {
3166
+ [TransactionStatusFilter$1.SUCCEEDED]: "succeeded",
3167
+ [TransactionStatusFilter$1.REVERTED]: "reverted",
3168
+ [TransactionStatusFilter$1.ALL]: "all",
3169
+ [TransactionStatusFilter$1.UNSPECIFIED]: "unknown",
3170
+ [TransactionStatusFilter$1.UNRECOGNIZED]: "unknown"
3171
+ };
3172
+ return enumMap[value] ?? "unknown";
3173
+ },
3174
+ encode(value) {
3175
+ switch (value) {
3176
+ case "succeeded":
3177
+ return TransactionStatusFilter$1.SUCCEEDED;
3178
+ case "reverted":
3179
+ return TransactionStatusFilter$1.REVERTED;
3180
+ case "all":
3181
+ return TransactionStatusFilter$1.ALL;
3182
+ default:
3183
+ return TransactionStatusFilter$1.UNSPECIFIED;
3184
+ }
3185
+ }
3186
+ }
3187
+ );
2871
3188
  const Topic = Schema.transform(
2872
- Schema.Struct({ value: Schema.UndefinedOr(B256$1) }),
3189
+ Schema.Struct({ value: Schema.UndefinedOr(B256Proto) }),
2873
3190
  Schema.NullOr(B256$1),
2874
3191
  {
2875
- strict: false,
2876
3192
  decode({ value }) {
2877
3193
  if (value === void 0) {
2878
3194
  return null;
2879
3195
  }
2880
- return b256ToProto(value);
3196
+ return value;
2881
3197
  },
2882
3198
  encode(value) {
2883
3199
  if (value === null) {
2884
3200
  return { value: void 0 };
2885
3201
  }
2886
- return { value: b256FromProto(value) };
3202
+ return { value };
2887
3203
  }
2888
3204
  }
2889
3205
  );
2890
3206
  const LogFilter = Schema.Struct({
3207
+ id: Schema.optional(Schema.Number),
2891
3208
  address: Schema.optional(Address$1),
2892
3209
  topics: OptionalArray(Topic),
2893
3210
  strict: Schema.optional(Schema.Boolean),
3211
+ transactionStatus: Schema.optional(TransactionStatusFilter),
2894
3212
  includeTransaction: Schema.optional(Schema.Boolean),
2895
3213
  includeReceipt: Schema.optional(Schema.Boolean)
2896
3214
  });
2897
3215
  const TransactionFilter = Schema.Struct({
3216
+ id: Schema.optional(Schema.Number),
2898
3217
  from: Schema.optional(Address$1),
2899
3218
  to: Schema.optional(Address$1),
3219
+ create: Schema.optional(Schema.Boolean),
3220
+ transactionStatus: Schema.optional(TransactionStatusFilter),
2900
3221
  includeReceipt: Schema.optional(Schema.Boolean),
2901
3222
  includeLogs: Schema.optional(Schema.Boolean)
2902
3223
  });
2903
3224
  const Filter = Schema.Struct({
2904
3225
  header: Schema.optional(HeaderFilter),
2905
3226
  withdrawals: OptionalArray(WithdrawalFilter),
2906
- logs: OptionalArray(LogFilter),
2907
- transactions: OptionalArray(TransactionFilter)
3227
+ transactions: OptionalArray(TransactionFilter),
3228
+ logs: OptionalArray(LogFilter)
2908
3229
  });
2909
3230
  const filterToProto = Schema.encodeSync(Filter);
2910
3231
  const filterFromProto = Schema.decodeSync(Filter);
@@ -2939,9 +3260,13 @@ function mergeHeaderFilter(a, b) {
2939
3260
  if (b === void 0) {
2940
3261
  return a;
2941
3262
  }
2942
- return {
2943
- always: a.always || b.always
2944
- };
3263
+ if (a === "always" || b === "always") {
3264
+ return "always";
3265
+ }
3266
+ if (a === "on_data_or_on_new_block" || b === "on_data_or_on_new_block") {
3267
+ return "on_data_or_on_new_block";
3268
+ }
3269
+ return "on_data";
2945
3270
  }
2946
3271
 
2947
3272
  const EvmStream = new StreamConfig(
@@ -2950,4 +3275,4 @@ const EvmStream = new StreamConfig(
2950
3275
  mergeFilter
2951
3276
  );
2952
3277
 
2953
- export { AccessListItem, Address$1 as Address, B256$1 as B256, Block, BlockFromBytes, BlockHeader, Bloom, EvmStream, Filter, FilterFromBytes, HeaderFilter, HexData, Log, LogFilter, Signature, Topic, Transaction, TransactionFilter, TransactionReceipt, U128$1 as U128, U256$1 as U256, Withdrawal, WithdrawalFilter, b256FromProto, b256ToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, mergeFilter, index as proto, u128FromProto, u128ToProto, u256FromProto, u256ToProto };
3278
+ export { AccessListItem, Address$1 as Address, B256$1 as B256, B256Proto, Block, BlockFromBytes, BlockHeader, Bloom, EvmStream, Filter, FilterFromBytes, HeaderFilter, Log, LogFilter, Signature, Topic, Transaction, TransactionFilter, TransactionReceipt, TransactionStatus, TransactionStatusFilter, U128$1 as U128, U256$1 as U256, Withdrawal, WithdrawalFilter, b256FromProto, b256ToProto, filterFromBytes, filterFromProto, filterToBytes, filterToProto, mergeFilter, index as proto, u128FromProto, u128ToProto, u256FromProto, u256ToProto };