@apibara/evm 2.0.0 → 2.0.1-beta.0

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