@apibara/starknet 2.0.0-beta.2 → 2.0.0-beta.20

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
@@ -3,7 +3,7 @@
3
3
  const protocol = require('@apibara/protocol');
4
4
  const schema = require('@effect/schema');
5
5
  const Long = require('long');
6
- const _m0 = require('protobufjs/minimal');
6
+ const _m0 = require('protobufjs/minimal.js');
7
7
 
8
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
9
9
 
@@ -15,28 +15,28 @@ const _FieldElement = schema.Schema.TemplateLiteral(
15
15
  schema.Schema.String
16
16
  );
17
17
  const FieldElementProto = schema.Schema.Struct({
18
- loLo: schema.Schema.BigIntFromSelf,
19
- loHi: schema.Schema.BigIntFromSelf,
20
- hiLo: schema.Schema.BigIntFromSelf,
21
- hiHi: schema.Schema.BigIntFromSelf
18
+ x0: schema.Schema.BigIntFromSelf,
19
+ x1: schema.Schema.BigIntFromSelf,
20
+ x2: schema.Schema.BigIntFromSelf,
21
+ x3: schema.Schema.BigIntFromSelf
22
22
  });
23
23
  const FieldElement$1 = schema.Schema.transform(FieldElementProto, _FieldElement, {
24
24
  decode(value) {
25
- const loLo = value.loLo.toString(16).padStart(16, "0");
26
- const loHi = value.loHi.toString(16).padStart(16, "0");
27
- const hiLo = value.hiLo.toString(16).padStart(16, "0");
28
- const hiHi = value.hiHi.toString(16).padStart(16, "0");
29
- return `0x${loLo}${loHi}${hiLo}${hiHi}`;
25
+ const x0 = value.x0.toString(16).padStart(16, "0");
26
+ const x1 = value.x1.toString(16).padStart(16, "0");
27
+ const x2 = value.x2.toString(16).padStart(16, "0");
28
+ const x3 = value.x3.toString(16).padStart(16, "0");
29
+ return `0x${x0}${x1}${x2}${x3}`;
30
30
  },
31
31
  encode(value) {
32
32
  const bn = BigInt(value);
33
33
  const hex = bn.toString(16).padStart(64, "0");
34
34
  const s = hex.length;
35
- const hiHi = BigInt(`0x${hex.slice(s - 16, s)}`);
36
- const hiLo = BigInt(`0x${hex.slice(s - 32, s - 16)}`);
37
- const loHi = BigInt(`0x${hex.slice(s - 48, s - 32)}`);
38
- const loLo = BigInt(`0x${hex.slice(s - 64, s - 48)}`);
39
- return { loLo, loHi, hiLo, hiHi };
35
+ const x3 = BigInt(`0x${hex.slice(s - 16, s)}`);
36
+ const x2 = BigInt(`0x${hex.slice(s - 32, s - 16)}`);
37
+ const x1 = BigInt(`0x${hex.slice(s - 48, s - 32)}`);
38
+ const x0 = BigInt(`0x${hex.slice(s - 64, s - 48)}`);
39
+ return { x0, x1, x2, x3 };
40
40
  }
41
41
  });
42
42
  const feltToProto = schema.Schema.encodeSync(FieldElement$1);
