@wireio/opp-solidity-models 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -14,4 +14,4 @@ import { ... } from "@wireio/opp-solidity-models";
14
14
 
15
15
  ## Generated from
16
16
 
17
- Proto source: `Wire-Network/wire-sysio/libraries/opp#feature/protobuf-support-for-opp`
17
+ Proto source: `file://../wire-sysio/libraries/opp/proto`
@@ -58,17 +58,12 @@ struct ReserveDisbursement {
58
58
  ChainSignature[] signature;
59
59
  }
60
60
 
61
- struct TimestampedMessage {
62
- uint64 timestamp;
63
- Message message;
64
- }
65
-
66
61
  struct ProtocolState {
67
62
  ChainId chainId;
68
63
  bytes currentMessageId;
69
64
  bytes processedMessageId;
70
- TimestampedMessage[] incomingMessages;
71
- Message[] outgoing;
65
+ Message[] incomingMessages;
66
+ Message[] outgoingMessages;
72
67
  }
73
68
 
74
69
  library ChainReserveBalanceSheetCodec {
@@ -562,47 +557,6 @@ library ReserveDisbursementCodec {
562
557
  }
563
558
  }
564
559
 
565
- library TimestampedMessageCodec {
566
-
567
- function encode(TimestampedMessage memory timestampedMessage) internal pure returns (bytes memory) {
568
- bytes memory buf = "";
569
-
570
- // field 1: timestamp
571
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x8));
572
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(timestampedMessage.timestamp));
573
-
574
- // field 2: message
575
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x12));
576
- bytes memory message_encoded = MessageCodec.encode(timestampedMessage.message);
577
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(message_encoded.length)));
578
- buf = abi.encodePacked(buf, message_encoded);
579
-
580
- return buf;
581
- }
582
-
583
- function decode(bytes memory data) internal pure returns (TimestampedMessage memory timestampedMessage) {
584
- uint256 pos = 0;
585
- uint256 end = data.length;
586
-
587
- while (pos < end) {
588
- uint64 tag;
589
- (tag, pos) = ProtobufRuntime._decode_key(data, pos);
590
-
591
- if (tag == 8) {
592
- (timestampedMessage.timestamp, pos) = ProtobufRuntime._decode_varint(data, pos);
593
- } else if (tag == 18) {
594
- uint64 _len;
595
- (_len, pos) = ProtobufRuntime._decode_varint(data, pos);
596
- bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
597
- timestampedMessage.message = MessageCodec.decode(_sub);
598
- pos += uint256(_len);
599
- } else {
600
- pos = ProtobufRuntime._skip_field(data, pos, tag & 0x07);
601
- }
602
- }
603
- }
604
- }
605
-
606
560
  library ProtocolStateCodec {
607
561
 
608
562
  function encode(ProtocolState memory protocolState) internal pure returns (bytes memory) {
@@ -622,18 +576,18 @@ library ProtocolStateCodec {
622
576
  buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x1a));
623
577
  buf = abi.encodePacked(buf, ProtobufRuntime._encode_bytes(protocolState.processedMessageId));
624
578
 
625
- // field 4: incoming_messages
579
+ // field 10: incoming_messages
626
580
  for (uint256 _i_incomingMessages = 0; _i_incomingMessages < protocolState.incomingMessages.length; _i_incomingMessages++) {
627
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x22));
628
- bytes memory _elem = TimestampedMessageCodec.encode(protocolState.incomingMessages[_i_incomingMessages]);
581
+ buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x52));
582
+ bytes memory _elem = MessageCodec.encode(protocolState.incomingMessages[_i_incomingMessages]);
629
583
  buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(_elem.length)));
630
584
  buf = abi.encodePacked(buf, _elem);
631
585
  }
632
586
 
633
- // field 5: outgoing
634
- for (uint256 _i_outgoing = 0; _i_outgoing < protocolState.outgoing.length; _i_outgoing++) {
635
- buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x2a));
636
- bytes memory _elem = MessageCodec.encode(protocolState.outgoing[_i_outgoing]);
587
+ // field 11: outgoing_messages
588
+ for (uint256 _i_outgoingMessages = 0; _i_outgoingMessages < protocolState.outgoingMessages.length; _i_outgoingMessages++) {
589
+ buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x5a));
590
+ bytes memory _elem = MessageCodec.encode(protocolState.outgoingMessages[_i_outgoingMessages]);
637
591
  buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(_elem.length)));
