1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10#![allow(box_pointers)]
11#![allow(dead_code)]
12#![allow(missing_docs)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(non_upper_case_globals)]
16#![allow(trivial_casts)]
17#![allow(unsafe_code)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_0;
28
29#[derive(PartialEq,Clone,Default)]
30pub struct DeltaIndex {
31 pub height: u32,
33 pub cid: ::std::vec::Vec<u8>,
34 pub unknown_fields: ::protobuf::UnknownFields,
36 pub cached_size: ::protobuf::CachedSize,
37}
38
39impl<'a> ::std::default::Default for &'a DeltaIndex {
40 fn default() -> &'a DeltaIndex {
41 <DeltaIndex as ::protobuf::Message>::default_instance()
42 }
43}
44
45impl DeltaIndex {
46 pub fn new() -> DeltaIndex {
47 ::std::default::Default::default()
48 }
49
50 pub fn get_height(&self) -> u32 {
54 self.height
55 }
56 pub fn clear_height(&mut self) {
57 self.height = 0;
58 }
59
60 pub fn set_height(&mut self, v: u32) {
62 self.height = v;
63 }
64
65 pub fn get_cid(&self) -> &[u8] {
69 &self.cid
70 }
71 pub fn clear_cid(&mut self) {
72 self.cid.clear();
73 }
74
75 pub fn set_cid(&mut self, v: ::std::vec::Vec<u8>) {
77 self.cid = v;
78 }
79
80 pub fn mut_cid(&mut self) -> &mut ::std::vec::Vec<u8> {
83 &mut self.cid
84 }
85
86 pub fn take_cid(&mut self) -> ::std::vec::Vec<u8> {
88 ::std::mem::replace(&mut self.cid, ::std::vec::Vec::new())
89 }
90}
91
92impl ::protobuf::Message for DeltaIndex {
93 fn is_initialized(&self) -> bool {
94 true
95 }
96
97 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
98 while !is.eof()? {
99 let (field_number, wire_type) = is.read_tag_unpack()?;
100 match field_number {
101 1 => {
102 if wire_type != ::protobuf::wire_format::WireTypeVarint {
103 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
104 }
105 let tmp = is.read_uint32()?;
106 self.height = tmp;
107 },
108 2 => {
109 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.cid)?;
110 },
111 _ => {
112 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
113 },
114 };
115 }
116 ::std::result::Result::Ok(())
117 }
118
119 #[allow(unused_variables)]
121 fn compute_size(&self) -> u32 {
122 let mut my_size = 0;
123 if self.height != 0 {
124 my_size += ::protobuf::rt::value_size(1, self.height, ::protobuf::wire_format::WireTypeVarint);
125 }
126 if !self.cid.is_empty() {
127 my_size += ::protobuf::rt::bytes_size(2, &self.cid);
128 }
129 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
130 self.cached_size.set(my_size);
131 my_size
132 }
133
134 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
135 if self.height != 0 {
136 os.write_uint32(1, self.height)?;
137 }
138 if !self.cid.is_empty() {
139 os.write_bytes(2, &self.cid)?;
140 }
141 os.write_unknown_fields(self.get_unknown_fields())?;
142 ::std::result::Result::Ok(())
143 }
144
145 fn get_cached_size(&self) -> u32 {
146 self.cached_size.get()
147 }
148
149 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
150 &self.unknown_fields
151 }
152
153 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
154 &mut self.unknown_fields
155 }
156
157 fn as_any(&self) -> &dyn (::std::any::Any) {
158 self as &dyn (::std::any::Any)
159 }
160 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
161 self as &mut dyn (::std::any::Any)
162 }
163 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
164 self
165 }
166
167 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
168 Self::descriptor_static()
169 }
170
171 fn new() -> DeltaIndex {
172 DeltaIndex::new()
173 }
174
175 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
176 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
177 lock: ::protobuf::lazy::ONCE_INIT,
178 ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
179 };
180 unsafe {
181 descriptor.get(|| {
182 let mut fields = ::std::vec::Vec::new();
183 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>(
184 "height",
185 |m: &DeltaIndex| { &m.height },
186 |m: &mut DeltaIndex| { &mut m.height },
187 ));
188 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
189 "cid",
190 |m: &DeltaIndex| { &m.cid },
191 |m: &mut DeltaIndex| { &mut m.cid },
192 ));
193 ::protobuf::reflect::MessageDescriptor::new::<DeltaIndex>(
194 "DeltaIndex",
195 fields,
196 file_descriptor_proto()
197 )
198 })
199 }
200 }
201
202 fn default_instance() -> &'static DeltaIndex {
203 static mut instance: ::protobuf::lazy::Lazy<DeltaIndex> = ::protobuf::lazy::Lazy {
204 lock: ::protobuf::lazy::ONCE_INIT,
205 ptr: 0 as *const DeltaIndex,
206 };
207 unsafe {
208 instance.get(DeltaIndex::new)
209 }
210 }
211}
212
213impl ::protobuf::Clear for DeltaIndex {
214 fn clear(&mut self) {
215 self.height = 0;
216 self.cid.clear();
217 self.unknown_fields.clear();
218 }
219}
220
221impl ::std::fmt::Debug for DeltaIndex {
222 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
223 ::protobuf::text_format::fmt(self, f)
224 }
225}
226
227impl ::protobuf::reflect::ProtobufValue for DeltaIndex {
228 fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
229 ::protobuf::reflect::ProtobufValueRef::Message(self)
230 }
231}
232
233#[derive(PartialEq,Clone,Default)]
234pub struct Delta {
235 pub previous_delta_dfs_hash: ::std::vec::Vec<u8>,
237 pub merkle_root: ::std::vec::Vec<u8>,
238 pub merkle_poda: ::std::vec::Vec<u8>,
239 pub time_stamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
240 pub public_entries: ::protobuf::RepeatedField<super::Transaction::PublicEntry>,
241 pub confidential_entries: ::protobuf::RepeatedField<super::Transaction::ConfidentialEntry>,
242 pub coinbase_entries: ::protobuf::RepeatedField<super::Transaction::CoinbaseEntry>,
243 pub state_root: ::std::vec::Vec<u8>,
244 pub unknown_fields: ::protobuf::UnknownFields,
246 pub cached_size: ::protobuf::CachedSize,
247}
248
249impl<'a> ::std::default::Default for &'a Delta {
250 fn default() -> &'a Delta {
251 <Delta as ::protobuf::Message>::default_instance()
252 }
253}
254
255impl Delta {
256 pub fn new() -> Delta {
257 ::std::default::Default::default()
258 }
259
260 pub fn get_previous_delta_dfs_hash(&self) -> &[u8] {
264 &self.previous_delta_dfs_hash
265 }
266 pub fn clear_previous_delta_dfs_hash(&mut self) {
267 self.previous_delta_dfs_hash.clear();
268 }
269
270 pub fn set_previous_delta_dfs_hash(&mut self, v: ::std::vec::Vec<u8>) {
272 self.previous_delta_dfs_hash = v;
273 }
274
275 pub fn mut_previous_delta_dfs_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
278 &mut self.previous_delta_dfs_hash
279 }
280
281 pub fn take_previous_delta_dfs_hash(&mut self) -> ::std::vec::Vec<u8> {
283 ::std::mem::replace(&mut self.previous_delta_dfs_hash, ::std::vec::Vec::new())
284 }
285
286 pub fn get_merkle_root(&self) -> &[u8] {
290 &self.merkle_root
291 }
292 pub fn clear_merkle_root(&mut self) {
293 self.merkle_root.clear();
294 }
295
296 pub fn set_merkle_root(&mut self, v: ::std::vec::Vec<u8>) {
298 self.merkle_root = v;
299 }
300
301 pub fn mut_merkle_root(&mut self) -> &mut ::std::vec::Vec<u8> {
304 &mut self.merkle_root
305 }
306
307 pub fn take_merkle_root(&mut self) -> ::std::vec::Vec<u8> {
309 ::std::mem::replace(&mut self.merkle_root, ::std::vec::Vec::new())
310 }
311
312 pub fn get_merkle_poda(&self) -> &[u8] {
316 &self.merkle_poda
317 }
318 pub fn clear_merkle_poda(&mut self) {
319 self.merkle_poda.clear();
320 }
321
322 pub fn set_merkle_poda(&mut self, v: ::std::vec::Vec<u8>) {
324 self.merkle_poda = v;
325 }
326
327 pub fn mut_merkle_poda(&mut self) -> &mut ::std::vec::Vec<u8> {
330 &mut self.merkle_poda
331 }
332
333 pub fn take_merkle_poda(&mut self) -> ::std::vec::Vec<u8> {
335 ::std::mem::replace(&mut self.merkle_poda, ::std::vec::Vec::new())
336 }
337
338 pub fn get_time_stamp(&self) -> &::protobuf::well_known_types::Timestamp {
342 self.time_stamp.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::default_instance())
343 }
344 pub fn clear_time_stamp(&mut self) {
345 self.time_stamp.clear();
346 }
347
348 pub fn has_time_stamp(&self) -> bool {
349 self.time_stamp.is_some()
350 }
351
352 pub fn set_time_stamp(&mut self, v: ::protobuf::well_known_types::Timestamp) {
354 self.time_stamp = ::protobuf::SingularPtrField::some(v);
355 }
356
357 pub fn mut_time_stamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
360 if self.time_stamp.is_none() {
361 self.time_stamp.set_default();
362 }
363 self.time_stamp.as_mut().unwrap()
364 }
365
366 pub fn take_time_stamp(&mut self) -> ::protobuf::well_known_types::Timestamp {
368 self.time_stamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
369 }
370
371 pub fn get_public_entries(&self) -> &[super::Transaction::PublicEntry] {
375 &self.public_entries
376 }
377 pub fn clear_public_entries(&mut self) {
378 self.public_entries.clear();
379 }
380
381 pub fn set_public_entries(&mut self, v: ::protobuf::RepeatedField<super::Transaction::PublicEntry>) {
383 self.public_entries = v;
384 }
385
386 pub fn mut_public_entries(&mut self) -> &mut ::protobuf::RepeatedField<super::Transaction::PublicEntry> {
388 &mut self.public_entries
389 }
390
391 pub fn take_public_entries(&mut self) -> ::protobuf::RepeatedField<super::Transaction::PublicEntry> {
393 ::std::mem::replace(&mut self.public_entries, ::protobuf::RepeatedField::new())
394 }
395
396 pub fn get_confidential_entries(&self) -> &[super::Transaction::ConfidentialEntry] {
400 &self.confidential_entries
401 }
402 pub fn clear_confidential_entries(&mut self) {
403 self.confidential_entries.clear();
404 }
405
406 pub fn set_confidential_entries(&mut self, v: ::protobuf::RepeatedField<super::Transaction::ConfidentialEntry>) {
408 self.confidential_entries = v;
409 }
410
411 pub fn mut_confidential_entries(&mut self) -> &mut ::protobuf::RepeatedField<super::Transaction::ConfidentialEntry> {
413 &mut self.confidential_entries
414 }
415
416 pub fn take_confidential_entries(&mut self) -> ::protobuf::RepeatedField<super::Transaction::ConfidentialEntry> {
418 ::std::mem::replace(&mut self.confidential_entries, ::protobuf::RepeatedField::new())
419 }
420
421 pub fn get_coinbase_entries(&self) -> &[super::Transaction::CoinbaseEntry] {
425 &self.coinbase_entries
426 }
427 pub fn clear_coinbase_entries(&mut self) {
428 self.coinbase_entries.clear();
429 }
430
431 pub fn set_coinbase_entries(&mut self, v: ::protobuf::RepeatedField<super::Transaction::CoinbaseEntry>) {
433 self.coinbase_entries = v;
434 }
435
436 pub fn mut_coinbase_entries(&mut self) -> &mut ::protobuf::RepeatedField<super::Transaction::CoinbaseEntry> {
438 &mut self.coinbase_entries
439 }
440
441 pub fn take_coinbase_entries(&mut self) -> ::protobuf::RepeatedField<super::Transaction::CoinbaseEntry> {
443 ::std::mem::replace(&mut self.coinbase_entries, ::protobuf::RepeatedField::new())
444 }
445
446 pub fn get_state_root(&self) -> &[u8] {
450 &self.state_root
451 }
452 pub fn clear_state_root(&mut self) {
453 self.state_root.clear();
454 }
455
456 pub fn set_state_root(&mut self, v: ::std::vec::Vec<u8>) {
458 self.state_root = v;
459 }
460
461 pub fn mut_state_root(&mut self) -> &mut ::std::vec::Vec<u8> {
464 &mut self.state_root
465 }
466
467 pub fn take_state_root(&mut self) -> ::std::vec::Vec<u8> {
469 ::std::mem::replace(&mut self.state_root, ::std::vec::Vec::new())
470 }
471}
472
473impl ::protobuf::Message for Delta {
474 fn is_initialized(&self) -> bool {
475 for v in &self.time_stamp {
476 if !v.is_initialized() {
477 return false;
478 }
479 };
480 for v in &self.public_entries {
481 if !v.is_initialized() {
482 return false;
483 }
484 };
485 for v in &self.confidential_entries {
486 if !v.is_initialized() {
487 return false;
488 }
489 };
490 for v in &self.coinbase_entries {
491 if !v.is_initialized() {
492 return false;
493 }
494 };
495 true
496 }
497
498 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
499 while !is.eof()? {
500 let (field_number, wire_type) = is.read_tag_unpack()?;
501 match field_number {
502 1 => {
503 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.previous_delta_dfs_hash)?;
504 },
505 2 => {
506 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.merkle_root)?;
507 },
508 3 => {
509 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.merkle_poda)?;
510 },
511 4 => {
512 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_stamp)?;
513 },
514 5 => {
515 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.public_entries)?;
516 },
517 6 => {
518 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.confidential_entries)?;
519 },
520 7 => {
521 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.coinbase_entries)?;
522 },
523 8 => {
524 ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.state_root)?;
525 },
526 _ => {
527 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
528 },
529 };
530 }
531 ::std::result::Result::Ok(())
532 }
533
534 #[allow(unused_variables)]
536 fn compute_size(&self) -> u32 {
537 let mut my_size = 0;
538 if !self.previous_delta_dfs_hash.is_empty() {
539 my_size += ::protobuf::rt::bytes_size(1, &self.previous_delta_dfs_hash);
540 }
541 if !self.merkle_root.is_empty() {
542 my_size += ::protobuf::rt::bytes_size(2, &self.merkle_root);
543 }
544 if !self.merkle_poda.is_empty() {
545 my_size += ::protobuf::rt::bytes_size(3, &self.merkle_poda);
546 }
547 if let Some(ref v) = self.time_stamp.as_ref() {
548 let len = v.compute_size();
549 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
550 }
551 for value in &self.public_entries {
552 let len = value.compute_size();
553 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
554 };
555 for value in &self.confidential_entries {
556 let len = value.compute_size();
557 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
558 };
559 for value in &self.coinbase_entries {
560 let len = value.compute_size();
561 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
562 };
563 if !self.state_root.is_empty() {
564 my_size += ::protobuf::rt::bytes_size(8, &self.state_root);
565 }
566 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
567 self.cached_size.set(my_size);
568 my_size
569 }
570
571 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
572 if !self.previous_delta_dfs_hash.is_empty() {
573 os.write_bytes(1, &self.previous_delta_dfs_hash)?;
574 }
575 if !self.merkle_root.is_empty() {
576 os.write_bytes(2, &self.merkle_root)?;
577 }
578 if !self.merkle_poda.is_empty() {
579 os.write_bytes(3, &self.merkle_poda)?;
580 }
581 if let Some(ref v) = self.time_stamp.as_ref() {
582 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
583 os.write_raw_varint32(v.get_cached_size())?;
584 v.write_to_with_cached_sizes(os)?;
585 }
586 for v in &self.public_entries {
587 os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
588 os.write_raw_varint32(v.get_cached_size())?;
589 v.write_to_with_cached_sizes(os)?;
590 };
591 for v in &self.confidential_entries {
592 os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
593 os.write_raw_varint32(v.get_cached_size())?;
594 v.write_to_with_cached_sizes(os)?;
595 };
596 for v in &self.coinbase_entries {
597 os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
598 os.write_raw_varint32(v.get_cached_size())?;
599 v.write_to_with_cached_sizes(os)?;
600 };
601 if !self.state_root.is_empty() {
602 os.write_bytes(8, &self.state_root)?;
603 }
604 os.write_unknown_fields(self.get_unknown_fields())?;
605 ::std::result::Result::Ok(())
606 }
607
608 fn get_cached_size(&self) -> u32 {
609 self.cached_size.get()
610 }
611
612 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
613 &self.unknown_fields
614 }
615
616 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
617 &mut self.unknown_fields
618 }
619
620 fn as_any(&self) -> &dyn (::std::any::Any) {
621 self as &dyn (::std::any::Any)
622 }
623 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
624 self as &mut dyn (::std::any::Any)
625 }
626 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
627 self
628 }
629
630 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
631 Self::descriptor_static()
632 }
633
634 fn new() -> Delta {
635 Delta::new()
636 }
637
638 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
639 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
640 lock: ::protobuf::lazy::ONCE_INIT,
641 ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
642 };
643 unsafe {
644 descriptor.get(|| {
645 let mut fields = ::std::vec::Vec::new();
646 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
647 "previous_delta_dfs_hash",
648 |m: &Delta| { &m.previous_delta_dfs_hash },
649 |m: &mut Delta| { &mut m.previous_delta_dfs_hash },
650 ));
651 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
652 "merkle_root",
653 |m: &Delta| { &m.merkle_root },
654 |m: &mut Delta| { &mut m.merkle_root },
655 ));
656 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
657 "merkle_poda",
658 |m: &Delta| { &m.merkle_poda },
659 |m: &mut Delta| { &mut m.merkle_poda },
660 ));
661 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
662 "time_stamp",
663 |m: &Delta| { &m.time_stamp },
664 |m: &mut Delta| { &mut m.time_stamp },
665 ));
666 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Transaction::PublicEntry>>(
667 "public_entries",
668 |m: &Delta| { &m.public_entries },
669 |m: &mut Delta| { &mut m.public_entries },
670 ));
671 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Transaction::ConfidentialEntry>>(
672 "confidential_entries",
673 |m: &Delta| { &m.confidential_entries },
674 |m: &mut Delta| { &mut m.confidential_entries },
675 ));
676 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::Transaction::CoinbaseEntry>>(
677 "coinbase_entries",
678 |m: &Delta| { &m.coinbase_entries },
679 |m: &mut Delta| { &mut m.coinbase_entries },
680 ));
681 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
682 "state_root",
683 |m: &Delta| { &m.state_root },
684 |m: &mut Delta| { &mut m.state_root },
685 ));
686 ::protobuf::reflect::MessageDescriptor::new::<Delta>(
687 "Delta",
688 fields,
689 file_descriptor_proto()
690 )
691 })
692 }
693 }
694
695 fn default_instance() -> &'static Delta {
696 static mut instance: ::protobuf::lazy::Lazy<Delta> = ::protobuf::lazy::Lazy {
697 lock: ::protobuf::lazy::ONCE_INIT,
698 ptr: 0 as *const Delta,
699 };
700 unsafe {
701 instance.get(Delta::new)
702 }
703 }
704}
705
706impl ::protobuf::Clear for Delta {
707 fn clear(&mut self) {
708 self.previous_delta_dfs_hash.clear();
709 self.merkle_root.clear();
710 self.merkle_poda.clear();
711 self.time_stamp.clear();
712 self.public_entries.clear();
713 self.confidential_entries.clear();
714 self.coinbase_entries.clear();
715 self.state_root.clear();
716 self.unknown_fields.clear();
717 }
718}
719
720impl ::std::fmt::Debug for Delta {
721 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
722 ::protobuf::text_format::fmt(self, f)
723 }
724}
725
726impl ::protobuf::reflect::ProtobufValue for Delta {
727 fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
728 ::protobuf::reflect::ProtobufValueRef::Message(self)
729 }
730}
731
732static file_descriptor_proto_data: &'static [u8] = b"\
733 \n\x0cDeltas.proto\x12\x18Catalyst.Protocol.Deltas\x1a\x11Transaction.pr\
734 oto\x1a\x1fgoogle/protobuf/timestamp.proto\"6\n\nDeltaIndex\x12\x16\n\
735 \x06height\x18\x01\x20\x01(\rR\x06height\x12\x10\n\x03cid\x18\x02\x20\
736 \x01(\x0cR\x03cid\"\xeb\x03\n\x05Delta\x125\n\x17previous_delta_dfs_hash\
737 \x18\x01\x20\x01(\x0cR\x14previousDeltaDfsHash\x12\x1f\n\x0bmerkle_root\
738 \x18\x02\x20\x01(\x0cR\nmerkleRoot\x12\x1f\n\x0bmerkle_poda\x18\x03\x20\
739 \x01(\x0cR\nmerklePoda\x129\n\ntime_stamp\x18\x04\x20\x01(\x0b2\x1a.goog\
740 le.protobuf.TimestampR\ttimeStamp\x12Q\n\x0epublic_entries\x18\x05\x20\
741 \x03(\x0b2*.Catalyst.Protocol.Transaction.PublicEntryR\rpublicEntries\
742 \x12c\n\x14confidential_entries\x18\x06\x20\x03(\x0b20.Catalyst.Protocol\
743 .Transaction.ConfidentialEntryR\x13confidentialEntries\x12W\n\x10coinbas\
744 e_entries\x18\x07\x20\x03(\x0b2,.Catalyst.Protocol.Transaction.CoinbaseE\
745 ntryR\x0fcoinbaseEntries\x12\x1d\n\nstate_root\x18\x08\x20\x01(\x0cR\tst\
746 ateRootB\x02P\x01J\xeb\x0e\n\x06\x12\x04\x13\0*\x01\n\xdf\x06\n\x01\x0c\
747 \x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\
748 \x20Network\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.Network.\
749 Protocol.Protobuffs\x20<https://github.com/catalyst-network/protocol-pro\
750 tobuffs>\n\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20free\x20so\
751 ftware:\x20you\x20can\x20redistribute\x20it\x20and/or\x20modify\n\x20it\
752 \x20under\x20the\x20terms\x20of\x20the\x20GNU\x20General\x20Public\x20Li\
753 cense\x20as\x20published\x20by\n\x20the\x20Free\x20Software\x20Foundatio\
754 n,\x20either\x20version\x202\x20of\x20the\x20License,\x20or\n\x20(at\x20\
755 your\x20option)\x20any\x20later\x20version.\n\x20\n\x20Catalyst.Network.\
756 Protocol.Protobuffs\x20is\x20distributed\x20in\x20the\x20hope\x20that\
757 \x20it\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\
758 \x20without\x20even\x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABI\
759 LITY\x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20th\
760 e\n\x20GNU\x20General\x20Public\x20License\x20for\x20more\x20details.\n\
761 \x20\n\x20You\x20should\x20have\x20received\x20a\x20copy\x20of\x20the\
762 \x20GNU\x20General\x20Public\x20License\n\x20along\x20with\x20Catalyst.N\
763 etwork.Protocol.Protobuffs\x20If\x20not,\x20see\x20<https://www.gnu.org/\
764 licenses/>.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\
765 \x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\
766 \x06\x08\xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\
767 \x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\
768 \x1d!\n\t\n\x02\x03\0\x12\x03\x17\x07\x1a\n\t\n\x02\x03\x01\x12\x03\x18\
769 \x07(\n\x08\n\x01\x02\x12\x03\x1a\x08\x20\n\n\n\x02\x04\0\x12\x04\x1c\0\
770 \x1f\x01\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x12\n\x0b\n\x04\x04\0\x02\0\
771 \x12\x03\x1d\x08\x1a\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1d\x08\x1c\x14\n\
772 \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1d\x08\x0e\n\x0c\n\x05\x04\0\x02\0\
773 \x01\x12\x03\x1d\x0f\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x18\x19\
774 \n\x0b\n\x04\x04\0\x02\x01\x12\x03\x1e\x08\x16\n\r\n\x05\x04\0\x02\x01\
775 \x04\x12\x04\x1e\x08\x1d\x1a\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x1e\
776 \x08\r\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1e\x0e\x11\n\x0c\n\x05\x04\
777 \0\x02\x01\x03\x12\x03\x1e\x14\x15\n\n\n\x02\x04\x01\x12\x04!\0*\x01\n\n\
778 \n\x03\x04\x01\x01\x12\x03!\x08\r\nH\n\x04\x04\x01\x02\0\x12\x03\"\x08*\
779 \";\x20\x20address\x20for\x20the\x20content\x20of\x20the\x20previous\x20\
780 delta\x20on\x20the\x20DFS\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\"\x08!\
781 \x0f\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\"\x08\r\n\x0c\n\x05\x04\x01\
782 \x02\0\x01\x12\x03\"\x0e%\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\"()\n\
783 \x0b\n\x04\x04\x01\x02\x01\x12\x03#\x08\x1e\n\r\n\x05\x04\x01\x02\x01\
784 \x04\x12\x04#\x08\"*\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03#\x08\r\n\
785 \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03#\x0e\x19\n\x0c\n\x05\x04\x01\x02\
786 \x01\x03\x12\x03#\x1c\x1d\n=\n\x04\x04\x01\x02\x02\x12\x03$\x08\x1e\"0\
787 \x20proof\x20of\x20delegated\x20authority\x20for\x20active\x20wokers\n\n\
788 \r\n\x05\x04\x01\x02\x02\x04\x12\x04$\x08#\x1e\n\x0c\n\x05\x04\x01\x02\
789 \x02\x05\x12\x03$\x08\r\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03$\x0e\x19\
790 \n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03$\x1c\x1d\n\x0b\n\x04\x04\x01\
791 \x02\x03\x12\x03%\x081\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04%\x08$\x1e\n\
792 \x0c\n\x05\x04\x01\x02\x03\x06\x12\x03%\x08!\n\x0c\n\x05\x04\x01\x02\x03\
793 \x01\x12\x03%\",\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03%/0\n\x0b\n\x04\
794 \x04\x01\x02\x04\x12\x03&\x08<\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03&\
795 \x08\x10\n\x0c\n\x05\x04\x01\x02\x04\x06\x12\x03&\x11(\n\x0c\n\x05\x04\
796 \x01\x02\x04\x01\x12\x03&)7\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03&:;\n\
797 \x0b\n\x04\x04\x01\x02\x05\x12\x03'\x08H\n\x0c\n\x05\x04\x01\x02\x05\x04\
798 \x12\x03'\x08\x10\n\x0c\n\x05\x04\x01\x02\x05\x06\x12\x03'\x11.\n\x0c\n\
799 \x05\x04\x01\x02\x05\x01\x12\x03'/C\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\
800 \x03'FG\n$\n\x04\x04\x01\x02\x06\x12\x03(\x08@\"\x17\x20one\x20per\x20ac\
801 tive\x20worker\n\n\x0c\n\x05\x04\x01\x02\x06\x04\x12\x03(\x08\x10\n\x0c\
802 \n\x05\x04\x01\x02\x06\x06\x12\x03(\x11*\n\x0c\n\x05\x04\x01\x02\x06\x01\
803 \x12\x03(+;\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03(>?\n)\n\x04\x04\x01\
804 \x02\x07\x12\x03)\x08\x1d\"\x1c\x20the\x20hash\x20of\x20the\x20state\x20\
805 root\n\n\r\n\x05\x04\x01\x02\x07\x04\x12\x04)\x08(@\n\x0c\n\x05\x04\x01\
806 \x02\x07\x05\x12\x03)\x08\r\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x03)\x0e\
807 \x18\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03)\x1b\x1cb\x06proto3\
808";
809
810static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
811 lock: ::protobuf::lazy::ONCE_INIT,
812 ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
813};
814
815fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
816 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
817}
818
819pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
820 unsafe {
821 file_descriptor_proto_lazy.get(|| {
822 parse_descriptor_proto()
823 })
824 }
825}