@apibara/evm 2.0.0 → 2.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/proto/data.ts CHANGED
@@ -6,14 +6,53 @@
6
6
 
7
7
  /* eslint-disable */
8
8
  import Long from "long";
9
- import _m0 from "protobufjs/minimal";
10
- import { Address, B256, Bloom, U128, U256 } from "./common";
11
- import { Timestamp } from "./google/protobuf/timestamp";
9
+ import _m0 from "protobufjs/minimal.js";
10
+ import { Address, B256, Bloom, U128, U256 } from "./common.js";
11
+ import { Timestamp } from "./google/protobuf/timestamp.js";
12
12
 
13
13
  export const protobufPackage = "evm.v2";
14
14
 
15
15
  /** EVM DNA definitions (data). */
16
16
 
17
+ export enum TransactionStatus {
18
+ UNSPECIFIED = 0,
19
+ SUCCEEDED = 1,
20
+ REVERTED = 2,
21
+ UNRECOGNIZED = -1,
22
+ }
23
+
24
+ export function transactionStatusFromJSON(object: any): TransactionStatus {
25
+ switch (object) {
26
+ case 0:
27
+ case "TRANSACTION_STATUS_UNSPECIFIED":
28
+ return TransactionStatus.UNSPECIFIED;
29
+ case 1:
30
+ case "TRANSACTION_STATUS_SUCCEEDED":
31
+ return TransactionStatus.SUCCEEDED;
32
+ case 2:
33
+ case "TRANSACTION_STATUS_REVERTED":
34
+ return TransactionStatus.REVERTED;
35
+ case -1:
36
+ case "UNRECOGNIZED":
37
+ default:
38
+ return TransactionStatus.UNRECOGNIZED;
39
+ }
40
+ }
41
+
42
+ export function transactionStatusToJSON(object: TransactionStatus): string {
43
+ switch (object) {
44
+ case TransactionStatus.UNSPECIFIED:
45
+ return "TRANSACTION_STATUS_UNSPECIFIED";
46
+ case TransactionStatus.SUCCEEDED:
47
+ return "TRANSACTION_STATUS_SUCCEEDED";
48
+ case TransactionStatus.REVERTED:
49
+ return "TRANSACTION_STATUS_REVERTED";
50
+ case TransactionStatus.UNRECOGNIZED:
51
+ default:
52
+ return "UNRECOGNIZED";
53
+ }
54
+ }
55
+
17
56
  /** Requested data, grouped by block. */
