1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct AccountAddress {
5 #[prost(bytes = "vec", tag = "1")]
6 pub value: ::prost::alloc::vec::Vec<u8>,
7}
8#[derive(Clone, PartialEq, ::prost::Message)]
10pub struct Memo {
11 #[prost(bytes = "vec", tag = "1")]
12 pub value: ::prost::alloc::vec::Vec<u8>,
13}
14#[derive(Clone, Copy, PartialEq, ::prost::Message)]
16pub struct Empty {}
17#[derive(Clone, PartialEq, ::prost::Message)]
19pub struct BlockHash {
20 #[prost(bytes = "vec", tag = "1")]
21 pub value: ::prost::alloc::vec::Vec<u8>,
22}
23#[derive(Clone, PartialEq, ::prost::Message)]
25pub struct Sha256Hash {
26 #[prost(bytes = "vec", tag = "1")]
27 pub value: ::prost::alloc::vec::Vec<u8>,
28}
29#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct TransactionHash {
32 #[prost(bytes = "vec", tag = "1")]
33 pub value: ::prost::alloc::vec::Vec<u8>,
34}
35#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct StateHash {
38 #[prost(bytes = "vec", tag = "1")]
39 pub value: ::prost::alloc::vec::Vec<u8>,
40}
41#[derive(Clone, Copy, PartialEq, ::prost::Message)]
45pub struct AbsoluteBlockHeight {
46 #[prost(uint64, tag = "1")]
47 pub value: u64,
48}
49#[derive(Clone, Copy, PartialEq, ::prost::Message)]
52pub struct BlockHeight {
53 #[prost(uint64, tag = "1")]
54 pub value: u64,
55}
56#[derive(Clone, Copy, PartialEq, ::prost::Message)]
58pub struct BakerId {
59 #[prost(uint64, tag = "1")]
60 pub value: u64,
61}
62#[derive(Clone, Copy, PartialEq, ::prost::Message)]
65pub struct AccountIndex {
66 #[prost(uint64, tag = "1")]
67 pub value: u64,
68}
69#[derive(Clone, PartialEq, ::prost::Message)]
71pub struct ModuleRef {
72 #[prost(bytes = "vec", tag = "1")]
73 pub value: ::prost::alloc::vec::Vec<u8>,
74}
75#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct VersionedModuleSource {
78 #[prost(oneof = "versioned_module_source::Module", tags = "1, 2")]
79 pub module: ::core::option::Option<versioned_module_source::Module>,
80}
81pub mod versioned_module_source {
83 #[derive(Clone, PartialEq, ::prost::Message)]
85 pub struct ModuleSourceV0 {
86 #[prost(bytes = "vec", tag = "1")]
87 pub value: ::prost::alloc::vec::Vec<u8>,
88 }
89 #[derive(Clone, PartialEq, ::prost::Message)]
91 pub struct ModuleSourceV1 {
92 #[prost(bytes = "vec", tag = "1")]
93 pub value: ::prost::alloc::vec::Vec<u8>,
94 }
95 #[derive(Clone, PartialEq, ::prost::Oneof)]
96 pub enum Module {
97 #[prost(message, tag = "1")]
98 V0(ModuleSourceV0),
99 #[prost(message, tag = "2")]
100 V1(ModuleSourceV1),
101 }
102}
103#[derive(Clone, Copy, PartialEq, ::prost::Message)]
105pub struct Timestamp {
106 #[prost(uint64, tag = "1")]
107 pub value: u64,
108}
109#[derive(Clone, PartialEq, ::prost::Message)]
111pub struct Release {
112 #[prost(message, optional, tag = "1")]
114 pub timestamp: ::core::option::Option<Timestamp>,
115 #[prost(message, optional, tag = "2")]
117 pub amount: ::core::option::Option<Amount>,
118 #[prost(message, repeated, tag = "3")]
120 pub transactions: ::prost::alloc::vec::Vec<TransactionHash>,
121}
122#[derive(Clone, Copy, PartialEq, ::prost::Message)]
124pub struct NewRelease {
125 #[prost(message, optional, tag = "1")]
127 pub timestamp: ::core::option::Option<Timestamp>,
128 #[prost(message, optional, tag = "2")]
130 pub amount: ::core::option::Option<Amount>,
131}
132#[derive(Clone, PartialEq, ::prost::Message)]
135pub struct ReleaseSchedule {
136 #[prost(message, optional, tag = "1")]
138 pub total: ::core::option::Option<Amount>,
139 #[prost(message, repeated, tag = "2")]
141 pub schedules: ::prost::alloc::vec::Vec<Release>,
142}
143#[derive(Clone, PartialEq, ::prost::Message)]
149pub struct EncryptedAmount {
150 #[prost(bytes = "vec", tag = "1")]
151 pub value: ::prost::alloc::vec::Vec<u8>,
152}
153#[derive(Clone, PartialEq, ::prost::Message)]
154pub struct EncryptedBalance {
155 #[prost(message, optional, tag = "1")]
164 pub self_amount: ::core::option::Option<EncryptedAmount>,
165 #[prost(uint64, tag = "2")]
170 pub start_index: u64,
171 #[prost(message, optional, tag = "3")]
174 pub aggregated_amount: ::core::option::Option<EncryptedAmount>,
175 #[prost(uint32, optional, tag = "4")]
178 pub num_aggregated: ::core::option::Option<u32>,
179 #[prost(message, repeated, tag = "5")]
185 pub incoming_amounts: ::prost::alloc::vec::Vec<EncryptedAmount>,
186}
187#[derive(Clone, Copy, PartialEq, ::prost::Message)]
189pub struct DelegationTarget {
190 #[prost(oneof = "delegation_target::Target", tags = "1, 2")]
191 pub target: ::core::option::Option<delegation_target::Target>,
192}
193pub mod delegation_target {
195 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
196 pub enum Target {
197 #[prost(message, tag = "1")]
199 Passive(super::Empty),
200 #[prost(message, tag = "2")]
202 Baker(super::BakerId),
203 }
204}
205#[derive(Clone, PartialEq, ::prost::Message)]
207pub struct BakerElectionVerifyKey {
208 #[prost(bytes = "vec", tag = "1")]
209 pub value: ::prost::alloc::vec::Vec<u8>,
210}
211#[derive(Clone, PartialEq, ::prost::Message)]
214pub struct BakerSignatureVerifyKey {
215 #[prost(bytes = "vec", tag = "1")]
216 pub value: ::prost::alloc::vec::Vec<u8>,
217}
218#[derive(Clone, PartialEq, ::prost::Message)]
222pub struct BakerAggregationVerifyKey {
223 #[prost(bytes = "vec", tag = "1")]
224 pub value: ::prost::alloc::vec::Vec<u8>,
225}
226#[derive(Clone, PartialEq, ::prost::Message)]
228pub struct BakerInfo {
229 #[prost(message, optional, tag = "1")]
232 pub baker_id: ::core::option::Option<BakerId>,
233 #[prost(message, optional, tag = "2")]
235 pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
236 #[prost(message, optional, tag = "3")]
239 pub signature_key: ::core::option::Option<BakerSignatureVerifyKey>,
240 #[prost(message, optional, tag = "4")]
244 pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
245}
246#[derive(Clone, Copy, PartialEq, ::prost::Message)]
248pub struct StakePendingChange {
249 #[prost(oneof = "stake_pending_change::Change", tags = "1, 2")]
250 pub change: ::core::option::Option<stake_pending_change::Change>,
251}
252pub mod stake_pending_change {
254 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
255 pub struct Reduce {
256 #[prost(message, optional, tag = "1")]
257 pub new_stake: ::core::option::Option<super::Amount>,
258 #[prost(message, optional, tag = "2")]
260 pub effective_time: ::core::option::Option<super::Timestamp>,
261 }
262 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
263 pub enum Change {
264 #[prost(message, tag = "1")]
265 Reduce(Reduce),
266 #[prost(message, tag = "2")]
269 Remove(super::Timestamp),
270 }
271}
272#[derive(Clone, Copy, PartialEq, ::prost::Message)]
274pub struct AmountFraction {
275 #[prost(uint32, tag = "1")]
277 pub parts_per_hundred_thousand: u32,
278}
279#[derive(Clone, Copy, PartialEq, ::prost::Message)]
281pub struct CommissionRates {
282 #[prost(message, optional, tag = "1")]
284 pub finalization: ::core::option::Option<AmountFraction>,
285 #[prost(message, optional, tag = "2")]
287 pub baking: ::core::option::Option<AmountFraction>,
288 #[prost(message, optional, tag = "3")]
290 pub transaction: ::core::option::Option<AmountFraction>,
291}
292#[derive(Clone, PartialEq, ::prost::Message)]
295pub struct BakerPoolInfo {
296 #[prost(enumeration = "OpenStatus", tag = "1")]
298 pub open_status: i32,
299 #[prost(string, tag = "2")]
301 pub url: ::prost::alloc::string::String,
302 #[prost(message, optional, tag = "3")]
304 pub commission_rates: ::core::option::Option<CommissionRates>,
305}
306#[derive(Clone, PartialEq, ::prost::Message)]
309pub struct AccountStakingInfo {
310 #[prost(oneof = "account_staking_info::StakingInfo", tags = "1, 2")]
311 pub staking_info: ::core::option::Option<account_staking_info::StakingInfo>,
312}
313pub mod account_staking_info {
315 #[derive(Clone, PartialEq, ::prost::Message)]
316 pub struct Baker {
317 #[prost(message, optional, tag = "1")]
319 pub staked_amount: ::core::option::Option<super::Amount>,
320 #[prost(bool, tag = "2")]
323 pub restake_earnings: bool,
324 #[prost(message, optional, tag = "3")]
326 pub baker_info: ::core::option::Option<super::BakerInfo>,
327 #[prost(message, optional, tag = "4")]
329 pub pending_change: ::core::option::Option<super::StakePendingChange>,
330 #[prost(message, optional, tag = "5")]
333 pub pool_info: ::core::option::Option<super::BakerPoolInfo>,
334 #[prost(bool, tag = "6")]
340 pub is_suspended: bool,
341 }
342 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
343 pub struct Delegator {
344 #[prost(message, optional, tag = "1")]
346 pub staked_amount: ::core::option::Option<super::Amount>,
347 #[prost(bool, tag = "2")]
349 pub restake_earnings: bool,
350 #[prost(message, optional, tag = "3")]
352 pub target: ::core::option::Option<super::DelegationTarget>,
353 #[prost(message, optional, tag = "4")]
355 pub pending_change: ::core::option::Option<super::StakePendingChange>,
356 }
357 #[derive(Clone, PartialEq, ::prost::Oneof)]
358 pub enum StakingInfo {
359 #[prost(message, tag = "1")]
361 Baker(Baker),
362 #[prost(message, tag = "2")]
364 Delegator(Delegator),
365 }
366}
367#[derive(Clone, Copy, PartialEq, ::prost::Message)]
370pub struct SequenceNumber {
371 #[prost(uint64, tag = "1")]
373 pub value: u64,
374}
375#[derive(Clone, Copy, PartialEq, ::prost::Message)]
379pub struct UpdateSequenceNumber {
380 #[prost(uint64, tag = "1")]
382 pub value: u64,
383}
384#[derive(Clone, Copy, PartialEq, ::prost::Message)]
386pub struct Amount {
387 #[prost(uint64, tag = "1")]
388 pub value: u64,
389}
390#[derive(Clone, Copy, PartialEq, ::prost::Message)]
392pub struct CredentialIndex {
393 #[prost(uint32, tag = "1")]
394 pub value: u32,
395}
396#[derive(Clone, Copy, PartialEq, ::prost::Message)]
398pub struct SignatureThreshold {
399 #[prost(uint32, tag = "1")]
400 pub value: u32,
401}
402#[derive(Clone, Copy, PartialEq, ::prost::Message)]
404pub struct AccountThreshold {
405 #[prost(uint32, tag = "1")]
406 pub value: u32,
407}
408#[derive(Clone, PartialEq, ::prost::Message)]
410pub struct EncryptionKey {
411 #[prost(bytes = "vec", tag = "1")]
412 pub value: ::prost::alloc::vec::Vec<u8>,
413}
414#[derive(Clone, PartialEq, ::prost::Message)]
416pub struct Address {
417 #[prost(oneof = "address::Type", tags = "1, 2")]
418 pub r#type: ::core::option::Option<address::Type>,
419}
420pub mod address {
422 #[derive(Clone, PartialEq, ::prost::Oneof)]
423 pub enum Type {
424 #[prost(message, tag = "1")]
425 Account(super::AccountAddress),
426 #[prost(message, tag = "2")]
427 Contract(super::ContractAddress),
428 }
429}
430#[derive(Clone, PartialEq, ::prost::Message)]
432pub struct AccountVerifyKey {
433 #[prost(oneof = "account_verify_key::Key", tags = "1")]
434 pub key: ::core::option::Option<account_verify_key::Key>,
435}
436pub mod account_verify_key {
438 #[derive(Clone, PartialEq, ::prost::Oneof)]
439 pub enum Key {
440 #[prost(bytes, tag = "1")]
441 Ed25519Key(::prost::alloc::vec::Vec<u8>),
442 }
443}
444#[derive(Clone, PartialEq, ::prost::Message)]
446pub struct CredentialPublicKeys {
447 #[prost(map = "uint32, message", tag = "1")]
448 pub keys: ::std::collections::HashMap<u32, AccountVerifyKey>,
449 #[prost(message, optional, tag = "2")]
450 pub threshold: ::core::option::Option<SignatureThreshold>,
451}
452#[derive(Clone, PartialEq, ::prost::Message)]
455pub struct CredentialRegistrationId {
456 #[prost(bytes = "vec", tag = "1")]
457 pub value: ::prost::alloc::vec::Vec<u8>,
458}
459#[derive(Clone, Copy, PartialEq, ::prost::Message)]
462pub struct IdentityProviderIdentity {
463 #[prost(uint32, tag = "1")]
464 pub value: u32,
465}
466#[derive(Clone, Copy, PartialEq, ::prost::Message)]
468pub struct YearMonth {
469 #[prost(uint32, tag = "1")]
470 pub year: u32,
471 #[prost(uint32, tag = "2")]
472 pub month: u32,
473}
474#[derive(Clone, PartialEq, ::prost::Message)]
476pub struct Policy {
477 #[prost(message, optional, tag = "1")]
480 pub created_at: ::core::option::Option<YearMonth>,
481 #[prost(message, optional, tag = "2")]
484 pub valid_to: ::core::option::Option<YearMonth>,
485 #[prost(map = "uint32, bytes", tag = "3")]
489 pub attributes: ::std::collections::HashMap<u32, ::prost::alloc::vec::Vec<u8>>,
490}
491#[derive(Clone, PartialEq, ::prost::Message)]
493pub struct InitialCredentialValues {
494 #[prost(message, optional, tag = "1")]
496 pub keys: ::core::option::Option<CredentialPublicKeys>,
497 #[prost(message, optional, tag = "2")]
499 pub cred_id: ::core::option::Option<CredentialRegistrationId>,
500 #[prost(message, optional, tag = "3")]
503 pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
504 #[prost(message, optional, tag = "4")]
506 pub policy: ::core::option::Option<Policy>,
507}
508#[derive(Clone, PartialEq, ::prost::Message)]
511pub struct ChainArData {
512 #[prost(bytes = "vec", tag = "1")]
514 pub enc_id_cred_pub_share: ::prost::alloc::vec::Vec<u8>,
515}
516#[derive(Clone, Copy, PartialEq, ::prost::Message)]
519pub struct ArThreshold {
520 #[prost(uint32, tag = "1")]
521 pub value: u32,
522}
523#[derive(Clone, PartialEq, ::prost::Message)]
526pub struct Commitment {
527 #[prost(bytes = "vec", tag = "1")]
528 pub value: ::prost::alloc::vec::Vec<u8>,
529}
530#[derive(Clone, PartialEq, ::prost::Message)]
532pub struct CredentialCommitments {
533 #[prost(message, optional, tag = "1")]
535 pub prf: ::core::option::Option<Commitment>,
536 #[prost(message, optional, tag = "2")]
538 pub cred_counter: ::core::option::Option<Commitment>,
539 #[prost(message, optional, tag = "3")]
542 pub max_accounts: ::core::option::Option<Commitment>,
543 #[prost(map = "uint32, message", tag = "4")]
545 pub attributes: ::std::collections::HashMap<u32, Commitment>,
546 #[prost(message, repeated, tag = "5")]
550 pub id_cred_sec_sharing_coeff: ::prost::alloc::vec::Vec<Commitment>,
551}
552#[derive(Clone, PartialEq, ::prost::Message)]
554pub struct NormalCredentialValues {
555 #[prost(message, optional, tag = "1")]
557 pub keys: ::core::option::Option<CredentialPublicKeys>,
558 #[prost(message, optional, tag = "2")]
560 pub cred_id: ::core::option::Option<CredentialRegistrationId>,
561 #[prost(message, optional, tag = "3")]
564 pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
565 #[prost(message, optional, tag = "4")]
567 pub policy: ::core::option::Option<Policy>,
568 #[prost(message, optional, tag = "5")]
571 pub ar_threshold: ::core::option::Option<ArThreshold>,
572 #[prost(map = "uint32, message", tag = "6")]
574 pub ar_data: ::std::collections::HashMap<u32, ChainArData>,
575 #[prost(message, optional, tag = "7")]
577 pub commitments: ::core::option::Option<CredentialCommitments>,
578}
579#[derive(Clone, PartialEq, ::prost::Message)]
581pub struct AccountCredential {
582 #[prost(oneof = "account_credential::CredentialValues", tags = "1, 2")]
583 pub credential_values: ::core::option::Option<account_credential::CredentialValues>,
584}
585pub mod account_credential {
587 #[derive(Clone, PartialEq, ::prost::Oneof)]
588 pub enum CredentialValues {
589 #[prost(message, tag = "1")]
590 Initial(super::InitialCredentialValues),
591 #[prost(message, tag = "2")]
592 Normal(super::NormalCredentialValues),
593 }
594}
595#[derive(Clone, Copy, PartialEq, ::prost::Message)]
596pub struct Cooldown {
597 #[prost(message, optional, tag = "1")]
600 pub end_time: ::core::option::Option<Timestamp>,
601 #[prost(message, optional, tag = "2")]
604 pub amount: ::core::option::Option<Amount>,
605 #[prost(enumeration = "cooldown::CooldownStatus", tag = "3")]
607 pub status: i32,
608}
609pub mod cooldown {
611 #[derive(
618 Clone,
619 Copy,
620 Debug,
621 PartialEq,
622 Eq,
623 Hash,
624 PartialOrd,
625 Ord,
626 ::prost::Enumeration
627 )]
628 #[repr(i32)]
629 pub enum CooldownStatus {
630 Cooldown = 0,
633 PreCooldown = 1,
638 PrePreCooldown = 2,
642 }
643 impl CooldownStatus {
644 pub fn as_str_name(&self) -> &'static str {
649 match self {
650 Self::Cooldown => "COOLDOWN",
651 Self::PreCooldown => "PRE_COOLDOWN",
652 Self::PrePreCooldown => "PRE_PRE_COOLDOWN",
653 }
654 }
655 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
657 match value {
658 "COOLDOWN" => Some(Self::Cooldown),
659 "PRE_COOLDOWN" => Some(Self::PreCooldown),
660 "PRE_PRE_COOLDOWN" => Some(Self::PrePreCooldown),
661 _ => None,
662 }
663 }
664 }
665}
666#[derive(Clone, PartialEq, ::prost::Message)]
668pub struct TokenInfo {
669 #[prost(message, optional, tag = "1")]
671 pub token_id: ::core::option::Option<plt::TokenId>,
672 #[prost(message, optional, tag = "2")]
674 pub token_state: ::core::option::Option<plt::TokenState>,
675}
676#[derive(Clone, PartialEq, ::prost::Message)]
678pub struct AccountInfo {
679 #[prost(message, optional, tag = "1")]
681 pub sequence_number: ::core::option::Option<SequenceNumber>,
682 #[prost(message, optional, tag = "2")]
684 pub amount: ::core::option::Option<Amount>,
685 #[prost(message, optional, tag = "3")]
688 pub schedule: ::core::option::Option<ReleaseSchedule>,
689 #[prost(map = "uint32, message", tag = "4")]
694 pub creds: ::std::collections::HashMap<u32, AccountCredential>,
695 #[prost(message, optional, tag = "5")]
698 pub threshold: ::core::option::Option<AccountThreshold>,
699 #[prost(message, optional, tag = "6")]
701 pub encrypted_balance: ::core::option::Option<EncryptedBalance>,
702 #[prost(message, optional, tag = "7")]
704 pub encryption_key: ::core::option::Option<EncryptionKey>,
705 #[prost(message, optional, tag = "8")]
711 pub index: ::core::option::Option<AccountIndex>,
712 #[prost(message, optional, tag = "9")]
715 pub stake: ::core::option::Option<AccountStakingInfo>,
716 #[prost(message, optional, tag = "10")]
719 pub address: ::core::option::Option<AccountAddress>,
720 #[prost(message, repeated, tag = "11")]
725 pub cooldowns: ::prost::alloc::vec::Vec<Cooldown>,
726 #[prost(message, optional, tag = "12")]
732 pub available_balance: ::core::option::Option<Amount>,
733 #[prost(message, repeated, tag = "13")]
735 pub tokens: ::prost::alloc::vec::Vec<account_info::Token>,
736}
737pub mod account_info {
739 #[derive(Clone, PartialEq, ::prost::Message)]
741 pub struct Token {
742 #[prost(message, optional, tag = "1")]
744 pub token_id: ::core::option::Option<super::plt::TokenId>,
745 #[prost(message, optional, tag = "2")]
747 pub token_account_state: ::core::option::Option<super::plt::TokenAccountState>,
748 }
749}
750#[derive(Clone, PartialEq, ::prost::Message)]
752pub struct BlockHashInput {
753 #[prost(oneof = "block_hash_input::BlockHashInput", tags = "1, 2, 3, 4, 5")]
754 pub block_hash_input: ::core::option::Option<block_hash_input::BlockHashInput>,
755}
756pub mod block_hash_input {
758 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
760 pub struct RelativeHeight {
761 #[prost(message, optional, tag = "1")]
763 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
764 #[prost(message, optional, tag = "2")]
766 pub height: ::core::option::Option<super::BlockHeight>,
767 #[prost(bool, tag = "3")]
770 pub restrict: bool,
771 }
772 #[derive(Clone, PartialEq, ::prost::Oneof)]
773 pub enum BlockHashInput {
774 #[prost(message, tag = "1")]
776 Best(super::Empty),
777 #[prost(message, tag = "2")]
779 LastFinal(super::Empty),
780 #[prost(message, tag = "3")]
782 Given(super::BlockHash),
783 #[prost(message, tag = "4")]
785 AbsoluteHeight(super::AbsoluteBlockHeight),
786 #[prost(message, tag = "5")]
788 RelativeHeight(RelativeHeight),
789 }
790}
791#[derive(Clone, PartialEq, ::prost::Message)]
793pub struct EpochRequest {
794 #[prost(oneof = "epoch_request::EpochRequestInput", tags = "1, 2")]
795 pub epoch_request_input: ::core::option::Option<epoch_request::EpochRequestInput>,
796}
797pub mod epoch_request {
799 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
801 pub struct RelativeEpoch {
802 #[prost(message, optional, tag = "1")]
805 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
806 #[prost(message, optional, tag = "2")]
808 pub epoch: ::core::option::Option<super::Epoch>,
809 }
810 #[derive(Clone, PartialEq, ::prost::Oneof)]
811 pub enum EpochRequestInput {
812 #[prost(message, tag = "1")]
814 RelativeEpoch(RelativeEpoch),
815 #[prost(message, tag = "2")]
817 BlockHash(super::BlockHashInput),
818 }
819}
820#[derive(Clone, PartialEq, ::prost::Message)]
822pub struct AccountIdentifierInput {
823 #[prost(
824 oneof = "account_identifier_input::AccountIdentifierInput",
825 tags = "1, 2, 3"
826 )]
827 pub account_identifier_input: ::core::option::Option<
828 account_identifier_input::AccountIdentifierInput,
829 >,
830}
831pub mod account_identifier_input {
833 #[derive(Clone, PartialEq, ::prost::Oneof)]
834 pub enum AccountIdentifierInput {
835 #[prost(message, tag = "1")]
837 Address(super::AccountAddress),
838 #[prost(message, tag = "2")]
840 CredId(super::CredentialRegistrationId),
841 #[prost(message, tag = "3")]
843 AccountIndex(super::AccountIndex),
844 }
845}
846#[derive(Clone, PartialEq, ::prost::Message)]
848pub struct AccountInfoRequest {
849 #[prost(message, optional, tag = "1")]
851 pub block_hash: ::core::option::Option<BlockHashInput>,
852 #[prost(message, optional, tag = "2")]
854 pub account_identifier: ::core::option::Option<AccountIdentifierInput>,
855}
856#[derive(Clone, PartialEq, ::prost::Message)]
858pub struct TokenInfoRequest {
859 #[prost(message, optional, tag = "1")]
861 pub block_hash: ::core::option::Option<BlockHashInput>,
862 #[prost(message, optional, tag = "2")]
864 pub token_id: ::core::option::Option<plt::TokenId>,
865}
866#[derive(Clone, PartialEq, ::prost::Message)]
868pub struct FinalizedBlockInfo {
869 #[prost(message, optional, tag = "1")]
871 pub hash: ::core::option::Option<BlockHash>,
872 #[prost(message, optional, tag = "2")]
874 pub height: ::core::option::Option<AbsoluteBlockHeight>,
875}
876#[derive(Clone, PartialEq, ::prost::Message)]
878pub struct AncestorsRequest {
879 #[prost(message, optional, tag = "1")]
881 pub block_hash: ::core::option::Option<BlockHashInput>,
882 #[prost(uint64, tag = "2")]
884 pub amount: u64,
885}
886#[derive(Clone, PartialEq, ::prost::Message)]
888pub struct ModuleSourceRequest {
889 #[prost(message, optional, tag = "1")]
891 pub block_hash: ::core::option::Option<BlockHashInput>,
892 #[prost(message, optional, tag = "2")]
894 pub module_ref: ::core::option::Option<ModuleRef>,
895}
896#[derive(Clone, Copy, PartialEq, ::prost::Message)]
898pub struct ContractAddress {
899 #[prost(uint64, tag = "1")]
901 pub index: u64,
902 #[prost(uint64, tag = "2")]
905 pub subindex: u64,
906}
907#[derive(Clone, PartialEq, ::prost::Message)]
909pub struct InstanceInfoRequest {
910 #[prost(message, optional, tag = "1")]
912 pub block_hash: ::core::option::Option<BlockHashInput>,
913 #[prost(message, optional, tag = "2")]
915 pub address: ::core::option::Option<ContractAddress>,
916}
917#[derive(Clone, PartialEq, ::prost::Message)]
919pub struct InstanceInfo {
920 #[prost(oneof = "instance_info::Version", tags = "1, 2")]
922 pub version: ::core::option::Option<instance_info::Version>,
923}
924pub mod instance_info {
926 #[derive(Clone, PartialEq, ::prost::Message)]
928 pub struct V0 {
929 #[prost(message, optional, tag = "1")]
931 pub model: ::core::option::Option<super::ContractStateV0>,
932 #[prost(message, optional, tag = "2")]
934 pub owner: ::core::option::Option<super::AccountAddress>,
935 #[prost(message, optional, tag = "3")]
937 pub amount: ::core::option::Option<super::Amount>,
938 #[prost(message, repeated, tag = "4")]
940 pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
941 #[prost(message, optional, tag = "5")]
943 pub name: ::core::option::Option<super::InitName>,
944 #[prost(message, optional, tag = "6")]
946 pub source_module: ::core::option::Option<super::ModuleRef>,
947 }
948 #[derive(Clone, PartialEq, ::prost::Message)]
950 pub struct V1 {
951 #[prost(message, optional, tag = "2")]
953 pub owner: ::core::option::Option<super::AccountAddress>,
954 #[prost(message, optional, tag = "3")]
956 pub amount: ::core::option::Option<super::Amount>,
957 #[prost(message, repeated, tag = "4")]
959 pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
960 #[prost(message, optional, tag = "5")]
962 pub name: ::core::option::Option<super::InitName>,
963 #[prost(message, optional, tag = "6")]
965 pub source_module: ::core::option::Option<super::ModuleRef>,
966 }
967 #[derive(Clone, PartialEq, ::prost::Oneof)]
969 pub enum Version {
970 #[prost(message, tag = "1")]
971 V0(V0),
972 #[prost(message, tag = "2")]
973 V1(V1),
974 }
975}
976#[derive(Clone, PartialEq, ::prost::Message)]
978pub struct InstanceStateKvPair {
979 #[prost(bytes = "vec", tag = "1")]
980 pub key: ::prost::alloc::vec::Vec<u8>,
981 #[prost(bytes = "vec", tag = "2")]
982 pub value: ::prost::alloc::vec::Vec<u8>,
983}
984#[derive(Clone, PartialEq, ::prost::Message)]
986pub struct InstanceStateLookupRequest {
987 #[prost(message, optional, tag = "1")]
989 pub block_hash: ::core::option::Option<BlockHashInput>,
990 #[prost(message, optional, tag = "2")]
992 pub address: ::core::option::Option<ContractAddress>,
993 #[prost(bytes = "vec", tag = "3")]
995 pub key: ::prost::alloc::vec::Vec<u8>,
996}
997#[derive(Clone, PartialEq, ::prost::Message)]
1000pub struct InstanceStateValueAtKey {
1001 #[prost(bytes = "vec", tag = "1")]
1002 pub value: ::prost::alloc::vec::Vec<u8>,
1003}
1004#[derive(Clone, PartialEq, ::prost::Message)]
1008pub struct ReceiveName {
1009 #[prost(string, tag = "1")]
1010 pub value: ::prost::alloc::string::String,
1011}
1012#[derive(Clone, PartialEq, ::prost::Message)]
1017pub struct InitName {
1018 #[prost(string, tag = "1")]
1019 pub value: ::prost::alloc::string::String,
1020}
1021#[derive(Clone, PartialEq, ::prost::Message)]
1023pub struct Parameter {
1024 #[prost(bytes = "vec", tag = "1")]
1025 pub value: ::prost::alloc::vec::Vec<u8>,
1026}
1027#[derive(Clone, PartialEq, ::prost::Message)]
1029pub struct ContractStateV0 {
1030 #[prost(bytes = "vec", tag = "1")]
1031 pub value: ::prost::alloc::vec::Vec<u8>,
1032}
1033#[derive(Clone, PartialEq, ::prost::Message)]
1035pub struct BlockItemStatus {
1036 #[prost(oneof = "block_item_status::Status", tags = "1, 2, 3")]
1037 pub status: ::core::option::Option<block_item_status::Status>,
1038}
1039pub mod block_item_status {
1041 #[derive(Clone, PartialEq, ::prost::Message)]
1042 pub struct Committed {
1043 #[prost(message, repeated, tag = "1")]
1044 pub outcomes: ::prost::alloc::vec::Vec<super::BlockItemSummaryInBlock>,
1045 }
1046 #[derive(Clone, PartialEq, ::prost::Message)]
1047 pub struct Finalized {
1048 #[prost(message, optional, tag = "1")]
1049 pub outcome: ::core::option::Option<super::BlockItemSummaryInBlock>,
1050 }
1051 #[derive(Clone, PartialEq, ::prost::Oneof)]
1052 pub enum Status {
1053 #[prost(message, tag = "1")]
1055 Received(super::Empty),
1056 #[prost(message, tag = "2")]
1061 Committed(Committed),
1062 #[prost(message, tag = "3")]
1064 Finalized(Finalized),
1065 }
1066}
1067#[derive(Clone, PartialEq, ::prost::Message)]
1069pub struct BlockItemSummaryInBlock {
1070 #[prost(message, optional, tag = "1")]
1072 pub block_hash: ::core::option::Option<BlockHash>,
1073 #[prost(message, optional, tag = "2")]
1075 pub outcome: ::core::option::Option<BlockItemSummary>,
1076}
1077#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1080pub struct Energy {
1081 #[prost(uint64, tag = "1")]
1082 pub value: u64,
1083}
1084#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1086pub struct Slot {
1087 #[prost(uint64, tag = "1")]
1088 pub value: u64,
1089}
1090#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1092pub struct NextAccountSequenceNumber {
1093 #[prost(message, optional, tag = "1")]
1095 pub sequence_number: ::core::option::Option<SequenceNumber>,
1096 #[prost(bool, tag = "2")]
1098 pub all_final: bool,
1099}
1100#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1102pub struct Duration {
1103 #[prost(uint64, tag = "1")]
1104 pub value: u64,
1105}
1106#[derive(Clone, PartialEq, ::prost::Message)]
1110pub struct RejectReason {
1111 #[prost(
1112 oneof = "reject_reason::Reason",
1113 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56"
1114 )]
1115 pub reason: ::core::option::Option<reject_reason::Reason>,
1116}
1117pub mod reject_reason {
1119 #[derive(Clone, PartialEq, ::prost::Message)]
1120 pub struct InvalidInitMethod {
1121 #[prost(message, optional, tag = "1")]
1122 pub module_ref: ::core::option::Option<super::ModuleRef>,
1123 #[prost(message, optional, tag = "2")]
1124 pub init_name: ::core::option::Option<super::InitName>,
1125 }
1126 #[derive(Clone, PartialEq, ::prost::Message)]
1127 pub struct InvalidReceiveMethod {
1128 #[prost(message, optional, tag = "1")]
1129 pub module_ref: ::core::option::Option<super::ModuleRef>,
1130 #[prost(message, optional, tag = "2")]
1131 pub receive_name: ::core::option::Option<super::ReceiveName>,
1132 }
1133 #[derive(Clone, PartialEq, ::prost::Message)]
1134 pub struct AmountTooLarge {
1135 #[prost(message, optional, tag = "1")]
1136 pub address: ::core::option::Option<super::Address>,
1137 #[prost(message, optional, tag = "2")]
1138 pub amount: ::core::option::Option<super::Amount>,
1139 }
1140 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1141 pub struct RejectedInit {
1142 #[prost(int32, tag = "1")]
1143 pub reject_reason: i32,
1144 }
1145 #[derive(Clone, PartialEq, ::prost::Message)]
1146 pub struct RejectedReceive {
1147 #[prost(int32, tag = "1")]
1148 pub reject_reason: i32,
1149 #[prost(message, optional, tag = "2")]
1150 pub contract_address: ::core::option::Option<super::ContractAddress>,
1151 #[prost(message, optional, tag = "3")]
1152 pub receive_name: ::core::option::Option<super::ReceiveName>,
1153 #[prost(message, optional, tag = "4")]
1154 pub parameter: ::core::option::Option<super::Parameter>,
1155 }
1156 #[derive(Clone, PartialEq, ::prost::Message)]
1157 pub struct DuplicateCredIds {
1158 #[prost(message, repeated, tag = "1")]
1159 pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1160 }
1161 #[derive(Clone, PartialEq, ::prost::Message)]
1162 pub struct NonExistentCredIds {
1163 #[prost(message, repeated, tag = "1")]
1164 pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1165 }
1166 #[derive(Clone, PartialEq, ::prost::Oneof)]
1167 pub enum Reason {
1168 #[prost(message, tag = "1")]
1170 ModuleNotWf(super::Empty),
1171 #[prost(message, tag = "2")]
1173 ModuleHashAlreadyExists(super::ModuleRef),
1174 #[prost(message, tag = "3")]
1176 InvalidAccountReference(super::AccountAddress),
1177 #[prost(message, tag = "4")]
1179 InvalidInitMethod(InvalidInitMethod),
1180 #[prost(message, tag = "5")]
1182 InvalidReceiveMethod(InvalidReceiveMethod),
1183 #[prost(message, tag = "6")]
1185 InvalidModuleReference(super::ModuleRef),
1186 #[prost(message, tag = "7")]
1188 InvalidContractAddress(super::ContractAddress),
1189 #[prost(message, tag = "8")]
1192 RuntimeFailure(super::Empty),
1193 #[prost(message, tag = "9")]
1197 AmountTooLarge(AmountTooLarge),
1198 #[prost(message, tag = "10")]
1200 SerializationFailure(super::Empty),
1201 #[prost(message, tag = "11")]
1203 OutOfEnergy(super::Empty),
1204 #[prost(message, tag = "12")]
1206 RejectedInit(RejectedInit),
1207 #[prost(message, tag = "13")]
1209 RejectedReceive(RejectedReceive),
1210 #[prost(message, tag = "14")]
1212 InvalidProof(super::Empty),
1213 #[prost(message, tag = "15")]
1215 AlreadyABaker(super::BakerId),
1216 #[prost(message, tag = "16")]
1218 NotABaker(super::AccountAddress),
1219 #[prost(message, tag = "17")]
1221 InsufficientBalanceForBakerStake(super::Empty),
1222 #[prost(message, tag = "18")]
1224 StakeUnderMinimumThresholdForBaking(super::Empty),
1225 #[prost(message, tag = "19")]
1228 BakerInCooldown(super::Empty),
1229 #[prost(message, tag = "20")]
1231 DuplicateAggregationKey(super::BakerAggregationVerifyKey),
1232 #[prost(message, tag = "21")]
1234 NonExistentCredentialId(super::Empty),
1235 #[prost(message, tag = "22")]
1237 KeyIndexAlreadyInUse(super::Empty),
1238 #[prost(message, tag = "23")]
1241 InvalidAccountThreshold(super::Empty),
1242 #[prost(message, tag = "24")]
1245 InvalidCredentialKeySignThreshold(super::Empty),
1246 #[prost(message, tag = "25")]
1248 InvalidEncryptedAmountTransferProof(super::Empty),
1249 #[prost(message, tag = "26")]
1251 InvalidTransferToPublicProof(super::Empty),
1252 #[prost(message, tag = "27")]
1255 EncryptedAmountSelfTransfer(super::AccountAddress),
1256 #[prost(message, tag = "28")]
1259 InvalidIndexOnEncryptedTransfer(super::Empty),
1260 #[prost(message, tag = "29")]
1262 ZeroScheduledAmount(super::Empty),
1263 #[prost(message, tag = "30")]
1265 NonIncreasingSchedule(super::Empty),
1266 #[prost(message, tag = "31")]
1269 FirstScheduledReleaseExpired(super::Empty),
1270 #[prost(message, tag = "32")]
1272 ScheduledSelfTransfer(super::AccountAddress),
1273 #[prost(message, tag = "33")]
1276 InvalidCredentials(super::Empty),
1277 #[prost(message, tag = "34")]
1280 DuplicateCredIds(DuplicateCredIds),
1281 #[prost(message, tag = "35")]
1283 NonExistentCredIds(NonExistentCredIds),
1284 #[prost(message, tag = "36")]
1286 RemoveFirstCredential(super::Empty),
1287 #[prost(message, tag = "37")]
1290 CredentialHolderDidNotSign(super::Empty),
1291 #[prost(message, tag = "38")]
1294 NotAllowedMultipleCredentials(super::Empty),
1295 #[prost(message, tag = "39")]
1298 NotAllowedToReceiveEncrypted(super::Empty),
1299 #[prost(message, tag = "40")]
1302 NotAllowedToHandleEncrypted(super::Empty),
1303 #[prost(message, tag = "41")]
1306 MissingBakerAddParameters(super::Empty),
1307 #[prost(message, tag = "42")]
1309 FinalizationRewardCommissionNotInRange(super::Empty),
1310 #[prost(message, tag = "43")]
1312 BakingRewardCommissionNotInRange(super::Empty),
1313 #[prost(message, tag = "44")]
1315 TransactionFeeCommissionNotInRange(super::Empty),
1316 #[prost(message, tag = "45")]
1318 AlreadyADelegator(super::Empty),
1319 #[prost(message, tag = "46")]
1321 InsufficientBalanceForDelegationStake(super::Empty),
1322 #[prost(message, tag = "47")]
1325 MissingDelegationAddParameters(super::Empty),
1326 #[prost(message, tag = "48")]
1328 InsufficientDelegationStake(super::Empty),
1329 #[prost(message, tag = "49")]
1331 DelegatorInCooldown(super::Empty),
1332 #[prost(message, tag = "50")]
1334 NotADelegator(super::AccountAddress),
1335 #[prost(message, tag = "51")]
1337 DelegationTargetNotABaker(super::BakerId),
1338 #[prost(message, tag = "52")]
1341 StakeOverMaximumThresholdForPool(super::Empty),
1342 #[prost(message, tag = "53")]
1345 PoolWouldBecomeOverDelegated(super::Empty),
1346 #[prost(message, tag = "54")]
1348 PoolClosed(super::Empty),
1349 #[prost(message, tag = "55")]
1352 NonExistentTokenId(super::plt::TokenId),
1353 #[prost(message, tag = "56")]
1356 TokenUpdateTransactionFailed(super::plt::TokenModuleRejectReason),
1357 }
1358}
1359#[derive(Clone, PartialEq, ::prost::Message)]
1361pub struct ContractInitializedEvent {
1362 #[prost(enumeration = "ContractVersion", tag = "1")]
1364 pub contract_version: i32,
1365 #[prost(message, optional, tag = "2")]
1367 pub origin_ref: ::core::option::Option<ModuleRef>,
1368 #[prost(message, optional, tag = "3")]
1370 pub address: ::core::option::Option<ContractAddress>,
1371 #[prost(message, optional, tag = "4")]
1373 pub amount: ::core::option::Option<Amount>,
1374 #[prost(message, optional, tag = "5")]
1376 pub init_name: ::core::option::Option<InitName>,
1377 #[prost(message, repeated, tag = "6")]
1379 pub events: ::prost::alloc::vec::Vec<ContractEvent>,
1380 #[prost(message, optional, tag = "7")]
1382 pub parameter: ::core::option::Option<Parameter>,
1383}
1384#[derive(Clone, PartialEq, ::prost::Message)]
1386pub struct ContractEvent {
1387 #[prost(bytes = "vec", tag = "1")]
1388 pub value: ::prost::alloc::vec::Vec<u8>,
1389}
1390#[derive(Clone, PartialEq, ::prost::Message)]
1394pub struct InstanceUpdatedEvent {
1395 #[prost(enumeration = "ContractVersion", tag = "1")]
1397 pub contract_version: i32,
1398 #[prost(message, optional, tag = "2")]
1400 pub address: ::core::option::Option<ContractAddress>,
1401 #[prost(message, optional, tag = "3")]
1404 pub instigator: ::core::option::Option<Address>,
1405 #[prost(message, optional, tag = "4")]
1407 pub amount: ::core::option::Option<Amount>,
1408 #[prost(message, optional, tag = "5")]
1410 pub parameter: ::core::option::Option<Parameter>,
1411 #[prost(message, optional, tag = "6")]
1413 pub receive_name: ::core::option::Option<ReceiveName>,
1414 #[prost(message, repeated, tag = "7")]
1416 pub events: ::prost::alloc::vec::Vec<ContractEvent>,
1417}
1418#[derive(Clone, PartialEq, ::prost::Message)]
1421pub struct ContractTraceElement {
1422 #[prost(oneof = "contract_trace_element::Element", tags = "1, 2, 3, 4, 5")]
1423 pub element: ::core::option::Option<contract_trace_element::Element>,
1424}
1425pub mod contract_trace_element {
1427 #[derive(Clone, PartialEq, ::prost::Message)]
1429 pub struct Transferred {
1430 #[prost(message, optional, tag = "1")]
1432 pub sender: ::core::option::Option<super::ContractAddress>,
1433 #[prost(message, optional, tag = "2")]
1435 pub amount: ::core::option::Option<super::Amount>,
1436 #[prost(message, optional, tag = "3")]
1438 pub receiver: ::core::option::Option<super::AccountAddress>,
1439 }
1440 #[derive(Clone, PartialEq, ::prost::Message)]
1443 pub struct Interrupted {
1444 #[prost(message, optional, tag = "1")]
1446 pub address: ::core::option::Option<super::ContractAddress>,
1447 #[prost(message, repeated, tag = "2")]
1449 pub events: ::prost::alloc::vec::Vec<super::ContractEvent>,
1450 }
1451 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1453 pub struct Resumed {
1454 #[prost(message, optional, tag = "1")]
1456 pub address: ::core::option::Option<super::ContractAddress>,
1457 #[prost(bool, tag = "2")]
1459 pub success: bool,
1460 }
1461 #[derive(Clone, PartialEq, ::prost::Message)]
1463 pub struct Upgraded {
1464 #[prost(message, optional, tag = "1")]
1466 pub address: ::core::option::Option<super::ContractAddress>,
1467 #[prost(message, optional, tag = "2")]
1469 pub from: ::core::option::Option<super::ModuleRef>,
1470 #[prost(message, optional, tag = "3")]
1472 pub to: ::core::option::Option<super::ModuleRef>,
1473 }
1474 #[derive(Clone, PartialEq, ::prost::Oneof)]
1475 pub enum Element {
1476 #[prost(message, tag = "1")]
1478 Updated(super::InstanceUpdatedEvent),
1479 #[prost(message, tag = "2")]
1481 Transferred(Transferred),
1482 #[prost(message, tag = "3")]
1485 Interrupted(Interrupted),
1486 #[prost(message, tag = "4")]
1488 Resumed(Resumed),
1489 #[prost(message, tag = "5")]
1491 Upgraded(Upgraded),
1492 }
1493}
1494#[derive(Clone, PartialEq, ::prost::Message)]
1496pub struct BakerKeysEvent {
1497 #[prost(message, optional, tag = "1")]
1499 pub baker_id: ::core::option::Option<BakerId>,
1500 #[prost(message, optional, tag = "2")]
1502 pub account: ::core::option::Option<AccountAddress>,
1503 #[prost(message, optional, tag = "3")]
1505 pub sign_key: ::core::option::Option<BakerSignatureVerifyKey>,
1506 #[prost(message, optional, tag = "4")]
1509 pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
1510 #[prost(message, optional, tag = "5")]
1512 pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
1513}
1514#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1515pub struct BakerStakeUpdatedData {
1516 #[prost(message, optional, tag = "1")]
1518 pub baker_id: ::core::option::Option<BakerId>,
1519 #[prost(message, optional, tag = "2")]
1521 pub new_stake: ::core::option::Option<Amount>,
1522 #[prost(bool, tag = "3")]
1525 pub increased: bool,
1526}
1527#[derive(Clone, PartialEq, ::prost::Message)]
1529pub struct EncryptedAmountRemovedEvent {
1530 #[prost(message, optional, tag = "1")]
1532 pub account: ::core::option::Option<AccountAddress>,
1533 #[prost(message, optional, tag = "2")]
1535 pub new_amount: ::core::option::Option<EncryptedAmount>,
1536 #[prost(message, optional, tag = "3")]
1538 pub input_amount: ::core::option::Option<EncryptedAmount>,
1539 #[prost(uint64, tag = "4")]
1541 pub up_to_index: u64,
1542}
1543#[derive(Clone, PartialEq, ::prost::Message)]
1545pub struct NewEncryptedAmountEvent {
1546 #[prost(message, optional, tag = "1")]
1548 pub receiver: ::core::option::Option<AccountAddress>,
1549 #[prost(uint64, tag = "2")]
1551 pub new_index: u64,
1552 #[prost(message, optional, tag = "3")]
1554 pub encrypted_amount: ::core::option::Option<EncryptedAmount>,
1555}
1556#[derive(Clone, PartialEq, ::prost::Message)]
1557pub struct EncryptedSelfAmountAddedEvent {
1558 #[prost(message, optional, tag = "1")]
1560 pub account: ::core::option::Option<AccountAddress>,
1561 #[prost(message, optional, tag = "2")]
1563 pub new_amount: ::core::option::Option<EncryptedAmount>,
1564 #[prost(message, optional, tag = "3")]
1566 pub amount: ::core::option::Option<Amount>,
1567}
1568#[derive(Clone, PartialEq, ::prost::Message)]
1570pub struct RegisteredData {
1571 #[prost(bytes = "vec", tag = "1")]
1572 pub value: ::prost::alloc::vec::Vec<u8>,
1573}
1574#[derive(Clone, PartialEq, ::prost::Message)]
1576pub struct BakerEvent {
1577 #[prost(
1578 oneof = "baker_event::Event",
1579 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14"
1580 )]
1581 pub event: ::core::option::Option<baker_event::Event>,
1582}
1583pub mod baker_event {
1585 #[derive(Clone, PartialEq, ::prost::Message)]
1587 pub struct BakerAdded {
1588 #[prost(message, optional, tag = "1")]
1590 pub keys_event: ::core::option::Option<super::BakerKeysEvent>,
1591 #[prost(message, optional, tag = "2")]
1594 pub stake: ::core::option::Option<super::Amount>,
1595 #[prost(bool, tag = "3")]
1598 pub restake_earnings: bool,
1599 }
1600 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1602 pub struct BakerStakeIncreased {
1603 #[prost(message, optional, tag = "1")]
1605 pub baker_id: ::core::option::Option<super::BakerId>,
1606 #[prost(message, optional, tag = "2")]
1608 pub new_stake: ::core::option::Option<super::Amount>,
1609 }
1610 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1611 pub struct BakerStakeDecreased {
1612 #[prost(message, optional, tag = "1")]
1614 pub baker_id: ::core::option::Option<super::BakerId>,
1615 #[prost(message, optional, tag = "2")]
1617 pub new_stake: ::core::option::Option<super::Amount>,
1618 }
1619 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1620 pub struct BakerRestakeEarningsUpdated {
1621 #[prost(message, optional, tag = "1")]
1623 pub baker_id: ::core::option::Option<super::BakerId>,
1624 #[prost(bool, tag = "2")]
1626 pub restake_earnings: bool,
1627 }
1628 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1630 pub struct BakerSetOpenStatus {
1631 #[prost(message, optional, tag = "1")]
1633 pub baker_id: ::core::option::Option<super::BakerId>,
1634 #[prost(enumeration = "super::OpenStatus", tag = "2")]
1636 pub open_status: i32,
1637 }
1638 #[derive(Clone, PartialEq, ::prost::Message)]
1640 pub struct BakerSetMetadataUrl {
1641 #[prost(message, optional, tag = "1")]
1643 pub baker_id: ::core::option::Option<super::BakerId>,
1644 #[prost(string, tag = "2")]
1646 pub url: ::prost::alloc::string::String,
1647 }
1648 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1650 pub struct BakerSetTransactionFeeCommission {
1651 #[prost(message, optional, tag = "1")]
1653 pub baker_id: ::core::option::Option<super::BakerId>,
1654 #[prost(message, optional, tag = "2")]
1656 pub transaction_fee_commission: ::core::option::Option<super::AmountFraction>,
1657 }
1658 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1660 pub struct BakerSetBakingRewardCommission {
1661 #[prost(message, optional, tag = "1")]
1663 pub baker_id: ::core::option::Option<super::BakerId>,
1664 #[prost(message, optional, tag = "2")]
1666 pub baking_reward_commission: ::core::option::Option<super::AmountFraction>,
1667 }
1668 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1670 pub struct BakerSetFinalizationRewardCommission {
1671 #[prost(message, optional, tag = "1")]
1673 pub baker_id: ::core::option::Option<super::BakerId>,
1674 #[prost(message, optional, tag = "2")]
1676 pub finalization_reward_commission: ::core::option::Option<
1677 super::AmountFraction,
1678 >,
1679 }
1680 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1682 pub struct DelegationRemoved {
1683 #[prost(message, optional, tag = "1")]
1685 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1686 }
1687 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1689 pub struct BakerSuspended {
1690 #[prost(message, optional, tag = "1")]
1692 pub baker_id: ::core::option::Option<super::BakerId>,
1693 }
1694 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1696 pub struct BakerResumed {
1697 #[prost(message, optional, tag = "1")]
1699 pub baker_id: ::core::option::Option<super::BakerId>,
1700 }
1701 #[derive(Clone, PartialEq, ::prost::Oneof)]
1702 pub enum Event {
1703 #[prost(message, tag = "1")]
1705 BakerAdded(BakerAdded),
1706 #[prost(message, tag = "2")]
1708 BakerRemoved(super::BakerId),
1709 #[prost(message, tag = "3")]
1711 BakerStakeIncreased(BakerStakeIncreased),
1712 #[prost(message, tag = "4")]
1714 BakerStakeDecreased(BakerStakeDecreased),
1715 #[prost(message, tag = "5")]
1717 BakerRestakeEarningsUpdated(BakerRestakeEarningsUpdated),
1718 #[prost(message, tag = "6")]
1720 BakerKeysUpdated(super::BakerKeysEvent),
1721 #[prost(message, tag = "7")]
1723 BakerSetOpenStatus(BakerSetOpenStatus),
1724 #[prost(message, tag = "8")]
1726 BakerSetMetadataUrl(BakerSetMetadataUrl),
1727 #[prost(message, tag = "9")]
1729 BakerSetTransactionFeeCommission(BakerSetTransactionFeeCommission),
1730 #[prost(message, tag = "10")]
1732 BakerSetBakingRewardCommission(BakerSetBakingRewardCommission),
1733 #[prost(message, tag = "11")]
1735 BakerSetFinalizationRewardCommission(BakerSetFinalizationRewardCommission),
1736 #[prost(message, tag = "12")]
1738 DelegationRemoved(DelegationRemoved),
1739 #[prost(message, tag = "13")]
1741 BakerSuspended(BakerSuspended),
1742 #[prost(message, tag = "14")]
1744 BakerResumed(BakerResumed),
1745 }
1746}
1747#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1749pub struct DelegatorId {
1750 #[prost(message, optional, tag = "1")]
1751 pub id: ::core::option::Option<AccountIndex>,
1752}
1753#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1754pub struct DelegationEvent {
1755 #[prost(oneof = "delegation_event::Event", tags = "1, 2, 3, 4, 5, 6, 7")]
1756 pub event: ::core::option::Option<delegation_event::Event>,
1757}
1758pub mod delegation_event {
1760 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1761 pub struct DelegationStakeIncreased {
1762 #[prost(message, optional, tag = "1")]
1764 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1765 #[prost(message, optional, tag = "2")]
1767 pub new_stake: ::core::option::Option<super::Amount>,
1768 }
1769 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1770 pub struct DelegationStakeDecreased {
1771 #[prost(message, optional, tag = "1")]
1773 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1774 #[prost(message, optional, tag = "2")]
1776 pub new_stake: ::core::option::Option<super::Amount>,
1777 }
1778 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1779 pub struct DelegationSetRestakeEarnings {
1780 #[prost(message, optional, tag = "1")]
1782 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1783 #[prost(bool, tag = "2")]
1785 pub restake_earnings: bool,
1786 }
1787 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1788 pub struct DelegationSetDelegationTarget {
1789 #[prost(message, optional, tag = "1")]
1791 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1792 #[prost(message, optional, tag = "2")]
1794 pub delegation_target: ::core::option::Option<super::DelegationTarget>,
1795 }
1796 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1797 pub struct BakerRemoved {
1798 #[prost(message, optional, tag = "1")]
1800 pub baker_id: ::core::option::Option<super::BakerId>,
1801 }
1802 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1803 pub enum Event {
1804 #[prost(message, tag = "1")]
1806 DelegationStakeIncreased(DelegationStakeIncreased),
1807 #[prost(message, tag = "2")]
1809 DelegationStakeDecreased(DelegationStakeDecreased),
1810 #[prost(message, tag = "3")]
1812 DelegationSetRestakeEarnings(DelegationSetRestakeEarnings),
1813 #[prost(message, tag = "4")]
1815 DelegationSetDelegationTarget(DelegationSetDelegationTarget),
1816 #[prost(message, tag = "5")]
1818 DelegationAdded(super::DelegatorId),
1819 #[prost(message, tag = "6")]
1821 DelegationRemoved(super::DelegatorId),
1822 #[prost(message, tag = "7")]
1824 BakerRemoved(BakerRemoved),
1825 }
1826}
1827#[derive(Clone, PartialEq, ::prost::Message)]
1830pub struct AccountTransactionEffects {
1831 #[prost(
1832 oneof = "account_transaction_effects::Effect",
1833 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20"
1834 )]
1835 pub effect: ::core::option::Option<account_transaction_effects::Effect>,
1836}
1837pub mod account_transaction_effects {
1839 #[derive(Clone, PartialEq, ::prost::Message)]
1842 pub struct None {
1843 #[prost(enumeration = "super::TransactionType", optional, tag = "1")]
1846 pub transaction_type: ::core::option::Option<i32>,
1847 #[prost(message, optional, tag = "2")]
1849 pub reject_reason: ::core::option::Option<super::RejectReason>,
1850 }
1851 #[derive(Clone, PartialEq, ::prost::Message)]
1854 pub struct ContractUpdateIssued {
1855 #[prost(message, repeated, tag = "1")]
1856 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
1857 }
1858 #[derive(Clone, PartialEq, ::prost::Message)]
1861 pub struct AccountTransfer {
1862 #[prost(message, optional, tag = "1")]
1864 pub amount: ::core::option::Option<super::Amount>,
1865 #[prost(message, optional, tag = "2")]
1867 pub receiver: ::core::option::Option<super::AccountAddress>,
1868 #[prost(message, optional, tag = "3")]
1870 pub memo: ::core::option::Option<super::Memo>,
1871 }
1872 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1875 pub struct BakerStakeUpdated {
1876 #[prost(message, optional, tag = "1")]
1879 pub update: ::core::option::Option<super::BakerStakeUpdatedData>,
1880 }
1881 #[derive(Clone, PartialEq, ::prost::Message)]
1884 pub struct EncryptedAmountTransferred {
1885 #[prost(message, optional, tag = "1")]
1886 pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
1887 #[prost(message, optional, tag = "2")]
1888 pub added: ::core::option::Option<super::NewEncryptedAmountEvent>,
1889 #[prost(message, optional, tag = "3")]
1890 pub memo: ::core::option::Option<super::Memo>,
1891 }
1892 #[derive(Clone, PartialEq, ::prost::Message)]
1895 pub struct TransferredToPublic {
1896 #[prost(message, optional, tag = "1")]
1897 pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
1898 #[prost(message, optional, tag = "2")]
1899 pub amount: ::core::option::Option<super::Amount>,
1900 }
1901 #[derive(Clone, PartialEq, ::prost::Message)]
1904 pub struct TransferredWithSchedule {
1905 #[prost(message, optional, tag = "1")]
1907 pub receiver: ::core::option::Option<super::AccountAddress>,
1908 #[prost(message, repeated, tag = "2")]
1910 pub amount: ::prost::alloc::vec::Vec<super::NewRelease>,
1911 #[prost(message, optional, tag = "3")]
1913 pub memo: ::core::option::Option<super::Memo>,
1914 }
1915 #[derive(Clone, PartialEq, ::prost::Message)]
1918 pub struct CredentialsUpdated {
1919 #[prost(message, repeated, tag = "1")]
1921 pub new_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1922 #[prost(message, repeated, tag = "2")]
1924 pub removed_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1925 #[prost(message, optional, tag = "3")]
1927 pub new_threshold: ::core::option::Option<super::AccountThreshold>,
1928 }
1929 #[derive(Clone, PartialEq, ::prost::Message)]
1932 pub struct BakerConfigured {
1933 #[prost(message, repeated, tag = "1")]
1934 pub events: ::prost::alloc::vec::Vec<super::BakerEvent>,
1935 }
1936 #[derive(Clone, PartialEq, ::prost::Message)]
1939 pub struct DelegationConfigured {
1940 #[prost(message, repeated, tag = "1")]
1941 pub events: ::prost::alloc::vec::Vec<super::DelegationEvent>,
1942 }
1943 #[derive(Clone, PartialEq, ::prost::Oneof)]
1944 pub enum Effect {
1945 #[prost(message, tag = "1")]
1948 None(None),
1949 #[prost(message, tag = "2")]
1951 ModuleDeployed(super::ModuleRef),
1952 #[prost(message, tag = "3")]
1954 ContractInitialized(super::ContractInitializedEvent),
1955 #[prost(message, tag = "4")]
1957 ContractUpdateIssued(ContractUpdateIssued),
1958 #[prost(message, tag = "5")]
1960 AccountTransfer(AccountTransfer),
1961 #[prost(message, tag = "6")]
1963 BakerAdded(super::baker_event::BakerAdded),
1964 #[prost(message, tag = "7")]
1966 BakerRemoved(super::BakerId),
1967 #[prost(message, tag = "8")]
1969 BakerStakeUpdated(BakerStakeUpdated),
1970 #[prost(message, tag = "9")]
1972 BakerRestakeEarningsUpdated(super::baker_event::BakerRestakeEarningsUpdated),
1973 #[prost(message, tag = "10")]
1975 BakerKeysUpdated(super::BakerKeysEvent),
1976 #[prost(message, tag = "11")]
1978 EncryptedAmountTransferred(EncryptedAmountTransferred),
1979 #[prost(message, tag = "12")]
1982 TransferredToEncrypted(super::EncryptedSelfAmountAddedEvent),
1983 #[prost(message, tag = "13")]
1985 TransferredToPublic(TransferredToPublic),
1986 #[prost(message, tag = "14")]
1988 TransferredWithSchedule(TransferredWithSchedule),
1989 #[prost(message, tag = "15")]
1991 CredentialKeysUpdated(super::CredentialRegistrationId),
1992 #[prost(message, tag = "16")]
1994 CredentialsUpdated(CredentialsUpdated),
1995 #[prost(message, tag = "17")]
1997 DataRegistered(super::RegisteredData),
1998 #[prost(message, tag = "18")]
2000 BakerConfigured(BakerConfigured),
2001 #[prost(message, tag = "19")]
2003 DelegationConfigured(DelegationConfigured),
2004 #[prost(message, tag = "20")]
2006 TokenUpdateEffect(super::plt::TokenEffect),
2007 }
2008}
2009#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2011pub struct ElectionDifficulty {
2012 #[prost(message, optional, tag = "1")]
2013 pub value: ::core::option::Option<AmountFraction>,
2014}
2015#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2017pub struct TimeoutParameters {
2018 #[prost(message, optional, tag = "1")]
2020 pub timeout_base: ::core::option::Option<Duration>,
2021 #[prost(message, optional, tag = "2")]
2023 pub timeout_increase: ::core::option::Option<Ratio>,
2024 #[prost(message, optional, tag = "3")]
2026 pub timeout_decrease: ::core::option::Option<Ratio>,
2027}
2028#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2030pub struct FinalizationCommitteeParameters {
2031 #[prost(uint32, tag = "1")]
2033 pub minimum_finalizers: u32,
2034 #[prost(uint32, tag = "2")]
2036 pub maximum_finalizers: u32,
2037 #[prost(message, optional, tag = "3")]
2040 pub finalizer_relative_stake_threshold: ::core::option::Option<AmountFraction>,
2041}
2042#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2043pub struct ValidatorScoreParameters {
2044 #[prost(uint64, tag = "1")]
2046 pub maximum_missed_rounds: u64,
2047}
2048#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2050pub struct ConsensusParametersV1 {
2051 #[prost(message, optional, tag = "1")]
2053 pub timeout_parameters: ::core::option::Option<TimeoutParameters>,
2054 #[prost(message, optional, tag = "2")]
2056 pub min_block_time: ::core::option::Option<Duration>,
2057 #[prost(message, optional, tag = "3")]
2059 pub block_energy_limit: ::core::option::Option<Energy>,
2060}
2061#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2063pub struct ExchangeRate {
2064 #[prost(message, optional, tag = "1")]
2065 pub value: ::core::option::Option<Ratio>,
2066}
2067#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2069pub struct Ratio {
2070 #[prost(uint64, tag = "1")]
2072 pub numerator: u64,
2073 #[prost(uint64, tag = "2")]
2075 pub denominator: u64,
2076}
2077#[derive(Clone, PartialEq, ::prost::Message)]
2079pub struct UpdatePublicKey {
2080 #[prost(bytes = "vec", tag = "1")]
2081 pub value: ::prost::alloc::vec::Vec<u8>,
2082}
2083#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2085pub struct UpdateKeysThreshold {
2086 #[prost(uint32, tag = "1")]
2088 pub value: u32,
2089}
2090#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2092pub struct UpdateKeysIndex {
2093 #[prost(uint32, tag = "1")]
2094 pub value: u32,
2095}
2096#[derive(Clone, PartialEq, ::prost::Message)]
2098pub struct HigherLevelKeys {
2099 #[prost(message, repeated, tag = "1")]
2101 pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
2102 #[prost(message, optional, tag = "2")]
2104 pub threshold: ::core::option::Option<UpdateKeysThreshold>,
2105}
2106#[derive(Clone, PartialEq, ::prost::Message)]
2110pub struct AccessStructure {
2111 #[prost(message, repeated, tag = "1")]
2113 pub access_public_keys: ::prost::alloc::vec::Vec<UpdateKeysIndex>,
2114 #[prost(message, optional, tag = "2")]
2116 pub access_threshold: ::core::option::Option<UpdateKeysThreshold>,
2117}
2118#[derive(Clone, PartialEq, ::prost::Message)]
2122pub struct AuthorizationsV0 {
2123 #[prost(message, repeated, tag = "1")]
2125 pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
2126 #[prost(message, optional, tag = "2")]
2128 pub emergency: ::core::option::Option<AccessStructure>,
2129 #[prost(message, optional, tag = "3")]
2131 pub protocol: ::core::option::Option<AccessStructure>,
2132 #[prost(message, optional, tag = "4")]
2135 pub parameter_consensus: ::core::option::Option<AccessStructure>,
2136 #[prost(message, optional, tag = "5")]
2138 pub parameter_euro_per_energy: ::core::option::Option<AccessStructure>,
2139 #[prost(message, optional, tag = "6")]
2141 pub parameter_micro_ccd_per_euro: ::core::option::Option<AccessStructure>,
2142 #[prost(message, optional, tag = "7")]
2144 pub parameter_foundation_account: ::core::option::Option<AccessStructure>,
2145 #[prost(message, optional, tag = "8")]
2147 pub parameter_mint_distribution: ::core::option::Option<AccessStructure>,
2148 #[prost(message, optional, tag = "9")]
2150 pub parameter_transaction_fee_distribution: ::core::option::Option<AccessStructure>,
2151 #[prost(message, optional, tag = "10")]
2153 pub parameter_gas_rewards: ::core::option::Option<AccessStructure>,
2154 #[prost(message, optional, tag = "11")]
2157 pub pool_parameters: ::core::option::Option<AccessStructure>,
2158 #[prost(message, optional, tag = "12")]
2160 pub add_anonymity_revoker: ::core::option::Option<AccessStructure>,
2161 #[prost(message, optional, tag = "13")]
2163 pub add_identity_provider: ::core::option::Option<AccessStructure>,
2164}
2165#[derive(Clone, PartialEq, ::prost::Message)]
2169pub struct AuthorizationsV1 {
2170 #[prost(message, optional, tag = "1")]
2171 pub v0: ::core::option::Option<AuthorizationsV0>,
2172 #[prost(message, optional, tag = "2")]
2174 pub parameter_cooldown: ::core::option::Option<AccessStructure>,
2175 #[prost(message, optional, tag = "3")]
2177 pub parameter_time: ::core::option::Option<AccessStructure>,
2178 #[prost(message, optional, tag = "4")]
2181 pub create_plt: ::core::option::Option<AccessStructure>,
2182}
2183#[derive(Clone, PartialEq, ::prost::Message)]
2186pub struct Description {
2187 #[prost(string, tag = "1")]
2189 pub name: ::prost::alloc::string::String,
2190 #[prost(string, tag = "2")]
2192 pub url: ::prost::alloc::string::String,
2193 #[prost(string, tag = "3")]
2195 pub description: ::prost::alloc::string::String,
2196}
2197#[derive(Clone, PartialEq, ::prost::Message)]
2200pub struct ArInfo {
2201 #[prost(message, optional, tag = "1")]
2203 pub identity: ::core::option::Option<ar_info::ArIdentity>,
2204 #[prost(message, optional, tag = "2")]
2206 pub description: ::core::option::Option<Description>,
2207 #[prost(message, optional, tag = "3")]
2209 pub public_key: ::core::option::Option<ar_info::ArPublicKey>,
2210}
2211pub mod ar_info {
2213 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2216 pub struct ArIdentity {
2217 #[prost(uint32, tag = "1")]
2218 pub value: u32,
2219 }
2220 #[derive(Clone, PartialEq, ::prost::Message)]
2222 pub struct ArPublicKey {
2223 #[prost(bytes = "vec", tag = "1")]
2224 pub value: ::prost::alloc::vec::Vec<u8>,
2225 }
2226}
2227#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2231pub struct IpIdentity {
2232 #[prost(uint32, tag = "1")]
2233 pub value: u32,
2234}
2235#[derive(Clone, PartialEq, ::prost::Message)]
2237pub struct IpInfo {
2238 #[prost(message, optional, tag = "1")]
2240 pub identity: ::core::option::Option<IpIdentity>,
2241 #[prost(message, optional, tag = "2")]
2243 pub description: ::core::option::Option<Description>,
2244 #[prost(message, optional, tag = "3")]
2246 pub verify_key: ::core::option::Option<ip_info::IpVerifyKey>,
2247 #[prost(message, optional, tag = "4")]
2249 pub cdi_verify_key: ::core::option::Option<ip_info::IpCdiVerifyKey>,
2250}
2251pub mod ip_info {
2253 #[derive(Clone, PartialEq, ::prost::Message)]
2255 pub struct IpVerifyKey {
2256 #[prost(bytes = "vec", tag = "1")]
2257 pub value: ::prost::alloc::vec::Vec<u8>,
2258 }
2259 #[derive(Clone, PartialEq, ::prost::Message)]
2261 pub struct IpCdiVerifyKey {
2262 #[prost(bytes = "vec", tag = "1")]
2263 pub value: ::prost::alloc::vec::Vec<u8>,
2264 }
2265}
2266#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2268pub struct DurationSeconds {
2269 #[prost(uint64, tag = "1")]
2270 pub value: u64,
2271}
2272#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2274pub struct InclusiveRangeAmountFraction {
2275 #[prost(message, optional, tag = "1")]
2276 pub min: ::core::option::Option<AmountFraction>,
2277 #[prost(message, optional, tag = "2")]
2278 pub max: ::core::option::Option<AmountFraction>,
2279}
2280#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2282pub struct CommissionRanges {
2283 #[prost(message, optional, tag = "1")]
2285 pub finalization: ::core::option::Option<InclusiveRangeAmountFraction>,
2286 #[prost(message, optional, tag = "2")]
2288 pub baking: ::core::option::Option<InclusiveRangeAmountFraction>,
2289 #[prost(message, optional, tag = "3")]
2291 pub transaction: ::core::option::Option<InclusiveRangeAmountFraction>,
2292}
2293#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2296pub struct CapitalBound {
2297 #[prost(message, optional, tag = "1")]
2298 pub value: ::core::option::Option<AmountFraction>,
2299}
2300#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2302pub struct LeverageFactor {
2303 #[prost(message, optional, tag = "1")]
2304 pub value: ::core::option::Option<Ratio>,
2305}
2306#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2308pub struct Epoch {
2309 #[prost(uint64, tag = "1")]
2310 pub value: u64,
2311}
2312#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2314pub struct Round {
2315 #[prost(uint64, tag = "1")]
2316 pub value: u64,
2317}
2318#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2321pub struct RewardPeriodLength {
2322 #[prost(message, optional, tag = "1")]
2323 pub value: ::core::option::Option<Epoch>,
2324}
2325#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2328pub struct MintRate {
2329 #[prost(uint32, tag = "1")]
2330 pub mantissa: u32,
2331 #[prost(uint32, tag = "2")]
2333 pub exponent: u32,
2334}
2335#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2336pub struct CooldownParametersCpv1 {
2337 #[prost(message, optional, tag = "1")]
2340 pub pool_owner_cooldown: ::core::option::Option<DurationSeconds>,
2341 #[prost(message, optional, tag = "2")]
2344 pub delegator_cooldown: ::core::option::Option<DurationSeconds>,
2345}
2346#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2348pub struct PoolParametersCpv1 {
2349 #[prost(message, optional, tag = "1")]
2351 pub passive_finalization_commission: ::core::option::Option<AmountFraction>,
2352 #[prost(message, optional, tag = "2")]
2354 pub passive_baking_commission: ::core::option::Option<AmountFraction>,
2355 #[prost(message, optional, tag = "3")]
2357 pub passive_transaction_commission: ::core::option::Option<AmountFraction>,
2358 #[prost(message, optional, tag = "4")]
2360 pub commission_bounds: ::core::option::Option<CommissionRanges>,
2361 #[prost(message, optional, tag = "5")]
2363 pub minimum_equity_capital: ::core::option::Option<Amount>,
2364 #[prost(message, optional, tag = "6")]
2367 pub capital_bound: ::core::option::Option<CapitalBound>,
2368 #[prost(message, optional, tag = "7")]
2371 pub leverage_bound: ::core::option::Option<LeverageFactor>,
2372}
2373#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2377pub struct TimeParametersCpv1 {
2378 #[prost(message, optional, tag = "1")]
2379 pub reward_period_length: ::core::option::Option<RewardPeriodLength>,
2380 #[prost(message, optional, tag = "2")]
2381 pub mint_per_payday: ::core::option::Option<MintRate>,
2382}
2383#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2385pub struct MintDistributionCpv1 {
2386 #[prost(message, optional, tag = "1")]
2387 pub baking_reward: ::core::option::Option<AmountFraction>,
2388 #[prost(message, optional, tag = "2")]
2389 pub finalization_reward: ::core::option::Option<AmountFraction>,
2390}
2391#[derive(Clone, PartialEq, ::prost::Message)]
2392pub struct ProtocolUpdate {
2393 #[prost(string, tag = "1")]
2395 pub message: ::prost::alloc::string::String,
2396 #[prost(string, tag = "2")]
2398 pub specification_url: ::prost::alloc::string::String,
2399 #[prost(message, optional, tag = "3")]
2401 pub specification_hash: ::core::option::Option<Sha256Hash>,
2402 #[prost(bytes = "vec", tag = "4")]
2404 pub specification_auxiliary_data: ::prost::alloc::vec::Vec<u8>,
2405}
2406#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2411pub struct MintDistributionCpv0 {
2412 #[prost(message, optional, tag = "1")]
2414 pub mint_per_slot: ::core::option::Option<MintRate>,
2415 #[prost(message, optional, tag = "2")]
2417 pub baking_reward: ::core::option::Option<AmountFraction>,
2418 #[prost(message, optional, tag = "3")]
2420 pub finalization_reward: ::core::option::Option<AmountFraction>,
2421}
2422#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2424pub struct TransactionFeeDistribution {
2425 #[prost(message, optional, tag = "1")]
2427 pub baker: ::core::option::Option<AmountFraction>,
2428 #[prost(message, optional, tag = "2")]
2430 pub gas_account: ::core::option::Option<AmountFraction>,
2431}
2432#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2434pub struct GasRewards {
2435 #[prost(message, optional, tag = "1")]
2437 pub baker: ::core::option::Option<AmountFraction>,
2438 #[prost(message, optional, tag = "2")]
2440 pub finalization_proof: ::core::option::Option<AmountFraction>,
2441 #[prost(message, optional, tag = "3")]
2443 pub account_creation: ::core::option::Option<AmountFraction>,
2444 #[prost(message, optional, tag = "4")]
2446 pub chain_update: ::core::option::Option<AmountFraction>,
2447}
2448#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2450pub struct GasRewardsCpv2 {
2451 #[prost(message, optional, tag = "1")]
2453 pub baker: ::core::option::Option<AmountFraction>,
2454 #[prost(message, optional, tag = "3")]
2456 pub account_creation: ::core::option::Option<AmountFraction>,
2457 #[prost(message, optional, tag = "4")]
2459 pub chain_update: ::core::option::Option<AmountFraction>,
2460}
2461#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2464pub struct BakerStakeThreshold {
2465 #[prost(message, optional, tag = "1")]
2467 pub baker_stake_threshold: ::core::option::Option<Amount>,
2468}
2469#[derive(Clone, PartialEq, ::prost::Message)]
2472pub struct RootUpdate {
2473 #[prost(oneof = "root_update::UpdateType", tags = "1, 2, 3, 4")]
2474 pub update_type: ::core::option::Option<root_update::UpdateType>,
2475}
2476pub mod root_update {
2478 #[derive(Clone, PartialEq, ::prost::Oneof)]
2479 pub enum UpdateType {
2480 #[prost(message, tag = "1")]
2482 RootKeysUpdate(super::HigherLevelKeys),
2483 #[prost(message, tag = "2")]
2485 Level1KeysUpdate(super::HigherLevelKeys),
2486 #[prost(message, tag = "3")]
2488 Level2KeysUpdateV0(super::AuthorizationsV0),
2489 #[prost(message, tag = "4")]
2491 Level2KeysUpdateV1(super::AuthorizationsV1),
2492 }
2493}
2494#[derive(Clone, PartialEq, ::prost::Message)]
2497pub struct Level1Update {
2498 #[prost(oneof = "level1_update::UpdateType", tags = "1, 2, 3")]
2499 pub update_type: ::core::option::Option<level1_update::UpdateType>,
2500}
2501pub mod level1_update {
2503 #[derive(Clone, PartialEq, ::prost::Oneof)]
2504 pub enum UpdateType {
2505 #[prost(message, tag = "1")]
2507 Level1KeysUpdate(super::HigherLevelKeys),
2508 #[prost(message, tag = "2")]
2510 Level2KeysUpdateV0(super::AuthorizationsV0),
2511 #[prost(message, tag = "3")]
2513 Level2KeysUpdateV1(super::AuthorizationsV1),
2514 }
2515}
2516#[derive(Clone, PartialEq, ::prost::Message)]
2518pub struct UpdatePayload {
2519 #[prost(
2520 oneof = "update_payload::Payload",
2521 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24"
2522 )]
2523 pub payload: ::core::option::Option<update_payload::Payload>,
2524}
2525pub mod update_payload {
2527 #[derive(Clone, PartialEq, ::prost::Oneof)]
2528 pub enum Payload {
2529 #[prost(message, tag = "1")]
2531 ProtocolUpdate(super::ProtocolUpdate),
2532 #[prost(message, tag = "2")]
2534 ElectionDifficultyUpdate(super::ElectionDifficulty),
2535 #[prost(message, tag = "3")]
2537 EuroPerEnergyUpdate(super::ExchangeRate),
2538 #[prost(message, tag = "4")]
2540 MicroCcdPerEuroUpdate(super::ExchangeRate),
2541 #[prost(message, tag = "5")]
2543 FoundationAccountUpdate(super::AccountAddress),
2544 #[prost(message, tag = "6")]
2546 MintDistributionUpdate(super::MintDistributionCpv0),
2547 #[prost(message, tag = "7")]
2549 TransactionFeeDistributionUpdate(super::TransactionFeeDistribution),
2550 #[prost(message, tag = "8")]
2552 GasRewardsUpdate(super::GasRewards),
2553 #[prost(message, tag = "9")]
2555 BakerStakeThresholdUpdate(super::BakerStakeThreshold),
2556 #[prost(message, tag = "10")]
2558 RootUpdate(super::RootUpdate),
2559 #[prost(message, tag = "11")]
2561 Level1Update(super::Level1Update),
2562 #[prost(message, tag = "12")]
2564 AddAnonymityRevokerUpdate(super::ArInfo),
2565 #[prost(message, tag = "13")]
2567 AddIdentityProviderUpdate(super::IpInfo),
2568 #[prost(message, tag = "14")]
2570 CooldownParametersCpv1Update(super::CooldownParametersCpv1),
2571 #[prost(message, tag = "15")]
2573 PoolParametersCpv1Update(super::PoolParametersCpv1),
2574 #[prost(message, tag = "16")]
2576 TimeParametersCpv1Update(super::TimeParametersCpv1),
2577 #[prost(message, tag = "17")]
2579 MintDistributionCpv1Update(super::MintDistributionCpv1),
2580 #[prost(message, tag = "18")]
2582 GasRewardsCpv2Update(super::GasRewardsCpv2),
2583 #[prost(message, tag = "19")]
2585 TimeoutParametersUpdate(super::TimeoutParameters),
2586 #[prost(message, tag = "20")]
2588 MinBlockTimeUpdate(super::Duration),
2589 #[prost(message, tag = "21")]
2591 BlockEnergyLimitUpdate(super::Energy),
2592 #[prost(message, tag = "22")]
2594 FinalizationCommitteeParametersUpdate(super::FinalizationCommitteeParameters),
2595 #[prost(message, tag = "23")]
2597 ValidatorScoreParametersUpdate(super::ValidatorScoreParameters),
2598 #[prost(message, tag = "24")]
2600 CreatePltUpdate(super::plt::CreatePlt),
2601 }
2602}
2603#[derive(Clone, PartialEq, ::prost::Message)]
2605pub struct AccountTransactionDetails {
2606 #[prost(message, optional, tag = "1")]
2608 pub cost: ::core::option::Option<Amount>,
2609 #[prost(message, optional, tag = "2")]
2611 pub sender: ::core::option::Option<AccountAddress>,
2612 #[prost(message, optional, tag = "3")]
2614 pub effects: ::core::option::Option<AccountTransactionEffects>,
2615}
2616#[derive(Clone, PartialEq, ::prost::Message)]
2620pub struct AccountCreationDetails {
2621 #[prost(enumeration = "CredentialType", tag = "1")]
2623 pub credential_type: i32,
2624 #[prost(message, optional, tag = "2")]
2626 pub address: ::core::option::Option<AccountAddress>,
2627 #[prost(message, optional, tag = "3")]
2629 pub reg_id: ::core::option::Option<CredentialRegistrationId>,
2630}
2631#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2633pub struct TransactionTime {
2634 #[prost(uint64, tag = "1")]
2635 pub value: u64,
2636}
2637#[derive(Clone, PartialEq, ::prost::Message)]
2641pub struct UpdateDetails {
2642 #[prost(message, optional, tag = "1")]
2644 pub effective_time: ::core::option::Option<TransactionTime>,
2645 #[prost(message, optional, tag = "2")]
2647 pub payload: ::core::option::Option<UpdatePayload>,
2648}
2649#[derive(Clone, PartialEq, ::prost::Message)]
2652pub struct BlockItemSummary {
2653 #[prost(message, optional, tag = "1")]
2655 pub index: ::core::option::Option<block_item_summary::TransactionIndex>,
2656 #[prost(message, optional, tag = "2")]
2658 pub energy_cost: ::core::option::Option<Energy>,
2659 #[prost(message, optional, tag = "3")]
2661 pub hash: ::core::option::Option<TransactionHash>,
2662 #[prost(oneof = "block_item_summary::Details", tags = "4, 5, 6, 7")]
2664 pub details: ::core::option::Option<block_item_summary::Details>,
2665}
2666pub mod block_item_summary {
2668 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2669 pub struct TransactionIndex {
2670 #[prost(uint64, tag = "1")]
2671 pub value: u64,
2672 }
2673 #[derive(Clone, PartialEq, ::prost::Oneof)]
2675 pub enum Details {
2676 #[prost(message, tag = "4")]
2678 AccountTransaction(super::AccountTransactionDetails),
2679 #[prost(message, tag = "5")]
2681 AccountCreation(super::AccountCreationDetails),
2682 #[prost(message, tag = "6")]
2684 Update(super::UpdateDetails),
2685 #[prost(message, tag = "7")]
2687 TokenCreation(super::plt::TokenCreationDetails),
2688 }
2689}
2690#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2695pub struct GenesisIndex {
2696 #[prost(uint32, tag = "1")]
2697 pub value: u32,
2698}
2699#[derive(Clone, PartialEq, ::prost::Message)]
2701pub struct ConsensusInfo {
2702 #[prost(message, optional, tag = "1")]
2704 pub best_block: ::core::option::Option<BlockHash>,
2705 #[prost(message, optional, tag = "2")]
2707 pub genesis_block: ::core::option::Option<BlockHash>,
2708 #[prost(message, optional, tag = "3")]
2710 pub genesis_time: ::core::option::Option<Timestamp>,
2711 #[prost(message, optional, tag = "4")]
2713 pub slot_duration: ::core::option::Option<Duration>,
2714 #[prost(message, optional, tag = "5")]
2716 pub epoch_duration: ::core::option::Option<Duration>,
2717 #[prost(message, optional, tag = "6")]
2719 pub last_finalized_block: ::core::option::Option<BlockHash>,
2720 #[prost(message, optional, tag = "7")]
2722 pub best_block_height: ::core::option::Option<AbsoluteBlockHeight>,
2723 #[prost(message, optional, tag = "8")]
2725 pub last_finalized_block_height: ::core::option::Option<AbsoluteBlockHeight>,
2726 #[prost(uint32, tag = "9")]
2728 pub blocks_received_count: u32,
2729 #[prost(message, optional, tag = "10")]
2731 pub block_last_received_time: ::core::option::Option<Timestamp>,
2732 #[prost(double, tag = "11")]
2734 pub block_receive_latency_ema: f64,
2735 #[prost(double, tag = "12")]
2737 pub block_receive_latency_emsd: f64,
2738 #[prost(double, optional, tag = "13")]
2740 pub block_receive_period_ema: ::core::option::Option<f64>,
2741 #[prost(double, optional, tag = "14")]
2743 pub block_receive_period_emsd: ::core::option::Option<f64>,
2744 #[prost(uint32, tag = "15")]
2746 pub blocks_verified_count: u32,
2747 #[prost(message, optional, tag = "16")]
2749 pub block_last_arrived_time: ::core::option::Option<Timestamp>,
2750 #[prost(double, tag = "17")]
2752 pub block_arrive_latency_ema: f64,
2753 #[prost(double, tag = "18")]
2755 pub block_arrive_latency_emsd: f64,
2756 #[prost(double, optional, tag = "19")]
2758 pub block_arrive_period_ema: ::core::option::Option<f64>,
2759 #[prost(double, optional, tag = "20")]
2761 pub block_arrive_period_emsd: ::core::option::Option<f64>,
2762 #[prost(double, tag = "21")]
2764 pub transactions_per_block_ema: f64,
2765 #[prost(double, tag = "22")]
2767 pub transactions_per_block_emsd: f64,
2768 #[prost(uint32, tag = "23")]
2770 pub finalization_count: u32,
2771 #[prost(message, optional, tag = "24")]
2773 pub last_finalized_time: ::core::option::Option<Timestamp>,
2774 #[prost(double, optional, tag = "25")]
2776 pub finalization_period_ema: ::core::option::Option<f64>,
2777 #[prost(double, optional, tag = "26")]
2779 pub finalization_period_emsd: ::core::option::Option<f64>,
2780 #[prost(enumeration = "ProtocolVersion", tag = "27")]
2782 pub protocol_version: i32,
2783 #[prost(message, optional, tag = "28")]
2788 pub genesis_index: ::core::option::Option<GenesisIndex>,
2789 #[prost(message, optional, tag = "29")]
2792 pub current_era_genesis_block: ::core::option::Option<BlockHash>,
2793 #[prost(message, optional, tag = "30")]
2795 pub current_era_genesis_time: ::core::option::Option<Timestamp>,
2796 #[prost(message, optional, tag = "31")]
2798 pub current_timeout_duration: ::core::option::Option<Duration>,
2799 #[prost(message, optional, tag = "32")]
2801 pub current_round: ::core::option::Option<Round>,
2802 #[prost(message, optional, tag = "33")]
2804 pub current_epoch: ::core::option::Option<Epoch>,
2805 #[prost(message, optional, tag = "34")]
2808 pub trigger_block_time: ::core::option::Option<Timestamp>,
2809}
2810#[derive(Clone, PartialEq, ::prost::Message)]
2812pub struct ArrivedBlockInfo {
2813 #[prost(message, optional, tag = "1")]
2815 pub hash: ::core::option::Option<BlockHash>,
2816 #[prost(message, optional, tag = "2")]
2818 pub height: ::core::option::Option<AbsoluteBlockHeight>,
2819}
2820#[derive(Clone, PartialEq, ::prost::Message)]
2822pub struct CryptographicParameters {
2823 #[prost(string, tag = "1")]
2825 pub genesis_string: ::prost::alloc::string::String,
2826 #[prost(bytes = "vec", tag = "2")]
2829 pub bulletproof_generators: ::prost::alloc::vec::Vec<u8>,
2830 #[prost(bytes = "vec", tag = "3")]
2834 pub on_chain_commitment_key: ::prost::alloc::vec::Vec<u8>,
2835}
2836#[derive(Clone, PartialEq, ::prost::Message)]
2838pub struct BlockInfo {
2839 #[prost(message, optional, tag = "1")]
2841 pub hash: ::core::option::Option<BlockHash>,
2842 #[prost(message, optional, tag = "2")]
2844 pub height: ::core::option::Option<AbsoluteBlockHeight>,
2845 #[prost(message, optional, tag = "3")]
2848 pub parent_block: ::core::option::Option<BlockHash>,
2849 #[prost(message, optional, tag = "4")]
2851 pub last_finalized_block: ::core::option::Option<BlockHash>,
2852 #[prost(message, optional, tag = "5")]
2855 pub genesis_index: ::core::option::Option<GenesisIndex>,
2856 #[prost(message, optional, tag = "6")]
2858 pub era_block_height: ::core::option::Option<BlockHeight>,
2859 #[prost(message, optional, tag = "7")]
2861 pub receive_time: ::core::option::Option<Timestamp>,
2862 #[prost(message, optional, tag = "8")]
2864 pub arrive_time: ::core::option::Option<Timestamp>,
2865 #[prost(message, optional, tag = "9")]
2867 pub slot_number: ::core::option::Option<Slot>,
2868 #[prost(message, optional, tag = "10")]
2870 pub slot_time: ::core::option::Option<Timestamp>,
2871 #[prost(message, optional, tag = "11")]
2873 pub baker: ::core::option::Option<BakerId>,
2874 #[prost(bool, tag = "12")]
2876 pub finalized: bool,
2877 #[prost(uint32, tag = "13")]
2879 pub transaction_count: u32,
2880 #[prost(message, optional, tag = "14")]
2882 pub transactions_energy_cost: ::core::option::Option<Energy>,
2883 #[prost(uint32, tag = "15")]
2885 pub transactions_size: u32,
2886 #[prost(message, optional, tag = "16")]
2888 pub state_hash: ::core::option::Option<StateHash>,
2889 #[prost(enumeration = "ProtocolVersion", tag = "17")]
2891 pub protocol_version: i32,
2892 #[prost(message, optional, tag = "18")]
2894 pub round: ::core::option::Option<Round>,
2895 #[prost(message, optional, tag = "19")]
2897 pub epoch: ::core::option::Option<Epoch>,
2898}
2899#[derive(Clone, PartialEq, ::prost::Message)]
2901pub struct PoolInfoRequest {
2902 #[prost(message, optional, tag = "1")]
2904 pub block_hash: ::core::option::Option<BlockHashInput>,
2905 #[prost(message, optional, tag = "2")]
2907 pub baker: ::core::option::Option<BakerId>,
2908}
2909#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2911pub struct PoolPendingChange {
2912 #[prost(oneof = "pool_pending_change::Change", tags = "1, 2")]
2913 pub change: ::core::option::Option<pool_pending_change::Change>,
2914}
2915pub mod pool_pending_change {
2917 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2919 pub struct Reduce {
2920 #[prost(message, optional, tag = "1")]
2922 pub reduced_equity_capital: ::core::option::Option<super::Amount>,
2923 #[prost(message, optional, tag = "2")]
2925 pub effective_time: ::core::option::Option<super::Timestamp>,
2926 }
2927 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2929 pub struct Remove {
2930 #[prost(message, optional, tag = "1")]
2932 pub effective_time: ::core::option::Option<super::Timestamp>,
2933 }
2934 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
2935 pub enum Change {
2936 #[prost(message, tag = "1")]
2937 Reduce(Reduce),
2938 #[prost(message, tag = "2")]
2939 Remove(Remove),
2940 }
2941}
2942#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2944pub struct PoolCurrentPaydayInfo {
2945 #[prost(uint64, tag = "1")]
2947 pub blocks_baked: u64,
2948 #[prost(bool, tag = "2")]
2950 pub finalization_live: bool,
2951 #[prost(message, optional, tag = "3")]
2953 pub transaction_fees_earned: ::core::option::Option<Amount>,
2954 #[prost(message, optional, tag = "4")]
2956 pub effective_stake: ::core::option::Option<Amount>,
2957 #[prost(double, tag = "5")]
2959 pub lottery_power: f64,
2960 #[prost(message, optional, tag = "6")]
2962 pub baker_equity_capital: ::core::option::Option<Amount>,
2963 #[prost(message, optional, tag = "7")]
2965 pub delegated_capital: ::core::option::Option<Amount>,
2966 #[prost(message, optional, tag = "8")]
2968 pub commission_rates: ::core::option::Option<CommissionRates>,
2969 #[prost(bool, optional, tag = "9")]
2972 pub is_primed_for_suspension: ::core::option::Option<bool>,
2973 #[prost(uint64, optional, tag = "10")]
2976 pub missed_rounds: ::core::option::Option<u64>,
2977}
2978#[derive(Clone, PartialEq, ::prost::Message)]
2987pub struct PoolInfoResponse {
2988 #[prost(message, optional, tag = "1")]
2990 pub baker: ::core::option::Option<BakerId>,
2991 #[prost(message, optional, tag = "2")]
2993 pub address: ::core::option::Option<AccountAddress>,
2994 #[prost(message, optional, tag = "3")]
2996 pub equity_capital: ::core::option::Option<Amount>,
2997 #[prost(message, optional, tag = "4")]
2999 pub delegated_capital: ::core::option::Option<Amount>,
3000 #[prost(message, optional, tag = "5")]
3003 pub delegated_capital_cap: ::core::option::Option<Amount>,
3004 #[prost(message, optional, tag = "6")]
3007 pub pool_info: ::core::option::Option<BakerPoolInfo>,
3008 #[prost(message, optional, tag = "7")]
3011 pub equity_pending_change: ::core::option::Option<PoolPendingChange>,
3012 #[prost(message, optional, tag = "8")]
3014 pub current_payday_info: ::core::option::Option<PoolCurrentPaydayInfo>,
3015 #[prost(message, optional, tag = "9")]
3017 pub all_pool_total_capital: ::core::option::Option<Amount>,
3018 #[prost(bool, optional, tag = "10")]
3021 pub is_suspended: ::core::option::Option<bool>,
3022}
3023#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3026pub struct PassiveDelegationInfo {
3027 #[prost(message, optional, tag = "1")]
3029 pub delegated_capital: ::core::option::Option<Amount>,
3030 #[prost(message, optional, tag = "2")]
3032 pub commission_rates: ::core::option::Option<CommissionRates>,
3033 #[prost(message, optional, tag = "3")]
3035 pub current_payday_transaction_fees_earned: ::core::option::Option<Amount>,
3036 #[prost(message, optional, tag = "4")]
3038 pub current_payday_delegated_capital: ::core::option::Option<Amount>,
3039 #[prost(message, optional, tag = "5")]
3041 pub all_pool_total_capital: ::core::option::Option<Amount>,
3042}
3043#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3045pub struct BlocksAtHeightRequest {
3046 #[prost(oneof = "blocks_at_height_request::BlocksAtHeight", tags = "1, 2")]
3047 pub blocks_at_height: ::core::option::Option<
3048 blocks_at_height_request::BlocksAtHeight,
3049 >,
3050}
3051pub mod blocks_at_height_request {
3053 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3055 pub struct Absolute {
3056 #[prost(message, optional, tag = "1")]
3058 pub height: ::core::option::Option<super::AbsoluteBlockHeight>,
3059 }
3060 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3062 pub struct Relative {
3063 #[prost(message, optional, tag = "1")]
3065 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
3066 #[prost(message, optional, tag = "2")]
3068 pub height: ::core::option::Option<super::BlockHeight>,
3069 #[prost(bool, tag = "3")]
3072 pub restrict: bool,
3073 }
3074 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3075 pub enum BlocksAtHeight {
3076 #[prost(message, tag = "1")]
3077 Absolute(Absolute),
3078 #[prost(message, tag = "2")]
3079 Relative(Relative),
3080 }
3081}
3082#[derive(Clone, PartialEq, ::prost::Message)]
3084pub struct BlocksAtHeightResponse {
3085 #[prost(message, repeated, tag = "1")]
3087 pub blocks: ::prost::alloc::vec::Vec<BlockHash>,
3088}
3089#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3092pub struct TokenomicsInfo {
3093 #[prost(oneof = "tokenomics_info::Tokenomics", tags = "1, 2")]
3094 pub tokenomics: ::core::option::Option<tokenomics_info::Tokenomics>,
3095}
3096pub mod tokenomics_info {
3098 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3100 pub struct V0 {
3101 #[prost(message, optional, tag = "1")]
3103 pub total_amount: ::core::option::Option<super::Amount>,
3104 #[prost(message, optional, tag = "2")]
3106 pub total_encrypted_amount: ::core::option::Option<super::Amount>,
3107 #[prost(message, optional, tag = "3")]
3109 pub baking_reward_account: ::core::option::Option<super::Amount>,
3110 #[prost(message, optional, tag = "4")]
3112 pub finalization_reward_account: ::core::option::Option<super::Amount>,
3113 #[prost(message, optional, tag = "5")]
3115 pub gas_account: ::core::option::Option<super::Amount>,
3116 #[prost(enumeration = "super::ProtocolVersion", tag = "6")]
3118 pub protocol_version: i32,
3119 }
3120 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3122 pub struct V1 {
3123 #[prost(message, optional, tag = "1")]
3125 pub total_amount: ::core::option::Option<super::Amount>,
3126 #[prost(message, optional, tag = "2")]
3128 pub total_encrypted_amount: ::core::option::Option<super::Amount>,
3129 #[prost(message, optional, tag = "3")]
3131 pub baking_reward_account: ::core::option::Option<super::Amount>,
3132 #[prost(message, optional, tag = "4")]
3134 pub finalization_reward_account: ::core::option::Option<super::Amount>,
3135 #[prost(message, optional, tag = "5")]
3137 pub gas_account: ::core::option::Option<super::Amount>,
3138 #[prost(message, optional, tag = "6")]
3140 pub foundation_transaction_rewards: ::core::option::Option<super::Amount>,
3141 #[prost(message, optional, tag = "7")]
3143 pub next_payday_time: ::core::option::Option<super::Timestamp>,
3144 #[prost(message, optional, tag = "8")]
3146 pub next_payday_mint_rate: ::core::option::Option<super::MintRate>,
3147 #[prost(message, optional, tag = "9")]
3149 pub total_staked_capital: ::core::option::Option<super::Amount>,
3150 #[prost(enumeration = "super::ProtocolVersion", tag = "10")]
3152 pub protocol_version: i32,
3153 }
3154 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3155 pub enum Tokenomics {
3156 #[prost(message, tag = "1")]
3157 V0(V0),
3158 #[prost(message, tag = "2")]
3159 V1(V1),
3160 }
3161}
3162#[derive(Clone, PartialEq, ::prost::Message)]
3164pub struct InvokeInstanceRequest {
3165 #[prost(message, optional, tag = "1")]
3167 pub block_hash: ::core::option::Option<BlockHashInput>,
3168 #[prost(message, optional, tag = "2")]
3173 pub invoker: ::core::option::Option<Address>,
3174 #[prost(message, optional, tag = "3")]
3176 pub instance: ::core::option::Option<ContractAddress>,
3177 #[prost(message, optional, tag = "4")]
3179 pub amount: ::core::option::Option<Amount>,
3180 #[prost(message, optional, tag = "5")]
3182 pub entrypoint: ::core::option::Option<ReceiveName>,
3183 #[prost(message, optional, tag = "6")]
3185 pub parameter: ::core::option::Option<Parameter>,
3186 #[prost(message, optional, tag = "7")]
3190 pub energy: ::core::option::Option<Energy>,
3191}
3192#[derive(Clone, PartialEq, ::prost::Message)]
3194pub struct InvokeInstanceResponse {
3195 #[prost(oneof = "invoke_instance_response::Result", tags = "1, 2")]
3196 pub result: ::core::option::Option<invoke_instance_response::Result>,
3197}
3198pub mod invoke_instance_response {
3200 #[derive(Clone, PartialEq, ::prost::Message)]
3202 pub struct Failure {
3203 #[prost(bytes = "vec", optional, tag = "1")]
3208 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
3209 #[prost(message, optional, tag = "2")]
3211 pub used_energy: ::core::option::Option<super::Energy>,
3212 #[prost(message, optional, tag = "3")]
3214 pub reason: ::core::option::Option<super::RejectReason>,
3215 }
3216 #[derive(Clone, PartialEq, ::prost::Message)]
3218 pub struct Success {
3219 #[prost(bytes = "vec", optional, tag = "1")]
3222 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
3223 #[prost(message, optional, tag = "2")]
3225 pub used_energy: ::core::option::Option<super::Energy>,
3226 #[prost(message, repeated, tag = "3")]
3228 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
3229 }
3230 #[derive(Clone, PartialEq, ::prost::Oneof)]
3231 pub enum Result {
3232 #[prost(message, tag = "1")]
3233 Success(Success),
3234 #[prost(message, tag = "2")]
3235 Failure(Failure),
3236 }
3237}
3238#[derive(Clone, PartialEq, ::prost::Message)]
3240pub struct GetPoolDelegatorsRequest {
3241 #[prost(message, optional, tag = "1")]
3243 pub block_hash: ::core::option::Option<BlockHashInput>,
3244 #[prost(message, optional, tag = "2")]
3246 pub baker: ::core::option::Option<BakerId>,
3247}
3248#[derive(Clone, PartialEq, ::prost::Message)]
3250pub struct DelegatorInfo {
3251 #[prost(message, optional, tag = "1")]
3253 pub account: ::core::option::Option<AccountAddress>,
3254 #[prost(message, optional, tag = "2")]
3256 pub stake: ::core::option::Option<Amount>,
3257 #[prost(message, optional, tag = "3")]
3259 pub pending_change: ::core::option::Option<StakePendingChange>,
3260}
3261#[derive(Clone, PartialEq, ::prost::Message)]
3263pub struct DelegatorRewardPeriodInfo {
3264 #[prost(message, optional, tag = "1")]
3266 pub account: ::core::option::Option<AccountAddress>,
3267 #[prost(message, optional, tag = "2")]
3269 pub stake: ::core::option::Option<Amount>,
3270}
3271#[derive(Clone, PartialEq, ::prost::Message)]
3273pub struct Branch {
3274 #[prost(message, optional, tag = "1")]
3276 pub block_hash: ::core::option::Option<BlockHash>,
3277 #[prost(message, repeated, tag = "2")]
3279 pub children: ::prost::alloc::vec::Vec<Branch>,
3280}
3281#[derive(Clone, PartialEq, ::prost::Message)]
3285pub struct LeadershipElectionNonce {
3286 #[prost(bytes = "vec", tag = "1")]
3287 pub value: ::prost::alloc::vec::Vec<u8>,
3288}
3289#[derive(Clone, PartialEq, ::prost::Message)]
3292pub struct ElectionInfo {
3293 #[prost(message, optional, tag = "1")]
3295 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
3296 #[prost(message, optional, tag = "2")]
3298 pub election_nonce: ::core::option::Option<LeadershipElectionNonce>,
3299 #[prost(message, repeated, tag = "3")]
3301 pub baker_election_info: ::prost::alloc::vec::Vec<election_info::Baker>,
3302}
3303pub mod election_info {
3305 #[derive(Clone, PartialEq, ::prost::Message)]
3306 pub struct Baker {
3307 #[prost(message, optional, tag = "1")]
3309 pub baker: ::core::option::Option<super::BakerId>,
3310 #[prost(message, optional, tag = "2")]
3312 pub account: ::core::option::Option<super::AccountAddress>,
3313 #[prost(double, tag = "3")]
3315 pub lottery_power: f64,
3316 }
3317}
3318#[derive(Clone, PartialEq, ::prost::Message)]
3321pub struct BlockSpecialEvent {
3322 #[prost(
3323 oneof = "block_special_event::Event",
3324 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
3325 )]
3326 pub event: ::core::option::Option<block_special_event::Event>,
3327}
3328pub mod block_special_event {
3330 #[derive(Clone, PartialEq, ::prost::Message)]
3332 pub struct AccountAmounts {
3333 #[prost(message, repeated, tag = "1")]
3334 pub entries: ::prost::alloc::vec::Vec<account_amounts::Entry>,
3335 }
3336 pub mod account_amounts {
3338 #[derive(Clone, PartialEq, ::prost::Message)]
3340 pub struct Entry {
3341 #[prost(message, optional, tag = "1")]
3343 pub account: ::core::option::Option<super::super::AccountAddress>,
3344 #[prost(message, optional, tag = "2")]
3346 pub amount: ::core::option::Option<super::super::Amount>,
3347 }
3348 }
3349 #[derive(Clone, PartialEq, ::prost::Message)]
3352 pub struct BakingRewards {
3353 #[prost(message, optional, tag = "1")]
3355 pub baker_rewards: ::core::option::Option<AccountAmounts>,
3356 #[prost(message, optional, tag = "2")]
3358 pub remainder: ::core::option::Option<super::Amount>,
3359 }
3360 #[derive(Clone, PartialEq, ::prost::Message)]
3362 pub struct Mint {
3363 #[prost(message, optional, tag = "1")]
3365 pub mint_baking_reward: ::core::option::Option<super::Amount>,
3366 #[prost(message, optional, tag = "2")]
3368 pub mint_finalization_reward: ::core::option::Option<super::Amount>,
3369 #[prost(message, optional, tag = "3")]
3371 pub mint_platform_development_charge: ::core::option::Option<super::Amount>,
3372 #[prost(message, optional, tag = "4")]
3374 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3375 }
3376 #[derive(Clone, PartialEq, ::prost::Message)]
3378 pub struct FinalizationRewards {
3379 #[prost(message, optional, tag = "1")]
3381 pub finalization_rewards: ::core::option::Option<AccountAmounts>,
3382 #[prost(message, optional, tag = "2")]
3384 pub remainder: ::core::option::Option<super::Amount>,
3385 }
3386 #[derive(Clone, PartialEq, ::prost::Message)]
3391 pub struct BlockReward {
3392 #[prost(message, optional, tag = "1")]
3394 pub transaction_fees: ::core::option::Option<super::Amount>,
3395 #[prost(message, optional, tag = "2")]
3397 pub old_gas_account: ::core::option::Option<super::Amount>,
3398 #[prost(message, optional, tag = "3")]
3400 pub new_gas_account: ::core::option::Option<super::Amount>,
3401 #[prost(message, optional, tag = "4")]
3403 pub baker_reward: ::core::option::Option<super::Amount>,
3404 #[prost(message, optional, tag = "5")]
3406 pub foundation_charge: ::core::option::Option<super::Amount>,
3407 #[prost(message, optional, tag = "6")]
3409 pub baker: ::core::option::Option<super::AccountAddress>,
3410 #[prost(message, optional, tag = "7")]
3412 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3413 }
3414 #[derive(Clone, PartialEq, ::prost::Message)]
3416 pub struct PaydayFoundationReward {
3417 #[prost(message, optional, tag = "1")]
3419 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3420 #[prost(message, optional, tag = "2")]
3422 pub development_charge: ::core::option::Option<super::Amount>,
3423 }
3424 #[derive(Clone, PartialEq, ::prost::Message)]
3426 pub struct PaydayAccountReward {
3427 #[prost(message, optional, tag = "1")]
3429 pub account: ::core::option::Option<super::AccountAddress>,
3430 #[prost(message, optional, tag = "2")]
3432 pub transaction_fees: ::core::option::Option<super::Amount>,
3433 #[prost(message, optional, tag = "3")]
3435 pub baker_reward: ::core::option::Option<super::Amount>,
3436 #[prost(message, optional, tag = "4")]
3438 pub finalization_reward: ::core::option::Option<super::Amount>,
3439 }
3440 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3442 pub struct BlockAccrueReward {
3443 #[prost(message, optional, tag = "1")]
3445 pub transaction_fees: ::core::option::Option<super::Amount>,
3446 #[prost(message, optional, tag = "2")]
3448 pub old_gas_account: ::core::option::Option<super::Amount>,
3449 #[prost(message, optional, tag = "3")]
3451 pub new_gas_account: ::core::option::Option<super::Amount>,
3452 #[prost(message, optional, tag = "4")]
3454 pub baker_reward: ::core::option::Option<super::Amount>,
3455 #[prost(message, optional, tag = "5")]
3457 pub passive_reward: ::core::option::Option<super::Amount>,
3458 #[prost(message, optional, tag = "6")]
3460 pub foundation_charge: ::core::option::Option<super::Amount>,
3461 #[prost(message, optional, tag = "7")]
3463 pub baker: ::core::option::Option<super::BakerId>,
3464 }
3465 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3467 pub struct PaydayPoolReward {
3468 #[prost(message, optional, tag = "1")]
3470 pub pool_owner: ::core::option::Option<super::BakerId>,
3471 #[prost(message, optional, tag = "2")]
3473 pub transaction_fees: ::core::option::Option<super::Amount>,
3474 #[prost(message, optional, tag = "3")]
3476 pub baker_reward: ::core::option::Option<super::Amount>,
3477 #[prost(message, optional, tag = "4")]
3479 pub finalization_reward: ::core::option::Option<super::Amount>,
3480 }
3481 #[derive(Clone, PartialEq, ::prost::Message)]
3483 pub struct ValidatorSuspended {
3484 #[prost(message, optional, tag = "1")]
3486 pub baker_id: ::core::option::Option<super::BakerId>,
3487 #[prost(message, optional, tag = "2")]
3489 pub account: ::core::option::Option<super::AccountAddress>,
3490 }
3491 #[derive(Clone, PartialEq, ::prost::Message)]
3494 pub struct ValidatorPrimedForSuspension {
3495 #[prost(message, optional, tag = "1")]
3497 pub baker_id: ::core::option::Option<super::BakerId>,
3498 #[prost(message, optional, tag = "2")]
3500 pub account: ::core::option::Option<super::AccountAddress>,
3501 }
3502 #[derive(Clone, PartialEq, ::prost::Oneof)]
3503 pub enum Event {
3504 #[prost(message, tag = "1")]
3505 BakingRewards(BakingRewards),
3506 #[prost(message, tag = "2")]
3507 Mint(Mint),
3508 #[prost(message, tag = "3")]
3509 FinalizationRewards(FinalizationRewards),
3510 #[prost(message, tag = "4")]
3511 BlockReward(BlockReward),
3512 #[prost(message, tag = "5")]
3513 PaydayFoundationReward(PaydayFoundationReward),
3514 #[prost(message, tag = "6")]
3515 PaydayAccountReward(PaydayAccountReward),
3516 #[prost(message, tag = "7")]
3517 BlockAccrueReward(BlockAccrueReward),
3518 #[prost(message, tag = "8")]
3519 PaydayPoolReward(PaydayPoolReward),
3520 #[prost(message, tag = "9")]
3521 ValidatorSuspended(ValidatorSuspended),
3522 #[prost(message, tag = "10")]
3523 ValidatorPrimedForSuspension(ValidatorPrimedForSuspension),
3524 }
3525}
3526#[derive(Clone, PartialEq, ::prost::Message)]
3528pub struct PendingUpdate {
3529 #[prost(message, optional, tag = "1")]
3531 pub effective_time: ::core::option::Option<TransactionTime>,
3532 #[prost(
3534 oneof = "pending_update::Effect",
3535 tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26"
3536 )]
3537 pub effect: ::core::option::Option<pending_update::Effect>,
3538}
3539pub mod pending_update {
3541 #[derive(Clone, PartialEq, ::prost::Oneof)]
3543 pub enum Effect {
3544 #[prost(message, tag = "2")]
3546 RootKeys(super::HigherLevelKeys),
3547 #[prost(message, tag = "3")]
3549 Level1Keys(super::HigherLevelKeys),
3550 #[prost(message, tag = "4")]
3552 Level2KeysCpv0(super::AuthorizationsV0),
3553 #[prost(message, tag = "5")]
3555 Level2KeysCpv1(super::AuthorizationsV1),
3556 #[prost(message, tag = "6")]
3558 Protocol(super::ProtocolUpdate),
3559 #[prost(message, tag = "7")]
3561 ElectionDifficulty(super::ElectionDifficulty),
3562 #[prost(message, tag = "8")]
3564 EuroPerEnergy(super::ExchangeRate),
3565 #[prost(message, tag = "9")]
3567 MicroCcdPerEuro(super::ExchangeRate),
3568 #[prost(message, tag = "10")]
3570 FoundationAccount(super::AccountAddress),
3571 #[prost(message, tag = "11")]
3573 MintDistributionCpv0(super::MintDistributionCpv0),
3574 #[prost(message, tag = "12")]
3576 MintDistributionCpv1(super::MintDistributionCpv1),
3577 #[prost(message, tag = "13")]
3579 TransactionFeeDistribution(super::TransactionFeeDistribution),
3580 #[prost(message, tag = "14")]
3582 GasRewards(super::GasRewards),
3583 #[prost(message, tag = "15")]
3585 PoolParametersCpv0(super::BakerStakeThreshold),
3586 #[prost(message, tag = "16")]
3588 PoolParametersCpv1(super::PoolParametersCpv1),
3589 #[prost(message, tag = "17")]
3591 AddAnonymityRevoker(super::ArInfo),
3592 #[prost(message, tag = "18")]
3594 AddIdentityProvider(super::IpInfo),
3595 #[prost(message, tag = "19")]
3597 CooldownParameters(super::CooldownParametersCpv1),
3598 #[prost(message, tag = "20")]
3600 TimeParameters(super::TimeParametersCpv1),
3601 #[prost(message, tag = "21")]
3603 GasRewardsCpv2(super::GasRewardsCpv2),
3604 #[prost(message, tag = "22")]
3606 TimeoutParameters(super::TimeoutParameters),
3607 #[prost(message, tag = "23")]
3609 MinBlockTime(super::Duration),
3610 #[prost(message, tag = "24")]
3612 BlockEnergyLimit(super::Energy),
3613 #[prost(message, tag = "25")]
3615 FinalizationCommitteeParameters(super::FinalizationCommitteeParameters),
3616 #[prost(message, tag = "26")]
3618 ValidatorScoreParameters(super::ValidatorScoreParameters),
3619 }
3620}
3621#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3623pub struct NextUpdateSequenceNumbers {
3624 #[prost(message, optional, tag = "1")]
3626 pub root_keys: ::core::option::Option<SequenceNumber>,
3627 #[prost(message, optional, tag = "2")]
3629 pub level1_keys: ::core::option::Option<SequenceNumber>,
3630 #[prost(message, optional, tag = "3")]
3632 pub level2_keys: ::core::option::Option<SequenceNumber>,
3633 #[prost(message, optional, tag = "4")]
3635 pub protocol: ::core::option::Option<SequenceNumber>,
3636 #[prost(message, optional, tag = "5")]
3638 pub election_difficulty: ::core::option::Option<SequenceNumber>,
3639 #[prost(message, optional, tag = "6")]
3641 pub euro_per_energy: ::core::option::Option<SequenceNumber>,
3642 #[prost(message, optional, tag = "7")]
3644 pub micro_ccd_per_euro: ::core::option::Option<SequenceNumber>,
3645 #[prost(message, optional, tag = "8")]
3647 pub foundation_account: ::core::option::Option<SequenceNumber>,
3648 #[prost(message, optional, tag = "9")]
3650 pub mint_distribution: ::core::option::Option<SequenceNumber>,
3651 #[prost(message, optional, tag = "10")]
3653 pub transaction_fee_distribution: ::core::option::Option<SequenceNumber>,
3654 #[prost(message, optional, tag = "11")]
3656 pub gas_rewards: ::core::option::Option<SequenceNumber>,
3657 #[prost(message, optional, tag = "12")]
3659 pub pool_parameters: ::core::option::Option<SequenceNumber>,
3660 #[prost(message, optional, tag = "13")]
3662 pub add_anonymity_revoker: ::core::option::Option<SequenceNumber>,
3663 #[prost(message, optional, tag = "14")]
3665 pub add_identity_provider: ::core::option::Option<SequenceNumber>,
3666 #[prost(message, optional, tag = "15")]
3668 pub cooldown_parameters: ::core::option::Option<SequenceNumber>,
3669 #[prost(message, optional, tag = "16")]
3671 pub time_parameters: ::core::option::Option<SequenceNumber>,
3672 #[prost(message, optional, tag = "17")]
3674 pub timeout_parameters: ::core::option::Option<SequenceNumber>,
3675 #[prost(message, optional, tag = "18")]
3677 pub min_block_time: ::core::option::Option<SequenceNumber>,
3678 #[prost(message, optional, tag = "19")]
3680 pub block_energy_limit: ::core::option::Option<SequenceNumber>,
3681 #[prost(message, optional, tag = "20")]
3683 pub finalization_committee_parameters: ::core::option::Option<SequenceNumber>,
3684 #[prost(message, optional, tag = "21")]
3686 pub validator_score_parameters: ::core::option::Option<SequenceNumber>,
3687 #[prost(message, optional, tag = "22")]
3689 pub protocol_level_tokens: ::core::option::Option<SequenceNumber>,
3690}
3691#[derive(Clone, PartialEq, ::prost::Message)]
3694pub struct IpAddress {
3695 #[prost(string, tag = "1")]
3696 pub value: ::prost::alloc::string::String,
3697}
3698#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3702pub struct Port {
3703 #[prost(uint32, tag = "1")]
3704 pub value: u32,
3705}
3706#[derive(Clone, PartialEq, ::prost::Message)]
3709pub struct IpSocketAddress {
3710 #[prost(message, optional, tag = "1")]
3711 pub ip: ::core::option::Option<IpAddress>,
3712 #[prost(message, optional, tag = "2")]
3713 pub port: ::core::option::Option<Port>,
3714}
3715#[derive(Clone, PartialEq, ::prost::Message)]
3722pub struct PeerId {
3723 #[prost(string, tag = "1")]
3724 pub value: ::prost::alloc::string::String,
3725}
3726#[derive(Clone, PartialEq, ::prost::Message)]
3728pub struct BannedPeer {
3729 #[prost(message, optional, tag = "1")]
3731 pub ip_address: ::core::option::Option<IpAddress>,
3732}
3733#[derive(Clone, PartialEq, ::prost::Message)]
3736pub struct BannedPeers {
3737 #[prost(message, repeated, tag = "1")]
3738 pub peers: ::prost::alloc::vec::Vec<BannedPeer>,
3739}
3740#[derive(Clone, PartialEq, ::prost::Message)]
3744pub struct PeerToBan {
3745 #[prost(message, optional, tag = "1")]
3746 pub ip_address: ::core::option::Option<IpAddress>,
3747}
3748#[derive(Clone, PartialEq, ::prost::Message)]
3750pub struct DumpRequest {
3751 #[prost(string, tag = "1")]
3754 pub file: ::prost::alloc::string::String,
3755 #[prost(bool, tag = "2")]
3757 pub raw: bool,
3758}
3759#[derive(Clone, PartialEq, ::prost::Message)]
3761pub struct PeersInfo {
3762 #[prost(message, repeated, tag = "1")]
3763 pub peers: ::prost::alloc::vec::Vec<peers_info::Peer>,
3764}
3765pub mod peers_info {
3767 #[derive(Clone, PartialEq, ::prost::Message)]
3769 pub struct Peer {
3770 #[prost(message, optional, tag = "1")]
3773 pub peer_id: ::core::option::Option<super::PeerId>,
3774 #[prost(message, optional, tag = "2")]
3776 pub socket_address: ::core::option::Option<super::IpSocketAddress>,
3777 #[prost(message, optional, tag = "3")]
3779 pub network_stats: ::core::option::Option<peer::NetworkStats>,
3780 #[prost(oneof = "peer::ConsensusInfo", tags = "4, 5")]
3782 pub consensus_info: ::core::option::Option<peer::ConsensusInfo>,
3783 }
3784 pub mod peer {
3786 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3788 pub struct NetworkStats {
3789 #[prost(uint64, tag = "2")]
3793 pub packets_sent: u64,
3794 #[prost(uint64, tag = "3")]
3798 pub packets_received: u64,
3799 #[prost(uint64, tag = "4")]
3801 pub latency: u64,
3802 }
3803 #[derive(
3804 Clone,
3805 Copy,
3806 Debug,
3807 PartialEq,
3808 Eq,
3809 Hash,
3810 PartialOrd,
3811 Ord,
3812 ::prost::Enumeration
3813 )]
3814 #[repr(i32)]
3815 pub enum CatchupStatus {
3816 Uptodate = 0,
3819 Pending = 1,
3824 Catchingup = 2,
3830 }
3831 impl CatchupStatus {
3832 pub fn as_str_name(&self) -> &'static str {
3837 match self {
3838 Self::Uptodate => "UPTODATE",
3839 Self::Pending => "PENDING",
3840 Self::Catchingup => "CATCHINGUP",
3841 }
3842 }
3843 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3845 match value {
3846 "UPTODATE" => Some(Self::Uptodate),
3847 "PENDING" => Some(Self::Pending),
3848 "CATCHINGUP" => Some(Self::Catchingup),
3849 _ => None,
3850 }
3851 }
3852 }
3853 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3855 pub enum ConsensusInfo {
3856 #[prost(message, tag = "4")]
3859 Bootstrapper(super::super::Empty),
3860 #[prost(enumeration = "CatchupStatus", tag = "5")]
3863 NodeCatchupStatus(i32),
3864 }
3865 }
3866}
3867#[derive(Clone, PartialEq, ::prost::Message)]
3871pub struct NodeInfo {
3872 #[prost(string, tag = "1")]
3874 pub peer_version: ::prost::alloc::string::String,
3875 #[prost(message, optional, tag = "3")]
3877 pub local_time: ::core::option::Option<Timestamp>,
3878 #[prost(message, optional, tag = "4")]
3881 pub peer_uptime: ::core::option::Option<Duration>,
3882 #[prost(message, optional, tag = "5")]
3884 pub network_info: ::core::option::Option<node_info::NetworkInfo>,
3885 #[prost(oneof = "node_info::Details", tags = "6, 7")]
3887 pub details: ::core::option::Option<node_info::Details>,
3888}
3889pub mod node_info {
3891 #[derive(Clone, PartialEq, ::prost::Message)]
3893 pub struct NetworkInfo {
3894 #[prost(message, optional, tag = "1")]
3896 pub node_id: ::core::option::Option<super::PeerId>,
3897 #[prost(uint64, tag = "2")]
3899 pub peer_total_sent: u64,
3900 #[prost(uint64, tag = "3")]
3902 pub peer_total_received: u64,
3903 #[prost(uint64, tag = "4")]
3905 pub avg_bps_in: u64,
3906 #[prost(uint64, tag = "5")]
3908 pub avg_bps_out: u64,
3909 }
3910 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3912 pub struct BakerConsensusInfo {
3913 #[prost(message, optional, tag = "1")]
3914 pub baker_id: ::core::option::Option<super::BakerId>,
3915 #[prost(oneof = "baker_consensus_info::Status", tags = "2, 3, 4")]
3917 pub status: ::core::option::Option<baker_consensus_info::Status>,
3918 }
3919 pub mod baker_consensus_info {
3921 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3925 pub struct ActiveBakerCommitteeInfo {}
3926 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3930 pub struct ActiveFinalizerCommitteeInfo {}
3931 #[derive(
3935 Clone,
3936 Copy,
3937 Debug,
3938 PartialEq,
3939 Eq,
3940 Hash,
3941 PartialOrd,
3942 Ord,
3943 ::prost::Enumeration
3944 )]
3945 #[repr(i32)]
3946 pub enum PassiveCommitteeInfo {
3947 NotInCommittee = 0,
3950 AddedButNotActiveInCommittee = 1,
3953 AddedButWrongKeys = 2,
3957 }
3958 impl PassiveCommitteeInfo {
3959 pub fn as_str_name(&self) -> &'static str {
3964 match self {
3965 Self::NotInCommittee => "NOT_IN_COMMITTEE",
3966 Self::AddedButNotActiveInCommittee => {
3967 "ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE"
3968 }
3969 Self::AddedButWrongKeys => "ADDED_BUT_WRONG_KEYS",
3970 }
3971 }
3972 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3974 match value {
3975 "NOT_IN_COMMITTEE" => Some(Self::NotInCommittee),
3976 "ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE" => {
3977 Some(Self::AddedButNotActiveInCommittee)
3978 }
3979 "ADDED_BUT_WRONG_KEYS" => Some(Self::AddedButWrongKeys),
3980 _ => None,
3981 }
3982 }
3983 }
3984 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3986 pub enum Status {
3987 #[prost(enumeration = "PassiveCommitteeInfo", tag = "2")]
3989 PassiveCommitteeInfo(i32),
3990 #[prost(message, tag = "3")]
3993 ActiveBakerCommitteeInfo(ActiveBakerCommitteeInfo),
3994 #[prost(message, tag = "4")]
3997 ActiveFinalizerCommitteeInfo(ActiveFinalizerCommitteeInfo),
3998 }
3999 }
4000 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4002 pub struct Node {
4003 #[prost(oneof = "node::ConsensusStatus", tags = "1, 2, 3")]
4004 pub consensus_status: ::core::option::Option<node::ConsensusStatus>,
4005 }
4006 pub mod node {
4008 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4009 pub enum ConsensusStatus {
4010 #[prost(message, tag = "1")]
4015 NotRunning(super::super::Empty),
4016 #[prost(message, tag = "2")]
4022 Passive(super::super::Empty),
4023 #[prost(message, tag = "3")]
4025 Active(super::BakerConsensusInfo),
4026 }
4027 }
4028 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4030 pub enum Details {
4031 #[prost(message, tag = "6")]
4033 Bootstrapper(super::Empty),
4034 #[prost(message, tag = "7")]
4037 Node(Node),
4038 }
4039}
4040#[derive(Clone, PartialEq, ::prost::Message)]
4041pub struct SendBlockItemRequest {
4042 #[prost(oneof = "send_block_item_request::BlockItem", tags = "1, 2, 3")]
4043 pub block_item: ::core::option::Option<send_block_item_request::BlockItem>,
4044}
4045pub mod send_block_item_request {
4047 #[derive(Clone, PartialEq, ::prost::Oneof)]
4048 pub enum BlockItem {
4049 #[prost(message, tag = "1")]
4051 AccountTransaction(super::AccountTransaction),
4052 #[prost(message, tag = "2")]
4056 CredentialDeployment(super::CredentialDeployment),
4057 #[prost(message, tag = "3")]
4060 UpdateInstruction(super::UpdateInstruction),
4061 }
4062}
4063#[derive(Clone, PartialEq, ::prost::Message)]
4067pub struct CredentialDeployment {
4068 #[prost(message, optional, tag = "1")]
4069 pub message_expiry: ::core::option::Option<TransactionTime>,
4070 #[prost(oneof = "credential_deployment::Payload", tags = "2")]
4072 pub payload: ::core::option::Option<credential_deployment::Payload>,
4073}
4074pub mod credential_deployment {
4076 #[derive(Clone, PartialEq, ::prost::Oneof)]
4078 pub enum Payload {
4079 #[prost(bytes, tag = "2")]
4082 RawPayload(::prost::alloc::vec::Vec<u8>),
4083 }
4084}
4085#[derive(Clone, PartialEq, ::prost::Message)]
4088pub struct Signature {
4089 #[prost(bytes = "vec", tag = "1")]
4090 pub value: ::prost::alloc::vec::Vec<u8>,
4091}
4092#[derive(Clone, PartialEq, ::prost::Message)]
4095pub struct SignatureMap {
4096 #[prost(map = "uint32, message", tag = "1")]
4097 pub signatures: ::std::collections::HashMap<u32, Signature>,
4098}
4099#[derive(Clone, PartialEq, ::prost::Message)]
4103pub struct AccountSignatureMap {
4104 #[prost(map = "uint32, message", tag = "1")]
4105 pub signatures: ::std::collections::HashMap<u32, Signature>,
4106}
4107#[derive(Clone, PartialEq, ::prost::Message)]
4108pub struct AccountTransactionSignature {
4109 #[prost(map = "uint32, message", tag = "1")]
4113 pub signatures: ::std::collections::HashMap<u32, AccountSignatureMap>,
4114}
4115#[derive(Clone, PartialEq, ::prost::Message)]
4118pub struct AccountTransactionHeader {
4119 #[prost(message, optional, tag = "1")]
4121 pub sender: ::core::option::Option<AccountAddress>,
4122 #[prost(message, optional, tag = "2")]
4124 pub sequence_number: ::core::option::Option<SequenceNumber>,
4125 #[prost(message, optional, tag = "3")]
4127 pub energy_amount: ::core::option::Option<Energy>,
4128 #[prost(message, optional, tag = "5")]
4130 pub expiry: ::core::option::Option<TransactionTime>,
4131}
4132#[derive(Clone, PartialEq, ::prost::Message)]
4134pub struct InitContractPayload {
4135 #[prost(message, optional, tag = "1")]
4137 pub amount: ::core::option::Option<Amount>,
4138 #[prost(message, optional, tag = "2")]
4140 pub module_ref: ::core::option::Option<ModuleRef>,
4141 #[prost(message, optional, tag = "3")]
4144 pub init_name: ::core::option::Option<InitName>,
4145 #[prost(message, optional, tag = "4")]
4147 pub parameter: ::core::option::Option<Parameter>,
4148}
4149#[derive(Clone, PartialEq, ::prost::Message)]
4151pub struct UpdateContractPayload {
4152 #[prost(message, optional, tag = "1")]
4154 pub amount: ::core::option::Option<Amount>,
4155 #[prost(message, optional, tag = "2")]
4157 pub address: ::core::option::Option<ContractAddress>,
4158 #[prost(message, optional, tag = "3")]
4161 pub receive_name: ::core::option::Option<ReceiveName>,
4162 #[prost(message, optional, tag = "4")]
4164 pub parameter: ::core::option::Option<Parameter>,
4165}
4166#[derive(Clone, PartialEq, ::prost::Message)]
4168pub struct TransferPayload {
4169 #[prost(message, optional, tag = "1")]
4171 pub amount: ::core::option::Option<Amount>,
4172 #[prost(message, optional, tag = "2")]
4174 pub receiver: ::core::option::Option<AccountAddress>,
4175}
4176#[derive(Clone, PartialEq, ::prost::Message)]
4178pub struct TransferWithMemoPayload {
4179 #[prost(message, optional, tag = "1")]
4181 pub amount: ::core::option::Option<Amount>,
4182 #[prost(message, optional, tag = "2")]
4184 pub receiver: ::core::option::Option<AccountAddress>,
4185 #[prost(message, optional, tag = "3")]
4187 pub memo: ::core::option::Option<Memo>,
4188}
4189#[derive(Clone, PartialEq, ::prost::Message)]
4191pub struct AccountTransactionPayload {
4192 #[prost(
4193 oneof = "account_transaction_payload::Payload",
4194 tags = "1, 2, 3, 4, 5, 6, 7"
4195 )]
4196 pub payload: ::core::option::Option<account_transaction_payload::Payload>,
4197}
4198pub mod account_transaction_payload {
4200 #[derive(Clone, PartialEq, ::prost::Oneof)]
4201 pub enum Payload {
4202 #[prost(bytes, tag = "1")]
4205 RawPayload(::prost::alloc::vec::Vec<u8>),
4206 #[prost(message, tag = "2")]
4208 DeployModule(super::VersionedModuleSource),
4209 #[prost(message, tag = "3")]
4210 InitContract(super::InitContractPayload),
4211 #[prost(message, tag = "4")]
4212 UpdateContract(super::UpdateContractPayload),
4213 #[prost(message, tag = "5")]
4214 Transfer(super::TransferPayload),
4215 #[prost(message, tag = "6")]
4216 TransferWithMemo(super::TransferWithMemoPayload),
4217 #[prost(message, tag = "7")]
4218 RegisterData(super::RegisteredData),
4219 }
4220}
4221#[derive(Clone, PartialEq, ::prost::Message)]
4224pub struct PreAccountTransaction {
4225 #[prost(message, optional, tag = "1")]
4226 pub header: ::core::option::Option<AccountTransactionHeader>,
4227 #[prost(message, optional, tag = "2")]
4228 pub payload: ::core::option::Option<AccountTransactionPayload>,
4229}
4230#[derive(Clone, PartialEq, ::prost::Message)]
4233pub struct AccountTransaction {
4234 #[prost(message, optional, tag = "1")]
4235 pub signature: ::core::option::Option<AccountTransactionSignature>,
4236 #[prost(message, optional, tag = "2")]
4237 pub header: ::core::option::Option<AccountTransactionHeader>,
4238 #[prost(message, optional, tag = "3")]
4239 pub payload: ::core::option::Option<AccountTransactionPayload>,
4240}
4241#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4242pub struct UpdateInstructionHeader {
4243 #[prost(message, optional, tag = "1")]
4244 pub sequence_number: ::core::option::Option<UpdateSequenceNumber>,
4245 #[prost(message, optional, tag = "2")]
4246 pub effective_time: ::core::option::Option<TransactionTime>,
4247 #[prost(message, optional, tag = "3")]
4248 pub timeout: ::core::option::Option<TransactionTime>,
4249}
4250#[derive(Clone, PartialEq, ::prost::Message)]
4252pub struct UpdateInstructionPayload {
4253 #[prost(oneof = "update_instruction_payload::Payload", tags = "3")]
4254 pub payload: ::core::option::Option<update_instruction_payload::Payload>,
4255}
4256pub mod update_instruction_payload {
4258 #[derive(Clone, PartialEq, ::prost::Oneof)]
4259 pub enum Payload {
4260 #[prost(bytes, tag = "3")]
4262 RawPayload(::prost::alloc::vec::Vec<u8>),
4263 }
4264}
4265#[derive(Clone, PartialEq, ::prost::Message)]
4266pub struct UpdateInstruction {
4267 #[prost(message, optional, tag = "1")]
4269 pub signatures: ::core::option::Option<SignatureMap>,
4270 #[prost(message, optional, tag = "2")]
4271 pub header: ::core::option::Option<UpdateInstructionHeader>,
4272 #[prost(message, optional, tag = "3")]
4273 pub payload: ::core::option::Option<UpdateInstructionPayload>,
4274}
4275#[derive(Clone, PartialEq, ::prost::Message)]
4278pub struct AccountTransactionSignHash {
4279 #[prost(bytes = "vec", tag = "1")]
4280 pub value: ::prost::alloc::vec::Vec<u8>,
4281}
4282#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4285pub struct CredentialsPerBlockLimit {
4286 #[prost(uint32, tag = "1")]
4287 pub value: u32,
4288}
4289#[derive(Clone, PartialEq, ::prost::Message)]
4291pub struct ChainParametersV0 {
4292 #[prost(message, optional, tag = "1")]
4294 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
4295 #[prost(message, optional, tag = "2")]
4297 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4298 #[prost(message, optional, tag = "3")]
4300 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4301 #[prost(message, optional, tag = "4")]
4304 pub baker_cooldown_epochs: ::core::option::Option<Epoch>,
4305 #[prost(message, optional, tag = "5")]
4307 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4308 #[prost(message, optional, tag = "6")]
4310 pub mint_distribution: ::core::option::Option<MintDistributionCpv0>,
4311 #[prost(message, optional, tag = "7")]
4313 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4314 #[prost(message, optional, tag = "8")]
4316 pub gas_rewards: ::core::option::Option<GasRewards>,
4317 #[prost(message, optional, tag = "9")]
4319 pub foundation_account: ::core::option::Option<AccountAddress>,
4320 #[prost(message, optional, tag = "10")]
4322 pub minimum_threshold_for_baking: ::core::option::Option<Amount>,
4323 #[prost(message, optional, tag = "11")]
4325 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4326 #[prost(message, optional, tag = "12")]
4328 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4329 #[prost(message, optional, tag = "13")]
4331 pub level2_keys: ::core::option::Option<AuthorizationsV0>,
4332}
4333#[derive(Clone, PartialEq, ::prost::Message)]
4335pub struct ChainParametersV1 {
4336 #[prost(message, optional, tag = "1")]
4338 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
4339 #[prost(message, optional, tag = "2")]
4341 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4342 #[prost(message, optional, tag = "3")]
4344 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4345 #[prost(message, optional, tag = "4")]
4348 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4349 #[prost(message, optional, tag = "5")]
4353 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4354 #[prost(message, optional, tag = "6")]
4356 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4357 #[prost(message, optional, tag = "7")]
4359 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4360 #[prost(message, optional, tag = "8")]
4362 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4363 #[prost(message, optional, tag = "9")]
4365 pub gas_rewards: ::core::option::Option<GasRewards>,
4366 #[prost(message, optional, tag = "10")]
4368 pub foundation_account: ::core::option::Option<AccountAddress>,
4369 #[prost(message, optional, tag = "11")]
4371 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4372 #[prost(message, optional, tag = "12")]
4374 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4375 #[prost(message, optional, tag = "13")]
4377 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4378 #[prost(message, optional, tag = "14")]
4380 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4381}
4382#[derive(Clone, PartialEq, ::prost::Message)]
4384pub struct ChainParametersV2 {
4385 #[prost(message, optional, tag = "1")]
4387 pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
4388 #[prost(message, optional, tag = "2")]
4390 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4391 #[prost(message, optional, tag = "3")]
4393 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4394 #[prost(message, optional, tag = "4")]
4397 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4398 #[prost(message, optional, tag = "5")]
4402 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4403 #[prost(message, optional, tag = "6")]
4405 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4406 #[prost(message, optional, tag = "7")]
4408 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4409 #[prost(message, optional, tag = "8")]
4411 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4412 #[prost(message, optional, tag = "9")]
4414 pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
4415 #[prost(message, optional, tag = "10")]
4417 pub foundation_account: ::core::option::Option<AccountAddress>,
4418 #[prost(message, optional, tag = "11")]
4420 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4421 #[prost(message, optional, tag = "12")]
4423 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4424 #[prost(message, optional, tag = "13")]
4426 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4427 #[prost(message, optional, tag = "14")]
4429 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4430 #[prost(message, optional, tag = "15")]
4432 pub finalization_committee_parameters: ::core::option::Option<
4433 FinalizationCommitteeParameters,
4434 >,
4435}
4436#[derive(Clone, PartialEq, ::prost::Message)]
4438pub struct ChainParametersV3 {
4439 #[prost(message, optional, tag = "1")]
4441 pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
4442 #[prost(message, optional, tag = "2")]
4444 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4445 #[prost(message, optional, tag = "3")]
4447 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4448 #[prost(message, optional, tag = "4")]
4451 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4452 #[prost(message, optional, tag = "5")]
4456 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4457 #[prost(message, optional, tag = "6")]
4459 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4460 #[prost(message, optional, tag = "7")]
4462 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4463 #[prost(message, optional, tag = "8")]
4465 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4466 #[prost(message, optional, tag = "9")]
4468 pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
4469 #[prost(message, optional, tag = "10")]
4471 pub foundation_account: ::core::option::Option<AccountAddress>,
4472 #[prost(message, optional, tag = "11")]
4474 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4475 #[prost(message, optional, tag = "12")]
4477 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4478 #[prost(message, optional, tag = "13")]
4480 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4481 #[prost(message, optional, tag = "14")]
4483 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4484 #[prost(message, optional, tag = "15")]
4486 pub finalization_committee_parameters: ::core::option::Option<
4487 FinalizationCommitteeParameters,
4488 >,
4489 #[prost(message, optional, tag = "16")]
4491 pub validator_score_parameters: ::core::option::Option<ValidatorScoreParameters>,
4492}
4493#[derive(Clone, PartialEq, ::prost::Message)]
4495pub struct ChainParameters {
4496 #[prost(oneof = "chain_parameters::Parameters", tags = "1, 2, 3, 4")]
4497 pub parameters: ::core::option::Option<chain_parameters::Parameters>,
4498}
4499pub mod chain_parameters {
4501 #[derive(Clone, PartialEq, ::prost::Oneof)]
4502 pub enum Parameters {
4503 #[prost(message, tag = "1")]
4505 V0(super::ChainParametersV0),
4506 #[prost(message, tag = "2")]
4508 V1(super::ChainParametersV1),
4509 #[prost(message, tag = "3")]
4511 V2(super::ChainParametersV2),
4512 #[prost(message, tag = "4")]
4514 V3(super::ChainParametersV3),
4515 }
4516}
4517#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4519pub struct FinalizationSummaryParty {
4520 #[prost(message, optional, tag = "1")]
4522 pub baker: ::core::option::Option<BakerId>,
4523 #[prost(uint64, tag = "2")]
4525 pub weight: u64,
4526 #[prost(bool, tag = "3")]
4528 pub signed: bool,
4529}
4530#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4533pub struct FinalizationIndex {
4534 #[prost(uint64, tag = "1")]
4535 pub value: u64,
4536}
4537#[derive(Clone, PartialEq, ::prost::Message)]
4539pub struct FinalizationSummary {
4540 #[prost(message, optional, tag = "1")]
4542 pub block: ::core::option::Option<BlockHash>,
4543 #[prost(message, optional, tag = "2")]
4545 pub index: ::core::option::Option<FinalizationIndex>,
4546 #[prost(message, optional, tag = "3")]
4548 pub delay: ::core::option::Option<BlockHeight>,
4549 #[prost(message, repeated, tag = "4")]
4552 pub finalizers: ::prost::alloc::vec::Vec<FinalizationSummaryParty>,
4553}
4554#[derive(Clone, PartialEq, ::prost::Message)]
4556pub struct BlockFinalizationSummary {
4557 #[prost(oneof = "block_finalization_summary::Summary", tags = "1, 2")]
4558 pub summary: ::core::option::Option<block_finalization_summary::Summary>,
4559}
4560pub mod block_finalization_summary {
4562 #[derive(Clone, PartialEq, ::prost::Oneof)]
4563 pub enum Summary {
4564 #[prost(message, tag = "1")]
4566 None(super::Empty),
4567 #[prost(message, tag = "2")]
4569 Record(super::FinalizationSummary),
4570 }
4571}
4572#[derive(Clone, PartialEq, ::prost::Message)]
4573pub struct BlockItem {
4574 #[prost(message, optional, tag = "1")]
4576 pub hash: ::core::option::Option<TransactionHash>,
4577 #[prost(oneof = "block_item::BlockItem", tags = "2, 3, 4")]
4578 pub block_item: ::core::option::Option<block_item::BlockItem>,
4579}
4580pub mod block_item {
4582 #[derive(Clone, PartialEq, ::prost::Oneof)]
4583 pub enum BlockItem {
4584 #[prost(message, tag = "2")]
4586 AccountTransaction(super::AccountTransaction),
4587 #[prost(message, tag = "3")]
4591 CredentialDeployment(super::CredentialDeployment),
4592 #[prost(message, tag = "4")]
4595 UpdateInstruction(super::UpdateInstruction),
4596 }
4597}
4598#[derive(Clone, PartialEq, ::prost::Message)]
4601pub struct BakerRewardPeriodInfo {
4602 #[prost(message, optional, tag = "1")]
4604 pub baker: ::core::option::Option<BakerInfo>,
4605 #[prost(message, optional, tag = "2")]
4608 pub effective_stake: ::core::option::Option<Amount>,
4609 #[prost(message, optional, tag = "3")]
4611 pub commission_rates: ::core::option::Option<CommissionRates>,
4612 #[prost(message, optional, tag = "4")]
4614 pub equity_capital: ::core::option::Option<Amount>,
4615 #[prost(message, optional, tag = "5")]
4617 pub delegated_capital: ::core::option::Option<Amount>,
4618 #[prost(bool, tag = "6")]
4620 pub is_finalizer: bool,
4621}
4622#[derive(Clone, PartialEq, ::prost::Message)]
4624pub struct QuorumSignature {
4625 #[prost(bytes = "vec", tag = "1")]
4628 pub value: ::prost::alloc::vec::Vec<u8>,
4629}
4630#[derive(Clone, PartialEq, ::prost::Message)]
4635pub struct QuorumCertificate {
4636 #[prost(message, optional, tag = "1")]
4638 pub block_hash: ::core::option::Option<BlockHash>,
4639 #[prost(message, optional, tag = "2")]
4641 pub round: ::core::option::Option<Round>,
4642 #[prost(message, optional, tag = "3")]
4644 pub epoch: ::core::option::Option<Epoch>,
4645 #[prost(message, optional, tag = "4")]
4647 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
4648 #[prost(message, repeated, tag = "5")]
4653 pub signatories: ::prost::alloc::vec::Vec<BakerId>,
4654}
4655#[derive(Clone, PartialEq, ::prost::Message)]
4659pub struct FinalizerRound {
4660 #[prost(message, optional, tag = "1")]
4662 pub round: ::core::option::Option<Round>,
4663 #[prost(message, repeated, tag = "2")]
4666 pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
4667}
4668#[derive(Clone, PartialEq, ::prost::Message)]
4670pub struct TimeoutSignature {
4671 #[prost(bytes = "vec", tag = "1")]
4674 pub value: ::prost::alloc::vec::Vec<u8>,
4675}
4676#[derive(Clone, PartialEq, ::prost::Message)]
4681pub struct TimeoutCertificate {
4682 #[prost(message, optional, tag = "1")]
4684 pub round: ::core::option::Option<Round>,
4685 #[prost(message, optional, tag = "2")]
4688 pub min_epoch: ::core::option::Option<Epoch>,
4689 #[prost(message, repeated, tag = "3")]
4692 pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
4693 #[prost(message, repeated, tag = "4")]
4696 pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
4697 #[prost(message, optional, tag = "5")]
4700 pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
4701}
4702#[derive(Clone, PartialEq, ::prost::Message)]
4706pub struct SuccessorProof {
4707 #[prost(bytes = "vec", tag = "1")]
4710 pub value: ::prost::alloc::vec::Vec<u8>,
4711}
4712#[derive(Clone, PartialEq, ::prost::Message)]
4717pub struct EpochFinalizationEntry {
4718 #[prost(message, optional, tag = "1")]
4720 pub finalized_qc: ::core::option::Option<QuorumCertificate>,
4721 #[prost(message, optional, tag = "2")]
4724 pub successor_qc: ::core::option::Option<QuorumCertificate>,
4725 #[prost(message, optional, tag = "3")]
4728 pub successor_proof: ::core::option::Option<SuccessorProof>,
4729}
4730#[derive(Clone, PartialEq, ::prost::Message)]
4733pub struct BlockCertificates {
4734 #[prost(message, optional, tag = "1")]
4737 pub quorum_certificate: ::core::option::Option<QuorumCertificate>,
4738 #[prost(message, optional, tag = "2")]
4741 pub timeout_certificate: ::core::option::Option<TimeoutCertificate>,
4742 #[prost(message, optional, tag = "3")]
4745 pub epoch_finalization_entry: ::core::option::Option<EpochFinalizationEntry>,
4746}
4747#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4749pub struct WinningBaker {
4750 #[prost(message, optional, tag = "1")]
4752 pub round: ::core::option::Option<Round>,
4753 #[prost(message, optional, tag = "2")]
4755 pub winner: ::core::option::Option<BakerId>,
4756 #[prost(bool, tag = "3")]
4758 pub present: bool,
4759}
4760#[derive(Clone, PartialEq, ::prost::Message)]
4764pub struct DryRunRequest {
4765 #[prost(oneof = "dry_run_request::Request", tags = "1, 2, 3")]
4766 pub request: ::core::option::Option<dry_run_request::Request>,
4767}
4768pub mod dry_run_request {
4770 #[derive(Clone, PartialEq, ::prost::Oneof)]
4771 pub enum Request {
4772 #[prost(message, tag = "1")]
4778 LoadBlockState(super::BlockHashInput),
4779 #[prost(message, tag = "2")]
4781 StateQuery(super::DryRunStateQuery),
4782 #[prost(message, tag = "3")]
4784 StateOperation(super::DryRunStateOperation),
4785 }
4786}
4787#[derive(Clone, PartialEq, ::prost::Message)]
4789pub struct DryRunStateQuery {
4790 #[prost(oneof = "dry_run_state_query::Query", tags = "1, 2, 3")]
4791 pub query: ::core::option::Option<dry_run_state_query::Query>,
4792}
4793pub mod dry_run_state_query {
4795 #[derive(Clone, PartialEq, ::prost::Oneof)]
4796 pub enum Query {
4797 #[prost(message, tag = "1")]
4801 GetAccountInfo(super::AccountIdentifierInput),
4802 #[prost(message, tag = "2")]
4806 GetInstanceInfo(super::ContractAddress),
4807 #[prost(message, tag = "3")]
4813 InvokeInstance(super::DryRunInvokeInstance),
4814 }
4815}
4816#[derive(Clone, PartialEq, ::prost::Message)]
4818pub struct DryRunInvokeInstance {
4819 #[prost(message, optional, tag = "1")]
4824 pub invoker: ::core::option::Option<Address>,
4825 #[prost(message, optional, tag = "2")]
4827 pub instance: ::core::option::Option<ContractAddress>,
4828 #[prost(message, optional, tag = "3")]
4830 pub amount: ::core::option::Option<Amount>,
4831 #[prost(message, optional, tag = "4")]
4833 pub entrypoint: ::core::option::Option<ReceiveName>,
4834 #[prost(message, optional, tag = "5")]
4836 pub parameter: ::core::option::Option<Parameter>,
4837 #[prost(message, optional, tag = "6")]
4840 pub energy: ::core::option::Option<Energy>,
4841}
4842#[derive(Clone, PartialEq, ::prost::Message)]
4844pub struct DryRunStateOperation {
4845 #[prost(oneof = "dry_run_state_operation::Operation", tags = "1, 2, 3")]
4846 pub operation: ::core::option::Option<dry_run_state_operation::Operation>,
4847}
4848pub mod dry_run_state_operation {
4850 #[derive(Clone, PartialEq, ::prost::Oneof)]
4851 pub enum Operation {
4852 #[prost(message, tag = "1")]
4857 SetTimestamp(super::Timestamp),
4858 #[prost(message, tag = "2")]
4863 MintToAccount(super::DryRunMintToAccount),
4864 #[prost(message, tag = "3")]
4869 RunTransaction(super::DryRunTransaction),
4870 }
4871}
4872#[derive(Clone, PartialEq, ::prost::Message)]
4874pub struct DryRunMintToAccount {
4875 #[prost(message, optional, tag = "1")]
4877 pub account: ::core::option::Option<AccountAddress>,
4878 #[prost(message, optional, tag = "2")]
4880 pub amount: ::core::option::Option<Amount>,
4881}
4882#[derive(Clone, PartialEq, ::prost::Message)]
4884pub struct DryRunTransaction {
4885 #[prost(message, optional, tag = "1")]
4887 pub sender: ::core::option::Option<AccountAddress>,
4888 #[prost(message, optional, tag = "2")]
4890 pub energy_amount: ::core::option::Option<Energy>,
4891 #[prost(message, optional, tag = "3")]
4893 pub payload: ::core::option::Option<AccountTransactionPayload>,
4894 #[prost(message, repeated, tag = "4")]
4907 pub signatures: ::prost::alloc::vec::Vec<DryRunSignature>,
4908}
4909#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4913pub struct DryRunSignature {
4914 #[prost(uint32, tag = "1")]
4916 pub credential: u32,
4917 #[prost(uint32, tag = "2")]
4919 pub key: u32,
4920}
4921#[derive(Clone, PartialEq, ::prost::Message)]
4923pub struct DryRunResponse {
4924 #[prost(message, optional, tag = "3")]
4926 pub quota_remaining: ::core::option::Option<Energy>,
4927 #[prost(oneof = "dry_run_response::Response", tags = "1, 2")]
4928 pub response: ::core::option::Option<dry_run_response::Response>,
4929}
4930pub mod dry_run_response {
4932 #[derive(Clone, PartialEq, ::prost::Oneof)]
4933 pub enum Response {
4934 #[prost(message, tag = "1")]
4936 Error(super::DryRunErrorResponse),
4937 #[prost(message, tag = "2")]
4939 Success(super::DryRunSuccessResponse),
4940 }
4941}
4942#[derive(Clone, PartialEq, ::prost::Message)]
4943pub struct DryRunErrorResponse {
4944 #[prost(oneof = "dry_run_error_response::Error", tags = "1, 2, 3, 4, 5, 6, 8, 9")]
4945 pub error: ::core::option::Option<dry_run_error_response::Error>,
4946}
4947pub mod dry_run_error_response {
4949 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4952 pub struct NoState {}
4953 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4955 pub struct BlockNotFound {}
4956 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4958 pub struct AccountNotFound {}
4959 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4961 pub struct InstanceNotFound {}
4962 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4964 pub struct AmountOverLimit {
4965 #[prost(message, optional, tag = "1")]
4967 pub amount_limit: ::core::option::Option<super::Amount>,
4968 }
4969 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4972 pub struct BalanceInsufficient {
4973 #[prost(message, optional, tag = "1")]
4975 pub required_amount: ::core::option::Option<super::Amount>,
4976 #[prost(message, optional, tag = "2")]
4978 pub available_amount: ::core::option::Option<super::Amount>,
4979 }
4980 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4983 pub struct EnergyInsufficient {
4984 #[prost(message, optional, tag = "1")]
4990 pub energy_required: ::core::option::Option<super::Energy>,
4991 }
4992 #[derive(Clone, PartialEq, ::prost::Message)]
4994 pub struct InvokeFailure {
4995 #[prost(bytes = "vec", optional, tag = "1")]
5000 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5001 #[prost(message, optional, tag = "2")]
5003 pub used_energy: ::core::option::Option<super::Energy>,
5004 #[prost(message, optional, tag = "3")]
5006 pub reason: ::core::option::Option<super::RejectReason>,
5007 }
5008 #[derive(Clone, PartialEq, ::prost::Oneof)]
5009 pub enum Error {
5010 #[prost(message, tag = "1")]
5013 NoState(NoState),
5014 #[prost(message, tag = "2")]
5017 BlockNotFound(BlockNotFound),
5018 #[prost(message, tag = "3")]
5021 AccountNotFound(AccountNotFound),
5022 #[prost(message, tag = "4")]
5025 InstanceNotFound(InstanceNotFound),
5026 #[prost(message, tag = "5")]
5029 AmountOverLimit(AmountOverLimit),
5030 #[prost(message, tag = "6")]
5033 BalanceInsufficient(BalanceInsufficient),
5034 #[prost(message, tag = "8")]
5037 EnergyInsufficient(EnergyInsufficient),
5038 #[prost(message, tag = "9")]
5041 InvokeFailed(InvokeFailure),
5042 }
5043}
5044#[derive(Clone, PartialEq, ::prost::Message)]
5046pub struct DryRunSuccessResponse {
5047 #[prost(oneof = "dry_run_success_response::Response", tags = "1, 2, 3, 4, 5, 6, 7")]
5048 pub response: ::core::option::Option<dry_run_success_response::Response>,
5049}
5050pub mod dry_run_success_response {
5052 #[derive(Clone, PartialEq, ::prost::Message)]
5054 pub struct BlockStateLoaded {
5055 #[prost(message, optional, tag = "1")]
5057 pub current_timestamp: ::core::option::Option<super::Timestamp>,
5058 #[prost(message, optional, tag = "2")]
5060 pub block_hash: ::core::option::Option<super::BlockHash>,
5061 #[prost(enumeration = "super::ProtocolVersion", tag = "3")]
5064 pub protocol_version: i32,
5065 }
5066 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5068 pub struct TimestampSet {}
5069 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5071 pub struct MintedToAccount {}
5072 #[derive(Clone, PartialEq, ::prost::Message)]
5074 pub struct TransactionExecuted {
5075 #[prost(message, optional, tag = "1")]
5077 pub energy_cost: ::core::option::Option<super::Energy>,
5078 #[prost(message, optional, tag = "2")]
5080 pub details: ::core::option::Option<super::AccountTransactionDetails>,
5081 #[prost(bytes = "vec", optional, tag = "3")]
5084 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5085 }
5086 #[derive(Clone, PartialEq, ::prost::Message)]
5088 pub struct InvokeSuccess {
5089 #[prost(bytes = "vec", optional, tag = "1")]
5092 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5093 #[prost(message, optional, tag = "2")]
5095 pub used_energy: ::core::option::Option<super::Energy>,
5096 #[prost(message, repeated, tag = "3")]
5098 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
5099 }
5100 #[derive(Clone, PartialEq, ::prost::Oneof)]
5101 pub enum Response {
5102 #[prost(message, tag = "1")]
5105 BlockStateLoaded(BlockStateLoaded),
5106 #[prost(message, tag = "2")]
5109 AccountInfo(super::AccountInfo),
5110 #[prost(message, tag = "3")]
5113 InstanceInfo(super::InstanceInfo),
5114 #[prost(message, tag = "4")]
5116 InvokeSucceeded(InvokeSuccess),
5117 #[prost(message, tag = "5")]
5120 TimestampSet(TimestampSet),
5121 #[prost(message, tag = "6")]
5124 MintedToAccount(MintedToAccount),
5125 #[prost(message, tag = "7")]
5129 TransactionExecuted(TransactionExecuted),
5130 }
5131}
5132#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5134pub struct FinalizerIndex {
5135 #[prost(uint32, tag = "1")]
5136 pub value: u32,
5137}
5138#[derive(Clone, PartialEq, ::prost::Message)]
5140pub struct QuorumMessage {
5141 #[prost(message, optional, tag = "1")]
5143 pub signature: ::core::option::Option<QuorumSignature>,
5144 #[prost(message, optional, tag = "2")]
5146 pub block: ::core::option::Option<BlockHash>,
5147 #[prost(message, optional, tag = "3")]
5149 pub finalizer: ::core::option::Option<FinalizerIndex>,
5150 #[prost(message, optional, tag = "4")]
5152 pub round: ::core::option::Option<Round>,
5153 #[prost(message, optional, tag = "5")]
5155 pub epoch: ::core::option::Option<Epoch>,
5156}
5157#[derive(Clone, PartialEq, ::prost::Message)]
5158pub struct RawQuorumCertificate {
5159 #[prost(message, optional, tag = "1")]
5161 pub block_hash: ::core::option::Option<BlockHash>,
5162 #[prost(message, optional, tag = "2")]
5164 pub round: ::core::option::Option<Round>,
5165 #[prost(message, optional, tag = "3")]
5167 pub epoch: ::core::option::Option<Epoch>,
5168 #[prost(message, optional, tag = "4")]
5170 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
5171 #[prost(message, repeated, tag = "5")]
5176 pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
5177}
5178#[derive(Clone, PartialEq, ::prost::Message)]
5181pub struct BlockSignature {
5182 #[prost(bytes = "vec", tag = "1")]
5183 pub value: ::prost::alloc::vec::Vec<u8>,
5184}
5185#[derive(Clone, PartialEq, ::prost::Message)]
5187pub struct TimeoutMessage {
5188 #[prost(message, optional, tag = "1")]
5190 pub finalizer: ::core::option::Option<FinalizerIndex>,
5191 #[prost(message, optional, tag = "2")]
5193 pub round: ::core::option::Option<Round>,
5194 #[prost(message, optional, tag = "3")]
5197 pub epoch: ::core::option::Option<Epoch>,
5198 #[prost(message, optional, tag = "4")]
5200 pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
5201 #[prost(message, optional, tag = "5")]
5203 pub signature: ::core::option::Option<TimeoutSignature>,
5204 #[prost(message, optional, tag = "6")]
5206 pub message_signature: ::core::option::Option<BlockSignature>,
5207}
5208#[derive(Clone, PartialEq, ::prost::Message)]
5209pub struct RawFinalizerRound {
5210 #[prost(message, optional, tag = "1")]
5212 pub round: ::core::option::Option<Round>,
5213 #[prost(message, repeated, tag = "2")]
5216 pub finalizers: ::prost::alloc::vec::Vec<FinalizerIndex>,
5217}
5218#[derive(Clone, PartialEq, ::prost::Message)]
5223pub struct RawTimeoutCertificate {
5224 #[prost(message, optional, tag = "1")]
5226 pub round: ::core::option::Option<Round>,
5227 #[prost(message, optional, tag = "2")]
5230 pub min_epoch: ::core::option::Option<Epoch>,
5231 #[prost(message, repeated, tag = "3")]
5234 pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
5235 #[prost(message, repeated, tag = "4")]
5238 pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
5239 #[prost(message, optional, tag = "5")]
5242 pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
5243}
5244#[derive(Clone, PartialEq, ::prost::Message)]
5245pub struct PersistentRoundStatus {
5246 #[prost(message, optional, tag = "1")]
5248 pub last_signed_quorum_message: ::core::option::Option<QuorumMessage>,
5249 #[prost(message, optional, tag = "2")]
5251 pub last_signed_timeout_message: ::core::option::Option<TimeoutMessage>,
5252 #[prost(message, optional, tag = "3")]
5254 pub last_baked_round: ::core::option::Option<Round>,
5255 #[prost(message, optional, tag = "4")]
5258 pub latest_timeout: ::core::option::Option<RawTimeoutCertificate>,
5259}
5260#[derive(Clone, PartialEq, ::prost::Message)]
5261pub struct RoundTimeout {
5262 #[prost(message, optional, tag = "1")]
5264 pub timeout_certificate: ::core::option::Option<RawTimeoutCertificate>,
5265 #[prost(message, optional, tag = "2")]
5267 pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
5268}
5269#[derive(Clone, PartialEq, ::prost::Message)]
5270pub struct RawFinalizationEntry {
5271 #[prost(message, optional, tag = "1")]
5273 pub finalized_qc: ::core::option::Option<RawQuorumCertificate>,
5274 #[prost(message, optional, tag = "2")]
5277 pub successor_qc: ::core::option::Option<RawQuorumCertificate>,
5278 #[prost(message, optional, tag = "3")]
5281 pub successor_proof: ::core::option::Option<SuccessorProof>,
5282}
5283#[derive(Clone, PartialEq, ::prost::Message)]
5285pub struct RoundStatus {
5286 #[prost(message, optional, tag = "1")]
5292 pub current_round: ::core::option::Option<Round>,
5293 #[prost(message, optional, tag = "2")]
5295 pub highest_certified_block: ::core::option::Option<RawQuorumCertificate>,
5296 #[prost(message, optional, tag = "3")]
5299 pub previous_round_timeout: ::core::option::Option<RoundTimeout>,
5300 #[prost(bool, tag = "4")]
5304 pub round_eligible_to_bake: bool,
5305 #[prost(message, optional, tag = "5")]
5309 pub current_epoch: ::core::option::Option<Epoch>,
5310 #[prost(message, optional, tag = "6")]
5314 pub last_epoch_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
5315 #[prost(message, optional, tag = "7")]
5317 pub current_timeout: ::core::option::Option<Duration>,
5318}
5319#[derive(Clone, PartialEq, ::prost::Message)]
5320pub struct BlockTableSummary {
5321 #[prost(uint64, tag = "1")]
5323 pub dead_block_cache_size: u64,
5324 #[prost(message, repeated, tag = "2")]
5326 pub live_blocks: ::prost::alloc::vec::Vec<BlockHash>,
5327}
5328#[derive(Clone, PartialEq, ::prost::Message)]
5330pub struct BranchBlocks {
5331 #[prost(message, repeated, tag = "1")]
5332 pub blocks_at_branch_height: ::prost::alloc::vec::Vec<BlockHash>,
5333}
5334#[derive(Clone, PartialEq, ::prost::Message)]
5335pub struct RoundExistingBlock {
5336 #[prost(message, optional, tag = "1")]
5338 pub round: ::core::option::Option<Round>,
5339 #[prost(message, optional, tag = "2")]
5341 pub baker: ::core::option::Option<BakerId>,
5342 #[prost(message, optional, tag = "3")]
5344 pub block: ::core::option::Option<BlockHash>,
5345}
5346#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5347pub struct RoundExistingQc {
5348 #[prost(message, optional, tag = "1")]
5350 pub round: ::core::option::Option<Round>,
5351 #[prost(message, optional, tag = "2")]
5353 pub epoch: ::core::option::Option<Epoch>,
5354}
5355#[derive(Clone, PartialEq, ::prost::Message)]
5357pub struct FullBakerInfo {
5358 #[prost(message, optional, tag = "1")]
5360 pub baker_identity: ::core::option::Option<BakerId>,
5361 #[prost(message, optional, tag = "2")]
5363 pub election_verify_key: ::core::option::Option<BakerElectionVerifyKey>,
5364 #[prost(message, optional, tag = "3")]
5366 pub signature_verify_key: ::core::option::Option<BakerSignatureVerifyKey>,
5367 #[prost(message, optional, tag = "4")]
5369 pub aggregation_verify_key: ::core::option::Option<BakerAggregationVerifyKey>,
5370 #[prost(message, optional, tag = "5")]
5372 pub stake: ::core::option::Option<Amount>,
5373}
5374#[derive(Clone, PartialEq, ::prost::Message)]
5377pub struct FinalizationCommitteeHash {
5378 #[prost(bytes = "vec", tag = "1")]
5379 pub value: ::prost::alloc::vec::Vec<u8>,
5380}
5381#[derive(Clone, PartialEq, ::prost::Message)]
5382pub struct BakersAndFinalizers {
5383 #[prost(message, repeated, tag = "1")]
5385 pub bakers: ::prost::alloc::vec::Vec<FullBakerInfo>,
5386 #[prost(message, repeated, tag = "2")]
5389 pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
5390 #[prost(message, optional, tag = "3")]
5392 pub baker_total_stake: ::core::option::Option<Amount>,
5393 #[prost(message, optional, tag = "4")]
5395 pub finalizer_total_stake: ::core::option::Option<Amount>,
5396 #[prost(message, optional, tag = "5")]
5398 pub finalization_committee_hash: ::core::option::Option<FinalizationCommitteeHash>,
5399}
5400#[derive(Clone, PartialEq, ::prost::Message)]
5401pub struct EpochBakers {
5402 #[prost(message, optional, tag = "1")]
5405 pub previous_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5406 #[prost(message, optional, tag = "2")]
5409 pub current_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5410 #[prost(message, optional, tag = "3")]
5413 pub next_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5414 #[prost(message, optional, tag = "4")]
5416 pub next_payday: ::core::option::Option<Epoch>,
5417}
5418#[derive(Clone, PartialEq, ::prost::Message)]
5419pub struct TimeoutMessages {
5420 #[prost(message, optional, tag = "1")]
5422 pub first_epoch: ::core::option::Option<Epoch>,
5423 #[prost(message, repeated, tag = "2")]
5426 pub first_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
5427 #[prost(message, repeated, tag = "3")]
5429 pub second_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
5430}
5431#[derive(Clone, PartialEq, ::prost::Message)]
5432pub struct AggregatedSignatures {
5433 #[prost(message, optional, tag = "1")]
5435 pub signed_block: ::core::option::Option<BlockHash>,
5436 #[prost(message, optional, tag = "2")]
5438 pub signature_weight: ::core::option::Option<Amount>,
5439 #[prost(message, optional, tag = "3")]
5441 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
5442 #[prost(message, repeated, tag = "4")]
5444 pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
5445}
5446#[derive(Clone, PartialEq, ::prost::Message)]
5447pub struct QuorumMessages {
5448 #[prost(message, repeated, tag = "1")]
5450 pub quorum_messages: ::prost::alloc::vec::Vec<QuorumMessage>,
5451 #[prost(message, repeated, tag = "2")]
5453 pub aggregated_signatures: ::prost::alloc::vec::Vec<AggregatedSignatures>,
5454}
5455#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5456pub struct ConsensusDetailedStatusQuery {
5457 #[prost(message, optional, tag = "1")]
5460 pub genesis_index: ::core::option::Option<GenesisIndex>,
5461}
5462#[derive(Clone, PartialEq, ::prost::Message)]
5463pub struct ConsensusDetailedStatus {
5464 #[prost(message, optional, tag = "1")]
5466 pub genesis_block: ::core::option::Option<BlockHash>,
5467 #[prost(message, optional, tag = "2")]
5469 pub persistent_round_status: ::core::option::Option<PersistentRoundStatus>,
5470 #[prost(message, optional, tag = "3")]
5472 pub round_status: ::core::option::Option<RoundStatus>,
5473 #[prost(uint64, tag = "4")]
5475 pub non_finalized_transaction_count: u64,
5476 #[prost(int64, tag = "5")]
5478 pub transaction_table_purge_counter: i64,
5479 #[prost(message, optional, tag = "6")]
5481 pub block_table: ::core::option::Option<BlockTableSummary>,
5482 #[prost(message, repeated, tag = "7")]
5484 pub branches: ::prost::alloc::vec::Vec<BranchBlocks>,
5485 #[prost(message, repeated, tag = "8")]
5488 pub round_existing_blocks: ::prost::alloc::vec::Vec<RoundExistingBlock>,
5489 #[prost(message, repeated, tag = "9")]
5491 pub round_existing_qcs: ::prost::alloc::vec::Vec<RoundExistingQc>,
5492 #[prost(message, optional, tag = "10")]
5494 pub genesis_block_height: ::core::option::Option<AbsoluteBlockHeight>,
5495 #[prost(message, optional, tag = "11")]
5497 pub last_finalized_block: ::core::option::Option<BlockHash>,
5498 #[prost(message, optional, tag = "12")]
5500 pub last_finalized_block_height: ::core::option::Option<BlockHeight>,
5501 #[prost(message, optional, tag = "13")]
5506 pub latest_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
5507 #[prost(message, optional, tag = "14")]
5510 pub epoch_bakers: ::core::option::Option<EpochBakers>,
5511 #[prost(message, optional, tag = "15")]
5513 pub timeout_messages: ::core::option::Option<TimeoutMessages>,
5514 #[prost(message, optional, tag = "16")]
5516 pub terminal_block: ::core::option::Option<BlockHash>,
5517}
5518#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5521pub struct AccountPending {
5522 #[prost(message, optional, tag = "1")]
5523 pub account_index: ::core::option::Option<AccountIndex>,
5524 #[prost(message, optional, tag = "2")]
5525 pub first_timestamp: ::core::option::Option<Timestamp>,
5526}
5527#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5529#[repr(i32)]
5530pub enum OpenStatus {
5531 OpenForAll = 0,
5532 ClosedForNew = 1,
5533 ClosedForAll = 2,
5534}
5535impl OpenStatus {
5536 pub fn as_str_name(&self) -> &'static str {
5541 match self {
5542 Self::OpenForAll => "OPEN_STATUS_OPEN_FOR_ALL",
5543 Self::ClosedForNew => "OPEN_STATUS_CLOSED_FOR_NEW",
5544 Self::ClosedForAll => "OPEN_STATUS_CLOSED_FOR_ALL",
5545 }
5546 }
5547 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5549 match value {
5550 "OPEN_STATUS_OPEN_FOR_ALL" => Some(Self::OpenForAll),
5551 "OPEN_STATUS_CLOSED_FOR_NEW" => Some(Self::ClosedForNew),
5552 "OPEN_STATUS_CLOSED_FOR_ALL" => Some(Self::ClosedForAll),
5553 _ => None,
5554 }
5555 }
5556}
5557#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5559#[repr(i32)]
5560pub enum ContractVersion {
5561 V0 = 0,
5562 V1 = 1,
5563}
5564impl ContractVersion {
5565 pub fn as_str_name(&self) -> &'static str {
5570 match self {
5571 Self::V0 => "V0",
5572 Self::V1 => "V1",
5573 }
5574 }
5575 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5577 match value {
5578 "V0" => Some(Self::V0),
5579 "V1" => Some(Self::V1),
5580 _ => None,
5581 }
5582 }
5583}
5584#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5586#[repr(i32)]
5587pub enum CredentialType {
5588 Initial = 0,
5590 Normal = 1,
5592}
5593impl CredentialType {
5594 pub fn as_str_name(&self) -> &'static str {
5599 match self {
5600 Self::Initial => "CREDENTIAL_TYPE_INITIAL",
5601 Self::Normal => "CREDENTIAL_TYPE_NORMAL",
5602 }
5603 }
5604 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5606 match value {
5607 "CREDENTIAL_TYPE_INITIAL" => Some(Self::Initial),
5608 "CREDENTIAL_TYPE_NORMAL" => Some(Self::Normal),
5609 _ => None,
5610 }
5611 }
5612}
5613#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5615#[repr(i32)]
5616pub enum UpdateType {
5617 UpdateProtocol = 0,
5618 UpdateElectionDifficulty = 1,
5619 UpdateEuroPerEnergy = 2,
5620 UpdateMicroCcdPerEuro = 3,
5621 UpdateFoundationAccount = 4,
5622 UpdateMintDistribution = 5,
5623 UpdateTransactionFeeDistribution = 6,
5624 UpdateGasRewards = 7,
5625 UpdatePoolParameters = 8,
5626 AddAnonymityRevoker = 9,
5627 AddIdentityProvider = 10,
5628 UpdateRootKeys = 11,
5629 UpdateLevel1Keys = 12,
5630 UpdateLevel2Keys = 13,
5631 UpdateCooldownParameters = 14,
5632 UpdateTimeParameters = 15,
5633 UpdateTimeoutParameters = 16,
5634 UpdateMinBlockTime = 17,
5635 UpdateBlockEnergyLimit = 18,
5636 UpdateFinalizationCommitteeParameters = 19,
5637 UpdateValidatorScoreParameters = 20,
5638 UpdateCreatePlt = 21,
5639}
5640impl UpdateType {
5641 pub fn as_str_name(&self) -> &'static str {
5646 match self {
5647 Self::UpdateProtocol => "UPDATE_PROTOCOL",
5648 Self::UpdateElectionDifficulty => "UPDATE_ELECTION_DIFFICULTY",
5649 Self::UpdateEuroPerEnergy => "UPDATE_EURO_PER_ENERGY",
5650 Self::UpdateMicroCcdPerEuro => "UPDATE_MICRO_CCD_PER_EURO",
5651 Self::UpdateFoundationAccount => "UPDATE_FOUNDATION_ACCOUNT",
5652 Self::UpdateMintDistribution => "UPDATE_MINT_DISTRIBUTION",
5653 Self::UpdateTransactionFeeDistribution => {
5654 "UPDATE_TRANSACTION_FEE_DISTRIBUTION"
5655 }
5656 Self::UpdateGasRewards => "UPDATE_GAS_REWARDS",
5657 Self::UpdatePoolParameters => "UPDATE_POOL_PARAMETERS",
5658 Self::AddAnonymityRevoker => "ADD_ANONYMITY_REVOKER",
5659 Self::AddIdentityProvider => "ADD_IDENTITY_PROVIDER",
5660 Self::UpdateRootKeys => "UPDATE_ROOT_KEYS",
5661 Self::UpdateLevel1Keys => "UPDATE_LEVEL1_KEYS",
5662 Self::UpdateLevel2Keys => "UPDATE_LEVEL2_KEYS",
5663 Self::UpdateCooldownParameters => "UPDATE_COOLDOWN_PARAMETERS",
5664 Self::UpdateTimeParameters => "UPDATE_TIME_PARAMETERS",
5665 Self::UpdateTimeoutParameters => "UPDATE_TIMEOUT_PARAMETERS",
5666 Self::UpdateMinBlockTime => "UPDATE_MIN_BLOCK_TIME",
5667 Self::UpdateBlockEnergyLimit => "UPDATE_BLOCK_ENERGY_LIMIT",
5668 Self::UpdateFinalizationCommitteeParameters => {
5669 "UPDATE_FINALIZATION_COMMITTEE_PARAMETERS"
5670 }
5671 Self::UpdateValidatorScoreParameters => "UPDATE_VALIDATOR_SCORE_PARAMETERS",
5672 Self::UpdateCreatePlt => "UPDATE_CREATE_PLT",
5673 }
5674 }
5675 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5677 match value {
5678 "UPDATE_PROTOCOL" => Some(Self::UpdateProtocol),
5679 "UPDATE_ELECTION_DIFFICULTY" => Some(Self::UpdateElectionDifficulty),
5680 "UPDATE_EURO_PER_ENERGY" => Some(Self::UpdateEuroPerEnergy),
5681 "UPDATE_MICRO_CCD_PER_EURO" => Some(Self::UpdateMicroCcdPerEuro),
5682 "UPDATE_FOUNDATION_ACCOUNT" => Some(Self::UpdateFoundationAccount),
5683 "UPDATE_MINT_DISTRIBUTION" => Some(Self::UpdateMintDistribution),
5684 "UPDATE_TRANSACTION_FEE_DISTRIBUTION" => {
5685 Some(Self::UpdateTransactionFeeDistribution)
5686 }
5687 "UPDATE_GAS_REWARDS" => Some(Self::UpdateGasRewards),
5688 "UPDATE_POOL_PARAMETERS" => Some(Self::UpdatePoolParameters),
5689 "ADD_ANONYMITY_REVOKER" => Some(Self::AddAnonymityRevoker),
5690 "ADD_IDENTITY_PROVIDER" => Some(Self::AddIdentityProvider),
5691 "UPDATE_ROOT_KEYS" => Some(Self::UpdateRootKeys),
5692 "UPDATE_LEVEL1_KEYS" => Some(Self::UpdateLevel1Keys),
5693 "UPDATE_LEVEL2_KEYS" => Some(Self::UpdateLevel2Keys),
5694 "UPDATE_COOLDOWN_PARAMETERS" => Some(Self::UpdateCooldownParameters),
5695 "UPDATE_TIME_PARAMETERS" => Some(Self::UpdateTimeParameters),
5696 "UPDATE_TIMEOUT_PARAMETERS" => Some(Self::UpdateTimeoutParameters),
5697 "UPDATE_MIN_BLOCK_TIME" => Some(Self::UpdateMinBlockTime),
5698 "UPDATE_BLOCK_ENERGY_LIMIT" => Some(Self::UpdateBlockEnergyLimit),
5699 "UPDATE_FINALIZATION_COMMITTEE_PARAMETERS" => {
5700 Some(Self::UpdateFinalizationCommitteeParameters)
5701 }
5702 "UPDATE_VALIDATOR_SCORE_PARAMETERS" => {
5703 Some(Self::UpdateValidatorScoreParameters)
5704 }
5705 "UPDATE_CREATE_PLT" => Some(Self::UpdateCreatePlt),
5706 _ => None,
5707 }
5708 }
5709}
5710#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5712#[repr(i32)]
5713pub enum TransactionType {
5714 DeployModule = 0,
5715 InitContract = 1,
5716 Update = 2,
5717 Transfer = 3,
5718 AddBaker = 4,
5719 RemoveBaker = 5,
5720 UpdateBakerStake = 6,
5721 UpdateBakerRestakeEarnings = 7,
5722 UpdateBakerKeys = 8,
5723 UpdateCredentialKeys = 9,
5724 EncryptedAmountTransfer = 10,
5725 TransferToEncrypted = 11,
5726 TransferToPublic = 12,
5727 TransferWithSchedule = 13,
5728 UpdateCredentials = 14,
5729 RegisterData = 15,
5730 TransferWithMemo = 16,
5731 EncryptedAmountTransferWithMemo = 17,
5732 TransferWithScheduleAndMemo = 18,
5733 ConfigureBaker = 19,
5734 ConfigureDelegation = 20,
5735 TokenUpdate = 21,
5737}
5738impl TransactionType {
5739 pub fn as_str_name(&self) -> &'static str {
5744 match self {
5745 Self::DeployModule => "DEPLOY_MODULE",
5746 Self::InitContract => "INIT_CONTRACT",
5747 Self::Update => "UPDATE",
5748 Self::Transfer => "TRANSFER",
5749 Self::AddBaker => "ADD_BAKER",
5750 Self::RemoveBaker => "REMOVE_BAKER",
5751 Self::UpdateBakerStake => "UPDATE_BAKER_STAKE",
5752 Self::UpdateBakerRestakeEarnings => "UPDATE_BAKER_RESTAKE_EARNINGS",
5753 Self::UpdateBakerKeys => "UPDATE_BAKER_KEYS",
5754 Self::UpdateCredentialKeys => "UPDATE_CREDENTIAL_KEYS",
5755 Self::EncryptedAmountTransfer => "ENCRYPTED_AMOUNT_TRANSFER",
5756 Self::TransferToEncrypted => "TRANSFER_TO_ENCRYPTED",
5757 Self::TransferToPublic => "TRANSFER_TO_PUBLIC",
5758 Self::TransferWithSchedule => "TRANSFER_WITH_SCHEDULE",
5759 Self::UpdateCredentials => "UPDATE_CREDENTIALS",
5760 Self::RegisterData => "REGISTER_DATA",
5761 Self::TransferWithMemo => "TRANSFER_WITH_MEMO",
5762 Self::EncryptedAmountTransferWithMemo => {
5763 "ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO"
5764 }
5765 Self::TransferWithScheduleAndMemo => "TRANSFER_WITH_SCHEDULE_AND_MEMO",
5766 Self::ConfigureBaker => "CONFIGURE_BAKER",
5767 Self::ConfigureDelegation => "CONFIGURE_DELEGATION",
5768 Self::TokenUpdate => "TOKEN_UPDATE",
5769 }
5770 }
5771 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5773 match value {
5774 "DEPLOY_MODULE" => Some(Self::DeployModule),
5775 "INIT_CONTRACT" => Some(Self::InitContract),
5776 "UPDATE" => Some(Self::Update),
5777 "TRANSFER" => Some(Self::Transfer),
5778 "ADD_BAKER" => Some(Self::AddBaker),
5779 "REMOVE_BAKER" => Some(Self::RemoveBaker),
5780 "UPDATE_BAKER_STAKE" => Some(Self::UpdateBakerStake),
5781 "UPDATE_BAKER_RESTAKE_EARNINGS" => Some(Self::UpdateBakerRestakeEarnings),
5782 "UPDATE_BAKER_KEYS" => Some(Self::UpdateBakerKeys),
5783 "UPDATE_CREDENTIAL_KEYS" => Some(Self::UpdateCredentialKeys),
5784 "ENCRYPTED_AMOUNT_TRANSFER" => Some(Self::EncryptedAmountTransfer),
5785 "TRANSFER_TO_ENCRYPTED" => Some(Self::TransferToEncrypted),
5786 "TRANSFER_TO_PUBLIC" => Some(Self::TransferToPublic),
5787 "TRANSFER_WITH_SCHEDULE" => Some(Self::TransferWithSchedule),
5788 "UPDATE_CREDENTIALS" => Some(Self::UpdateCredentials),
5789 "REGISTER_DATA" => Some(Self::RegisterData),
5790 "TRANSFER_WITH_MEMO" => Some(Self::TransferWithMemo),
5791 "ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO" => {
5792 Some(Self::EncryptedAmountTransferWithMemo)
5793 }
5794 "TRANSFER_WITH_SCHEDULE_AND_MEMO" => Some(Self::TransferWithScheduleAndMemo),
5795 "CONFIGURE_BAKER" => Some(Self::ConfigureBaker),
5796 "CONFIGURE_DELEGATION" => Some(Self::ConfigureDelegation),
5797 "TOKEN_UPDATE" => Some(Self::TokenUpdate),
5798 _ => None,
5799 }
5800 }
5801}
5802#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5804#[repr(i32)]
5805pub enum ProtocolVersion {
5806 ProtocolVersion1 = 0,
5807 ProtocolVersion2 = 1,
5808 ProtocolVersion3 = 2,
5809 ProtocolVersion4 = 3,
5810 ProtocolVersion5 = 4,
5811 ProtocolVersion6 = 5,
5812 ProtocolVersion7 = 6,
5813 ProtocolVersion8 = 7,
5814 ProtocolVersion9 = 8,
5815}
5816impl ProtocolVersion {
5817 pub fn as_str_name(&self) -> &'static str {
5822 match self {
5823 Self::ProtocolVersion1 => "PROTOCOL_VERSION_1",
5824 Self::ProtocolVersion2 => "PROTOCOL_VERSION_2",
5825 Self::ProtocolVersion3 => "PROTOCOL_VERSION_3",
5826 Self::ProtocolVersion4 => "PROTOCOL_VERSION_4",
5827 Self::ProtocolVersion5 => "PROTOCOL_VERSION_5",
5828 Self::ProtocolVersion6 => "PROTOCOL_VERSION_6",
5829 Self::ProtocolVersion7 => "PROTOCOL_VERSION_7",
5830 Self::ProtocolVersion8 => "PROTOCOL_VERSION_8",
5831 Self::ProtocolVersion9 => "PROTOCOL_VERSION_9",
5832 }
5833 }
5834 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5836 match value {
5837 "PROTOCOL_VERSION_1" => Some(Self::ProtocolVersion1),
5838 "PROTOCOL_VERSION_2" => Some(Self::ProtocolVersion2),
5839 "PROTOCOL_VERSION_3" => Some(Self::ProtocolVersion3),
5840 "PROTOCOL_VERSION_4" => Some(Self::ProtocolVersion4),
5841 "PROTOCOL_VERSION_5" => Some(Self::ProtocolVersion5),
5842 "PROTOCOL_VERSION_6" => Some(Self::ProtocolVersion6),
5843 "PROTOCOL_VERSION_7" => Some(Self::ProtocolVersion7),
5844 "PROTOCOL_VERSION_8" => Some(Self::ProtocolVersion8),
5845 "PROTOCOL_VERSION_9" => Some(Self::ProtocolVersion9),
5846 _ => None,
5847 }
5848 }
5849}
5850pub mod queries_client {
5852 #![allow(
5853 unused_variables,
5854 dead_code,
5855 missing_docs,
5856 clippy::wildcard_imports,
5857 clippy::let_unit_value,
5858 )]
5859 use tonic::codegen::*;
5860 use tonic::codegen::http::Uri;
5861 #[derive(Debug, Clone)]
5862 pub struct QueriesClient<T> {
5863 inner: tonic::client::Grpc<T>,
5864 }
5865 impl QueriesClient<tonic::transport::Channel> {
5866 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
5868 where
5869 D: TryInto<tonic::transport::Endpoint>,
5870 D::Error: Into<StdError>,
5871 {
5872 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
5873 Ok(Self::new(conn))
5874 }
5875 }
5876 impl<T> QueriesClient<T>
5877 where
5878 T: tonic::client::GrpcService<tonic::body::BoxBody>,
5879 T::Error: Into<StdError>,
5880 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
5881 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
5882 {
5883 pub fn new(inner: T) -> Self {
5884 let inner = tonic::client::Grpc::new(inner);
5885 Self { inner }
5886 }
5887 pub fn with_origin(inner: T, origin: Uri) -> Self {
5888 let inner = tonic::client::Grpc::with_origin(inner, origin);
5889 Self { inner }
5890 }
5891 pub fn with_interceptor<F>(
5892 inner: T,
5893 interceptor: F,
5894 ) -> QueriesClient<InterceptedService<T, F>>
5895 where
5896 F: tonic::service::Interceptor,
5897 T::ResponseBody: Default,
5898 T: tonic::codegen::Service<
5899 http::Request<tonic::body::BoxBody>,
5900 Response = http::Response<
5901 <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
5902 >,
5903 >,
5904 <T as tonic::codegen::Service<
5905 http::Request<tonic::body::BoxBody>,
5906 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
5907 {
5908 QueriesClient::new(InterceptedService::new(inner, interceptor))
5909 }
5910 #[must_use]
5915 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
5916 self.inner = self.inner.send_compressed(encoding);
5917 self
5918 }
5919 #[must_use]
5921 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
5922 self.inner = self.inner.accept_compressed(encoding);
5923 self
5924 }
5925 #[must_use]
5929 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
5930 self.inner = self.inner.max_decoding_message_size(limit);
5931 self
5932 }
5933 #[must_use]
5937 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
5938 self.inner = self.inner.max_encoding_message_size(limit);
5939 self
5940 }
5941 pub async fn get_blocks(
5944 &mut self,
5945 request: impl tonic::IntoRequest<super::Empty>,
5946 ) -> std::result::Result<
5947 tonic::Response<tonic::codec::Streaming<super::ArrivedBlockInfo>>,
5948 tonic::Status,
5949 > {
5950 self.inner
5951 .ready()
5952 .await
5953 .map_err(|e| {
5954 tonic::Status::unknown(
5955 format!("Service was not ready: {}", e.into()),
5956 )
5957 })?;
5958 let codec = tonic::codec::ProstCodec::default();
5959 let path = http::uri::PathAndQuery::from_static(
5960 "/concordium.v2.Queries/GetBlocks",
5961 );
5962 let mut req = request.into_request();
5963 req.extensions_mut()
5964 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocks"));
5965 self.inner.server_streaming(req, path, codec).await
5966 }
5967 pub async fn get_finalized_blocks(
5973 &mut self,
5974 request: impl tonic::IntoRequest<super::Empty>,
5975 ) -> std::result::Result<
5976 tonic::Response<tonic::codec::Streaming<super::FinalizedBlockInfo>>,
5977 tonic::Status,
5978 > {
5979 self.inner
5980 .ready()
5981 .await
5982 .map_err(|e| {
5983 tonic::Status::unknown(
5984 format!("Service was not ready: {}", e.into()),
5985 )
5986 })?;
5987 let codec = tonic::codec::ProstCodec::default();
5988 let path = http::uri::PathAndQuery::from_static(
5989 "/concordium.v2.Queries/GetFinalizedBlocks",
5990 );
5991 let mut req = request.into_request();
5992 req.extensions_mut()
5993 .insert(GrpcMethod::new("concordium.v2.Queries", "GetFinalizedBlocks"));
5994 self.inner.server_streaming(req, path, codec).await
5995 }
5996 pub async fn get_account_info(
5998 &mut self,
5999 request: impl tonic::IntoRequest<super::AccountInfoRequest>,
6000 ) -> std::result::Result<tonic::Response<super::AccountInfo>, tonic::Status> {
6001 self.inner
6002 .ready()
6003 .await
6004 .map_err(|e| {
6005 tonic::Status::unknown(
6006 format!("Service was not ready: {}", e.into()),
6007 )
6008 })?;
6009 let codec = tonic::codec::ProstCodec::default();
6010 let path = http::uri::PathAndQuery::from_static(
6011 "/concordium.v2.Queries/GetAccountInfo",
6012 );
6013 let mut req = request.into_request();
6014 req.extensions_mut()
6015 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountInfo"));
6016 self.inner.unary(req, path, codec).await
6017 }
6018 pub async fn get_token_info(
6020 &mut self,
6021 request: impl tonic::IntoRequest<super::TokenInfoRequest>,
6022 ) -> std::result::Result<tonic::Response<super::TokenInfo>, tonic::Status> {
6023 self.inner
6024 .ready()
6025 .await
6026 .map_err(|e| {
6027 tonic::Status::unknown(
6028 format!("Service was not ready: {}", e.into()),
6029 )
6030 })?;
6031 let codec = tonic::codec::ProstCodec::default();
6032 let path = http::uri::PathAndQuery::from_static(
6033 "/concordium.v2.Queries/GetTokenInfo",
6034 );
6035 let mut req = request.into_request();
6036 req.extensions_mut()
6037 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenInfo"));
6038 self.inner.unary(req, path, codec).await
6039 }
6040 pub async fn get_account_list(
6042 &mut self,
6043 request: impl tonic::IntoRequest<super::BlockHashInput>,
6044 ) -> std::result::Result<
6045 tonic::Response<tonic::codec::Streaming<super::AccountAddress>>,
6046 tonic::Status,
6047 > {
6048 self.inner
6049 .ready()
6050 .await
6051 .map_err(|e| {
6052 tonic::Status::unknown(
6053 format!("Service was not ready: {}", e.into()),
6054 )
6055 })?;
6056 let codec = tonic::codec::ProstCodec::default();
6057 let path = http::uri::PathAndQuery::from_static(
6058 "/concordium.v2.Queries/GetAccountList",
6059 );
6060 let mut req = request.into_request();
6061 req.extensions_mut()
6062 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountList"));
6063 self.inner.server_streaming(req, path, codec).await
6064 }
6065 pub async fn get_token_list(
6068 &mut self,
6069 request: impl tonic::IntoRequest<super::BlockHashInput>,
6070 ) -> std::result::Result<
6071 tonic::Response<tonic::codec::Streaming<super::plt::TokenId>>,
6072 tonic::Status,
6073 > {
6074 self.inner
6075 .ready()
6076 .await
6077 .map_err(|e| {
6078 tonic::Status::unknown(
6079 format!("Service was not ready: {}", e.into()),
6080 )
6081 })?;
6082 let codec = tonic::codec::ProstCodec::default();
6083 let path = http::uri::PathAndQuery::from_static(
6084 "/concordium.v2.Queries/GetTokenList",
6085 );
6086 let mut req = request.into_request();
6087 req.extensions_mut()
6088 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenList"));
6089 self.inner.server_streaming(req, path, codec).await
6090 }
6091 pub async fn get_module_list(
6095 &mut self,
6096 request: impl tonic::IntoRequest<super::BlockHashInput>,
6097 ) -> std::result::Result<
6098 tonic::Response<tonic::codec::Streaming<super::ModuleRef>>,
6099 tonic::Status,
6100 > {
6101 self.inner
6102 .ready()
6103 .await
6104 .map_err(|e| {
6105 tonic::Status::unknown(
6106 format!("Service was not ready: {}", e.into()),
6107 )
6108 })?;
6109 let codec = tonic::codec::ProstCodec::default();
6110 let path = http::uri::PathAndQuery::from_static(
6111 "/concordium.v2.Queries/GetModuleList",
6112 );
6113 let mut req = request.into_request();
6114 req.extensions_mut()
6115 .insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleList"));
6116 self.inner.server_streaming(req, path, codec).await
6117 }
6118 pub async fn get_ancestors(
6122 &mut self,
6123 request: impl tonic::IntoRequest<super::AncestorsRequest>,
6124 ) -> std::result::Result<
6125 tonic::Response<tonic::codec::Streaming<super::BlockHash>>,
6126 tonic::Status,
6127 > {
6128 self.inner
6129 .ready()
6130 .await
6131 .map_err(|e| {
6132 tonic::Status::unknown(
6133 format!("Service was not ready: {}", e.into()),
6134 )
6135 })?;
6136 let codec = tonic::codec::ProstCodec::default();
6137 let path = http::uri::PathAndQuery::from_static(
6138 "/concordium.v2.Queries/GetAncestors",
6139 );
6140 let mut req = request.into_request();
6141 req.extensions_mut()
6142 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAncestors"));
6143 self.inner.server_streaming(req, path, codec).await
6144 }
6145 pub async fn get_module_source(
6147 &mut self,
6148 request: impl tonic::IntoRequest<super::ModuleSourceRequest>,
6149 ) -> std::result::Result<
6150 tonic::Response<super::VersionedModuleSource>,
6151 tonic::Status,
6152 > {
6153 self.inner
6154 .ready()
6155 .await
6156 .map_err(|e| {
6157 tonic::Status::unknown(
6158 format!("Service was not ready: {}", e.into()),
6159 )
6160 })?;
6161 let codec = tonic::codec::ProstCodec::default();
6162 let path = http::uri::PathAndQuery::from_static(
6163 "/concordium.v2.Queries/GetModuleSource",
6164 );
6165 let mut req = request.into_request();
6166 req.extensions_mut()
6167 .insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleSource"));
6168 self.inner.unary(req, path, codec).await
6169 }
6170 pub async fn get_instance_list(
6174 &mut self,
6175 request: impl tonic::IntoRequest<super::BlockHashInput>,
6176 ) -> std::result::Result<
6177 tonic::Response<tonic::codec::Streaming<super::ContractAddress>>,
6178 tonic::Status,
6179 > {
6180 self.inner
6181 .ready()
6182 .await
6183 .map_err(|e| {
6184 tonic::Status::unknown(
6185 format!("Service was not ready: {}", e.into()),
6186 )
6187 })?;
6188 let codec = tonic::codec::ProstCodec::default();
6189 let path = http::uri::PathAndQuery::from_static(
6190 "/concordium.v2.Queries/GetInstanceList",
6191 );
6192 let mut req = request.into_request();
6193 req.extensions_mut()
6194 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceList"));
6195 self.inner.server_streaming(req, path, codec).await
6196 }
6197 pub async fn get_instance_info(
6200 &mut self,
6201 request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
6202 ) -> std::result::Result<tonic::Response<super::InstanceInfo>, tonic::Status> {
6203 self.inner
6204 .ready()
6205 .await
6206 .map_err(|e| {
6207 tonic::Status::unknown(
6208 format!("Service was not ready: {}", e.into()),
6209 )
6210 })?;
6211 let codec = tonic::codec::ProstCodec::default();
6212 let path = http::uri::PathAndQuery::from_static(
6213 "/concordium.v2.Queries/GetInstanceInfo",
6214 );
6215 let mut req = request.into_request();
6216 req.extensions_mut()
6217 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceInfo"));
6218 self.inner.unary(req, path, codec).await
6219 }
6220 pub async fn get_instance_state(
6223 &mut self,
6224 request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
6225 ) -> std::result::Result<
6226 tonic::Response<tonic::codec::Streaming<super::InstanceStateKvPair>>,
6227 tonic::Status,
6228 > {
6229 self.inner
6230 .ready()
6231 .await
6232 .map_err(|e| {
6233 tonic::Status::unknown(
6234 format!("Service was not ready: {}", e.into()),
6235 )
6236 })?;
6237 let codec = tonic::codec::ProstCodec::default();
6238 let path = http::uri::PathAndQuery::from_static(
6239 "/concordium.v2.Queries/GetInstanceState",
6240 );
6241 let mut req = request.into_request();
6242 req.extensions_mut()
6243 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceState"));
6244 self.inner.server_streaming(req, path, codec).await
6245 }
6246 pub async fn instance_state_lookup(
6250 &mut self,
6251 request: impl tonic::IntoRequest<super::InstanceStateLookupRequest>,
6252 ) -> std::result::Result<
6253 tonic::Response<super::InstanceStateValueAtKey>,
6254 tonic::Status,
6255 > {
6256 self.inner
6257 .ready()
6258 .await
6259 .map_err(|e| {
6260 tonic::Status::unknown(
6261 format!("Service was not ready: {}", e.into()),
6262 )
6263 })?;
6264 let codec = tonic::codec::ProstCodec::default();
6265 let path = http::uri::PathAndQuery::from_static(
6266 "/concordium.v2.Queries/InstanceStateLookup",
6267 );
6268 let mut req = request.into_request();
6269 req.extensions_mut()
6270 .insert(GrpcMethod::new("concordium.v2.Queries", "InstanceStateLookup"));
6271 self.inner.unary(req, path, codec).await
6272 }
6273 pub async fn get_next_account_sequence_number(
6278 &mut self,
6279 request: impl tonic::IntoRequest<super::AccountAddress>,
6280 ) -> std::result::Result<
6281 tonic::Response<super::NextAccountSequenceNumber>,
6282 tonic::Status,
6283 > {
6284 self.inner
6285 .ready()
6286 .await
6287 .map_err(|e| {
6288 tonic::Status::unknown(
6289 format!("Service was not ready: {}", e.into()),
6290 )
6291 })?;
6292 let codec = tonic::codec::ProstCodec::default();
6293 let path = http::uri::PathAndQuery::from_static(
6294 "/concordium.v2.Queries/GetNextAccountSequenceNumber",
6295 );
6296 let mut req = request.into_request();
6297 req.extensions_mut()
6298 .insert(
6299 GrpcMethod::new(
6300 "concordium.v2.Queries",
6301 "GetNextAccountSequenceNumber",
6302 ),
6303 );
6304 self.inner.unary(req, path, codec).await
6305 }
6306 pub async fn get_consensus_info(
6308 &mut self,
6309 request: impl tonic::IntoRequest<super::Empty>,
6310 ) -> std::result::Result<tonic::Response<super::ConsensusInfo>, tonic::Status> {
6311 self.inner
6312 .ready()
6313 .await
6314 .map_err(|e| {
6315 tonic::Status::unknown(
6316 format!("Service was not ready: {}", e.into()),
6317 )
6318 })?;
6319 let codec = tonic::codec::ProstCodec::default();
6320 let path = http::uri::PathAndQuery::from_static(
6321 "/concordium.v2.Queries/GetConsensusInfo",
6322 );
6323 let mut req = request.into_request();
6324 req.extensions_mut()
6325 .insert(GrpcMethod::new("concordium.v2.Queries", "GetConsensusInfo"));
6326 self.inner.unary(req, path, codec).await
6327 }
6328 pub async fn get_block_item_status(
6330 &mut self,
6331 request: impl tonic::IntoRequest<super::TransactionHash>,
6332 ) -> std::result::Result<
6333 tonic::Response<super::BlockItemStatus>,
6334 tonic::Status,
6335 > {
6336 self.inner
6337 .ready()
6338 .await
6339 .map_err(|e| {
6340 tonic::Status::unknown(
6341 format!("Service was not ready: {}", e.into()),
6342 )
6343 })?;
6344 let codec = tonic::codec::ProstCodec::default();
6345 let path = http::uri::PathAndQuery::from_static(
6346 "/concordium.v2.Queries/GetBlockItemStatus",
6347 );
6348 let mut req = request.into_request();
6349 req.extensions_mut()
6350 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItemStatus"));
6351 self.inner.unary(req, path, codec).await
6352 }
6353 pub async fn get_cryptographic_parameters(
6355 &mut self,
6356 request: impl tonic::IntoRequest<super::BlockHashInput>,
6357 ) -> std::result::Result<
6358 tonic::Response<super::CryptographicParameters>,
6359 tonic::Status,
6360 > {
6361 self.inner
6362 .ready()
6363 .await
6364 .map_err(|e| {
6365 tonic::Status::unknown(
6366 format!("Service was not ready: {}", e.into()),
6367 )
6368 })?;
6369 let codec = tonic::codec::ProstCodec::default();
6370 let path = http::uri::PathAndQuery::from_static(
6371 "/concordium.v2.Queries/GetCryptographicParameters",
6372 );
6373 let mut req = request.into_request();
6374 req.extensions_mut()
6375 .insert(
6376 GrpcMethod::new(
6377 "concordium.v2.Queries",
6378 "GetCryptographicParameters",
6379 ),
6380 );
6381 self.inner.unary(req, path, codec).await
6382 }
6383 pub async fn get_block_info(
6385 &mut self,
6386 request: impl tonic::IntoRequest<super::BlockHashInput>,
6387 ) -> std::result::Result<tonic::Response<super::BlockInfo>, tonic::Status> {
6388 self.inner
6389 .ready()
6390 .await
6391 .map_err(|e| {
6392 tonic::Status::unknown(
6393 format!("Service was not ready: {}", e.into()),
6394 )
6395 })?;
6396 let codec = tonic::codec::ProstCodec::default();
6397 let path = http::uri::PathAndQuery::from_static(
6398 "/concordium.v2.Queries/GetBlockInfo",
6399 );
6400 let mut req = request.into_request();
6401 req.extensions_mut()
6402 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockInfo"));
6403 self.inner.unary(req, path, codec).await
6404 }
6405 pub async fn get_baker_list(
6407 &mut self,
6408 request: impl tonic::IntoRequest<super::BlockHashInput>,
6409 ) -> std::result::Result<
6410 tonic::Response<tonic::codec::Streaming<super::BakerId>>,
6411 tonic::Status,
6412 > {
6413 self.inner
6414 .ready()
6415 .await
6416 .map_err(|e| {
6417 tonic::Status::unknown(
6418 format!("Service was not ready: {}", e.into()),
6419 )
6420 })?;
6421 let codec = tonic::codec::ProstCodec::default();
6422 let path = http::uri::PathAndQuery::from_static(
6423 "/concordium.v2.Queries/GetBakerList",
6424 );
6425 let mut req = request.into_request();
6426 req.extensions_mut()
6427 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBakerList"));
6428 self.inner.server_streaming(req, path, codec).await
6429 }
6430 pub async fn get_pool_info(
6432 &mut self,
6433 request: impl tonic::IntoRequest<super::PoolInfoRequest>,
6434 ) -> std::result::Result<
6435 tonic::Response<super::PoolInfoResponse>,
6436 tonic::Status,
6437 > {
6438 self.inner
6439 .ready()
6440 .await
6441 .map_err(|e| {
6442 tonic::Status::unknown(
6443 format!("Service was not ready: {}", e.into()),
6444 )
6445 })?;
6446 let codec = tonic::codec::ProstCodec::default();
6447 let path = http::uri::PathAndQuery::from_static(
6448 "/concordium.v2.Queries/GetPoolInfo",
6449 );
6450 let mut req = request.into_request();
6451 req.extensions_mut()
6452 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolInfo"));
6453 self.inner.unary(req, path, codec).await
6454 }
6455 pub async fn get_passive_delegation_info(
6457 &mut self,
6458 request: impl tonic::IntoRequest<super::BlockHashInput>,
6459 ) -> std::result::Result<
6460 tonic::Response<super::PassiveDelegationInfo>,
6461 tonic::Status,
6462 > {
6463 self.inner
6464 .ready()
6465 .await
6466 .map_err(|e| {
6467 tonic::Status::unknown(
6468 format!("Service was not ready: {}", e.into()),
6469 )
6470 })?;
6471 let codec = tonic::codec::ProstCodec::default();
6472 let path = http::uri::PathAndQuery::from_static(
6473 "/concordium.v2.Queries/GetPassiveDelegationInfo",
6474 );
6475 let mut req = request.into_request();
6476 req.extensions_mut()
6477 .insert(
6478 GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegationInfo"),
6479 );
6480 self.inner.unary(req, path, codec).await
6481 }
6482 pub async fn get_blocks_at_height(
6484 &mut self,
6485 request: impl tonic::IntoRequest<super::BlocksAtHeightRequest>,
6486 ) -> std::result::Result<
6487 tonic::Response<super::BlocksAtHeightResponse>,
6488 tonic::Status,
6489 > {
6490 self.inner
6491 .ready()
6492 .await
6493 .map_err(|e| {
6494 tonic::Status::unknown(
6495 format!("Service was not ready: {}", e.into()),
6496 )
6497 })?;
6498 let codec = tonic::codec::ProstCodec::default();
6499 let path = http::uri::PathAndQuery::from_static(
6500 "/concordium.v2.Queries/GetBlocksAtHeight",
6501 );
6502 let mut req = request.into_request();
6503 req.extensions_mut()
6504 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocksAtHeight"));
6505 self.inner.unary(req, path, codec).await
6506 }
6507 pub async fn get_tokenomics_info(
6509 &mut self,
6510 request: impl tonic::IntoRequest<super::BlockHashInput>,
6511 ) -> std::result::Result<tonic::Response<super::TokenomicsInfo>, tonic::Status> {
6512 self.inner
6513 .ready()
6514 .await
6515 .map_err(|e| {
6516 tonic::Status::unknown(
6517 format!("Service was not ready: {}", e.into()),
6518 )
6519 })?;
6520 let codec = tonic::codec::ProstCodec::default();
6521 let path = http::uri::PathAndQuery::from_static(
6522 "/concordium.v2.Queries/GetTokenomicsInfo",
6523 );
6524 let mut req = request.into_request();
6525 req.extensions_mut()
6526 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenomicsInfo"));
6527 self.inner.unary(req, path, codec).await
6528 }
6529 pub async fn invoke_instance(
6532 &mut self,
6533 request: impl tonic::IntoRequest<super::InvokeInstanceRequest>,
6534 ) -> std::result::Result<
6535 tonic::Response<super::InvokeInstanceResponse>,
6536 tonic::Status,
6537 > {
6538 self.inner
6539 .ready()
6540 .await
6541 .map_err(|e| {
6542 tonic::Status::unknown(
6543 format!("Service was not ready: {}", e.into()),
6544 )
6545 })?;
6546 let codec = tonic::codec::ProstCodec::default();
6547 let path = http::uri::PathAndQuery::from_static(
6548 "/concordium.v2.Queries/InvokeInstance",
6549 );
6550 let mut req = request.into_request();
6551 req.extensions_mut()
6552 .insert(GrpcMethod::new("concordium.v2.Queries", "InvokeInstance"));
6553 self.inner.unary(req, path, codec).await
6554 }
6555 pub async fn get_pool_delegators(
6562 &mut self,
6563 request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
6564 ) -> std::result::Result<
6565 tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
6566 tonic::Status,
6567 > {
6568 self.inner
6569 .ready()
6570 .await
6571 .map_err(|e| {
6572 tonic::Status::unknown(
6573 format!("Service was not ready: {}", e.into()),
6574 )
6575 })?;
6576 let codec = tonic::codec::ProstCodec::default();
6577 let path = http::uri::PathAndQuery::from_static(
6578 "/concordium.v2.Queries/GetPoolDelegators",
6579 );
6580 let mut req = request.into_request();
6581 req.extensions_mut()
6582 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolDelegators"));
6583 self.inner.server_streaming(req, path, codec).await
6584 }
6585 pub async fn get_pool_delegators_reward_period(
6591 &mut self,
6592 request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
6593 ) -> std::result::Result<
6594 tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
6595 tonic::Status,
6596 > {
6597 self.inner
6598 .ready()
6599 .await
6600 .map_err(|e| {
6601 tonic::Status::unknown(
6602 format!("Service was not ready: {}", e.into()),
6603 )
6604 })?;
6605 let codec = tonic::codec::ProstCodec::default();
6606 let path = http::uri::PathAndQuery::from_static(
6607 "/concordium.v2.Queries/GetPoolDelegatorsRewardPeriod",
6608 );
6609 let mut req = request.into_request();
6610 req.extensions_mut()
6611 .insert(
6612 GrpcMethod::new(
6613 "concordium.v2.Queries",
6614 "GetPoolDelegatorsRewardPeriod",
6615 ),
6616 );
6617 self.inner.server_streaming(req, path, codec).await
6618 }
6619 pub async fn get_passive_delegators(
6626 &mut self,
6627 request: impl tonic::IntoRequest<super::BlockHashInput>,
6628 ) -> std::result::Result<
6629 tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
6630 tonic::Status,
6631 > {
6632 self.inner
6633 .ready()
6634 .await
6635 .map_err(|e| {
6636 tonic::Status::unknown(
6637 format!("Service was not ready: {}", e.into()),
6638 )
6639 })?;
6640 let codec = tonic::codec::ProstCodec::default();
6641 let path = http::uri::PathAndQuery::from_static(
6642 "/concordium.v2.Queries/GetPassiveDelegators",
6643 );
6644 let mut req = request.into_request();
6645 req.extensions_mut()
6646 .insert(
6647 GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegators"),
6648 );
6649 self.inner.server_streaming(req, path, codec).await
6650 }
6651 pub async fn get_passive_delegators_reward_period(
6657 &mut self,
6658 request: impl tonic::IntoRequest<super::BlockHashInput>,
6659 ) -> std::result::Result<
6660 tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
6661 tonic::Status,
6662 > {
6663 self.inner
6664 .ready()
6665 .await
6666 .map_err(|e| {
6667 tonic::Status::unknown(
6668 format!("Service was not ready: {}", e.into()),
6669 )
6670 })?;
6671 let codec = tonic::codec::ProstCodec::default();
6672 let path = http::uri::PathAndQuery::from_static(
6673 "/concordium.v2.Queries/GetPassiveDelegatorsRewardPeriod",
6674 );
6675 let mut req = request.into_request();
6676 req.extensions_mut()
6677 .insert(
6678 GrpcMethod::new(
6679 "concordium.v2.Queries",
6680 "GetPassiveDelegatorsRewardPeriod",
6681 ),
6682 );
6683 self.inner.server_streaming(req, path, codec).await
6684 }
6685 pub async fn get_branches(
6687 &mut self,
6688 request: impl tonic::IntoRequest<super::Empty>,
6689 ) -> std::result::Result<tonic::Response<super::Branch>, tonic::Status> {
6690 self.inner
6691 .ready()
6692 .await
6693 .map_err(|e| {
6694 tonic::Status::unknown(
6695 format!("Service was not ready: {}", e.into()),
6696 )
6697 })?;
6698 let codec = tonic::codec::ProstCodec::default();
6699 let path = http::uri::PathAndQuery::from_static(
6700 "/concordium.v2.Queries/GetBranches",
6701 );
6702 let mut req = request.into_request();
6703 req.extensions_mut()
6704 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBranches"));
6705 self.inner.unary(req, path, codec).await
6706 }
6707 pub async fn get_election_info(
6709 &mut self,
6710 request: impl tonic::IntoRequest<super::BlockHashInput>,
6711 ) -> std::result::Result<tonic::Response<super::ElectionInfo>, tonic::Status> {
6712 self.inner
6713 .ready()
6714 .await
6715 .map_err(|e| {
6716 tonic::Status::unknown(
6717 format!("Service was not ready: {}", e.into()),
6718 )
6719 })?;
6720 let codec = tonic::codec::ProstCodec::default();
6721 let path = http::uri::PathAndQuery::from_static(
6722 "/concordium.v2.Queries/GetElectionInfo",
6723 );
6724 let mut req = request.into_request();
6725 req.extensions_mut()
6726 .insert(GrpcMethod::new("concordium.v2.Queries", "GetElectionInfo"));
6727 self.inner.unary(req, path, codec).await
6728 }
6729 pub async fn get_identity_providers(
6732 &mut self,
6733 request: impl tonic::IntoRequest<super::BlockHashInput>,
6734 ) -> std::result::Result<
6735 tonic::Response<tonic::codec::Streaming<super::IpInfo>>,
6736 tonic::Status,
6737 > {
6738 self.inner
6739 .ready()
6740 .await
6741 .map_err(|e| {
6742 tonic::Status::unknown(
6743 format!("Service was not ready: {}", e.into()),
6744 )
6745 })?;
6746 let codec = tonic::codec::ProstCodec::default();
6747 let path = http::uri::PathAndQuery::from_static(
6748 "/concordium.v2.Queries/GetIdentityProviders",
6749 );
6750 let mut req = request.into_request();
6751 req.extensions_mut()
6752 .insert(
6753 GrpcMethod::new("concordium.v2.Queries", "GetIdentityProviders"),
6754 );
6755 self.inner.server_streaming(req, path, codec).await
6756 }
6757 pub async fn get_anonymity_revokers(
6760 &mut self,
6761 request: impl tonic::IntoRequest<super::BlockHashInput>,
6762 ) -> std::result::Result<
6763 tonic::Response<tonic::codec::Streaming<super::ArInfo>>,
6764 tonic::Status,
6765 > {
6766 self.inner
6767 .ready()
6768 .await
6769 .map_err(|e| {
6770 tonic::Status::unknown(
6771 format!("Service was not ready: {}", e.into()),
6772 )
6773 })?;
6774 let codec = tonic::codec::ProstCodec::default();
6775 let path = http::uri::PathAndQuery::from_static(
6776 "/concordium.v2.Queries/GetAnonymityRevokers",
6777 );
6778 let mut req = request.into_request();
6779 req.extensions_mut()
6780 .insert(
6781 GrpcMethod::new("concordium.v2.Queries", "GetAnonymityRevokers"),
6782 );
6783 self.inner.server_streaming(req, path, codec).await
6784 }
6785 pub async fn get_account_non_finalized_transactions(
6790 &mut self,
6791 request: impl tonic::IntoRequest<super::AccountAddress>,
6792 ) -> std::result::Result<
6793 tonic::Response<tonic::codec::Streaming<super::TransactionHash>>,
6794 tonic::Status,
6795 > {
6796 self.inner
6797 .ready()
6798 .await
6799 .map_err(|e| {
6800 tonic::Status::unknown(
6801 format!("Service was not ready: {}", e.into()),
6802 )
6803 })?;
6804 let codec = tonic::codec::ProstCodec::default();
6805 let path = http::uri::PathAndQuery::from_static(
6806 "/concordium.v2.Queries/GetAccountNonFinalizedTransactions",
6807 );
6808 let mut req = request.into_request();
6809 req.extensions_mut()
6810 .insert(
6811 GrpcMethod::new(
6812 "concordium.v2.Queries",
6813 "GetAccountNonFinalizedTransactions",
6814 ),
6815 );
6816 self.inner.server_streaming(req, path, codec).await
6817 }
6818 pub async fn get_block_transaction_events(
6821 &mut self,
6822 request: impl tonic::IntoRequest<super::BlockHashInput>,
6823 ) -> std::result::Result<
6824 tonic::Response<tonic::codec::Streaming<super::BlockItemSummary>>,
6825 tonic::Status,
6826 > {
6827 self.inner
6828 .ready()
6829 .await
6830 .map_err(|e| {
6831 tonic::Status::unknown(
6832 format!("Service was not ready: {}", e.into()),
6833 )
6834 })?;
6835 let codec = tonic::codec::ProstCodec::default();
6836 let path = http::uri::PathAndQuery::from_static(
6837 "/concordium.v2.Queries/GetBlockTransactionEvents",
6838 );
6839 let mut req = request.into_request();
6840 req.extensions_mut()
6841 .insert(
6842 GrpcMethod::new("concordium.v2.Queries", "GetBlockTransactionEvents"),
6843 );
6844 self.inner.server_streaming(req, path, codec).await
6845 }
6846 pub async fn get_block_special_events(
6851 &mut self,
6852 request: impl tonic::IntoRequest<super::BlockHashInput>,
6853 ) -> std::result::Result<
6854 tonic::Response<tonic::codec::Streaming<super::BlockSpecialEvent>>,
6855 tonic::Status,
6856 > {
6857 self.inner
6858 .ready()
6859 .await
6860 .map_err(|e| {
6861 tonic::Status::unknown(
6862 format!("Service was not ready: {}", e.into()),
6863 )
6864 })?;
6865 let codec = tonic::codec::ProstCodec::default();
6866 let path = http::uri::PathAndQuery::from_static(
6867 "/concordium.v2.Queries/GetBlockSpecialEvents",
6868 );
6869 let mut req = request.into_request();
6870 req.extensions_mut()
6871 .insert(
6872 GrpcMethod::new("concordium.v2.Queries", "GetBlockSpecialEvents"),
6873 );
6874 self.inner.server_streaming(req, path, codec).await
6875 }
6876 pub async fn get_block_pending_updates(
6879 &mut self,
6880 request: impl tonic::IntoRequest<super::BlockHashInput>,
6881 ) -> std::result::Result<
6882 tonic::Response<tonic::codec::Streaming<super::PendingUpdate>>,
6883 tonic::Status,
6884 > {
6885 self.inner
6886 .ready()
6887 .await
6888 .map_err(|e| {
6889 tonic::Status::unknown(
6890 format!("Service was not ready: {}", e.into()),
6891 )
6892 })?;
6893 let codec = tonic::codec::ProstCodec::default();
6894 let path = http::uri::PathAndQuery::from_static(
6895 "/concordium.v2.Queries/GetBlockPendingUpdates",
6896 );
6897 let mut req = request.into_request();
6898 req.extensions_mut()
6899 .insert(
6900 GrpcMethod::new("concordium.v2.Queries", "GetBlockPendingUpdates"),
6901 );
6902 self.inner.server_streaming(req, path, codec).await
6903 }
6904 pub async fn get_next_update_sequence_numbers(
6906 &mut self,
6907 request: impl tonic::IntoRequest<super::BlockHashInput>,
6908 ) -> std::result::Result<
6909 tonic::Response<super::NextUpdateSequenceNumbers>,
6910 tonic::Status,
6911 > {
6912 self.inner
6913 .ready()
6914 .await
6915 .map_err(|e| {
6916 tonic::Status::unknown(
6917 format!("Service was not ready: {}", e.into()),
6918 )
6919 })?;
6920 let codec = tonic::codec::ProstCodec::default();
6921 let path = http::uri::PathAndQuery::from_static(
6922 "/concordium.v2.Queries/GetNextUpdateSequenceNumbers",
6923 );
6924 let mut req = request.into_request();
6925 req.extensions_mut()
6926 .insert(
6927 GrpcMethod::new(
6928 "concordium.v2.Queries",
6929 "GetNextUpdateSequenceNumbers",
6930 ),
6931 );
6932 self.inner.unary(req, path, codec).await
6933 }
6934 pub async fn get_scheduled_release_accounts(
6938 &mut self,
6939 request: impl tonic::IntoRequest<super::BlockHashInput>,
6940 ) -> std::result::Result<
6941 tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
6942 tonic::Status,
6943 > {
6944 self.inner
6945 .ready()
6946 .await
6947 .map_err(|e| {
6948 tonic::Status::unknown(
6949 format!("Service was not ready: {}", e.into()),
6950 )
6951 })?;
6952 let codec = tonic::codec::ProstCodec::default();
6953 let path = http::uri::PathAndQuery::from_static(
6954 "/concordium.v2.Queries/GetScheduledReleaseAccounts",
6955 );
6956 let mut req = request.into_request();
6957 req.extensions_mut()
6958 .insert(
6959 GrpcMethod::new(
6960 "concordium.v2.Queries",
6961 "GetScheduledReleaseAccounts",
6962 ),
6963 );
6964 self.inner.server_streaming(req, path, codec).await
6965 }
6966 pub async fn get_cooldown_accounts(
6971 &mut self,
6972 request: impl tonic::IntoRequest<super::BlockHashInput>,
6973 ) -> std::result::Result<
6974 tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
6975 tonic::Status,
6976 > {
6977 self.inner
6978 .ready()
6979 .await
6980 .map_err(|e| {
6981 tonic::Status::unknown(
6982 format!("Service was not ready: {}", e.into()),
6983 )
6984 })?;
6985 let codec = tonic::codec::ProstCodec::default();
6986 let path = http::uri::PathAndQuery::from_static(
6987 "/concordium.v2.Queries/GetCooldownAccounts",
6988 );
6989 let mut req = request.into_request();
6990 req.extensions_mut()
6991 .insert(GrpcMethod::new("concordium.v2.Queries", "GetCooldownAccounts"));
6992 self.inner.server_streaming(req, path, codec).await
6993 }
6994 pub async fn get_pre_cooldown_accounts(
6998 &mut self,
6999 request: impl tonic::IntoRequest<super::BlockHashInput>,
7000 ) -> std::result::Result<
7001 tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
7002 tonic::Status,
7003 > {
7004 self.inner
7005 .ready()
7006 .await
7007 .map_err(|e| {
7008 tonic::Status::unknown(
7009 format!("Service was not ready: {}", e.into()),
7010 )
7011 })?;
7012 let codec = tonic::codec::ProstCodec::default();
7013 let path = http::uri::PathAndQuery::from_static(
7014 "/concordium.v2.Queries/GetPreCooldownAccounts",
7015 );
7016 let mut req = request.into_request();
7017 req.extensions_mut()
7018 .insert(
7019 GrpcMethod::new("concordium.v2.Queries", "GetPreCooldownAccounts"),
7020 );
7021 self.inner.server_streaming(req, path, codec).await
7022 }
7023 pub async fn get_pre_pre_cooldown_accounts(
7027 &mut self,
7028 request: impl tonic::IntoRequest<super::BlockHashInput>,
7029 ) -> std::result::Result<
7030 tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
7031 tonic::Status,
7032 > {
7033 self.inner
7034 .ready()
7035 .await
7036 .map_err(|e| {
7037 tonic::Status::unknown(
7038 format!("Service was not ready: {}", e.into()),
7039 )
7040 })?;
7041 let codec = tonic::codec::ProstCodec::default();
7042 let path = http::uri::PathAndQuery::from_static(
7043 "/concordium.v2.Queries/GetPrePreCooldownAccounts",
7044 );
7045 let mut req = request.into_request();
7046 req.extensions_mut()
7047 .insert(
7048 GrpcMethod::new("concordium.v2.Queries", "GetPrePreCooldownAccounts"),
7049 );
7050 self.inner.server_streaming(req, path, codec).await
7051 }
7052 pub async fn get_baker_earliest_win_time(
7067 &mut self,
7068 request: impl tonic::IntoRequest<super::BakerId>,
7069 ) -> std::result::Result<tonic::Response<super::Timestamp>, tonic::Status> {
7070 self.inner
7071 .ready()
7072 .await
7073 .map_err(|e| {
7074 tonic::Status::unknown(
7075 format!("Service was not ready: {}", e.into()),
7076 )
7077 })?;
7078 let codec = tonic::codec::ProstCodec::default();
7079 let path = http::uri::PathAndQuery::from_static(
7080 "/concordium.v2.Queries/GetBakerEarliestWinTime",
7081 );
7082 let mut req = request.into_request();
7083 req.extensions_mut()
7084 .insert(
7085 GrpcMethod::new("concordium.v2.Queries", "GetBakerEarliestWinTime"),
7086 );
7087 self.inner.unary(req, path, codec).await
7088 }
7089 pub async fn shutdown(
7092 &mut self,
7093 request: impl tonic::IntoRequest<super::Empty>,
7094 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7095 self.inner
7096 .ready()
7097 .await
7098 .map_err(|e| {
7099 tonic::Status::unknown(
7100 format!("Service was not ready: {}", e.into()),
7101 )
7102 })?;
7103 let codec = tonic::codec::ProstCodec::default();
7104 let path = http::uri::PathAndQuery::from_static(
7105 "/concordium.v2.Queries/Shutdown",
7106 );
7107 let mut req = request.into_request();
7108 req.extensions_mut()
7109 .insert(GrpcMethod::new("concordium.v2.Queries", "Shutdown"));
7110 self.inner.unary(req, path, codec).await
7111 }
7112 pub async fn peer_connect(
7119 &mut self,
7120 request: impl tonic::IntoRequest<super::IpSocketAddress>,
7121 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7122 self.inner
7123 .ready()
7124 .await
7125 .map_err(|e| {
7126 tonic::Status::unknown(
7127 format!("Service was not ready: {}", e.into()),
7128 )
7129 })?;
7130 let codec = tonic::codec::ProstCodec::default();
7131 let path = http::uri::PathAndQuery::from_static(
7132 "/concordium.v2.Queries/PeerConnect",
7133 );
7134 let mut req = request.into_request();
7135 req.extensions_mut()
7136 .insert(GrpcMethod::new("concordium.v2.Queries", "PeerConnect"));
7137 self.inner.unary(req, path, codec).await
7138 }
7139 pub async fn peer_disconnect(
7143 &mut self,
7144 request: impl tonic::IntoRequest<super::IpSocketAddress>,
7145 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7146 self.inner
7147 .ready()
7148 .await
7149 .map_err(|e| {
7150 tonic::Status::unknown(
7151 format!("Service was not ready: {}", e.into()),
7152 )
7153 })?;
7154 let codec = tonic::codec::ProstCodec::default();
7155 let path = http::uri::PathAndQuery::from_static(
7156 "/concordium.v2.Queries/PeerDisconnect",
7157 );
7158 let mut req = request.into_request();
7159 req.extensions_mut()
7160 .insert(GrpcMethod::new("concordium.v2.Queries", "PeerDisconnect"));
7161 self.inner.unary(req, path, codec).await
7162 }
7163 pub async fn get_banned_peers(
7165 &mut self,
7166 request: impl tonic::IntoRequest<super::Empty>,
7167 ) -> std::result::Result<tonic::Response<super::BannedPeers>, tonic::Status> {
7168 self.inner
7169 .ready()
7170 .await
7171 .map_err(|e| {
7172 tonic::Status::unknown(
7173 format!("Service was not ready: {}", e.into()),
7174 )
7175 })?;
7176 let codec = tonic::codec::ProstCodec::default();
7177 let path = http::uri::PathAndQuery::from_static(
7178 "/concordium.v2.Queries/GetBannedPeers",
7179 );
7180 let mut req = request.into_request();
7181 req.extensions_mut()
7182 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBannedPeers"));
7183 self.inner.unary(req, path, codec).await
7184 }
7185 pub async fn ban_peer(
7188 &mut self,
7189 request: impl tonic::IntoRequest<super::PeerToBan>,
7190 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7191 self.inner
7192 .ready()
7193 .await
7194 .map_err(|e| {
7195 tonic::Status::unknown(
7196 format!("Service was not ready: {}", e.into()),
7197 )
7198 })?;
7199 let codec = tonic::codec::ProstCodec::default();
7200 let path = http::uri::PathAndQuery::from_static(
7201 "/concordium.v2.Queries/BanPeer",
7202 );
7203 let mut req = request.into_request();
7204 req.extensions_mut()
7205 .insert(GrpcMethod::new("concordium.v2.Queries", "BanPeer"));
7206 self.inner.unary(req, path, codec).await
7207 }
7208 pub async fn unban_peer(
7211 &mut self,
7212 request: impl tonic::IntoRequest<super::BannedPeer>,
7213 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7214 self.inner
7215 .ready()
7216 .await
7217 .map_err(|e| {
7218 tonic::Status::unknown(
7219 format!("Service was not ready: {}", e.into()),
7220 )
7221 })?;
7222 let codec = tonic::codec::ProstCodec::default();
7223 let path = http::uri::PathAndQuery::from_static(
7224 "/concordium.v2.Queries/UnbanPeer",
7225 );
7226 let mut req = request.into_request();
7227 req.extensions_mut()
7228 .insert(GrpcMethod::new("concordium.v2.Queries", "UnbanPeer"));
7229 self.inner.unary(req, path, codec).await
7230 }
7231 pub async fn dump_start(
7235 &mut self,
7236 request: impl tonic::IntoRequest<super::DumpRequest>,
7237 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7238 self.inner
7239 .ready()
7240 .await
7241 .map_err(|e| {
7242 tonic::Status::unknown(
7243 format!("Service was not ready: {}", e.into()),
7244 )
7245 })?;
7246 let codec = tonic::codec::ProstCodec::default();
7247 let path = http::uri::PathAndQuery::from_static(
7248 "/concordium.v2.Queries/DumpStart",
7249 );
7250 let mut req = request.into_request();
7251 req.extensions_mut()
7252 .insert(GrpcMethod::new("concordium.v2.Queries", "DumpStart"));
7253 self.inner.unary(req, path, codec).await
7254 }
7255 pub async fn dump_stop(
7259 &mut self,
7260 request: impl tonic::IntoRequest<super::Empty>,
7261 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7262 self.inner
7263 .ready()
7264 .await
7265 .map_err(|e| {
7266 tonic::Status::unknown(
7267 format!("Service was not ready: {}", e.into()),
7268 )
7269 })?;
7270 let codec = tonic::codec::ProstCodec::default();
7271 let path = http::uri::PathAndQuery::from_static(
7272 "/concordium.v2.Queries/DumpStop",
7273 );
7274 let mut req = request.into_request();
7275 req.extensions_mut()
7276 .insert(GrpcMethod::new("concordium.v2.Queries", "DumpStop"));
7277 self.inner.unary(req, path, codec).await
7278 }
7279 pub async fn get_peers_info(
7282 &mut self,
7283 request: impl tonic::IntoRequest<super::Empty>,
7284 ) -> std::result::Result<tonic::Response<super::PeersInfo>, tonic::Status> {
7285 self.inner
7286 .ready()
7287 .await
7288 .map_err(|e| {
7289 tonic::Status::unknown(
7290 format!("Service was not ready: {}", e.into()),
7291 )
7292 })?;
7293 let codec = tonic::codec::ProstCodec::default();
7294 let path = http::uri::PathAndQuery::from_static(
7295 "/concordium.v2.Queries/GetPeersInfo",
7296 );
7297 let mut req = request.into_request();
7298 req.extensions_mut()
7299 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPeersInfo"));
7300 self.inner.unary(req, path, codec).await
7301 }
7302 pub async fn get_node_info(
7310 &mut self,
7311 request: impl tonic::IntoRequest<super::Empty>,
7312 ) -> std::result::Result<tonic::Response<super::NodeInfo>, tonic::Status> {
7313 self.inner
7314 .ready()
7315 .await
7316 .map_err(|e| {
7317 tonic::Status::unknown(
7318 format!("Service was not ready: {}", e.into()),
7319 )
7320 })?;
7321 let codec = tonic::codec::ProstCodec::default();
7322 let path = http::uri::PathAndQuery::from_static(
7323 "/concordium.v2.Queries/GetNodeInfo",
7324 );
7325 let mut req = request.into_request();
7326 req.extensions_mut()
7327 .insert(GrpcMethod::new("concordium.v2.Queries", "GetNodeInfo"));
7328 self.inner.unary(req, path, codec).await
7329 }
7330 pub async fn send_block_item(
7339 &mut self,
7340 request: impl tonic::IntoRequest<super::SendBlockItemRequest>,
7341 ) -> std::result::Result<
7342 tonic::Response<super::TransactionHash>,
7343 tonic::Status,
7344 > {
7345 self.inner
7346 .ready()
7347 .await
7348 .map_err(|e| {
7349 tonic::Status::unknown(
7350 format!("Service was not ready: {}", e.into()),
7351 )
7352 })?;
7353 let codec = tonic::codec::ProstCodec::default();
7354 let path = http::uri::PathAndQuery::from_static(
7355 "/concordium.v2.Queries/SendBlockItem",
7356 );
7357 let mut req = request.into_request();
7358 req.extensions_mut()
7359 .insert(GrpcMethod::new("concordium.v2.Queries", "SendBlockItem"));
7360 self.inner.unary(req, path, codec).await
7361 }
7362 pub async fn get_account_transaction_sign_hash(
7370 &mut self,
7371 request: impl tonic::IntoRequest<super::PreAccountTransaction>,
7372 ) -> std::result::Result<
7373 tonic::Response<super::AccountTransactionSignHash>,
7374 tonic::Status,
7375 > {
7376 self.inner
7377 .ready()
7378 .await
7379 .map_err(|e| {
7380 tonic::Status::unknown(
7381 format!("Service was not ready: {}", e.into()),
7382 )
7383 })?;
7384 let codec = tonic::codec::ProstCodec::default();
7385 let path = http::uri::PathAndQuery::from_static(
7386 "/concordium.v2.Queries/GetAccountTransactionSignHash",
7387 );
7388 let mut req = request.into_request();
7389 req.extensions_mut()
7390 .insert(
7391 GrpcMethod::new(
7392 "concordium.v2.Queries",
7393 "GetAccountTransactionSignHash",
7394 ),
7395 );
7396 self.inner.unary(req, path, codec).await
7397 }
7398 pub async fn get_block_chain_parameters(
7400 &mut self,
7401 request: impl tonic::IntoRequest<super::BlockHashInput>,
7402 ) -> std::result::Result<
7403 tonic::Response<super::ChainParameters>,
7404 tonic::Status,
7405 > {
7406 self.inner
7407 .ready()
7408 .await
7409 .map_err(|e| {
7410 tonic::Status::unknown(
7411 format!("Service was not ready: {}", e.into()),
7412 )
7413 })?;
7414 let codec = tonic::codec::ProstCodec::default();
7415 let path = http::uri::PathAndQuery::from_static(
7416 "/concordium.v2.Queries/GetBlockChainParameters",
7417 );
7418 let mut req = request.into_request();
7419 req.extensions_mut()
7420 .insert(
7421 GrpcMethod::new("concordium.v2.Queries", "GetBlockChainParameters"),
7422 );
7423 self.inner.unary(req, path, codec).await
7424 }
7425 pub async fn get_block_finalization_summary(
7427 &mut self,
7428 request: impl tonic::IntoRequest<super::BlockHashInput>,
7429 ) -> std::result::Result<
7430 tonic::Response<super::BlockFinalizationSummary>,
7431 tonic::Status,
7432 > {
7433 self.inner
7434 .ready()
7435 .await
7436 .map_err(|e| {
7437 tonic::Status::unknown(
7438 format!("Service was not ready: {}", e.into()),
7439 )
7440 })?;
7441 let codec = tonic::codec::ProstCodec::default();
7442 let path = http::uri::PathAndQuery::from_static(
7443 "/concordium.v2.Queries/GetBlockFinalizationSummary",
7444 );
7445 let mut req = request.into_request();
7446 req.extensions_mut()
7447 .insert(
7448 GrpcMethod::new(
7449 "concordium.v2.Queries",
7450 "GetBlockFinalizationSummary",
7451 ),
7452 );
7453 self.inner.unary(req, path, codec).await
7454 }
7455 pub async fn get_block_items(
7457 &mut self,
7458 request: impl tonic::IntoRequest<super::BlockHashInput>,
7459 ) -> std::result::Result<
7460 tonic::Response<tonic::codec::Streaming<super::BlockItem>>,
7461 tonic::Status,
7462 > {
7463 self.inner
7464 .ready()
7465 .await
7466 .map_err(|e| {
7467 tonic::Status::unknown(
7468 format!("Service was not ready: {}", e.into()),
7469 )
7470 })?;
7471 let codec = tonic::codec::ProstCodec::default();
7472 let path = http::uri::PathAndQuery::from_static(
7473 "/concordium.v2.Queries/GetBlockItems",
7474 );
7475 let mut req = request.into_request();
7476 req.extensions_mut()
7477 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItems"));
7478 self.inner.server_streaming(req, path, codec).await
7479 }
7480 pub async fn get_bakers_reward_period(
7484 &mut self,
7485 request: impl tonic::IntoRequest<super::BlockHashInput>,
7486 ) -> std::result::Result<
7487 tonic::Response<tonic::codec::Streaming<super::BakerRewardPeriodInfo>>,
7488 tonic::Status,
7489 > {
7490 self.inner
7491 .ready()
7492 .await
7493 .map_err(|e| {
7494 tonic::Status::unknown(
7495 format!("Service was not ready: {}", e.into()),
7496 )
7497 })?;
7498 let codec = tonic::codec::ProstCodec::default();
7499 let path = http::uri::PathAndQuery::from_static(
7500 "/concordium.v2.Queries/GetBakersRewardPeriod",
7501 );
7502 let mut req = request.into_request();
7503 req.extensions_mut()
7504 .insert(
7505 GrpcMethod::new("concordium.v2.Queries", "GetBakersRewardPeriod"),
7506 );
7507 self.inner.server_streaming(req, path, codec).await
7508 }
7509 pub async fn get_block_certificates(
7516 &mut self,
7517 request: impl tonic::IntoRequest<super::BlockHashInput>,
7518 ) -> std::result::Result<
7519 tonic::Response<super::BlockCertificates>,
7520 tonic::Status,
7521 > {
7522 self.inner
7523 .ready()
7524 .await
7525 .map_err(|e| {
7526 tonic::Status::unknown(
7527 format!("Service was not ready: {}", e.into()),
7528 )
7529 })?;
7530 let codec = tonic::codec::ProstCodec::default();
7531 let path = http::uri::PathAndQuery::from_static(
7532 "/concordium.v2.Queries/GetBlockCertificates",
7533 );
7534 let mut req = request.into_request();
7535 req.extensions_mut()
7536 .insert(
7537 GrpcMethod::new("concordium.v2.Queries", "GetBlockCertificates"),
7538 );
7539 self.inner.unary(req, path, codec).await
7540 }
7541 pub async fn get_winning_bakers_epoch(
7557 &mut self,
7558 request: impl tonic::IntoRequest<super::EpochRequest>,
7559 ) -> std::result::Result<
7560 tonic::Response<tonic::codec::Streaming<super::WinningBaker>>,
7561 tonic::Status,
7562 > {
7563 self.inner
7564 .ready()
7565 .await
7566 .map_err(|e| {
7567 tonic::Status::unknown(
7568 format!("Service was not ready: {}", e.into()),
7569 )
7570 })?;
7571 let codec = tonic::codec::ProstCodec::default();
7572 let path = http::uri::PathAndQuery::from_static(
7573 "/concordium.v2.Queries/GetWinningBakersEpoch",
7574 );
7575 let mut req = request.into_request();
7576 req.extensions_mut()
7577 .insert(
7578 GrpcMethod::new("concordium.v2.Queries", "GetWinningBakersEpoch"),
7579 );
7580 self.inner.server_streaming(req, path, codec).await
7581 }
7582 pub async fn get_first_block_epoch(
7593 &mut self,
7594 request: impl tonic::IntoRequest<super::EpochRequest>,
7595 ) -> std::result::Result<tonic::Response<super::BlockHash>, tonic::Status> {
7596 self.inner
7597 .ready()
7598 .await
7599 .map_err(|e| {
7600 tonic::Status::unknown(
7601 format!("Service was not ready: {}", e.into()),
7602 )
7603 })?;
7604 let codec = tonic::codec::ProstCodec::default();
7605 let path = http::uri::PathAndQuery::from_static(
7606 "/concordium.v2.Queries/GetFirstBlockEpoch",
7607 );
7608 let mut req = request.into_request();
7609 req.extensions_mut()
7610 .insert(GrpcMethod::new("concordium.v2.Queries", "GetFirstBlockEpoch"));
7611 self.inner.unary(req, path, codec).await
7612 }
7613 pub async fn get_consensus_detailed_status(
7620 &mut self,
7621 request: impl tonic::IntoRequest<super::ConsensusDetailedStatusQuery>,
7622 ) -> std::result::Result<
7623 tonic::Response<super::ConsensusDetailedStatus>,
7624 tonic::Status,
7625 > {
7626 self.inner
7627 .ready()
7628 .await
7629 .map_err(|e| {
7630 tonic::Status::unknown(
7631 format!("Service was not ready: {}", e.into()),
7632 )
7633 })?;
7634 let codec = tonic::codec::ProstCodec::default();
7635 let path = http::uri::PathAndQuery::from_static(
7636 "/concordium.v2.Queries/GetConsensusDetailedStatus",
7637 );
7638 let mut req = request.into_request();
7639 req.extensions_mut()
7640 .insert(
7641 GrpcMethod::new(
7642 "concordium.v2.Queries",
7643 "GetConsensusDetailedStatus",
7644 ),
7645 );
7646 self.inner.unary(req, path, codec).await
7647 }
7648 pub async fn dry_run(
7677 &mut self,
7678 request: impl tonic::IntoStreamingRequest<Message = super::DryRunRequest>,
7679 ) -> std::result::Result<
7680 tonic::Response<tonic::codec::Streaming<super::DryRunResponse>>,
7681 tonic::Status,
7682 > {
7683 self.inner
7684 .ready()
7685 .await
7686 .map_err(|e| {
7687 tonic::Status::unknown(
7688 format!("Service was not ready: {}", e.into()),
7689 )
7690 })?;
7691 let codec = tonic::codec::ProstCodec::default();
7692 let path = http::uri::PathAndQuery::from_static(
7693 "/concordium.v2.Queries/DryRun",
7694 );
7695 let mut req = request.into_streaming_request();
7696 req.extensions_mut()
7697 .insert(GrpcMethod::new("concordium.v2.Queries", "DryRun"));
7698 self.inner.streaming(req, path, codec).await
7699 }
7700 }
7701}