638
592
  buf = abi.encodePacked(buf, _elem);
639
593
  }
@@ -646,21 +600,21 @@ library ProtocolStateCodec {
646
600
  uint256 end = data.length;
647
601
 
648
602
  uint256 _count_incomingMessages = 0;
649
- uint256 _count_outgoing = 0;
603
+ uint256 _count_outgoingMessages = 0;
650
604
  {
651
605
  uint256 _pos = 0;
652
606
  while (_pos < end) {
653
607
  uint64 _tag;
654
608
  (_tag, _pos) = ProtobufRuntime._decode_key(data, _pos);
655
- if (_tag == 34) { _count_incomingMessages++; }
656
- if (_tag == 42) { _count_outgoing++; }
609
+ if (_tag == 82) { _count_incomingMessages++; }
610
+ if (_tag == 90) { _count_outgoingMessages++; }
657
611
  _pos = ProtobufRuntime._skip_field(data, _pos, _tag & 0x07);
658
612
  }
659
613
  }
660
- protocolState.incomingMessages = new TimestampedMessage[](_count_incomingMessages);
661
- protocolState.outgoing = new Message[](_count_outgoing);
614
+ protocolState.incomingMessages = new Message[](_count_incomingMessages);
615
+ protocolState.outgoingMessages = new Message[](_count_outgoingMessages);
662
616
  uint256 _idx_incomingMessages = 0;
663
- uint256 _idx_outgoing = 0;
617
+ uint256 _idx_outgoingMessages = 0;
664
618
 
665
619
  while (pos < end) {
666
620
  uint64 tag;
@@ -676,17 +630,17 @@ library ProtocolStateCodec {
676
630
  (protocolState.currentMessageId, pos) = ProtobufRuntime._decode_bytes(data, pos);
677
631
  } else if (tag == 26) {
678
632
  (protocolState.processedMessageId, pos) = ProtobufRuntime._decode_bytes(data, pos);
679
- } else if (tag == 34) {
633
+ } else if (tag == 82) {
680
634
  uint64 _len;
681
635
  (_len, pos) = ProtobufRuntime._decode_varint(data, pos);
682
636
  bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
683
- protocolState.incomingMessages[_idx_incomingMessages++] = TimestampedMessageCodec.decode(_sub);
637
+ protocolState.incomingMessages[_idx_incomingMessages++] = MessageCodec.decode(_sub);
684
638
  pos += uint256(_len);
685
- } else if (tag == 42) {
639
+ } else if (tag == 90) {
686
640
  uint64 _len;
687
641
  (_len, pos) = ProtobufRuntime._decode_varint(data, pos);
688
642
  bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
689
- protocolState.outgoing[_idx_outgoing++] = MessageCodec.decode(_sub);
643
+ protocolState.outgoingMessages[_idx_outgoingMessages++] = MessageCodec.decode(_sub);
690
644
  pos += uint256(_len);
691
645
  } else {
692
646
  pos = ProtobufRuntime._skip_field(data, pos, tag & 0x07);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireio/opp-solidity-models",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Auto-generated protobuf types for Solidity",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -15,5 +15,5 @@
15
15
  "README.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@protobuf-ts/runtime": "^2.9.4"
18
+ "@protobuf-ts/runtime": "^2.11.1"
19
19
  }}
@@ -4,8 +4,8 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
4
  import type { IBinaryReader } from "@protobuf-ts/runtime";
5
5
  import type { PartialMessage } from "@protobuf-ts/runtime";
6
6
  import { MessageType } from "@protobuf-ts/runtime";
7
- import { ChainId } from "../types/types";
8
7
  import { Message } from "../opp";
8
+ import { ChainId } from "../types/types";
9
9
  import { ChainSignature } from "../types/types";
10
10
  import { OperatorStatus } from "../types/types";
11
11
  import { OperatorType } from "../types/types";
@@ -190,21 +190,6 @@ export interface ReserveDisbursement {
190
190
  */
191
191
  signature: ChainSignature[];
192
192
  }
193
- /**
194
- * Timestamped message wrapper for incoming message queues.
195
- *
196
- * @generated from protobuf message sysio.opp.attestations.TimestampedMessage
197
- */
198
- export interface TimestampedMessage {
199
- /**
200
- * @generated from protobuf field: uint64 timestamp = 1
201
- */
202
- timestamp: bigint;
203
- /**
204
- * @generated from protobuf field: sysio.opp.Message message = 2
205
- */
206
- message?: Message;
207
- }
208
193
  /**
209
194
  * Protocol state tracking for a message chain on a given chain.
210
195
  *
@@ -224,13 +209,13 @@ export interface ProtocolState {
224
209
  */
225
210
  processedMessageId: Uint8Array;
226
211
  /**
227
- * @generated from protobuf field: repeated sysio.opp.attestations.TimestampedMessage incoming_messages = 4
212
+ * @generated from protobuf field: repeated sysio.opp.Message incoming_messages = 10
228
213
  */
229
- incomingMessages: TimestampedMessage[];
214
+ incomingMessages: Message[];
230
215
  /**
231
- * @generated from protobuf field: repeated sysio.opp.Message outgoing = 5
216
+ * @generated from protobuf field: repeated sysio.opp.Message outgoing_messages = 11
232
217
  */
233
- outgoing: Message[];
218
+ outgoingMessages: Message[];
234
219
  }