@@ -51,33 +51,33 @@ function tag(tag2) {
51
51
 
52
52
  const protobufPackage$2 = "starknet.v2";
53
53
  function createBaseFieldElement() {
54
- return { loLo: BigInt("0"), loHi: BigInt("0"), hiLo: BigInt("0"), hiHi: BigInt("0") };
54
+ return { x0: BigInt("0"), x1: BigInt("0"), x2: BigInt("0"), x3: BigInt("0") };
55
55
  }
56
56
  const FieldElement = {
57
57
  encode(message, writer = _m0__default.Writer.create()) {
58
- if (message.loLo !== void 0 && message.loLo !== BigInt("0")) {
59
- if (BigInt.asUintN(64, message.loLo) !== message.loLo) {
60
- throw new globalThis.Error("value provided for field message.loLo of type fixed64 too large");
58
+ if (message.x0 !== void 0 && message.x0 !== BigInt("0")) {
59
+ if (BigInt.asUintN(64, message.x0) !== message.x0) {
60
+ throw new globalThis.Error("value provided for field message.x0 of type fixed64 too large");
61
61
  }
62
- writer.uint32(9).fixed64(message.loLo.toString());
62
+ writer.uint32(9).fixed64(message.x0.toString());
63
63
  }
64
- if (message.loHi !== void 0 && message.loHi !== BigInt("0")) {
65
- if (BigInt.asUintN(64, message.loHi) !== message.loHi) {
66
- throw new globalThis.Error("value provided for field message.loHi of type fixed64 too large");
64
+ if (message.x1 !== void 0 && message.x1 !== BigInt("0")) {
65
+ if (BigInt.asUintN(64, message.x1) !== message.x1) {
66
+ throw new globalThis.Error("value provided for field message.x1 of type fixed64 too large");
67
67
  }
68
- writer.uint32(17).fixed64(message.loHi.toString());
68
+ writer.uint32(17).fixed64(message.x1.toString());
69
69
  }
70
- if (message.hiLo !== void 0 && message.hiLo !== BigInt("0")) {
71
- if (BigInt.asUintN(64, message.hiLo) !== message.hiLo) {
72
- throw new globalThis.Error("value provided for field message.hiLo of type fixed64 too large");
70
+ if (message.x2 !== void 0 && message.x2 !== BigInt("0")) {
71
+ if (BigInt.asUintN(64, message.x2) !== message.x2) {
72
+ throw new globalThis.Error("value provided for field message.x2 of type fixed64 too large");
73
73
  }
74
- writer.uint32(25).fixed64(message.hiLo.toString());
74
+ writer.uint32(25).fixed64(message.x2.toString());
75
75
  }
76
- if (message.hiHi !== void 0 && message.hiHi !== BigInt("0")) {
77
- if (BigInt.asUintN(64, message.hiHi) !== message.hiHi) {
78
- throw new globalThis.Error("value provided for field message.hiHi of type fixed64 too large");
76
+ if (message.x3 !== void 0 && message.x3 !== BigInt("0")) {
77
+ if (BigInt.asUintN(64, message.x3) !== message.x3) {
78
+ throw new globalThis.Error("value provided for field message.x3 of type fixed64 too large");
79
79
  }
80
- writer.uint32(33).fixed64(message.hiHi.toString());
80
+ writer.uint32(33).fixed64(message.x3.toString());
81
81
  }
82
82
  return writer;
83
83
  },
@@ -92,25 +92,25 @@ const FieldElement = {
92
92
  if (tag !== 9) {
93
93
  break;
94
94
  }
95
- message.loLo = longToBigint$2(reader.fixed64());
95
+ message.x0 = longToBigint$2(reader.fixed64());
96
96
  continue;
97
97
  case 2:
98
98
  if (tag !== 17) {
99
99
  break;
100
100
  }
101
- message.loHi = longToBigint$2(reader.fixed64());
101
+ message.x1 = longToBigint$2(reader.fixed64());
102
102
  continue;
103
103
  case 3:
104
104
  if (tag !== 25) {
105
105
  break;
106
106
  }
107
- message.hiLo = longToBigint$2(reader.fixed64());
107
+ message.x2 = longToBigint$2(reader.fixed64());
108
108
  continue;
109
109
  case 4:
110
110
  if (tag !== 33) {
111
111
  break;
112
112
  }
113
- message.hiHi = longToBigint$2(reader.fixed64());
113
+ message.x3 = longToBigint$2(reader.fixed64());
114
114
  continue;
115
115
  }
116
116
  if ((tag & 7) === 4 || tag === 0) {
@@ -122,25 +122,25 @@ const FieldElement = {
122
122
  },
123
123
  fromJSON(object) {
124
124
  return {
125
- loLo: isSet$3(object.loLo) ? BigInt(object.loLo) : BigInt("0"),
126
- loHi: isSet$3(object.loHi) ? BigInt(object.loHi) : BigInt("0"),
127
- hiLo: isSet$3(object.hiLo) ? BigInt(object.hiLo) : BigInt("0"),
128
- hiHi: isSet$3(object.hiHi) ? BigInt(object.hiHi) : BigInt("0")
125
+ x0: isSet$3(object.x0) ? BigInt(object.x0) : BigInt("0"),
126
+ x1: isSet$3(object.x1) ? BigInt(object.x1) : BigInt("0"),
127
+ x2: isSet$3(object.x2) ? BigInt(object.x2) : BigInt("0"),
128
+ x3: isSet$3(object.x3) ? BigInt(object.x3) : BigInt("0")
129
129
  };
130
130
  },
131
131
  toJSON(message) {
132
132
  const obj = {};
133
- if (message.loLo !== void 0 && message.loLo !== BigInt("0")) {
134
- obj.loLo = message.loLo.toString();
133
+ if (message.x0 !== void 0 && message.x0 !== BigInt("0")) {
134
+ obj.x0 = message.x0.toString();
135
135
  }
136
- if (message.loHi !== void 0 && message.loHi !== BigInt("0")) {
137
- obj.loHi = message.loHi.toString();
136
+ if (message.x1 !== void 0 && message.x1 !== BigInt("0")) {
137
+ obj.x1 = message.x1.toString();
138
138
  }
139
- if (message.hiLo !== void 0 && message.hiLo !== BigInt("0")) {
140
- obj.hiLo = message.hiLo.toString();
139
+ if (message.x2 !== void 0 && message.x2 !== BigInt("0")) {
140
+ obj.x2 = message.x2.toString();
141
141
  }
142
- if (message.hiHi !== void 0 && message.hiHi !== BigInt("0")) {
143
- obj.hiHi = message.hiHi.toString();
142
+ if (message.x3 !== void 0 && message.x3 !== BigInt("0")) {
143
+ obj.x3 = message.x3.toString();
144
144
  }
145
145
  return obj;
146
146
  },
@@ -149,10 +149,10 @@ const FieldElement = {
149
149
  },
150
150
  fromPartial(object) {
151
151
  const message = createBaseFieldElement();
152
- message.loLo = object.loLo ?? BigInt("0");
153
- message.loHi = object.loHi ?? BigInt("0");
154
- message.hiLo = object.hiLo ?? BigInt("0");
155
- message.hiHi = object.hiHi ?? BigInt("0");
152
+ message.x0 = object.x0 ?? BigInt("0");
153
+ message.x1 = object.x1 ?? BigInt("0");
154
+ message.x2 = object.x2 ?? BigInt("0");
155
+ message.x3 = object.x3 ?? BigInt("0");
156
156
  return message;
157
157
  }
158
158
  };
@@ -254,6 +254,43 @@ function isSet$2(value) {
254
254
  }
255
255
 
256
256
  const protobufPackage$1 = "starknet.v2";
257
+ var TransactionStatus$1 = /* @__PURE__ */ ((TransactionStatus2) => {
258
+ TransactionStatus2[TransactionStatus2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
259
+ TransactionStatus2[TransactionStatus2["SUCCEEDED"] = 1] = "SUCCEEDED";
260
+ TransactionStatus2[TransactionStatus2["REVERTED"] = 2] = "REVERTED";
261
+ TransactionStatus2[TransactionStatus2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
262
+ return TransactionStatus2;
263
+ })(TransactionStatus$1 || {});
264
+ function transactionStatusFromJSON(object) {
265
+ switch (object) {
266
+ case 0:
267
+ case "TRANSACTION_STATUS_UNSPECIFIED":
268
+ return 0 /* UNSPECIFIED */;
269
+ case 1:
270
+ case "TRANSACTION_STATUS_SUCCEEDED":
271
+ return 1 /* SUCCEEDED */;
272
+ case 2:
273
+ case "TRANSACTION_STATUS_REVERTED":
274
+ return 2 /* REVERTED */;
275
+ case -1:
276
+ case "UNRECOGNIZED":
277
+ default:
278
+ return -1 /* UNRECOGNIZED */;
279
+ }
280
+ }
281
+ function transactionStatusToJSON(object) {
282
+ switch (object) {
283
+ case 0 /* UNSPECIFIED */:
284
+ return "TRANSACTION_STATUS_UNSPECIFIED";
285
+ case 1 /* SUCCEEDED */:
286
+ return "TRANSACTION_STATUS_SUCCEEDED";
287
+ case 2 /* REVERTED */:
288
+ return "TRANSACTION_STATUS_REVERTED";
289
+ case -1 /* UNRECOGNIZED */:
290
+ default:
291
+ return "UNRECOGNIZED";
292
+ }
293
+ }
257
294
  var L1DataAvailabilityMode$1 = /* @__PURE__ */ ((L1DataAvailabilityMode2) => {
258
295
  L1DataAvailabilityMode2[L1DataAvailabilityMode2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
259
296
  L1DataAvailabilityMode2[L1DataAvailabilityMode2["BLOB"] = 1] = "BLOB";
@@ -403,7 +440,16 @@ function dataAvailabilityModeToJSON(object) {
403
440
  }
404
441
  }
405
442
  function createBaseBlock() {
406
- return { header: void 0, transactions: [], receipts: [], events: [], messages: [] };
443
+ return {
444
+ header: void 0,
445
+ transactions: [],
446
+ receipts: [],
447
+ events: [],
448
+ messages: [],
449
+ storageDiffs: [],
450
+ contractChanges: [],
451
+ nonceUpdates: []
452
+ };
407
453
  }
408
454
  const Block$1 = {
409
455
  encode(message, writer = _m0__default.Writer.create()) {
@@ -430,6 +476,21 @@ const Block$1 = {
430
476
  MessageToL1$1.encode(v, writer.uint32(42).fork()).ldelim();
431
477
  }
432
478
  }
479
+ if (message.storageDiffs !== void 0 && message.storageDiffs.length !== 0) {
480
+ for (const v of message.storageDiffs) {
481
+ StorageDiff$1.encode(v, writer.uint32(50).fork()).ldelim();
482
+ }
483
+ }
484
+ if (message.contractChanges !== void 0 && message.contractChanges.length !== 0) {
485
+ for (const v of message.contractChanges) {
486
+ ContractChange$1.encode(v, writer.uint32(58).fork()).ldelim();
487
+ }
488
+ }
489
+ if (message.nonceUpdates !== void 0 && message.nonceUpdates.length !== 0) {
490
+ for (const v of message.nonceUpdates) {
491
+ NonceUpdate$1.encode(v, writer.uint32(66).fork()).ldelim();
492
+ }
493
+ }
433
494
  return writer;
434
495
  },
435
496
  decode(input, length) {
@@ -469,6 +530,24 @@ const Block$1 = {
469
530
  }
470
531
  message.messages.push(MessageToL1$1.decode(reader, reader.uint32()));
471
532
  continue;
533
+ case 6:
534
+ if (tag !== 50) {
535
+ break;
536
+ }
537
+ message.storageDiffs.push(StorageDiff$1.decode(reader, reader.uint32()));
538
+ continue;
539
+ case 7:
540
+ if (tag !== 58) {
541
+ break;
542
+ }
543
+ message.contractChanges.push(ContractChange$1.decode(reader, reader.uint32()));
544
+ continue;
545
+ case 8:
546
+ if (tag !== 66) {
547
+ break;
548
+ }
549
+ message.nonceUpdates.push(NonceUpdate$1.decode(reader, reader.uint32()));
550
+ continue;
472
551
  }
473
552
  if ((tag & 7) === 4 || tag === 0) {
474
553
  break;
@@ -483,7 +562,10 @@ const Block$1 = {
483
562
  transactions: globalThis.Array.isArray(object?.transactions) ? object.transactions.map((e) => Transaction$1.fromJSON(e)) : [],
484
563
  receipts: globalThis.Array.isArray(object?.receipts) ? object.receipts.map((e) => TransactionReceipt$1.fromJSON(e)) : [],
485
564
  events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => Event$1.fromJSON(e)) : [],
486
- messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => MessageToL1$1.fromJSON(e)) : []
565
+ messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => MessageToL1$1.fromJSON(e)) : [],
566
+ storageDiffs: globalThis.Array.isArray(object?.storageDiffs) ? object.storageDiffs.map((e) => StorageDiff$1.fromJSON(e)) : [],
567
+ contractChanges: globalThis.Array.isArray(object?.contractChanges) ? object.contractChanges.map((e) => ContractChange$1.fromJSON(e)) : [],
568
+ nonceUpdates: globalThis.Array.isArray(object?.nonceUpdates) ? object.nonceUpdates.map((e) => NonceUpdate$1.fromJSON(e)) : []
487
569
  };
488
570
  },
489
571
  toJSON(message) {
@@ -503,6 +585,15 @@ const Block$1 = {
503
585
  if (message.messages?.length) {
504
586
  obj.messages = message.messages.map((e) => MessageToL1$1.toJSON(e));
505
587
  }
588
+ if (message.storageDiffs?.length) {
589
+ obj.storageDiffs = message.storageDiffs.map((e) => StorageDiff$1.toJSON(e));
590
+ }
591
+ if (message.contractChanges?.length) {
592
+ obj.contractChanges = message.contractChanges.map((e) => ContractChange$1.toJSON(e));
593
+ }
594
+ if (message.nonceUpdates?.length) {
595
+ obj.nonceUpdates = message.nonceUpdates.map((e) => NonceUpdate$1.toJSON(e));
596
+ }
506
597
  return obj;
507
598
  },
508
599
  create(base) {
@@ -515,6 +606,9 @@ const Block$1 = {
515
606
  message.receipts = object.receipts?.map((e) => TransactionReceipt$1.fromPartial(e)) || [];
516
607
  message.events = object.events?.map((e) => Event$1.fromPartial(e)) || [];
517
608
  message.messages = object.messages?.map((e) => MessageToL1$1.fromPartial(e)) || [];
609
+ message.storageDiffs = object.storageDiffs?.map((e) => StorageDiff$1.fromPartial(e)) || [];
610
+ message.contractChanges = object.contractChanges?.map((e) => ContractChange$1.fromPartial(e)) || [];
611
+ message.nonceUpdates = object.nonceUpdates?.map((e) => NonceUpdate$1.fromPartial(e)) || [];
518
612
  return message;
519
613
  }
520
614
  };
@@ -711,46 +805,53 @@ const BlockHeader$1 = {
711
805
  }
712
806
  };
713
807
  function createBaseTransaction() {
714
- return { meta: void 0, transaction: void 0 };
808
+ return { filterIds: [], meta: void 0, transaction: void 0 };
715
809
  }
716
810
  const Transaction$1 = {
717
811
  encode(message, writer = _m0__default.Writer.create()) {
812
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
813
+ writer.uint32(10).fork();
814
+ for (const v of message.filterIds) {
815
+ writer.uint32(v);
816
+ }
817
+ writer.ldelim();
818
+ }
718
819
  if (message.meta !== void 0) {
719
- TransactionMeta$1.encode(message.meta, writer.uint32(10).fork()).ldelim();
820
+ TransactionMeta$1.encode(message.meta, writer.uint32(18).fork()).ldelim();
720
821
  }
721
822
  switch (message.transaction?.$case) {
722
823
  case "invokeV0":
723
- InvokeTransactionV0$1.encode(message.transaction.invokeV0, writer.uint32(18).fork()).ldelim();
824
+ InvokeTransactionV0$1.encode(message.transaction.invokeV0, writer.uint32(26).fork()).ldelim();
724
825
  break;
725
826
  case "invokeV1":
726
- InvokeTransactionV1$1.encode(message.transaction.invokeV1, writer.uint32(26).fork()).ldelim();
827
+ InvokeTransactionV1$1.encode(message.transaction.invokeV1, writer.uint32(34).fork()).ldelim();
727
828
  break;
728
829
  case "invokeV3":
729
- InvokeTransactionV3$1.encode(message.transaction.invokeV3, writer.uint32(34).fork()).ldelim();
830
+ InvokeTransactionV3$1.encode(message.transaction.invokeV3, writer.uint32(42).fork()).ldelim();
730
831
  break;
731
832
  case "l1Handler":
732
- L1HandlerTransaction$1.encode(message.transaction.l1Handler, writer.uint32(42).fork()).ldelim();
833
+ L1HandlerTransaction$1.encode(message.transaction.l1Handler, writer.uint32(50).fork()).ldelim();
733
834
  break;
734
835
  case "deploy":
735
- DeployTransaction$1.encode(message.transaction.deploy, writer.uint32(50).fork()).ldelim();
836
+ DeployTransaction$1.encode(message.transaction.deploy, writer.uint32(58).fork()).ldelim();
736
837
  break;
737
838
  case "declareV0":
738
- DeclareTransactionV0$1.encode(message.transaction.declareV0, writer.uint32(58).fork()).ldelim();
839
+ DeclareTransactionV0$1.encode(message.transaction.declareV0, writer.uint32(66).fork()).ldelim();
739
840
  break;
740
841
  case "declareV1":
741
- DeclareTransactionV1$1.encode(message.transaction.declareV1, writer.uint32(66).fork()).ldelim();
842
+ DeclareTransactionV1$1.encode(message.transaction.declareV1, writer.uint32(74).fork()).ldelim();
742
843
  break;
743
844
  case "declareV2":
744
- DeclareTransactionV2$1.encode(message.transaction.declareV2, writer.uint32(74).fork()).ldelim();
845
+ DeclareTransactionV2$1.encode(message.transaction.declareV2, writer.uint32(82).fork()).ldelim();
745
846
  break;
746
847
  case "declareV3":
747
- DeclareTransactionV3$1.encode(message.transaction.declareV3, writer.uint32(82).fork()).ldelim();
848
+ DeclareTransactionV3$1.encode(message.transaction.declareV3, writer.uint32(90).fork()).ldelim();
748
849
  break;
749
850
  case "deployAccountV1":
750
- DeployAccountTransactionV1$1.encode(message.transaction.deployAccountV1, writer.uint32(90).fork()).ldelim();
851
+ DeployAccountTransactionV1$1.encode(message.transaction.deployAccountV1, writer.uint32(98).fork()).ldelim();
751
852
  break;
752
853
  case "deployAccountV3":
753
- DeployAccountTransactionV3$1.encode(message.transaction.deployAccountV3, writer.uint32(98).fork()).ldelim();
854
+ DeployAccountTransactionV3$1.encode(message.transaction.deployAccountV3, writer.uint32(106).fork()).ldelim();
754
855
  break;
755
856
  }
756
857
  return writer;
@@ -763,76 +864,89 @@ const Transaction$1 = {
763
864
  const tag = reader.uint32();
764
865
  switch (tag >>> 3) {
765
866
  case 1:
766
- if (tag !== 10) {
767
- break;
768
- }
769
- message.meta = TransactionMeta$1.decode(reader, reader.uint32());
770
- continue;
867
+ if (tag === 8) {
868
+ message.filterIds.push(reader.uint32());
869
+ continue;
870
+ }
871
+ if (tag === 10) {
872
+ const end2 = reader.uint32() + reader.pos;
873
+ while (reader.pos < end2) {
874
+ message.filterIds.push(reader.uint32());
875
+ }
876
+ continue;
877
+ }
878
+ break;
771
879
  case 2:
772
880
  if (tag !== 18) {
773
881
  break;
774
882
  }
775
- message.transaction = { $case: "invokeV0", invokeV0: InvokeTransactionV0$1.decode(reader, reader.uint32()) };
883
+ message.meta = TransactionMeta$1.decode(reader, reader.uint32());
776
884
  continue;
777
885
  case 3:
778
886
  if (tag !== 26) {
779
887
  break;
780
888
  }
781
- message.transaction = { $case: "invokeV1", invokeV1: InvokeTransactionV1$1.decode(reader, reader.uint32()) };
889
+ message.transaction = { $case: "invokeV0", invokeV0: InvokeTransactionV0$1.decode(reader, reader.uint32()) };
782
890
  continue;
783
891
  case 4:
784
892
  if (tag !== 34) {
785
893
  break;
786
894
  }
787
- message.transaction = { $case: "invokeV3", invokeV3: InvokeTransactionV3$1.decode(reader, reader.uint32()) };
895
+ message.transaction = { $case: "invokeV1", invokeV1: InvokeTransactionV1$1.decode(reader, reader.uint32()) };
788
896
  continue;
789
897
  case 5:
790
898
  if (tag !== 42) {
791
899
  break;
792
900
  }
793
- message.transaction = { $case: "l1Handler", l1Handler: L1HandlerTransaction$1.decode(reader, reader.uint32()) };
901
+ message.transaction = { $case: "invokeV3", invokeV3: InvokeTransactionV3$1.decode(reader, reader.uint32()) };
794
902
  continue;
795
903
  case 6:
796
904
  if (tag !== 50) {
797
905
  break;
798
906
  }
799
- message.transaction = { $case: "deploy", deploy: DeployTransaction$1.decode(reader, reader.uint32()) };
907
+ message.transaction = { $case: "l1Handler", l1Handler: L1HandlerTransaction$1.decode(reader, reader.uint32()) };
800
908
  continue;
801
909
  case 7:
802
910
  if (tag !== 58) {
803
911
  break;
804
912
  }
805
- message.transaction = { $case: "declareV0", declareV0: DeclareTransactionV0$1.decode(reader, reader.uint32()) };
913
+ message.transaction = { $case: "deploy", deploy: DeployTransaction$1.decode(reader, reader.uint32()) };
806
914
  continue;
807
915
  case 8:
808
916
  if (tag !== 66) {
809
917
  break;
810
918
  }
811
- message.transaction = { $case: "declareV1", declareV1: DeclareTransactionV1$1.decode(reader, reader.uint32()) };
919
+ message.transaction = { $case: "declareV0", declareV0: DeclareTransactionV0$1.decode(reader, reader.uint32()) };
812
920
  continue;
813
921
  case 9:
814
922
  if (tag !== 74) {
815
923
  break;
816
924
  }
817
- message.transaction = { $case: "declareV2", declareV2: DeclareTransactionV2$1.decode(reader, reader.uint32()) };
925
+ message.transaction = { $case: "declareV1", declareV1: DeclareTransactionV1$1.decode(reader, reader.uint32()) };
818
926
  continue;
819
927
  case 10:
820
928
  if (tag !== 82) {
821
929
  break;
822
930
  }
823
- message.transaction = { $case: "declareV3", declareV3: DeclareTransactionV3$1.decode(reader, reader.uint32()) };
931
+ message.transaction = { $case: "declareV2", declareV2: DeclareTransactionV2$1.decode(reader, reader.uint32()) };
824
932
  continue;
825
933
  case 11:
826
934
  if (tag !== 90) {
827
935
  break;
828
936
  }
937
+ message.transaction = { $case: "declareV3", declareV3: DeclareTransactionV3$1.decode(reader, reader.uint32()) };
938
+ continue;
939
+ case 12:
940
+ if (tag !== 98) {
941
+ break;
942
+ }
829
943
  message.transaction = {
830
944
  $case: "deployAccountV1",
831
945
  deployAccountV1: DeployAccountTransactionV1$1.decode(reader, reader.uint32())
832
946
  };
833
947
  continue;
834
- case 12:
835
- if (tag !== 98) {
948
+ case 13:
949
+ if (tag !== 106) {
836
950
  break;
837
951
  }
838
952
  message.transaction = {
@@ -850,12 +964,16 @@ const Transaction$1 = {
850
964
  },
851
965
  fromJSON(object) {
852
966
  return {
967
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
853
968
  meta: isSet$1(object.meta) ? TransactionMeta$1.fromJSON(object.meta) : void 0,
854
969
  transaction: isSet$1(object.invokeV0) ? { $case: "invokeV0", invokeV0: InvokeTransactionV0$1.fromJSON(object.invokeV0) } : isSet$1(object.invokeV1) ? { $case: "invokeV1", invokeV1: InvokeTransactionV1$1.fromJSON(object.invokeV1) } : isSet$1(object.invokeV3) ? { $case: "invokeV3", invokeV3: InvokeTransactionV3$1.fromJSON(object.invokeV3) } : isSet$1(object.l1Handler) ? { $case: "l1Handler", l1Handler: L1HandlerTransaction$1.fromJSON(object.l1Handler) } : isSet$1(object.deploy) ? { $case: "deploy", deploy: DeployTransaction$1.fromJSON(object.deploy) } : isSet$1(object.declareV0) ? { $case: "declareV0", declareV0: DeclareTransactionV0$1.fromJSON(object.declareV0) } : isSet$1(object.declareV1) ? { $case: "declareV1", declareV1: DeclareTransactionV1$1.fromJSON(object.declareV1) } : isSet$1(object.declareV2) ? { $case: "declareV2", declareV2: DeclareTransactionV2$1.fromJSON(object.declareV2) } : isSet$1(object.declareV3) ? { $case: "declareV3", declareV3: DeclareTransactionV3$1.fromJSON(object.declareV3) } : isSet$1(object.deployAccountV1) ? { $case: "deployAccountV1", deployAccountV1: DeployAccountTransactionV1$1.fromJSON(object.deployAccountV1) } : isSet$1(object.deployAccountV3) ? { $case: "deployAccountV3", deployAccountV3: DeployAccountTransactionV3$1.fromJSON(object.deployAccountV3) } : void 0
855
970
  };
856
971
  },
857
972
  toJSON(message) {
858
973
  const obj = {};
974
+ if (message.filterIds?.length) {
975
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
976
+ }
859
977
  if (message.meta !== void 0) {
860
978
  obj.meta = TransactionMeta$1.toJSON(message.meta);
861
979
  }
@@ -899,6 +1017,7 @@ const Transaction$1 = {
899
1017
  },
900
1018
  fromPartial(object) {
901
1019
  const message = createBaseTransaction();
1020
+ message.filterIds = object.filterIds?.map((e) => e) || [];
902
1021
  message.meta = object.meta !== void 0 && object.meta !== null ? TransactionMeta$1.fromPartial(object.meta) : void 0;
903
1022
  if (object.transaction?.$case === "invokeV0" && object.transaction?.invokeV0 !== void 0 && object.transaction?.invokeV0 !== null) {
904
1023
  message.transaction = {
@@ -967,7 +1086,7 @@ const Transaction$1 = {
967
1086
  }
968
1087
  };
969
1088
  function createBaseTransactionMeta() {
970
- return { transactionIndex: 0, transactionHash: void 0, transactionReverted: false };
1089
+ return { transactionIndex: 0, transactionHash: void 0, transactionStatus: 0 };
971
1090
  }
972
1091
  const TransactionMeta$1 = {
973
1092
  encode(message, writer = _m0__default.Writer.create()) {
@@ -977,8 +1096,8 @@ const TransactionMeta$1 = {
977
1096
  if (message.transactionHash !== void 0) {
978
1097
  FieldElement.encode(message.transactionHash, writer.uint32(18).fork()).ldelim();
979
1098
  }
980
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
981
- writer.uint32(24).bool(message.transactionReverted);
1099
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1100
+ writer.uint32(24).int32(message.transactionStatus);
982
1101
  }
983
1102
  return writer;
984
1103
  },
@@ -1005,7 +1124,7 @@ const TransactionMeta$1 = {
1005
1124
  if (tag !== 24) {
1006
1125
  break;
1007
1126
  }
1008
- message.transactionReverted = reader.bool();
1127
+ message.transactionStatus = reader.int32();
1009
1128
  continue;
1010
1129
  }
1011
1130
  if ((tag & 7) === 4 || tag === 0) {
@@ -1019,7 +1138,7 @@ const TransactionMeta$1 = {
1019
1138
  return {
1020
1139
  transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
1021
1140
  transactionHash: isSet$1(object.transactionHash) ? FieldElement.fromJSON(object.transactionHash) : void 0,
1022
- transactionReverted: isSet$1(object.transactionReverted) ? globalThis.Boolean(object.transactionReverted) : false
1141
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
1023
1142
  };
1024
1143
  },
1025
1144
  toJSON(message) {
@@ -1030,8 +1149,8 @@ const TransactionMeta$1 = {
1030
1149
  if (message.transactionHash !== void 0) {
1031
1150
  obj.transactionHash = FieldElement.toJSON(message.transactionHash);
1032
1151
  }
1033
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
1034
- obj.transactionReverted = message.transactionReverted;
1152
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
1153
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
1035
1154
  }
1036
1155
  return obj;
1037
1156
  },
@@ -1042,7 +1161,7 @@ const TransactionMeta$1 = {
1042
1161
  const message = createBaseTransactionMeta();
1043
1162
  message.transactionIndex = object.transactionIndex ?? 0;
1044
1163
  message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? FieldElement.fromPartial(object.transactionHash) : void 0;
1045
- message.transactionReverted = object.transactionReverted ?? false;
1164
+ message.transactionStatus = object.transactionStatus ?? 0;
1046
1165
  return message;
1047
1166
  }
1048
1167
  };
@@ -2533,28 +2652,35 @@ const DeployAccountTransactionV3$1 = {
2533
2652
  }
2534
2653
  };
2535
2654
  function createBaseTransactionReceipt() {
2536
- return { meta: void 0, receipt: void 0 };
2655
+ return { filterIds: [], meta: void 0, receipt: void 0 };
2537
2656
  }
2538
2657
  const TransactionReceipt$1 = {
2539
2658
  encode(message, writer = _m0__default.Writer.create()) {
2659
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
2660
+ writer.uint32(10).fork();
2661
+ for (const v of message.filterIds) {
2662
+ writer.uint32(v);
2663
+ }
2664
+ writer.ldelim();
2665
+ }
2540
2666
  if (message.meta !== void 0) {
2541
- TransactionReceiptMeta$1.encode(message.meta, writer.uint32(10).fork()).ldelim();
2667
+ TransactionReceiptMeta$1.encode(message.meta, writer.uint32(18).fork()).ldelim();
2542
2668
  }
2543
2669
  switch (message.receipt?.$case) {
2544
2670
  case "invoke":
2545
- InvokeTransactionReceipt$1.encode(message.receipt.invoke, writer.uint32(18).fork()).ldelim();
2671
+ InvokeTransactionReceipt$1.encode(message.receipt.invoke, writer.uint32(26).fork()).ldelim();
2546
2672
  break;
2547
2673
  case "l1Handler":
2548
- L1HandlerTransactionReceipt$1.encode(message.receipt.l1Handler, writer.uint32(26).fork()).ldelim();
2674
+ L1HandlerTransactionReceipt$1.encode(message.receipt.l1Handler, writer.uint32(34).fork()).ldelim();
2549
2675
  break;
2550
2676
  case "declare":
2551
- DeclareTransactionReceipt$1.encode(message.receipt.declare, writer.uint32(34).fork()).ldelim();
2677
+ DeclareTransactionReceipt$1.encode(message.receipt.declare, writer.uint32(42).fork()).ldelim();
2552
2678
  break;
2553
2679
  case "deploy":
2554
- DeployTransactionReceipt$1.encode(message.receipt.deploy, writer.uint32(42).fork()).ldelim();
2680
+ DeployTransactionReceipt$1.encode(message.receipt.deploy, writer.uint32(50).fork()).ldelim();
2555
2681
  break;
2556
2682
  case "deployAccount":
2557
- DeployAccountTransactionReceipt$1.encode(message.receipt.deployAccount, writer.uint32(50).fork()).ldelim();
2683
+ DeployAccountTransactionReceipt$1.encode(message.receipt.deployAccount, writer.uint32(58).fork()).ldelim();
2558
2684
  break;
2559
2685
  }
2560
2686
  return writer;
@@ -2567,19 +2693,32 @@ const TransactionReceipt$1 = {
2567
2693
  const tag = reader.uint32();
2568
2694
  switch (tag >>> 3) {
2569
2695
  case 1:
2570
- if (tag !== 10) {
2696
+ if (tag === 8) {
2697
+ message.filterIds.push(reader.uint32());
2698
+ continue;
2699
+ }
2700
+ if (tag === 10) {
2701
+ const end2 = reader.uint32() + reader.pos;
2702
+ while (reader.pos < end2) {
2703
+ message.filterIds.push(reader.uint32());
2704
+ }
2705
+ continue;
2706
+ }
2707
+ break;
2708
+ case 2:
2709
+ if (tag !== 18) {
2571
2710
  break;
2572
2711
  }
2573
2712
  message.meta = TransactionReceiptMeta$1.decode(reader, reader.uint32());
2574
2713
  continue;
2575
- case 2:
2576
- if (tag !== 18) {
2714
+ case 3:
2715
+ if (tag !== 26) {
2577
2716
  break;
2578
2717
  }
2579
2718
  message.receipt = { $case: "invoke", invoke: InvokeTransactionReceipt$1.decode(reader, reader.uint32()) };
2580
2719
  continue;
2581
- case 3:
2582
- if (tag !== 26) {
2720
+ case 4:
2721
+ if (tag !== 34) {
2583
2722
  break;
2584
2723
  }
2585
2724
  message.receipt = {
@@ -2587,20 +2726,20 @@ const TransactionReceipt$1 = {
2587
2726
  l1Handler: L1HandlerTransactionReceipt$1.decode(reader, reader.uint32())
2588
2727
  };
2589
2728
  continue;
2590
- case 4:
2591
- if (tag !== 34) {
2729
+ case 5:
2730
+ if (tag !== 42) {
2592
2731
  break;
2593
2732
  }
2594
2733
  message.receipt = { $case: "declare", declare: DeclareTransactionReceipt$1.decode(reader, reader.uint32()) };
2595
2734
  continue;
2596
- case 5:
2597
- if (tag !== 42) {
2735
+ case 6:
2736
+ if (tag !== 50) {
2598
2737
  break;
2599
2738
  }
2600
2739
  message.receipt = { $case: "deploy", deploy: DeployTransactionReceipt$1.decode(reader, reader.uint32()) };
2601
2740
  continue;
2602
- case 6:
2603
- if (tag !== 50) {
2741
+ case 7:
2742
+ if (tag !== 58) {
2604
2743
  break;
2605
2744
  }
2606
2745
  message.receipt = {
@@ -2618,12 +2757,16 @@ const TransactionReceipt$1 = {
2618
2757
  },
2619
2758
  fromJSON(object) {
2620
2759
  return {
2760
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
2621
2761
  meta: isSet$1(object.meta) ? TransactionReceiptMeta$1.fromJSON(object.meta) : void 0,
2622
2762
  receipt: isSet$1(object.invoke) ? { $case: "invoke", invoke: InvokeTransactionReceipt$1.fromJSON(object.invoke) } : isSet$1(object.l1Handler) ? { $case: "l1Handler", l1Handler: L1HandlerTransactionReceipt$1.fromJSON(object.l1Handler) } : isSet$1(object.declare) ? { $case: "declare", declare: DeclareTransactionReceipt$1.fromJSON(object.declare) } : isSet$1(object.deploy) ? { $case: "deploy", deploy: DeployTransactionReceipt$1.fromJSON(object.deploy) } : isSet$1(object.deployAccount) ? { $case: "deployAccount", deployAccount: DeployAccountTransactionReceipt$1.fromJSON(object.deployAccount) } : void 0
2623
2763
  };
2624
2764
  },
2625
2765
  toJSON(message) {
2626
2766
  const obj = {};
2767
+ if (message.filterIds?.length) {
2768
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
2769
+ }
2627
2770
  if (message.meta !== void 0) {
2628
2771
  obj.meta = TransactionReceiptMeta$1.toJSON(message.meta);
2629
2772
  }
@@ -2649,6 +2792,7 @@ const TransactionReceipt$1 = {
2649
2792
  },
2650
2793
  fromPartial(object) {
2651
2794
  const message = createBaseTransactionReceipt();
2795
+ message.filterIds = object.filterIds?.map((e) => e) || [];
2652
2796
  message.meta = object.meta !== void 0 && object.meta !== null ? TransactionReceiptMeta$1.fromPartial(object.meta) : void 0;
2653
2797
  if (object.receipt?.$case === "invoke" && object.receipt?.invoke !== void 0 && object.receipt?.invoke !== null) {
2654
2798
  message.receipt = { $case: "invoke", invoke: InvokeTransactionReceipt$1.fromPartial(object.receipt.invoke) };
@@ -3127,41 +3271,49 @@ const DeployAccountTransactionReceipt$1 = {
3127
3271
  };
3128
3272
  function createBaseEvent() {
3129
3273
  return {
3130
- fromAddress: void 0,
3274
+ filterIds: [],
3275
+ address: void 0,
3131
3276
  keys: [],
3132
3277
  data: [],
3133
3278
  eventIndex: 0,
3134
3279
  transactionIndex: 0,
3135
3280
  transactionHash: void 0,
3136
- transactionReverted: false
3281
+ transactionStatus: 0
3137
3282
  };
3138
3283
  }
3139
3284
  const Event$1 = {
3140
3285
  encode(message, writer = _m0__default.Writer.create()) {
3141
- if (message.fromAddress !== void 0) {
3142
- FieldElement.encode(message.fromAddress, writer.uint32(10).fork()).ldelim();
3286
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
3287
+ writer.uint32(10).fork();
3288
+ for (const v of message.filterIds) {
3289
+ writer.uint32(v);
3290
+ }
3291
+ writer.ldelim();
3292
+ }
3293
+ if (message.address !== void 0) {
3294
+ FieldElement.encode(message.address, writer.uint32(18).fork()).ldelim();
3143
3295
  }
3144
3296
  if (message.keys !== void 0 && message.keys.length !== 0) {
3145
3297
  for (const v of message.keys) {
3146
- FieldElement.encode(v, writer.uint32(18).fork()).ldelim();
3298
+ FieldElement.encode(v, writer.uint32(26).fork()).ldelim();
3147
3299
  }
3148
3300
  }
3149
3301
  if (message.data !== void 0 && message.data.length !== 0) {
3150
3302
  for (const v of message.data) {
3151
- FieldElement.encode(v, writer.uint32(26).fork()).ldelim();
3303
+ FieldElement.encode(v, writer.uint32(34).fork()).ldelim();
3152
3304
  }
3153
3305
  }
3154
3306
  if (message.eventIndex !== void 0 && message.eventIndex !== 0) {
3155
- writer.uint32(32).uint32(message.eventIndex);
3307
+ writer.uint32(40).uint32(message.eventIndex);
3156
3308
  }
3157
3309
  if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
3158
- writer.uint32(40).uint32(message.transactionIndex);
3310
+ writer.uint32(48).uint32(message.transactionIndex);
3159
3311
  }
3160
3312
  if (message.transactionHash !== void 0) {
3161
- FieldElement.encode(message.transactionHash, writer.uint32(50).fork()).ldelim();
3313
+ FieldElement.encode(message.transactionHash, writer.uint32(58).fork()).ldelim();
3162
3314
  }
3163
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
3164
- writer.uint32(56).bool(message.transactionReverted);
3315
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
3316
+ writer.uint32(64).int32(message.transactionStatus);
3165
3317
  }
3166
3318
  return writer;
3167
3319
  },
@@ -3173,46 +3325,59 @@ const Event$1 = {
3173
3325
  const tag = reader.uint32();
3174
3326
  switch (tag >>> 3) {
3175
3327
  case 1:
3176
- if (tag !== 10) {
3177
- break;
3178
- }
3179
- message.fromAddress = FieldElement.decode(reader, reader.uint32());
3180
- continue;
3328
+ if (tag === 8) {
3329
+ message.filterIds.push(reader.uint32());
3330
+ continue;
3331
+ }
3332
+ if (tag === 10) {
3333
+ const end2 = reader.uint32() + reader.pos;
3334
+ while (reader.pos < end2) {
3335
+ message.filterIds.push(reader.uint32());
3336
+ }
3337
+ continue;
3338
+ }
3339
+ break;
3181
3340
  case 2:
3182
3341
  if (tag !== 18) {
3183
3342
  break;
3184
3343
  }
3185
- message.keys.push(FieldElement.decode(reader, reader.uint32()));
3344
+ message.address = FieldElement.decode(reader, reader.uint32());
3186
3345
  continue;
3187
3346
  case 3:
3188
3347
  if (tag !== 26) {
3189
3348
  break;
3190
3349
  }
3191
- message.data.push(FieldElement.decode(reader, reader.uint32()));
3350
+ message.keys.push(FieldElement.decode(reader, reader.uint32()));
3192
3351
  continue;
3193
3352
  case 4:
3194
- if (tag !== 32) {
3353
+ if (tag !== 34) {
3195
3354
  break;
3196
3355
  }
3197
- message.eventIndex = reader.uint32();
3356
+ message.data.push(FieldElement.decode(reader, reader.uint32()));
3198
3357
  continue;
3199
3358
  case 5:
3200
3359
  if (tag !== 40) {
3201
3360
  break;
3202
3361
  }
3203
- message.transactionIndex = reader.uint32();
3362
+ message.eventIndex = reader.uint32();
3204
3363
  continue;
3205
3364
  case 6:
3206
- if (tag !== 50) {
3365
+ if (tag !== 48) {
3207
3366
  break;
3208
3367
  }
3209
- message.transactionHash = FieldElement.decode(reader, reader.uint32());
3368
+ message.transactionIndex = reader.uint32();
3210
3369
  continue;
3211
3370
  case 7:
3212
- if (tag !== 56) {
3371
+ if (tag !== 58) {
3372
+ break;
3373
+ }
3374
+ message.transactionHash = FieldElement.decode(reader, reader.uint32());
3375
+ continue;
3376
+ case 8:
3377
+ if (tag !== 64) {
3213
3378
  break;
3214
3379
  }
3215
- message.transactionReverted = reader.bool();
3380
+ message.transactionStatus = reader.int32();
3216
3381
  continue;
3217
3382
  }
3218
3383
  if ((tag & 7) === 4 || tag === 0) {
@@ -3224,19 +3389,23 @@ const Event$1 = {
3224
3389
  },
3225
3390
  fromJSON(object) {
3226
3391
  return {
3227
- fromAddress: isSet$1(object.fromAddress) ? FieldElement.fromJSON(object.fromAddress) : void 0,
3392
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
3393
+ address: isSet$1(object.address) ? FieldElement.fromJSON(object.address) : void 0,
3228
3394
  keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e) => FieldElement.fromJSON(e)) : [],
3229
3395
  data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => FieldElement.fromJSON(e)) : [],
3230
3396
  eventIndex: isSet$1(object.eventIndex) ? globalThis.Number(object.eventIndex) : 0,
3231
3397
  transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
3232
3398
  transactionHash: isSet$1(object.transactionHash) ? FieldElement.fromJSON(object.transactionHash) : void 0,
3233
- transactionReverted: isSet$1(object.transactionReverted) ? globalThis.Boolean(object.transactionReverted) : false
3399
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
3234
3400
  };
3235
3401
  },
3236
3402
  toJSON(message) {
3237
3403
  const obj = {};
3238
- if (message.fromAddress !== void 0) {
3239
- obj.fromAddress = FieldElement.toJSON(message.fromAddress);
3404
+ if (message.filterIds?.length) {
3405
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
3406
+ }
3407
+ if (message.address !== void 0) {
3408
+ obj.address = FieldElement.toJSON(message.address);
3240
3409
  }
3241
3410
  if (message.keys?.length) {
3242
3411
  obj.keys = message.keys.map((e) => FieldElement.toJSON(e));
@@ -3253,8 +3422,8 @@ const Event$1 = {
3253
3422
  if (message.transactionHash !== void 0) {
3254
3423
  obj.transactionHash = FieldElement.toJSON(message.transactionHash);
3255
3424
  }
3256
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
3257
- obj.transactionReverted = message.transactionReverted;
3425
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
3426
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
3258
3427
  }
3259
3428
  return obj;
3260
3429
  },
@@ -3263,51 +3432,60 @@ const Event$1 = {
3263
3432
  },
3264
3433
  fromPartial(object) {
3265
3434
  const message = createBaseEvent();
3266
- message.fromAddress = object.fromAddress !== void 0 && object.fromAddress !== null ? FieldElement.fromPartial(object.fromAddress) : void 0;
3435
+ message.filterIds = object.filterIds?.map((e) => e) || [];
3436
+ message.address = object.address !== void 0 && object.address !== null ? FieldElement.fromPartial(object.address) : void 0;
3267
3437
  message.keys = object.keys?.map((e) => FieldElement.fromPartial(e)) || [];
3268
3438
  message.data = object.data?.map((e) => FieldElement.fromPartial(e)) || [];
3269
3439
  message.eventIndex = object.eventIndex ?? 0;
3270
3440
  message.transactionIndex = object.transactionIndex ?? 0;
3271
3441
  message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? FieldElement.fromPartial(object.transactionHash) : void 0;
3272
- message.transactionReverted = object.transactionReverted ?? false;
3442
+ message.transactionStatus = object.transactionStatus ?? 0;
3273
3443
  return message;
3274
3444
  }
3275
3445
  };
3276
3446
  function createBaseMessageToL1() {
3277
3447
  return {
3448
+ filterIds: [],
3278
3449
  fromAddress: void 0,
3279
3450
  toAddress: void 0,
3280
3451
  payload: [],
3281
3452
  messageIndex: 0,
3282
3453
  transactionIndex: 0,
3283
3454
  transactionHash: void 0,
3284
- transactionReverted: false
3455
+ transactionStatus: 0
3285
3456
  };
3286
3457
  }
3287
3458
  const MessageToL1$1 = {
3288
3459
  encode(message, writer = _m0__default.Writer.create()) {
3460
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
3461
+ writer.uint32(10).fork();
3462
+ for (const v of message.filterIds) {
3463
+ writer.uint32(v);
3464
+ }
3465
+ writer.ldelim();
3466
+ }
3289
3467
  if (message.fromAddress !== void 0) {
3290
- FieldElement.encode(message.fromAddress, writer.uint32(10).fork()).ldelim();
3468
+ FieldElement.encode(message.fromAddress, writer.uint32(18).fork()).ldelim();
3291
3469
  }
3292
3470
  if (message.toAddress !== void 0) {
3293
- FieldElement.encode(message.toAddress, writer.uint32(18).fork()).ldelim();
3471
+ FieldElement.encode(message.toAddress, writer.uint32(26).fork()).ldelim();
3294
3472
  }
3295
3473
  if (message.payload !== void 0 && message.payload.length !== 0) {
3296
3474
  for (const v of message.payload) {
3297
- FieldElement.encode(v, writer.uint32(26).fork()).ldelim();
3475
+ FieldElement.encode(v, writer.uint32(34).fork()).ldelim();
3298
3476
  }
3299
3477
  }
3300
3478
  if (message.messageIndex !== void 0 && message.messageIndex !== 0) {
3301
- writer.uint32(32).uint32(message.messageIndex);
3479
+ writer.uint32(40).uint32(message.messageIndex);
3302
3480
  }
3303
3481
  if (message.transactionIndex !== void 0 && message.transactionIndex !== 0) {
3304
- writer.uint32(40).uint32(message.transactionIndex);
3482
+ writer.uint32(48).uint32(message.transactionIndex);
3305
3483
  }
3306
3484
  if (message.transactionHash !== void 0) {
3307
- FieldElement.encode(message.transactionHash, writer.uint32(50).fork()).ldelim();
3485
+ FieldElement.encode(message.transactionHash, writer.uint32(58).fork()).ldelim();
3308
3486
  }
3309
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
3310
- writer.uint32(56).bool(message.transactionReverted);
3487
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
3488
+ writer.uint32(64).int32(message.transactionStatus);
3311
3489
  }
3312
3490
  return writer;
3313
3491
  },
@@ -3319,46 +3497,59 @@ const MessageToL1$1 = {
3319
3497
  const tag = reader.uint32();
3320
3498
  switch (tag >>> 3) {
3321
3499
  case 1:
3322
- if (tag !== 10) {
3323
- break;
3324
- }
3325
- message.fromAddress = FieldElement.decode(reader, reader.uint32());
3326
- continue;
3500
+ if (tag === 8) {
3501
+ message.filterIds.push(reader.uint32());
3502
+ continue;
3503
+ }
3504
+ if (tag === 10) {
3505
+ const end2 = reader.uint32() + reader.pos;
3506
+ while (reader.pos < end2) {
3507
+ message.filterIds.push(reader.uint32());
3508
+ }
3509
+ continue;
3510
+ }
3511
+ break;
3327
3512
  case 2:
3328
3513
  if (tag !== 18) {
3329
3514
  break;
3330
3515
  }
3331
- message.toAddress = FieldElement.decode(reader, reader.uint32());
3516
+ message.fromAddress = FieldElement.decode(reader, reader.uint32());
3332
3517
  continue;
3333
3518
  case 3:
3334
3519
  if (tag !== 26) {
3335
3520
  break;
3336
3521
  }
3337
- message.payload.push(FieldElement.decode(reader, reader.uint32()));
3522
+ message.toAddress = FieldElement.decode(reader, reader.uint32());
3338
3523
  continue;
3339
3524
  case 4:
3340
- if (tag !== 32) {
3525
+ if (tag !== 34) {
3341
3526
  break;
3342
3527
  }
3343
- message.messageIndex = reader.uint32();
3528
+ message.payload.push(FieldElement.decode(reader, reader.uint32()));
3344
3529
  continue;
3345
3530
  case 5:
3346
3531
  if (tag !== 40) {
3347
3532
  break;
3348
3533
  }
3349
- message.transactionIndex = reader.uint32();
3534
+ message.messageIndex = reader.uint32();
3350
3535
  continue;
3351
3536
  case 6:
3352
- if (tag !== 50) {
3537
+ if (tag !== 48) {
3353
3538
  break;
3354
3539
  }
3355
- message.transactionHash = FieldElement.decode(reader, reader.uint32());
3540
+ message.transactionIndex = reader.uint32();
3356
3541
  continue;
3357
3542
  case 7:
3358
- if (tag !== 56) {
3543
+ if (tag !== 58) {
3544
+ break;
3545
+ }
3546
+ message.transactionHash = FieldElement.decode(reader, reader.uint32());
3547
+ continue;
3548
+ case 8:
3549
+ if (tag !== 64) {
3359
3550
  break;
3360
3551
  }
3361
- message.transactionReverted = reader.bool();
3552
+ message.transactionStatus = reader.int32();
3362
3553
  continue;
3363
3554
  }
3364
3555
  if ((tag & 7) === 4 || tag === 0) {
@@ -3370,17 +3561,21 @@ const MessageToL1$1 = {
3370
3561
  },
3371
3562
  fromJSON(object) {
3372
3563
  return {
3564
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
3373
3565
  fromAddress: isSet$1(object.fromAddress) ? FieldElement.fromJSON(object.fromAddress) : void 0,
3374
3566
  toAddress: isSet$1(object.toAddress) ? FieldElement.fromJSON(object.toAddress) : void 0,
3375
3567
  payload: globalThis.Array.isArray(object?.payload) ? object.payload.map((e) => FieldElement.fromJSON(e)) : [],
3376
3568
  messageIndex: isSet$1(object.messageIndex) ? globalThis.Number(object.messageIndex) : 0,
3377
3569
  transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
3378
3570
  transactionHash: isSet$1(object.transactionHash) ? FieldElement.fromJSON(object.transactionHash) : void 0,
3379
- transactionReverted: isSet$1(object.transactionReverted) ? globalThis.Boolean(object.transactionReverted) : false
3571
+ transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
3380
3572
  };
3381
3573
  },
3382
3574
  toJSON(message) {
3383
3575
  const obj = {};
3576
+ if (message.filterIds?.length) {
3577
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
3578
+ }
3384
3579
  if (message.fromAddress !== void 0) {
3385
3580
  obj.fromAddress = FieldElement.toJSON(message.fromAddress);
3386
3581
  }
@@ -3399,8 +3594,8 @@ const MessageToL1$1 = {
3399
3594
  if (message.transactionHash !== void 0) {
3400
3595
  obj.transactionHash = FieldElement.toJSON(message.transactionHash);
3401
3596
  }
3402
- if (message.transactionReverted !== void 0 && message.transactionReverted !== false) {
3403
- obj.transactionReverted = message.transactionReverted;
3597
+ if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
3598
+ obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
3404
3599
  }
3405
3600
  return obj;
3406
3601
  },
@@ -3409,13 +3604,14 @@ const MessageToL1$1 = {
3409
3604
  },
3410
3605
  fromPartial(object) {
3411
3606
  const message = createBaseMessageToL1();
3607
+ message.filterIds = object.filterIds?.map((e) => e) || [];
3412
3608
  message.fromAddress = object.fromAddress !== void 0 && object.fromAddress !== null ? FieldElement.fromPartial(object.fromAddress) : void 0;
3413
3609
  message.toAddress = object.toAddress !== void 0 && object.toAddress !== null ? FieldElement.fromPartial(object.toAddress) : void 0;
3414
3610
  message.payload = object.payload?.map((e) => FieldElement.fromPartial(e)) || [];
3415
3611
  message.messageIndex = object.messageIndex ?? 0;
3416
3612
  message.transactionIndex = object.transactionIndex ?? 0;
3417
3613
  message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? FieldElement.fromPartial(object.transactionHash) : void 0;
3418
- message.transactionReverted = object.transactionReverted ?? false;
3614
+ message.transactionStatus = object.transactionStatus ?? 0;
3419
3615
  return message;
3420
3616
  }
3421
3617
  };
@@ -4056,21 +4252,21 @@ const ResourceBounds$1 = {
4056
4252
  }
4057
4253
  };
4058
4254
  function createBaseUint128() {
4059
- return { low: BigInt("0"), high: BigInt("0") };
4255
+ return { x0: BigInt("0"), x1: BigInt("0") };
4060
4256
  }
4061
4257
  const Uint128 = {
4062
4258
  encode(message, writer = _m0__default.Writer.create()) {
4063
- if (message.low !== void 0 && message.low !== BigInt("0")) {
4064
- if (BigInt.asUintN(64, message.low) !== message.low) {
4065
- throw new globalThis.Error("value provided for field message.low of type uint64 too large");
4259
+ if (message.x0 !== void 0 && message.x0 !== BigInt("0")) {
4260
+ if (BigInt.asUintN(64, message.x0) !== message.x0) {
4261
+ throw new globalThis.Error("value provided for field message.x0 of type uint64 too large");
4066
4262
  }
4067
- writer.uint32(8).uint64(message.low.toString());
4263
+ writer.uint32(8).uint64(message.x0.toString());
4068
4264
  }
4069
- if (message.high !== void 0 && message.high !== BigInt("0")) {
4070
- if (BigInt.asUintN(64, message.high) !== message.high) {
4071
- throw new globalThis.Error("value provided for field message.high of type uint64 too large");
4265
+ if (message.x1 !== void 0 && message.x1 !== BigInt("0")) {
4266
+ if (BigInt.asUintN(64, message.x1) !== message.x1) {
4267
+ throw new globalThis.Error("value provided for field message.x1 of type uint64 too large");
4072
4268
  }
4073
- writer.uint32(16).uint64(message.high.toString());
4269
+ writer.uint32(16).uint64(message.x1.toString());
4074
4270
  }
4075
4271
  return writer;
4076
4272
  },
@@ -4085,13 +4281,13 @@ const Uint128 = {
4085
4281
  if (tag !== 8) {
4086
4282
  break;
4087
4283
  }
4088
- message.low = longToBigint(reader.uint64());
4284
+ message.x0 = longToBigint(reader.uint64());
4089
4285
  continue;
4090
4286
  case 2:
4091
4287
  if (tag !== 16) {
4092
4288
  break;
4093
4289
  }
4094
- message.high = longToBigint(reader.uint64());
4290
+ message.x1 = longToBigint(reader.uint64());
4095
4291
  continue;
4096
4292
  }
4097
4293
  if ((tag & 7) === 4 || tag === 0) {
@@ -4103,17 +4299,17 @@ const Uint128 = {
4103
4299
  },
4104
4300
  fromJSON(object) {
4105
4301
  return {
4106
- low: isSet$1(object.low) ? BigInt(object.low) : BigInt("0"),
4107
- high: isSet$1(object.high) ? BigInt(object.high) : BigInt("0")
4302
+ x0: isSet$1(object.x0) ? BigInt(object.x0) : BigInt("0"),
4303
+ x1: isSet$1(object.x1) ? BigInt(object.x1) : BigInt("0")
4108
4304
  };
4109
4305
  },
4110
4306
  toJSON(message) {
4111
4307
  const obj = {};
4112
- if (message.low !== void 0 && message.low !== BigInt("0")) {
4113
- obj.low = message.low.toString();
4308
+ if (message.x0 !== void 0 && message.x0 !== BigInt("0")) {
4309
+ obj.x0 = message.x0.toString();
4114
4310
  }
4115
- if (message.high !== void 0 && message.high !== BigInt("0")) {
4116
- obj.high = message.high.toString();
4311
+ if (message.x1 !== void 0 && message.x1 !== BigInt("0")) {
4312
+ obj.x1 = message.x1.toString();
4117
4313
  }
4118
4314
  return obj;
4119
4315
  },
@@ -4122,33 +4318,604 @@ const Uint128 = {
4122
4318
  },
4123
4319
  fromPartial(object) {
4124
4320
  const message = createBaseUint128();
4125
- message.low = object.low ?? BigInt("0");
4126
- message.high = object.high ?? BigInt("0");
4321
+ message.x0 = object.x0 ?? BigInt("0");
4322
+ message.x1 = object.x1 ?? BigInt("0");
4127
4323
  return message;
4128
4324
  }
4129
4325
  };
4130
- function bytesFromBase64(b64) {
4131
- if (globalThis.Buffer) {
4132
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
4133
- } else {
4134
- const bin = globalThis.atob(b64);
4135
- const arr = new Uint8Array(bin.length);
4136
- for (let i = 0; i < bin.length; ++i) {
4137
- arr[i] = bin.charCodeAt(i);
4326
+ function createBaseStorageDiff() {
4327
+ return { filterIds: [], contractAddress: void 0, storageEntries: [] };
4328
+ }
4329
+ const StorageDiff$1 = {
4330
+ encode(message, writer = _m0__default.Writer.create()) {
4331
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
4332
+ writer.uint32(10).fork();
4333
+ for (const v of message.filterIds) {
4334
+ writer.uint32(v);
4335
+ }
4336
+ writer.ldelim();
4138
4337
  }
4139
- return arr;
4338
+ if (message.contractAddress !== void 0) {
4339
+ FieldElement.encode(message.contractAddress, writer.uint32(18).fork()).ldelim();
4340
+ }
4341
+ if (message.storageEntries !== void 0 && message.storageEntries.length !== 0) {
4342
+ for (const v of message.storageEntries) {
4343
+ StorageEntry$1.encode(v, writer.uint32(26).fork()).ldelim();
4344
+ }
4345
+ }
4346
+ return writer;
4347
+ },
4348
+ decode(input, length) {
4349
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4350
+ let end = length === void 0 ? reader.len : reader.pos + length;
4351
+ const message = createBaseStorageDiff();
4352
+ while (reader.pos < end) {
4353
+ const tag = reader.uint32();
4354
+ switch (tag >>> 3) {
4355
+ case 1:
4356
+ if (tag === 8) {
4357
+ message.filterIds.push(reader.uint32());
4358
+ continue;
4359
+ }
4360
+ if (tag === 10) {
4361
+ const end2 = reader.uint32() + reader.pos;
4362
+ while (reader.pos < end2) {
4363
+ message.filterIds.push(reader.uint32());
4364
+ }
4365
+ continue;
4366
+ }
4367
+ break;
4368
+ case 2:
4369
+ if (tag !== 18) {
4370
+ break;
4371
+ }
4372
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
4373
+ continue;
4374
+ case 3:
4375
+ if (tag !== 26) {
4376
+ break;
4377
+ }
4378
+ message.storageEntries.push(StorageEntry$1.decode(reader, reader.uint32()));
4379
+ continue;
4380
+ }
4381
+ if ((tag & 7) === 4 || tag === 0) {
4382
+ break;
4383
+ }
4384
+ reader.skipType(tag & 7);
4385
+ }
4386
+ return message;
4387
+ },
4388
+ fromJSON(object) {
4389
+ return {
4390
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
4391
+ contractAddress: isSet$1(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0,
4392
+ storageEntries: globalThis.Array.isArray(object?.storageEntries) ? object.storageEntries.map((e) => StorageEntry$1.fromJSON(e)) : []
4393
+ };
4394
+ },
4395
+ toJSON(message) {
4396
+ const obj = {};
4397
+ if (message.filterIds?.length) {
4398
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
4399
+ }
4400
+ if (message.contractAddress !== void 0) {
4401
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
4402
+ }
4403
+ if (message.storageEntries?.length) {
4404
+ obj.storageEntries = message.storageEntries.map((e) => StorageEntry$1.toJSON(e));
4405
+ }
4406
+ return obj;
4407
+ },
4408
+ create(base) {
4409
+ return StorageDiff$1.fromPartial(base ?? {});
4410
+ },
4411
+ fromPartial(object) {
4412
+ const message = createBaseStorageDiff();
4413
+ message.filterIds = object.filterIds?.map((e) => e) || [];
4414
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
4415
+ message.storageEntries = object.storageEntries?.map((e) => StorageEntry$1.fromPartial(e)) || [];
4416
+ return message;
4140
4417
  }
4418
+ };
4419
+ function createBaseStorageEntry() {
4420
+ return { key: void 0, value: void 0 };
4141
4421
  }
4142
- function base64FromBytes(arr) {
4143
- if (globalThis.Buffer) {
4144
- return globalThis.Buffer.from(arr).toString("base64");
4145
- } else {
4146
- const bin = [];
4147
- arr.forEach((byte) => {
4148
- bin.push(globalThis.String.fromCharCode(byte));
4149
- });
4150
- return globalThis.btoa(bin.join(""));
4151
- }
4422
+ const StorageEntry$1 = {
4423
+ encode(message, writer = _m0__default.Writer.create()) {
4424
+ if (message.key !== void 0) {
4425
+ FieldElement.encode(message.key, writer.uint32(10).fork()).ldelim();
4426
+ }
4427
+ if (message.value !== void 0) {
4428
+ FieldElement.encode(message.value, writer.uint32(18).fork()).ldelim();
4429
+ }
4430
+ return writer;
4431
+ },
4432
+ decode(input, length) {
4433
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4434
+ let end = length === void 0 ? reader.len : reader.pos + length;
4435
+ const message = createBaseStorageEntry();
4436
+ while (reader.pos < end) {
4437
+ const tag = reader.uint32();
4438
+ switch (tag >>> 3) {
4439
+ case 1:
4440
+ if (tag !== 10) {
4441
+ break;
4442
+ }
4443
+ message.key = FieldElement.decode(reader, reader.uint32());
4444
+ continue;
4445
+ case 2:
4446
+ if (tag !== 18) {
4447
+ break;
4448
+ }
4449
+ message.value = FieldElement.decode(reader, reader.uint32());
4450
+ continue;
4451
+ }
4452
+ if ((tag & 7) === 4 || tag === 0) {
4453
+ break;
4454
+ }
4455
+ reader.skipType(tag & 7);
4456
+ }
4457
+ return message;
4458
+ },
4459
+ fromJSON(object) {
4460
+ return {
4461
+ key: isSet$1(object.key) ? FieldElement.fromJSON(object.key) : void 0,
4462
+ value: isSet$1(object.value) ? FieldElement.fromJSON(object.value) : void 0
4463
+ };
4464
+ },
4465
+ toJSON(message) {
4466
+ const obj = {};
4467
+ if (message.key !== void 0) {
4468
+ obj.key = FieldElement.toJSON(message.key);
4469
+ }
4470
+ if (message.value !== void 0) {
4471
+ obj.value = FieldElement.toJSON(message.value);
4472
+ }
4473
+ return obj;
4474
+ },
4475
+ create(base) {
4476
+ return StorageEntry$1.fromPartial(base ?? {});
4477
+ },
4478
+ fromPartial(object) {
4479
+ const message = createBaseStorageEntry();
4480
+ message.key = object.key !== void 0 && object.key !== null ? FieldElement.fromPartial(object.key) : void 0;
4481
+ message.value = object.value !== void 0 && object.value !== null ? FieldElement.fromPartial(object.value) : void 0;
4482
+ return message;
4483
+ }
4484
+ };
4485
+ function createBaseContractChange() {
4486
+ return { filterIds: [], change: void 0 };
4487
+ }
4488
+ const ContractChange$1 = {
4489
+ encode(message, writer = _m0__default.Writer.create()) {
4490
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
4491
+ writer.uint32(10).fork();
4492
+ for (const v of message.filterIds) {
4493
+ writer.uint32(v);
4494
+ }
4495
+ writer.ldelim();
4496
+ }
4497
+ switch (message.change?.$case) {
4498
+ case "declaredClass":
4499
+ DeclaredClass$1.encode(message.change.declaredClass, writer.uint32(18).fork()).ldelim();
4500
+ break;
4501
+ case "replacedClass":
4502
+ ReplacedClass$1.encode(message.change.replacedClass, writer.uint32(26).fork()).ldelim();
4503
+ break;
4504
+ case "deployedContract":
4505
+ DeployedContract$1.encode(message.change.deployedContract, writer.uint32(34).fork()).ldelim();
4506
+ break;
4507
+ }
4508
+ return writer;
4509
+ },
4510
+ decode(input, length) {
4511
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4512
+ let end = length === void 0 ? reader.len : reader.pos + length;
4513
+ const message = createBaseContractChange();
4514
+ while (reader.pos < end) {
4515
+ const tag = reader.uint32();
4516
+ switch (tag >>> 3) {
4517
+ case 1:
4518
+ if (tag === 8) {
4519
+ message.filterIds.push(reader.uint32());
4520
+ continue;
4521
+ }
4522
+ if (tag === 10) {
4523
+ const end2 = reader.uint32() + reader.pos;
4524
+ while (reader.pos < end2) {
4525
+ message.filterIds.push(reader.uint32());
4526
+ }
4527
+ continue;
4528
+ }
4529
+ break;
4530
+ case 2:
4531
+ if (tag !== 18) {
4532
+ break;
4533
+ }
4534
+ message.change = { $case: "declaredClass", declaredClass: DeclaredClass$1.decode(reader, reader.uint32()) };
4535
+ continue;
4536
+ case 3:
4537
+ if (tag !== 26) {
4538
+ break;
4539
+ }
4540
+ message.change = { $case: "replacedClass", replacedClass: ReplacedClass$1.decode(reader, reader.uint32()) };
4541
+ continue;
4542
+ case 4:
4543
+ if (tag !== 34) {
4544
+ break;
4545
+ }
4546
+ message.change = {
4547
+ $case: "deployedContract",
4548
+ deployedContract: DeployedContract$1.decode(reader, reader.uint32())
4549
+ };
4550
+ continue;
4551
+ }
4552
+ if ((tag & 7) === 4 || tag === 0) {
4553
+ break;
4554
+ }
4555
+ reader.skipType(tag & 7);
4556
+ }
4557
+ return message;
4558
+ },
4559
+ fromJSON(object) {
4560
+ return {
4561
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
4562
+ change: isSet$1(object.declaredClass) ? { $case: "declaredClass", declaredClass: DeclaredClass$1.fromJSON(object.declaredClass) } : isSet$1(object.replacedClass) ? { $case: "replacedClass", replacedClass: ReplacedClass$1.fromJSON(object.replacedClass) } : isSet$1(object.deployedContract) ? { $case: "deployedContract", deployedContract: DeployedContract$1.fromJSON(object.deployedContract) } : void 0
4563
+ };
4564
+ },
4565
+ toJSON(message) {
4566
+ const obj = {};
4567
+ if (message.filterIds?.length) {
4568
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
4569
+ }
4570
+ if (message.change?.$case === "declaredClass") {
4571
+ obj.declaredClass = DeclaredClass$1.toJSON(message.change.declaredClass);
4572
+ }
4573
+ if (message.change?.$case === "replacedClass") {
4574
+ obj.replacedClass = ReplacedClass$1.toJSON(message.change.replacedClass);
4575
+ }
4576
+ if (message.change?.$case === "deployedContract") {
4577
+ obj.deployedContract = DeployedContract$1.toJSON(message.change.deployedContract);
4578
+ }
4579
+ return obj;
4580
+ },
4581
+ create(base) {
4582
+ return ContractChange$1.fromPartial(base ?? {});
4583
+ },
4584
+ fromPartial(object) {
4585
+ const message = createBaseContractChange();
4586
+ message.filterIds = object.filterIds?.map((e) => e) || [];
4587
+ if (object.change?.$case === "declaredClass" && object.change?.declaredClass !== void 0 && object.change?.declaredClass !== null) {
4588
+ message.change = {
4589
+ $case: "declaredClass",
4590
+ declaredClass: DeclaredClass$1.fromPartial(object.change.declaredClass)
4591
+ };
4592
+ }
4593
+ if (object.change?.$case === "replacedClass" && object.change?.replacedClass !== void 0 && object.change?.replacedClass !== null) {
4594
+ message.change = {
4595
+ $case: "replacedClass",
4596
+ replacedClass: ReplacedClass$1.fromPartial(object.change.replacedClass)
4597
+ };
4598
+ }
4599
+ if (object.change?.$case === "deployedContract" && object.change?.deployedContract !== void 0 && object.change?.deployedContract !== null) {
4600
+ message.change = {
4601
+ $case: "deployedContract",
4602
+ deployedContract: DeployedContract$1.fromPartial(object.change.deployedContract)
4603
+ };
4604
+ }
4605
+ return message;
4606
+ }
4607
+ };
4608
+ function createBaseDeclaredClass() {
4609
+ return { classHash: void 0, compiledClassHash: void 0 };
4610
+ }
4611
+ const DeclaredClass$1 = {
4612
+ encode(message, writer = _m0__default.Writer.create()) {
4613
+ if (message.classHash !== void 0) {
4614
+ FieldElement.encode(message.classHash, writer.uint32(10).fork()).ldelim();
4615
+ }
4616
+ if (message.compiledClassHash !== void 0) {
4617
+ FieldElement.encode(message.compiledClassHash, writer.uint32(18).fork()).ldelim();
4618
+ }
4619
+ return writer;
4620
+ },
4621
+ decode(input, length) {
4622
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4623
+ let end = length === void 0 ? reader.len : reader.pos + length;
4624
+ const message = createBaseDeclaredClass();
4625
+ while (reader.pos < end) {
4626
+ const tag = reader.uint32();
4627
+ switch (tag >>> 3) {
4628
+ case 1:
4629
+ if (tag !== 10) {
4630
+ break;
4631
+ }
4632
+ message.classHash = FieldElement.decode(reader, reader.uint32());
4633
+ continue;
4634
+ case 2:
4635
+ if (tag !== 18) {
4636
+ break;
4637
+ }
4638
+ message.compiledClassHash = FieldElement.decode(reader, reader.uint32());
4639
+ continue;
4640
+ }
4641
+ if ((tag & 7) === 4 || tag === 0) {
4642
+ break;
4643
+ }
4644
+ reader.skipType(tag & 7);
4645
+ }
4646
+ return message;
4647
+ },
4648
+ fromJSON(object) {
4649
+ return {
4650
+ classHash: isSet$1(object.classHash) ? FieldElement.fromJSON(object.classHash) : void 0,
4651
+ compiledClassHash: isSet$1(object.compiledClassHash) ? FieldElement.fromJSON(object.compiledClassHash) : void 0
4652
+ };
4653
+ },
4654
+ toJSON(message) {
4655
+ const obj = {};
4656
+ if (message.classHash !== void 0) {
4657
+ obj.classHash = FieldElement.toJSON(message.classHash);
4658
+ }
4659
+ if (message.compiledClassHash !== void 0) {
4660
+ obj.compiledClassHash = FieldElement.toJSON(message.compiledClassHash);
4661
+ }
4662
+ return obj;
4663
+ },
4664
+ create(base) {
4665
+ return DeclaredClass$1.fromPartial(base ?? {});
4666
+ },
4667
+ fromPartial(object) {
4668
+ const message = createBaseDeclaredClass();
4669
+ message.classHash = object.classHash !== void 0 && object.classHash !== null ? FieldElement.fromPartial(object.classHash) : void 0;
4670
+ message.compiledClassHash = object.compiledClassHash !== void 0 && object.compiledClassHash !== null ? FieldElement.fromPartial(object.compiledClassHash) : void 0;
4671
+ return message;
4672
+ }
4673
+ };
4674
+ function createBaseReplacedClass() {
4675
+ return { contractAddress: void 0, classHash: void 0 };
4676
+ }
4677
+ const ReplacedClass$1 = {
4678
+ encode(message, writer = _m0__default.Writer.create()) {
4679
+ if (message.contractAddress !== void 0) {
4680
+ FieldElement.encode(message.contractAddress, writer.uint32(10).fork()).ldelim();
4681
+ }
4682
+ if (message.classHash !== void 0) {
4683
+ FieldElement.encode(message.classHash, writer.uint32(18).fork()).ldelim();
4684
+ }
4685
+ return writer;
4686
+ },
4687
+ decode(input, length) {
4688
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4689
+ let end = length === void 0 ? reader.len : reader.pos + length;
4690
+ const message = createBaseReplacedClass();
4691
+ while (reader.pos < end) {
4692
+ const tag = reader.uint32();
4693
+ switch (tag >>> 3) {
4694
+ case 1:
4695
+ if (tag !== 10) {
4696
+ break;
4697
+ }
4698
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
4699
+ continue;
4700
+ case 2:
4701
+ if (tag !== 18) {
4702
+ break;
4703
+ }
4704
+ message.classHash = FieldElement.decode(reader, reader.uint32());
4705
+ continue;
4706
+ }
4707
+ if ((tag & 7) === 4 || tag === 0) {
4708
+ break;
4709
+ }
4710
+ reader.skipType(tag & 7);
4711
+ }
4712
+ return message;
4713
+ },
4714
+ fromJSON(object) {
4715
+ return {
4716
+ contractAddress: isSet$1(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0,
4717
+ classHash: isSet$1(object.classHash) ? FieldElement.fromJSON(object.classHash) : void 0
4718
+ };
4719
+ },
4720
+ toJSON(message) {
4721
+ const obj = {};
4722
+ if (message.contractAddress !== void 0) {
4723
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
4724
+ }
4725
+ if (message.classHash !== void 0) {
4726
+ obj.classHash = FieldElement.toJSON(message.classHash);
4727
+ }
4728
+ return obj;
4729
+ },
4730
+ create(base) {
4731
+ return ReplacedClass$1.fromPartial(base ?? {});
4732
+ },
4733
+ fromPartial(object) {
4734
+ const message = createBaseReplacedClass();
4735
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
4736
+ message.classHash = object.classHash !== void 0 && object.classHash !== null ? FieldElement.fromPartial(object.classHash) : void 0;
4737
+ return message;
4738
+ }
4739
+ };
4740
+ function createBaseDeployedContract() {
4741
+ return { contractAddress: void 0, classHash: void 0 };
4742
+ }
4743
+ const DeployedContract$1 = {
4744
+ encode(message, writer = _m0__default.Writer.create()) {
4745
+ if (message.contractAddress !== void 0) {
4746
+ FieldElement.encode(message.contractAddress, writer.uint32(10).fork()).ldelim();
4747
+ }
4748
+ if (message.classHash !== void 0) {
4749
+ FieldElement.encode(message.classHash, writer.uint32(18).fork()).ldelim();
4750
+ }
4751
+ return writer;
4752
+ },
4753
+ decode(input, length) {
4754
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4755
+ let end = length === void 0 ? reader.len : reader.pos + length;
4756
+ const message = createBaseDeployedContract();
4757
+ while (reader.pos < end) {
4758
+ const tag = reader.uint32();
4759
+ switch (tag >>> 3) {
4760
+ case 1:
4761
+ if (tag !== 10) {
4762
+ break;
4763
+ }
4764
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
4765
+ continue;
4766
+ case 2:
4767
+ if (tag !== 18) {
4768
+ break;
4769
+ }
4770
+ message.classHash = FieldElement.decode(reader, reader.uint32());
4771
+ continue;
4772
+ }
4773
+ if ((tag & 7) === 4 || tag === 0) {
4774
+ break;
4775
+ }
4776
+ reader.skipType(tag & 7);
4777
+ }
4778
+ return message;
4779
+ },
4780
+ fromJSON(object) {
4781
+ return {
4782
+ contractAddress: isSet$1(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0,
4783
+ classHash: isSet$1(object.classHash) ? FieldElement.fromJSON(object.classHash) : void 0
4784
+ };
4785
+ },
4786
+ toJSON(message) {
4787
+ const obj = {};
4788
+ if (message.contractAddress !== void 0) {
4789
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
4790
+ }
4791
+ if (message.classHash !== void 0) {
4792
+ obj.classHash = FieldElement.toJSON(message.classHash);
4793
+ }
4794
+ return obj;
4795
+ },
4796
+ create(base) {
4797
+ return DeployedContract$1.fromPartial(base ?? {});
4798
+ },
4799
+ fromPartial(object) {
4800
+ const message = createBaseDeployedContract();
4801
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
4802
+ message.classHash = object.classHash !== void 0 && object.classHash !== null ? FieldElement.fromPartial(object.classHash) : void 0;
4803
+ return message;
4804
+ }
4805
+ };
4806
+ function createBaseNonceUpdate() {
4807
+ return { filterIds: [], contractAddress: void 0, nonce: void 0 };
4808
+ }
4809
+ const NonceUpdate$1 = {
4810
+ encode(message, writer = _m0__default.Writer.create()) {
4811
+ if (message.filterIds !== void 0 && message.filterIds.length !== 0) {
4812
+ writer.uint32(10).fork();
4813
+ for (const v of message.filterIds) {
4814
+ writer.uint32(v);
4815
+ }
4816
+ writer.ldelim();
4817
+ }
4818
+ if (message.contractAddress !== void 0) {
4819
+ FieldElement.encode(message.contractAddress, writer.uint32(18).fork()).ldelim();
4820
+ }
4821
+ if (message.nonce !== void 0) {
4822
+ FieldElement.encode(message.nonce, writer.uint32(26).fork()).ldelim();
4823
+ }
4824
+ return writer;
4825
+ },
4826
+ decode(input, length) {
4827
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4828
+ let end = length === void 0 ? reader.len : reader.pos + length;
4829
+ const message = createBaseNonceUpdate();
4830
+ while (reader.pos < end) {
4831
+ const tag = reader.uint32();
4832
+ switch (tag >>> 3) {
4833
+ case 1:
4834
+ if (tag === 8) {
4835
+ message.filterIds.push(reader.uint32());
4836
+ continue;
4837
+ }
4838
+ if (tag === 10) {
4839
+ const end2 = reader.uint32() + reader.pos;
4840
+ while (reader.pos < end2) {
4841
+ message.filterIds.push(reader.uint32());
4842
+ }
4843
+ continue;
4844
+ }
4845
+ break;
4846
+ case 2:
4847
+ if (tag !== 18) {
4848
+ break;
4849
+ }
4850
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
4851
+ continue;
4852
+ case 3:
4853
+ if (tag !== 26) {
4854
+ break;
4855
+ }
4856
+ message.nonce = FieldElement.decode(reader, reader.uint32());
4857
+ continue;
4858
+ }
4859
+ if ((tag & 7) === 4 || tag === 0) {
4860
+ break;
4861
+ }
4862
+ reader.skipType(tag & 7);
4863
+ }
4864
+ return message;
4865
+ },
4866
+ fromJSON(object) {
4867
+ return {
4868
+ filterIds: globalThis.Array.isArray(object?.filterIds) ? object.filterIds.map((e) => globalThis.Number(e)) : [],
4869
+ contractAddress: isSet$1(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0,
4870
+ nonce: isSet$1(object.nonce) ? FieldElement.fromJSON(object.nonce) : void 0
4871
+ };
4872
+ },
4873
+ toJSON(message) {
4874
+ const obj = {};
4875
+ if (message.filterIds?.length) {
4876
+ obj.filterIds = message.filterIds.map((e) => Math.round(e));
4877
+ }
4878
+ if (message.contractAddress !== void 0) {
4879
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
4880
+ }
4881
+ if (message.nonce !== void 0) {
4882
+ obj.nonce = FieldElement.toJSON(message.nonce);
4883
+ }
4884
+ return obj;
4885
+ },
4886
+ create(base) {
4887
+ return NonceUpdate$1.fromPartial(base ?? {});
4888
+ },
4889
+ fromPartial(object) {
4890
+ const message = createBaseNonceUpdate();
4891
+ message.filterIds = object.filterIds?.map((e) => e) || [];
4892
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
4893
+ message.nonce = object.nonce !== void 0 && object.nonce !== null ? FieldElement.fromPartial(object.nonce) : void 0;
4894
+ return message;
4895
+ }
4896
+ };
4897
+ function bytesFromBase64(b64) {
4898
+ if (globalThis.Buffer) {
4899
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
4900
+ } else {
4901
+ const bin = globalThis.atob(b64);
4902
+ const arr = new Uint8Array(bin.length);
4903
+ for (let i = 0; i < bin.length; ++i) {
4904
+ arr[i] = bin.charCodeAt(i);
4905
+ }
4906
+ return arr;
4907
+ }
4908
+ }
4909
+ function base64FromBytes(arr) {
4910
+ if (globalThis.Buffer) {
4911
+ return globalThis.Buffer.from(arr).toString("base64");
4912
+ } else {
4913
+ const bin = [];
4914
+ arr.forEach((byte) => {
4915
+ bin.push(globalThis.String.fromCharCode(byte));
4916
+ });
4917
+ return globalThis.btoa(bin.join(""));
4918
+ }
4152
4919
  }
4153
4920
  function toTimestamp(date) {
4154
4921
  const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
@@ -4185,6 +4952,7 @@ const data = {
4185
4952
  Block: Block$1,
4186
4953
  BlockHeader: BlockHeader$1,
4187
4954
  ComputationResources: ComputationResources$1,
4955
+ ContractChange: ContractChange$1,
4188
4956
  DataAvailabilityMode: DataAvailabilityMode$1,
4189
4957
  DataAvailabilityResources: DataAvailabilityResources$1,
4190
4958
  DeclareTransactionReceipt: DeclareTransactionReceipt$1,
@@ -4192,11 +4960,13 @@ const data = {
4192
4960
  DeclareTransactionV1: DeclareTransactionV1$1,
4193
4961
  DeclareTransactionV2: DeclareTransactionV2$1,
4194
4962
  DeclareTransactionV3: DeclareTransactionV3$1,
4963
+ DeclaredClass: DeclaredClass$1,
4195
4964
  DeployAccountTransactionReceipt: DeployAccountTransactionReceipt$1,
4196
4965
  DeployAccountTransactionV1: DeployAccountTransactionV1$1,
4197
4966
  DeployAccountTransactionV3: DeployAccountTransactionV3$1,
4198
4967
  DeployTransaction: DeployTransaction$1,
4199
4968
  DeployTransactionReceipt: DeployTransactionReceipt$1,
4969
+ DeployedContract: DeployedContract$1,
4200
4970
  Event: Event$1,
4201
4971
  ExecutionResources: ExecutionResources$1,
4202
4972
  ExecutionReverted: ExecutionReverted$1,
@@ -4211,14 +4981,19 @@ const data = {
4211
4981
  L1HandlerTransaction: L1HandlerTransaction$1,
4212
4982
  L1HandlerTransactionReceipt: L1HandlerTransactionReceipt$1,
4213
4983
  MessageToL1: MessageToL1$1,
4984
+ NonceUpdate: NonceUpdate$1,
4214
4985
  PriceUnit: PriceUnit$1,
4986
+ ReplacedClass: ReplacedClass$1,
4215
4987
  ResourceBounds: ResourceBounds$1,
4216
4988
  ResourceBoundsMapping: ResourceBoundsMapping$1,
4217
4989
  ResourcePrice: ResourcePrice$1,
4990
+ StorageDiff: StorageDiff$1,
4991
+ StorageEntry: StorageEntry$1,
4218
4992
  Transaction: Transaction$1,
4219
4993
  TransactionMeta: TransactionMeta$1,
4220
4994
  TransactionReceipt: TransactionReceipt$1,
4221
4995
  TransactionReceiptMeta: TransactionReceiptMeta$1,
4996
+ TransactionStatus: TransactionStatus$1,
4222
4997
  Uint128: Uint128,
4223
4998
  dataAvailabilityModeFromJSON: dataAvailabilityModeFromJSON,
4224
4999
  dataAvailabilityModeToJSON: dataAvailabilityModeToJSON,
@@ -4228,17 +5003,113 @@ const data = {
4228
5003
  l1DataAvailabilityModeToJSON: l1DataAvailabilityModeToJSON,
4229
5004
  priceUnitFromJSON: priceUnitFromJSON,
4230
5005
  priceUnitToJSON: priceUnitToJSON,
4231
- protobufPackage: protobufPackage$1
5006
+ protobufPackage: protobufPackage$1,
5007
+ transactionStatusFromJSON: transactionStatusFromJSON,
5008
+ transactionStatusToJSON: transactionStatusToJSON
4232
5009
  };
4233
5010
 
4234
5011
  const protobufPackage = "starknet.v2";
5012
+ var HeaderFilter$1 = /* @__PURE__ */ ((HeaderFilter2) => {
5013
+ HeaderFilter2[HeaderFilter2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
5014
+ HeaderFilter2[HeaderFilter2["ALWAYS"] = 1] = "ALWAYS";
5015
+ HeaderFilter2[HeaderFilter2["ON_DATA"] = 2] = "ON_DATA";
5016
+ HeaderFilter2[HeaderFilter2["ON_DATA_OR_ON_NEW_BLOCK"] = 3] = "ON_DATA_OR_ON_NEW_BLOCK";
5017
+ HeaderFilter2[HeaderFilter2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5018
+ return HeaderFilter2;
5019
+ })(HeaderFilter$1 || {});
5020
+ function headerFilterFromJSON(object) {
5021
+ switch (object) {
5022
+ case 0:
5023
+ case "HEADER_FILTER_UNSPECIFIED":
5024
+ return 0 /* UNSPECIFIED */;
5025
+ case 1:
5026
+ case "HEADER_FILTER_ALWAYS":
5027
+ return 1 /* ALWAYS */;
5028
+ case 2:
5029
+ case "HEADER_FILTER_ON_DATA":
5030
+ return 2 /* ON_DATA */;
5031
+ case 3:
5032
+ case "HEADER_FILTER_ON_DATA_OR_ON_NEW_BLOCK":
5033
+ return 3 /* ON_DATA_OR_ON_NEW_BLOCK */;
5034
+ case -1:
5035
+ case "UNRECOGNIZED":
5036
+ default:
5037
+ return -1 /* UNRECOGNIZED */;
5038
+ }
5039
+ }
5040
+ function headerFilterToJSON(object) {
5041
+ switch (object) {
5042
+ case 0 /* UNSPECIFIED */:
5043
+ return "HEADER_FILTER_UNSPECIFIED";
5044
+ case 1 /* ALWAYS */:
5045
+ return "HEADER_FILTER_ALWAYS";
5046
+ case 2 /* ON_DATA */:
5047
+ return "HEADER_FILTER_ON_DATA";
5048
+ case 3 /* ON_DATA_OR_ON_NEW_BLOCK */:
5049
+ return "HEADER_FILTER_ON_DATA_OR_ON_NEW_BLOCK";
5050
+ case -1 /* UNRECOGNIZED */:
5051
+ default:
5052
+ return "UNRECOGNIZED";
5053
+ }
5054
+ }
5055
+ var TransactionStatusFilter$1 = /* @__PURE__ */ ((TransactionStatusFilter2) => {
5056
+ TransactionStatusFilter2[TransactionStatusFilter2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
5057
+ TransactionStatusFilter2[TransactionStatusFilter2["SUCCEEDED"] = 1] = "SUCCEEDED";
5058
+ TransactionStatusFilter2[TransactionStatusFilter2["REVERTED"] = 2] = "REVERTED";
5059
+ TransactionStatusFilter2[TransactionStatusFilter2["ALL"] = 3] = "ALL";
5060
+ TransactionStatusFilter2[TransactionStatusFilter2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5061
+ return TransactionStatusFilter2;
5062
+ })(TransactionStatusFilter$1 || {});
5063
+ function transactionStatusFilterFromJSON(object) {
5064
+ switch (object) {
5065
+ case 0:
5066
+ case "TRANSACTION_STATUS_FILTER_UNSPECIFIED":
5067
+ return 0 /* UNSPECIFIED */;
5068
+ case 1:
5069
+ case "TRANSACTION_STATUS_FILTER_SUCCEEDED":
5070
+ return 1 /* SUCCEEDED */;
5071
+ case 2:
5072
+ case "TRANSACTION_STATUS_FILTER_REVERTED":
5073
+ return 2 /* REVERTED */;
5074
+ case 3:
5075
+ case "TRANSACTION_STATUS_FILTER_ALL":
5076
+ return 3 /* ALL */;
5077
+ case -1:
5078
+ case "UNRECOGNIZED":
5079
+ default:
5080
+ return -1 /* UNRECOGNIZED */;
5081
+ }
5082
+ }
5083
+ function transactionStatusFilterToJSON(object) {
5084
+ switch (object) {
5085
+ case 0 /* UNSPECIFIED */:
5086
+ return "TRANSACTION_STATUS_FILTER_UNSPECIFIED";
5087
+ case 1 /* SUCCEEDED */:
5088
+ return "TRANSACTION_STATUS_FILTER_SUCCEEDED";
5089
+ case 2 /* REVERTED */:
5090
+ return "TRANSACTION_STATUS_FILTER_REVERTED";
5091
+ case 3 /* ALL */:
5092
+ return "TRANSACTION_STATUS_FILTER_ALL";
5093
+ case -1 /* UNRECOGNIZED */:
5094
+ default:
5095
+ return "UNRECOGNIZED";
5096
+ }
5097
+ }
4235
5098
  function createBaseFilter() {
4236
- return { header: void 0, transactions: [], events: [], messages: [] };
5099
+ return {
5100
+ header: 0,
5101
+ transactions: [],
5102
+ events: [],
5103
+ messages: [],
5104
+ storageDiffs: [],
5105
+ contractChanges: [],
5106
+ nonceUpdates: []
5107
+ };
4237
5108
  }
4238
5109
  const Filter$1 = {
4239
5110
  encode(message, writer = _m0__default.Writer.create()) {
4240
- if (message.header !== void 0) {
4241
- HeaderFilter$1.encode(message.header, writer.uint32(10).fork()).ldelim();
5111
+ if (message.header !== void 0 && message.header !== 0) {
5112
+ writer.uint32(8).int32(message.header);
4242
5113
  }
4243
5114
  if (message.transactions !== void 0 && message.transactions.length !== 0) {
4244
5115
  for (const v of message.transactions) {
@@ -4255,6 +5126,21 @@ const Filter$1 = {
4255
5126
  MessageToL1Filter$1.encode(v, writer.uint32(34).fork()).ldelim();
4256
5127
  }
4257
5128
  }
5129
+ if (message.storageDiffs !== void 0 && message.storageDiffs.length !== 0) {
5130
+ for (const v of message.storageDiffs) {
5131
+ StorageDiffFilter$1.encode(v, writer.uint32(42).fork()).ldelim();
5132
+ }
5133
+ }
5134
+ if (message.contractChanges !== void 0 && message.contractChanges.length !== 0) {
5135
+ for (const v of message.contractChanges) {
5136
+ ContractChangeFilter$1.encode(v, writer.uint32(50).fork()).ldelim();
5137
+ }
5138
+ }
5139
+ if (message.nonceUpdates !== void 0 && message.nonceUpdates.length !== 0) {
5140
+ for (const v of message.nonceUpdates) {
5141
+ NonceUpdateFilter$1.encode(v, writer.uint32(58).fork()).ldelim();
5142
+ }
5143
+ }
4258
5144
  return writer;
4259
5145
  },
4260
5146
  decode(input, length) {
@@ -4265,10 +5151,10 @@ const Filter$1 = {
4265
5151
  const tag = reader.uint32();
4266
5152
  switch (tag >>> 3) {
4267
5153
  case 1:
4268
- if (tag !== 10) {
5154
+ if (tag !== 8) {
4269
5155
  break;
4270
5156
  }
4271
- message.header = HeaderFilter$1.decode(reader, reader.uint32());
5157
+ message.header = reader.int32();
4272
5158
  continue;
4273
5159
  case 2:
4274
5160
  if (tag !== 18) {
@@ -4288,6 +5174,24 @@ const Filter$1 = {
4288
5174
  }
4289
5175
  message.messages.push(MessageToL1Filter$1.decode(reader, reader.uint32()));
4290
5176
  continue;
5177
+ case 5:
5178
+ if (tag !== 42) {
5179
+ break;
5180
+ }
5181
+ message.storageDiffs.push(StorageDiffFilter$1.decode(reader, reader.uint32()));
5182
+ continue;
5183
+ case 6:
5184
+ if (tag !== 50) {
5185
+ break;
5186
+ }
5187
+ message.contractChanges.push(ContractChangeFilter$1.decode(reader, reader.uint32()));
5188
+ continue;
5189
+ case 7:
5190
+ if (tag !== 58) {
5191
+ break;
5192
+ }
5193
+ message.nonceUpdates.push(NonceUpdateFilter$1.decode(reader, reader.uint32()));
5194
+ continue;
4291
5195
  }
4292
5196
  if ((tag & 7) === 4 || tag === 0) {
4293
5197
  break;
@@ -4298,16 +5202,19 @@ const Filter$1 = {
4298
5202
  },
4299
5203
  fromJSON(object) {
4300
5204
  return {
4301
- header: isSet(object.header) ? HeaderFilter$1.fromJSON(object.header) : void 0,
5205
+ header: isSet(object.header) ? headerFilterFromJSON(object.header) : 0,
4302
5206
  transactions: globalThis.Array.isArray(object?.transactions) ? object.transactions.map((e) => TransactionFilter$1.fromJSON(e)) : [],
4303
5207
  events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => EventFilter$1.fromJSON(e)) : [],
4304
- messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => MessageToL1Filter$1.fromJSON(e)) : []
5208
+ messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => MessageToL1Filter$1.fromJSON(e)) : [],
5209
+ storageDiffs: globalThis.Array.isArray(object?.storageDiffs) ? object.storageDiffs.map((e) => StorageDiffFilter$1.fromJSON(e)) : [],
5210
+ contractChanges: globalThis.Array.isArray(object?.contractChanges) ? object.contractChanges.map((e) => ContractChangeFilter$1.fromJSON(e)) : [],
5211
+ nonceUpdates: globalThis.Array.isArray(object?.nonceUpdates) ? object.nonceUpdates.map((e) => NonceUpdateFilter$1.fromJSON(e)) : []
4305
5212
  };
4306
5213
  },
4307
5214
  toJSON(message) {
4308
5215
  const obj = {};
4309
- if (message.header !== void 0) {
4310
- obj.header = HeaderFilter$1.toJSON(message.header);
5216
+ if (message.header !== void 0 && message.header !== 0) {
5217
+ obj.header = headerFilterToJSON(message.header);
4311
5218
  }
4312
5219
  if (message.transactions?.length) {
4313
5220
  obj.transactions = message.transactions.map((e) => TransactionFilter$1.toJSON(e));
@@ -4318,6 +5225,15 @@ const Filter$1 = {
4318
5225
  if (message.messages?.length) {
4319
5226
  obj.messages = message.messages.map((e) => MessageToL1Filter$1.toJSON(e));
4320
5227
  }
5228
+ if (message.storageDiffs?.length) {
5229
+ obj.storageDiffs = message.storageDiffs.map((e) => StorageDiffFilter$1.toJSON(e));
5230
+ }
5231
+ if (message.contractChanges?.length) {
5232
+ obj.contractChanges = message.contractChanges.map((e) => ContractChangeFilter$1.toJSON(e));
5233
+ }
5234
+ if (message.nonceUpdates?.length) {
5235
+ obj.nonceUpdates = message.nonceUpdates.map((e) => NonceUpdateFilter$1.toJSON(e));
5236
+ }
4321
5237
  return obj;
4322
5238
  },
4323
5239
  create(base) {
@@ -4325,69 +5241,23 @@ const Filter$1 = {
4325
5241
  },
4326
5242
  fromPartial(object) {
4327
5243
  const message = createBaseFilter();
4328
- message.header = object.header !== void 0 && object.header !== null ? HeaderFilter$1.fromPartial(object.header) : void 0;
5244
+ message.header = object.header ?? 0;
4329
5245
  message.transactions = object.transactions?.map((e) => TransactionFilter$1.fromPartial(e)) || [];
4330
5246
  message.events = object.events?.map((e) => EventFilter$1.fromPartial(e)) || [];
4331
5247
  message.messages = object.messages?.map((e) => MessageToL1Filter$1.fromPartial(e)) || [];
4332
- return message;
4333
- }
4334
- };
4335
- function createBaseHeaderFilter() {
4336
- return { always: void 0 };
4337
- }
4338
- const HeaderFilter$1 = {
4339
- encode(message, writer = _m0__default.Writer.create()) {
4340
- if (message.always !== void 0) {
4341
- writer.uint32(8).bool(message.always);
4342
- }
4343
- return writer;
4344
- },
4345
- decode(input, length) {
4346
- const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
4347
- let end = length === void 0 ? reader.len : reader.pos + length;
4348
- const message = createBaseHeaderFilter();
4349
- while (reader.pos < end) {
4350
- const tag = reader.uint32();
4351
- switch (tag >>> 3) {
4352
- case 1:
4353
- if (tag !== 8) {
4354
- break;
4355
- }
4356
- message.always = reader.bool();
4357
- continue;
4358
- }
4359
- if ((tag & 7) === 4 || tag === 0) {
4360
- break;
4361
- }
4362
- reader.skipType(tag & 7);
4363
- }
4364
- return message;
4365
- },
4366
- fromJSON(object) {
4367
- return { always: isSet(object.always) ? globalThis.Boolean(object.always) : void 0 };
4368
- },
4369
- toJSON(message) {
4370
- const obj = {};
4371
- if (message.always !== void 0) {
4372
- obj.always = message.always;
4373
- }
4374
- return obj;
4375
- },
4376
- create(base) {
4377
- return HeaderFilter$1.fromPartial(base ?? {});
4378
- },
4379
- fromPartial(object) {
4380
- const message = createBaseHeaderFilter();
4381
- message.always = object.always ?? void 0;
5248
+ message.storageDiffs = object.storageDiffs?.map((e) => StorageDiffFilter$1.fromPartial(e)) || [];
5249
+ message.contractChanges = object.contractChanges?.map((e) => ContractChangeFilter$1.fromPartial(e)) || [];
5250
+ message.nonceUpdates = object.nonceUpdates?.map((e) => NonceUpdateFilter$1.fromPartial(e)) || [];
4382
5251
  return message;
4383
5252
  }
4384
5253
  };
4385
5254
  function createBaseEventFilter() {
4386
5255
  return {
4387
- fromAddress: void 0,
5256
+ id: 0,
5257
+ address: void 0,
4388
5258
  keys: [],
4389
5259
  strict: void 0,
4390
- includeReverted: void 0,
5260
+ transactionStatus: void 0,
4391
5261
  includeTransaction: void 0,
4392
5262
  includeReceipt: void 0,
4393
5263
  includeMessages: void 0,
@@ -4396,31 +5266,34 @@ function createBaseEventFilter() {
4396
5266
  }
4397
5267
  const EventFilter$1 = {
4398
5268
  encode(message, writer = _m0__default.Writer.create()) {
4399
- if (message.fromAddress !== void 0) {
4400
- FieldElement.encode(message.fromAddress, writer.uint32(10).fork()).ldelim();
5269
+ if (message.id !== void 0 && message.id !== 0) {
5270
+ writer.uint32(8).uint32(message.id);
5271
+ }
5272
+ if (message.address !== void 0) {
5273
+ FieldElement.encode(message.address, writer.uint32(18).fork()).ldelim();
4401
5274
  }
4402
5275
  if (message.keys !== void 0 && message.keys.length !== 0) {
4403
5276
  for (const v of message.keys) {
4404
- Key$1.encode(v, writer.uint32(18).fork()).ldelim();
5277
+ Key$1.encode(v, writer.uint32(26).fork()).ldelim();
4405
5278
  }
4406
5279
  }
4407
5280
  if (message.strict !== void 0) {
4408
- writer.uint32(24).bool(message.strict);
5281
+ writer.uint32(32).bool(message.strict);
4409
5282
  }
4410
- if (message.includeReverted !== void 0) {
4411
- writer.uint32(32).bool(message.includeReverted);
5283
+ if (message.transactionStatus !== void 0) {
5284
+ writer.uint32(40).int32(message.transactionStatus);
4412
5285
  }
4413
5286
  if (message.includeTransaction !== void 0) {
4414
- writer.uint32(40).bool(message.includeTransaction);
5287
+ writer.uint32(48).bool(message.includeTransaction);
4415
5288
  }
4416
5289
  if (message.includeReceipt !== void 0) {
4417
- writer.uint32(48).bool(message.includeReceipt);
5290
+ writer.uint32(56).bool(message.includeReceipt);
4418
5291
  }
4419
5292
  if (message.includeMessages !== void 0) {
4420
- writer.uint32(56).bool(message.includeMessages);
5293
+ writer.uint32(64).bool(message.includeMessages);
4421
5294
  }
4422
5295
  if (message.includeSiblings !== void 0) {
4423
- writer.uint32(64).bool(message.includeSiblings);
5296
+ writer.uint32(72).bool(message.includeSiblings);
4424
5297
  }
4425
5298
  return writer;
4426
5299
  },
@@ -4432,51 +5305,57 @@ const EventFilter$1 = {
4432
5305
  const tag = reader.uint32();
4433
5306
  switch (tag >>> 3) {
4434
5307
  case 1:
4435
- if (tag !== 10) {
5308
+ if (tag !== 8) {
4436
5309
  break;
4437
5310
  }
4438
- message.fromAddress = FieldElement.decode(reader, reader.uint32());
5311
+ message.id = reader.uint32();
4439
5312
  continue;
4440
5313
  case 2:
4441
5314
  if (tag !== 18) {
4442
5315
  break;
4443
5316
  }
4444
- message.keys.push(Key$1.decode(reader, reader.uint32()));
5317
+ message.address = FieldElement.decode(reader, reader.uint32());
4445
5318
  continue;
4446
5319
  case 3:
4447
- if (tag !== 24) {
5320
+ if (tag !== 26) {
4448
5321
  break;
4449
5322
  }
4450
- message.strict = reader.bool();
5323
+ message.keys.push(Key$1.decode(reader, reader.uint32()));
4451
5324
  continue;
4452
5325
  case 4:
4453
5326
  if (tag !== 32) {
4454
5327
  break;
4455
5328
  }
4456
- message.includeReverted = reader.bool();
5329
+ message.strict = reader.bool();
4457
5330
  continue;
4458
5331
  case 5:
4459
5332
  if (tag !== 40) {
4460
5333
  break;
4461
5334
  }
4462
- message.includeTransaction = reader.bool();
5335
+ message.transactionStatus = reader.int32();
4463
5336
  continue;
4464
5337
  case 6:
4465
5338
  if (tag !== 48) {
4466
5339
  break;
4467
5340
  }
4468
- message.includeReceipt = reader.bool();
5341
+ message.includeTransaction = reader.bool();
4469
5342
  continue;
4470
5343
  case 7:
4471
5344
  if (tag !== 56) {
4472
5345
  break;
4473
5346
  }
4474
- message.includeMessages = reader.bool();
5347
+ message.includeReceipt = reader.bool();
4475
5348
  continue;
4476
5349
  case 8:
4477
5350
  if (tag !== 64) {
4478
5351
  break;
4479
5352
  }
5353
+ message.includeMessages = reader.bool();
5354
+ continue;
5355
+ case 9:
5356
+ if (tag !== 72) {
5357
+ break;
5358
+ }
4480
5359
  message.includeSiblings = reader.bool();
4481
5360
  continue;
4482
5361
  }
@@ -4489,10 +5368,11 @@ const EventFilter$1 = {
4489
5368
  },
4490
5369
  fromJSON(object) {
4491
5370
  return {
4492
- fromAddress: isSet(object.fromAddress) ? FieldElement.fromJSON(object.fromAddress) : void 0,
5371
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
5372
+ address: isSet(object.address) ? FieldElement.fromJSON(object.address) : void 0,
4493
5373
  keys: globalThis.Array.isArray(object?.keys) ? object.keys.map((e) => Key$1.fromJSON(e)) : [],
4494
5374
  strict: isSet(object.strict) ? globalThis.Boolean(object.strict) : void 0,
4495
- includeReverted: isSet(object.includeReverted) ? globalThis.Boolean(object.includeReverted) : void 0,
5375
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFilterFromJSON(object.transactionStatus) : void 0,
4496
5376
  includeTransaction: isSet(object.includeTransaction) ? globalThis.Boolean(object.includeTransaction) : void 0,
4497
5377
  includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0,
4498
5378
  includeMessages: isSet(object.includeMessages) ? globalThis.Boolean(object.includeMessages) : void 0,
@@ -4501,8 +5381,11 @@ const EventFilter$1 = {
4501
5381
  },
4502
5382
  toJSON(message) {
4503
5383
  const obj = {};
4504
- if (message.fromAddress !== void 0) {
4505
- obj.fromAddress = FieldElement.toJSON(message.fromAddress);
5384
+ if (message.id !== void 0 && message.id !== 0) {
5385
+ obj.id = Math.round(message.id);
5386
+ }
5387
+ if (message.address !== void 0) {
5388
+ obj.address = FieldElement.toJSON(message.address);
4506
5389
  }
4507
5390
  if (message.keys?.length) {
4508
5391
  obj.keys = message.keys.map((e) => Key$1.toJSON(e));
@@ -4510,8 +5393,8 @@ const EventFilter$1 = {
4510
5393
  if (message.strict !== void 0) {
4511
5394
  obj.strict = message.strict;
4512
5395
  }
4513
- if (message.includeReverted !== void 0) {
4514
- obj.includeReverted = message.includeReverted;
5396
+ if (message.transactionStatus !== void 0) {
5397
+ obj.transactionStatus = transactionStatusFilterToJSON(message.transactionStatus);
4515
5398
  }
4516
5399
  if (message.includeTransaction !== void 0) {
4517
5400
  obj.includeTransaction = message.includeTransaction;
@@ -4532,10 +5415,11 @@ const EventFilter$1 = {
4532
5415
  },
4533
5416
  fromPartial(object) {
4534
5417
  const message = createBaseEventFilter();
4535
- message.fromAddress = object.fromAddress !== void 0 && object.fromAddress !== null ? FieldElement.fromPartial(object.fromAddress) : void 0;
5418
+ message.id = object.id ?? 0;
5419
+ message.address = object.address !== void 0 && object.address !== null ? FieldElement.fromPartial(object.address) : void 0;
4536
5420
  message.keys = object.keys?.map((e) => Key$1.fromPartial(e)) || [];
4537
5421
  message.strict = object.strict ?? void 0;
4538
- message.includeReverted = object.includeReverted ?? void 0;
5422
+ message.transactionStatus = object.transactionStatus ?? void 0;
4539
5423
  message.includeTransaction = object.includeTransaction ?? void 0;
4540
5424
  message.includeReceipt = object.includeReceipt ?? void 0;
4541
5425
  message.includeMessages = object.includeMessages ?? void 0;
@@ -4595,33 +5479,41 @@ const Key$1 = {
4595
5479
  };
4596
5480
  function createBaseMessageToL1Filter() {
4597
5481
  return {
5482
+ id: 0,
4598
5483
  fromAddress: void 0,
4599
5484
  toAddress: void 0,
4600
- includeReverted: void 0,
5485
+ transactionStatus: void 0,
4601
5486
  includeTransaction: void 0,
4602
5487
  includeReceipt: void 0,
4603
- includeEvents: void 0
5488
+ includeEvents: void 0,
5489
+ includeSiblings: void 0
4604
5490
  };
4605
5491
  }
4606
5492
  const MessageToL1Filter$1 = {
4607
5493
  encode(message, writer = _m0__default.Writer.create()) {
5494
+ if (message.id !== void 0 && message.id !== 0) {
5495
+ writer.uint32(8).uint32(message.id);
5496
+ }
4608
5497
  if (message.fromAddress !== void 0) {
4609
- FieldElement.encode(message.fromAddress, writer.uint32(10).fork()).ldelim();
5498
+ FieldElement.encode(message.fromAddress, writer.uint32(18).fork()).ldelim();
4610
5499
  }
4611
5500
  if (message.toAddress !== void 0) {
4612
- FieldElement.encode(message.toAddress, writer.uint32(18).fork()).ldelim();
5501
+ FieldElement.encode(message.toAddress, writer.uint32(26).fork()).ldelim();
4613
5502
  }
4614
- if (message.includeReverted !== void 0) {
4615
- writer.uint32(24).bool(message.includeReverted);
5503
+ if (message.transactionStatus !== void 0) {
5504
+ writer.uint32(32).int32(message.transactionStatus);
4616
5505
  }
4617
5506
  if (message.includeTransaction !== void 0) {
4618
- writer.uint32(32).bool(message.includeTransaction);
5507
+ writer.uint32(40).bool(message.includeTransaction);
4619
5508
  }
4620
5509
  if (message.includeReceipt !== void 0) {
4621
- writer.uint32(40).bool(message.includeReceipt);
5510
+ writer.uint32(48).bool(message.includeReceipt);
4622
5511
  }
4623
5512
  if (message.includeEvents !== void 0) {
4624
- writer.uint32(48).bool(message.includeEvents);
5513
+ writer.uint32(56).bool(message.includeEvents);
5514
+ }
5515
+ if (message.includeSiblings !== void 0) {
5516
+ writer.uint32(64).bool(message.includeSiblings);
4625
5517
  }
4626
5518
  return writer;
4627
5519
  },
@@ -4633,41 +5525,53 @@ const MessageToL1Filter$1 = {
4633
5525
  const tag = reader.uint32();
4634
5526
  switch (tag >>> 3) {
4635
5527
  case 1:
4636
- if (tag !== 10) {
5528
+ if (tag !== 8) {
4637
5529
  break;
4638
5530
  }
4639
- message.fromAddress = FieldElement.decode(reader, reader.uint32());
5531
+ message.id = reader.uint32();
4640
5532
  continue;
4641
5533
  case 2:
4642
5534
  if (tag !== 18) {
4643
5535
  break;
4644
5536
  }
4645
- message.toAddress = FieldElement.decode(reader, reader.uint32());
5537
+ message.fromAddress = FieldElement.decode(reader, reader.uint32());
4646
5538
  continue;
4647
5539
  case 3:
4648
- if (tag !== 24) {
5540
+ if (tag !== 26) {
4649
5541
  break;
4650
5542
  }
4651
- message.includeReverted = reader.bool();
5543
+ message.toAddress = FieldElement.decode(reader, reader.uint32());
4652
5544
  continue;
4653
5545
  case 4:
4654
5546
  if (tag !== 32) {
4655
5547
  break;
4656
5548
  }
4657
- message.includeTransaction = reader.bool();
5549
+ message.transactionStatus = reader.int32();
4658
5550
  continue;
4659
5551
  case 5:
4660
5552
  if (tag !== 40) {
4661
5553
  break;
4662
5554
  }
4663
- message.includeReceipt = reader.bool();
5555
+ message.includeTransaction = reader.bool();
4664
5556
  continue;
4665
5557
  case 6:
4666
5558
  if (tag !== 48) {
4667
5559
  break;
4668
5560
  }
5561
+ message.includeReceipt = reader.bool();
5562
+ continue;
5563
+ case 7:
5564
+ if (tag !== 56) {
5565
+ break;
5566
+ }
4669
5567
  message.includeEvents = reader.bool();
4670
5568
  continue;
5569
+ case 8:
5570
+ if (tag !== 64) {
5571
+ break;
5572
+ }
5573
+ message.includeSiblings = reader.bool();
5574
+ continue;
4671
5575
  }
4672
5576
  if ((tag & 7) === 4 || tag === 0) {
4673
5577
  break;
@@ -4678,24 +5582,29 @@ const MessageToL1Filter$1 = {
4678
5582
  },
4679
5583
  fromJSON(object) {
4680
5584
  return {
5585
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
4681
5586
  fromAddress: isSet(object.fromAddress) ? FieldElement.fromJSON(object.fromAddress) : void 0,
4682
5587
  toAddress: isSet(object.toAddress) ? FieldElement.fromJSON(object.toAddress) : void 0,
4683
- includeReverted: isSet(object.includeReverted) ? globalThis.Boolean(object.includeReverted) : void 0,
5588
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFilterFromJSON(object.transactionStatus) : void 0,
4684
5589
  includeTransaction: isSet(object.includeTransaction) ? globalThis.Boolean(object.includeTransaction) : void 0,
4685
5590
  includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0,
4686
- includeEvents: isSet(object.includeEvents) ? globalThis.Boolean(object.includeEvents) : void 0
5591
+ includeEvents: isSet(object.includeEvents) ? globalThis.Boolean(object.includeEvents) : void 0,
5592
+ includeSiblings: isSet(object.includeSiblings) ? globalThis.Boolean(object.includeSiblings) : void 0
4687
5593
  };
4688
5594
  },
4689
5595
  toJSON(message) {
4690
5596
  const obj = {};
5597
+ if (message.id !== void 0 && message.id !== 0) {
5598
+ obj.id = Math.round(message.id);
5599
+ }
4691
5600
  if (message.fromAddress !== void 0) {
4692
5601
  obj.fromAddress = FieldElement.toJSON(message.fromAddress);
4693
5602
  }
4694
5603
  if (message.toAddress !== void 0) {
4695
5604
  obj.toAddress = FieldElement.toJSON(message.toAddress);
4696
5605
  }
4697
- if (message.includeReverted !== void 0) {
4698
- obj.includeReverted = message.includeReverted;
5606
+ if (message.transactionStatus !== void 0) {
5607
+ obj.transactionStatus = transactionStatusFilterToJSON(message.transactionStatus);
4699
5608
  }
4700
5609
  if (message.includeTransaction !== void 0) {
4701
5610
  obj.includeTransaction = message.includeTransaction;
@@ -4706,6 +5615,9 @@ const MessageToL1Filter$1 = {
4706
5615
  if (message.includeEvents !== void 0) {
4707
5616
  obj.includeEvents = message.includeEvents;
4708
5617
  }
5618
+ if (message.includeSiblings !== void 0) {
5619
+ obj.includeSiblings = message.includeSiblings;
5620
+ }
4709
5621
  return obj;
4710
5622
  },
4711
5623
  create(base) {
@@ -4713,71 +5625,77 @@ const MessageToL1Filter$1 = {
4713
5625
  },
4714
5626
  fromPartial(object) {
4715
5627
  const message = createBaseMessageToL1Filter();
5628
+ message.id = object.id ?? 0;
4716
5629
  message.fromAddress = object.fromAddress !== void 0 && object.fromAddress !== null ? FieldElement.fromPartial(object.fromAddress) : void 0;
4717
5630
  message.toAddress = object.toAddress !== void 0 && object.toAddress !== null ? FieldElement.fromPartial(object.toAddress) : void 0;
4718
- message.includeReverted = object.includeReverted ?? void 0;
5631
+ message.transactionStatus = object.transactionStatus ?? void 0;
4719
5632
  message.includeTransaction = object.includeTransaction ?? void 0;
4720
5633
  message.includeReceipt = object.includeReceipt ?? void 0;
4721
5634
  message.includeEvents = object.includeEvents ?? void 0;
5635
+ message.includeSiblings = object.includeSiblings ?? void 0;
4722
5636
  return message;
4723
5637
  }
4724
5638
  };
4725
5639
  function createBaseTransactionFilter() {
4726
5640
  return {
4727
- includeReverted: void 0,
5641
+ id: 0,
5642
+ transactionStatus: void 0,
4728
5643
  includeReceipt: void 0,
4729
5644
  includeEvents: void 0,
4730
5645
  includeMessages: void 0,
4731
- transactionType: void 0
5646
+ inner: void 0
4732
5647
  };
4733
5648
  }
4734
5649
  const TransactionFilter$1 = {
4735
5650
  encode(message, writer = _m0__default.Writer.create()) {
4736
- if (message.includeReverted !== void 0) {
4737
- writer.uint32(8).bool(message.includeReverted);
5651
+ if (message.id !== void 0 && message.id !== 0) {
5652
+ writer.uint32(8).uint32(message.id);
5653
+ }
5654
+ if (message.transactionStatus !== void 0) {
5655
+ writer.uint32(16).int32(message.transactionStatus);
4738
5656
  }
4739
5657
  if (message.includeReceipt !== void 0) {
4740
- writer.uint32(16).bool(message.includeReceipt);
5658
+ writer.uint32(24).bool(message.includeReceipt);
4741
5659
  }
4742
5660
  if (message.includeEvents !== void 0) {
4743
- writer.uint32(24).bool(message.includeEvents);
5661
+ writer.uint32(32).bool(message.includeEvents);
4744
5662
  }
4745
5663
  if (message.includeMessages !== void 0) {
4746
- writer.uint32(32).bool(message.includeMessages);
5664
+ writer.uint32(40).bool(message.includeMessages);
4747
5665
  }
4748
- switch (message.transactionType?.$case) {
5666
+ switch (message.inner?.$case) {
4749
5667
  case "invokeV0":
4750
- InvokeTransactionV0Filter$1.encode(message.transactionType.invokeV0, writer.uint32(42).fork()).ldelim();
5668
+ InvokeTransactionV0Filter$1.encode(message.inner.invokeV0, writer.uint32(50).fork()).ldelim();
4751
5669
  break;
4752
5670
  case "invokeV1":
4753
- InvokeTransactionV1Filter$1.encode(message.transactionType.invokeV1, writer.uint32(50).fork()).ldelim();
5671
+ InvokeTransactionV1Filter$1.encode(message.inner.invokeV1, writer.uint32(58).fork()).ldelim();
4754
5672
  break;
4755
5673
  case "invokeV3":
4756
- InvokeTransactionV3Filter$1.encode(message.transactionType.invokeV3, writer.uint32(58).fork()).ldelim();
5674
+ InvokeTransactionV3Filter$1.encode(message.inner.invokeV3, writer.uint32(66).fork()).ldelim();
4757
5675
  break;
4758
5676
  case "deploy":
4759
- DeployTransactionFilter$1.encode(message.transactionType.deploy, writer.uint32(66).fork()).ldelim();
5677
+ DeployTransactionFilter$1.encode(message.inner.deploy, writer.uint32(74).fork()).ldelim();
4760
5678
  break;
4761
5679
  case "declareV0":
4762
- DeclareV0TransactionFilter$1.encode(message.transactionType.declareV0, writer.uint32(74).fork()).ldelim();
5680
+ DeclareV0TransactionFilter$1.encode(message.inner.declareV0, writer.uint32(82).fork()).ldelim();
4763
5681
  break;
4764
5682
  case "declareV1":
4765
- DeclareV1TransactionFilter$1.encode(message.transactionType.declareV1, writer.uint32(82).fork()).ldelim();
5683
+ DeclareV1TransactionFilter$1.encode(message.inner.declareV1, writer.uint32(90).fork()).ldelim();
4766
5684
  break;
4767
5685
  case "declareV2":
4768
- DeclareV2TransactionFilter$1.encode(message.transactionType.declareV2, writer.uint32(90).fork()).ldelim();
5686
+ DeclareV2TransactionFilter$1.encode(message.inner.declareV2, writer.uint32(98).fork()).ldelim();
4769
5687
  break;
4770
5688
  case "declareV3":
4771
- DeclareV3TransactionFilter$1.encode(message.transactionType.declareV3, writer.uint32(98).fork()).ldelim();
5689
+ DeclareV3TransactionFilter$1.encode(message.inner.declareV3, writer.uint32(106).fork()).ldelim();
4772
5690
  break;
4773
5691
  case "l1Handler":
4774
- L1HandlerTransactionFilter$1.encode(message.transactionType.l1Handler, writer.uint32(106).fork()).ldelim();
5692
+ L1HandlerTransactionFilter$1.encode(message.inner.l1Handler, writer.uint32(114).fork()).ldelim();
4775
5693
  break;
4776
5694
  case "deployAccountV1":
4777
- DeployAccountV1TransactionFilter$1.encode(message.transactionType.deployAccountV1, writer.uint32(114).fork()).ldelim();
5695
+ DeployAccountV1TransactionFilter$1.encode(message.inner.deployAccountV1, writer.uint32(122).fork()).ldelim();
4778
5696
  break;
4779
5697
  case "deployAccountV3":
4780
- DeployAccountV3TransactionFilter$1.encode(message.transactionType.deployAccountV3, writer.uint32(122).fork()).ldelim();
5698
+ DeployAccountV3TransactionFilter$1.encode(message.inner.deployAccountV3, writer.uint32(130).fork()).ldelim();
4781
5699
  break;
4782
5700
  }
4783
5701
  return writer;
@@ -4793,121 +5711,100 @@ const TransactionFilter$1 = {
4793
5711
  if (tag !== 8) {
4794
5712
  break;
4795
5713
  }
4796
- message.includeReverted = reader.bool();
5714
+ message.id = reader.uint32();
4797
5715
  continue;
4798
5716
  case 2:
4799
5717
  if (tag !== 16) {
4800
5718
  break;
4801
5719
  }
4802
- message.includeReceipt = reader.bool();
5720
+ message.transactionStatus = reader.int32();
4803
5721
  continue;
4804
5722
  case 3:
4805
5723
  if (tag !== 24) {
4806
5724
  break;
4807
5725
  }
4808
- message.includeEvents = reader.bool();
5726
+ message.includeReceipt = reader.bool();
4809
5727
  continue;
4810
5728
  case 4:
4811
5729
  if (tag !== 32) {
4812
5730
  break;
4813
5731
  }
4814
- message.includeMessages = reader.bool();
5732
+ message.includeEvents = reader.bool();
4815
5733
  continue;
4816
5734
  case 5:
4817
- if (tag !== 42) {
5735
+ if (tag !== 40) {
4818
5736
  break;
4819
5737
  }
4820
- message.transactionType = {
4821
- $case: "invokeV0",
4822
- invokeV0: InvokeTransactionV0Filter$1.decode(reader, reader.uint32())
4823
- };
5738
+ message.includeMessages = reader.bool();
4824
5739
  continue;
4825
5740
  case 6:
4826
5741
  if (tag !== 50) {
4827
5742
  break;
4828
5743
  }
4829
- message.transactionType = {
4830
- $case: "invokeV1",
4831
- invokeV1: InvokeTransactionV1Filter$1.decode(reader, reader.uint32())
4832
- };
5744
+ message.inner = { $case: "invokeV0", invokeV0: InvokeTransactionV0Filter$1.decode(reader, reader.uint32()) };
4833
5745
  continue;
4834
5746
  case 7:
4835
5747
  if (tag !== 58) {
4836
5748
  break;
4837
5749
  }
4838
- message.transactionType = {
4839
- $case: "invokeV3",
4840
- invokeV3: InvokeTransactionV3Filter$1.decode(reader, reader.uint32())
4841
- };
5750
+ message.inner = { $case: "invokeV1", invokeV1: InvokeTransactionV1Filter$1.decode(reader, reader.uint32()) };
4842
5751
  continue;
4843
5752
  case 8:
4844
5753
  if (tag !== 66) {
4845
5754
  break;
4846
5755
  }
4847
- message.transactionType = {
4848
- $case: "deploy",
4849
- deploy: DeployTransactionFilter$1.decode(reader, reader.uint32())
4850
- };
5756
+ message.inner = { $case: "invokeV3", invokeV3: InvokeTransactionV3Filter$1.decode(reader, reader.uint32()) };
4851
5757
  continue;
4852
5758
  case 9:
4853
5759
  if (tag !== 74) {
4854
5760
  break;
4855
5761
  }
4856
- message.transactionType = {
4857
- $case: "declareV0",
4858
- declareV0: DeclareV0TransactionFilter$1.decode(reader, reader.uint32())
4859
- };
5762
+ message.inner = { $case: "deploy", deploy: DeployTransactionFilter$1.decode(reader, reader.uint32()) };
4860
5763
  continue;
4861
5764
  case 10:
4862
5765
  if (tag !== 82) {
4863
5766
  break;
4864
5767
  }
4865
- message.transactionType = {
4866
- $case: "declareV1",
4867
- declareV1: DeclareV1TransactionFilter$1.decode(reader, reader.uint32())
4868
- };
5768
+ message.inner = { $case: "declareV0", declareV0: DeclareV0TransactionFilter$1.decode(reader, reader.uint32()) };
4869
5769
  continue;
4870
5770
  case 11:
4871
5771
  if (tag !== 90) {
4872
5772
  break;
4873
5773
  }
4874
- message.transactionType = {
4875
- $case: "declareV2",
4876
- declareV2: DeclareV2TransactionFilter$1.decode(reader, reader.uint32())
4877
- };
5774
+ message.inner = { $case: "declareV1", declareV1: DeclareV1TransactionFilter$1.decode(reader, reader.uint32()) };
4878
5775
  continue;
4879
5776
  case 12:
4880
5777
  if (tag !== 98) {
4881
5778
  break;
4882
5779
  }
4883
- message.transactionType = {
4884
- $case: "declareV3",
4885
- declareV3: DeclareV3TransactionFilter$1.decode(reader, reader.uint32())
4886
- };
5780
+ message.inner = { $case: "declareV2", declareV2: DeclareV2TransactionFilter$1.decode(reader, reader.uint32()) };
4887
5781
  continue;
4888
5782
  case 13:
4889
5783
  if (tag !== 106) {
4890
5784
  break;
4891
5785
  }
4892
- message.transactionType = {
4893
- $case: "l1Handler",
4894
- l1Handler: L1HandlerTransactionFilter$1.decode(reader, reader.uint32())
4895
- };
5786
+ message.inner = { $case: "declareV3", declareV3: DeclareV3TransactionFilter$1.decode(reader, reader.uint32()) };
4896
5787
  continue;
4897
5788
  case 14:
4898
5789
  if (tag !== 114) {
4899
5790
  break;
4900
5791
  }
4901
- message.transactionType = {
5792
+ message.inner = { $case: "l1Handler", l1Handler: L1HandlerTransactionFilter$1.decode(reader, reader.uint32()) };
5793
+ continue;
5794
+ case 15:
5795
+ if (tag !== 122) {
5796
+ break;
5797
+ }
5798
+ message.inner = {
4902
5799
  $case: "deployAccountV1",
4903
5800
  deployAccountV1: DeployAccountV1TransactionFilter$1.decode(reader, reader.uint32())
4904
5801
  };
4905
5802
  continue;
4906
- case 15:
4907
- if (tag !== 122) {
5803
+ case 16:
5804
+ if (tag !== 130) {
4908
5805
  break;
4909
5806
  }
4910
- message.transactionType = {
5807
+ message.inner = {
4911
5808
  $case: "deployAccountV3",
4912
5809
  deployAccountV3: DeployAccountV3TransactionFilter$1.decode(reader, reader.uint32())
4913
5810
  };
@@ -4922,11 +5819,12 @@ const TransactionFilter$1 = {
4922
5819
  },
4923
5820
  fromJSON(object) {
4924
5821
  return {
4925
- includeReverted: isSet(object.includeReverted) ? globalThis.Boolean(object.includeReverted) : void 0,
5822
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
5823
+ transactionStatus: isSet(object.transactionStatus) ? transactionStatusFilterFromJSON(object.transactionStatus) : void 0,
4926
5824
  includeReceipt: isSet(object.includeReceipt) ? globalThis.Boolean(object.includeReceipt) : void 0,
4927
5825
  includeEvents: isSet(object.includeEvents) ? globalThis.Boolean(object.includeEvents) : void 0,
4928
5826
  includeMessages: isSet(object.includeMessages) ? globalThis.Boolean(object.includeMessages) : void 0,
4929
- transactionType: isSet(object.invokeV0) ? { $case: "invokeV0", invokeV0: InvokeTransactionV0Filter$1.fromJSON(object.invokeV0) } : isSet(object.invokeV1) ? { $case: "invokeV1", invokeV1: InvokeTransactionV1Filter$1.fromJSON(object.invokeV1) } : isSet(object.invokeV3) ? { $case: "invokeV3", invokeV3: InvokeTransactionV3Filter$1.fromJSON(object.invokeV3) } : isSet(object.deploy) ? { $case: "deploy", deploy: DeployTransactionFilter$1.fromJSON(object.deploy) } : isSet(object.declareV0) ? { $case: "declareV0", declareV0: DeclareV0TransactionFilter$1.fromJSON(object.declareV0) } : isSet(object.declareV1) ? { $case: "declareV1", declareV1: DeclareV1TransactionFilter$1.fromJSON(object.declareV1) } : isSet(object.declareV2) ? { $case: "declareV2", declareV2: DeclareV2TransactionFilter$1.fromJSON(object.declareV2) } : isSet(object.declareV3) ? { $case: "declareV3", declareV3: DeclareV3TransactionFilter$1.fromJSON(object.declareV3) } : isSet(object.l1Handler) ? { $case: "l1Handler", l1Handler: L1HandlerTransactionFilter$1.fromJSON(object.l1Handler) } : isSet(object.deployAccountV1) ? {
5827
+ inner: isSet(object.invokeV0) ? { $case: "invokeV0", invokeV0: InvokeTransactionV0Filter$1.fromJSON(object.invokeV0) } : isSet(object.invokeV1) ? { $case: "invokeV1", invokeV1: InvokeTransactionV1Filter$1.fromJSON(object.invokeV1) } : isSet(object.invokeV3) ? { $case: "invokeV3", invokeV3: InvokeTransactionV3Filter$1.fromJSON(object.invokeV3) } : isSet(object.deploy) ? { $case: "deploy", deploy: DeployTransactionFilter$1.fromJSON(object.deploy) } : isSet(object.declareV0) ? { $case: "declareV0", declareV0: DeclareV0TransactionFilter$1.fromJSON(object.declareV0) } : isSet(object.declareV1) ? { $case: "declareV1", declareV1: DeclareV1TransactionFilter$1.fromJSON(object.declareV1) } : isSet(object.declareV2) ? { $case: "declareV2", declareV2: DeclareV2TransactionFilter$1.fromJSON(object.declareV2) } : isSet(object.declareV3) ? { $case: "declareV3", declareV3: DeclareV3TransactionFilter$1.fromJSON(object.declareV3) } : isSet(object.l1Handler) ? { $case: "l1Handler", l1Handler: L1HandlerTransactionFilter$1.fromJSON(object.l1Handler) } : isSet(object.deployAccountV1) ? {
4930
5828
  $case: "deployAccountV1",
4931
5829
  deployAccountV1: DeployAccountV1TransactionFilter$1.fromJSON(object.deployAccountV1)
4932
5830
  } : isSet(object.deployAccountV3) ? {
@@ -4937,8 +5835,11 @@ const TransactionFilter$1 = {
4937
5835
  },
4938
5836
  toJSON(message) {
4939
5837
  const obj = {};
4940
- if (message.includeReverted !== void 0) {
4941
- obj.includeReverted = message.includeReverted;
5838
+ if (message.id !== void 0 && message.id !== 0) {
5839
+ obj.id = Math.round(message.id);
5840
+ }
5841
+ if (message.transactionStatus !== void 0) {
5842
+ obj.transactionStatus = transactionStatusFilterToJSON(message.transactionStatus);
4942
5843
  }
4943
5844
  if (message.includeReceipt !== void 0) {
4944
5845
  obj.includeReceipt = message.includeReceipt;
@@ -4949,38 +5850,38 @@ const TransactionFilter$1 = {
4949
5850
  if (message.includeMessages !== void 0) {
4950
5851
  obj.includeMessages = message.includeMessages;
4951
5852
  }
4952
- if (message.transactionType?.$case === "invokeV0") {
4953
- obj.invokeV0 = InvokeTransactionV0Filter$1.toJSON(message.transactionType.invokeV0);
5853
+ if (message.inner?.$case === "invokeV0") {
5854
+ obj.invokeV0 = InvokeTransactionV0Filter$1.toJSON(message.inner.invokeV0);
4954
5855
  }
4955
- if (message.transactionType?.$case === "invokeV1") {
4956
- obj.invokeV1 = InvokeTransactionV1Filter$1.toJSON(message.transactionType.invokeV1);
5856
+ if (message.inner?.$case === "invokeV1") {
5857
+ obj.invokeV1 = InvokeTransactionV1Filter$1.toJSON(message.inner.invokeV1);
4957
5858
  }
4958
- if (message.transactionType?.$case === "invokeV3") {
4959
- obj.invokeV3 = InvokeTransactionV3Filter$1.toJSON(message.transactionType.invokeV3);
5859
+ if (message.inner?.$case === "invokeV3") {
5860
+ obj.invokeV3 = InvokeTransactionV3Filter$1.toJSON(message.inner.invokeV3);
4960
5861
  }
4961
- if (message.transactionType?.$case === "deploy") {
4962
- obj.deploy = DeployTransactionFilter$1.toJSON(message.transactionType.deploy);
5862
+ if (message.inner?.$case === "deploy") {
5863
+ obj.deploy = DeployTransactionFilter$1.toJSON(message.inner.deploy);
4963
5864
  }
4964
- if (message.transactionType?.$case === "declareV0") {
4965
- obj.declareV0 = DeclareV0TransactionFilter$1.toJSON(message.transactionType.declareV0);
5865
+ if (message.inner?.$case === "declareV0") {
5866
+ obj.declareV0 = DeclareV0TransactionFilter$1.toJSON(message.inner.declareV0);
4966
5867
  }
4967
- if (message.transactionType?.$case === "declareV1") {
4968
- obj.declareV1 = DeclareV1TransactionFilter$1.toJSON(message.transactionType.declareV1);
5868
+ if (message.inner?.$case === "declareV1") {
5869
+ obj.declareV1 = DeclareV1TransactionFilter$1.toJSON(message.inner.declareV1);
4969
5870
  }
4970
- if (message.transactionType?.$case === "declareV2") {
4971
- obj.declareV2 = DeclareV2TransactionFilter$1.toJSON(message.transactionType.declareV2);
5871
+ if (message.inner?.$case === "declareV2") {
5872
+ obj.declareV2 = DeclareV2TransactionFilter$1.toJSON(message.inner.declareV2);
4972
5873
  }
4973
- if (message.transactionType?.$case === "declareV3") {
4974
- obj.declareV3 = DeclareV3TransactionFilter$1.toJSON(message.transactionType.declareV3);
5874
+ if (message.inner?.$case === "declareV3") {
5875
+ obj.declareV3 = DeclareV3TransactionFilter$1.toJSON(message.inner.declareV3);
4975
5876
  }
4976
- if (message.transactionType?.$case === "l1Handler") {
4977
- obj.l1Handler = L1HandlerTransactionFilter$1.toJSON(message.transactionType.l1Handler);
5877
+ if (message.inner?.$case === "l1Handler") {
5878
+ obj.l1Handler = L1HandlerTransactionFilter$1.toJSON(message.inner.l1Handler);
4978
5879
  }
4979
- if (message.transactionType?.$case === "deployAccountV1") {
4980
- obj.deployAccountV1 = DeployAccountV1TransactionFilter$1.toJSON(message.transactionType.deployAccountV1);
5880
+ if (message.inner?.$case === "deployAccountV1") {
5881
+ obj.deployAccountV1 = DeployAccountV1TransactionFilter$1.toJSON(message.inner.deployAccountV1);
4981
5882
  }
4982
- if (message.transactionType?.$case === "deployAccountV3") {
4983
- obj.deployAccountV3 = DeployAccountV3TransactionFilter$1.toJSON(message.transactionType.deployAccountV3);
5883
+ if (message.inner?.$case === "deployAccountV3") {
5884
+ obj.deployAccountV3 = DeployAccountV3TransactionFilter$1.toJSON(message.inner.deployAccountV3);
4984
5885
  }
4985
5886
  return obj;
4986
5887
  },
@@ -4989,74 +5890,48 @@ const TransactionFilter$1 = {
4989
5890
  },
4990
5891
  fromPartial(object) {
4991
5892
  const message = createBaseTransactionFilter();
4992
- message.includeReverted = object.includeReverted ?? void 0;
5893
+ message.id = object.id ?? 0;
5894
+ message.transactionStatus = object.transactionStatus ?? void 0;
4993
5895
  message.includeReceipt = object.includeReceipt ?? void 0;
4994
5896
  message.includeEvents = object.includeEvents ?? void 0;
4995
5897
  message.includeMessages = object.includeMessages ?? void 0;
4996
- if (object.transactionType?.$case === "invokeV0" && object.transactionType?.invokeV0 !== void 0 && object.transactionType?.invokeV0 !== null) {
4997
- message.transactionType = {
4998
- $case: "invokeV0",
4999
- invokeV0: InvokeTransactionV0Filter$1.fromPartial(object.transactionType.invokeV0)
5000
- };
5898
+ if (object.inner?.$case === "invokeV0" && object.inner?.invokeV0 !== void 0 && object.inner?.invokeV0 !== null) {
5899
+ message.inner = { $case: "invokeV0", invokeV0: InvokeTransactionV0Filter$1.fromPartial(object.inner.invokeV0) };
5001
5900
  }
5002
- if (object.transactionType?.$case === "invokeV1" && object.transactionType?.invokeV1 !== void 0 && object.transactionType?.invokeV1 !== null) {
5003
- message.transactionType = {
5004
- $case: "invokeV1",
5005
- invokeV1: InvokeTransactionV1Filter$1.fromPartial(object.transactionType.invokeV1)
5006
- };
5901
+ if (object.inner?.$case === "invokeV1" && object.inner?.invokeV1 !== void 0 && object.inner?.invokeV1 !== null) {
5902
+ message.inner = { $case: "invokeV1", invokeV1: InvokeTransactionV1Filter$1.fromPartial(object.inner.invokeV1) };
5007
5903
  }
5008
- if (object.transactionType?.$case === "invokeV3" && object.transactionType?.invokeV3 !== void 0 && object.transactionType?.invokeV3 !== null) {
5009
- message.transactionType = {
5010
- $case: "invokeV3",
5011
- invokeV3: InvokeTransactionV3Filter$1.fromPartial(object.transactionType.invokeV3)
5012
- };
5904
+ if (object.inner?.$case === "invokeV3" && object.inner?.invokeV3 !== void 0 && object.inner?.invokeV3 !== null) {
5905
+ message.inner = { $case: "invokeV3", invokeV3: InvokeTransactionV3Filter$1.fromPartial(object.inner.invokeV3) };
5013
5906
  }
5014
- if (object.transactionType?.$case === "deploy" && object.transactionType?.deploy !== void 0 && object.transactionType?.deploy !== null) {
5015
- message.transactionType = {
5016
- $case: "deploy",
5017
- deploy: DeployTransactionFilter$1.fromPartial(object.transactionType.deploy)
5018
- };
5907
+ if (object.inner?.$case === "deploy" && object.inner?.deploy !== void 0 && object.inner?.deploy !== null) {
5908
+ message.inner = { $case: "deploy", deploy: DeployTransactionFilter$1.fromPartial(object.inner.deploy) };
5019
5909
  }
5020
- if (object.transactionType?.$case === "declareV0" && object.transactionType?.declareV0 !== void 0 && object.transactionType?.declareV0 !== null) {
5021
- message.transactionType = {
5022
- $case: "declareV0",
5023
- declareV0: DeclareV0TransactionFilter$1.fromPartial(object.transactionType.declareV0)
5024
- };
5910
+ if (object.inner?.$case === "declareV0" && object.inner?.declareV0 !== void 0 && object.inner?.declareV0 !== null) {
5911
+ message.inner = { $case: "declareV0", declareV0: DeclareV0TransactionFilter$1.fromPartial(object.inner.declareV0) };
5025
5912
  }
5026
- if (object.transactionType?.$case === "declareV1" && object.transactionType?.declareV1 !== void 0 && object.transactionType?.declareV1 !== null) {
5027
- message.transactionType = {
5028
- $case: "declareV1",
5029
- declareV1: DeclareV1TransactionFilter$1.fromPartial(object.transactionType.declareV1)
5030
- };
5913
+ if (object.inner?.$case === "declareV1" && object.inner?.declareV1 !== void 0 && object.inner?.declareV1 !== null) {
5914
+ message.inner = { $case: "declareV1", declareV1: DeclareV1TransactionFilter$1.fromPartial(object.inner.declareV1) };
5031
5915
  }
5032
- if (object.transactionType?.$case === "declareV2" && object.transactionType?.declareV2 !== void 0 && object.transactionType?.declareV2 !== null) {
5033
- message.transactionType = {
5034
- $case: "declareV2",
5035
- declareV2: DeclareV2TransactionFilter$1.fromPartial(object.transactionType.declareV2)
5036
- };
5916
+ if (object.inner?.$case === "declareV2" && object.inner?.declareV2 !== void 0 && object.inner?.declareV2 !== null) {
5917
+ message.inner = { $case: "declareV2", declareV2: DeclareV2TransactionFilter$1.fromPartial(object.inner.declareV2) };
5037
5918
  }
5038
- if (object.transactionType?.$case === "declareV3" && object.transactionType?.declareV3 !== void 0 && object.transactionType?.declareV3 !== null) {
5039
- message.transactionType = {
5040
- $case: "declareV3",
5041
- declareV3: DeclareV3TransactionFilter$1.fromPartial(object.transactionType.declareV3)
5042
- };
5919
+ if (object.inner?.$case === "declareV3" && object.inner?.declareV3 !== void 0 && object.inner?.declareV3 !== null) {
5920
+ message.inner = { $case: "declareV3", declareV3: DeclareV3TransactionFilter$1.fromPartial(object.inner.declareV3) };
5043
5921
  }
5044
- if (object.transactionType?.$case === "l1Handler" && object.transactionType?.l1Handler !== void 0 && object.transactionType?.l1Handler !== null) {
5045
- message.transactionType = {
5046
- $case: "l1Handler",
5047
- l1Handler: L1HandlerTransactionFilter$1.fromPartial(object.transactionType.l1Handler)
5048
- };
5922
+ if (object.inner?.$case === "l1Handler" && object.inner?.l1Handler !== void 0 && object.inner?.l1Handler !== null) {
5923
+ message.inner = { $case: "l1Handler", l1Handler: L1HandlerTransactionFilter$1.fromPartial(object.inner.l1Handler) };
5049
5924
  }
5050
- if (object.transactionType?.$case === "deployAccountV1" && object.transactionType?.deployAccountV1 !== void 0 && object.transactionType?.deployAccountV1 !== null) {
5051
- message.transactionType = {
5925
+ if (object.inner?.$case === "deployAccountV1" && object.inner?.deployAccountV1 !== void 0 && object.inner?.deployAccountV1 !== null) {
5926
+ message.inner = {
5052
5927
  $case: "deployAccountV1",
5053
- deployAccountV1: DeployAccountV1TransactionFilter$1.fromPartial(object.transactionType.deployAccountV1)
5928
+ deployAccountV1: DeployAccountV1TransactionFilter$1.fromPartial(object.inner.deployAccountV1)
5054
5929
  };
5055
5930
  }
5056
- if (object.transactionType?.$case === "deployAccountV3" && object.transactionType?.deployAccountV3 !== void 0 && object.transactionType?.deployAccountV3 !== null) {
5057
- message.transactionType = {
5931
+ if (object.inner?.$case === "deployAccountV3" && object.inner?.deployAccountV3 !== void 0 && object.inner?.deployAccountV3 !== null) {
5932
+ message.inner = {
5058
5933
  $case: "deployAccountV3",
5059
- deployAccountV3: DeployAccountV3TransactionFilter$1.fromPartial(object.transactionType.deployAccountV3)
5934
+ deployAccountV3: DeployAccountV3TransactionFilter$1.fromPartial(object.inner.deployAccountV3)
5060
5935
  };
5061
5936
  }
5062
5937
  return message;
@@ -5097,17 +5972,227 @@ const InvokeTransactionV0Filter$1 = {
5097
5972
  return message;
5098
5973
  }
5099
5974
  };
5100
- function createBaseInvokeTransactionV1Filter() {
5975
+ function createBaseInvokeTransactionV1Filter() {
5976
+ return {};
5977
+ }
5978
+ const InvokeTransactionV1Filter$1 = {
5979
+ encode(_, writer = _m0__default.Writer.create()) {
5980
+ return writer;
5981
+ },
5982
+ decode(input, length) {
5983
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5984
+ let end = length === void 0 ? reader.len : reader.pos + length;
5985
+ const message = createBaseInvokeTransactionV1Filter();
5986
+ while (reader.pos < end) {
5987
+ const tag = reader.uint32();
5988
+ if ((tag & 7) === 4 || tag === 0) {
5989
+ break;
5990
+ }
5991
+ reader.skipType(tag & 7);
5992
+ }
5993
+ return message;
5994
+ },
5995
+ fromJSON(_) {
5996
+ return {};
5997
+ },
5998
+ toJSON(_) {
5999
+ const obj = {};
6000
+ return obj;
6001
+ },
6002
+ create(base) {
6003
+ return InvokeTransactionV1Filter$1.fromPartial(base ?? {});
6004
+ },
6005
+ fromPartial(_) {
6006
+ const message = createBaseInvokeTransactionV1Filter();
6007
+ return message;
6008
+ }
6009
+ };
6010
+ function createBaseInvokeTransactionV3Filter() {
6011
+ return {};
6012
+ }
6013
+ const InvokeTransactionV3Filter$1 = {
6014
+ encode(_, writer = _m0__default.Writer.create()) {
6015
+ return writer;
6016
+ },
6017
+ decode(input, length) {
6018
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
6019
+ let end = length === void 0 ? reader.len : reader.pos + length;
6020
+ const message = createBaseInvokeTransactionV3Filter();
6021
+ while (reader.pos < end) {
6022
+ const tag = reader.uint32();
6023
+ if ((tag & 7) === 4 || tag === 0) {
6024
+ break;
6025
+ }
6026
+ reader.skipType(tag & 7);
6027
+ }
6028
+ return message;
6029
+ },
6030
+ fromJSON(_) {
6031
+ return {};
6032
+ },
6033
+ toJSON(_) {
6034
+ const obj = {};
6035
+ return obj;
6036
+ },
6037
+ create(base) {
6038
+ return InvokeTransactionV3Filter$1.fromPartial(base ?? {});
6039
+ },
6040
+ fromPartial(_) {
6041
+ const message = createBaseInvokeTransactionV3Filter();
6042
+ return message;
6043
+ }
6044
+ };
6045
+ function createBaseDeployTransactionFilter() {
6046
+ return {};
6047
+ }
6048
+ const DeployTransactionFilter$1 = {
6049
+ encode(_, writer = _m0__default.Writer.create()) {
6050
+ return writer;
6051
+ },
6052
+ decode(input, length) {
6053
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
6054
+ let end = length === void 0 ? reader.len : reader.pos + length;
6055
+ const message = createBaseDeployTransactionFilter();
6056
+ while (reader.pos < end) {
6057
+ const tag = reader.uint32();
6058
+ if ((tag & 7) === 4 || tag === 0) {
6059
+ break;
6060
+ }
6061
+ reader.skipType(tag & 7);
6062
+ }
6063
+ return message;
6064
+ },
6065
+ fromJSON(_) {
6066
+ return {};
6067
+ },
6068
+ toJSON(_) {
6069
+ const obj = {};
6070
+ return obj;
6071
+ },
6072
+ create(base) {
6073
+ return DeployTransactionFilter$1.fromPartial(base ?? {});
6074
+ },
6075
+ fromPartial(_) {
6076
+ const message = createBaseDeployTransactionFilter();
6077
+ return message;
6078
+ }
6079
+ };
6080
+ function createBaseDeclareV0TransactionFilter() {
6081
+ return {};
6082
+ }
6083
+ const DeclareV0TransactionFilter$1 = {
6084
+ encode(_, writer = _m0__default.Writer.create()) {
6085
+ return writer;
6086
+ },
6087
+ decode(input, length) {
6088
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
6089
+ let end = length === void 0 ? reader.len : reader.pos + length;
6090
+ const message = createBaseDeclareV0TransactionFilter();
6091
+ while (reader.pos < end) {
6092
+ const tag = reader.uint32();
6093
+ if ((tag & 7) === 4 || tag === 0) {
6094
+ break;
6095
+ }
6096
+ reader.skipType(tag & 7);
6097
+ }
6098
+ return message;
6099
+ },
6100
+ fromJSON(_) {
6101
+ return {};
6102
+ },
6103
+ toJSON(_) {
6104
+ const obj = {};
6105
+ return obj;
6106
+ },
6107
+ create(base) {
6108
+ return DeclareV0TransactionFilter$1.fromPartial(base ?? {});
6109
+ },
6110
+ fromPartial(_) {
6111
+ const message = createBaseDeclareV0TransactionFilter();
6112
+ return message;
6113
+ }
6114
+ };
6115
+ function createBaseDeclareV1TransactionFilter() {
6116
+ return {};
6117
+ }
6118
+ const DeclareV1TransactionFilter$1 = {
6119
+ encode(_, writer = _m0__default.Writer.create()) {
6120
+ return writer;
6121
+ },
6122
+ decode(input, length) {
6123
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
6124
+ let end = length === void 0 ? reader.len : reader.pos + length;
6125
+ const message = createBaseDeclareV1TransactionFilter();
6126
+ while (reader.pos < end) {
6127
+ const tag = reader.uint32();
6128
+ if ((tag & 7) === 4 || tag === 0) {
6129
+ break;
6130
+ }
6131
+ reader.skipType(tag & 7);
6132
+ }
6133
+ return message;
6134
+ },
6135
+ fromJSON(_) {
6136
+ return {};
6137
+ },
6138
+ toJSON(_) {
6139
+ const obj = {};
6140
+ return obj;
6141
+ },
6142
+ create(base) {
6143
+ return DeclareV1TransactionFilter$1.fromPartial(base ?? {});
6144
+ },
6145
+ fromPartial(_) {
6146
+ const message = createBaseDeclareV1TransactionFilter();
6147
+ return message;
6148
+ }
6149
+ };
6150
+ function createBaseDeclareV2TransactionFilter() {
6151
+ return {};
6152
+ }
6153
+ const DeclareV2TransactionFilter$1 = {
6154
+ encode(_, writer = _m0__default.Writer.create()) {
6155
+ return writer;
6156
+ },
6157
+ decode(input, length) {
6158
+ const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
6159
+ let end = length === void 0 ? reader.len : reader.pos + length;
6160
+ const message = createBaseDeclareV2TransactionFilter();
6161
+ while (reader.pos < end) {
6162
+ const tag = reader.uint32();
6163
+ if ((tag & 7) === 4 || tag === 0) {
6164
+ break;
6165
+ }
6166
+ reader.skipType(tag & 7);
6167
+ }
6168
+ return message;
6169
+ },
6170
+ fromJSON(_) {
6171
+ return {};
6172
+ },
6173
+ toJSON(_) {
6174
+ const obj = {};
6175
+ return obj;
6176
+ },
6177
+ create(base) {
6178
+ return DeclareV2TransactionFilter$1.fromPartial(base ?? {});
6179
+ },
6180
+ fromPartial(_) {
6181
+ const message = createBaseDeclareV2TransactionFilter();
6182
+ return message;
6183
+ }
6184
+ };
6185
+ function createBaseDeclareV3TransactionFilter() {
5101
6186
  return {};
5102
6187
  }
5103
- const InvokeTransactionV1Filter$1 = {
6188
+ const DeclareV3TransactionFilter$1 = {
5104
6189
  encode(_, writer = _m0__default.Writer.create()) {
5105
6190
  return writer;
5106
6191
  },
5107
6192
  decode(input, length) {
5108
6193
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5109
6194
  let end = length === void 0 ? reader.len : reader.pos + length;
5110
- const message = createBaseInvokeTransactionV1Filter();
6195
+ const message = createBaseDeclareV3TransactionFilter();
5111
6196
  while (reader.pos < end) {
5112
6197
  const tag = reader.uint32();
5113
6198
  if ((tag & 7) === 4 || tag === 0) {
@@ -5125,24 +6210,24 @@ const InvokeTransactionV1Filter$1 = {
5125
6210
  return obj;
5126
6211
  },
5127
6212
  create(base) {
5128
- return InvokeTransactionV1Filter$1.fromPartial(base ?? {});
6213
+ return DeclareV3TransactionFilter$1.fromPartial(base ?? {});
5129
6214
  },
5130
6215
  fromPartial(_) {
5131
- const message = createBaseInvokeTransactionV1Filter();
6216
+ const message = createBaseDeclareV3TransactionFilter();
5132
6217
  return message;
5133
6218
  }
5134
6219
  };
5135
- function createBaseInvokeTransactionV3Filter() {
6220
+ function createBaseL1HandlerTransactionFilter() {
5136
6221
  return {};
5137
6222
  }
5138
- const InvokeTransactionV3Filter$1 = {
6223
+ const L1HandlerTransactionFilter$1 = {
5139
6224
  encode(_, writer = _m0__default.Writer.create()) {
5140
6225
  return writer;
5141
6226
  },
5142
6227
  decode(input, length) {
5143
6228
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5144
6229
  let end = length === void 0 ? reader.len : reader.pos + length;
5145
- const message = createBaseInvokeTransactionV3Filter();
6230
+ const message = createBaseL1HandlerTransactionFilter();
5146
6231
  while (reader.pos < end) {
5147
6232
  const tag = reader.uint32();
5148
6233
  if ((tag & 7) === 4 || tag === 0) {
@@ -5160,24 +6245,24 @@ const InvokeTransactionV3Filter$1 = {
5160
6245
  return obj;
5161
6246
  },
5162
6247
  create(base) {
5163
- return InvokeTransactionV3Filter$1.fromPartial(base ?? {});
6248
+ return L1HandlerTransactionFilter$1.fromPartial(base ?? {});
5164
6249
  },
5165
6250
  fromPartial(_) {
5166
- const message = createBaseInvokeTransactionV3Filter();
6251
+ const message = createBaseL1HandlerTransactionFilter();
5167
6252
  return message;
5168
6253
  }
5169
6254
  };
5170
- function createBaseDeployTransactionFilter() {
6255
+ function createBaseDeployAccountV1TransactionFilter() {
5171
6256
  return {};
5172
6257
  }
5173
- const DeployTransactionFilter$1 = {
6258
+ const DeployAccountV1TransactionFilter$1 = {
5174
6259
  encode(_, writer = _m0__default.Writer.create()) {
5175
6260
  return writer;
5176
6261
  },
5177
6262
  decode(input, length) {
5178
6263
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5179
6264
  let end = length === void 0 ? reader.len : reader.pos + length;
5180
- const message = createBaseDeployTransactionFilter();
6265
+ const message = createBaseDeployAccountV1TransactionFilter();
5181
6266
  while (reader.pos < end) {
5182
6267
  const tag = reader.uint32();
5183
6268
  if ((tag & 7) === 4 || tag === 0) {
@@ -5195,24 +6280,24 @@ const DeployTransactionFilter$1 = {
5195
6280
  return obj;
5196
6281
  },
5197
6282
  create(base) {
5198
- return DeployTransactionFilter$1.fromPartial(base ?? {});
6283
+ return DeployAccountV1TransactionFilter$1.fromPartial(base ?? {});
5199
6284
  },
5200
6285
  fromPartial(_) {
5201
- const message = createBaseDeployTransactionFilter();
6286
+ const message = createBaseDeployAccountV1TransactionFilter();
5202
6287
  return message;
5203
6288
  }
5204
6289
  };
5205
- function createBaseDeclareV0TransactionFilter() {
6290
+ function createBaseDeployAccountV3TransactionFilter() {
5206
6291
  return {};
5207
6292
  }
5208
- const DeclareV0TransactionFilter$1 = {
6293
+ const DeployAccountV3TransactionFilter$1 = {
5209
6294
  encode(_, writer = _m0__default.Writer.create()) {
5210
6295
  return writer;
5211
6296
  },
5212
6297
  decode(input, length) {
5213
6298
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5214
6299
  let end = length === void 0 ? reader.len : reader.pos + length;
5215
- const message = createBaseDeclareV0TransactionFilter();
6300
+ const message = createBaseDeployAccountV3TransactionFilter();
5216
6301
  while (reader.pos < end) {
5217
6302
  const tag = reader.uint32();
5218
6303
  if ((tag & 7) === 4 || tag === 0) {
@@ -5230,26 +6315,46 @@ const DeclareV0TransactionFilter$1 = {
5230
6315
  return obj;
5231
6316
  },
5232
6317
  create(base) {
5233
- return DeclareV0TransactionFilter$1.fromPartial(base ?? {});
6318
+ return DeployAccountV3TransactionFilter$1.fromPartial(base ?? {});
5234
6319
  },
5235
6320
  fromPartial(_) {
5236
- const message = createBaseDeclareV0TransactionFilter();
6321
+ const message = createBaseDeployAccountV3TransactionFilter();
5237
6322
  return message;
5238
6323
  }
5239
6324
  };
5240
- function createBaseDeclareV1TransactionFilter() {
5241
- return {};
6325
+ function createBaseStorageDiffFilter() {
6326
+ return { id: 0, contractAddress: void 0 };
5242
6327
  }
5243
- const DeclareV1TransactionFilter$1 = {
5244
- encode(_, writer = _m0__default.Writer.create()) {
6328
+ const StorageDiffFilter$1 = {
6329
+ encode(message, writer = _m0__default.Writer.create()) {
6330
+ if (message.id !== void 0 && message.id !== 0) {
6331
+ writer.uint32(8).uint32(message.id);
6332
+ }
6333
+ if (message.contractAddress !== void 0) {
6334
+ FieldElement.encode(message.contractAddress, writer.uint32(18).fork()).ldelim();
6335
+ }
5245
6336
  return writer;
5246
6337
  },
5247
6338
  decode(input, length) {
5248
6339
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5249
6340
  let end = length === void 0 ? reader.len : reader.pos + length;
5250
- const message = createBaseDeclareV1TransactionFilter();
6341
+ const message = createBaseStorageDiffFilter();
5251
6342
  while (reader.pos < end) {
5252
6343
  const tag = reader.uint32();
6344
+ switch (tag >>> 3) {
6345
+ case 1:
6346
+ if (tag !== 8) {
6347
+ break;
6348
+ }
6349
+ message.id = reader.uint32();
6350
+ continue;
6351
+ case 2:
6352
+ if (tag !== 18) {
6353
+ break;
6354
+ }
6355
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
6356
+ continue;
6357
+ }
5253
6358
  if ((tag & 7) === 4 || tag === 0) {
5254
6359
  break;
5255
6360
  }
@@ -5257,34 +6362,94 @@ const DeclareV1TransactionFilter$1 = {
5257
6362
  }
5258
6363
  return message;
5259
6364
  },
5260
- fromJSON(_) {
5261
- return {};
6365
+ fromJSON(object) {
6366
+ return {
6367
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
6368
+ contractAddress: isSet(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0
6369
+ };
5262
6370
  },
5263
- toJSON(_) {
6371
+ toJSON(message) {
5264
6372
  const obj = {};
6373
+ if (message.id !== void 0 && message.id !== 0) {
6374
+ obj.id = Math.round(message.id);
6375
+ }
6376
+ if (message.contractAddress !== void 0) {
6377
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
6378
+ }
5265
6379
  return obj;
5266
6380
  },
5267
6381
  create(base) {
5268
- return DeclareV1TransactionFilter$1.fromPartial(base ?? {});
6382
+ return StorageDiffFilter$1.fromPartial(base ?? {});
5269
6383
  },
5270
- fromPartial(_) {
5271
- const message = createBaseDeclareV1TransactionFilter();
6384
+ fromPartial(object) {
6385
+ const message = createBaseStorageDiffFilter();
6386
+ message.id = object.id ?? 0;
6387
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
5272
6388
  return message;
5273
6389
  }
5274
6390
  };
5275
- function createBaseDeclareV2TransactionFilter() {
5276
- return {};
6391
+ function createBaseContractChangeFilter() {
6392
+ return { id: 0, change: void 0 };
5277
6393
  }
5278
- const DeclareV2TransactionFilter$1 = {
5279
- encode(_, writer = _m0__default.Writer.create()) {
6394
+ const ContractChangeFilter$1 = {
6395
+ encode(message, writer = _m0__default.Writer.create()) {
6396
+ if (message.id !== void 0 && message.id !== 0) {
6397
+ writer.uint32(8).uint32(message.id);
6398
+ }
6399
+ switch (message.change?.$case) {
6400
+ case "declaredClass":
6401
+ DeclaredClassFilter$1.encode(message.change.declaredClass, writer.uint32(18).fork()).ldelim();
6402
+ break;
6403
+ case "replacedClass":
6404
+ ReplacedClassFilter$1.encode(message.change.replacedClass, writer.uint32(26).fork()).ldelim();
6405
+ break;
6406
+ case "deployedContract":
6407
+ DeployedContractFilter$1.encode(message.change.deployedContract, writer.uint32(34).fork()).ldelim();
6408
+ break;
6409
+ }
5280
6410
  return writer;
5281
6411
  },
5282
6412
  decode(input, length) {
5283
6413
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5284
6414
  let end = length === void 0 ? reader.len : reader.pos + length;
5285
- const message = createBaseDeclareV2TransactionFilter();
6415
+ const message = createBaseContractChangeFilter();
5286
6416
  while (reader.pos < end) {
5287
6417
  const tag = reader.uint32();
6418
+ switch (tag >>> 3) {
6419
+ case 1:
6420
+ if (tag !== 8) {
6421
+ break;
6422
+ }
6423
+ message.id = reader.uint32();
6424
+ continue;
6425
+ case 2:
6426
+ if (tag !== 18) {
6427
+ break;
6428
+ }
6429
+ message.change = {
6430
+ $case: "declaredClass",
6431
+ declaredClass: DeclaredClassFilter$1.decode(reader, reader.uint32())
6432
+ };
6433
+ continue;
6434
+ case 3:
6435
+ if (tag !== 26) {
6436
+ break;
6437
+ }
6438
+ message.change = {
6439
+ $case: "replacedClass",
6440
+ replacedClass: ReplacedClassFilter$1.decode(reader, reader.uint32())
6441
+ };
6442
+ continue;
6443
+ case 4:
6444
+ if (tag !== 34) {
6445
+ break;
6446
+ }
6447
+ message.change = {
6448
+ $case: "deployedContract",
6449
+ deployedContract: DeployedContractFilter$1.decode(reader, reader.uint32())
6450
+ };
6451
+ continue;
6452
+ }
5288
6453
  if ((tag & 7) === 4 || tag === 0) {
5289
6454
  break;
5290
6455
  }
@@ -5292,32 +6457,66 @@ const DeclareV2TransactionFilter$1 = {
5292
6457
  }
5293
6458
  return message;
5294
6459
  },
5295
- fromJSON(_) {
5296
- return {};
6460
+ fromJSON(object) {
6461
+ return {
6462
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
6463
+ change: isSet(object.declaredClass) ? { $case: "declaredClass", declaredClass: DeclaredClassFilter$1.fromJSON(object.declaredClass) } : isSet(object.replacedClass) ? { $case: "replacedClass", replacedClass: ReplacedClassFilter$1.fromJSON(object.replacedClass) } : isSet(object.deployedContract) ? { $case: "deployedContract", deployedContract: DeployedContractFilter$1.fromJSON(object.deployedContract) } : void 0
6464
+ };
5297
6465
  },
5298
- toJSON(_) {
6466
+ toJSON(message) {
5299
6467
  const obj = {};
6468
+ if (message.id !== void 0 && message.id !== 0) {
6469
+ obj.id = Math.round(message.id);
6470
+ }
6471
+ if (message.change?.$case === "declaredClass") {
6472
+ obj.declaredClass = DeclaredClassFilter$1.toJSON(message.change.declaredClass);
6473
+ }
6474
+ if (message.change?.$case === "replacedClass") {
6475
+ obj.replacedClass = ReplacedClassFilter$1.toJSON(message.change.replacedClass);
6476
+ }
6477
+ if (message.change?.$case === "deployedContract") {
6478
+ obj.deployedContract = DeployedContractFilter$1.toJSON(message.change.deployedContract);
6479
+ }
5300
6480
  return obj;
5301
6481
  },
5302
6482
  create(base) {
5303
- return DeclareV2TransactionFilter$1.fromPartial(base ?? {});
6483
+ return ContractChangeFilter$1.fromPartial(base ?? {});
5304
6484
  },
5305
- fromPartial(_) {
5306
- const message = createBaseDeclareV2TransactionFilter();
6485
+ fromPartial(object) {
6486
+ const message = createBaseContractChangeFilter();
6487
+ message.id = object.id ?? 0;
6488
+ if (object.change?.$case === "declaredClass" && object.change?.declaredClass !== void 0 && object.change?.declaredClass !== null) {
6489
+ message.change = {
6490
+ $case: "declaredClass",
6491
+ declaredClass: DeclaredClassFilter$1.fromPartial(object.change.declaredClass)
6492
+ };
6493
+ }
6494
+ if (object.change?.$case === "replacedClass" && object.change?.replacedClass !== void 0 && object.change?.replacedClass !== null) {
6495
+ message.change = {
6496
+ $case: "replacedClass",
6497
+ replacedClass: ReplacedClassFilter$1.fromPartial(object.change.replacedClass)
6498
+ };
6499
+ }
6500
+ if (object.change?.$case === "deployedContract" && object.change?.deployedContract !== void 0 && object.change?.deployedContract !== null) {
6501
+ message.change = {
6502
+ $case: "deployedContract",
6503
+ deployedContract: DeployedContractFilter$1.fromPartial(object.change.deployedContract)
6504
+ };
6505
+ }
5307
6506
  return message;
5308
6507
  }
5309
6508
  };
5310
- function createBaseDeclareV3TransactionFilter() {
6509
+ function createBaseDeclaredClassFilter() {
5311
6510
  return {};
5312
6511
  }
5313
- const DeclareV3TransactionFilter$1 = {
6512
+ const DeclaredClassFilter$1 = {
5314
6513
  encode(_, writer = _m0__default.Writer.create()) {
5315
6514
  return writer;
5316
6515
  },
5317
6516
  decode(input, length) {
5318
6517
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5319
6518
  let end = length === void 0 ? reader.len : reader.pos + length;
5320
- const message = createBaseDeclareV3TransactionFilter();
6519
+ const message = createBaseDeclaredClassFilter();
5321
6520
  while (reader.pos < end) {
5322
6521
  const tag = reader.uint32();
5323
6522
  if ((tag & 7) === 4 || tag === 0) {
@@ -5335,24 +6534,24 @@ const DeclareV3TransactionFilter$1 = {
5335
6534
  return obj;
5336
6535
  },
5337
6536
  create(base) {
5338
- return DeclareV3TransactionFilter$1.fromPartial(base ?? {});
6537
+ return DeclaredClassFilter$1.fromPartial(base ?? {});
5339
6538
  },
5340
6539
  fromPartial(_) {
5341
- const message = createBaseDeclareV3TransactionFilter();
6540
+ const message = createBaseDeclaredClassFilter();
5342
6541
  return message;
5343
6542
  }
5344
6543
  };
5345
- function createBaseL1HandlerTransactionFilter() {
6544
+ function createBaseReplacedClassFilter() {
5346
6545
  return {};
5347
6546
  }
5348
- const L1HandlerTransactionFilter$1 = {
6547
+ const ReplacedClassFilter$1 = {
5349
6548
  encode(_, writer = _m0__default.Writer.create()) {
5350
6549
  return writer;
5351
6550
  },
5352
6551
  decode(input, length) {
5353
6552
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5354
6553
  let end = length === void 0 ? reader.len : reader.pos + length;
5355
- const message = createBaseL1HandlerTransactionFilter();
6554
+ const message = createBaseReplacedClassFilter();
5356
6555
  while (reader.pos < end) {
5357
6556
  const tag = reader.uint32();
5358
6557
  if ((tag & 7) === 4 || tag === 0) {
@@ -5370,24 +6569,24 @@ const L1HandlerTransactionFilter$1 = {
5370
6569
  return obj;
5371
6570
  },
5372
6571
  create(base) {
5373
- return L1HandlerTransactionFilter$1.fromPartial(base ?? {});
6572
+ return ReplacedClassFilter$1.fromPartial(base ?? {});
5374
6573
  },
5375
6574
  fromPartial(_) {
5376
- const message = createBaseL1HandlerTransactionFilter();
6575
+ const message = createBaseReplacedClassFilter();
5377
6576
  return message;
5378
6577
  }
5379
6578
  };
5380
- function createBaseDeployAccountV1TransactionFilter() {
6579
+ function createBaseDeployedContractFilter() {
5381
6580
  return {};
5382
6581
  }
5383
- const DeployAccountV1TransactionFilter$1 = {
6582
+ const DeployedContractFilter$1 = {
5384
6583
  encode(_, writer = _m0__default.Writer.create()) {
5385
6584
  return writer;
5386
6585
  },
5387
6586
  decode(input, length) {
5388
6587
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5389
6588
  let end = length === void 0 ? reader.len : reader.pos + length;
5390
- const message = createBaseDeployAccountV1TransactionFilter();
6589
+ const message = createBaseDeployedContractFilter();
5391
6590
  while (reader.pos < end) {
5392
6591
  const tag = reader.uint32();
5393
6592
  if ((tag & 7) === 4 || tag === 0) {
@@ -5405,26 +6604,46 @@ const DeployAccountV1TransactionFilter$1 = {
5405
6604
  return obj;
5406
6605
  },
5407
6606
  create(base) {
5408
- return DeployAccountV1TransactionFilter$1.fromPartial(base ?? {});
6607
+ return DeployedContractFilter$1.fromPartial(base ?? {});
5409
6608
  },
5410
6609
  fromPartial(_) {
5411
- const message = createBaseDeployAccountV1TransactionFilter();
6610
+ const message = createBaseDeployedContractFilter();
5412
6611
  return message;
5413
6612
  }
5414
6613
  };
5415
- function createBaseDeployAccountV3TransactionFilter() {
5416
- return {};
6614
+ function createBaseNonceUpdateFilter() {
6615
+ return { id: 0, contractAddress: void 0 };
5417
6616
  }
5418
- const DeployAccountV3TransactionFilter$1 = {
5419
- encode(_, writer = _m0__default.Writer.create()) {
6617
+ const NonceUpdateFilter$1 = {
6618
+ encode(message, writer = _m0__default.Writer.create()) {
6619
+ if (message.id !== void 0 && message.id !== 0) {
6620
+ writer.uint32(8).uint32(message.id);
6621
+ }
6622
+ if (message.contractAddress !== void 0) {
6623
+ FieldElement.encode(message.contractAddress, writer.uint32(18).fork()).ldelim();
6624
+ }
5420
6625
  return writer;
5421
6626
  },
5422
6627
  decode(input, length) {
5423
6628
  const reader = input instanceof _m0__default.Reader ? input : _m0__default.Reader.create(input);
5424
6629
  let end = length === void 0 ? reader.len : reader.pos + length;
5425
- const message = createBaseDeployAccountV3TransactionFilter();
6630
+ const message = createBaseNonceUpdateFilter();
5426
6631
  while (reader.pos < end) {
5427
6632
  const tag = reader.uint32();
6633
+ switch (tag >>> 3) {
6634
+ case 1:
6635
+ if (tag !== 8) {
6636
+ break;
6637
+ }
6638
+ message.id = reader.uint32();
6639
+ continue;
6640
+ case 2:
6641
+ if (tag !== 18) {
6642
+ break;
6643
+ }
6644
+ message.contractAddress = FieldElement.decode(reader, reader.uint32());
6645
+ continue;
6646
+ }
5428
6647
  if ((tag & 7) === 4 || tag === 0) {
5429
6648
  break;
5430
6649
  }
@@ -5432,18 +6651,29 @@ const DeployAccountV3TransactionFilter$1 = {
5432
6651
  }
5433
6652
  return message;
5434
6653
  },
5435
- fromJSON(_) {
5436
- return {};
6654
+ fromJSON(object) {
6655
+ return {
6656
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
6657
+ contractAddress: isSet(object.contractAddress) ? FieldElement.fromJSON(object.contractAddress) : void 0
6658
+ };
5437
6659
  },
5438
- toJSON(_) {
6660
+ toJSON(message) {
5439
6661
  const obj = {};
6662
+ if (message.id !== void 0 && message.id !== 0) {
6663
+ obj.id = Math.round(message.id);
6664
+ }
6665
+ if (message.contractAddress !== void 0) {
6666
+ obj.contractAddress = FieldElement.toJSON(message.contractAddress);
6667
+ }
5440
6668
  return obj;
5441
6669
  },
5442
6670
  create(base) {
5443
- return DeployAccountV3TransactionFilter$1.fromPartial(base ?? {});
6671
+ return NonceUpdateFilter$1.fromPartial(base ?? {});
5444
6672
  },
5445
- fromPartial(_) {
5446
- const message = createBaseDeployAccountV3TransactionFilter();
6673
+ fromPartial(object) {
6674
+ const message = createBaseNonceUpdateFilter();
6675
+ message.id = object.id ?? 0;
6676
+ message.contractAddress = object.contractAddress !== void 0 && object.contractAddress !== null ? FieldElement.fromPartial(object.contractAddress) : void 0;
5447
6677
  return message;
5448
6678
  }
5449
6679
  };
@@ -5453,13 +6683,16 @@ function isSet(value) {
5453
6683
 
5454
6684
  const filter = {
5455
6685
  __proto__: null,
6686
+ ContractChangeFilter: ContractChangeFilter$1,
5456
6687
  DeclareV0TransactionFilter: DeclareV0TransactionFilter$1,
5457
6688
  DeclareV1TransactionFilter: DeclareV1TransactionFilter$1,
5458
6689
  DeclareV2TransactionFilter: DeclareV2TransactionFilter$1,
5459
6690
  DeclareV3TransactionFilter: DeclareV3TransactionFilter$1,
6691
+ DeclaredClassFilter: DeclaredClassFilter$1,
5460
6692
  DeployAccountV1TransactionFilter: DeployAccountV1TransactionFilter$1,
5461
6693
  DeployAccountV3TransactionFilter: DeployAccountV3TransactionFilter$1,
5462
6694
  DeployTransactionFilter: DeployTransactionFilter$1,
6695
+ DeployedContractFilter: DeployedContractFilter$1,
5463
6696
  EventFilter: EventFilter$1,
5464
6697
  Filter: Filter$1,
5465
6698
  HeaderFilter: HeaderFilter$1,
@@ -5469,8 +6702,16 @@ const filter = {
5469
6702
  Key: Key$1,
5470
6703
  L1HandlerTransactionFilter: L1HandlerTransactionFilter$1,
5471
6704
  MessageToL1Filter: MessageToL1Filter$1,
6705
+ NonceUpdateFilter: NonceUpdateFilter$1,
6706
+ ReplacedClassFilter: ReplacedClassFilter$1,
6707
+ StorageDiffFilter: StorageDiffFilter$1,
5472
6708
  TransactionFilter: TransactionFilter$1,
5473
- protobufPackage: protobufPackage
6709
+ TransactionStatusFilter: TransactionStatusFilter$1,
6710
+ headerFilterFromJSON: headerFilterFromJSON,
6711
+ headerFilterToJSON: headerFilterToJSON,
6712
+ protobufPackage: protobufPackage,
6713
+ transactionStatusFilterFromJSON: transactionStatusFilterFromJSON,
6714
+ transactionStatusFilterToJSON: transactionStatusFilterToJSON
5474
6715
  };
5475
6716
 
5476
6717
  const index = {
@@ -5502,16 +6743,34 @@ const L1DataAvailabilityMode = schema.Schema.transform(
5502
6743
  }
5503
6744
  }
5504
6745
  );
6746
+ const TransactionStatus = schema.Schema.transform(
6747
+ schema.Schema.Enums(TransactionStatus$1),
6748
+ schema.Schema.Literal("unknown", "succeeded", "reverted"),
6749
+ {
6750
+ decode(value) {
6751
+ const enumMap = {
6752
+ [TransactionStatus$1.SUCCEEDED]: "succeeded",
6753
+ [TransactionStatus$1.REVERTED]: "reverted",
6754
+ [TransactionStatus$1.UNSPECIFIED]: "unknown",
6755
+ [TransactionStatus$1.UNRECOGNIZED]: "unknown"
6756
+ };
6757
+ return enumMap[value] ?? "unknown";
6758
+ },
6759
+ encode(value) {
6760
+ throw new Error("encode: not implemented");
6761
+ }
6762
+ }
6763
+ );
5505
6764
  const U128 = schema.Schema.transform(
5506
6765
  schema.Schema.Struct({
5507
- low: schema.Schema.BigIntFromSelf,
5508
- high: schema.Schema.BigIntFromSelf
6766
+ x0: schema.Schema.BigIntFromSelf,
6767
+ x1: schema.Schema.BigIntFromSelf
5509
6768
  }),
5510
6769
  schema.Schema.BigIntFromSelf,
5511
6770
  {
5512
6771
  decode(value) {
5513
- const low = value.low.toString(16).padStart(16, "0");
5514
- const high = value.high.toString(16).padStart(16, "0");
6772
+ const low = value.x0.toString(16).padStart(16, "0");
6773
+ const high = value.x1.toString(16).padStart(16, "0");
5515
6774
  return BigInt(`0x${low}${high}`);
5516
6775
  },
5517
6776
  encode(value) {
@@ -5560,7 +6819,7 @@ const BlockHeader = schema.Schema.Struct({
5560
6819
  const TransactionMeta = schema.Schema.Struct({
5561
6820
  transactionIndex: schema.Schema.optional(schema.Schema.Number),
5562
6821
  transactionHash: schema.Schema.optional(FieldElement$1),
5563
- transactionReverted: schema.Schema.optional(schema.Schema.Boolean)
6822
+ transactionStatus: schema.Schema.optional(TransactionStatus)
5564
6823
  });
5565
6824
  const InvokeTransactionV0 = schema.Schema.Struct({
5566
6825
  _tag: tag("invokeV0"),
@@ -5687,6 +6946,7 @@ const DeployAccountTransactionV3 = schema.Schema.Struct({
5687
6946
  })
5688
6947
  });
5689
6948
  const Transaction = schema.Schema.Struct({
6949
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
5690
6950
  meta: schema.Schema.optional(TransactionMeta),
5691
6951
  transaction: schema.Schema.optional(
5692
6952
  schema.Schema.Union(
@@ -5792,6 +7052,7 @@ const DeployAccountTransactionReceipt = schema.Schema.Struct({
5792
7052
  })
5793
7053
  });
5794
7054
  const TransactionReceipt = schema.Schema.Struct({
7055
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
5795
7056
  meta: schema.Schema.optional(TransactionReceiptMeta),
5796
7057
  receipt: schema.Schema.optional(
5797
7058
  schema.Schema.Union(
@@ -5804,29 +7065,75 @@ const TransactionReceipt = schema.Schema.Struct({
5804
7065
  )
5805
7066
  });
5806
7067
  const Event = schema.Schema.Struct({
5807
- fromAddress: schema.Schema.optional(FieldElement$1),
7068
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
7069
+ address: schema.Schema.optional(FieldElement$1),
5808
7070
  keys: schema.Schema.optional(schema.Schema.Array(FieldElement$1)),
5809
7071
  data: schema.Schema.optional(schema.Schema.Array(FieldElement$1)),
5810
7072
  eventIndex: schema.Schema.optional(schema.Schema.Number),
5811
7073
  transactionIndex: schema.Schema.optional(schema.Schema.Number),
5812
7074
  transactionHash: schema.Schema.optional(FieldElement$1),
5813
- transactionReverted: schema.Schema.optional(schema.Schema.Boolean)
7075
+ transactionStatus: schema.Schema.optional(TransactionStatus)
5814
7076
  });
5815
7077
  const MessageToL1 = schema.Schema.Struct({
7078
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
5816
7079
  fromAddress: schema.Schema.optional(FieldElement$1),
5817
7080
  toAddress: schema.Schema.optional(FieldElement$1),
5818
7081
  payload: schema.Schema.optional(schema.Schema.Array(FieldElement$1)),
5819
7082
  messageIndex: schema.Schema.optional(schema.Schema.Number),
5820
7083
  transactionIndex: schema.Schema.optional(schema.Schema.Number),
5821
7084
  transactionHash: schema.Schema.optional(FieldElement$1),
5822
- transactionReverted: schema.Schema.optional(schema.Schema.Boolean)
7085
+ transactionStatus: schema.Schema.optional(TransactionStatus)
7086
+ });
7087
+ const StorageEntry = schema.Schema.Struct({
7088
+ key: schema.Schema.optional(FieldElement$1),
7089
+ value: schema.Schema.optional(FieldElement$1)
7090
+ });
7091
+ const StorageDiff = schema.Schema.Struct({
7092
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
7093
+ contractAddress: schema.Schema.optional(FieldElement$1),
7094
+ storageEntries: schema.Schema.optional(schema.Schema.Array(StorageEntry))
7095
+ });
7096
+ const DeclaredClass = schema.Schema.Struct({
7097
+ _tag: tag("declaredClass"),
7098
+ declaredClass: schema.Schema.Struct({
7099
+ classHash: schema.Schema.optional(FieldElement$1),
7100
+ compiledClassHash: schema.Schema.optional(FieldElement$1)
7101
+ })
7102
+ });
7103
+ const ReplacedClass = schema.Schema.Struct({
7104
+ _tag: tag("replacedClass"),
7105
+ replacedClass: schema.Schema.Struct({
7106
+ contractAddress: schema.Schema.optional(FieldElement$1),
7107
+ classHash: schema.Schema.optional(FieldElement$1)
7108
+ })
7109
+ });
7110
+ const DeployedContract = schema.Schema.Struct({
7111
+ _tag: tag("deployedContract"),
7112
+ deployedContract: schema.Schema.Struct({
7113
+ contractAddress: schema.Schema.optional(FieldElement$1),
7114
+ classHash: schema.Schema.optional(FieldElement$1)
7115
+ })
7116
+ });
7117
+ const ContractChange = schema.Schema.Struct({
7118
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
7119
+ change: schema.Schema.optional(
7120
+ schema.Schema.Union(DeclaredClass, ReplacedClass, DeployedContract)
7121
+ )
7122
+ });
7123
+ const NonceUpdate = schema.Schema.Struct({
7124
+ filterIds: schema.Schema.optional(schema.Schema.Array(schema.Schema.Number)),
7125
+ contractAddress: schema.Schema.optional(FieldElement$1),
7126
+ nonce: schema.Schema.optional(FieldElement$1)
5823
7127
  });
5824
7128
  const Block = schema.Schema.Struct({
5825
7129
  header: schema.Schema.optional(BlockHeader),
5826
7130
  transactions: schema.Schema.Array(Transaction),
5827
7131
  receipts: schema.Schema.Array(TransactionReceipt),
5828
7132
  events: schema.Schema.Array(Event),
5829
- messages: schema.Schema.Array(MessageToL1)
7133
+ messages: schema.Schema.Array(MessageToL1),
7134
+ storageDiffs: schema.Schema.Array(StorageDiff),
7135
+ contractChanges: schema.Schema.Array(ContractChange),
7136
+ nonceUpdates: schema.Schema.Array(NonceUpdate)
5830
7137
  });
5831
7138
  const BlockFromBytes = schema.Schema.transform(
5832
7139
  schema.Schema.Uint8ArrayFromSelf,
@@ -5848,9 +7155,34 @@ const BlockFromBytes = schema.Schema.transform(
5848
7155
  }
5849
7156
  );
5850
7157
 
5851
- const HeaderFilter = schema.Schema.Struct({
5852
- always: schema.Schema.optional(schema.Schema.Boolean)
5853
- });
7158
+ const HeaderFilter = schema.Schema.transform(
7159
+ schema.Schema.Enums(HeaderFilter$1),
7160
+ schema.Schema.Literal("always", "on_data", "on_data_or_on_new_block", "unknown"),
7161
+ {
7162
+ decode(value) {
7163
+ const enumMap = {
7164
+ [HeaderFilter$1.ALWAYS]: "always",
7165
+ [HeaderFilter$1.ON_DATA]: "on_data",
7166
+ [HeaderFilter$1.ON_DATA_OR_ON_NEW_BLOCK]: "on_data_or_on_new_block",
7167
+ [HeaderFilter$1.UNSPECIFIED]: "unknown",
7168
+ [HeaderFilter$1.UNRECOGNIZED]: "unknown"
7169
+ };
7170
+ return enumMap[value] ?? "unknown";
7171
+ },
7172
+ encode(value) {
7173
+ switch (value) {
7174
+ case "always":
7175
+ return HeaderFilter$1.ALWAYS;
7176
+ case "on_data":
7177
+ return HeaderFilter$1.ON_DATA;
7178
+ case "on_data_or_on_new_block":
7179
+ return HeaderFilter$1.ON_DATA_OR_ON_NEW_BLOCK;
7180
+ default:
7181
+ return HeaderFilter$1.UNSPECIFIED;
7182
+ }
7183
+ }
7184
+ }
7185
+ );
5854
7186
  const Key = schema.Schema.transform(
5855
7187
  schema.Schema.Struct({ value: schema.Schema.UndefinedOr(FieldElementProto) }),
5856
7188
  schema.Schema.NullOr(FieldElement$1),
@@ -5869,20 +7201,50 @@ const Key = schema.Schema.transform(
5869
7201
  }
5870
7202
  }
5871
7203
  );
7204
+ const TransactionStatusFilter = schema.Schema.transform(
7205
+ schema.Schema.Enums(TransactionStatusFilter$1),
7206
+ schema.Schema.Literal("succeeded", "reverted", "all", "unknown"),
7207
+ {
7208
+ decode(value) {
7209
+ const enumMap = {
7210
+ [TransactionStatusFilter$1.SUCCEEDED]: "succeeded",
7211
+ [TransactionStatusFilter$1.REVERTED]: "reverted",
7212
+ [TransactionStatusFilter$1.ALL]: "all",
7213
+ [TransactionStatusFilter$1.UNSPECIFIED]: "unknown",
7214
+ [TransactionStatusFilter$1.UNRECOGNIZED]: "unknown"
7215
+ };
7216
+ return enumMap[value] ?? "unknown";
7217
+ },
7218
+ encode(value) {
7219
+ switch (value) {
7220
+ case "succeeded":
7221
+ return TransactionStatusFilter$1.SUCCEEDED;
7222
+ case "reverted":
7223
+ return TransactionStatusFilter$1.REVERTED;
7224
+ case "all":
7225
+ return TransactionStatusFilter$1.ALL;
7226
+ default:
7227
+ return TransactionStatusFilter$1.UNSPECIFIED;
7228
+ }
7229
+ }
7230
+ }
7231
+ );
5872
7232
  const EventFilter = schema.Schema.Struct({
5873
- fromAddress: schema.Schema.optional(FieldElement$1),
7233
+ id: schema.Schema.optional(schema.Schema.Number),
7234
+ address: schema.Schema.optional(FieldElement$1),
5874
7235
  keys: schema.Schema.optional(schema.Schema.Array(Key)),
5875
7236
  strict: schema.Schema.optional(schema.Schema.Boolean),
5876
- includeReverted: schema.Schema.optional(schema.Schema.Boolean),
7237
+ transactionStatus: schema.Schema.optional(TransactionStatusFilter),
5877
7238
  includeTransaction: schema.Schema.optional(schema.Schema.Boolean),
5878
7239
  includeReceipt: schema.Schema.optional(schema.Schema.Boolean),
5879
7240
  includeMessages: schema.Schema.optional(schema.Schema.Boolean),
5880
7241
  includeSiblings: schema.Schema.optional(schema.Schema.Boolean)
5881
7242
  });
5882
7243
  const MessageToL1Filter = schema.Schema.Struct({
7244
+ id: schema.Schema.optional(schema.Schema.Number),
5883
7245
  fromAddress: schema.Schema.optional(FieldElement$1),
5884
7246
  toAddress: schema.Schema.optional(FieldElement$1),
5885
- includeReverted: schema.Schema.optional(schema.Schema.Boolean),
7247
+ transactionStatus: schema.Schema.optional(TransactionStatusFilter),
5886
7248
  includeTransaction: schema.Schema.optional(schema.Schema.Boolean),
5887
7249
  includeReceipt: schema.Schema.optional(schema.Schema.Boolean),
5888
7250
  includeEvents: schema.Schema.optional(schema.Schema.Boolean)
@@ -5932,7 +7294,8 @@ const DeployAccountV3TransactionFilter = schema.Schema.Struct({
5932
7294
  deployAccountV3: schema.Schema.Struct({})
5933
7295
  });
5934
7296
  const TransactionFilter = schema.Schema.Struct({
5935
- includeReverted: schema.Schema.optional(schema.Schema.Boolean),
7297
+ id: schema.Schema.optional(schema.Schema.Number),
7298
+ transactionStatus: schema.Schema.optional(TransactionStatusFilter),
5936
7299
  includeReceipt: schema.Schema.optional(schema.Schema.Boolean),
5937
7300
  includeMessages: schema.Schema.optional(schema.Schema.Boolean),
5938
7301
  includeEvents: schema.Schema.optional(schema.Schema.Boolean),
@@ -5953,11 +7316,44 @@ const TransactionFilter = schema.Schema.Struct({
5953
7316
  )
5954
7317
  )
5955
7318
  });
7319
+ const StorageDiffFilter = schema.Schema.Struct({
7320
+ id: schema.Schema.optional(schema.Schema.Number),
7321
+ contractAddress: schema.Schema.optional(FieldElement$1)
7322
+ });
7323
+ const DeclaredClassFilter = schema.Schema.Struct({
7324
+ _tag: tag("declaredClass"),
7325
+ declaredClass: schema.Schema.Struct({})
7326
+ });
7327
+ const ReplacedClassFilter = schema.Schema.Struct({
7328
+ _tag: tag("replacedClass"),
7329
+ replacedClass: schema.Schema.Struct({})
7330
+ });
7331
+ const DeployedContractFilter = schema.Schema.Struct({
7332
+ _tag: tag("deployedContract"),
7333
+ deployedContract: schema.Schema.Struct({})
7334
+ });
7335
+ const ContractChangeFilter = schema.Schema.Struct({
7336
+ id: schema.Schema.optional(schema.Schema.Number),
7337
+ change: schema.Schema.optional(
7338
+ schema.Schema.Union(
7339
+ DeclaredClassFilter,
7340
+ ReplacedClassFilter,
7341
+ DeployedContractFilter
7342
+ )
7343
+ )
7344
+ });
7345
+ const NonceUpdateFilter = schema.Schema.Struct({
7346
+ id: schema.Schema.optional(schema.Schema.Number),
7347
+ contractAddress: schema.Schema.optional(FieldElement$1)
7348
+ });
5956
7349
  const Filter = schema.Schema.Struct({
5957
7350
  header: schema.Schema.optional(HeaderFilter),
5958
7351
  transactions: schema.Schema.optional(schema.Schema.Array(TransactionFilter)),
5959
7352
  events: schema.Schema.optional(schema.Schema.Array(EventFilter)),
5960
- messages: schema.Schema.optional(schema.Schema.Array(MessageToL1Filter))
7353
+ messages: schema.Schema.optional(schema.Schema.Array(MessageToL1Filter)),
7354
+ storageDiffs: schema.Schema.optional(schema.Schema.Array(StorageDiffFilter)),
7355
+ contractChanges: schema.Schema.optional(schema.Schema.Array(ContractChangeFilter)),
7356
+ nonceUpdates: schema.Schema.optional(schema.Schema.Array(NonceUpdateFilter))
5961
7357
  });
5962
7358
  const filterToProto = schema.Schema.encodeSync(Filter);
5963
7359
  const filterFromProto = schema.Schema.decodeSync(Filter);
@@ -5982,7 +7378,13 @@ function mergeFilter(a, b) {
5982
7378
  header,
5983
7379
  transactions: [...a.transactions ?? [], ...b.transactions ?? []],
5984
7380
  events: [...a.events ?? [], ...b.events ?? []],
5985
- messages: [...a.messages ?? [], ...b.messages ?? []]
7381
+ messages: [...a.messages ?? [], ...b.messages ?? []],
7382
+ storageDiffs: [...a.storageDiffs ?? [], ...b.storageDiffs ?? []],
7383
+ contractChanges: [
7384
+ ...a.contractChanges ?? [],
7385
+ ...b.contractChanges ?? []
7386
+ ],
7387
+ nonceUpdates: [...a.nonceUpdates ?? [], ...b.nonceUpdates ?? []]
5986
7388
  };
5987
7389
  }
5988
7390
  function mergeHeaderFilter(a, b) {
@@ -5992,9 +7394,13 @@ function mergeHeaderFilter(a, b) {
5992
7394
  if (b === void 0) {
5993
7395
  return a;
5994
7396
  }
5995
- return {
5996
- always: a.always || b.always
5997
- };
7397
+ if (a === "always" || b === "always") {
7398
+ return "always";
7399
+ }
7400
+ if (a === "on_data_or_on_new_block" || b === "on_data_or_on_new_block") {
7401
+ return "on_data_or_on_new_block";
7402
+ }
7403
+ return "on_data";
5998
7404
  }
5999
7405
 
6000
7406
  function getReceipt(transactionIndex, receipts) {
@@ -6039,6 +7445,8 @@ exports.Block = Block;
6039
7445
  exports.BlockFromBytes = BlockFromBytes;
6040
7446
  exports.BlockHeader = BlockHeader;
6041
7447
  exports.ComputationResources = ComputationResources;
7448
+ exports.ContractChange = ContractChange;
7449
+ exports.ContractChangeFilter = ContractChangeFilter;
6042
7450
  exports.DataAvailabilityMode = DataAvailabilityMode;
6043
7451
  exports.DataAvailabilityResources = DataAvailabilityResources;
6044
7452
  exports.DeclareTransactionReceipt = DeclareTransactionReceipt;
@@ -6050,6 +7458,8 @@ exports.DeclareV0TransactionFilter = DeclareV0TransactionFilter;
6050
7458
  exports.DeclareV1TransactionFilter = DeclareV1TransactionFilter;
6051
7459
  exports.DeclareV2TransactionFilter = DeclareV2TransactionFilter;
6052
7460
  exports.DeclareV3TransactionFilter = DeclareV3TransactionFilter;
7461
+ exports.DeclaredClass = DeclaredClass;
7462
+ exports.DeclaredClassFilter = DeclaredClassFilter;
6053
7463
  exports.DeployAccountTransactionReceipt = DeployAccountTransactionReceipt;
6054
7464
  exports.DeployAccountTransactionV1 = DeployAccountTransactionV1;
6055
7465
  exports.DeployAccountTransactionV3 = DeployAccountTransactionV3;
@@ -6058,6 +7468,8 @@ exports.DeployAccountV3TransactionFilter = DeployAccountV3TransactionFilter;
6058
7468
  exports.DeployTransaction = DeployTransaction;
6059
7469
  exports.DeployTransactionFilter = DeployTransactionFilter;
6060
7470
  exports.DeployTransactionReceipt = DeployTransactionReceipt;
7471
+ exports.DeployedContract = DeployedContract;
7472
+ exports.DeployedContractFilter = DeployedContractFilter;
6061
7473
  exports.Event = Event;
6062
7474
  exports.EventFilter = EventFilter;
6063
7475
  exports.ExecutionResources = ExecutionResources;
@@ -6083,16 +7495,25 @@ exports.L1HandlerTransactionFilter = L1HandlerTransactionFilter;
6083
7495
  exports.L1HandlerTransactionReceipt = L1HandlerTransactionReceipt;
6084
7496
  exports.MessageToL1 = MessageToL1;
6085
7497
  exports.MessageToL1Filter = MessageToL1Filter;
7498
+ exports.NonceUpdate = NonceUpdate;
7499
+ exports.NonceUpdateFilter = NonceUpdateFilter;
6086
7500
  exports.PriceUnit = PriceUnit;
7501
+ exports.ReplacedClass = ReplacedClass;
7502
+ exports.ReplacedClassFilter = ReplacedClassFilter;
6087
7503
  exports.ResourceBounds = ResourceBounds;
6088
7504
  exports.ResourceBoundsMapping = ResourceBoundsMapping;
6089
7505
  exports.ResourcePrice = ResourcePrice;
6090
7506
  exports.StarknetStream = StarknetStream;
7507
+ exports.StorageDiff = StorageDiff;
7508
+ exports.StorageDiffFilter = StorageDiffFilter;
7509
+ exports.StorageEntry = StorageEntry;
6091
7510
  exports.Transaction = Transaction;
6092
7511
  exports.TransactionFilter = TransactionFilter;
6093
7512
  exports.TransactionMeta = TransactionMeta;
6094
7513
  exports.TransactionReceipt = TransactionReceipt;
6095
7514
  exports.TransactionReceiptMeta = TransactionReceiptMeta;
7515
+ exports.TransactionStatus = TransactionStatus;
7516
+ exports.TransactionStatusFilter = TransactionStatusFilter;
6096
7517
  exports.U128 = U128;
6097
7518
  exports.feltFromProto = feltFromProto;
6098
7519
  exports.feltToProto = feltToProto;