18
57
  export interface Block {
19
58
  /** The header. */
@@ -39,15 +78,15 @@ export interface Block {
39
78
  /** Block header. */
40
79
  export interface BlockHeader {
41
80
  /** Block number. */
42
- readonly number?:
81
+ readonly blockNumber?:
43
82
  | bigint
44
83
  | undefined;
45
84
  /** Hash of the block. */
46
- readonly hash?:
85
+ readonly blockHash?:
47
86
  | B256
48
87
  | undefined;
49
88
  /** Hash of the parent block. */
50
- readonly parentHash?:
89
+ readonly parentBlockHash?:
51
90
  | B256
52
91
  | undefined;
53
92
  /** Hash of the uncles. */
@@ -80,11 +119,11 @@ export interface BlockHeader {
80
119
  | undefined;
81
120
  /** Gas limit. */
82
121
  readonly gasLimit?:
83
- | U256
122
+ | U128
84
123
  | undefined;
85
124
  /** Gas used. */
86
125
  readonly gasUsed?:
87
- | U256
126
+ | U128
88
127
  | undefined;
89
128
  /** Timestamp. */
90
129
  readonly timestamp?:
@@ -104,7 +143,7 @@ export interface BlockHeader {
104
143
  | undefined;
105
144
  /** Base fee per unit of gas. */
106
145
  readonly baseFeePerGas?:
107
- | U256
146
+ | U128
108
147
  | undefined;
109
148
  /** Withdrawals root hash. */
110
149
  readonly withdrawalsRoot?:
@@ -114,21 +153,13 @@ export interface BlockHeader {
114
153
  readonly totalDifficulty?:
115
154
  | U256
116
155
  | undefined;
117
- /** Uncles' hashes. */
118
- readonly uncles?:
119
- | readonly B256[]
120
- | undefined;
121
- /** The size of this block in bytes. */
122
- readonly size?:
123
- | U256
124
- | undefined;
125
156
  /** Blob gas used. */
126
157
  readonly blobGasUsed?:
127
- | bigint
158
+ | U128
128
159
  | undefined;
129
160
  /** Excess blob gas. */
130
161
  readonly excessBlobGas?:
131
- | bigint
162
+ | U128
132
163
  | undefined;
133
164
  /** Parent beacon block root. */
134
165
  readonly parentBeaconBlockRoot?: B256 | undefined;
@@ -136,39 +167,45 @@ export interface BlockHeader {
136
167
 
137
168
  /** A validator's withdrawal from the consensus layer. */
138
169
  export interface Withdrawal {
170
+ readonly filterIds?:
171
+ | readonly number[]
172
+ | undefined;
173
+ /** Withdrawal index in the block. */
174
+ readonly withdrawalIndex?:
175
+ | number
176
+ | undefined;
139
177
  /** Increasing index of the withdrawal. */
140
178
  readonly index?:
141
179
  | bigint
142
180
  | undefined;
143
181
  /** Index of the validator. */
144
182
  readonly validatorIndex?:
145
- | bigint
146
- | undefined;
147
- /** Withdrawal index in the block. */
148
- readonly withdrawalIndex?:
149
- | bigint
183
+ | number
150
184
  | undefined;
151
185
  /** Target address of the withdrawal. */
152
186
  readonly address?:
153
187
  | Address
154
188
  | undefined;
155
189
  /** Value of the withdrawal, in gwei. */
156
- readonly amount?: U256 | undefined;
190
+ readonly amount?: bigint | undefined;
157
191
  }
158
192
 
159
193
  export interface Transaction {
194
+ readonly filterIds?:
195
+ | readonly number[]
196
+ | undefined;
197
+ /** Transaction index in the block. */
198
+ readonly transactionIndex?:
199
+ | number
200
+ | undefined;
160
201
  /** Transaction hash. */
161
- readonly hash?:
202
+ readonly transactionHash?:
162
203
  | B256
163
204
  | undefined;
164
205
  /** Nonce. */
165
206
  readonly nonce?:
166
207
  | bigint
167
208
  | undefined;
168
- /** Transaction index in the block. */
169
- readonly transactionIndex?:
170
- | bigint
171
- | undefined;
172
209
  /** Sender. */
173
210
  readonly from?:
174
211
  | Address
@@ -187,7 +224,7 @@ export interface Transaction {
187
224
  | undefined;
188
225
  /** Gas amount. */
189
226
  readonly gas?:
190
- | U256
227
+ | U128
191
228
  | undefined;
192
229
  /** Max base fee per gas the sender is willing to pay. */
193
230
  readonly maxFeePerGas?:
@@ -222,25 +259,32 @@ export interface Transaction {
222
259
  | U128
223
260
  | undefined;
224
261
  /** EIP-4844 blob hashes. */
225
- readonly blobVersionedHashes?: readonly B256[] | undefined;
262
+ readonly blobVersionedHashes?:
263
+ | readonly B256[]
264
+ | undefined;
265
+ /** The transaction status. */
266
+ readonly transactionStatus?: TransactionStatus | undefined;
226
267
  }
227
268
 
228
269
  export interface TransactionReceipt {
229
- /** Transaction hash. */
230
- readonly transactionHash?:
231
- | B256
270
+ readonly filterIds?:
271
+ | readonly number[]
232
272
  | undefined;
233
273
  /** Index of the transaction in the block. */
234
274
  readonly transactionIndex?:
235
- | bigint
275
+ | number
276
+ | undefined;
277
+ /** Transaction hash. */
278
+ readonly transactionHash?:
279
+ | B256
236
280
  | undefined;
237
281
  /** Cumulative gas used in the block after this transaction has been executed. */
238
282
  readonly cumulativeGasUsed?:
239
- | U256
283
+ | U128
240
284
  | undefined;
241
285
  /** Gas used by this transaction. */
242
286
  readonly gasUsed?:
243
- | U256
287
+ | U128
244
288
  | undefined;
245
289
  /** The price paid by the transaction. */
246
290
  readonly effectiveGasPrice?:
@@ -262,10 +306,6 @@ export interface TransactionReceipt {
262
306
  readonly logsBloom?:
263
307
  | Bloom
264
308
  | undefined;
265
- /** Either 1 (success) or 0 (failure). */
266
- readonly statusCode?:
267
- | bigint
268
- | undefined;
269
309
  /** EIP-2718 transaction type. */
270
310
  readonly transactionType?:
271
311
  | bigint
@@ -275,10 +315,21 @@ export interface TransactionReceipt {
275
315
  | U128
276
316
  | undefined;
277
317
  /** EIP-4844 blob gas paid by the transaction. */
278
- readonly blobGasPrice?: U128 | undefined;
318
+ readonly blobGasPrice?:
319
+ | U128
320
+ | undefined;
321
+ /** The transaction status. */
322
+ readonly transactionStatus?: TransactionStatus | undefined;
279
323
  }
280
324
 
281
325
  export interface Log {
326
+ readonly filterIds?:
327
+ | readonly number[]
328
+ | undefined;
329
+ /** Index of the log in the block. */
330
+ readonly logIndex?:
331
+ | number
332
+ | undefined;
282
333
  /** Address of the contract that emitted the log. */
283
334
  readonly address?:
284
335
  | Address
@@ -291,16 +342,16 @@ export interface Log {
291
342
  readonly data?:
292
343
  | Uint8Array
293
344
  | undefined;
294
- /** Index of the log in the block. */
295
- readonly logIndex?:
296
- | bigint
297
- | undefined;
298
345
  /** Index of the transaction that emitted the log. */
299
346
  readonly transactionIndex?:
300
- | bigint
347
+ | number
301
348
  | undefined;
302
349
  /** Hash of the transaction that emitted the log. */
303
- readonly transactionHash?: B256 | undefined;
350
+ readonly transactionHash?:
351
+ | B256
352
+ | undefined;
353
+ /** The transaction status. */
354
+ readonly transactionStatus?: TransactionStatus | undefined;
304
355
  }
305
356
 
306
357
  export interface Signature {
@@ -466,9 +517,9 @@ export const Block = {
466
517
 
467
518
  function createBaseBlockHeader(): BlockHeader {
468
519
  return {
469
- number: BigInt("0"),
470
- hash: undefined,
471
- parentHash: undefined,
520
+ blockNumber: BigInt("0"),
521
+ blockHash: undefined,
522
+ parentBlockHash: undefined,
472
523
  unclesHash: undefined,
473
524
  miner: undefined,
474
525
  stateRoot: undefined,
@@ -481,31 +532,29 @@ function createBaseBlockHeader(): BlockHeader {
481
532
  timestamp: undefined,
482
533
  extraData: new Uint8Array(0),
483
534
  mixHash: undefined,
484
- nonce: BigInt("0"),
535
+ nonce: undefined,
485
536
  baseFeePerGas: undefined,
486
537
  withdrawalsRoot: undefined,
487
538
  totalDifficulty: undefined,
488
- uncles: [],
489
- size: undefined,
490
- blobGasUsed: BigInt("0"),
491
- excessBlobGas: BigInt("0"),
539
+ blobGasUsed: undefined,
540
+ excessBlobGas: undefined,
492
541
  parentBeaconBlockRoot: undefined,
493
542
  };
494
543
  }
495
544
 
496
545
  export const BlockHeader = {
497
546
  encode(message: BlockHeader, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
498
- if (message.number !== undefined && message.number !== BigInt("0")) {
499
- if (BigInt.asUintN(64, message.number) !== message.number) {
500
- throw new globalThis.Error("value provided for field message.number of type uint64 too large");
547
+ if (message.blockNumber !== undefined && message.blockNumber !== BigInt("0")) {
548
+ if (BigInt.asUintN(64, message.blockNumber) !== message.blockNumber) {
549
+ throw new globalThis.Error("value provided for field message.blockNumber of type uint64 too large");
501
550
  }
502
- writer.uint32(8).uint64(message.number.toString());
551
+ writer.uint32(8).uint64(message.blockNumber.toString());
503
552
  }
504
- if (message.hash !== undefined) {
505
- B256.encode(message.hash, writer.uint32(18).fork()).ldelim();
553
+ if (message.blockHash !== undefined) {
554
+ B256.encode(message.blockHash, writer.uint32(18).fork()).ldelim();
506
555
  }
507
- if (message.parentHash !== undefined) {
508
- B256.encode(message.parentHash, writer.uint32(26).fork()).ldelim();
556
+ if (message.parentBlockHash !== undefined) {
557
+ B256.encode(message.parentBlockHash, writer.uint32(26).fork()).ldelim();
509
558
  }
510
559
  if (message.unclesHash !== undefined) {
511
560
  B256.encode(message.unclesHash, writer.uint32(34).fork()).ldelim();
@@ -529,10 +578,10 @@ export const BlockHeader = {
529
578
  U256.encode(message.difficulty, writer.uint32(82).fork()).ldelim();
530
579
  }
531
580
  if (message.gasLimit !== undefined) {
532
- U256.encode(message.gasLimit, writer.uint32(90).fork()).ldelim();
581
+ U128.encode(message.gasLimit, writer.uint32(90).fork()).ldelim();
533
582
  }
534
583
  if (message.gasUsed !== undefined) {
535
- U256.encode(message.gasUsed, writer.uint32(98).fork()).ldelim();
584
+ U128.encode(message.gasUsed, writer.uint32(98).fork()).ldelim();
536
585
  }
537
586
  if (message.timestamp !== undefined) {
538
587
  Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(106).fork()).ldelim();
@@ -543,14 +592,14 @@ export const BlockHeader = {
543
592
  if (message.mixHash !== undefined) {
544
593
  B256.encode(message.mixHash, writer.uint32(122).fork()).ldelim();
545
594
  }
546
- if (message.nonce !== undefined && message.nonce !== BigInt("0")) {
595
+ if (message.nonce !== undefined) {
547
596
  if (BigInt.asUintN(64, message.nonce) !== message.nonce) {
548
597
  throw new globalThis.Error("value provided for field message.nonce of type uint64 too large");
549
598
  }
550
599
  writer.uint32(128).uint64(message.nonce.toString());
551
600
  }
552
601
  if (message.baseFeePerGas !== undefined) {
553
- U256.encode(message.baseFeePerGas, writer.uint32(138).fork()).ldelim();
602
+ U128.encode(message.baseFeePerGas, writer.uint32(138).fork()).ldelim();
554
603
  }
555
604
  if (message.withdrawalsRoot !== undefined) {
556
605
  B256.encode(message.withdrawalsRoot, writer.uint32(146).fork()).ldelim();
@@ -558,28 +607,14 @@ export const BlockHeader = {
558
607
  if (message.totalDifficulty !== undefined) {
559
608
  U256.encode(message.totalDifficulty, writer.uint32(154).fork()).ldelim();
560
609
  }
561
- if (message.uncles !== undefined && message.uncles.length !== 0) {
562
- for (const v of message.uncles) {
563
- B256.encode(v!, writer.uint32(162).fork()).ldelim();
564
- }
565
- }
566
- if (message.size !== undefined) {
567
- U256.encode(message.size, writer.uint32(170).fork()).ldelim();
568
- }
569
- if (message.blobGasUsed !== undefined && message.blobGasUsed !== BigInt("0")) {
570
- if (BigInt.asUintN(64, message.blobGasUsed) !== message.blobGasUsed) {
571
- throw new globalThis.Error("value provided for field message.blobGasUsed of type uint64 too large");
572
- }
573
- writer.uint32(176).uint64(message.blobGasUsed.toString());
610
+ if (message.blobGasUsed !== undefined) {
611
+ U128.encode(message.blobGasUsed, writer.uint32(162).fork()).ldelim();
574
612
  }
575
- if (message.excessBlobGas !== undefined && message.excessBlobGas !== BigInt("0")) {
576
- if (BigInt.asUintN(64, message.excessBlobGas) !== message.excessBlobGas) {
577
- throw new globalThis.Error("value provided for field message.excessBlobGas of type uint64 too large");
578
- }
579
- writer.uint32(184).uint64(message.excessBlobGas.toString());
613
+ if (message.excessBlobGas !== undefined) {
614
+ U128.encode(message.excessBlobGas, writer.uint32(170).fork()).ldelim();
580
615
  }
581
616
  if (message.parentBeaconBlockRoot !== undefined) {
582
- B256.encode(message.parentBeaconBlockRoot, writer.uint32(194).fork()).ldelim();
617
+ B256.encode(message.parentBeaconBlockRoot, writer.uint32(178).fork()).ldelim();
583
618
  }
584
619
  return writer;
585
620
  },
@@ -596,21 +631,21 @@ export const BlockHeader = {
596
631
  break;
597
632
  }
598
633
 
599
- message.number = longToBigint(reader.uint64() as Long);
634
+ message.blockNumber = longToBigint(reader.uint64() as Long);
600
635
  continue;
601
636
  case 2:
602
637
  if (tag !== 18) {
603
638
  break;
604
639
  }
605
640
 
606
- message.hash = B256.decode(reader, reader.uint32());
641
+ message.blockHash = B256.decode(reader, reader.uint32());
607
642
  continue;
608
643
  case 3:
609
644
  if (tag !== 26) {
610
645
  break;
611
646
  }
612
647
 
613
- message.parentHash = B256.decode(reader, reader.uint32());
648
+ message.parentBlockHash = B256.decode(reader, reader.uint32());
614
649
  continue;
615
650
  case 4:
616
651
  if (tag !== 34) {
@@ -666,14 +701,14 @@ export const BlockHeader = {
666
701
  break;
667
702
  }
668
703
 
669
- message.gasLimit = U256.decode(reader, reader.uint32());
704
+ message.gasLimit = U128.decode(reader, reader.uint32());
670
705
  continue;
671
706
  case 12:
672
707
  if (tag !== 98) {
673
708
  break;
674
709
  }
675
710
 
676
- message.gasUsed = U256.decode(reader, reader.uint32());
711
+ message.gasUsed = U128.decode(reader, reader.uint32());
677
712
  continue;
678
713
  case 13:
679
714
  if (tag !== 106) {
@@ -708,7 +743,7 @@ export const BlockHeader = {
708
743
  break;
709
744
  }
710
745
 
711
- message.baseFeePerGas = U256.decode(reader, reader.uint32());
746
+ message.baseFeePerGas = U128.decode(reader, reader.uint32());
712
747
  continue;
713
748
  case 18:
714
749
  if (tag !== 146) {
@@ -729,31 +764,17 @@ export const BlockHeader = {
729
764
  break;
730
765
  }
731
766
 
732
- message.uncles!.push(B256.decode(reader, reader.uint32()));
767
+ message.blobGasUsed = U128.decode(reader, reader.uint32());
733
768
  continue;
734
769
  case 21:
735
770
  if (tag !== 170) {
736
771
  break;
737
772
  }
738
773
 
739
- message.size = U256.decode(reader, reader.uint32());
774
+ message.excessBlobGas = U128.decode(reader, reader.uint32());
740
775
  continue;
741
776
  case 22:
742
- if (tag !== 176) {
743
- break;
744
- }
745
-
746
- message.blobGasUsed = longToBigint(reader.uint64() as Long);
747
- continue;
748
- case 23:
749
- if (tag !== 184) {
750
- break;
751
- }
752
-
753
- message.excessBlobGas = longToBigint(reader.uint64() as Long);
754
- continue;
755
- case 24:
756
- if (tag !== 194) {
777
+ if (tag !== 178) {
757
778
  break;
758
779
  }
759
780
 
@@ -770,9 +791,9 @@ export const BlockHeader = {
770
791
 
771
792
  fromJSON(object: any): BlockHeader {
772
793
  return {
773
- number: isSet(object.number) ? BigInt(object.number) : BigInt("0"),
774
- hash: isSet(object.hash) ? B256.fromJSON(object.hash) : undefined,
775
- parentHash: isSet(object.parentHash) ? B256.fromJSON(object.parentHash) : undefined,
794
+ blockNumber: isSet(object.blockNumber) ? BigInt(object.blockNumber) : BigInt("0"),
795
+ blockHash: isSet(object.blockHash) ? B256.fromJSON(object.blockHash) : undefined,
796
+ parentBlockHash: isSet(object.parentBlockHash) ? B256.fromJSON(object.parentBlockHash) : undefined,
776
797
  unclesHash: isSet(object.unclesHash) ? B256.fromJSON(object.unclesHash) : undefined,
777
798
  miner: isSet(object.miner) ? Address.fromJSON(object.miner) : undefined,
778
799
  stateRoot: isSet(object.stateRoot) ? B256.fromJSON(object.stateRoot) : undefined,
@@ -780,19 +801,17 @@ export const BlockHeader = {
780
801
  receiptsRoot: isSet(object.receiptsRoot) ? B256.fromJSON(object.receiptsRoot) : undefined,
781
802
  logsBloom: isSet(object.logsBloom) ? Bloom.fromJSON(object.logsBloom) : undefined,
782
803
  difficulty: isSet(object.difficulty) ? U256.fromJSON(object.difficulty) : undefined,
783
- gasLimit: isSet(object.gasLimit) ? U256.fromJSON(object.gasLimit) : undefined,
784
- gasUsed: isSet(object.gasUsed) ? U256.fromJSON(object.gasUsed) : undefined,
804
+ gasLimit: isSet(object.gasLimit) ? U128.fromJSON(object.gasLimit) : undefined,
805
+ gasUsed: isSet(object.gasUsed) ? U128.fromJSON(object.gasUsed) : undefined,
785
806
  timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
786
807
  extraData: isSet(object.extraData) ? bytesFromBase64(object.extraData) : new Uint8Array(0),
787
808
  mixHash: isSet(object.mixHash) ? B256.fromJSON(object.mixHash) : undefined,
788
- nonce: isSet(object.nonce) ? BigInt(object.nonce) : BigInt("0"),
789
- baseFeePerGas: isSet(object.baseFeePerGas) ? U256.fromJSON(object.baseFeePerGas) : undefined,
809
+ nonce: isSet(object.nonce) ? BigInt(object.nonce) : undefined,
810
+ baseFeePerGas: isSet(object.baseFeePerGas) ? U128.fromJSON(object.baseFeePerGas) : undefined,
790
811
  withdrawalsRoot: isSet(object.withdrawalsRoot) ? B256.fromJSON(object.withdrawalsRoot) : undefined,
791
812
  totalDifficulty: isSet(object.totalDifficulty) ? U256.fromJSON(object.totalDifficulty) : undefined,
792
- uncles: globalThis.Array.isArray(object?.uncles) ? object.uncles.map((e: any) => B256.fromJSON(e)) : [],
793
- size: isSet(object.size) ? U256.fromJSON(object.size) : undefined,
794
- blobGasUsed: isSet(object.blobGasUsed) ? BigInt(object.blobGasUsed) : BigInt("0"),
795
- excessBlobGas: isSet(object.excessBlobGas) ? BigInt(object.excessBlobGas) : BigInt("0"),
813
+ blobGasUsed: isSet(object.blobGasUsed) ? U128.fromJSON(object.blobGasUsed) : undefined,
814
+ excessBlobGas: isSet(object.excessBlobGas) ? U128.fromJSON(object.excessBlobGas) : undefined,
796
815
  parentBeaconBlockRoot: isSet(object.parentBeaconBlockRoot)
797
816
  ? B256.fromJSON(object.parentBeaconBlockRoot)
798
817
  : undefined,
@@ -801,14 +820,14 @@ export const BlockHeader = {
801
820
 
802
821
  toJSON(message: BlockHeader): unknown {
803
822
  const obj: any = {};
804
- if (message.number !== undefined && message.number !== BigInt("0")) {
805
- obj.number = message.number.toString();
823
+ if (message.blockNumber !== undefined && message.blockNumber !== BigInt("0")) {
824
+ obj.blockNumber = message.blockNumber.toString();
806
825
  }
807
- if (message.hash !== undefined) {
808
- obj.hash = B256.toJSON(message.hash);
826
+ if (message.blockHash !== undefined) {
827
+ obj.blockHash = B256.toJSON(message.blockHash);
809
828
  }
810
- if (message.parentHash !== undefined) {
811
- obj.parentHash = B256.toJSON(message.parentHash);
829
+ if (message.parentBlockHash !== undefined) {
830
+ obj.parentBlockHash = B256.toJSON(message.parentBlockHash);
812
831
  }
813
832
  if (message.unclesHash !== undefined) {
814
833
  obj.unclesHash = B256.toJSON(message.unclesHash);
@@ -832,10 +851,10 @@ export const BlockHeader = {
832
851
  obj.difficulty = U256.toJSON(message.difficulty);
833
852
  }
834
853
  if (message.gasLimit !== undefined) {
835
- obj.gasLimit = U256.toJSON(message.gasLimit);
854
+ obj.gasLimit = U128.toJSON(message.gasLimit);
836
855
  }
837
856
  if (message.gasUsed !== undefined) {
838
- obj.gasUsed = U256.toJSON(message.gasUsed);
857
+ obj.gasUsed = U128.toJSON(message.gasUsed);
839
858
  }
840
859
  if (message.timestamp !== undefined) {
841
860
  obj.timestamp = message.timestamp.toISOString();
@@ -846,11 +865,11 @@ export const BlockHeader = {
846
865
  if (message.mixHash !== undefined) {
847
866
  obj.mixHash = B256.toJSON(message.mixHash);
848
867
  }
849
- if (message.nonce !== undefined && message.nonce !== BigInt("0")) {
868
+ if (message.nonce !== undefined) {
850
869
  obj.nonce = message.nonce.toString();
851
870
  }
852
871
  if (message.baseFeePerGas !== undefined) {
853
- obj.baseFeePerGas = U256.toJSON(message.baseFeePerGas);
872
+ obj.baseFeePerGas = U128.toJSON(message.baseFeePerGas);
854
873
  }
855
874
  if (message.withdrawalsRoot !== undefined) {
856
875
  obj.withdrawalsRoot = B256.toJSON(message.withdrawalsRoot);
@@ -858,17 +877,11 @@ export const BlockHeader = {
858
877
  if (message.totalDifficulty !== undefined) {
859
878
  obj.totalDifficulty = U256.toJSON(message.totalDifficulty);
860
879
  }
861
- if (message.uncles?.length) {
862
- obj.uncles = message.uncles.map((e) => B256.toJSON(e));
863
- }
864
- if (message.size !== undefined) {
865
- obj.size = U256.toJSON(message.size);
866
- }
867
- if (message.blobGasUsed !== undefined && message.blobGasUsed !== BigInt("0")) {
868
- obj.blobGasUsed = message.blobGasUsed.toString();
880
+ if (message.blobGasUsed !== undefined) {
881
+ obj.blobGasUsed = U128.toJSON(message.blobGasUsed);
869
882
  }
870
- if (message.excessBlobGas !== undefined && message.excessBlobGas !== BigInt("0")) {
871
- obj.excessBlobGas = message.excessBlobGas.toString();
883
+ if (message.excessBlobGas !== undefined) {
884
+ obj.excessBlobGas = U128.toJSON(message.excessBlobGas);
872
885
  }
873
886
  if (message.parentBeaconBlockRoot !== undefined) {
874
887
  obj.parentBeaconBlockRoot = B256.toJSON(message.parentBeaconBlockRoot);
@@ -881,10 +894,12 @@ export const BlockHeader = {
881
894
  },
882
895
  fromPartial(object: DeepPartial<BlockHeader>): BlockHeader {
883
896
  const message = createBaseBlockHeader() as any;
884
- message.number = object.number ?? BigInt("0");
885
- message.hash = (object.hash !== undefined && object.hash !== null) ? B256.fromPartial(object.hash) : undefined;
886
- message.parentHash = (object.parentHash !== undefined && object.parentHash !== null)
887
- ? B256.fromPartial(object.parentHash)
897
+ message.blockNumber = object.blockNumber ?? BigInt("0");
898
+ message.blockHash = (object.blockHash !== undefined && object.blockHash !== null)
899
+ ? B256.fromPartial(object.blockHash)
900
+ : undefined;
901
+ message.parentBlockHash = (object.parentBlockHash !== undefined && object.parentBlockHash !== null)
902
+ ? B256.fromPartial(object.parentBlockHash)
888
903
  : undefined;
889
904
  message.unclesHash = (object.unclesHash !== undefined && object.unclesHash !== null)
890
905
  ? B256.fromPartial(object.unclesHash)
@@ -908,19 +923,19 @@ export const BlockHeader = {
908
923
  ? U256.fromPartial(object.difficulty)
909
924
  : undefined;
910
925
  message.gasLimit = (object.gasLimit !== undefined && object.gasLimit !== null)
911
- ? U256.fromPartial(object.gasLimit)
926
+ ? U128.fromPartial(object.gasLimit)
912
927
  : undefined;
913
928
  message.gasUsed = (object.gasUsed !== undefined && object.gasUsed !== null)
914
- ? U256.fromPartial(object.gasUsed)
929
+ ? U128.fromPartial(object.gasUsed)
915
930
  : undefined;
916
931
  message.timestamp = object.timestamp ?? undefined;
917
932
  message.extraData = object.extraData ?? new Uint8Array(0);
918
933
  message.mixHash = (object.mixHash !== undefined && object.mixHash !== null)
919
934
  ? B256.fromPartial(object.mixHash)
920
935
  : undefined;
921
- message.nonce = object.nonce ?? BigInt("0");
936
+ message.nonce = object.nonce ?? undefined;
922
937
  message.baseFeePerGas = (object.baseFeePerGas !== undefined && object.baseFeePerGas !== null)
923
- ? U256.fromPartial(object.baseFeePerGas)
938
+ ? U128.fromPartial(object.baseFeePerGas)
924
939
  : undefined;
925
940
  message.withdrawalsRoot = (object.withdrawalsRoot !== undefined && object.withdrawalsRoot !== null)
926
941
  ? B256.fromPartial(object.withdrawalsRoot)
@@ -928,10 +943,12 @@ export const BlockHeader = {
928
943
  message.totalDifficulty = (object.totalDifficulty !== undefined && object.totalDifficulty !== null)
929
944
  ? U256.fromPartial(object.totalDifficulty)
930
945
  : undefined;
931
- message.uncles = object.uncles?.map((e) => B256.fromPartial(e)) || [];
932
- message.size = (object.size !== undefined && object.size !== null) ? U256.fromPartial(object.size) : undefined;
933
- message.blobGasUsed = object.blobGasUsed ?? BigInt("0");
934
- message.excessBlobGas = object.excessBlobGas ?? BigInt("0");
946
+ message.blobGasUsed = (object.blobGasUsed !== undefined && object.blobGasUsed !== null)
947
+ ? U128.fromPartial(object.blobGasUsed)
948
+ : undefined;
949
+ message.excessBlobGas = (object.excessBlobGas !== undefined && object.excessBlobGas !== null)
950
+ ? U128.fromPartial(object.excessBlobGas)
951
+ : undefined;
935
952
  message.parentBeaconBlockRoot =
936
953
  (object.parentBeaconBlockRoot !== undefined && object.parentBeaconBlockRoot !== null)
937
954
  ? B256.fromPartial(object.parentBeaconBlockRoot)
@@ -942,39 +959,44 @@ export const BlockHeader = {
942
959
 
943
960
  function createBaseWithdrawal(): Withdrawal {
944
961
  return {
962
+ filterIds: [],
963
+ withdrawalIndex: 0,
945
964
  index: BigInt("0"),
946
- validatorIndex: BigInt("0"),
947
- withdrawalIndex: BigInt("0"),
965
+ validatorIndex: 0,
948
966
  address: undefined,
949
- amount: undefined,
967
+ amount: BigInt("0"),
950
968
  };
951
969
  }
952
970
 
953
971
  export const Withdrawal = {
954
972
  encode(message: Withdrawal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
973
+ if (message.filterIds !== undefined && message.filterIds.length !== 0) {
974
+ writer.uint32(10).fork();
975
+ for (const v of message.filterIds) {
976
+ writer.uint32(v);
977
+ }
978
+ writer.ldelim();
979
+ }
980
+ if (message.withdrawalIndex !== undefined && message.withdrawalIndex !== 0) {
981
+ writer.uint32(16).uint32(message.withdrawalIndex);
982
+ }
955
983
  if (message.index !== undefined && message.index !== BigInt("0")) {
956
984
  if (BigInt.asUintN(64, message.index) !== message.index) {
957
985
  throw new globalThis.Error("value provided for field message.index of type uint64 too large");
958
986
  }
959
- writer.uint32(8).uint64(message.index.toString());
960
- }
961
- if (message.validatorIndex !== undefined && message.validatorIndex !== BigInt("0")) {
962
- if (BigInt.asUintN(64, message.validatorIndex) !== message.validatorIndex) {
963
- throw new globalThis.Error("value provided for field message.validatorIndex of type uint64 too large");
964
- }
965
- writer.uint32(16).uint64(message.validatorIndex.toString());
987
+ writer.uint32(24).uint64(message.index.toString());
966
988
  }
967
- if (message.withdrawalIndex !== undefined && message.withdrawalIndex !== BigInt("0")) {
968
- if (BigInt.asUintN(64, message.withdrawalIndex) !== message.withdrawalIndex) {
969
- throw new globalThis.Error("value provided for field message.withdrawalIndex of type uint64 too large");
970
- }
971
- writer.uint32(24).uint64(message.withdrawalIndex.toString());
989
+ if (message.validatorIndex !== undefined && message.validatorIndex !== 0) {
990
+ writer.uint32(32).uint32(message.validatorIndex);
972
991
  }
973
992
  if (message.address !== undefined) {
974
- Address.encode(message.address, writer.uint32(34).fork()).ldelim();
993
+ Address.encode(message.address, writer.uint32(42).fork()).ldelim();
975
994
  }
976
- if (message.amount !== undefined) {
977
- U256.encode(message.amount, writer.uint32(42).fork()).ldelim();
995
+ if (message.amount !== undefined && message.amount !== BigInt("0")) {
996
+ if (BigInt.asUintN(64, message.amount) !== message.amount) {
997
+ throw new globalThis.Error("value provided for field message.amount of type uint64 too large");
998
+ }
999
+ writer.uint32(48).uint64(message.amount.toString());
978
1000
  }
979
1001
  return writer;
980
1002
  },
@@ -987,39 +1009,56 @@ export const Withdrawal = {
987
1009
  const tag = reader.uint32();
988
1010
  switch (tag >>> 3) {
989
1011
  case 1:
990
- if (tag !== 8) {
991
- break;
1012
+ if (tag === 8) {
1013
+ message.filterIds!.push(reader.uint32());
1014
+
1015
+ continue;
992
1016
  }
993
1017
 
994
- message.index = longToBigint(reader.uint64() as Long);
995
- continue;
1018
+ if (tag === 10) {
1019
+ const end2 = reader.uint32() + reader.pos;
1020
+ while (reader.pos < end2) {
1021
+ message.filterIds!.push(reader.uint32());
1022
+ }
1023
+
1024
+ continue;
1025
+ }
1026
+
1027
+ break;
996
1028
  case 2:
997
1029
  if (tag !== 16) {
998
1030
  break;
999
1031
  }
1000
1032
 
1001
- message.validatorIndex = longToBigint(reader.uint64() as Long);
1033
+ message.withdrawalIndex = reader.uint32();
1002
1034
  continue;
1003
1035
  case 3:
1004
1036
  if (tag !== 24) {
1005
1037
  break;
1006
1038
  }
1007
1039
 
1008
- message.withdrawalIndex = longToBigint(reader.uint64() as Long);
1040
+ message.index = longToBigint(reader.uint64() as Long);
1009
1041
  continue;
1010
1042
  case 4:
1011
- if (tag !== 34) {
1043
+ if (tag !== 32) {
1012
1044
  break;
1013
1045
  }
1014
1046
 
1015
- message.address = Address.decode(reader, reader.uint32());
1047
+ message.validatorIndex = reader.uint32();
1016
1048
  continue;
1017
1049
  case 5:
1018
1050
  if (tag !== 42) {
1019
1051
  break;
1020
1052
  }
1021
1053
 
1022
- message.amount = U256.decode(reader, reader.uint32());
1054
+ message.address = Address.decode(reader, reader.uint32());
1055
+ continue;
1056
+ case 6:
1057
+ if (tag !== 48) {
1058
+ break;
1059
+ }
1060
+
1061
+ message.amount = longToBigint(reader.uint64() as Long);
1023
1062
  continue;
1024
1063
  }
1025
1064
  if ((tag & 7) === 4 || tag === 0) {
@@ -1032,30 +1071,36 @@ export const Withdrawal = {
1032
1071
 
1033
1072
  fromJSON(object: any): Withdrawal {
1034
1073
  return {
1074
+ filterIds: globalThis.Array.isArray(object?.filterIds)
1075
+ ? object.filterIds.map((e: any) => globalThis.Number(e))
1076
+ : [],
1077
+ withdrawalIndex: isSet(object.withdrawalIndex) ? globalThis.Number(object.withdrawalIndex) : 0,
1035
1078
  index: isSet(object.index) ? BigInt(object.index) : BigInt("0"),
1036
- validatorIndex: isSet(object.validatorIndex) ? BigInt(object.validatorIndex) : BigInt("0"),
1037
- withdrawalIndex: isSet(object.withdrawalIndex) ? BigInt(object.withdrawalIndex) : BigInt("0"),
1079
+ validatorIndex: isSet(object.validatorIndex) ? globalThis.Number(object.validatorIndex) : 0,
1038
1080
  address: isSet(object.address) ? Address.fromJSON(object.address) : undefined,
1039
- amount: isSet(object.amount) ? U256.fromJSON(object.amount) : undefined,
1081
+ amount: isSet(object.amount) ? BigInt(object.amount) : BigInt("0"),
1040
1082
  };
1041
1083
  },
1042
1084
 
1043
1085
  toJSON(message: Withdrawal): unknown {
1044
1086
  const obj: any = {};
1087
+ if (message.filterIds?.length) {
1088
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1089
+ }
1090
+ if (message.withdrawalIndex !== undefined && message.withdrawalIndex !== 0) {
1091
+ obj.withdrawalIndex = Math.round(message.withdrawalIndex);
1092
+ }
1045
1093
  if (message.index !== undefined && message.index !== BigInt("0")) {
1046
1094
  obj.index = message.index.toString();
1047
1095
  }
1048
- if (message.validatorIndex !== undefined && message.validatorIndex !== BigInt("0")) {
1049
- obj.validatorIndex = message.validatorIndex.toString();
1050
- }
1051
- if (message.withdrawalIndex !== undefined && message.withdrawalIndex !== BigInt("0")) {
1052
- obj.withdrawalIndex = message.withdrawalIndex.toString();
1096
+ if (message.validatorIndex !== undefined && message.validatorIndex !== 0) {
1097
+ obj.validatorIndex = Math.round(message.validatorIndex);
1053
1098
  }
1054
1099
  if (message.address !== undefined) {
1055
1100
  obj.address = Address.toJSON(message.address);
1056
1101
  }
1057
- if (message.amount !== undefined) {
1058
- obj.amount = U256.toJSON(message.amount);
1102
+ if (message.amount !== undefined && message.amount !== BigInt("0")) {
1103
+ obj.amount = message.amount.toString();
1059
1104
  }
1060
1105
  return obj;
1061
1106
  },
@@ -1065,24 +1110,24 @@ export const Withdrawal = {
1065
1110
  },
1066
1111
  fromPartial(object: DeepPartial<Withdrawal>): Withdrawal {
1067
1112
  const message = createBaseWithdrawal() as any;
1113
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1114
+ message.withdrawalIndex = object.withdrawalIndex ?? 0;
1068
1115
  message.index = object.index ?? BigInt("0");
1069
- message.validatorIndex = object.validatorIndex ?? BigInt("0");
1070
- message.withdrawalIndex = object.withdrawalIndex ?? BigInt("0");
1116
+ message.validatorIndex = object.validatorIndex ?? 0;
1071
1117
  message.address = (object.address !== undefined && object.address !== null)
1072
1118
  ? Address.fromPartial(object.address)
1073
1119
  : undefined;
1074
- message.amount = (object.amount !== undefined && object.amount !== null)
1075
- ? U256.fromPartial(object.amount)
1076
- : undefined;
1120
+ message.amount = object.amount ?? BigInt("0");
1077
1121
  return message;
1078
1122
  },
1079
1123
  };
1080
1124
 
1081
1125
  function createBaseTransaction(): Transaction {
1082
1126
  return {
1083
- hash: undefined,
1127
+ filterIds: [],
1128
+ transactionIndex: 0,
1129
+ transactionHash: undefined,
1084
1130
  nonce: BigInt("0"),
1085
- transactionIndex: BigInt("0"),
1086
1131
  from: undefined,
1087
1132
  to: undefined,
1088
1133
  value: undefined,
@@ -1092,83 +1137,91 @@ function createBaseTransaction(): Transaction {
1092
1137
  maxPriorityFeePerGas: undefined,
1093
1138
  input: new Uint8Array(0),
1094
1139
  signature: undefined,
1095
- chainId: BigInt("0"),
1140
+ chainId: undefined,
1096
1141
  accessList: [],
1097
1142
  transactionType: BigInt("0"),
1098
1143
  maxFeePerBlobGas: undefined,
1099
1144
  blobVersionedHashes: [],
1145
+ transactionStatus: 0,
1100
1146
  };
1101
1147
  }
1102
1148
 
1103
1149
  export const Transaction = {
1104
1150
  encode(message: Transaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1105
- if (message.hash !== undefined) {
1106
- B256.encode(message.hash, writer.uint32(10).fork()).ldelim();
1151
+ if (message.filterIds !== undefined && message.filterIds.length !== 0) {
1152
+ writer.uint32(10).fork();
1153
+ for (const v of message.filterIds) {
1154
+ writer.uint32(v);
1155
+ }
1156
+ writer.ldelim();
1157
+ }
1158
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1159
+ writer.uint32(16).uint32(message.transactionIndex);
1160
+ }
1161
+ if (message.transactionHash !== undefined) {
1162
+ B256.encode(message.transactionHash, writer.uint32(26).fork()).ldelim();
1107
1163
  }
1108
1164
  if (message.nonce !== undefined && message.nonce !== BigInt("0")) {
1109
1165
  if (BigInt.asUintN(64, message.nonce) !== message.nonce) {
1110
1166
  throw new globalThis.Error("value provided for field message.nonce of type uint64 too large");
1111
1167
  }
1112
- writer.uint32(16).uint64(message.nonce.toString());
1113
- }
1114
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1115
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1116
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1117
- }
1118
- writer.uint32(24).uint64(message.transactionIndex.toString());
1168
+ writer.uint32(32).uint64(message.nonce.toString());
1119
1169
  }
1120
1170
  if (message.from !== undefined) {
1121
- Address.encode(message.from, writer.uint32(34).fork()).ldelim();
1171
+ Address.encode(message.from, writer.uint32(42).fork()).ldelim();
1122
1172
  }
1123
1173
  if (message.to !== undefined) {
1124
- Address.encode(message.to, writer.uint32(42).fork()).ldelim();
1174
+ Address.encode(message.to, writer.uint32(50).fork()).ldelim();
1125
1175
  }
1126
1176
  if (message.value !== undefined) {
1127
- U256.encode(message.value, writer.uint32(50).fork()).ldelim();
1177
+ U256.encode(message.value, writer.uint32(58).fork()).ldelim();
1128
1178
  }
1129
1179
  if (message.gasPrice !== undefined) {
1130
- U128.encode(message.gasPrice, writer.uint32(58).fork()).ldelim();
1180
+ U128.encode(message.gasPrice, writer.uint32(66).fork()).ldelim();
1131
1181
  }
1132
1182
  if (message.gas !== undefined) {
1133
- U256.encode(message.gas, writer.uint32(66).fork()).ldelim();
1183
+ U128.encode(message.gas, writer.uint32(74).fork()).ldelim();
1134
1184
  }
1135
1185
  if (message.maxFeePerGas !== undefined) {
1136
- U128.encode(message.maxFeePerGas, writer.uint32(74).fork()).ldelim();
1186
+ U128.encode(message.maxFeePerGas, writer.uint32(82).fork()).ldelim();
1137
1187
  }
1138
1188
  if (message.maxPriorityFeePerGas !== undefined) {
1139
- U128.encode(message.maxPriorityFeePerGas, writer.uint32(82).fork()).ldelim();
1189
+ U128.encode(message.maxPriorityFeePerGas, writer.uint32(90).fork()).ldelim();
1140
1190
  }
1141
1191
  if (message.input !== undefined && message.input.length !== 0) {
1142
- writer.uint32(90).bytes(message.input);
1192
+ writer.uint32(98).bytes(message.input);
1143
1193
  }
1144
1194
  if (message.signature !== undefined) {
1145
- Signature.encode(message.signature, writer.uint32(98).fork()).ldelim();
1195
+ Signature.encode(message.signature, writer.uint32(106).fork()).ldelim();
1146
1196
  }
1147
- if (message.chainId !== undefined && message.chainId !== BigInt("0")) {
1197
+ if (message.chainId !== undefined) {
1148
1198
  if (BigInt.asUintN(64, message.chainId) !== message.chainId) {
1149
1199
  throw new globalThis.Error("value provided for field message.chainId of type uint64 too large");
1150
1200
  }
1151
- writer.uint32(104).uint64(message.chainId.toString());
1201
+ writer.uint32(112).uint64(message.chainId.toString());
1152
1202
  }
1153
1203
  if (message.accessList !== undefined && message.accessList.length !== 0) {
1154
1204
  for (const v of message.accessList) {
1155
- AccessListItem.encode(v!, writer.uint32(114).fork()).ldelim();
1205
+ AccessListItem.encode(v!, writer.uint32(122).fork()).ldelim();
1156
1206
  }
1157
1207
  }
1158
1208
  if (message.transactionType !== undefined && message.transactionType !== BigInt("0")) {
1159
1209
  if (BigInt.asUintN(64, message.transactionType) !== message.transactionType) {
1160
1210
  throw new globalThis.Error("value provided for field message.transactionType of type uint64 too large");
1161
1211
  }
1162
- writer.uint32(120).uint64(message.transactionType.toString());
1212
+ writer.uint32(128).uint64(message.transactionType.toString());
1163
1213
  }
1164
1214
  if (message.maxFeePerBlobGas !== undefined) {
1165
- U128.encode(message.maxFeePerBlobGas, writer.uint32(130).fork()).ldelim();
1215
+ U128.encode(message.maxFeePerBlobGas, writer.uint32(138).fork()).ldelim();
1166
1216
  }
1167
1217
  if (message.blobVersionedHashes !== undefined && message.blobVersionedHashes.length !== 0) {
1168
1218
  for (const v of message.blobVersionedHashes) {
1169
- B256.encode(v!, writer.uint32(138).fork()).ldelim();
1219
+ B256.encode(v!, writer.uint32(146).fork()).ldelim();
1170
1220
  }
1171
1221
  }
1222
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1223
+ writer.uint32(152).int32(message.transactionStatus);
1224
+ }
1172
1225
  return writer;
1173
1226
  },
1174
1227
 
@@ -1180,124 +1233,148 @@ export const Transaction = {
1180
1233
  const tag = reader.uint32();
1181
1234
  switch (tag >>> 3) {
1182
1235
  case 1:
1183
- if (tag !== 10) {
1184
- break;
1236
+ if (tag === 8) {
1237
+ message.filterIds!.push(reader.uint32());
1238
+
1239
+ continue;
1185
1240
  }
1186
1241
 
1187
- message.hash = B256.decode(reader, reader.uint32());
1188
- continue;
1242
+ if (tag === 10) {
1243
+ const end2 = reader.uint32() + reader.pos;
1244
+ while (reader.pos < end2) {
1245
+ message.filterIds!.push(reader.uint32());
1246
+ }
1247
+
1248
+ continue;
1249
+ }
1250
+
1251
+ break;
1189
1252
  case 2:
1190
1253
  if (tag !== 16) {
1191
1254
  break;
1192
1255
  }
1193
1256
 
1194
- message.nonce = longToBigint(reader.uint64() as Long);
1257
+ message.transactionIndex = reader.uint32();
1195
1258
  continue;
1196
1259
  case 3:
1197
- if (tag !== 24) {
1260
+ if (tag !== 26) {
1198
1261
  break;
1199
1262
  }
1200
1263
 
1201
- message.transactionIndex = longToBigint(reader.uint64() as Long);
1264
+ message.transactionHash = B256.decode(reader, reader.uint32());
1202
1265
  continue;
1203
1266
  case 4:
1204
- if (tag !== 34) {
1267
+ if (tag !== 32) {
1205
1268
  break;
1206
1269
  }
1207
1270
 
1208
- message.from = Address.decode(reader, reader.uint32());
1271
+ message.nonce = longToBigint(reader.uint64() as Long);
1209
1272
  continue;
1210
1273
  case 5:
1211
1274
  if (tag !== 42) {
1212
1275
  break;
1213
1276
  }
1214
1277
 
1215
- message.to = Address.decode(reader, reader.uint32());
1278
+ message.from = Address.decode(reader, reader.uint32());
1216
1279
  continue;
1217
1280
  case 6:
1218
1281
  if (tag !== 50) {
1219
1282
  break;
1220
1283
  }
1221
1284
 
1222
- message.value = U256.decode(reader, reader.uint32());
1285
+ message.to = Address.decode(reader, reader.uint32());
1223
1286
  continue;
1224
1287
  case 7:
1225
1288
  if (tag !== 58) {
1226
1289
  break;
1227
1290
  }
1228
1291
 
1229
- message.gasPrice = U128.decode(reader, reader.uint32());
1292
+ message.value = U256.decode(reader, reader.uint32());
1230
1293
  continue;
1231
1294
  case 8:
1232
1295
  if (tag !== 66) {
1233
1296
  break;
1234
1297
  }
1235
1298
 
1236
- message.gas = U256.decode(reader, reader.uint32());
1299
+ message.gasPrice = U128.decode(reader, reader.uint32());
1237
1300
  continue;
1238
1301
  case 9:
1239
1302
  if (tag !== 74) {
1240
1303
  break;
1241
1304
  }
1242
1305
 
1243
- message.maxFeePerGas = U128.decode(reader, reader.uint32());
1306
+ message.gas = U128.decode(reader, reader.uint32());
1244
1307
  continue;
1245
1308
  case 10:
1246
1309
  if (tag !== 82) {
1247
1310
  break;
1248
1311
  }
1249
1312
 
1250
- message.maxPriorityFeePerGas = U128.decode(reader, reader.uint32());
1313
+ message.maxFeePerGas = U128.decode(reader, reader.uint32());
1251
1314
  continue;
1252
1315
  case 11:
1253
1316
  if (tag !== 90) {
1254
1317
  break;
1255
1318
  }
1256
1319
 
1257
- message.input = reader.bytes();
1320
+ message.maxPriorityFeePerGas = U128.decode(reader, reader.uint32());
1258
1321
  continue;
1259
1322
  case 12:
1260
1323
  if (tag !== 98) {
1261
1324
  break;
1262
1325
  }
1263
1326
 
1264
- message.signature = Signature.decode(reader, reader.uint32());
1327
+ message.input = reader.bytes();
1265
1328
  continue;
1266
1329
  case 13:
1267
- if (tag !== 104) {
1330
+ if (tag !== 106) {
1268
1331
  break;
1269
1332
  }
1270
1333
 
1271
- message.chainId = longToBigint(reader.uint64() as Long);
1334
+ message.signature = Signature.decode(reader, reader.uint32());
1272
1335
  continue;
1273
1336
  case 14:
1274
- if (tag !== 114) {
1337
+ if (tag !== 112) {
1275
1338
  break;
1276
1339
  }
1277
1340
 
1278
- message.accessList!.push(AccessListItem.decode(reader, reader.uint32()));
1341
+ message.chainId = longToBigint(reader.uint64() as Long);
1279
1342
  continue;
1280
1343
  case 15:
1281
- if (tag !== 120) {
1344
+ if (tag !== 122) {
1282
1345
  break;
1283
1346
  }
1284
1347
 
1285
- message.transactionType = longToBigint(reader.uint64() as Long);
1348
+ message.accessList!.push(AccessListItem.decode(reader, reader.uint32()));
1286
1349
  continue;
1287
1350
  case 16:
1288
- if (tag !== 130) {
1351
+ if (tag !== 128) {
1289
1352
  break;
1290
1353
  }
1291
1354
 
1292
- message.maxFeePerBlobGas = U128.decode(reader, reader.uint32());
1355
+ message.transactionType = longToBigint(reader.uint64() as Long);
1293
1356
  continue;
1294
1357
  case 17:
1295
1358
  if (tag !== 138) {
1296
1359
  break;
1297
1360
  }
1298
1361
 
1362
+ message.maxFeePerBlobGas = U128.decode(reader, reader.uint32());
1363
+ continue;
1364
+ case 18:
1365
+ if (tag !== 146) {
1366
+ break;
1367
+ }
1368
+
1299
1369
  message.blobVersionedHashes!.push(B256.decode(reader, reader.uint32()));
1300
1370
  continue;
1371
+ case 19:
1372
+ if (tag !== 152) {
1373
+ break;
1374
+ }
1375
+
1376
+ message.transactionStatus = reader.int32() as any;
1377
+ continue;
1301
1378
  }
1302
1379
  if ((tag & 7) === 4 || tag === 0) {
1303
1380
  break;
@@ -1309,19 +1386,22 @@ export const Transaction = {
1309
1386
 
1310
1387
  fromJSON(object: any): Transaction {
1311
1388
  return {
1312
- hash: isSet(object.hash) ? B256.fromJSON(object.hash) : undefined,
1389
+ filterIds: globalThis.Array.isArray(object?.filterIds)
1390
+ ? object.filterIds.map((e: any) => globalThis.Number(e))
1391
+ : [],
1392
+ transactionIndex: isSet(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1393
+ transactionHash: isSet(object.transactionHash) ? B256.fromJSON(object.transactionHash) : undefined,
1313
1394
  nonce: isSet(object.nonce) ? BigInt(object.nonce) : BigInt("0"),
1314
- transactionIndex: isSet(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1315
1395
  from: isSet(object.from) ? Address.fromJSON(object.from) : undefined,
1316
1396
  to: isSet(object.to) ? Address.fromJSON(object.to) : undefined,
1317
1397
  value: isSet(object.value) ? U256.fromJSON(object.value) : undefined,
1318
1398
  gasPrice: isSet(object.gasPrice) ? U128.fromJSON(object.gasPrice) : undefined,
1319
- gas: isSet(object.gas) ? U256.fromJSON(object.gas) : undefined,
1399
+ gas: isSet(object.gas) ? U128.fromJSON(object.gas) : undefined,
1320
1400
  maxFeePerGas: isSet(object.maxFeePerGas) ? U128.fromJSON(object.maxFeePerGas) : undefined,
1321
1401
  maxPriorityFeePerGas: isSet(object.maxPriorityFeePerGas) ? U128.fromJSON(object.maxPriorityFeePerGas) : undefined,
1322
1402
  input: isSet(object.input) ? bytesFromBase64(object.input) : new Uint8Array(0),
1323
1403
  signature: isSet(object.signature) ? Signature.fromJSON(object.signature) : undefined,
1324
- chainId: isSet(object.chainId) ? BigInt(object.chainId) : BigInt("0"),
1404
+ chainId: isSet(object.chainId) ? BigInt(object.chainId) : undefined,
1325
1405
  accessList: globalThis.Array.isArray(object?.accessList)
1326
1406
  ? object.accessList.map((e: any) => AccessListItem.fromJSON(e))
1327
1407
  : [],
@@ -1330,20 +1410,24 @@ export const Transaction = {
1330
1410
  blobVersionedHashes: globalThis.Array.isArray(object?.blobVersionedHashes)
1331
1411
  ? object.blobVersionedHashes.map((e: any) => B256.fromJSON(e))
1332
1412
  : [],
1413
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
1333
1414
  };
1334
1415
  },
1335
1416
 
1336
1417
  toJSON(message: Transaction): unknown {
1337
1418
  const obj: any = {};
1338
- if (message.hash !== undefined) {
1339
- obj.hash = B256.toJSON(message.hash);
1419
+ if (message.filterIds?.length) {
1420
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1421
+ }
1422
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1423
+ obj.transactionIndex = Math.round(message.transactionIndex);
1424
+ }
1425
+ if (message.transactionHash !== undefined) {
1426
+ obj.transactionHash = B256.toJSON(message.transactionHash);
1340
1427
  }
1341
1428
  if (message.nonce !== undefined && message.nonce !== BigInt("0")) {
1342
1429
  obj.nonce = message.nonce.toString();
1343
1430
  }
1344
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1345
- obj.transactionIndex = message.transactionIndex.toString();
1346
- }
1347
1431
  if (message.from !== undefined) {
1348
1432
  obj.from = Address.toJSON(message.from);
1349
1433
  }
@@ -1357,7 +1441,7 @@ export const Transaction = {
1357
1441
  obj.gasPrice = U128.toJSON(message.gasPrice);
1358
1442
  }
1359
1443
  if (message.gas !== undefined) {
1360
- obj.gas = U256.toJSON(message.gas);
1444
+ obj.gas = U128.toJSON(message.gas);
1361
1445
  }
1362
1446
  if (message.maxFeePerGas !== undefined) {
1363
1447
  obj.maxFeePerGas = U128.toJSON(message.maxFeePerGas);
@@ -1371,7 +1455,7 @@ export const Transaction = {
1371
1455
  if (message.signature !== undefined) {
1372
1456
  obj.signature = Signature.toJSON(message.signature);
1373
1457
  }
1374
- if (message.chainId !== undefined && message.chainId !== BigInt("0")) {
1458
+ if (message.chainId !== undefined) {
1375
1459
  obj.chainId = message.chainId.toString();
1376
1460
  }
1377
1461
  if (message.accessList?.length) {
@@ -1386,6 +1470,9 @@ export const Transaction = {
1386
1470
  if (message.blobVersionedHashes?.length) {
1387
1471
  obj.blobVersionedHashes = message.blobVersionedHashes.map((e) => B256.toJSON(e));
1388
1472
  }
1473
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1474
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1475
+ }
1389
1476
  return obj;
1390
1477
  },
1391
1478
 
@@ -1394,16 +1481,19 @@ export const Transaction = {
1394
1481
  },
1395
1482
  fromPartial(object: DeepPartial<Transaction>): Transaction {
1396
1483
  const message = createBaseTransaction() as any;
1397
- message.hash = (object.hash !== undefined && object.hash !== null) ? B256.fromPartial(object.hash) : undefined;
1484
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1485
+ message.transactionIndex = object.transactionIndex ?? 0;
1486
+ message.transactionHash = (object.transactionHash !== undefined && object.transactionHash !== null)
1487
+ ? B256.fromPartial(object.transactionHash)
1488
+ : undefined;
1398
1489
  message.nonce = object.nonce ?? BigInt("0");
1399
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
1400
1490
  message.from = (object.from !== undefined && object.from !== null) ? Address.fromPartial(object.from) : undefined;
1401
1491
  message.to = (object.to !== undefined && object.to !== null) ? Address.fromPartial(object.to) : undefined;
1402
1492
  message.value = (object.value !== undefined && object.value !== null) ? U256.fromPartial(object.value) : undefined;
1403
1493
  message.gasPrice = (object.gasPrice !== undefined && object.gasPrice !== null)
1404
1494
  ? U128.fromPartial(object.gasPrice)
1405
1495
  : undefined;
1406
- message.gas = (object.gas !== undefined && object.gas !== null) ? U256.fromPartial(object.gas) : undefined;
1496
+ message.gas = (object.gas !== undefined && object.gas !== null) ? U128.fromPartial(object.gas) : undefined;
1407
1497
  message.maxFeePerGas = (object.maxFeePerGas !== undefined && object.maxFeePerGas !== null)
1408
1498
  ? U128.fromPartial(object.maxFeePerGas)
1409
1499
  : undefined;
@@ -1414,21 +1504,23 @@ export const Transaction = {
1414
1504
  message.signature = (object.signature !== undefined && object.signature !== null)
1415
1505
  ? Signature.fromPartial(object.signature)
1416
1506
  : undefined;
1417
- message.chainId = object.chainId ?? BigInt("0");
1507
+ message.chainId = object.chainId ?? undefined;
1418
1508
  message.accessList = object.accessList?.map((e) => AccessListItem.fromPartial(e)) || [];
1419
1509
  message.transactionType = object.transactionType ?? BigInt("0");
1420
1510
  message.maxFeePerBlobGas = (object.maxFeePerBlobGas !== undefined && object.maxFeePerBlobGas !== null)
1421
1511
  ? U128.fromPartial(object.maxFeePerBlobGas)
1422
1512
  : undefined;
1423
1513
  message.blobVersionedHashes = object.blobVersionedHashes?.map((e) => B256.fromPartial(e)) || [];
1514
+ message.transactionStatus = object.transactionStatus ?? 0;
1424
1515
  return message;
1425
1516
  },
1426
1517
  };
1427
1518
 
1428
1519
  function createBaseTransactionReceipt(): TransactionReceipt {
1429
1520
  return {
1521
+ filterIds: [],
1522
+ transactionIndex: 0,
1430
1523
  transactionHash: undefined,
1431
- transactionIndex: BigInt("0"),
1432
1524
  cumulativeGasUsed: undefined,
1433
1525
  gasUsed: undefined,
1434
1526
  effectiveGasPrice: undefined,
@@ -1436,50 +1528,48 @@ function createBaseTransactionReceipt(): TransactionReceipt {
1436
1528
  to: undefined,
1437
1529
  contractAddress: undefined,
1438
1530
  logsBloom: undefined,
1439
- statusCode: BigInt("0"),
1440
1531
  transactionType: BigInt("0"),
1441
1532
  blobGasUsed: undefined,
1442
1533
  blobGasPrice: undefined,
1534
+ transactionStatus: 0,
1443
1535
  };
1444
1536
  }
1445
1537
 
1446
1538
  export const TransactionReceipt = {
1447
1539
  encode(message: TransactionReceipt, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1448
- if (message.transactionHash !== undefined) {
1449
- B256.encode(message.transactionHash, writer.uint32(10).fork()).ldelim();
1450
- }
1451
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1452
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1453
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1540
+ if (message.filterIds !== undefined && message.filterIds.length !== 0) {
1541
+ writer.uint32(10).fork();
1542
+ for (const v of message.filterIds) {
1543
+ writer.uint32(v);
1454
1544
  }
1455
- writer.uint32(16).uint64(message.transactionIndex.toString());
1545
+ writer.ldelim();
1546
+ }
1547
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1548
+ writer.uint32(16).uint32(message.transactionIndex);
1549
+ }
1550
+ if (message.transactionHash !== undefined) {
1551
+ B256.encode(message.transactionHash, writer.uint32(26).fork()).ldelim();
1456
1552
  }
1457
1553
  if (message.cumulativeGasUsed !== undefined) {
1458
- U256.encode(message.cumulativeGasUsed, writer.uint32(26).fork()).ldelim();
1554
+ U128.encode(message.cumulativeGasUsed, writer.uint32(34).fork()).ldelim();
1459
1555
  }
1460
1556
  if (message.gasUsed !== undefined) {
1461
- U256.encode(message.gasUsed, writer.uint32(34).fork()).ldelim();
1557
+ U128.encode(message.gasUsed, writer.uint32(42).fork()).ldelim();
1462
1558
  }
1463
1559
  if (message.effectiveGasPrice !== undefined) {
1464
- U128.encode(message.effectiveGasPrice, writer.uint32(42).fork()).ldelim();
1560
+ U128.encode(message.effectiveGasPrice, writer.uint32(50).fork()).ldelim();
1465
1561
  }
1466
1562
  if (message.from !== undefined) {
1467
- Address.encode(message.from, writer.uint32(50).fork()).ldelim();
1563
+ Address.encode(message.from, writer.uint32(58).fork()).ldelim();
1468
1564
  }
1469
1565
  if (message.to !== undefined) {
1470
- Address.encode(message.to, writer.uint32(58).fork()).ldelim();
1566
+ Address.encode(message.to, writer.uint32(66).fork()).ldelim();
1471
1567
  }
1472
1568
  if (message.contractAddress !== undefined) {
1473
- Address.encode(message.contractAddress, writer.uint32(66).fork()).ldelim();
1569
+ Address.encode(message.contractAddress, writer.uint32(74).fork()).ldelim();
1474
1570
  }
1475
1571
  if (message.logsBloom !== undefined) {
1476
- Bloom.encode(message.logsBloom, writer.uint32(74).fork()).ldelim();
1477
- }
1478
- if (message.statusCode !== undefined && message.statusCode !== BigInt("0")) {
1479
- if (BigInt.asUintN(64, message.statusCode) !== message.statusCode) {
1480
- throw new globalThis.Error("value provided for field message.statusCode of type uint64 too large");
1481
- }
1482
- writer.uint32(80).uint64(message.statusCode.toString());
1572
+ Bloom.encode(message.logsBloom, writer.uint32(82).fork()).ldelim();
1483
1573
  }
1484
1574
  if (message.transactionType !== undefined && message.transactionType !== BigInt("0")) {
1485
1575
  if (BigInt.asUintN(64, message.transactionType) !== message.transactionType) {
@@ -1493,6 +1583,9 @@ export const TransactionReceipt = {
1493
1583
  if (message.blobGasPrice !== undefined) {
1494
1584
  U128.encode(message.blobGasPrice, writer.uint32(106).fork()).ldelim();
1495
1585
  }
1586
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1587
+ writer.uint32(112).int32(message.transactionStatus);
1588
+ }
1496
1589
  return writer;
1497
1590
  },
1498
1591
 
@@ -1504,74 +1597,84 @@ export const TransactionReceipt = {
1504
1597
  const tag = reader.uint32();
1505
1598
  switch (tag >>> 3) {
1506
1599
  case 1:
1507
- if (tag !== 10) {
1508
- break;
1600
+ if (tag === 8) {
1601
+ message.filterIds!.push(reader.uint32());
1602
+
1603
+ continue;
1509
1604
  }
1510
1605
 
1511
- message.transactionHash = B256.decode(reader, reader.uint32());
1512
- continue;
1606
+ if (tag === 10) {
1607
+ const end2 = reader.uint32() + reader.pos;
1608
+ while (reader.pos < end2) {
1609
+ message.filterIds!.push(reader.uint32());
1610
+ }
1611
+
1612
+ continue;
1613
+ }
1614
+
1615
+ break;
1513
1616
  case 2:
1514
1617
  if (tag !== 16) {
1515
1618
  break;
1516
1619
  }
1517
1620
 
1518
- message.transactionIndex = longToBigint(reader.uint64() as Long);
1621
+ message.transactionIndex = reader.uint32();
1519
1622
  continue;
1520
1623
  case 3:
1521
1624
  if (tag !== 26) {
1522
1625
  break;
1523
1626
  }
1524
1627
 
1525
- message.cumulativeGasUsed = U256.decode(reader, reader.uint32());
1628
+ message.transactionHash = B256.decode(reader, reader.uint32());
1526
1629
  continue;
1527
1630
  case 4:
1528
1631
  if (tag !== 34) {
1529
1632
  break;
1530
1633
  }
1531
1634
 
1532
- message.gasUsed = U256.decode(reader, reader.uint32());
1635
+ message.cumulativeGasUsed = U128.decode(reader, reader.uint32());
1533
1636
  continue;
1534
1637
  case 5:
1535
1638
  if (tag !== 42) {
1536
1639
  break;
1537
1640
  }
1538
1641
 
1539
- message.effectiveGasPrice = U128.decode(reader, reader.uint32());
1642
+ message.gasUsed = U128.decode(reader, reader.uint32());
1540
1643
  continue;
1541
1644
  case 6:
1542
1645
  if (tag !== 50) {
1543
1646
  break;
1544
1647
  }
1545
1648
 
1546
- message.from = Address.decode(reader, reader.uint32());
1649
+ message.effectiveGasPrice = U128.decode(reader, reader.uint32());
1547
1650
  continue;
1548
1651
  case 7:
1549
1652
  if (tag !== 58) {
1550
1653
  break;
1551
1654
  }
1552
1655
 
1553
- message.to = Address.decode(reader, reader.uint32());
1656
+ message.from = Address.decode(reader, reader.uint32());
1554
1657
  continue;
1555
1658
  case 8:
1556
1659
  if (tag !== 66) {
1557
1660
  break;
1558
1661
  }
1559
1662
 
1560
- message.contractAddress = Address.decode(reader, reader.uint32());
1663
+ message.to = Address.decode(reader, reader.uint32());
1561
1664
  continue;
1562
1665
  case 9:
1563
1666
  if (tag !== 74) {
1564
1667
  break;
1565
1668
  }
1566
1669
 
1567
- message.logsBloom = Bloom.decode(reader, reader.uint32());
1670
+ message.contractAddress = Address.decode(reader, reader.uint32());
1568
1671
  continue;
1569
1672
  case 10:
1570
- if (tag !== 80) {
1673
+ if (tag !== 82) {
1571
1674
  break;
1572
1675
  }
1573
1676
 
1574
- message.statusCode = longToBigint(reader.uint64() as Long);
1677
+ message.logsBloom = Bloom.decode(reader, reader.uint32());
1575
1678
  continue;
1576
1679
  case 11:
1577
1680
  if (tag !== 88) {
@@ -1594,6 +1697,13 @@ export const TransactionReceipt = {
1594
1697
 
1595
1698
  message.blobGasPrice = U128.decode(reader, reader.uint32());
1596
1699
  continue;
1700
+ case 14:
1701
+ if (tag !== 112) {
1702
+ break;
1703
+ }
1704
+
1705
+ message.transactionStatus = reader.int32() as any;
1706
+ continue;
1597
1707
  }
1598
1708
  if ((tag & 7) === 4 || tag === 0) {
1599
1709
  break;
@@ -1605,35 +1715,41 @@ export const TransactionReceipt = {
1605
1715
 
1606
1716
  fromJSON(object: any): TransactionReceipt {
1607
1717
  return {
1718
+ filterIds: globalThis.Array.isArray(object?.filterIds)
1719
+ ? object.filterIds.map((e: any) => globalThis.Number(e))
1720
+ : [],
1721
+ transactionIndex: isSet(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1608
1722
  transactionHash: isSet(object.transactionHash) ? B256.fromJSON(object.transactionHash) : undefined,
1609
- transactionIndex: isSet(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1610
- cumulativeGasUsed: isSet(object.cumulativeGasUsed) ? U256.fromJSON(object.cumulativeGasUsed) : undefined,
1611
- gasUsed: isSet(object.gasUsed) ? U256.fromJSON(object.gasUsed) : undefined,
1723
+ cumulativeGasUsed: isSet(object.cumulativeGasUsed) ? U128.fromJSON(object.cumulativeGasUsed) : undefined,
1724
+ gasUsed: isSet(object.gasUsed) ? U128.fromJSON(object.gasUsed) : undefined,
1612
1725
  effectiveGasPrice: isSet(object.effectiveGasPrice) ? U128.fromJSON(object.effectiveGasPrice) : undefined,
1613
1726
  from: isSet(object.from) ? Address.fromJSON(object.from) : undefined,
1614
1727
  to: isSet(object.to) ? Address.fromJSON(object.to) : undefined,
1615
1728
  contractAddress: isSet(object.contractAddress) ? Address.fromJSON(object.contractAddress) : undefined,
1616
1729
  logsBloom: isSet(object.logsBloom) ? Bloom.fromJSON(object.logsBloom) : undefined,
1617
- statusCode: isSet(object.statusCode) ? BigInt(object.statusCode) : BigInt("0"),
1618
1730
  transactionType: isSet(object.transactionType) ? BigInt(object.transactionType) : BigInt("0"),
1619
1731
  blobGasUsed: isSet(object.blobGasUsed) ? U128.fromJSON(object.blobGasUsed) : undefined,
1620
1732
  blobGasPrice: isSet(object.blobGasPrice) ? U128.fromJSON(object.blobGasPrice) : undefined,
1733
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
1621
1734
  };
1622
1735
  },
1623
1736
 
1624
1737
  toJSON(message: TransactionReceipt): unknown {
1625
1738
  const obj: any = {};
1739
+ if (message.filterIds?.length) {
1740
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1741
+ }
1742
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1743
+ obj.transactionIndex = Math.round(message.transactionIndex);
1744
+ }
1626
1745
  if (message.transactionHash !== undefined) {
1627
1746
  obj.transactionHash = B256.toJSON(message.transactionHash);
1628
1747
  }
1629
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1630
- obj.transactionIndex = message.transactionIndex.toString();
1631
- }
1632
1748
  if (message.cumulativeGasUsed !== undefined) {
1633
- obj.cumulativeGasUsed = U256.toJSON(message.cumulativeGasUsed);
1749
+ obj.cumulativeGasUsed = U128.toJSON(message.cumulativeGasUsed);
1634
1750
  }
1635
1751
  if (message.gasUsed !== undefined) {
1636
- obj.gasUsed = U256.toJSON(message.gasUsed);
1752
+ obj.gasUsed = U128.toJSON(message.gasUsed);
1637
1753
  }
1638
1754
  if (message.effectiveGasPrice !== undefined) {
1639
1755
  obj.effectiveGasPrice = U128.toJSON(message.effectiveGasPrice);
@@ -1650,9 +1766,6 @@ export const TransactionReceipt = {
1650
1766
  if (message.logsBloom !== undefined) {
1651
1767
  obj.logsBloom = Bloom.toJSON(message.logsBloom);
1652
1768
  }
1653
- if (message.statusCode !== undefined && message.statusCode !== BigInt("0")) {
1654
- obj.statusCode = message.statusCode.toString();
1655
- }
1656
1769
  if (message.transactionType !== undefined && message.transactionType !== BigInt("0")) {
1657
1770
  obj.transactionType = message.transactionType.toString();
1658
1771
  }
@@ -1662,6 +1775,9 @@ export const TransactionReceipt = {
1662
1775
  if (message.blobGasPrice !== undefined) {
1663
1776
  obj.blobGasPrice = U128.toJSON(message.blobGasPrice);
1664
1777
  }
1778
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1779
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1780
+ }
1665
1781
  return obj;
1666
1782
  },
1667
1783
 
@@ -1670,15 +1786,16 @@ export const TransactionReceipt = {
1670
1786
  },
1671
1787
  fromPartial(object: DeepPartial<TransactionReceipt>): TransactionReceipt {
1672
1788
  const message = createBaseTransactionReceipt() as any;
1789
+ message.filterIds = object.filterIds?.map((e) => e) || [];
1790
+ message.transactionIndex = object.transactionIndex ?? 0;
1673
1791
  message.transactionHash = (object.transactionHash !== undefined && object.transactionHash !== null)
1674
1792
  ? B256.fromPartial(object.transactionHash)
1675
1793
  : undefined;
1676
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
1677
1794
  message.cumulativeGasUsed = (object.cumulativeGasUsed !== undefined && object.cumulativeGasUsed !== null)
1678
- ? U256.fromPartial(object.cumulativeGasUsed)
1795
+ ? U128.fromPartial(object.cumulativeGasUsed)
1679
1796
  : undefined;
1680
1797
  message.gasUsed = (object.gasUsed !== undefined && object.gasUsed !== null)
1681
- ? U256.fromPartial(object.gasUsed)
1798
+ ? U128.fromPartial(object.gasUsed)
1682
1799
  : undefined;
1683
1800
  message.effectiveGasPrice = (object.effectiveGasPrice !== undefined && object.effectiveGasPrice !== null)
1684
1801
  ? U128.fromPartial(object.effectiveGasPrice)
@@ -1691,7 +1808,6 @@ export const TransactionReceipt = {
1691
1808
  message.logsBloom = (object.logsBloom !== undefined && object.logsBloom !== null)
1692
1809
  ? Bloom.fromPartial(object.logsBloom)
1693
1810
  : undefined;
1694
- message.statusCode = object.statusCode ?? BigInt("0");
1695
1811
  message.transactionType = object.transactionType ?? BigInt("0");
1696
1812
  message.blobGasUsed = (object.blobGasUsed !== undefined && object.blobGasUsed !== null)
1697
1813
  ? U128.fromPartial(object.blobGasUsed)
@@ -1699,48 +1815,55 @@ export const TransactionReceipt = {
1699
1815
  message.blobGasPrice = (object.blobGasPrice !== undefined && object.blobGasPrice !== null)
1700
1816
  ? U128.fromPartial(object.blobGasPrice)
1701
1817
  : undefined;
1818
+ message.transactionStatus = object.transactionStatus ?? 0;
1702
1819
  return message;
1703
1820
  },
1704
1821
  };
1705
1822
 
1706
1823
  function createBaseLog(): Log {
1707
1824
  return {
1825
+ filterIds: [],
1826
+ logIndex: 0,
1708
1827
  address: undefined,
1709
1828
  topics: [],
1710
1829
  data: new Uint8Array(0),
1711
- logIndex: BigInt("0"),
1712
- transactionIndex: BigInt("0"),
1830
+ transactionIndex: 0,
1713
1831
  transactionHash: undefined,
1832
+ transactionStatus: 0,
1714
1833
  };
1715
1834
  }
1716
1835
 
1717
1836
  export const Log = {
1718
1837
  encode(message: Log, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
1838
+ if (message.filterIds !== undefined && message.filterIds.length !== 0) {
1839
+ writer.uint32(10).fork();
1840
+ for (const v of message.filterIds) {
1841
+ writer.uint32(v);
1842
+ }
1843
+ writer.ldelim();
1844
+ }
1845
+ if (message.logIndex !== undefined && message.logIndex !== 0) {
1846
+ writer.uint32(16).uint32(message.logIndex);
1847
+ }
1719
1848
  if (message.address !== undefined) {
1720
- Address.encode(message.address, writer.uint32(10).fork()).ldelim();
1849
+ Address.encode(message.address, writer.uint32(26).fork()).ldelim();
1721
1850
  }
1722
1851
  if (message.topics !== undefined && message.topics.length !== 0) {
1723
1852
  for (const v of message.topics) {
1724
- B256.encode(v!, writer.uint32(18).fork()).ldelim();
1853
+ B256.encode(v!, writer.uint32(34).fork()).ldelim();
1725
1854
  }
1726
1855
  }
1727
1856
  if (message.data !== undefined && message.data.length !== 0) {
1728
- writer.uint32(26).bytes(message.data);
1729
- }
1730
- if (message.logIndex !== undefined && message.logIndex !== BigInt("0")) {
1731
- if (BigInt.asUintN(64, message.logIndex) !== message.logIndex) {
1732
- throw new globalThis.Error("value provided for field message.logIndex of type uint64 too large");
1733
- }
1734
- writer.uint32(32).uint64(message.logIndex.toString());
1857
+ writer.uint32(42).bytes(message.data);
1735
1858
  }
1736
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1737
- if (BigInt.asUintN(64, message.transactionIndex) !== message.transactionIndex) {
1738
- throw new globalThis.Error("value provided for field message.transactionIndex of type uint64 too large");
1739
- }
1740
- writer.uint32(40).uint64(message.transactionIndex.toString());
1859
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1860
+ writer.uint32(48).uint32(message.transactionIndex);
1741
1861
  }
1742
1862
  if (message.transactionHash !== undefined) {
1743
- B256.encode(message.transactionHash, writer.uint32(50).fork()).ldelim();
1863
+ B256.encode(message.transactionHash, writer.uint32(58).fork()).ldelim();
1864
+ }
1865
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1866
+ writer.uint32(64).int32(message.transactionStatus);
1744
1867
  }
1745
1868
  return writer;
1746
1869
  },
@@ -1753,47 +1876,71 @@ export const Log = {
1753
1876
  const tag = reader.uint32();
1754
1877
  switch (tag >>> 3) {
1755
1878
  case 1:
1756
- if (tag !== 10) {
1757
- break;
1879
+ if (tag === 8) {
1880
+ message.filterIds!.push(reader.uint32());
1881
+
1882
+ continue;
1758
1883
  }
1759
1884
 
1760
- message.address = Address.decode(reader, reader.uint32());
1761
- continue;
1885
+ if (tag === 10) {
1886
+ const end2 = reader.uint32() + reader.pos;
1887
+ while (reader.pos < end2) {
1888
+ message.filterIds!.push(reader.uint32());
1889
+ }
1890
+
1891
+ continue;
1892
+ }
1893
+
1894
+ break;
1762
1895
  case 2:
1763
- if (tag !== 18) {
1896
+ if (tag !== 16) {
1764
1897
  break;
1765
1898
  }
1766
1899
 
1767
- message.topics!.push(B256.decode(reader, reader.uint32()));
1900
+ message.logIndex = reader.uint32();
1768
1901
  continue;
1769
1902
  case 3:
1770
1903
  if (tag !== 26) {
1771
1904
  break;
1772
1905
  }
1773
1906
 
1774
- message.data = reader.bytes();
1907
+ message.address = Address.decode(reader, reader.uint32());
1775
1908
  continue;
1776
1909
  case 4:
1777
- if (tag !== 32) {
1910
+ if (tag !== 34) {
1778
1911
  break;
1779
1912
  }
1780
1913
 
1781
- message.logIndex = longToBigint(reader.uint64() as Long);
1914
+ message.topics!.push(B256.decode(reader, reader.uint32()));
1782
1915
  continue;
1783
1916
  case 5:
1784
- if (tag !== 40) {
1917
+ if (tag !== 42) {
1785
1918
  break;
1786
1919
  }
1787
1920
 
1788
- message.transactionIndex = longToBigint(reader.uint64() as Long);
1921
+ message.data = reader.bytes();
1789
1922
  continue;
1790
1923
  case 6:
1791
- if (tag !== 50) {
1924
+ if (tag !== 48) {
1925
+ break;
1926
+ }
1927
+
1928
+ message.transactionIndex = reader.uint32();
1929
+ continue;
1930
+ case 7:
1931
+ if (tag !== 58) {
1792
1932
  break;
1793
1933
  }
1794
1934
 
1795
1935
  message.transactionHash = B256.decode(reader, reader.uint32());
1796
1936
  continue;
1937
+ case 8:
1938
+ if (tag !== 64) {
1939
+ break;
1940
+ }
1941
+
1942
+ message.transactionStatus = reader.int32() as any;
1943
+ continue;
1797
1944
  }
1798
1945
  if ((tag & 7) === 4 || tag === 0) {
1799
1946
  break;
@@ -1805,17 +1952,27 @@ export const Log = {
1805
1952
 
1806
1953
  fromJSON(object: any): Log {
1807
1954
  return {
1955
+ filterIds: globalThis.Array.isArray(object?.filterIds)
1956
+ ? object.filterIds.map((e: any) => globalThis.Number(e))
1957
+ : [],
1958
+ logIndex: isSet(object.logIndex) ? globalThis.Number(object.logIndex) : 0,
1808
1959
  address: isSet(object.address) ? Address.fromJSON(object.address) : undefined,
1809
1960
  topics: globalThis.Array.isArray(object?.topics) ? object.topics.map((e: any) => B256.fromJSON(e)) : [],
1810
1961
  data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
1811
- logIndex: isSet(object.logIndex) ? BigInt(object.logIndex) : BigInt("0"),
1812
- transactionIndex: isSet(object.transactionIndex) ? BigInt(object.transactionIndex) : BigInt("0"),
1962
+ transactionIndex: isSet(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1813
1963
  transactionHash: isSet(object.transactionHash) ? B256.fromJSON(object.transactionHash) : undefined,
1964
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
1814
1965
  };
1815
1966
  },
1816
1967
 
1817
1968
  toJSON(message: Log): unknown {
1818
1969
  const obj: any = {};
1970
+ if (message.filterIds?.length) {
1971
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
1972
+ }
1973
+ if (message.logIndex !== undefined && message.logIndex !== 0) {
1974
+ obj.logIndex = Math.round(message.logIndex);
1975
+ }
1819
1976
  if (message.address !== undefined) {
1820
1977
  obj.address = Address.toJSON(message.address);
1821
1978
  }
@@ -1825,15 +1982,15 @@ export const Log = {
1825
1982
  if (message.data !== undefined && message.data.length !== 0) {
1826
1983
  obj.data = base64FromBytes(message.data);
1827
1984
  }
1828
- if (message.logIndex !== undefined && message.logIndex !== BigInt("0")) {
1829
- obj.logIndex = message.logIndex.toString();
1830
- }
1831
- if (message.transactionIndex !== undefined && message.transactionIndex !== BigInt("0")) {
1832
- obj.transactionIndex = message.transactionIndex.toString();
1985
+ if (message.transactionIndex !== undefined && message.transactionIndex !== 0) {
1986
+ obj.transactionIndex = Math.round(message.transactionIndex);
1833
1987
  }
1834
1988
  if (message.transactionHash !== undefined) {
1835
1989
  obj.transactionHash = B256.toJSON(message.transactionHash);
1836
1990
  }
1991
+ if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
1992
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1993
+ }
1837
1994
  return obj;
1838
1995
  },
1839
1996
 
@@ -1842,22 +1999,24 @@ export const Log = {
1842
1999
  },
1843
2000
  fromPartial(object: DeepPartial<Log>): Log {
1844
2001
  const message = createBaseLog() as any;
2002
+ message.filterIds = object.filterIds?.map((e) => e) || [];
2003
+ message.logIndex = object.logIndex ?? 0;
1845
2004
  message.address = (object.address !== undefined && object.address !== null)
1846
2005
  ? Address.fromPartial(object.address)
1847
2006
  : undefined;
1848
2007
  message.topics = object.topics?.map((e) => B256.fromPartial(e)) || [];
1849
2008
  message.data = object.data ?? new Uint8Array(0);
1850
- message.logIndex = object.logIndex ?? BigInt("0");
1851
- message.transactionIndex = object.transactionIndex ?? BigInt("0");
2009
+ message.transactionIndex = object.transactionIndex ?? 0;
1852
2010
  message.transactionHash = (object.transactionHash !== undefined && object.transactionHash !== null)
1853
2011
  ? B256.fromPartial(object.transactionHash)
1854
2012
  : undefined;
2013
+ message.transactionStatus = object.transactionStatus ?? 0;
1855
2014
  return message;
1856
2015
  },
1857
2016
  };
1858
2017
 
1859
2018
  function createBaseSignature(): Signature {
1860
- return { r: undefined, s: undefined, v: undefined, yParity: false };
2019
+ return { r: undefined, s: undefined, v: undefined, yParity: undefined };
1861
2020
  }
1862
2021
 
1863
2022
  export const Signature = {
@@ -1871,7 +2030,7 @@ export const Signature = {
1871
2030
  if (message.v !== undefined) {
1872
2031
  U256.encode(message.v, writer.uint32(26).fork()).ldelim();
1873
2032
  }
1874
- if (message.yParity !== undefined && message.yParity !== false) {
2033
+ if (message.yParity !== undefined) {
1875
2034
  writer.uint32(32).bool(message.yParity);
1876
2035
  }
1877
2036
  return writer;
@@ -1926,7 +2085,7 @@ export const Signature = {
1926
2085
  r: isSet(object.r) ? U256.fromJSON(object.r) : undefined,
1927
2086
  s: isSet(object.s) ? U256.fromJSON(object.s) : undefined,
1928
2087
  v: isSet(object.v) ? U256.fromJSON(object.v) : undefined,
1929
- yParity: isSet(object.yParity) ? globalThis.Boolean(object.yParity) : false,
2088
+ yParity: isSet(object.yParity) ? globalThis.Boolean(object.yParity) : undefined,
1930
2089
  };
1931
2090
  },
1932
2091
 
@@ -1941,7 +2100,7 @@ export const Signature = {
1941
2100
  if (message.v !== undefined) {
1942
2101
  obj.v = U256.toJSON(message.v);
1943
2102
  }
1944
- if (message.yParity !== undefined && message.yParity !== false) {
2103
+ if (message.yParity !== undefined) {
1945
2104
  obj.yParity = message.yParity;
1946
2105
  }
1947
2106
  return obj;
@@ -1955,7 +2114,7 @@ export const Signature = {
1955
2114
  message.r = (object.r !== undefined && object.r !== null) ? U256.fromPartial(object.r) : undefined;
1956
2115
  message.s = (object.s !== undefined && object.s !== null) ? U256.fromPartial(object.s) : undefined;
1957
2116
  message.v = (object.v !== undefined && object.v !== null) ? U256.fromPartial(object.v) : undefined;
1958
- message.yParity = object.yParity ?? false;
2117
+ message.yParity = object.yParity ?? undefined;
1959
2118
  return message;
1960
2119
  },
1961
2120
  };