235
220
  declare class ChainReserveBalanceSheet$Type extends MessageType<ChainReserveBalanceSheet> {
236
221
  constructor();
@@ -312,16 +297,6 @@ declare class ReserveDisbursement$Type extends MessageType<ReserveDisbursement>
312
297
  * @generated MessageType for protobuf message sysio.opp.attestations.ReserveDisbursement
313
298
  */
314
299
  export declare const ReserveDisbursement: ReserveDisbursement$Type;
315
- declare class TimestampedMessage$Type extends MessageType<TimestampedMessage> {
316
- constructor();
317
- create(value?: PartialMessage<TimestampedMessage>): TimestampedMessage;
318
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimestampedMessage): TimestampedMessage;
319
- internalBinaryWrite(message: TimestampedMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
320
- }
321
- /**
322
- * @generated MessageType for protobuf message sysio.opp.attestations.TimestampedMessage
323
- */
324
- export declare const TimestampedMessage: TimestampedMessage$Type;
325
300
  declare class ProtocolState$Type extends MessageType<ProtocolState> {
326
301
  constructor();
327
302
  create(value?: P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CAevH;AACD;;GAEG;AACH,eAAO,MAAM,mBAAmB,0BAAiC,CAAC;AAElE,cAAM,kBAAmB,SAAQ,WAAW,CAAC,aAAa,CAAC;;IAUvD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,aAAa;IAU5D,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,aAAa;IA+B5H,mBAAmB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAqBjH;AACD;;GAEG;AACH,eAAO,MAAM,aAAa,oBAA2B,CAAC"}
@@ -2,8 +2,8 @@ import { WireType } from "@protobuf-ts/runtime";
2
2
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
4
  import { MessageType } from "@protobuf-ts/runtime";
5
- import { ChainId } from "../types/types";
6
5
  import { Message } from "../opp";
6
+ import { ChainId } from "../types/types";
7
7
  import { ChainSignature } from "../types/types";
8
8
  import { OperatorStatus } from "../types/types";
9
9
  import { OperatorType } from "../types/types";
@@ -537,68 +537,14 @@ class ReserveDisbursement$Type extends MessageType {
537
537
  */
538
538
  export const ReserveDisbursement = new ReserveDisbursement$Type();
539
539
  // @generated message type with reflection information, may provide speed optimized methods
540
- class TimestampedMessage$Type extends MessageType {
541
- constructor() {
542
- super("sysio.opp.attestations.TimestampedMessage", [
543
- { no: 1, name: "timestamp", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
544
- { no: 2, name: "message", kind: "message", T: () => Message }
545
- ]);
546
- }
547
- create(value) {
548
- const message = globalThis.Object.create((this.messagePrototype));
549
- message.timestamp = 0n;
550
- if (value !== undefined)
551
- reflectionMergePartial(this, message, value);
552
- return message;
553
- }
554
- internalBinaryRead(reader, length, options, target) {
555
- let message = target ?? this.create(), end = reader.pos + length;
556
- while (reader.pos < end) {
557
- let [fieldNo, wireType] = reader.tag();
558
- switch (fieldNo) {
559
- case /* uint64 timestamp */ 1:
560
- message.timestamp = reader.uint64().toBigInt();
561
- break;
562
- case /* sysio.opp.Message message */ 2:
563
- message.message = Message.internalBinaryRead(reader, reader.uint32(), options, message.message);
564
- break;
565
- default:
566
- let u = options.readUnknownField;
567
- if (u === "throw")
568
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
569
- let d = reader.skip(wireType);
570
- if (u !== false)
571
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
572
- }
573
- }
574
- return message;
575
- }
576
- internalBinaryWrite(message, writer, options) {
577
- /* uint64 timestamp = 1; */
578
- if (message.timestamp !== 0n)
579
- writer.tag(1, WireType.Varint).uint64(message.timestamp);
580
- /* sysio.opp.Message message = 2; */
581
- if (message.message)
582
- Message.internalBinaryWrite(message.message, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
583
- let u = options.writeUnknownFields;
584
- if (u !== false)
585
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
586
- return writer;
587
- }
588
- }
589
- /**
590
- * @generated MessageType for protobuf message sysio.opp.attestations.TimestampedMessage
591
- */
592
- export const TimestampedMessage = new TimestampedMessage$Type();
593
- // @generated message type with reflection information, may provide speed optimized methods
594
540
  class ProtocolState$Type extends MessageType {
595
541
  constructor() {
596
542
  super("sysio.opp.attestations.ProtocolState", [
597
543
  { no: 1, name: "chain_id", kind: "message", T: () => ChainId },
598
544
  { no: 2, name: "current_message_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
599
545
  { no: 3, name: "processed_message_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
600
- { no: 4, name: "incoming_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TimestampedMessage },
601
- { no: 5, name: "outgoing", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message }
546
+ { no: 10, name: "incoming_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message },
547
+ { no: 11, name: "outgoing_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message }
602
548
  ]);
603
549
  }
604
550
  create(value) {
@@ -606,7 +552,7 @@ class ProtocolState$Type extends MessageType {
606
552
  message.currentMessageId = new Uint8Array(0);
607
553
  message.processedMessageId = new Uint8Array(0);
608
554
  message.incomingMessages = [];
609
- message.outgoing = [];
555
+ message.outgoingMessages = [];
610
556
  if (value !== undefined)
611
557
  reflectionMergePartial(this, message, value);
612
558
  return message;
@@ -625,11 +571,11 @@ class ProtocolState$Type extends MessageType {
625
571
  case /* bytes processed_message_id */ 3:
626
572
  message.processedMessageId = reader.bytes();
627
573
  break;
628
- case /* repeated sysio.opp.attestations.TimestampedMessage incoming_messages */ 4:
629
- message.incomingMessages.push(TimestampedMessage.internalBinaryRead(reader, reader.uint32(), options));
574
+ case /* repeated sysio.opp.Message incoming_messages */ 10:
575
+ message.incomingMessages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
630
576
  break;
631
- case /* repeated sysio.opp.Message outgoing */ 5:
632
- message.outgoing.push(Message.internalBinaryRead(reader, reader.uint32(), options));
577
+ case /* repeated sysio.opp.Message outgoing_messages */ 11:
578
+ message.outgoingMessages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
633
579
  break;
634
580
  default:
635
581
  let u = options.readUnknownField;
@@ -652,12 +598,12 @@ class ProtocolState$Type extends MessageType {
652
598
  /* bytes processed_message_id = 3; */
653
599
  if (message.processedMessageId.length)
654
600
  writer.tag(3, WireType.LengthDelimited).bytes(message.processedMessageId);
655
- /* repeated sysio.opp.attestations.TimestampedMessage incoming_messages = 4; */
601
+ /* repeated sysio.opp.Message incoming_messages = 10; */
656
602
  for (let i = 0; i < message.incomingMessages.length; i++)
657
- TimestampedMessage.internalBinaryWrite(message.incomingMessages[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
658
- /* repeated sysio.opp.Message outgoing = 5; */
659
- for (let i = 0; i < message.outgoing.length; i++)
660
- Message.internalBinaryWrite(message.outgoing[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
603
+ Message.internalBinaryWrite(message.incomingMessages[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
604
+ /* repeated sysio.opp.Message outgoing_messages = 11; */
605
+ for (let i = 0; i < message.outgoingMessages.length; i++)
606
+ Message.internalBinaryWrite(message.outgoingMessages[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
661
607
  let u = options.writeUnknownFields;
662
608
  if (u !== false)
663
609
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -10,8 +10,8 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
10
  import type { PartialMessage } from "@protobuf-ts/runtime";
11
11
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
12
  import { MessageType } from "@protobuf-ts/runtime";
13
- import { ChainId } from "../types/types";
14
13
  import { Message } from "../opp";
14
+ import { ChainId } from "../types/types";
15
15
  import { ChainSignature } from "../types/types";
16
16
  import { OperatorStatus } from "../types/types";
17
17
  import { OperatorType } from "../types/types";
@@ -212,21 +212,6 @@ export interface ReserveDisbursement {
212
212
  // Protocol state tracking
213
213
  // ---------------------------------------------------------------------------
214
214
 
215
- /**
216
- * Timestamped message wrapper for incoming message queues.
217
- *
218
- * @generated from protobuf message sysio.opp.attestations.TimestampedMessage
219
- */
220
- export interface TimestampedMessage {
221
- /**
222
- * @generated from protobuf field: uint64 timestamp = 1
223
- */
224
- timestamp: bigint; // milliseconds since epoch
225
- /**
226
- * @generated from protobuf field: sysio.opp.Message message = 2
227
- */
228
- message?: Message;
229
- }
230
215
  /**
231
216
  * Protocol state tracking for a message chain on a given chain.
232
217
  *
@@ -246,13 +231,13 @@ export interface ProtocolState {
246
231
  */
247
232
  processedMessageId: Uint8Array; // 32 bytes
248
233
  /**
249
- * @generated from protobuf field: repeated sysio.opp.attestations.TimestampedMessage incoming_messages = 4
234
+ * @generated from protobuf field: repeated sysio.opp.Message incoming_messages = 10
250
235
  */
251
- incomingMessages: TimestampedMessage[];
236
+ incomingMessages: Message[];
252
237
  /**
253
- * @generated from protobuf field: repeated sysio.opp.Message outgoing = 5
238
+ * @generated from protobuf field: repeated sysio.opp.Message outgoing_messages = 11
254
239
  */
255
- outgoing: Message[];
240
+ outgoingMessages: Message[];
256
241
  }
257
242
  // @generated message type with reflection information, may provide speed optimized methods
258
243
  class ChainReserveBalanceSheet$Type extends MessageType<ChainReserveBalanceSheet> {
@@ -762,68 +747,14 @@ class ReserveDisbursement$Type extends MessageType<ReserveDisbursement> {
762
747
  */
763
748
  export const ReserveDisbursement = new ReserveDisbursement$Type();
764
749
  // @generated message type with reflection information, may provide speed optimized methods
765
- class TimestampedMessage$Type extends MessageType<TimestampedMessage> {
766
- constructor() {
767
- super("sysio.opp.attestations.TimestampedMessage", [
768
- { no: 1, name: "timestamp", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
769
- { no: 2, name: "message", kind: "message", T: () => Message }
770
- ]);
771
- }
772
- create(value?: PartialMessage<TimestampedMessage>): TimestampedMessage {
773
- const message = globalThis.Object.create((this.messagePrototype!));
774
- message.timestamp = 0n;
775
- if (value !== undefined)
776
- reflectionMergePartial<TimestampedMessage>(this, message, value);
777
- return message;
778
- }
779
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimestampedMessage): TimestampedMessage {
780
- let message = target ?? this.create(), end = reader.pos + length;
781
- while (reader.pos < end) {
782
- let [fieldNo, wireType] = reader.tag();
783
- switch (fieldNo) {
784
- case /* uint64 timestamp */ 1:
785
- message.timestamp = reader.uint64().toBigInt();
786
- break;
787
- case /* sysio.opp.Message message */ 2:
788
- message.message = Message.internalBinaryRead(reader, reader.uint32(), options, message.message);
789
- break;
790
- default:
791
- let u = options.readUnknownField;
792
- if (u === "throw")
793
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
794
- let d = reader.skip(wireType);
795
- if (u !== false)
796
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
797
- }
798
- }
799
- return message;
800
- }
801
- internalBinaryWrite(message: TimestampedMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
802
- /* uint64 timestamp = 1; */
803
- if (message.timestamp !== 0n)
804
- writer.tag(1, WireType.Varint).uint64(message.timestamp);
805
- /* sysio.opp.Message message = 2; */
806
- if (message.message)
807
- Message.internalBinaryWrite(message.message, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
808
- let u = options.writeUnknownFields;
809
- if (u !== false)
810
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
811
- return writer;
812
- }
813
- }
814
- /**
815
- * @generated MessageType for protobuf message sysio.opp.attestations.TimestampedMessage
816
- */
817
- export const TimestampedMessage = new TimestampedMessage$Type();
818
- // @generated message type with reflection information, may provide speed optimized methods
819
750
  class ProtocolState$Type extends MessageType<ProtocolState> {
820
751
  constructor() {
821
752
  super("sysio.opp.attestations.ProtocolState", [
822
753
  { no: 1, name: "chain_id", kind: "message", T: () => ChainId },
823
754
  { no: 2, name: "current_message_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
824
755
  { no: 3, name: "processed_message_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
825
- { no: 4, name: "incoming_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TimestampedMessage },
826
- { no: 5, name: "outgoing", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message }
756
+ { no: 10, name: "incoming_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message },
757
+ { no: 11, name: "outgoing_messages", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Message }
827
758
  ]);
828
759
  }
829
760
  create(value?: PartialMessage<ProtocolState>): ProtocolState {
@@ -831,7 +762,7 @@ class ProtocolState$Type extends MessageType<ProtocolState> {
831
762
  message.currentMessageId = new Uint8Array(0);
832
763
  message.processedMessageId = new Uint8Array(0);
833
764
  message.incomingMessages = [];
834
- message.outgoing = [];
765
+ message.outgoingMessages = [];
835
766
  if (value !== undefined)
836
767
  reflectionMergePartial<ProtocolState>(this, message, value);
837
768
  return message;
@@ -850,11 +781,11 @@ class ProtocolState$Type extends MessageType<ProtocolState> {
850
781
  case /* bytes processed_message_id */ 3:
851
782
  message.processedMessageId = reader.bytes();
852
783
  break;
853
- case /* repeated sysio.opp.attestations.TimestampedMessage incoming_messages */ 4:
854
- message.incomingMessages.push(TimestampedMessage.internalBinaryRead(reader, reader.uint32(), options));
784
+ case /* repeated sysio.opp.Message incoming_messages */ 10:
785
+ message.incomingMessages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
855
786
  break;
856
- case /* repeated sysio.opp.Message outgoing */ 5:
857
- message.outgoing.push(Message.internalBinaryRead(reader, reader.uint32(), options));
787
+ case /* repeated sysio.opp.Message outgoing_messages */ 11:
788
+ message.outgoingMessages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
858
789
  break;
859
790
  default:
860
791
  let u = options.readUnknownField;
@@ -877,12 +808,12 @@ class ProtocolState$Type extends MessageType<ProtocolState> {
877
808
  /* bytes processed_message_id = 3; */
878
809
  if (message.processedMessageId.length)
879
810
  writer.tag(3, WireType.LengthDelimited).bytes(message.processedMessageId);
880
- /* repeated sysio.opp.attestations.TimestampedMessage incoming_messages = 4; */
811
+ /* repeated sysio.opp.Message incoming_messages = 10; */
881
812
  for (let i = 0; i < message.incomingMessages.length; i++)
882
- TimestampedMessage.internalBinaryWrite(message.incomingMessages[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
883
- /* repeated sysio.opp.Message outgoing = 5; */
884
- for (let i = 0; i < message.outgoing.length; i++)
885
- Message.internalBinaryWrite(message.outgoing[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
813
+ Message.internalBinaryWrite(message.incomingMessages[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
814
+ /* repeated sysio.opp.Message outgoing_messages = 11; */
815
+ for (let i = 0; i < message.outgoingMessages.length; i++)
816
+ Message.internalBinaryWrite(message.outgoingMessages[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
886
817
  let u = options.writeUnknownFields;
887
818
  if (u !== false)
888
819
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);