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)]
11pub struct Memo {
12 #[prost(bytes = "vec", tag = "1")]
13 pub value: ::prost::alloc::vec::Vec<u8>,
14}
15#[derive(Clone, Copy, PartialEq, ::prost::Message)]
17pub struct Empty {}
18#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct BlockHash {
21 #[prost(bytes = "vec", tag = "1")]
22 pub value: ::prost::alloc::vec::Vec<u8>,
23}
24#[derive(Clone, PartialEq, ::prost::Message)]
26pub struct Sha256Hash {
27 #[prost(bytes = "vec", tag = "1")]
28 pub value: ::prost::alloc::vec::Vec<u8>,
29}
30#[derive(Clone, PartialEq, ::prost::Message)]
32pub struct TransactionHash {
33 #[prost(bytes = "vec", tag = "1")]
34 pub value: ::prost::alloc::vec::Vec<u8>,
35}
36#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct StateHash {
39 #[prost(bytes = "vec", tag = "1")]
40 pub value: ::prost::alloc::vec::Vec<u8>,
41}
42#[derive(Clone, Copy, PartialEq, ::prost::Message)]
46pub struct AbsoluteBlockHeight {
47 #[prost(uint64, tag = "1")]
48 pub value: u64,
49}
50#[derive(Clone, Copy, PartialEq, ::prost::Message)]
53pub struct BlockHeight {
54 #[prost(uint64, tag = "1")]
55 pub value: u64,
56}
57#[derive(Clone, Copy, PartialEq, ::prost::Message)]
59pub struct BakerId {
60 #[prost(uint64, tag = "1")]
61 pub value: u64,
62}
63#[derive(Clone, Copy, PartialEq, ::prost::Message)]
66pub struct AccountIndex {
67 #[prost(uint64, tag = "1")]
68 pub value: u64,
69}
70#[derive(Clone, PartialEq, ::prost::Message)]
72pub struct ModuleRef {
73 #[prost(bytes = "vec", tag = "1")]
74 pub value: ::prost::alloc::vec::Vec<u8>,
75}
76#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct VersionedModuleSource {
79 #[prost(oneof = "versioned_module_source::Module", tags = "1, 2")]
82 pub module: ::core::option::Option<versioned_module_source::Module>,
83}
84pub mod versioned_module_source {
86 #[derive(Clone, PartialEq, ::prost::Message)]
88 pub struct ModuleSourceV0 {
89 #[prost(bytes = "vec", tag = "1")]
90 pub value: ::prost::alloc::vec::Vec<u8>,
91 }
92 #[derive(Clone, PartialEq, ::prost::Message)]
94 pub struct ModuleSourceV1 {
95 #[prost(bytes = "vec", tag = "1")]
96 pub value: ::prost::alloc::vec::Vec<u8>,
97 }
98 #[derive(Clone, PartialEq, ::prost::Oneof)]
101 pub enum Module {
102 #[prost(message, tag = "1")]
103 V0(ModuleSourceV0),
104 #[prost(message, tag = "2")]
105 V1(ModuleSourceV1),
106 }
107}
108#[derive(Clone, Copy, PartialEq, ::prost::Message)]
110pub struct Timestamp {
111 #[prost(uint64, tag = "1")]
112 pub value: u64,
113}
114#[derive(Clone, PartialEq, ::prost::Message)]
116pub struct Release {
117 #[prost(message, optional, tag = "1")]
119 pub timestamp: ::core::option::Option<Timestamp>,
120 #[prost(message, optional, tag = "2")]
122 pub amount: ::core::option::Option<Amount>,
123 #[prost(message, repeated, tag = "3")]
125 pub transactions: ::prost::alloc::vec::Vec<TransactionHash>,
126}
127#[derive(Clone, Copy, PartialEq, ::prost::Message)]
129pub struct NewRelease {
130 #[prost(message, optional, tag = "1")]
132 pub timestamp: ::core::option::Option<Timestamp>,
133 #[prost(message, optional, tag = "2")]
135 pub amount: ::core::option::Option<Amount>,
136}
137#[derive(Clone, PartialEq, ::prost::Message)]
140pub struct ReleaseSchedule {
141 #[prost(message, optional, tag = "1")]
143 pub total: ::core::option::Option<Amount>,
144 #[prost(message, repeated, tag = "2")]
146 pub schedules: ::prost::alloc::vec::Vec<Release>,
147}
148#[derive(Clone, PartialEq, ::prost::Message)]
154pub struct EncryptedAmount {
155 #[prost(bytes = "vec", tag = "1")]
156 pub value: ::prost::alloc::vec::Vec<u8>,
157}
158#[derive(Clone, PartialEq, ::prost::Message)]
159pub struct EncryptedBalance {
160 #[prost(message, optional, tag = "1")]
169 pub self_amount: ::core::option::Option<EncryptedAmount>,
170 #[prost(uint64, tag = "2")]
175 pub start_index: u64,
176 #[prost(message, optional, tag = "3")]
179 pub aggregated_amount: ::core::option::Option<EncryptedAmount>,
180 #[prost(uint32, optional, tag = "4")]
183 pub num_aggregated: ::core::option::Option<u32>,
184 #[prost(message, repeated, tag = "5")]
190 pub incoming_amounts: ::prost::alloc::vec::Vec<EncryptedAmount>,
191}
192#[derive(Clone, Copy, PartialEq, ::prost::Message)]
194pub struct DelegationTarget {
195 #[prost(oneof = "delegation_target::Target", tags = "1, 2")]
197 pub target: ::core::option::Option<delegation_target::Target>,
198}
199pub mod delegation_target {
201 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
203 pub enum Target {
204 #[prost(message, tag = "1")]
206 Passive(super::Empty),
207 #[prost(message, tag = "2")]
209 Baker(super::BakerId),
210 }
211}
212#[derive(Clone, PartialEq, ::prost::Message)]
214pub struct BakerElectionVerifyKey {
215 #[prost(bytes = "vec", tag = "1")]
216 pub value: ::prost::alloc::vec::Vec<u8>,
217}
218#[derive(Clone, PartialEq, ::prost::Message)]
221pub struct BakerSignatureVerifyKey {
222 #[prost(bytes = "vec", tag = "1")]
223 pub value: ::prost::alloc::vec::Vec<u8>,
224}
225#[derive(Clone, PartialEq, ::prost::Message)]
229pub struct BakerAggregationVerifyKey {
230 #[prost(bytes = "vec", tag = "1")]
231 pub value: ::prost::alloc::vec::Vec<u8>,
232}
233#[derive(Clone, PartialEq, ::prost::Message)]
235pub struct BakerInfo {
236 #[prost(message, optional, tag = "1")]
239 pub baker_id: ::core::option::Option<BakerId>,
240 #[prost(message, optional, tag = "2")]
242 pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
243 #[prost(message, optional, tag = "3")]
246 pub signature_key: ::core::option::Option<BakerSignatureVerifyKey>,
247 #[prost(message, optional, tag = "4")]
251 pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
252}
253#[derive(Clone, Copy, PartialEq, ::prost::Message)]
255pub struct StakePendingChange {
256 #[prost(oneof = "stake_pending_change::Change", tags = "1, 2")]
259 pub change: ::core::option::Option<stake_pending_change::Change>,
260}
261pub mod stake_pending_change {
263 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
264 pub struct Reduce {
265 #[prost(message, optional, tag = "1")]
266 pub new_stake: ::core::option::Option<super::Amount>,
267 #[prost(message, optional, tag = "2")]
269 pub effective_time: ::core::option::Option<super::Timestamp>,
270 }
271 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
274 pub enum Change {
275 #[prost(message, tag = "1")]
276 Reduce(Reduce),
277 #[prost(message, tag = "2")]
280 Remove(super::Timestamp),
281 }
282}
283#[derive(Clone, Copy, PartialEq, ::prost::Message)]
285pub struct AmountFraction {
286 #[prost(uint32, tag = "1")]
288 pub parts_per_hundred_thousand: u32,
289}
290#[derive(Clone, Copy, PartialEq, ::prost::Message)]
292pub struct CommissionRates {
293 #[prost(message, optional, tag = "1")]
295 pub finalization: ::core::option::Option<AmountFraction>,
296 #[prost(message, optional, tag = "2")]
298 pub baking: ::core::option::Option<AmountFraction>,
299 #[prost(message, optional, tag = "3")]
301 pub transaction: ::core::option::Option<AmountFraction>,
302}
303#[derive(Clone, PartialEq, ::prost::Message)]
306pub struct BakerPoolInfo {
307 #[prost(enumeration = "OpenStatus", tag = "1")]
309 pub open_status: i32,
310 #[prost(string, tag = "2")]
312 pub url: ::prost::alloc::string::String,
313 #[prost(message, optional, tag = "3")]
315 pub commission_rates: ::core::option::Option<CommissionRates>,
316}
317#[derive(Clone, PartialEq, ::prost::Message)]
320pub struct AccountStakingInfo {
321 #[prost(oneof = "account_staking_info::StakingInfo", tags = "1, 2")]
323 pub staking_info: ::core::option::Option<account_staking_info::StakingInfo>,
324}
325pub mod account_staking_info {
327 #[derive(Clone, PartialEq, ::prost::Message)]
328 pub struct Baker {
329 #[prost(message, optional, tag = "1")]
331 pub staked_amount: ::core::option::Option<super::Amount>,
332 #[prost(bool, tag = "2")]
335 pub restake_earnings: bool,
336 #[prost(message, optional, tag = "3")]
338 pub baker_info: ::core::option::Option<super::BakerInfo>,
339 #[prost(message, optional, tag = "4")]
343 pub pending_change: ::core::option::Option<super::StakePendingChange>,
344 #[prost(message, optional, tag = "5")]
347 pub pool_info: ::core::option::Option<super::BakerPoolInfo>,
348 #[prost(bool, tag = "6")]
354 pub is_suspended: bool,
355 }
356 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
357 pub struct Delegator {
358 #[prost(message, optional, tag = "1")]
360 pub staked_amount: ::core::option::Option<super::Amount>,
361 #[prost(bool, tag = "2")]
363 pub restake_earnings: bool,
364 #[prost(message, optional, tag = "3")]
366 pub target: ::core::option::Option<super::DelegationTarget>,
367 #[prost(message, optional, tag = "4")]
369 pub pending_change: ::core::option::Option<super::StakePendingChange>,
370 }
371 #[derive(Clone, PartialEq, ::prost::Oneof)]
373 pub enum StakingInfo {
374 #[prost(message, tag = "1")]
376 Baker(Baker),
377 #[prost(message, tag = "2")]
379 Delegator(Delegator),
380 }
381}
382#[derive(Clone, Copy, PartialEq, ::prost::Message)]
385pub struct SequenceNumber {
386 #[prost(uint64, tag = "1")]
388 pub value: u64,
389}
390#[derive(Clone, Copy, PartialEq, ::prost::Message)]
394pub struct UpdateSequenceNumber {
395 #[prost(uint64, tag = "1")]
397 pub value: u64,
398}
399#[derive(Clone, Copy, PartialEq, ::prost::Message)]
401pub struct Amount {
402 #[prost(uint64, tag = "1")]
403 pub value: u64,
404}
405#[derive(Clone, Copy, PartialEq, ::prost::Message)]
407pub struct CredentialIndex {
408 #[prost(uint32, tag = "1")]
409 pub value: u32,
410}
411#[derive(Clone, Copy, PartialEq, ::prost::Message)]
413pub struct SignatureThreshold {
414 #[prost(uint32, tag = "1")]
415 pub value: u32,
416}
417#[derive(Clone, Copy, PartialEq, ::prost::Message)]
419pub struct AccountThreshold {
420 #[prost(uint32, tag = "1")]
421 pub value: u32,
422}
423#[derive(Clone, PartialEq, ::prost::Message)]
425pub struct EncryptionKey {
426 #[prost(bytes = "vec", tag = "1")]
427 pub value: ::prost::alloc::vec::Vec<u8>,
428}
429#[derive(Clone, PartialEq, ::prost::Message)]
431pub struct Address {
432 #[prost(oneof = "address::Type", tags = "1, 2")]
434 pub r#type: ::core::option::Option<address::Type>,
435}
436pub mod address {
438 #[derive(Clone, PartialEq, ::prost::Oneof)]
440 pub enum Type {
441 #[prost(message, tag = "1")]
442 Account(super::AccountAddress),
443 #[prost(message, tag = "2")]
444 Contract(super::ContractAddress),
445 }
446}
447#[derive(Clone, PartialEq, ::prost::Message)]
449pub struct AccountVerifyKey {
450 #[prost(oneof = "account_verify_key::Key", tags = "1")]
452 pub key: ::core::option::Option<account_verify_key::Key>,
453}
454pub mod account_verify_key {
456 #[derive(Clone, PartialEq, ::prost::Oneof)]
458 pub enum Key {
459 #[prost(bytes, tag = "1")]
460 Ed25519Key(::prost::alloc::vec::Vec<u8>),
461 }
462}
463#[derive(Clone, PartialEq, ::prost::Message)]
465pub struct CredentialPublicKeys {
466 #[prost(map = "uint32, message", tag = "1")]
467 pub keys: ::std::collections::HashMap<u32, AccountVerifyKey>,
468 #[prost(message, optional, tag = "2")]
469 pub threshold: ::core::option::Option<SignatureThreshold>,
470}
471#[derive(Clone, PartialEq, ::prost::Message)]
474pub struct CredentialRegistrationId {
475 #[prost(bytes = "vec", tag = "1")]
476 pub value: ::prost::alloc::vec::Vec<u8>,
477}
478#[derive(Clone, Copy, PartialEq, ::prost::Message)]
481pub struct IdentityProviderIdentity {
482 #[prost(uint32, tag = "1")]
483 pub value: u32,
484}
485#[derive(Clone, Copy, PartialEq, ::prost::Message)]
487pub struct YearMonth {
488 #[prost(uint32, tag = "1")]
489 pub year: u32,
490 #[prost(uint32, tag = "2")]
491 pub month: u32,
492}
493#[derive(Clone, PartialEq, ::prost::Message)]
495pub struct Policy {
496 #[prost(message, optional, tag = "1")]
499 pub created_at: ::core::option::Option<YearMonth>,
500 #[prost(message, optional, tag = "2")]
503 pub valid_to: ::core::option::Option<YearMonth>,
504 #[prost(map = "uint32, bytes", tag = "3")]
508 pub attributes: ::std::collections::HashMap<u32, ::prost::alloc::vec::Vec<u8>>,
509}
510#[derive(Clone, PartialEq, ::prost::Message)]
512pub struct InitialCredentialValues {
513 #[prost(message, optional, tag = "1")]
515 pub keys: ::core::option::Option<CredentialPublicKeys>,
516 #[prost(message, optional, tag = "2")]
518 pub cred_id: ::core::option::Option<CredentialRegistrationId>,
519 #[prost(message, optional, tag = "3")]
522 pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
523 #[prost(message, optional, tag = "4")]
525 pub policy: ::core::option::Option<Policy>,
526}
527#[derive(Clone, PartialEq, ::prost::Message)]
530pub struct ChainArData {
531 #[prost(bytes = "vec", tag = "1")]
533 pub enc_id_cred_pub_share: ::prost::alloc::vec::Vec<u8>,
534}
535#[derive(Clone, Copy, PartialEq, ::prost::Message)]
538pub struct ArThreshold {
539 #[prost(uint32, tag = "1")]
540 pub value: u32,
541}
542#[derive(Clone, PartialEq, ::prost::Message)]
545pub struct Commitment {
546 #[prost(bytes = "vec", tag = "1")]
547 pub value: ::prost::alloc::vec::Vec<u8>,
548}
549#[derive(Clone, PartialEq, ::prost::Message)]
551pub struct CredentialCommitments {
552 #[prost(message, optional, tag = "1")]
554 pub prf: ::core::option::Option<Commitment>,
555 #[prost(message, optional, tag = "2")]
557 pub cred_counter: ::core::option::Option<Commitment>,
558 #[prost(message, optional, tag = "3")]
561 pub max_accounts: ::core::option::Option<Commitment>,
562 #[prost(map = "uint32, message", tag = "4")]
564 pub attributes: ::std::collections::HashMap<u32, Commitment>,
565 #[prost(message, repeated, tag = "5")]
569 pub id_cred_sec_sharing_coeff: ::prost::alloc::vec::Vec<Commitment>,
570}
571#[derive(Clone, PartialEq, ::prost::Message)]
573pub struct NormalCredentialValues {
574 #[prost(message, optional, tag = "1")]
576 pub keys: ::core::option::Option<CredentialPublicKeys>,
577 #[prost(message, optional, tag = "2")]
579 pub cred_id: ::core::option::Option<CredentialRegistrationId>,
580 #[prost(message, optional, tag = "3")]
583 pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
584 #[prost(message, optional, tag = "4")]
586 pub policy: ::core::option::Option<Policy>,
587 #[prost(message, optional, tag = "5")]
590 pub ar_threshold: ::core::option::Option<ArThreshold>,
591 #[prost(map = "uint32, message", tag = "6")]
593 pub ar_data: ::std::collections::HashMap<u32, ChainArData>,
594 #[prost(message, optional, tag = "7")]
596 pub commitments: ::core::option::Option<CredentialCommitments>,
597}
598#[derive(Clone, PartialEq, ::prost::Message)]
600pub struct AccountCredential {
601 #[prost(oneof = "account_credential::CredentialValues", tags = "1, 2")]
603 pub credential_values: ::core::option::Option<account_credential::CredentialValues>,
604}
605pub mod account_credential {
607 #[derive(Clone, PartialEq, ::prost::Oneof)]
609 pub enum CredentialValues {
610 #[prost(message, tag = "1")]
611 Initial(super::InitialCredentialValues),
612 #[prost(message, tag = "2")]
613 Normal(super::NormalCredentialValues),
614 }
615}
616#[derive(Clone, Copy, PartialEq, ::prost::Message)]
617pub struct Cooldown {
618 #[prost(message, optional, tag = "1")]
621 pub end_time: ::core::option::Option<Timestamp>,
622 #[prost(message, optional, tag = "2")]
625 pub amount: ::core::option::Option<Amount>,
626 #[prost(enumeration = "cooldown::CooldownStatus", tag = "3")]
628 pub status: i32,
629}
630pub mod cooldown {
632 #[derive(
641 Clone,
642 Copy,
643 Debug,
644 PartialEq,
645 Eq,
646 Hash,
647 PartialOrd,
648 Ord,
649 ::prost::Enumeration
650 )]
651 #[repr(i32)]
652 pub enum CooldownStatus {
653 Cooldown = 0,
656 PreCooldown = 1,
661 PrePreCooldown = 2,
665 }
666 impl CooldownStatus {
667 pub fn as_str_name(&self) -> &'static str {
672 match self {
673 Self::Cooldown => "COOLDOWN",
674 Self::PreCooldown => "PRE_COOLDOWN",
675 Self::PrePreCooldown => "PRE_PRE_COOLDOWN",
676 }
677 }
678 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
680 match value {
681 "COOLDOWN" => Some(Self::Cooldown),
682 "PRE_COOLDOWN" => Some(Self::PreCooldown),
683 "PRE_PRE_COOLDOWN" => Some(Self::PrePreCooldown),
684 _ => None,
685 }
686 }
687 }
688}
689#[derive(Clone, PartialEq, ::prost::Message)]
691pub struct TokenInfo {
692 #[prost(message, optional, tag = "1")]
694 pub token_id: ::core::option::Option<plt::TokenId>,
695 #[prost(message, optional, tag = "2")]
697 pub token_state: ::core::option::Option<plt::TokenState>,
698}
699#[derive(Clone, PartialEq, ::prost::Message)]
701pub struct AccountInfo {
702 #[prost(message, optional, tag = "1")]
704 pub sequence_number: ::core::option::Option<SequenceNumber>,
705 #[prost(message, optional, tag = "2")]
707 pub amount: ::core::option::Option<Amount>,
708 #[prost(message, optional, tag = "3")]
711 pub schedule: ::core::option::Option<ReleaseSchedule>,
712 #[prost(map = "uint32, message", tag = "4")]
717 pub creds: ::std::collections::HashMap<u32, AccountCredential>,
718 #[prost(message, optional, tag = "5")]
721 pub threshold: ::core::option::Option<AccountThreshold>,
722 #[prost(message, optional, tag = "6")]
724 pub encrypted_balance: ::core::option::Option<EncryptedBalance>,
725 #[prost(message, optional, tag = "7")]
727 pub encryption_key: ::core::option::Option<EncryptionKey>,
728 #[prost(message, optional, tag = "8")]
734 pub index: ::core::option::Option<AccountIndex>,
735 #[prost(message, optional, tag = "9")]
738 pub stake: ::core::option::Option<AccountStakingInfo>,
739 #[prost(message, optional, tag = "10")]
742 pub address: ::core::option::Option<AccountAddress>,
743 #[prost(message, repeated, tag = "11")]
748 pub cooldowns: ::prost::alloc::vec::Vec<Cooldown>,
749 #[prost(message, optional, tag = "12")]
755 pub available_balance: ::core::option::Option<Amount>,
756 #[prost(message, repeated, tag = "13")]
758 pub tokens: ::prost::alloc::vec::Vec<account_info::Token>,
759}
760pub mod account_info {
762 #[derive(Clone, PartialEq, ::prost::Message)]
764 pub struct Token {
765 #[prost(message, optional, tag = "1")]
767 pub token_id: ::core::option::Option<super::plt::TokenId>,
768 #[prost(message, optional, tag = "2")]
770 pub token_account_state: ::core::option::Option<super::plt::TokenAccountState>,
771 }
772}
773#[derive(Clone, PartialEq, ::prost::Message)]
775pub struct BlockHashInput {
776 #[prost(oneof = "block_hash_input::BlockHashInput", tags = "1, 2, 3, 4, 5")]
778 pub block_hash_input: ::core::option::Option<block_hash_input::BlockHashInput>,
779}
780pub mod block_hash_input {
782 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
784 pub struct RelativeHeight {
785 #[prost(message, optional, tag = "1")]
787 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
788 #[prost(message, optional, tag = "2")]
790 pub height: ::core::option::Option<super::BlockHeight>,
791 #[prost(bool, tag = "3")]
794 pub restrict: bool,
795 }
796 #[derive(Clone, PartialEq, ::prost::Oneof)]
798 pub enum BlockHashInput {
799 #[prost(message, tag = "1")]
801 Best(super::Empty),
802 #[prost(message, tag = "2")]
804 LastFinal(super::Empty),
805 #[prost(message, tag = "3")]
807 Given(super::BlockHash),
808 #[prost(message, tag = "4")]
810 AbsoluteHeight(super::AbsoluteBlockHeight),
811 #[prost(message, tag = "5")]
813 RelativeHeight(RelativeHeight),
814 }
815}
816#[derive(Clone, PartialEq, ::prost::Message)]
818pub struct EpochRequest {
819 #[prost(oneof = "epoch_request::EpochRequestInput", tags = "1, 2")]
821 pub epoch_request_input: ::core::option::Option<epoch_request::EpochRequestInput>,
822}
823pub mod epoch_request {
825 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
827 pub struct RelativeEpoch {
828 #[prost(message, optional, tag = "1")]
831 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
832 #[prost(message, optional, tag = "2")]
834 pub epoch: ::core::option::Option<super::Epoch>,
835 }
836 #[derive(Clone, PartialEq, ::prost::Oneof)]
838 pub enum EpochRequestInput {
839 #[prost(message, tag = "1")]
841 RelativeEpoch(RelativeEpoch),
842 #[prost(message, tag = "2")]
844 BlockHash(super::BlockHashInput),
845 }
846}
847#[derive(Clone, PartialEq, ::prost::Message)]
849pub struct AccountIdentifierInput {
850 #[prost(
852 oneof = "account_identifier_input::AccountIdentifierInput",
853 tags = "1, 2, 3"
854 )]
855 pub account_identifier_input: ::core::option::Option<
856 account_identifier_input::AccountIdentifierInput,
857 >,
858}
859pub mod account_identifier_input {
861 #[derive(Clone, PartialEq, ::prost::Oneof)]
863 pub enum AccountIdentifierInput {
864 #[prost(message, tag = "1")]
866 Address(super::AccountAddress),
867 #[prost(message, tag = "2")]
869 CredId(super::CredentialRegistrationId),
870 #[prost(message, tag = "3")]
872 AccountIndex(super::AccountIndex),
873 }
874}
875#[derive(Clone, PartialEq, ::prost::Message)]
877pub struct AccountInfoRequest {
878 #[prost(message, optional, tag = "1")]
880 pub block_hash: ::core::option::Option<BlockHashInput>,
881 #[prost(message, optional, tag = "2")]
883 pub account_identifier: ::core::option::Option<AccountIdentifierInput>,
884}
885#[derive(Clone, PartialEq, ::prost::Message)]
887pub struct TokenInfoRequest {
888 #[prost(message, optional, tag = "1")]
890 pub block_hash: ::core::option::Option<BlockHashInput>,
891 #[prost(message, optional, tag = "2")]
893 pub token_id: ::core::option::Option<plt::TokenId>,
894}
895#[derive(Clone, PartialEq, ::prost::Message)]
897pub struct FinalizedBlockInfo {
898 #[prost(message, optional, tag = "1")]
900 pub hash: ::core::option::Option<BlockHash>,
901 #[prost(message, optional, tag = "2")]
903 pub height: ::core::option::Option<AbsoluteBlockHeight>,
904}
905#[derive(Clone, PartialEq, ::prost::Message)]
907pub struct AncestorsRequest {
908 #[prost(message, optional, tag = "1")]
910 pub block_hash: ::core::option::Option<BlockHashInput>,
911 #[prost(uint64, tag = "2")]
913 pub amount: u64,
914}
915#[derive(Clone, PartialEq, ::prost::Message)]
917pub struct ModuleSourceRequest {
918 #[prost(message, optional, tag = "1")]
920 pub block_hash: ::core::option::Option<BlockHashInput>,
921 #[prost(message, optional, tag = "2")]
923 pub module_ref: ::core::option::Option<ModuleRef>,
924}
925#[derive(Clone, Copy, PartialEq, ::prost::Message)]
927pub struct ContractAddress {
928 #[prost(uint64, tag = "1")]
930 pub index: u64,
931 #[prost(uint64, tag = "2")]
934 pub subindex: u64,
935}
936#[derive(Clone, PartialEq, ::prost::Message)]
938pub struct InstanceInfoRequest {
939 #[prost(message, optional, tag = "1")]
941 pub block_hash: ::core::option::Option<BlockHashInput>,
942 #[prost(message, optional, tag = "2")]
944 pub address: ::core::option::Option<ContractAddress>,
945}
946#[derive(Clone, PartialEq, ::prost::Message)]
948pub struct InstanceInfo {
949 #[prost(oneof = "instance_info::Version", tags = "1, 2")]
954 pub version: ::core::option::Option<instance_info::Version>,
955}
956pub mod instance_info {
958 #[derive(Clone, PartialEq, ::prost::Message)]
960 pub struct V0 {
961 #[prost(message, optional, tag = "1")]
963 pub model: ::core::option::Option<super::ContractStateV0>,
964 #[prost(message, optional, tag = "2")]
966 pub owner: ::core::option::Option<super::AccountAddress>,
967 #[prost(message, optional, tag = "3")]
969 pub amount: ::core::option::Option<super::Amount>,
970 #[prost(message, repeated, tag = "4")]
972 pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
973 #[prost(message, optional, tag = "5")]
975 pub name: ::core::option::Option<super::InitName>,
976 #[prost(message, optional, tag = "6")]
978 pub source_module: ::core::option::Option<super::ModuleRef>,
979 }
980 #[derive(Clone, PartialEq, ::prost::Message)]
982 pub struct V1 {
983 #[prost(message, optional, tag = "2")]
985 pub owner: ::core::option::Option<super::AccountAddress>,
986 #[prost(message, optional, tag = "3")]
988 pub amount: ::core::option::Option<super::Amount>,
989 #[prost(message, repeated, tag = "4")]
991 pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
992 #[prost(message, optional, tag = "5")]
994 pub name: ::core::option::Option<super::InitName>,
995 #[prost(message, optional, tag = "6")]
997 pub source_module: ::core::option::Option<super::ModuleRef>,
998 }
999 #[derive(Clone, PartialEq, ::prost::Oneof)]
1004 pub enum Version {
1005 #[prost(message, tag = "1")]
1006 V0(V0),
1007 #[prost(message, tag = "2")]
1008 V1(V1),
1009 }
1010}
1011#[derive(Clone, PartialEq, ::prost::Message)]
1013pub struct InstanceStateKvPair {
1014 #[prost(bytes = "vec", tag = "1")]
1015 pub key: ::prost::alloc::vec::Vec<u8>,
1016 #[prost(bytes = "vec", tag = "2")]
1017 pub value: ::prost::alloc::vec::Vec<u8>,
1018}
1019#[derive(Clone, PartialEq, ::prost::Message)]
1021pub struct InstanceStateLookupRequest {
1022 #[prost(message, optional, tag = "1")]
1024 pub block_hash: ::core::option::Option<BlockHashInput>,
1025 #[prost(message, optional, tag = "2")]
1027 pub address: ::core::option::Option<ContractAddress>,
1028 #[prost(bytes = "vec", tag = "3")]
1030 pub key: ::prost::alloc::vec::Vec<u8>,
1031}
1032#[derive(Clone, PartialEq, ::prost::Message)]
1035pub struct InstanceStateValueAtKey {
1036 #[prost(bytes = "vec", tag = "1")]
1037 pub value: ::prost::alloc::vec::Vec<u8>,
1038}
1039#[derive(Clone, PartialEq, ::prost::Message)]
1043pub struct ReceiveName {
1044 #[prost(string, tag = "1")]
1045 pub value: ::prost::alloc::string::String,
1046}
1047#[derive(Clone, PartialEq, ::prost::Message)]
1052pub struct InitName {
1053 #[prost(string, tag = "1")]
1054 pub value: ::prost::alloc::string::String,
1055}
1056#[derive(Clone, PartialEq, ::prost::Message)]
1058pub struct Parameter {
1059 #[prost(bytes = "vec", tag = "1")]
1060 pub value: ::prost::alloc::vec::Vec<u8>,
1061}
1062#[derive(Clone, PartialEq, ::prost::Message)]
1064pub struct ContractStateV0 {
1065 #[prost(bytes = "vec", tag = "1")]
1066 pub value: ::prost::alloc::vec::Vec<u8>,
1067}
1068#[derive(Clone, PartialEq, ::prost::Message)]
1070pub struct BlockItemStatus {
1071 #[prost(oneof = "block_item_status::Status", tags = "1, 2, 3")]
1073 pub status: ::core::option::Option<block_item_status::Status>,
1074}
1075pub mod block_item_status {
1077 #[derive(Clone, PartialEq, ::prost::Message)]
1078 pub struct Committed {
1079 #[prost(message, repeated, tag = "1")]
1080 pub outcomes: ::prost::alloc::vec::Vec<super::BlockItemSummaryInBlock>,
1081 }
1082 #[derive(Clone, PartialEq, ::prost::Message)]
1083 pub struct Finalized {
1084 #[prost(message, optional, tag = "1")]
1085 pub outcome: ::core::option::Option<super::BlockItemSummaryInBlock>,
1086 }
1087 #[derive(Clone, PartialEq, ::prost::Oneof)]
1089 pub enum Status {
1090 #[prost(message, tag = "1")]
1092 Received(super::Empty),
1093 #[prost(message, tag = "2")]
1098 Committed(Committed),
1099 #[prost(message, tag = "3")]
1101 Finalized(Finalized),
1102 }
1103}
1104#[derive(Clone, PartialEq, ::prost::Message)]
1106pub struct BlockItemSummaryInBlock {
1107 #[prost(message, optional, tag = "1")]
1109 pub block_hash: ::core::option::Option<BlockHash>,
1110 #[prost(message, optional, tag = "2")]
1112 pub outcome: ::core::option::Option<BlockItemSummary>,
1113}
1114#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1117pub struct Energy {
1118 #[prost(uint64, tag = "1")]
1119 pub value: u64,
1120}
1121#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1123pub struct Slot {
1124 #[prost(uint64, tag = "1")]
1125 pub value: u64,
1126}
1127#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1129pub struct NextAccountSequenceNumber {
1130 #[prost(message, optional, tag = "1")]
1132 pub sequence_number: ::core::option::Option<SequenceNumber>,
1133 #[prost(bool, tag = "2")]
1135 pub all_final: bool,
1136}
1137#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1139pub struct Duration {
1140 #[prost(uint64, tag = "1")]
1141 pub value: u64,
1142}
1143#[derive(Clone, PartialEq, ::prost::Message)]
1147pub struct RejectReason {
1148 #[prost(
1150 oneof = "reject_reason::Reason",
1151 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"
1152 )]
1153 pub reason: ::core::option::Option<reject_reason::Reason>,
1154}
1155pub mod reject_reason {
1157 #[derive(Clone, PartialEq, ::prost::Message)]
1158 pub struct InvalidInitMethod {
1159 #[prost(message, optional, tag = "1")]
1160 pub module_ref: ::core::option::Option<super::ModuleRef>,
1161 #[prost(message, optional, tag = "2")]
1162 pub init_name: ::core::option::Option<super::InitName>,
1163 }
1164 #[derive(Clone, PartialEq, ::prost::Message)]
1165 pub struct InvalidReceiveMethod {
1166 #[prost(message, optional, tag = "1")]
1167 pub module_ref: ::core::option::Option<super::ModuleRef>,
1168 #[prost(message, optional, tag = "2")]
1169 pub receive_name: ::core::option::Option<super::ReceiveName>,
1170 }
1171 #[derive(Clone, PartialEq, ::prost::Message)]
1172 pub struct AmountTooLarge {
1173 #[prost(message, optional, tag = "1")]
1174 pub address: ::core::option::Option<super::Address>,
1175 #[prost(message, optional, tag = "2")]
1176 pub amount: ::core::option::Option<super::Amount>,
1177 }
1178 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1179 pub struct RejectedInit {
1180 #[prost(int32, tag = "1")]
1181 pub reject_reason: i32,
1182 }
1183 #[derive(Clone, PartialEq, ::prost::Message)]
1184 pub struct RejectedReceive {
1185 #[prost(int32, tag = "1")]
1186 pub reject_reason: i32,
1187 #[prost(message, optional, tag = "2")]
1188 pub contract_address: ::core::option::Option<super::ContractAddress>,
1189 #[prost(message, optional, tag = "3")]
1190 pub receive_name: ::core::option::Option<super::ReceiveName>,
1191 #[prost(message, optional, tag = "4")]
1192 pub parameter: ::core::option::Option<super::Parameter>,
1193 }
1194 #[derive(Clone, PartialEq, ::prost::Message)]
1195 pub struct DuplicateCredIds {
1196 #[prost(message, repeated, tag = "1")]
1197 pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1198 }
1199 #[derive(Clone, PartialEq, ::prost::Message)]
1200 pub struct NonExistentCredIds {
1201 #[prost(message, repeated, tag = "1")]
1202 pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
1203 }
1204 #[derive(Clone, PartialEq, ::prost::Oneof)]
1206 pub enum Reason {
1207 #[prost(message, tag = "1")]
1209 ModuleNotWf(super::Empty),
1210 #[prost(message, tag = "2")]
1212 ModuleHashAlreadyExists(super::ModuleRef),
1213 #[prost(message, tag = "3")]
1215 InvalidAccountReference(super::AccountAddress),
1216 #[prost(message, tag = "4")]
1218 InvalidInitMethod(InvalidInitMethod),
1219 #[prost(message, tag = "5")]
1221 InvalidReceiveMethod(InvalidReceiveMethod),
1222 #[prost(message, tag = "6")]
1224 InvalidModuleReference(super::ModuleRef),
1225 #[prost(message, tag = "7")]
1227 InvalidContractAddress(super::ContractAddress),
1228 #[prost(message, tag = "8")]
1231 RuntimeFailure(super::Empty),
1232 #[prost(message, tag = "9")]
1236 AmountTooLarge(AmountTooLarge),
1237 #[prost(message, tag = "10")]
1239 SerializationFailure(super::Empty),
1240 #[prost(message, tag = "11")]
1242 OutOfEnergy(super::Empty),
1243 #[prost(message, tag = "12")]
1245 RejectedInit(RejectedInit),
1246 #[prost(message, tag = "13")]
1248 RejectedReceive(RejectedReceive),
1249 #[prost(message, tag = "14")]
1251 InvalidProof(super::Empty),
1252 #[prost(message, tag = "15")]
1254 AlreadyABaker(super::BakerId),
1255 #[prost(message, tag = "16")]
1257 NotABaker(super::AccountAddress),
1258 #[prost(message, tag = "17")]
1260 InsufficientBalanceForBakerStake(super::Empty),
1261 #[prost(message, tag = "18")]
1263 StakeUnderMinimumThresholdForBaking(super::Empty),
1264 #[prost(message, tag = "19")]
1267 BakerInCooldown(super::Empty),
1268 #[prost(message, tag = "20")]
1270 DuplicateAggregationKey(super::BakerAggregationVerifyKey),
1271 #[prost(message, tag = "21")]
1273 NonExistentCredentialId(super::Empty),
1274 #[prost(message, tag = "22")]
1276 KeyIndexAlreadyInUse(super::Empty),
1277 #[prost(message, tag = "23")]
1280 InvalidAccountThreshold(super::Empty),
1281 #[prost(message, tag = "24")]
1284 InvalidCredentialKeySignThreshold(super::Empty),
1285 #[prost(message, tag = "25")]
1287 InvalidEncryptedAmountTransferProof(super::Empty),
1288 #[prost(message, tag = "26")]
1290 InvalidTransferToPublicProof(super::Empty),
1291 #[prost(message, tag = "27")]
1294 EncryptedAmountSelfTransfer(super::AccountAddress),
1295 #[prost(message, tag = "28")]
1298 InvalidIndexOnEncryptedTransfer(super::Empty),
1299 #[prost(message, tag = "29")]
1301 ZeroScheduledAmount(super::Empty),
1302 #[prost(message, tag = "30")]
1304 NonIncreasingSchedule(super::Empty),
1305 #[prost(message, tag = "31")]
1308 FirstScheduledReleaseExpired(super::Empty),
1309 #[prost(message, tag = "32")]
1311 ScheduledSelfTransfer(super::AccountAddress),
1312 #[prost(message, tag = "33")]
1315 InvalidCredentials(super::Empty),
1316 #[prost(message, tag = "34")]
1319 DuplicateCredIds(DuplicateCredIds),
1320 #[prost(message, tag = "35")]
1322 NonExistentCredIds(NonExistentCredIds),
1323 #[prost(message, tag = "36")]
1325 RemoveFirstCredential(super::Empty),
1326 #[prost(message, tag = "37")]
1329 CredentialHolderDidNotSign(super::Empty),
1330 #[prost(message, tag = "38")]
1333 NotAllowedMultipleCredentials(super::Empty),
1334 #[prost(message, tag = "39")]
1337 NotAllowedToReceiveEncrypted(super::Empty),
1338 #[prost(message, tag = "40")]
1341 NotAllowedToHandleEncrypted(super::Empty),
1342 #[prost(message, tag = "41")]
1345 MissingBakerAddParameters(super::Empty),
1346 #[prost(message, tag = "42")]
1348 FinalizationRewardCommissionNotInRange(super::Empty),
1349 #[prost(message, tag = "43")]
1351 BakingRewardCommissionNotInRange(super::Empty),
1352 #[prost(message, tag = "44")]
1354 TransactionFeeCommissionNotInRange(super::Empty),
1355 #[prost(message, tag = "45")]
1357 AlreadyADelegator(super::Empty),
1358 #[prost(message, tag = "46")]
1360 InsufficientBalanceForDelegationStake(super::Empty),
1361 #[prost(message, tag = "47")]
1364 MissingDelegationAddParameters(super::Empty),
1365 #[prost(message, tag = "48")]
1367 InsufficientDelegationStake(super::Empty),
1368 #[prost(message, tag = "49")]
1370 DelegatorInCooldown(super::Empty),
1371 #[prost(message, tag = "50")]
1373 NotADelegator(super::AccountAddress),
1374 #[prost(message, tag = "51")]
1376 DelegationTargetNotABaker(super::BakerId),
1377 #[prost(message, tag = "52")]
1380 StakeOverMaximumThresholdForPool(super::Empty),
1381 #[prost(message, tag = "53")]
1384 PoolWouldBecomeOverDelegated(super::Empty),
1385 #[prost(message, tag = "54")]
1387 PoolClosed(super::Empty),
1388 #[prost(message, tag = "55")]
1391 NonExistentTokenId(super::plt::TokenId),
1392 #[prost(message, tag = "56")]
1395 TokenUpdateTransactionFailed(super::plt::TokenModuleRejectReason),
1396 }
1397}
1398#[derive(Clone, PartialEq, ::prost::Message)]
1400pub struct ContractInitializedEvent {
1401 #[prost(enumeration = "ContractVersion", tag = "1")]
1403 pub contract_version: i32,
1404 #[prost(message, optional, tag = "2")]
1406 pub origin_ref: ::core::option::Option<ModuleRef>,
1407 #[prost(message, optional, tag = "3")]
1409 pub address: ::core::option::Option<ContractAddress>,
1410 #[prost(message, optional, tag = "4")]
1412 pub amount: ::core::option::Option<Amount>,
1413 #[prost(message, optional, tag = "5")]
1415 pub init_name: ::core::option::Option<InitName>,
1416 #[prost(message, repeated, tag = "6")]
1418 pub events: ::prost::alloc::vec::Vec<ContractEvent>,
1419 #[prost(message, optional, tag = "7")]
1421 pub parameter: ::core::option::Option<Parameter>,
1422}
1423#[derive(Clone, PartialEq, ::prost::Message)]
1425pub struct ContractEvent {
1426 #[prost(bytes = "vec", tag = "1")]
1427 pub value: ::prost::alloc::vec::Vec<u8>,
1428}
1429#[derive(Clone, PartialEq, ::prost::Message)]
1433pub struct InstanceUpdatedEvent {
1434 #[prost(enumeration = "ContractVersion", tag = "1")]
1436 pub contract_version: i32,
1437 #[prost(message, optional, tag = "2")]
1439 pub address: ::core::option::Option<ContractAddress>,
1440 #[prost(message, optional, tag = "3")]
1443 pub instigator: ::core::option::Option<Address>,
1444 #[prost(message, optional, tag = "4")]
1446 pub amount: ::core::option::Option<Amount>,
1447 #[prost(message, optional, tag = "5")]
1449 pub parameter: ::core::option::Option<Parameter>,
1450 #[prost(message, optional, tag = "6")]
1452 pub receive_name: ::core::option::Option<ReceiveName>,
1453 #[prost(message, repeated, tag = "7")]
1455 pub events: ::prost::alloc::vec::Vec<ContractEvent>,
1456}
1457#[derive(Clone, PartialEq, ::prost::Message)]
1460pub struct ContractTraceElement {
1461 #[prost(oneof = "contract_trace_element::Element", tags = "1, 2, 3, 4, 5")]
1463 pub element: ::core::option::Option<contract_trace_element::Element>,
1464}
1465pub mod contract_trace_element {
1467 #[derive(Clone, PartialEq, ::prost::Message)]
1469 pub struct Transferred {
1470 #[prost(message, optional, tag = "1")]
1472 pub sender: ::core::option::Option<super::ContractAddress>,
1473 #[prost(message, optional, tag = "2")]
1475 pub amount: ::core::option::Option<super::Amount>,
1476 #[prost(message, optional, tag = "3")]
1478 pub receiver: ::core::option::Option<super::AccountAddress>,
1479 }
1480 #[derive(Clone, PartialEq, ::prost::Message)]
1483 pub struct Interrupted {
1484 #[prost(message, optional, tag = "1")]
1486 pub address: ::core::option::Option<super::ContractAddress>,
1487 #[prost(message, repeated, tag = "2")]
1489 pub events: ::prost::alloc::vec::Vec<super::ContractEvent>,
1490 }
1491 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1493 pub struct Resumed {
1494 #[prost(message, optional, tag = "1")]
1496 pub address: ::core::option::Option<super::ContractAddress>,
1497 #[prost(bool, tag = "2")]
1499 pub success: bool,
1500 }
1501 #[derive(Clone, PartialEq, ::prost::Message)]
1504 pub struct Upgraded {
1505 #[prost(message, optional, tag = "1")]
1507 pub address: ::core::option::Option<super::ContractAddress>,
1508 #[prost(message, optional, tag = "2")]
1510 pub from: ::core::option::Option<super::ModuleRef>,
1511 #[prost(message, optional, tag = "3")]
1513 pub to: ::core::option::Option<super::ModuleRef>,
1514 }
1515 #[derive(Clone, PartialEq, ::prost::Oneof)]
1517 pub enum Element {
1518 #[prost(message, tag = "1")]
1520 Updated(super::InstanceUpdatedEvent),
1521 #[prost(message, tag = "2")]
1523 Transferred(Transferred),
1524 #[prost(message, tag = "3")]
1527 Interrupted(Interrupted),
1528 #[prost(message, tag = "4")]
1530 Resumed(Resumed),
1531 #[prost(message, tag = "5")]
1534 Upgraded(Upgraded),
1535 }
1536}
1537#[derive(Clone, PartialEq, ::prost::Message)]
1539pub struct BakerKeysEvent {
1540 #[prost(message, optional, tag = "1")]
1542 pub baker_id: ::core::option::Option<BakerId>,
1543 #[prost(message, optional, tag = "2")]
1545 pub account: ::core::option::Option<AccountAddress>,
1546 #[prost(message, optional, tag = "3")]
1548 pub sign_key: ::core::option::Option<BakerSignatureVerifyKey>,
1549 #[prost(message, optional, tag = "4")]
1552 pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
1553 #[prost(message, optional, tag = "5")]
1555 pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
1556}
1557#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1561pub struct BakerStakeUpdatedData {
1562 #[prost(message, optional, tag = "1")]
1564 pub baker_id: ::core::option::Option<BakerId>,
1565 #[prost(message, optional, tag = "2")]
1567 pub new_stake: ::core::option::Option<Amount>,
1568 #[prost(bool, tag = "3")]
1571 pub increased: bool,
1572}
1573#[derive(Clone, PartialEq, ::prost::Message)]
1575pub struct EncryptedAmountRemovedEvent {
1576 #[prost(message, optional, tag = "1")]
1578 pub account: ::core::option::Option<AccountAddress>,
1579 #[prost(message, optional, tag = "2")]
1581 pub new_amount: ::core::option::Option<EncryptedAmount>,
1582 #[prost(message, optional, tag = "3")]
1584 pub input_amount: ::core::option::Option<EncryptedAmount>,
1585 #[prost(uint64, tag = "4")]
1587 pub up_to_index: u64,
1588}
1589#[derive(Clone, PartialEq, ::prost::Message)]
1591pub struct NewEncryptedAmountEvent {
1592 #[prost(message, optional, tag = "1")]
1594 pub receiver: ::core::option::Option<AccountAddress>,
1595 #[prost(uint64, tag = "2")]
1597 pub new_index: u64,
1598 #[prost(message, optional, tag = "3")]
1600 pub encrypted_amount: ::core::option::Option<EncryptedAmount>,
1601}
1602#[derive(Clone, PartialEq, ::prost::Message)]
1603pub struct EncryptedSelfAmountAddedEvent {
1604 #[prost(message, optional, tag = "1")]
1606 pub account: ::core::option::Option<AccountAddress>,
1607 #[prost(message, optional, tag = "2")]
1609 pub new_amount: ::core::option::Option<EncryptedAmount>,
1610 #[prost(message, optional, tag = "3")]
1612 pub amount: ::core::option::Option<Amount>,
1613}
1614#[derive(Clone, PartialEq, ::prost::Message)]
1616pub struct RegisteredData {
1617 #[prost(bytes = "vec", tag = "1")]
1618 pub value: ::prost::alloc::vec::Vec<u8>,
1619}
1620#[derive(Clone, PartialEq, ::prost::Message)]
1624pub struct BakerEvent {
1625 #[prost(
1627 oneof = "baker_event::Event",
1628 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14"
1629 )]
1630 pub event: ::core::option::Option<baker_event::Event>,
1631}
1632pub mod baker_event {
1634 #[derive(Clone, PartialEq, ::prost::Message)]
1638 pub struct BakerAdded {
1639 #[prost(message, optional, tag = "1")]
1641 pub keys_event: ::core::option::Option<super::BakerKeysEvent>,
1642 #[prost(message, optional, tag = "2")]
1645 pub stake: ::core::option::Option<super::Amount>,
1646 #[prost(bool, tag = "3")]
1649 pub restake_earnings: bool,
1650 }
1651 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1653 pub struct BakerStakeIncreased {
1654 #[prost(message, optional, tag = "1")]
1656 pub baker_id: ::core::option::Option<super::BakerId>,
1657 #[prost(message, optional, tag = "2")]
1659 pub new_stake: ::core::option::Option<super::Amount>,
1660 }
1661 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1665 pub struct BakerStakeDecreased {
1666 #[prost(message, optional, tag = "1")]
1668 pub baker_id: ::core::option::Option<super::BakerId>,
1669 #[prost(message, optional, tag = "2")]
1671 pub new_stake: ::core::option::Option<super::Amount>,
1672 }
1673 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1674 pub struct BakerRestakeEarningsUpdated {
1675 #[prost(message, optional, tag = "1")]
1677 pub baker_id: ::core::option::Option<super::BakerId>,
1678 #[prost(bool, tag = "2")]
1680 pub restake_earnings: bool,
1681 }
1682 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1685 pub struct BakerSetOpenStatus {
1686 #[prost(message, optional, tag = "1")]
1688 pub baker_id: ::core::option::Option<super::BakerId>,
1689 #[prost(enumeration = "super::OpenStatus", tag = "2")]
1691 pub open_status: i32,
1692 }
1693 #[derive(Clone, PartialEq, ::prost::Message)]
1696 pub struct BakerSetMetadataUrl {
1697 #[prost(message, optional, tag = "1")]
1699 pub baker_id: ::core::option::Option<super::BakerId>,
1700 #[prost(string, tag = "2")]
1702 pub url: ::prost::alloc::string::String,
1703 }
1704 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1707 pub struct BakerSetTransactionFeeCommission {
1708 #[prost(message, optional, tag = "1")]
1710 pub baker_id: ::core::option::Option<super::BakerId>,
1711 #[prost(message, optional, tag = "2")]
1713 pub transaction_fee_commission: ::core::option::Option<super::AmountFraction>,
1714 }
1715 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1718 pub struct BakerSetBakingRewardCommission {
1719 #[prost(message, optional, tag = "1")]
1721 pub baker_id: ::core::option::Option<super::BakerId>,
1722 #[prost(message, optional, tag = "2")]
1724 pub baking_reward_commission: ::core::option::Option<super::AmountFraction>,
1725 }
1726 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1729 pub struct BakerSetFinalizationRewardCommission {
1730 #[prost(message, optional, tag = "1")]
1732 pub baker_id: ::core::option::Option<super::BakerId>,
1733 #[prost(message, optional, tag = "2")]
1735 pub finalization_reward_commission: ::core::option::Option<
1736 super::AmountFraction,
1737 >,
1738 }
1739 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1747 pub struct DelegationRemoved {
1748 #[prost(message, optional, tag = "1")]
1750 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1751 }
1752 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1757 pub struct BakerSuspended {
1758 #[prost(message, optional, tag = "1")]
1760 pub baker_id: ::core::option::Option<super::BakerId>,
1761 }
1762 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1765 pub struct BakerResumed {
1766 #[prost(message, optional, tag = "1")]
1768 pub baker_id: ::core::option::Option<super::BakerId>,
1769 }
1770 #[derive(Clone, PartialEq, ::prost::Oneof)]
1772 pub enum Event {
1773 #[prost(message, tag = "1")]
1777 BakerAdded(BakerAdded),
1778 #[prost(message, tag = "2")]
1785 BakerRemoved(super::BakerId),
1786 #[prost(message, tag = "3")]
1788 BakerStakeIncreased(BakerStakeIncreased),
1789 #[prost(message, tag = "4")]
1793 BakerStakeDecreased(BakerStakeDecreased),
1794 #[prost(message, tag = "5")]
1796 BakerRestakeEarningsUpdated(BakerRestakeEarningsUpdated),
1797 #[prost(message, tag = "6")]
1799 BakerKeysUpdated(super::BakerKeysEvent),
1800 #[prost(message, tag = "7")]
1802 BakerSetOpenStatus(BakerSetOpenStatus),
1803 #[prost(message, tag = "8")]
1805 BakerSetMetadataUrl(BakerSetMetadataUrl),
1806 #[prost(message, tag = "9")]
1808 BakerSetTransactionFeeCommission(BakerSetTransactionFeeCommission),
1809 #[prost(message, tag = "10")]
1811 BakerSetBakingRewardCommission(BakerSetBakingRewardCommission),
1812 #[prost(message, tag = "11")]
1814 BakerSetFinalizationRewardCommission(BakerSetFinalizationRewardCommission),
1815 #[prost(message, tag = "12")]
1824 DelegationRemoved(DelegationRemoved),
1825 #[prost(message, tag = "13")]
1830 BakerSuspended(BakerSuspended),
1831 #[prost(message, tag = "14")]
1834 BakerResumed(BakerResumed),
1835 }
1836}
1837#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1839pub struct DelegatorId {
1840 #[prost(message, optional, tag = "1")]
1841 pub id: ::core::option::Option<AccountIndex>,
1842}
1843#[derive(Clone, Copy, PartialEq, ::prost::Message)]
1846pub struct DelegationEvent {
1847 #[prost(oneof = "delegation_event::Event", tags = "1, 2, 3, 4, 5, 6, 7")]
1849 pub event: ::core::option::Option<delegation_event::Event>,
1850}
1851pub mod delegation_event {
1853 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1854 pub struct DelegationStakeIncreased {
1855 #[prost(message, optional, tag = "1")]
1857 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1858 #[prost(message, optional, tag = "2")]
1860 pub new_stake: ::core::option::Option<super::Amount>,
1861 }
1862 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1863 pub struct DelegationStakeDecreased {
1864 #[prost(message, optional, tag = "1")]
1866 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1867 #[prost(message, optional, tag = "2")]
1869 pub new_stake: ::core::option::Option<super::Amount>,
1870 }
1871 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1872 pub struct DelegationSetRestakeEarnings {
1873 #[prost(message, optional, tag = "1")]
1875 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1876 #[prost(bool, tag = "2")]
1878 pub restake_earnings: bool,
1879 }
1880 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1881 pub struct DelegationSetDelegationTarget {
1882 #[prost(message, optional, tag = "1")]
1884 pub delegator_id: ::core::option::Option<super::DelegatorId>,
1885 #[prost(message, optional, tag = "2")]
1887 pub delegation_target: ::core::option::Option<super::DelegationTarget>,
1888 }
1889 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1891 pub struct BakerRemoved {
1892 #[prost(message, optional, tag = "1")]
1894 pub baker_id: ::core::option::Option<super::BakerId>,
1895 }
1896 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
1898 pub enum Event {
1899 #[prost(message, tag = "1")]
1901 DelegationStakeIncreased(DelegationStakeIncreased),
1902 #[prost(message, tag = "2")]
1904 DelegationStakeDecreased(DelegationStakeDecreased),
1905 #[prost(message, tag = "3")]
1907 DelegationSetRestakeEarnings(DelegationSetRestakeEarnings),
1908 #[prost(message, tag = "4")]
1910 DelegationSetDelegationTarget(DelegationSetDelegationTarget),
1911 #[prost(message, tag = "5")]
1914 DelegationAdded(super::DelegatorId),
1915 #[prost(message, tag = "6")]
1921 DelegationRemoved(super::DelegatorId),
1922 #[prost(message, tag = "7")]
1931 BakerRemoved(BakerRemoved),
1932 }
1933}
1934#[derive(Clone, PartialEq, ::prost::Message)]
1937pub struct AccountTransactionEffects {
1938 #[prost(
1940 oneof = "account_transaction_effects::Effect",
1941 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20"
1942 )]
1943 pub effect: ::core::option::Option<account_transaction_effects::Effect>,
1944}
1945pub mod account_transaction_effects {
1947 #[derive(Clone, PartialEq, ::prost::Message)]
1950 pub struct None {
1951 #[prost(enumeration = "super::TransactionType", optional, tag = "1")]
1954 pub transaction_type: ::core::option::Option<i32>,
1955 #[prost(message, optional, tag = "2")]
1957 pub reject_reason: ::core::option::Option<super::RejectReason>,
1958 }
1959 #[derive(Clone, PartialEq, ::prost::Message)]
1962 pub struct ContractUpdateIssued {
1963 #[prost(message, repeated, tag = "1")]
1964 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
1965 }
1966 #[derive(Clone, PartialEq, ::prost::Message)]
1969 pub struct AccountTransfer {
1970 #[prost(message, optional, tag = "1")]
1972 pub amount: ::core::option::Option<super::Amount>,
1973 #[prost(message, optional, tag = "2")]
1975 pub receiver: ::core::option::Option<super::AccountAddress>,
1976 #[prost(message, optional, tag = "3")]
1979 pub memo: ::core::option::Option<super::Memo>,
1980 }
1981 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
1987 pub struct BakerStakeUpdated {
1988 #[prost(message, optional, tag = "1")]
1991 pub update: ::core::option::Option<super::BakerStakeUpdatedData>,
1992 }
1993 #[derive(Clone, PartialEq, ::prost::Message)]
1998 pub struct EncryptedAmountTransferred {
1999 #[prost(message, optional, tag = "1")]
2000 pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
2001 #[prost(message, optional, tag = "2")]
2002 pub added: ::core::option::Option<super::NewEncryptedAmountEvent>,
2003 #[prost(message, optional, tag = "3")]
2005 pub memo: ::core::option::Option<super::Memo>,
2006 }
2007 #[derive(Clone, PartialEq, ::prost::Message)]
2010 pub struct TransferredToPublic {
2011 #[prost(message, optional, tag = "1")]
2012 pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
2013 #[prost(message, optional, tag = "2")]
2014 pub amount: ::core::option::Option<super::Amount>,
2015 }
2016 #[derive(Clone, PartialEq, ::prost::Message)]
2019 pub struct TransferredWithSchedule {
2020 #[prost(message, optional, tag = "1")]
2022 pub receiver: ::core::option::Option<super::AccountAddress>,
2023 #[prost(message, repeated, tag = "2")]
2025 pub amount: ::prost::alloc::vec::Vec<super::NewRelease>,
2026 #[prost(message, optional, tag = "3")]
2029 pub memo: ::core::option::Option<super::Memo>,
2030 }
2031 #[derive(Clone, PartialEq, ::prost::Message)]
2034 pub struct CredentialsUpdated {
2035 #[prost(message, repeated, tag = "1")]
2037 pub new_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
2038 #[prost(message, repeated, tag = "2")]
2040 pub removed_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
2041 #[prost(message, optional, tag = "3")]
2043 pub new_threshold: ::core::option::Option<super::AccountThreshold>,
2044 }
2045 #[derive(Clone, PartialEq, ::prost::Message)]
2050 pub struct BakerConfigured {
2051 #[prost(message, repeated, tag = "1")]
2052 pub events: ::prost::alloc::vec::Vec<super::BakerEvent>,
2053 }
2054 #[derive(Clone, PartialEq, ::prost::Message)]
2059 pub struct DelegationConfigured {
2060 #[prost(message, repeated, tag = "1")]
2061 pub events: ::prost::alloc::vec::Vec<super::DelegationEvent>,
2062 }
2063 #[derive(Clone, PartialEq, ::prost::Oneof)]
2065 pub enum Effect {
2066 #[prost(message, tag = "1")]
2069 None(None),
2070 #[prost(message, tag = "2")]
2072 ModuleDeployed(super::ModuleRef),
2073 #[prost(message, tag = "3")]
2075 ContractInitialized(super::ContractInitializedEvent),
2076 #[prost(message, tag = "4")]
2078 ContractUpdateIssued(ContractUpdateIssued),
2079 #[prost(message, tag = "5")]
2081 AccountTransfer(AccountTransfer),
2082 #[prost(message, tag = "6")]
2087 BakerAdded(super::baker_event::BakerAdded),
2088 #[prost(message, tag = "7")]
2093 BakerRemoved(super::BakerId),
2094 #[prost(message, tag = "8")]
2099 BakerStakeUpdated(BakerStakeUpdated),
2100 #[prost(message, tag = "9")]
2105 BakerRestakeEarningsUpdated(super::baker_event::BakerRestakeEarningsUpdated),
2106 #[prost(message, tag = "10")]
2111 BakerKeysUpdated(super::BakerKeysEvent),
2112 #[prost(message, tag = "11")]
2116 EncryptedAmountTransferred(EncryptedAmountTransferred),
2117 #[prost(message, tag = "12")]
2122 TransferredToEncrypted(super::EncryptedSelfAmountAddedEvent),
2123 #[prost(message, tag = "13")]
2125 TransferredToPublic(TransferredToPublic),
2126 #[prost(message, tag = "14")]
2128 TransferredWithSchedule(TransferredWithSchedule),
2129 #[prost(message, tag = "15")]
2131 CredentialKeysUpdated(super::CredentialRegistrationId),
2132 #[prost(message, tag = "16")]
2134 CredentialsUpdated(CredentialsUpdated),
2135 #[prost(message, tag = "17")]
2137 DataRegistered(super::RegisteredData),
2138 #[prost(message, tag = "18")]
2142 BakerConfigured(BakerConfigured),
2143 #[prost(message, tag = "19")]
2146 DelegationConfigured(DelegationConfigured),
2147 #[prost(message, tag = "20")]
2149 TokenUpdateEffect(super::plt::TokenEffect),
2150 }
2151}
2152#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2154pub struct ElectionDifficulty {
2155 #[prost(message, optional, tag = "1")]
2156 pub value: ::core::option::Option<AmountFraction>,
2157}
2158#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2160pub struct TimeoutParameters {
2161 #[prost(message, optional, tag = "1")]
2163 pub timeout_base: ::core::option::Option<Duration>,
2164 #[prost(message, optional, tag = "2")]
2166 pub timeout_increase: ::core::option::Option<Ratio>,
2167 #[prost(message, optional, tag = "3")]
2169 pub timeout_decrease: ::core::option::Option<Ratio>,
2170}
2171#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2173pub struct FinalizationCommitteeParameters {
2174 #[prost(uint32, tag = "1")]
2176 pub minimum_finalizers: u32,
2177 #[prost(uint32, tag = "2")]
2179 pub maximum_finalizers: u32,
2180 #[prost(message, optional, tag = "3")]
2183 pub finalizer_relative_stake_threshold: ::core::option::Option<AmountFraction>,
2184}
2185#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2186pub struct ValidatorScoreParameters {
2187 #[prost(uint64, tag = "1")]
2189 pub maximum_missed_rounds: u64,
2190}
2191#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2193pub struct ConsensusParametersV1 {
2194 #[prost(message, optional, tag = "1")]
2196 pub timeout_parameters: ::core::option::Option<TimeoutParameters>,
2197 #[prost(message, optional, tag = "2")]
2199 pub min_block_time: ::core::option::Option<Duration>,
2200 #[prost(message, optional, tag = "3")]
2202 pub block_energy_limit: ::core::option::Option<Energy>,
2203}
2204#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2206pub struct ExchangeRate {
2207 #[prost(message, optional, tag = "1")]
2208 pub value: ::core::option::Option<Ratio>,
2209}
2210#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2212pub struct Ratio {
2213 #[prost(uint64, tag = "1")]
2215 pub numerator: u64,
2216 #[prost(uint64, tag = "2")]
2218 pub denominator: u64,
2219}
2220#[derive(Clone, PartialEq, ::prost::Message)]
2222pub struct UpdatePublicKey {
2223 #[prost(bytes = "vec", tag = "1")]
2224 pub value: ::prost::alloc::vec::Vec<u8>,
2225}
2226#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2228pub struct UpdateKeysThreshold {
2229 #[prost(uint32, tag = "1")]
2231 pub value: u32,
2232}
2233#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2235pub struct UpdateKeysIndex {
2236 #[prost(uint32, tag = "1")]
2237 pub value: u32,
2238}
2239#[derive(Clone, PartialEq, ::prost::Message)]
2241pub struct HigherLevelKeys {
2242 #[prost(message, repeated, tag = "1")]
2244 pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
2245 #[prost(message, optional, tag = "2")]
2247 pub threshold: ::core::option::Option<UpdateKeysThreshold>,
2248}
2249#[derive(Clone, PartialEq, ::prost::Message)]
2253pub struct AccessStructure {
2254 #[prost(message, repeated, tag = "1")]
2256 pub access_public_keys: ::prost::alloc::vec::Vec<UpdateKeysIndex>,
2257 #[prost(message, optional, tag = "2")]
2259 pub access_threshold: ::core::option::Option<UpdateKeysThreshold>,
2260}
2261#[derive(Clone, PartialEq, ::prost::Message)]
2265pub struct AuthorizationsV0 {
2266 #[prost(message, repeated, tag = "1")]
2268 pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
2269 #[prost(message, optional, tag = "2")]
2271 pub emergency: ::core::option::Option<AccessStructure>,
2272 #[prost(message, optional, tag = "3")]
2274 pub protocol: ::core::option::Option<AccessStructure>,
2275 #[prost(message, optional, tag = "4")]
2278 pub parameter_consensus: ::core::option::Option<AccessStructure>,
2279 #[prost(message, optional, tag = "5")]
2281 pub parameter_euro_per_energy: ::core::option::Option<AccessStructure>,
2282 #[prost(message, optional, tag = "6")]
2284 pub parameter_micro_ccd_per_euro: ::core::option::Option<AccessStructure>,
2285 #[prost(message, optional, tag = "7")]
2287 pub parameter_foundation_account: ::core::option::Option<AccessStructure>,
2288 #[prost(message, optional, tag = "8")]
2290 pub parameter_mint_distribution: ::core::option::Option<AccessStructure>,
2291 #[prost(message, optional, tag = "9")]
2293 pub parameter_transaction_fee_distribution: ::core::option::Option<AccessStructure>,
2294 #[prost(message, optional, tag = "10")]
2296 pub parameter_gas_rewards: ::core::option::Option<AccessStructure>,
2297 #[prost(message, optional, tag = "11")]
2300 pub pool_parameters: ::core::option::Option<AccessStructure>,
2301 #[prost(message, optional, tag = "12")]
2303 pub add_anonymity_revoker: ::core::option::Option<AccessStructure>,
2304 #[prost(message, optional, tag = "13")]
2306 pub add_identity_provider: ::core::option::Option<AccessStructure>,
2307}
2308#[derive(Clone, PartialEq, ::prost::Message)]
2312pub struct AuthorizationsV1 {
2313 #[prost(message, optional, tag = "1")]
2314 pub v0: ::core::option::Option<AuthorizationsV0>,
2315 #[prost(message, optional, tag = "2")]
2317 pub parameter_cooldown: ::core::option::Option<AccessStructure>,
2318 #[prost(message, optional, tag = "3")]
2320 pub parameter_time: ::core::option::Option<AccessStructure>,
2321 #[prost(message, optional, tag = "4")]
2324 pub create_plt: ::core::option::Option<AccessStructure>,
2325}
2326#[derive(Clone, PartialEq, ::prost::Message)]
2329pub struct Description {
2330 #[prost(string, tag = "1")]
2332 pub name: ::prost::alloc::string::String,
2333 #[prost(string, tag = "2")]
2335 pub url: ::prost::alloc::string::String,
2336 #[prost(string, tag = "3")]
2338 pub description: ::prost::alloc::string::String,
2339}
2340#[derive(Clone, PartialEq, ::prost::Message)]
2343pub struct ArInfo {
2344 #[prost(message, optional, tag = "1")]
2346 pub identity: ::core::option::Option<ar_info::ArIdentity>,
2347 #[prost(message, optional, tag = "2")]
2349 pub description: ::core::option::Option<Description>,
2350 #[prost(message, optional, tag = "3")]
2352 pub public_key: ::core::option::Option<ar_info::ArPublicKey>,
2353}
2354pub mod ar_info {
2356 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2359 pub struct ArIdentity {
2360 #[prost(uint32, tag = "1")]
2361 pub value: u32,
2362 }
2363 #[derive(Clone, PartialEq, ::prost::Message)]
2365 pub struct ArPublicKey {
2366 #[prost(bytes = "vec", tag = "1")]
2367 pub value: ::prost::alloc::vec::Vec<u8>,
2368 }
2369}
2370#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2374pub struct IpIdentity {
2375 #[prost(uint32, tag = "1")]
2376 pub value: u32,
2377}
2378#[derive(Clone, PartialEq, ::prost::Message)]
2380pub struct IpInfo {
2381 #[prost(message, optional, tag = "1")]
2383 pub identity: ::core::option::Option<IpIdentity>,
2384 #[prost(message, optional, tag = "2")]
2386 pub description: ::core::option::Option<Description>,
2387 #[prost(message, optional, tag = "3")]
2389 pub verify_key: ::core::option::Option<ip_info::IpVerifyKey>,
2390 #[prost(message, optional, tag = "4")]
2392 pub cdi_verify_key: ::core::option::Option<ip_info::IpCdiVerifyKey>,
2393}
2394pub mod ip_info {
2396 #[derive(Clone, PartialEq, ::prost::Message)]
2398 pub struct IpVerifyKey {
2399 #[prost(bytes = "vec", tag = "1")]
2400 pub value: ::prost::alloc::vec::Vec<u8>,
2401 }
2402 #[derive(Clone, PartialEq, ::prost::Message)]
2404 pub struct IpCdiVerifyKey {
2405 #[prost(bytes = "vec", tag = "1")]
2406 pub value: ::prost::alloc::vec::Vec<u8>,
2407 }
2408}
2409#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2411pub struct DurationSeconds {
2412 #[prost(uint64, tag = "1")]
2413 pub value: u64,
2414}
2415#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2417pub struct InclusiveRangeAmountFraction {
2418 #[prost(message, optional, tag = "1")]
2419 pub min: ::core::option::Option<AmountFraction>,
2420 #[prost(message, optional, tag = "2")]
2421 pub max: ::core::option::Option<AmountFraction>,
2422}
2423#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2425pub struct CommissionRanges {
2426 #[prost(message, optional, tag = "1")]
2428 pub finalization: ::core::option::Option<InclusiveRangeAmountFraction>,
2429 #[prost(message, optional, tag = "2")]
2431 pub baking: ::core::option::Option<InclusiveRangeAmountFraction>,
2432 #[prost(message, optional, tag = "3")]
2434 pub transaction: ::core::option::Option<InclusiveRangeAmountFraction>,
2435}
2436#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2447pub struct CapitalBound {
2448 #[prost(message, optional, tag = "1")]
2449 pub value: ::core::option::Option<AmountFraction>,
2450}
2451#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2463pub struct LeverageFactor {
2464 #[prost(message, optional, tag = "1")]
2465 pub value: ::core::option::Option<Ratio>,
2466}
2467#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2469pub struct Epoch {
2470 #[prost(uint64, tag = "1")]
2471 pub value: u64,
2472}
2473#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2475pub struct Round {
2476 #[prost(uint64, tag = "1")]
2477 pub value: u64,
2478}
2479#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2482pub struct RewardPeriodLength {
2483 #[prost(message, optional, tag = "1")]
2484 pub value: ::core::option::Option<Epoch>,
2485}
2486#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2489pub struct MintRate {
2490 #[prost(uint32, tag = "1")]
2491 pub mantissa: u32,
2492 #[prost(uint32, tag = "2")]
2494 pub exponent: u32,
2495}
2496#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2497pub struct CooldownParametersCpv1 {
2498 #[prost(message, optional, tag = "1")]
2501 pub pool_owner_cooldown: ::core::option::Option<DurationSeconds>,
2502 #[prost(message, optional, tag = "2")]
2505 pub delegator_cooldown: ::core::option::Option<DurationSeconds>,
2506}
2507#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2509pub struct PoolParametersCpv1 {
2510 #[prost(message, optional, tag = "1")]
2512 pub passive_finalization_commission: ::core::option::Option<AmountFraction>,
2513 #[prost(message, optional, tag = "2")]
2515 pub passive_baking_commission: ::core::option::Option<AmountFraction>,
2516 #[prost(message, optional, tag = "3")]
2518 pub passive_transaction_commission: ::core::option::Option<AmountFraction>,
2519 #[prost(message, optional, tag = "4")]
2521 pub commission_bounds: ::core::option::Option<CommissionRanges>,
2522 #[prost(message, optional, tag = "5")]
2524 pub minimum_equity_capital: ::core::option::Option<Amount>,
2525 #[prost(message, optional, tag = "6")]
2528 pub capital_bound: ::core::option::Option<CapitalBound>,
2529 #[prost(message, optional, tag = "7")]
2532 pub leverage_bound: ::core::option::Option<LeverageFactor>,
2533}
2534#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2538pub struct TimeParametersCpv1 {
2539 #[prost(message, optional, tag = "1")]
2540 pub reward_period_length: ::core::option::Option<RewardPeriodLength>,
2541 #[prost(message, optional, tag = "2")]
2542 pub mint_per_payday: ::core::option::Option<MintRate>,
2543}
2544#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2546pub struct MintDistributionCpv1 {
2547 #[prost(message, optional, tag = "1")]
2548 pub baking_reward: ::core::option::Option<AmountFraction>,
2549 #[prost(message, optional, tag = "2")]
2550 pub finalization_reward: ::core::option::Option<AmountFraction>,
2551}
2552#[derive(Clone, PartialEq, ::prost::Message)]
2553pub struct ProtocolUpdate {
2554 #[prost(string, tag = "1")]
2556 pub message: ::prost::alloc::string::String,
2557 #[prost(string, tag = "2")]
2559 pub specification_url: ::prost::alloc::string::String,
2560 #[prost(message, optional, tag = "3")]
2562 pub specification_hash: ::core::option::Option<Sha256Hash>,
2563 #[prost(bytes = "vec", tag = "4")]
2565 pub specification_auxiliary_data: ::prost::alloc::vec::Vec<u8>,
2566}
2567#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2572pub struct MintDistributionCpv0 {
2573 #[prost(message, optional, tag = "1")]
2575 pub mint_per_slot: ::core::option::Option<MintRate>,
2576 #[prost(message, optional, tag = "2")]
2578 pub baking_reward: ::core::option::Option<AmountFraction>,
2579 #[prost(message, optional, tag = "3")]
2581 pub finalization_reward: ::core::option::Option<AmountFraction>,
2582}
2583#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2585pub struct TransactionFeeDistribution {
2586 #[prost(message, optional, tag = "1")]
2588 pub baker: ::core::option::Option<AmountFraction>,
2589 #[prost(message, optional, tag = "2")]
2591 pub gas_account: ::core::option::Option<AmountFraction>,
2592}
2593#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2595pub struct GasRewards {
2596 #[prost(message, optional, tag = "1")]
2598 pub baker: ::core::option::Option<AmountFraction>,
2599 #[prost(message, optional, tag = "2")]
2601 pub finalization_proof: ::core::option::Option<AmountFraction>,
2602 #[prost(message, optional, tag = "3")]
2604 pub account_creation: ::core::option::Option<AmountFraction>,
2605 #[prost(message, optional, tag = "4")]
2607 pub chain_update: ::core::option::Option<AmountFraction>,
2608}
2609#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2611pub struct GasRewardsCpv2 {
2612 #[prost(message, optional, tag = "1")]
2614 pub baker: ::core::option::Option<AmountFraction>,
2615 #[prost(message, optional, tag = "3")]
2617 pub account_creation: ::core::option::Option<AmountFraction>,
2618 #[prost(message, optional, tag = "4")]
2620 pub chain_update: ::core::option::Option<AmountFraction>,
2621}
2622#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2624pub struct BakerStakeThreshold {
2625 #[prost(message, optional, tag = "1")]
2627 pub baker_stake_threshold: ::core::option::Option<Amount>,
2628}
2629#[derive(Clone, PartialEq, ::prost::Message)]
2632pub struct RootUpdate {
2633 #[prost(oneof = "root_update::UpdateType", tags = "1, 2, 3, 4")]
2636 pub update_type: ::core::option::Option<root_update::UpdateType>,
2637}
2638pub mod root_update {
2640 #[derive(Clone, PartialEq, ::prost::Oneof)]
2643 pub enum UpdateType {
2644 #[prost(message, tag = "1")]
2646 RootKeysUpdate(super::HigherLevelKeys),
2647 #[prost(message, tag = "2")]
2649 Level1KeysUpdate(super::HigherLevelKeys),
2650 #[prost(message, tag = "3")]
2652 Level2KeysUpdateV0(super::AuthorizationsV0),
2653 #[prost(message, tag = "4")]
2655 Level2KeysUpdateV1(super::AuthorizationsV1),
2656 }
2657}
2658#[derive(Clone, PartialEq, ::prost::Message)]
2661pub struct Level1Update {
2662 #[prost(oneof = "level1_update::UpdateType", tags = "1, 2, 3")]
2665 pub update_type: ::core::option::Option<level1_update::UpdateType>,
2666}
2667pub mod level1_update {
2669 #[derive(Clone, PartialEq, ::prost::Oneof)]
2672 pub enum UpdateType {
2673 #[prost(message, tag = "1")]
2675 Level1KeysUpdate(super::HigherLevelKeys),
2676 #[prost(message, tag = "2")]
2678 Level2KeysUpdateV0(super::AuthorizationsV0),
2679 #[prost(message, tag = "3")]
2681 Level2KeysUpdateV1(super::AuthorizationsV1),
2682 }
2683}
2684#[derive(Clone, PartialEq, ::prost::Message)]
2686pub struct UpdatePayload {
2687 #[prost(
2689 oneof = "update_payload::Payload",
2690 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"
2691 )]
2692 pub payload: ::core::option::Option<update_payload::Payload>,
2693}
2694pub mod update_payload {
2696 #[derive(Clone, PartialEq, ::prost::Oneof)]
2698 pub enum Payload {
2699 #[prost(message, tag = "1")]
2701 ProtocolUpdate(super::ProtocolUpdate),
2702 #[prost(message, tag = "2")]
2704 ElectionDifficultyUpdate(super::ElectionDifficulty),
2705 #[prost(message, tag = "3")]
2707 EuroPerEnergyUpdate(super::ExchangeRate),
2708 #[prost(message, tag = "4")]
2710 MicroCcdPerEuroUpdate(super::ExchangeRate),
2711 #[prost(message, tag = "5")]
2713 FoundationAccountUpdate(super::AccountAddress),
2714 #[prost(message, tag = "6")]
2716 MintDistributionUpdate(super::MintDistributionCpv0),
2717 #[prost(message, tag = "7")]
2719 TransactionFeeDistributionUpdate(super::TransactionFeeDistribution),
2720 #[prost(message, tag = "8")]
2722 GasRewardsUpdate(super::GasRewards),
2723 #[prost(message, tag = "9")]
2725 BakerStakeThresholdUpdate(super::BakerStakeThreshold),
2726 #[prost(message, tag = "10")]
2728 RootUpdate(super::RootUpdate),
2729 #[prost(message, tag = "11")]
2731 Level1Update(super::Level1Update),
2732 #[prost(message, tag = "12")]
2734 AddAnonymityRevokerUpdate(super::ArInfo),
2735 #[prost(message, tag = "13")]
2737 AddIdentityProviderUpdate(super::IpInfo),
2738 #[prost(message, tag = "14")]
2740 CooldownParametersCpv1Update(super::CooldownParametersCpv1),
2741 #[prost(message, tag = "15")]
2743 PoolParametersCpv1Update(super::PoolParametersCpv1),
2744 #[prost(message, tag = "16")]
2746 TimeParametersCpv1Update(super::TimeParametersCpv1),
2747 #[prost(message, tag = "17")]
2749 MintDistributionCpv1Update(super::MintDistributionCpv1),
2750 #[prost(message, tag = "18")]
2752 GasRewardsCpv2Update(super::GasRewardsCpv2),
2753 #[prost(message, tag = "19")]
2755 TimeoutParametersUpdate(super::TimeoutParameters),
2756 #[prost(message, tag = "20")]
2758 MinBlockTimeUpdate(super::Duration),
2759 #[prost(message, tag = "21")]
2761 BlockEnergyLimitUpdate(super::Energy),
2762 #[prost(message, tag = "22")]
2764 FinalizationCommitteeParametersUpdate(super::FinalizationCommitteeParameters),
2765 #[prost(message, tag = "23")]
2767 ValidatorScoreParametersUpdate(super::ValidatorScoreParameters),
2768 #[prost(message, tag = "24")]
2770 CreatePltUpdate(super::plt::CreatePlt),
2771 }
2772}
2773#[derive(Clone, PartialEq, ::prost::Message)]
2775pub struct SponsorDetails {
2776 #[prost(message, optional, tag = "1")]
2778 pub cost: ::core::option::Option<Amount>,
2779 #[prost(message, optional, tag = "2")]
2781 pub sponsor: ::core::option::Option<AccountAddress>,
2782}
2783#[derive(Clone, PartialEq, ::prost::Message)]
2785pub struct AccountTransactionDetails {
2786 #[prost(message, optional, tag = "1")]
2789 pub cost: ::core::option::Option<Amount>,
2790 #[prost(message, optional, tag = "2")]
2792 pub sender: ::core::option::Option<AccountAddress>,
2793 #[prost(message, optional, tag = "3")]
2795 pub effects: ::core::option::Option<AccountTransactionEffects>,
2796 #[prost(message, optional, tag = "4")]
2798 pub sponsor: ::core::option::Option<SponsorDetails>,
2799}
2800#[derive(Clone, PartialEq, ::prost::Message)]
2804pub struct AccountCreationDetails {
2805 #[prost(enumeration = "CredentialType", tag = "1")]
2807 pub credential_type: i32,
2808 #[prost(message, optional, tag = "2")]
2810 pub address: ::core::option::Option<AccountAddress>,
2811 #[prost(message, optional, tag = "3")]
2813 pub reg_id: ::core::option::Option<CredentialRegistrationId>,
2814}
2815#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2817pub struct TransactionTime {
2818 #[prost(uint64, tag = "1")]
2819 pub value: u64,
2820}
2821#[derive(Clone, PartialEq, ::prost::Message)]
2825pub struct UpdateDetails {
2826 #[prost(message, optional, tag = "1")]
2828 pub effective_time: ::core::option::Option<TransactionTime>,
2829 #[prost(message, optional, tag = "2")]
2831 pub payload: ::core::option::Option<UpdatePayload>,
2832}
2833#[derive(Clone, PartialEq, ::prost::Message)]
2836pub struct BlockItemSummary {
2837 #[prost(message, optional, tag = "1")]
2839 pub index: ::core::option::Option<block_item_summary::TransactionIndex>,
2840 #[prost(message, optional, tag = "2")]
2842 pub energy_cost: ::core::option::Option<Energy>,
2843 #[prost(message, optional, tag = "3")]
2845 pub hash: ::core::option::Option<TransactionHash>,
2846 #[prost(oneof = "block_item_summary::Details", tags = "4, 5, 6, 7")]
2850 pub details: ::core::option::Option<block_item_summary::Details>,
2851}
2852pub mod block_item_summary {
2854 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
2855 pub struct TransactionIndex {
2856 #[prost(uint64, tag = "1")]
2857 pub value: u64,
2858 }
2859 #[derive(Clone, PartialEq, ::prost::Oneof)]
2863 pub enum Details {
2864 #[prost(message, tag = "4")]
2866 AccountTransaction(super::AccountTransactionDetails),
2867 #[prost(message, tag = "5")]
2869 AccountCreation(super::AccountCreationDetails),
2870 #[prost(message, tag = "6")]
2872 Update(super::UpdateDetails),
2873 #[prost(message, tag = "7")]
2875 TokenCreation(super::plt::TokenCreationDetails),
2876 }
2877}
2878#[derive(Clone, Copy, PartialEq, ::prost::Message)]
2883pub struct GenesisIndex {
2884 #[prost(uint32, tag = "1")]
2885 pub value: u32,
2886}
2887#[derive(Clone, PartialEq, ::prost::Message)]
2889pub struct ConsensusInfo {
2890 #[prost(message, optional, tag = "1")]
2892 pub best_block: ::core::option::Option<BlockHash>,
2893 #[prost(message, optional, tag = "2")]
2895 pub genesis_block: ::core::option::Option<BlockHash>,
2896 #[prost(message, optional, tag = "3")]
2898 pub genesis_time: ::core::option::Option<Timestamp>,
2899 #[prost(message, optional, tag = "4")]
2901 pub slot_duration: ::core::option::Option<Duration>,
2902 #[prost(message, optional, tag = "5")]
2904 pub epoch_duration: ::core::option::Option<Duration>,
2905 #[prost(message, optional, tag = "6")]
2907 pub last_finalized_block: ::core::option::Option<BlockHash>,
2908 #[prost(message, optional, tag = "7")]
2910 pub best_block_height: ::core::option::Option<AbsoluteBlockHeight>,
2911 #[prost(message, optional, tag = "8")]
2913 pub last_finalized_block_height: ::core::option::Option<AbsoluteBlockHeight>,
2914 #[prost(uint32, tag = "9")]
2916 pub blocks_received_count: u32,
2917 #[prost(message, optional, tag = "10")]
2919 pub block_last_received_time: ::core::option::Option<Timestamp>,
2920 #[prost(double, tag = "11")]
2922 pub block_receive_latency_ema: f64,
2923 #[prost(double, tag = "12")]
2925 pub block_receive_latency_emsd: f64,
2926 #[prost(double, optional, tag = "13")]
2928 pub block_receive_period_ema: ::core::option::Option<f64>,
2929 #[prost(double, optional, tag = "14")]
2931 pub block_receive_period_emsd: ::core::option::Option<f64>,
2932 #[prost(uint32, tag = "15")]
2934 pub blocks_verified_count: u32,
2935 #[prost(message, optional, tag = "16")]
2937 pub block_last_arrived_time: ::core::option::Option<Timestamp>,
2938 #[prost(double, tag = "17")]
2940 pub block_arrive_latency_ema: f64,
2941 #[prost(double, tag = "18")]
2943 pub block_arrive_latency_emsd: f64,
2944 #[prost(double, optional, tag = "19")]
2946 pub block_arrive_period_ema: ::core::option::Option<f64>,
2947 #[prost(double, optional, tag = "20")]
2949 pub block_arrive_period_emsd: ::core::option::Option<f64>,
2950 #[prost(double, tag = "21")]
2952 pub transactions_per_block_ema: f64,
2953 #[prost(double, tag = "22")]
2955 pub transactions_per_block_emsd: f64,
2956 #[prost(uint32, tag = "23")]
2958 pub finalization_count: u32,
2959 #[prost(message, optional, tag = "24")]
2961 pub last_finalized_time: ::core::option::Option<Timestamp>,
2962 #[prost(double, optional, tag = "25")]
2964 pub finalization_period_ema: ::core::option::Option<f64>,
2965 #[prost(double, optional, tag = "26")]
2967 pub finalization_period_emsd: ::core::option::Option<f64>,
2968 #[prost(enumeration = "ProtocolVersion", tag = "27")]
2970 pub protocol_version: i32,
2971 #[prost(message, optional, tag = "28")]
2976 pub genesis_index: ::core::option::Option<GenesisIndex>,
2977 #[prost(message, optional, tag = "29")]
2980 pub current_era_genesis_block: ::core::option::Option<BlockHash>,
2981 #[prost(message, optional, tag = "30")]
2983 pub current_era_genesis_time: ::core::option::Option<Timestamp>,
2984 #[prost(message, optional, tag = "31")]
2986 pub current_timeout_duration: ::core::option::Option<Duration>,
2987 #[prost(message, optional, tag = "32")]
2989 pub current_round: ::core::option::Option<Round>,
2990 #[prost(message, optional, tag = "33")]
2992 pub current_epoch: ::core::option::Option<Epoch>,
2993 #[prost(message, optional, tag = "34")]
2996 pub trigger_block_time: ::core::option::Option<Timestamp>,
2997}
2998#[derive(Clone, PartialEq, ::prost::Message)]
3000pub struct ArrivedBlockInfo {
3001 #[prost(message, optional, tag = "1")]
3003 pub hash: ::core::option::Option<BlockHash>,
3004 #[prost(message, optional, tag = "2")]
3006 pub height: ::core::option::Option<AbsoluteBlockHeight>,
3007}
3008#[derive(Clone, PartialEq, ::prost::Message)]
3010pub struct CryptographicParameters {
3011 #[prost(string, tag = "1")]
3013 pub genesis_string: ::prost::alloc::string::String,
3014 #[prost(bytes = "vec", tag = "2")]
3017 pub bulletproof_generators: ::prost::alloc::vec::Vec<u8>,
3018 #[prost(bytes = "vec", tag = "3")]
3022 pub on_chain_commitment_key: ::prost::alloc::vec::Vec<u8>,
3023}
3024#[derive(Clone, PartialEq, ::prost::Message)]
3026pub struct BlockInfo {
3027 #[prost(message, optional, tag = "1")]
3029 pub hash: ::core::option::Option<BlockHash>,
3030 #[prost(message, optional, tag = "2")]
3032 pub height: ::core::option::Option<AbsoluteBlockHeight>,
3033 #[prost(message, optional, tag = "3")]
3036 pub parent_block: ::core::option::Option<BlockHash>,
3037 #[prost(message, optional, tag = "4")]
3039 pub last_finalized_block: ::core::option::Option<BlockHash>,
3040 #[prost(message, optional, tag = "5")]
3043 pub genesis_index: ::core::option::Option<GenesisIndex>,
3044 #[prost(message, optional, tag = "6")]
3046 pub era_block_height: ::core::option::Option<BlockHeight>,
3047 #[prost(message, optional, tag = "7")]
3049 pub receive_time: ::core::option::Option<Timestamp>,
3050 #[prost(message, optional, tag = "8")]
3052 pub arrive_time: ::core::option::Option<Timestamp>,
3053 #[prost(message, optional, tag = "9")]
3055 pub slot_number: ::core::option::Option<Slot>,
3056 #[prost(message, optional, tag = "10")]
3058 pub slot_time: ::core::option::Option<Timestamp>,
3059 #[prost(message, optional, tag = "11")]
3061 pub baker: ::core::option::Option<BakerId>,
3062 #[prost(bool, tag = "12")]
3064 pub finalized: bool,
3065 #[prost(uint32, tag = "13")]
3067 pub transaction_count: u32,
3068 #[prost(message, optional, tag = "14")]
3070 pub transactions_energy_cost: ::core::option::Option<Energy>,
3071 #[prost(uint32, tag = "15")]
3073 pub transactions_size: u32,
3074 #[prost(message, optional, tag = "16")]
3076 pub state_hash: ::core::option::Option<StateHash>,
3077 #[prost(enumeration = "ProtocolVersion", tag = "17")]
3079 pub protocol_version: i32,
3080 #[prost(message, optional, tag = "18")]
3082 pub round: ::core::option::Option<Round>,
3083 #[prost(message, optional, tag = "19")]
3085 pub epoch: ::core::option::Option<Epoch>,
3086}
3087#[derive(Clone, PartialEq, ::prost::Message)]
3089pub struct PoolInfoRequest {
3090 #[prost(message, optional, tag = "1")]
3092 pub block_hash: ::core::option::Option<BlockHashInput>,
3093 #[prost(message, optional, tag = "2")]
3095 pub baker: ::core::option::Option<BakerId>,
3096}
3097#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3099pub struct PoolPendingChange {
3100 #[prost(oneof = "pool_pending_change::Change", tags = "1, 2")]
3103 pub change: ::core::option::Option<pool_pending_change::Change>,
3104}
3105pub mod pool_pending_change {
3107 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3109 pub struct Reduce {
3110 #[prost(message, optional, tag = "1")]
3112 pub reduced_equity_capital: ::core::option::Option<super::Amount>,
3113 #[prost(message, optional, tag = "2")]
3115 pub effective_time: ::core::option::Option<super::Timestamp>,
3116 }
3117 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3119 pub struct Remove {
3120 #[prost(message, optional, tag = "1")]
3122 pub effective_time: ::core::option::Option<super::Timestamp>,
3123 }
3124 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3127 pub enum Change {
3128 #[prost(message, tag = "1")]
3129 Reduce(Reduce),
3130 #[prost(message, tag = "2")]
3131 Remove(Remove),
3132 }
3133}
3134#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3136pub struct PoolCurrentPaydayInfo {
3137 #[prost(uint64, tag = "1")]
3139 pub blocks_baked: u64,
3140 #[prost(bool, tag = "2")]
3142 pub finalization_live: bool,
3143 #[prost(message, optional, tag = "3")]
3145 pub transaction_fees_earned: ::core::option::Option<Amount>,
3146 #[prost(message, optional, tag = "4")]
3148 pub effective_stake: ::core::option::Option<Amount>,
3149 #[prost(double, tag = "5")]
3151 pub lottery_power: f64,
3152 #[prost(message, optional, tag = "6")]
3154 pub baker_equity_capital: ::core::option::Option<Amount>,
3155 #[prost(message, optional, tag = "7")]
3157 pub delegated_capital: ::core::option::Option<Amount>,
3158 #[prost(message, optional, tag = "8")]
3160 pub commission_rates: ::core::option::Option<CommissionRates>,
3161 #[prost(bool, optional, tag = "9")]
3164 pub is_primed_for_suspension: ::core::option::Option<bool>,
3165 #[prost(uint64, optional, tag = "10")]
3168 pub missed_rounds: ::core::option::Option<u64>,
3169}
3170#[derive(Clone, PartialEq, ::prost::Message)]
3179pub struct PoolInfoResponse {
3180 #[prost(message, optional, tag = "1")]
3182 pub baker: ::core::option::Option<BakerId>,
3183 #[prost(message, optional, tag = "2")]
3185 pub address: ::core::option::Option<AccountAddress>,
3186 #[prost(message, optional, tag = "3")]
3188 pub equity_capital: ::core::option::Option<Amount>,
3189 #[prost(message, optional, tag = "4")]
3191 pub delegated_capital: ::core::option::Option<Amount>,
3192 #[prost(message, optional, tag = "5")]
3208 pub delegated_capital_cap: ::core::option::Option<Amount>,
3209 #[prost(message, optional, tag = "6")]
3212 pub pool_info: ::core::option::Option<BakerPoolInfo>,
3213 #[prost(message, optional, tag = "7")]
3216 pub equity_pending_change: ::core::option::Option<PoolPendingChange>,
3217 #[prost(message, optional, tag = "8")]
3219 pub current_payday_info: ::core::option::Option<PoolCurrentPaydayInfo>,
3220 #[prost(message, optional, tag = "9")]
3222 pub all_pool_total_capital: ::core::option::Option<Amount>,
3223 #[prost(bool, optional, tag = "10")]
3226 pub is_suspended: ::core::option::Option<bool>,
3227}
3228#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3231pub struct PassiveDelegationInfo {
3232 #[prost(message, optional, tag = "1")]
3234 pub delegated_capital: ::core::option::Option<Amount>,
3235 #[prost(message, optional, tag = "2")]
3237 pub commission_rates: ::core::option::Option<CommissionRates>,
3238 #[prost(message, optional, tag = "3")]
3240 pub current_payday_transaction_fees_earned: ::core::option::Option<Amount>,
3241 #[prost(message, optional, tag = "4")]
3243 pub current_payday_delegated_capital: ::core::option::Option<Amount>,
3244 #[prost(message, optional, tag = "5")]
3246 pub all_pool_total_capital: ::core::option::Option<Amount>,
3247}
3248#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3250pub struct BlocksAtHeightRequest {
3251 #[prost(oneof = "blocks_at_height_request::BlocksAtHeight", tags = "1, 2")]
3253 pub blocks_at_height: ::core::option::Option<
3254 blocks_at_height_request::BlocksAtHeight,
3255 >,
3256}
3257pub mod blocks_at_height_request {
3259 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3261 pub struct Absolute {
3262 #[prost(message, optional, tag = "1")]
3264 pub height: ::core::option::Option<super::AbsoluteBlockHeight>,
3265 }
3266 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3268 pub struct Relative {
3269 #[prost(message, optional, tag = "1")]
3271 pub genesis_index: ::core::option::Option<super::GenesisIndex>,
3272 #[prost(message, optional, tag = "2")]
3274 pub height: ::core::option::Option<super::BlockHeight>,
3275 #[prost(bool, tag = "3")]
3278 pub restrict: bool,
3279 }
3280 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3282 pub enum BlocksAtHeight {
3283 #[prost(message, tag = "1")]
3284 Absolute(Absolute),
3285 #[prost(message, tag = "2")]
3286 Relative(Relative),
3287 }
3288}
3289#[derive(Clone, PartialEq, ::prost::Message)]
3291pub struct BlocksAtHeightResponse {
3292 #[prost(message, repeated, tag = "1")]
3294 pub blocks: ::prost::alloc::vec::Vec<BlockHash>,
3295}
3296#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3299pub struct TokenomicsInfo {
3300 #[prost(oneof = "tokenomics_info::Tokenomics", tags = "1, 2")]
3303 pub tokenomics: ::core::option::Option<tokenomics_info::Tokenomics>,
3304}
3305pub mod tokenomics_info {
3307 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3309 pub struct V0 {
3310 #[prost(message, optional, tag = "1")]
3312 pub total_amount: ::core::option::Option<super::Amount>,
3313 #[prost(message, optional, tag = "2")]
3315 pub total_encrypted_amount: ::core::option::Option<super::Amount>,
3316 #[prost(message, optional, tag = "3")]
3318 pub baking_reward_account: ::core::option::Option<super::Amount>,
3319 #[prost(message, optional, tag = "4")]
3321 pub finalization_reward_account: ::core::option::Option<super::Amount>,
3322 #[prost(message, optional, tag = "5")]
3324 pub gas_account: ::core::option::Option<super::Amount>,
3325 #[prost(enumeration = "super::ProtocolVersion", tag = "6")]
3327 pub protocol_version: i32,
3328 }
3329 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3331 pub struct V1 {
3332 #[prost(message, optional, tag = "1")]
3334 pub total_amount: ::core::option::Option<super::Amount>,
3335 #[prost(message, optional, tag = "2")]
3337 pub total_encrypted_amount: ::core::option::Option<super::Amount>,
3338 #[prost(message, optional, tag = "3")]
3340 pub baking_reward_account: ::core::option::Option<super::Amount>,
3341 #[prost(message, optional, tag = "4")]
3343 pub finalization_reward_account: ::core::option::Option<super::Amount>,
3344 #[prost(message, optional, tag = "5")]
3346 pub gas_account: ::core::option::Option<super::Amount>,
3347 #[prost(message, optional, tag = "6")]
3349 pub foundation_transaction_rewards: ::core::option::Option<super::Amount>,
3350 #[prost(message, optional, tag = "7")]
3352 pub next_payday_time: ::core::option::Option<super::Timestamp>,
3353 #[prost(message, optional, tag = "8")]
3355 pub next_payday_mint_rate: ::core::option::Option<super::MintRate>,
3356 #[prost(message, optional, tag = "9")]
3358 pub total_staked_capital: ::core::option::Option<super::Amount>,
3359 #[prost(enumeration = "super::ProtocolVersion", tag = "10")]
3361 pub protocol_version: i32,
3362 }
3363 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
3366 pub enum Tokenomics {
3367 #[prost(message, tag = "1")]
3368 V0(V0),
3369 #[prost(message, tag = "2")]
3370 V1(V1),
3371 }
3372}
3373#[derive(Clone, PartialEq, ::prost::Message)]
3375pub struct InvokeInstanceRequest {
3376 #[prost(message, optional, tag = "1")]
3378 pub block_hash: ::core::option::Option<BlockHashInput>,
3379 #[prost(message, optional, tag = "2")]
3384 pub invoker: ::core::option::Option<Address>,
3385 #[prost(message, optional, tag = "3")]
3387 pub instance: ::core::option::Option<ContractAddress>,
3388 #[prost(message, optional, tag = "4")]
3390 pub amount: ::core::option::Option<Amount>,
3391 #[prost(message, optional, tag = "5")]
3393 pub entrypoint: ::core::option::Option<ReceiveName>,
3394 #[prost(message, optional, tag = "6")]
3396 pub parameter: ::core::option::Option<Parameter>,
3397 #[prost(message, optional, tag = "7")]
3401 pub energy: ::core::option::Option<Energy>,
3402}
3403#[derive(Clone, PartialEq, ::prost::Message)]
3405pub struct InvokeInstanceResponse {
3406 #[prost(oneof = "invoke_instance_response::Result", tags = "1, 2")]
3408 pub result: ::core::option::Option<invoke_instance_response::Result>,
3409}
3410pub mod invoke_instance_response {
3412 #[derive(Clone, PartialEq, ::prost::Message)]
3414 pub struct Failure {
3415 #[prost(bytes = "vec", optional, tag = "1")]
3420 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
3421 #[prost(message, optional, tag = "2")]
3423 pub used_energy: ::core::option::Option<super::Energy>,
3424 #[prost(message, optional, tag = "3")]
3426 pub reason: ::core::option::Option<super::RejectReason>,
3427 }
3428 #[derive(Clone, PartialEq, ::prost::Message)]
3430 pub struct Success {
3431 #[prost(bytes = "vec", optional, tag = "1")]
3434 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
3435 #[prost(message, optional, tag = "2")]
3437 pub used_energy: ::core::option::Option<super::Energy>,
3438 #[prost(message, repeated, tag = "3")]
3440 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
3441 }
3442 #[derive(Clone, PartialEq, ::prost::Oneof)]
3444 pub enum Result {
3445 #[prost(message, tag = "1")]
3446 Success(Success),
3447 #[prost(message, tag = "2")]
3448 Failure(Failure),
3449 }
3450}
3451#[derive(Clone, PartialEq, ::prost::Message)]
3453pub struct GetPoolDelegatorsRequest {
3454 #[prost(message, optional, tag = "1")]
3456 pub block_hash: ::core::option::Option<BlockHashInput>,
3457 #[prost(message, optional, tag = "2")]
3459 pub baker: ::core::option::Option<BakerId>,
3460}
3461#[derive(Clone, PartialEq, ::prost::Message)]
3463pub struct DelegatorInfo {
3464 #[prost(message, optional, tag = "1")]
3466 pub account: ::core::option::Option<AccountAddress>,
3467 #[prost(message, optional, tag = "2")]
3469 pub stake: ::core::option::Option<Amount>,
3470 #[prost(message, optional, tag = "3")]
3472 pub pending_change: ::core::option::Option<StakePendingChange>,
3473}
3474#[derive(Clone, PartialEq, ::prost::Message)]
3476pub struct DelegatorRewardPeriodInfo {
3477 #[prost(message, optional, tag = "1")]
3479 pub account: ::core::option::Option<AccountAddress>,
3480 #[prost(message, optional, tag = "2")]
3482 pub stake: ::core::option::Option<Amount>,
3483}
3484#[derive(Clone, PartialEq, ::prost::Message)]
3486pub struct Branch {
3487 #[prost(message, optional, tag = "1")]
3489 pub block_hash: ::core::option::Option<BlockHash>,
3490 #[prost(message, repeated, tag = "2")]
3492 pub children: ::prost::alloc::vec::Vec<Branch>,
3493}
3494#[derive(Clone, PartialEq, ::prost::Message)]
3498pub struct LeadershipElectionNonce {
3499 #[prost(bytes = "vec", tag = "1")]
3500 pub value: ::prost::alloc::vec::Vec<u8>,
3501}
3502#[derive(Clone, PartialEq, ::prost::Message)]
3507pub struct ElectionInfo {
3508 #[prost(message, optional, tag = "1")]
3510 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
3511 #[prost(message, optional, tag = "2")]
3513 pub election_nonce: ::core::option::Option<LeadershipElectionNonce>,
3514 #[prost(message, repeated, tag = "3")]
3516 pub baker_election_info: ::prost::alloc::vec::Vec<election_info::Baker>,
3517}
3518pub mod election_info {
3520 #[derive(Clone, PartialEq, ::prost::Message)]
3521 pub struct Baker {
3522 #[prost(message, optional, tag = "1")]
3524 pub baker: ::core::option::Option<super::BakerId>,
3525 #[prost(message, optional, tag = "2")]
3527 pub account: ::core::option::Option<super::AccountAddress>,
3528 #[prost(double, tag = "3")]
3530 pub lottery_power: f64,
3531 }
3532}
3533#[derive(Clone, PartialEq, ::prost::Message)]
3536pub struct BlockSpecialEvent {
3537 #[prost(
3539 oneof = "block_special_event::Event",
3540 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
3541 )]
3542 pub event: ::core::option::Option<block_special_event::Event>,
3543}
3544pub mod block_special_event {
3546 #[derive(Clone, PartialEq, ::prost::Message)]
3548 pub struct AccountAmounts {
3549 #[prost(message, repeated, tag = "1")]
3550 pub entries: ::prost::alloc::vec::Vec<account_amounts::Entry>,
3551 }
3552 pub mod account_amounts {
3554 #[derive(Clone, PartialEq, ::prost::Message)]
3556 pub struct Entry {
3557 #[prost(message, optional, tag = "1")]
3559 pub account: ::core::option::Option<super::super::AccountAddress>,
3560 #[prost(message, optional, tag = "2")]
3562 pub amount: ::core::option::Option<super::super::Amount>,
3563 }
3564 }
3565 #[derive(Clone, PartialEq, ::prost::Message)]
3569 pub struct BakingRewards {
3570 #[prost(message, optional, tag = "1")]
3572 pub baker_rewards: ::core::option::Option<AccountAmounts>,
3573 #[prost(message, optional, tag = "2")]
3575 pub remainder: ::core::option::Option<super::Amount>,
3576 }
3577 #[derive(Clone, PartialEq, ::prost::Message)]
3581 pub struct Mint {
3582 #[prost(message, optional, tag = "1")]
3584 pub mint_baking_reward: ::core::option::Option<super::Amount>,
3585 #[prost(message, optional, tag = "2")]
3587 pub mint_finalization_reward: ::core::option::Option<super::Amount>,
3588 #[prost(message, optional, tag = "3")]
3590 pub mint_platform_development_charge: ::core::option::Option<super::Amount>,
3591 #[prost(message, optional, tag = "4")]
3593 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3594 }
3595 #[derive(Clone, PartialEq, ::prost::Message)]
3597 pub struct FinalizationRewards {
3598 #[prost(message, optional, tag = "1")]
3600 pub finalization_rewards: ::core::option::Option<AccountAmounts>,
3601 #[prost(message, optional, tag = "2")]
3603 pub remainder: ::core::option::Option<super::Amount>,
3604 }
3605 #[derive(Clone, PartialEq, ::prost::Message)]
3610 pub struct BlockReward {
3611 #[prost(message, optional, tag = "1")]
3613 pub transaction_fees: ::core::option::Option<super::Amount>,
3614 #[prost(message, optional, tag = "2")]
3616 pub old_gas_account: ::core::option::Option<super::Amount>,
3617 #[prost(message, optional, tag = "3")]
3619 pub new_gas_account: ::core::option::Option<super::Amount>,
3620 #[prost(message, optional, tag = "4")]
3622 pub baker_reward: ::core::option::Option<super::Amount>,
3623 #[prost(message, optional, tag = "5")]
3625 pub foundation_charge: ::core::option::Option<super::Amount>,
3626 #[prost(message, optional, tag = "6")]
3628 pub baker: ::core::option::Option<super::AccountAddress>,
3629 #[prost(message, optional, tag = "7")]
3631 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3632 }
3633 #[derive(Clone, PartialEq, ::prost::Message)]
3635 pub struct PaydayFoundationReward {
3636 #[prost(message, optional, tag = "1")]
3638 pub foundation_account: ::core::option::Option<super::AccountAddress>,
3639 #[prost(message, optional, tag = "2")]
3641 pub development_charge: ::core::option::Option<super::Amount>,
3642 }
3643 #[derive(Clone, PartialEq, ::prost::Message)]
3658 pub struct PaydayAccountReward {
3659 #[prost(message, optional, tag = "1")]
3661 pub account: ::core::option::Option<super::AccountAddress>,
3662 #[prost(message, optional, tag = "2")]
3664 pub transaction_fees: ::core::option::Option<super::Amount>,
3665 #[prost(message, optional, tag = "3")]
3667 pub baker_reward: ::core::option::Option<super::Amount>,
3668 #[prost(message, optional, tag = "4")]
3670 pub finalization_reward: ::core::option::Option<super::Amount>,
3671 }
3672 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3674 pub struct BlockAccrueReward {
3675 #[prost(message, optional, tag = "1")]
3677 pub transaction_fees: ::core::option::Option<super::Amount>,
3678 #[prost(message, optional, tag = "2")]
3680 pub old_gas_account: ::core::option::Option<super::Amount>,
3681 #[prost(message, optional, tag = "3")]
3683 pub new_gas_account: ::core::option::Option<super::Amount>,
3684 #[prost(message, optional, tag = "4")]
3686 pub baker_reward: ::core::option::Option<super::Amount>,
3687 #[prost(message, optional, tag = "5")]
3689 pub passive_reward: ::core::option::Option<super::Amount>,
3690 #[prost(message, optional, tag = "6")]
3692 pub foundation_charge: ::core::option::Option<super::Amount>,
3693 #[prost(message, optional, tag = "7")]
3695 pub baker: ::core::option::Option<super::BakerId>,
3696 }
3697 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
3712 pub struct PaydayPoolReward {
3713 #[prost(message, optional, tag = "1")]
3715 pub pool_owner: ::core::option::Option<super::BakerId>,
3716 #[prost(message, optional, tag = "2")]
3718 pub transaction_fees: ::core::option::Option<super::Amount>,
3719 #[prost(message, optional, tag = "3")]
3721 pub baker_reward: ::core::option::Option<super::Amount>,
3722 #[prost(message, optional, tag = "4")]
3724 pub finalization_reward: ::core::option::Option<super::Amount>,
3725 }
3726 #[derive(Clone, PartialEq, ::prost::Message)]
3729 pub struct ValidatorSuspended {
3730 #[prost(message, optional, tag = "1")]
3732 pub baker_id: ::core::option::Option<super::BakerId>,
3733 #[prost(message, optional, tag = "2")]
3735 pub account: ::core::option::Option<super::AccountAddress>,
3736 }
3737 #[derive(Clone, PartialEq, ::prost::Message)]
3741 pub struct ValidatorPrimedForSuspension {
3742 #[prost(message, optional, tag = "1")]
3744 pub baker_id: ::core::option::Option<super::BakerId>,
3745 #[prost(message, optional, tag = "2")]
3747 pub account: ::core::option::Option<super::AccountAddress>,
3748 }
3749 #[derive(Clone, PartialEq, ::prost::Oneof)]
3751 pub enum Event {
3752 #[prost(message, tag = "1")]
3756 BakingRewards(BakingRewards),
3757 #[prost(message, tag = "2")]
3761 Mint(Mint),
3762 #[prost(message, tag = "3")]
3763 FinalizationRewards(FinalizationRewards),
3764 #[prost(message, tag = "4")]
3765 BlockReward(BlockReward),
3766 #[prost(message, tag = "5")]
3768 PaydayFoundationReward(PaydayFoundationReward),
3769 #[prost(message, tag = "6")]
3773 PaydayAccountReward(PaydayAccountReward),
3774 #[prost(message, tag = "7")]
3775 BlockAccrueReward(BlockAccrueReward),
3776 #[prost(message, tag = "8")]
3780 PaydayPoolReward(PaydayPoolReward),
3781 #[prost(message, tag = "9")]
3786 ValidatorSuspended(ValidatorSuspended),
3787 #[prost(message, tag = "10")]
3790 ValidatorPrimedForSuspension(ValidatorPrimedForSuspension),
3791 }
3792}
3793#[derive(Clone, PartialEq, ::prost::Message)]
3795pub struct PendingUpdate {
3796 #[prost(message, optional, tag = "1")]
3798 pub effective_time: ::core::option::Option<TransactionTime>,
3799 #[prost(
3803 oneof = "pending_update::Effect",
3804 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"
3805 )]
3806 pub effect: ::core::option::Option<pending_update::Effect>,
3807}
3808pub mod pending_update {
3810 #[derive(Clone, PartialEq, ::prost::Oneof)]
3814 pub enum Effect {
3815 #[prost(message, tag = "2")]
3817 RootKeys(super::HigherLevelKeys),
3818 #[prost(message, tag = "3")]
3820 Level1Keys(super::HigherLevelKeys),
3821 #[prost(message, tag = "4")]
3823 Level2KeysCpv0(super::AuthorizationsV0),
3824 #[prost(message, tag = "5")]
3826 Level2KeysCpv1(super::AuthorizationsV1),
3827 #[prost(message, tag = "6")]
3829 Protocol(super::ProtocolUpdate),
3830 #[prost(message, tag = "7")]
3832 ElectionDifficulty(super::ElectionDifficulty),
3833 #[prost(message, tag = "8")]
3835 EuroPerEnergy(super::ExchangeRate),
3836 #[prost(message, tag = "9")]
3838 MicroCcdPerEuro(super::ExchangeRate),
3839 #[prost(message, tag = "10")]
3841 FoundationAccount(super::AccountAddress),
3842 #[prost(message, tag = "11")]
3844 MintDistributionCpv0(super::MintDistributionCpv0),
3845 #[prost(message, tag = "12")]
3847 MintDistributionCpv1(super::MintDistributionCpv1),
3848 #[prost(message, tag = "13")]
3850 TransactionFeeDistribution(super::TransactionFeeDistribution),
3851 #[prost(message, tag = "14")]
3853 GasRewards(super::GasRewards),
3854 #[prost(message, tag = "15")]
3856 PoolParametersCpv0(super::BakerStakeThreshold),
3857 #[prost(message, tag = "16")]
3859 PoolParametersCpv1(super::PoolParametersCpv1),
3860 #[prost(message, tag = "17")]
3862 AddAnonymityRevoker(super::ArInfo),
3863 #[prost(message, tag = "18")]
3865 AddIdentityProvider(super::IpInfo),
3866 #[prost(message, tag = "19")]
3868 CooldownParameters(super::CooldownParametersCpv1),
3869 #[prost(message, tag = "20")]
3871 TimeParameters(super::TimeParametersCpv1),
3872 #[prost(message, tag = "21")]
3874 GasRewardsCpv2(super::GasRewardsCpv2),
3875 #[prost(message, tag = "22")]
3877 TimeoutParameters(super::TimeoutParameters),
3878 #[prost(message, tag = "23")]
3880 MinBlockTime(super::Duration),
3881 #[prost(message, tag = "24")]
3883 BlockEnergyLimit(super::Energy),
3884 #[prost(message, tag = "25")]
3886 FinalizationCommitteeParameters(super::FinalizationCommitteeParameters),
3887 #[prost(message, tag = "26")]
3889 ValidatorScoreParameters(super::ValidatorScoreParameters),
3890 }
3891}
3892#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3894pub struct NextUpdateSequenceNumbers {
3895 #[prost(message, optional, tag = "1")]
3897 pub root_keys: ::core::option::Option<SequenceNumber>,
3898 #[prost(message, optional, tag = "2")]
3900 pub level1_keys: ::core::option::Option<SequenceNumber>,
3901 #[prost(message, optional, tag = "3")]
3903 pub level2_keys: ::core::option::Option<SequenceNumber>,
3904 #[prost(message, optional, tag = "4")]
3906 pub protocol: ::core::option::Option<SequenceNumber>,
3907 #[prost(message, optional, tag = "5")]
3909 pub election_difficulty: ::core::option::Option<SequenceNumber>,
3910 #[prost(message, optional, tag = "6")]
3912 pub euro_per_energy: ::core::option::Option<SequenceNumber>,
3913 #[prost(message, optional, tag = "7")]
3915 pub micro_ccd_per_euro: ::core::option::Option<SequenceNumber>,
3916 #[prost(message, optional, tag = "8")]
3918 pub foundation_account: ::core::option::Option<SequenceNumber>,
3919 #[prost(message, optional, tag = "9")]
3921 pub mint_distribution: ::core::option::Option<SequenceNumber>,
3922 #[prost(message, optional, tag = "10")]
3924 pub transaction_fee_distribution: ::core::option::Option<SequenceNumber>,
3925 #[prost(message, optional, tag = "11")]
3927 pub gas_rewards: ::core::option::Option<SequenceNumber>,
3928 #[prost(message, optional, tag = "12")]
3930 pub pool_parameters: ::core::option::Option<SequenceNumber>,
3931 #[prost(message, optional, tag = "13")]
3933 pub add_anonymity_revoker: ::core::option::Option<SequenceNumber>,
3934 #[prost(message, optional, tag = "14")]
3936 pub add_identity_provider: ::core::option::Option<SequenceNumber>,
3937 #[prost(message, optional, tag = "15")]
3939 pub cooldown_parameters: ::core::option::Option<SequenceNumber>,
3940 #[prost(message, optional, tag = "16")]
3942 pub time_parameters: ::core::option::Option<SequenceNumber>,
3943 #[prost(message, optional, tag = "17")]
3945 pub timeout_parameters: ::core::option::Option<SequenceNumber>,
3946 #[prost(message, optional, tag = "18")]
3948 pub min_block_time: ::core::option::Option<SequenceNumber>,
3949 #[prost(message, optional, tag = "19")]
3951 pub block_energy_limit: ::core::option::Option<SequenceNumber>,
3952 #[prost(message, optional, tag = "20")]
3954 pub finalization_committee_parameters: ::core::option::Option<SequenceNumber>,
3955 #[prost(message, optional, tag = "21")]
3957 pub validator_score_parameters: ::core::option::Option<SequenceNumber>,
3958 #[prost(message, optional, tag = "22")]
3960 pub protocol_level_tokens: ::core::option::Option<SequenceNumber>,
3961}
3962#[derive(Clone, PartialEq, ::prost::Message)]
3965pub struct IpAddress {
3966 #[prost(string, tag = "1")]
3967 pub value: ::prost::alloc::string::String,
3968}
3969#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3973pub struct Port {
3974 #[prost(uint32, tag = "1")]
3975 pub value: u32,
3976}
3977#[derive(Clone, PartialEq, ::prost::Message)]
3980pub struct IpSocketAddress {
3981 #[prost(message, optional, tag = "1")]
3982 pub ip: ::core::option::Option<IpAddress>,
3983 #[prost(message, optional, tag = "2")]
3984 pub port: ::core::option::Option<Port>,
3985}
3986#[derive(Clone, PartialEq, ::prost::Message)]
3993pub struct PeerId {
3994 #[prost(string, tag = "1")]
3995 pub value: ::prost::alloc::string::String,
3996}
3997#[derive(Clone, PartialEq, ::prost::Message)]
3999pub struct BannedPeer {
4000 #[prost(message, optional, tag = "1")]
4002 pub ip_address: ::core::option::Option<IpAddress>,
4003}
4004#[derive(Clone, PartialEq, ::prost::Message)]
4006pub struct BannedPeers {
4007 #[prost(message, repeated, tag = "1")]
4008 pub peers: ::prost::alloc::vec::Vec<BannedPeer>,
4009}
4010#[derive(Clone, PartialEq, ::prost::Message)]
4014pub struct PeerToBan {
4015 #[prost(message, optional, tag = "1")]
4016 pub ip_address: ::core::option::Option<IpAddress>,
4017}
4018#[derive(Clone, PartialEq, ::prost::Message)]
4020pub struct DumpRequest {
4021 #[prost(string, tag = "1")]
4024 pub file: ::prost::alloc::string::String,
4025 #[prost(bool, tag = "2")]
4027 pub raw: bool,
4028}
4029#[derive(Clone, PartialEq, ::prost::Message)]
4031pub struct PeersInfo {
4032 #[prost(message, repeated, tag = "1")]
4033 pub peers: ::prost::alloc::vec::Vec<peers_info::Peer>,
4034}
4035pub mod peers_info {
4037 #[derive(Clone, PartialEq, ::prost::Message)]
4039 pub struct Peer {
4040 #[prost(message, optional, tag = "1")]
4043 pub peer_id: ::core::option::Option<super::PeerId>,
4044 #[prost(message, optional, tag = "2")]
4046 pub socket_address: ::core::option::Option<super::IpSocketAddress>,
4047 #[prost(message, optional, tag = "3")]
4049 pub network_stats: ::core::option::Option<peer::NetworkStats>,
4050 #[prost(oneof = "peer::ConsensusInfo", tags = "4, 5")]
4054 pub consensus_info: ::core::option::Option<peer::ConsensusInfo>,
4055 }
4056 pub mod peer {
4058 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4060 pub struct NetworkStats {
4061 #[prost(uint64, tag = "2")]
4065 pub packets_sent: u64,
4066 #[prost(uint64, tag = "3")]
4070 pub packets_received: u64,
4071 #[prost(uint64, tag = "4")]
4073 pub latency: u64,
4074 }
4075 #[derive(
4077 Clone,
4078 Copy,
4079 Debug,
4080 PartialEq,
4081 Eq,
4082 Hash,
4083 PartialOrd,
4084 Ord,
4085 ::prost::Enumeration
4086 )]
4087 #[repr(i32)]
4088 pub enum CatchupStatus {
4089 Uptodate = 0,
4092 Pending = 1,
4097 Catchingup = 2,
4103 }
4104 impl CatchupStatus {
4105 pub fn as_str_name(&self) -> &'static str {
4110 match self {
4111 Self::Uptodate => "UPTODATE",
4112 Self::Pending => "PENDING",
4113 Self::Catchingup => "CATCHINGUP",
4114 }
4115 }
4116 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
4118 match value {
4119 "UPTODATE" => Some(Self::Uptodate),
4120 "PENDING" => Some(Self::Pending),
4121 "CATCHINGUP" => Some(Self::Catchingup),
4122 _ => None,
4123 }
4124 }
4125 }
4126 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4130 pub enum ConsensusInfo {
4131 #[prost(message, tag = "4")]
4134 Bootstrapper(super::super::Empty),
4135 #[prost(enumeration = "CatchupStatus", tag = "5")]
4138 NodeCatchupStatus(i32),
4139 }
4140 }
4141}
4142#[derive(Clone, PartialEq, ::prost::Message)]
4146pub struct NodeInfo {
4147 #[prost(string, tag = "1")]
4149 pub peer_version: ::prost::alloc::string::String,
4150 #[prost(message, optional, tag = "3")]
4152 pub local_time: ::core::option::Option<Timestamp>,
4153 #[prost(message, optional, tag = "4")]
4156 pub peer_uptime: ::core::option::Option<Duration>,
4157 #[prost(message, optional, tag = "5")]
4159 pub network_info: ::core::option::Option<node_info::NetworkInfo>,
4160 #[prost(oneof = "node_info::Details", tags = "6, 7")]
4164 pub details: ::core::option::Option<node_info::Details>,
4165}
4166pub mod node_info {
4168 #[derive(Clone, PartialEq, ::prost::Message)]
4170 pub struct NetworkInfo {
4171 #[prost(message, optional, tag = "1")]
4173 pub node_id: ::core::option::Option<super::PeerId>,
4174 #[prost(uint64, tag = "2")]
4176 pub peer_total_sent: u64,
4177 #[prost(uint64, tag = "3")]
4179 pub peer_total_received: u64,
4180 #[prost(uint64, tag = "4")]
4182 pub avg_bps_in: u64,
4183 #[prost(uint64, tag = "5")]
4185 pub avg_bps_out: u64,
4186 }
4187 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4189 pub struct BakerConsensusInfo {
4190 #[prost(message, optional, tag = "1")]
4191 pub baker_id: ::core::option::Option<super::BakerId>,
4192 #[prost(oneof = "baker_consensus_info::Status", tags = "2, 3, 4")]
4196 pub status: ::core::option::Option<baker_consensus_info::Status>,
4197 }
4198 pub mod baker_consensus_info {
4200 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4204 pub struct ActiveBakerCommitteeInfo {}
4205 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4209 pub struct ActiveFinalizerCommitteeInfo {}
4210 #[derive(
4216 Clone,
4217 Copy,
4218 Debug,
4219 PartialEq,
4220 Eq,
4221 Hash,
4222 PartialOrd,
4223 Ord,
4224 ::prost::Enumeration
4225 )]
4226 #[repr(i32)]
4227 pub enum PassiveCommitteeInfo {
4228 NotInCommittee = 0,
4231 AddedButNotActiveInCommittee = 1,
4234 AddedButWrongKeys = 2,
4238 }
4239 impl PassiveCommitteeInfo {
4240 pub fn as_str_name(&self) -> &'static str {
4245 match self {
4246 Self::NotInCommittee => "NOT_IN_COMMITTEE",
4247 Self::AddedButNotActiveInCommittee => {
4248 "ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE"
4249 }
4250 Self::AddedButWrongKeys => "ADDED_BUT_WRONG_KEYS",
4251 }
4252 }
4253 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
4255 match value {
4256 "NOT_IN_COMMITTEE" => Some(Self::NotInCommittee),
4257 "ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE" => {
4258 Some(Self::AddedButNotActiveInCommittee)
4259 }
4260 "ADDED_BUT_WRONG_KEYS" => Some(Self::AddedButWrongKeys),
4261 _ => None,
4262 }
4263 }
4264 }
4265 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4269 pub enum Status {
4270 #[prost(enumeration = "PassiveCommitteeInfo", tag = "2")]
4272 PassiveCommitteeInfo(i32),
4273 #[prost(message, tag = "3")]
4276 ActiveBakerCommitteeInfo(ActiveBakerCommitteeInfo),
4277 #[prost(message, tag = "4")]
4280 ActiveFinalizerCommitteeInfo(ActiveFinalizerCommitteeInfo),
4281 }
4282 }
4283 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
4285 pub struct Node {
4286 #[prost(oneof = "node::ConsensusStatus", tags = "1, 2, 3")]
4288 pub consensus_status: ::core::option::Option<node::ConsensusStatus>,
4289 }
4290 pub mod node {
4292 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4294 pub enum ConsensusStatus {
4295 #[prost(message, tag = "1")]
4300 NotRunning(super::super::Empty),
4301 #[prost(message, tag = "2")]
4307 Passive(super::super::Empty),
4308 #[prost(message, tag = "3")]
4310 Active(super::BakerConsensusInfo),
4311 }
4312 }
4313 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
4317 pub enum Details {
4318 #[prost(message, tag = "6")]
4320 Bootstrapper(super::Empty),
4321 #[prost(message, tag = "7")]
4324 Node(Node),
4325 }
4326}
4327#[derive(Clone, PartialEq, ::prost::Message)]
4328pub struct SendBlockItemRequest {
4329 #[prost(oneof = "send_block_item_request::BlockItem", tags = "1, 2, 3, 4, 5")]
4331 pub block_item: ::core::option::Option<send_block_item_request::BlockItem>,
4332}
4333pub mod send_block_item_request {
4335 #[derive(Clone, PartialEq, ::prost::Oneof)]
4337 pub enum BlockItem {
4338 #[prost(message, tag = "1")]
4340 AccountTransaction(super::AccountTransaction),
4341 #[prost(message, tag = "2")]
4345 CredentialDeployment(super::CredentialDeployment),
4346 #[prost(message, tag = "3")]
4349 UpdateInstruction(super::UpdateInstruction),
4350 #[prost(message, tag = "4")]
4353 AccountTransactionV1(super::AccountTransactionV1),
4354 #[prost(bytes, tag = "5")]
4356 RawBlockItem(::prost::alloc::vec::Vec<u8>),
4357 }
4358}
4359#[derive(Clone, PartialEq, ::prost::Message)]
4363pub struct CredentialDeployment {
4364 #[prost(message, optional, tag = "1")]
4365 pub message_expiry: ::core::option::Option<TransactionTime>,
4366 #[prost(oneof = "credential_deployment::Payload", tags = "2")]
4371 pub payload: ::core::option::Option<credential_deployment::Payload>,
4372}
4373pub mod credential_deployment {
4375 #[derive(Clone, PartialEq, ::prost::Oneof)]
4380 pub enum Payload {
4381 #[prost(bytes, tag = "2")]
4384 RawPayload(::prost::alloc::vec::Vec<u8>),
4385 }
4386}
4387#[derive(Clone, PartialEq, ::prost::Message)]
4390pub struct Signature {
4391 #[prost(bytes = "vec", tag = "1")]
4392 pub value: ::prost::alloc::vec::Vec<u8>,
4393}
4394#[derive(Clone, PartialEq, ::prost::Message)]
4397pub struct SignatureMap {
4398 #[prost(map = "uint32, message", tag = "1")]
4399 pub signatures: ::std::collections::HashMap<u32, Signature>,
4400}
4401#[derive(Clone, PartialEq, ::prost::Message)]
4405pub struct AccountSignatureMap {
4406 #[prost(map = "uint32, message", tag = "1")]
4407 pub signatures: ::std::collections::HashMap<u32, Signature>,
4408}
4409#[derive(Clone, PartialEq, ::prost::Message)]
4410pub struct AccountTransactionSignature {
4411 #[prost(map = "uint32, message", tag = "1")]
4415 pub signatures: ::std::collections::HashMap<u32, AccountSignatureMap>,
4416}
4417#[derive(Clone, PartialEq, ::prost::Message)]
4420pub struct AccountTransactionV1Signatures {
4421 #[prost(message, optional, tag = "1")]
4423 pub sender_signatures: ::core::option::Option<AccountTransactionSignature>,
4424 #[prost(message, optional, tag = "2")]
4426 pub sponsor_signatures: ::core::option::Option<AccountTransactionSignature>,
4427}
4428#[derive(Clone, PartialEq, ::prost::Message)]
4431pub struct AccountTransactionHeader {
4432 #[prost(message, optional, tag = "1")]
4434 pub sender: ::core::option::Option<AccountAddress>,
4435 #[prost(message, optional, tag = "2")]
4437 pub sequence_number: ::core::option::Option<SequenceNumber>,
4438 #[prost(message, optional, tag = "3")]
4440 pub energy_amount: ::core::option::Option<Energy>,
4441 #[prost(message, optional, tag = "5")]
4443 pub expiry: ::core::option::Option<TransactionTime>,
4444}
4445#[derive(Clone, PartialEq, ::prost::Message)]
4447pub struct AccountTransactionHeaderV1 {
4448 #[prost(message, optional, tag = "1")]
4450 pub sender: ::core::option::Option<AccountAddress>,
4451 #[prost(message, optional, tag = "2")]
4453 pub sequence_number: ::core::option::Option<SequenceNumber>,
4454 #[prost(message, optional, tag = "3")]
4456 pub energy_amount: ::core::option::Option<Energy>,
4457 #[prost(message, optional, tag = "5")]
4459 pub expiry: ::core::option::Option<TransactionTime>,
4460 #[prost(message, optional, tag = "6")]
4463 pub sponsor: ::core::option::Option<AccountAddress>,
4464}
4465#[derive(Clone, PartialEq, ::prost::Message)]
4467pub struct InitContractPayload {
4468 #[prost(message, optional, tag = "1")]
4470 pub amount: ::core::option::Option<Amount>,
4471 #[prost(message, optional, tag = "2")]
4473 pub module_ref: ::core::option::Option<ModuleRef>,
4474 #[prost(message, optional, tag = "3")]
4477 pub init_name: ::core::option::Option<InitName>,
4478 #[prost(message, optional, tag = "4")]
4480 pub parameter: ::core::option::Option<Parameter>,
4481}
4482#[derive(Clone, PartialEq, ::prost::Message)]
4484pub struct UpdateContractPayload {
4485 #[prost(message, optional, tag = "1")]
4487 pub amount: ::core::option::Option<Amount>,
4488 #[prost(message, optional, tag = "2")]
4490 pub address: ::core::option::Option<ContractAddress>,
4491 #[prost(message, optional, tag = "3")]
4494 pub receive_name: ::core::option::Option<ReceiveName>,
4495 #[prost(message, optional, tag = "4")]
4497 pub parameter: ::core::option::Option<Parameter>,
4498}
4499#[derive(Clone, PartialEq, ::prost::Message)]
4501pub struct TransferPayload {
4502 #[prost(message, optional, tag = "1")]
4504 pub amount: ::core::option::Option<Amount>,
4505 #[prost(message, optional, tag = "2")]
4507 pub receiver: ::core::option::Option<AccountAddress>,
4508}
4509#[derive(Clone, PartialEq, ::prost::Message)]
4512pub struct TransferWithMemoPayload {
4513 #[prost(message, optional, tag = "1")]
4515 pub amount: ::core::option::Option<Amount>,
4516 #[prost(message, optional, tag = "2")]
4518 pub receiver: ::core::option::Option<AccountAddress>,
4519 #[prost(message, optional, tag = "3")]
4521 pub memo: ::core::option::Option<Memo>,
4522}
4523#[derive(Clone, PartialEq, ::prost::Message)]
4525pub struct AccountTransactionPayload {
4526 #[prost(
4529 oneof = "account_transaction_payload::Payload",
4530 tags = "1, 2, 3, 4, 5, 6, 7"
4531 )]
4532 pub payload: ::core::option::Option<account_transaction_payload::Payload>,
4533}
4534pub mod account_transaction_payload {
4536 #[derive(Clone, PartialEq, ::prost::Oneof)]
4539 pub enum Payload {
4540 #[prost(bytes, tag = "1")]
4543 RawPayload(::prost::alloc::vec::Vec<u8>),
4544 #[prost(message, tag = "2")]
4545 DeployModule(super::VersionedModuleSource),
4546 #[prost(message, tag = "3")]
4547 InitContract(super::InitContractPayload),
4548 #[prost(message, tag = "4")]
4549 UpdateContract(super::UpdateContractPayload),
4550 #[prost(message, tag = "5")]
4551 Transfer(super::TransferPayload),
4552 #[prost(message, tag = "6")]
4554 TransferWithMemo(super::TransferWithMemoPayload),
4555 #[prost(message, tag = "7")]
4556 RegisterData(super::RegisteredData),
4557 }
4558}
4559#[derive(Clone, PartialEq, ::prost::Message)]
4562pub struct PreAccountTransaction {
4563 #[prost(message, optional, tag = "1")]
4564 pub header: ::core::option::Option<AccountTransactionHeader>,
4565 #[prost(message, optional, tag = "2")]
4566 pub payload: ::core::option::Option<AccountTransactionPayload>,
4567}
4568#[derive(Clone, PartialEq, ::prost::Message)]
4571pub struct PreAccountTransactionV1 {
4572 #[prost(message, optional, tag = "1")]
4573 pub header: ::core::option::Option<AccountTransactionHeaderV1>,
4574 #[prost(message, optional, tag = "2")]
4575 pub payload: ::core::option::Option<AccountTransactionPayload>,
4576}
4577#[derive(Clone, PartialEq, ::prost::Message)]
4580pub struct AccountTransaction {
4581 #[prost(message, optional, tag = "1")]
4582 pub signature: ::core::option::Option<AccountTransactionSignature>,
4583 #[prost(message, optional, tag = "2")]
4584 pub header: ::core::option::Option<AccountTransactionHeader>,
4585 #[prost(message, optional, tag = "3")]
4586 pub payload: ::core::option::Option<AccountTransactionPayload>,
4587}
4588#[derive(Clone, PartialEq, ::prost::Message)]
4591pub struct AccountTransactionV1 {
4592 #[prost(message, optional, tag = "1")]
4595 pub signatures: ::core::option::Option<AccountTransactionV1Signatures>,
4596 #[prost(message, optional, tag = "2")]
4598 pub header: ::core::option::Option<AccountTransactionHeaderV1>,
4599 #[prost(message, optional, tag = "3")]
4601 pub payload: ::core::option::Option<AccountTransactionPayload>,
4602}
4603#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4604pub struct UpdateInstructionHeader {
4605 #[prost(message, optional, tag = "1")]
4606 pub sequence_number: ::core::option::Option<UpdateSequenceNumber>,
4607 #[prost(message, optional, tag = "2")]
4608 pub effective_time: ::core::option::Option<TransactionTime>,
4609 #[prost(message, optional, tag = "3")]
4610 pub timeout: ::core::option::Option<TransactionTime>,
4611}
4612#[derive(Clone, PartialEq, ::prost::Message)]
4614pub struct UpdateInstructionPayload {
4615 #[prost(oneof = "update_instruction_payload::Payload", tags = "3")]
4617 pub payload: ::core::option::Option<update_instruction_payload::Payload>,
4618}
4619pub mod update_instruction_payload {
4621 #[derive(Clone, PartialEq, ::prost::Oneof)]
4623 pub enum Payload {
4624 #[prost(bytes, tag = "3")]
4626 RawPayload(::prost::alloc::vec::Vec<u8>),
4627 }
4628}
4629#[derive(Clone, PartialEq, ::prost::Message)]
4630pub struct UpdateInstruction {
4631 #[prost(message, optional, tag = "1")]
4633 pub signatures: ::core::option::Option<SignatureMap>,
4634 #[prost(message, optional, tag = "2")]
4635 pub header: ::core::option::Option<UpdateInstructionHeader>,
4636 #[prost(message, optional, tag = "3")]
4637 pub payload: ::core::option::Option<UpdateInstructionPayload>,
4638}
4639#[derive(Clone, PartialEq, ::prost::Message)]
4642pub struct AccountTransactionSignHash {
4643 #[prost(bytes = "vec", tag = "1")]
4644 pub value: ::prost::alloc::vec::Vec<u8>,
4645}
4646#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4649pub struct CredentialsPerBlockLimit {
4650 #[prost(uint32, tag = "1")]
4651 pub value: u32,
4652}
4653#[derive(Clone, PartialEq, ::prost::Message)]
4655pub struct ChainParametersV0 {
4656 #[prost(message, optional, tag = "1")]
4658 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
4659 #[prost(message, optional, tag = "2")]
4661 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4662 #[prost(message, optional, tag = "3")]
4664 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4665 #[prost(message, optional, tag = "4")]
4668 pub baker_cooldown_epochs: ::core::option::Option<Epoch>,
4669 #[prost(message, optional, tag = "5")]
4671 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4672 #[prost(message, optional, tag = "6")]
4674 pub mint_distribution: ::core::option::Option<MintDistributionCpv0>,
4675 #[prost(message, optional, tag = "7")]
4677 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4678 #[prost(message, optional, tag = "8")]
4680 pub gas_rewards: ::core::option::Option<GasRewards>,
4681 #[prost(message, optional, tag = "9")]
4683 pub foundation_account: ::core::option::Option<AccountAddress>,
4684 #[prost(message, optional, tag = "10")]
4686 pub minimum_threshold_for_baking: ::core::option::Option<Amount>,
4687 #[prost(message, optional, tag = "11")]
4689 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4690 #[prost(message, optional, tag = "12")]
4692 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4693 #[prost(message, optional, tag = "13")]
4695 pub level2_keys: ::core::option::Option<AuthorizationsV0>,
4696}
4697#[derive(Clone, PartialEq, ::prost::Message)]
4699pub struct ChainParametersV1 {
4700 #[prost(message, optional, tag = "1")]
4702 pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
4703 #[prost(message, optional, tag = "2")]
4705 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4706 #[prost(message, optional, tag = "3")]
4708 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4709 #[prost(message, optional, tag = "4")]
4712 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4713 #[prost(message, optional, tag = "5")]
4717 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4718 #[prost(message, optional, tag = "6")]
4720 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4721 #[prost(message, optional, tag = "7")]
4723 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4724 #[prost(message, optional, tag = "8")]
4726 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4727 #[prost(message, optional, tag = "9")]
4729 pub gas_rewards: ::core::option::Option<GasRewards>,
4730 #[prost(message, optional, tag = "10")]
4732 pub foundation_account: ::core::option::Option<AccountAddress>,
4733 #[prost(message, optional, tag = "11")]
4735 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4736 #[prost(message, optional, tag = "12")]
4738 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4739 #[prost(message, optional, tag = "13")]
4741 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4742 #[prost(message, optional, tag = "14")]
4744 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4745}
4746#[derive(Clone, PartialEq, ::prost::Message)]
4748pub struct ChainParametersV2 {
4749 #[prost(message, optional, tag = "1")]
4751 pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
4752 #[prost(message, optional, tag = "2")]
4754 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4755 #[prost(message, optional, tag = "3")]
4757 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4758 #[prost(message, optional, tag = "4")]
4761 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4762 #[prost(message, optional, tag = "5")]
4766 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4767 #[prost(message, optional, tag = "6")]
4769 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4770 #[prost(message, optional, tag = "7")]
4772 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4773 #[prost(message, optional, tag = "8")]
4775 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4776 #[prost(message, optional, tag = "9")]
4778 pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
4779 #[prost(message, optional, tag = "10")]
4781 pub foundation_account: ::core::option::Option<AccountAddress>,
4782 #[prost(message, optional, tag = "11")]
4784 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4785 #[prost(message, optional, tag = "12")]
4787 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4788 #[prost(message, optional, tag = "13")]
4790 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4791 #[prost(message, optional, tag = "14")]
4793 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4794 #[prost(message, optional, tag = "15")]
4796 pub finalization_committee_parameters: ::core::option::Option<
4797 FinalizationCommitteeParameters,
4798 >,
4799}
4800#[derive(Clone, PartialEq, ::prost::Message)]
4802pub struct ChainParametersV3 {
4803 #[prost(message, optional, tag = "1")]
4805 pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
4806 #[prost(message, optional, tag = "2")]
4808 pub euro_per_energy: ::core::option::Option<ExchangeRate>,
4809 #[prost(message, optional, tag = "3")]
4811 pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
4812 #[prost(message, optional, tag = "4")]
4815 pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
4816 #[prost(message, optional, tag = "5")]
4820 pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
4821 #[prost(message, optional, tag = "6")]
4823 pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
4824 #[prost(message, optional, tag = "7")]
4826 pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
4827 #[prost(message, optional, tag = "8")]
4829 pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
4830 #[prost(message, optional, tag = "9")]
4832 pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
4833 #[prost(message, optional, tag = "10")]
4835 pub foundation_account: ::core::option::Option<AccountAddress>,
4836 #[prost(message, optional, tag = "11")]
4838 pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
4839 #[prost(message, optional, tag = "12")]
4841 pub root_keys: ::core::option::Option<HigherLevelKeys>,
4842 #[prost(message, optional, tag = "13")]
4844 pub level1_keys: ::core::option::Option<HigherLevelKeys>,
4845 #[prost(message, optional, tag = "14")]
4847 pub level2_keys: ::core::option::Option<AuthorizationsV1>,
4848 #[prost(message, optional, tag = "15")]
4850 pub finalization_committee_parameters: ::core::option::Option<
4851 FinalizationCommitteeParameters,
4852 >,
4853 #[prost(message, optional, tag = "16")]
4855 pub validator_score_parameters: ::core::option::Option<ValidatorScoreParameters>,
4856}
4857#[derive(Clone, PartialEq, ::prost::Message)]
4859pub struct ChainParameters {
4860 #[prost(oneof = "chain_parameters::Parameters", tags = "1, 2, 3, 4")]
4863 pub parameters: ::core::option::Option<chain_parameters::Parameters>,
4864}
4865pub mod chain_parameters {
4867 #[derive(Clone, PartialEq, ::prost::Oneof)]
4870 pub enum Parameters {
4871 #[prost(message, tag = "1")]
4873 V0(super::ChainParametersV0),
4874 #[prost(message, tag = "2")]
4876 V1(super::ChainParametersV1),
4877 #[prost(message, tag = "3")]
4879 V2(super::ChainParametersV2),
4880 #[prost(message, tag = "4")]
4882 V3(super::ChainParametersV3),
4883 }
4884}
4885#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4887pub struct FinalizationSummaryParty {
4888 #[prost(message, optional, tag = "1")]
4890 pub baker: ::core::option::Option<BakerId>,
4891 #[prost(uint64, tag = "2")]
4893 pub weight: u64,
4894 #[prost(bool, tag = "3")]
4896 pub signed: bool,
4897}
4898#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4901pub struct FinalizationIndex {
4902 #[prost(uint64, tag = "1")]
4903 pub value: u64,
4904}
4905#[derive(Clone, PartialEq, ::prost::Message)]
4907pub struct FinalizationSummary {
4908 #[prost(message, optional, tag = "1")]
4910 pub block: ::core::option::Option<BlockHash>,
4911 #[prost(message, optional, tag = "2")]
4913 pub index: ::core::option::Option<FinalizationIndex>,
4914 #[prost(message, optional, tag = "3")]
4916 pub delay: ::core::option::Option<BlockHeight>,
4917 #[prost(message, repeated, tag = "4")]
4920 pub finalizers: ::prost::alloc::vec::Vec<FinalizationSummaryParty>,
4921}
4922#[derive(Clone, PartialEq, ::prost::Message)]
4924pub struct BlockFinalizationSummary {
4925 #[prost(oneof = "block_finalization_summary::Summary", tags = "1, 2")]
4927 pub summary: ::core::option::Option<block_finalization_summary::Summary>,
4928}
4929pub mod block_finalization_summary {
4931 #[derive(Clone, PartialEq, ::prost::Oneof)]
4933 pub enum Summary {
4934 #[prost(message, tag = "1")]
4936 None(super::Empty),
4937 #[prost(message, tag = "2")]
4939 Record(super::FinalizationSummary),
4940 }
4941}
4942#[derive(Clone, PartialEq, ::prost::Message)]
4943pub struct BlockItem {
4944 #[prost(message, optional, tag = "1")]
4946 pub hash: ::core::option::Option<TransactionHash>,
4947 #[prost(oneof = "block_item::BlockItem", tags = "2, 3, 4, 5, 6")]
4949 pub block_item: ::core::option::Option<block_item::BlockItem>,
4950}
4951pub mod block_item {
4953 #[derive(Clone, PartialEq, ::prost::Oneof)]
4955 pub enum BlockItem {
4956 #[prost(message, tag = "2")]
4958 AccountTransaction(super::AccountTransaction),
4959 #[prost(message, tag = "3")]
4963 CredentialDeployment(super::CredentialDeployment),
4964 #[prost(message, tag = "4")]
4967 UpdateInstruction(super::UpdateInstruction),
4968 #[prost(message, tag = "5")]
4971 AccountTransactionV1(super::AccountTransactionV1),
4972 #[prost(bytes, tag = "6")]
4974 RawBlockItem(::prost::alloc::vec::Vec<u8>),
4975 }
4976}
4977#[derive(Clone, PartialEq, ::prost::Message)]
4980pub struct BakerRewardPeriodInfo {
4981 #[prost(message, optional, tag = "1")]
4983 pub baker: ::core::option::Option<BakerInfo>,
4984 #[prost(message, optional, tag = "2")]
4987 pub effective_stake: ::core::option::Option<Amount>,
4988 #[prost(message, optional, tag = "3")]
4990 pub commission_rates: ::core::option::Option<CommissionRates>,
4991 #[prost(message, optional, tag = "4")]
4993 pub equity_capital: ::core::option::Option<Amount>,
4994 #[prost(message, optional, tag = "5")]
4996 pub delegated_capital: ::core::option::Option<Amount>,
4997 #[prost(bool, tag = "6")]
4999 pub is_finalizer: bool,
5000}
5001#[derive(Clone, PartialEq, ::prost::Message)]
5003pub struct QuorumSignature {
5004 #[prost(bytes = "vec", tag = "1")]
5007 pub value: ::prost::alloc::vec::Vec<u8>,
5008}
5009#[derive(Clone, PartialEq, ::prost::Message)]
5014pub struct QuorumCertificate {
5015 #[prost(message, optional, tag = "1")]
5017 pub block_hash: ::core::option::Option<BlockHash>,
5018 #[prost(message, optional, tag = "2")]
5020 pub round: ::core::option::Option<Round>,
5021 #[prost(message, optional, tag = "3")]
5023 pub epoch: ::core::option::Option<Epoch>,
5024 #[prost(message, optional, tag = "4")]
5026 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
5027 #[prost(message, repeated, tag = "5")]
5032 pub signatories: ::prost::alloc::vec::Vec<BakerId>,
5033}
5034#[derive(Clone, PartialEq, ::prost::Message)]
5038pub struct FinalizerRound {
5039 #[prost(message, optional, tag = "1")]
5041 pub round: ::core::option::Option<Round>,
5042 #[prost(message, repeated, tag = "2")]
5045 pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
5046}
5047#[derive(Clone, PartialEq, ::prost::Message)]
5049pub struct TimeoutSignature {
5050 #[prost(bytes = "vec", tag = "1")]
5053 pub value: ::prost::alloc::vec::Vec<u8>,
5054}
5055#[derive(Clone, PartialEq, ::prost::Message)]
5060pub struct TimeoutCertificate {
5061 #[prost(message, optional, tag = "1")]
5063 pub round: ::core::option::Option<Round>,
5064 #[prost(message, optional, tag = "2")]
5067 pub min_epoch: ::core::option::Option<Epoch>,
5068 #[prost(message, repeated, tag = "3")]
5071 pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
5072 #[prost(message, repeated, tag = "4")]
5075 pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
5076 #[prost(message, optional, tag = "5")]
5079 pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
5080}
5081#[derive(Clone, PartialEq, ::prost::Message)]
5085pub struct SuccessorProof {
5086 #[prost(bytes = "vec", tag = "1")]
5089 pub value: ::prost::alloc::vec::Vec<u8>,
5090}
5091#[derive(Clone, PartialEq, ::prost::Message)]
5096pub struct EpochFinalizationEntry {
5097 #[prost(message, optional, tag = "1")]
5099 pub finalized_qc: ::core::option::Option<QuorumCertificate>,
5100 #[prost(message, optional, tag = "2")]
5103 pub successor_qc: ::core::option::Option<QuorumCertificate>,
5104 #[prost(message, optional, tag = "3")]
5107 pub successor_proof: ::core::option::Option<SuccessorProof>,
5108}
5109#[derive(Clone, PartialEq, ::prost::Message)]
5111pub struct BlockCertificates {
5112 #[prost(message, optional, tag = "1")]
5115 pub quorum_certificate: ::core::option::Option<QuorumCertificate>,
5116 #[prost(message, optional, tag = "2")]
5119 pub timeout_certificate: ::core::option::Option<TimeoutCertificate>,
5120 #[prost(message, optional, tag = "3")]
5123 pub epoch_finalization_entry: ::core::option::Option<EpochFinalizationEntry>,
5124}
5125#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5127pub struct WinningBaker {
5128 #[prost(message, optional, tag = "1")]
5130 pub round: ::core::option::Option<Round>,
5131 #[prost(message, optional, tag = "2")]
5133 pub winner: ::core::option::Option<BakerId>,
5134 #[prost(bool, tag = "3")]
5136 pub present: bool,
5137}
5138#[derive(Clone, PartialEq, ::prost::Message)]
5142pub struct DryRunRequest {
5143 #[prost(oneof = "dry_run_request::Request", tags = "1, 2, 3")]
5145 pub request: ::core::option::Option<dry_run_request::Request>,
5146}
5147pub mod dry_run_request {
5149 #[derive(Clone, PartialEq, ::prost::Oneof)]
5151 pub enum Request {
5152 #[prost(message, tag = "1")]
5158 LoadBlockState(super::BlockHashInput),
5159 #[prost(message, tag = "2")]
5161 StateQuery(super::DryRunStateQuery),
5162 #[prost(message, tag = "3")]
5164 StateOperation(super::DryRunStateOperation),
5165 }
5166}
5167#[derive(Clone, PartialEq, ::prost::Message)]
5169pub struct DryRunStateQuery {
5170 #[prost(oneof = "dry_run_state_query::Query", tags = "1, 2, 3")]
5172 pub query: ::core::option::Option<dry_run_state_query::Query>,
5173}
5174pub mod dry_run_state_query {
5176 #[derive(Clone, PartialEq, ::prost::Oneof)]
5178 pub enum Query {
5179 #[prost(message, tag = "1")]
5183 GetAccountInfo(super::AccountIdentifierInput),
5184 #[prost(message, tag = "2")]
5188 GetInstanceInfo(super::ContractAddress),
5189 #[prost(message, tag = "3")]
5195 InvokeInstance(super::DryRunInvokeInstance),
5196 }
5197}
5198#[derive(Clone, PartialEq, ::prost::Message)]
5200pub struct DryRunInvokeInstance {
5201 #[prost(message, optional, tag = "1")]
5206 pub invoker: ::core::option::Option<Address>,
5207 #[prost(message, optional, tag = "2")]
5209 pub instance: ::core::option::Option<ContractAddress>,
5210 #[prost(message, optional, tag = "3")]
5212 pub amount: ::core::option::Option<Amount>,
5213 #[prost(message, optional, tag = "4")]
5215 pub entrypoint: ::core::option::Option<ReceiveName>,
5216 #[prost(message, optional, tag = "5")]
5218 pub parameter: ::core::option::Option<Parameter>,
5219 #[prost(message, optional, tag = "6")]
5222 pub energy: ::core::option::Option<Energy>,
5223}
5224#[derive(Clone, PartialEq, ::prost::Message)]
5226pub struct DryRunStateOperation {
5227 #[prost(oneof = "dry_run_state_operation::Operation", tags = "1, 2, 3")]
5229 pub operation: ::core::option::Option<dry_run_state_operation::Operation>,
5230}
5231pub mod dry_run_state_operation {
5233 #[derive(Clone, PartialEq, ::prost::Oneof)]
5235 pub enum Operation {
5236 #[prost(message, tag = "1")]
5241 SetTimestamp(super::Timestamp),
5242 #[prost(message, tag = "2")]
5247 MintToAccount(super::DryRunMintToAccount),
5248 #[prost(message, tag = "3")]
5253 RunTransaction(super::DryRunTransaction),
5254 }
5255}
5256#[derive(Clone, PartialEq, ::prost::Message)]
5258pub struct DryRunMintToAccount {
5259 #[prost(message, optional, tag = "1")]
5261 pub account: ::core::option::Option<AccountAddress>,
5262 #[prost(message, optional, tag = "2")]
5264 pub amount: ::core::option::Option<Amount>,
5265}
5266#[derive(Clone, PartialEq, ::prost::Message)]
5268pub struct DryRunTransaction {
5269 #[prost(message, optional, tag = "1")]
5271 pub sender: ::core::option::Option<AccountAddress>,
5272 #[prost(message, optional, tag = "2")]
5274 pub energy_amount: ::core::option::Option<Energy>,
5275 #[prost(message, optional, tag = "3")]
5277 pub payload: ::core::option::Option<AccountTransactionPayload>,
5278 #[prost(message, repeated, tag = "4")]
5291 pub signatures: ::prost::alloc::vec::Vec<DryRunSignature>,
5292}
5293#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5297pub struct DryRunSignature {
5298 #[prost(uint32, tag = "1")]
5300 pub credential: u32,
5301 #[prost(uint32, tag = "2")]
5303 pub key: u32,
5304}
5305#[derive(Clone, PartialEq, ::prost::Message)]
5307pub struct DryRunResponse {
5308 #[prost(message, optional, tag = "3")]
5310 pub quota_remaining: ::core::option::Option<Energy>,
5311 #[prost(oneof = "dry_run_response::Response", tags = "1, 2")]
5313 pub response: ::core::option::Option<dry_run_response::Response>,
5314}
5315pub mod dry_run_response {
5317 #[derive(Clone, PartialEq, ::prost::Oneof)]
5319 pub enum Response {
5320 #[prost(message, tag = "1")]
5322 Error(super::DryRunErrorResponse),
5323 #[prost(message, tag = "2")]
5325 Success(super::DryRunSuccessResponse),
5326 }
5327}
5328#[derive(Clone, PartialEq, ::prost::Message)]
5329pub struct DryRunErrorResponse {
5330 #[prost(oneof = "dry_run_error_response::Error", tags = "1, 2, 3, 4, 5, 6, 8, 9")]
5332 pub error: ::core::option::Option<dry_run_error_response::Error>,
5333}
5334pub mod dry_run_error_response {
5336 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5339 pub struct NoState {}
5340 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5342 pub struct BlockNotFound {}
5343 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5345 pub struct AccountNotFound {}
5346 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5348 pub struct InstanceNotFound {}
5349 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5351 pub struct AmountOverLimit {
5352 #[prost(message, optional, tag = "1")]
5354 pub amount_limit: ::core::option::Option<super::Amount>,
5355 }
5356 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5359 pub struct BalanceInsufficient {
5360 #[prost(message, optional, tag = "1")]
5362 pub required_amount: ::core::option::Option<super::Amount>,
5363 #[prost(message, optional, tag = "2")]
5365 pub available_amount: ::core::option::Option<super::Amount>,
5366 }
5367 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5370 pub struct EnergyInsufficient {
5371 #[prost(message, optional, tag = "1")]
5377 pub energy_required: ::core::option::Option<super::Energy>,
5378 }
5379 #[derive(Clone, PartialEq, ::prost::Message)]
5381 pub struct InvokeFailure {
5382 #[prost(bytes = "vec", optional, tag = "1")]
5387 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5388 #[prost(message, optional, tag = "2")]
5390 pub used_energy: ::core::option::Option<super::Energy>,
5391 #[prost(message, optional, tag = "3")]
5393 pub reason: ::core::option::Option<super::RejectReason>,
5394 }
5395 #[derive(Clone, PartialEq, ::prost::Oneof)]
5397 pub enum Error {
5398 #[prost(message, tag = "1")]
5401 NoState(NoState),
5402 #[prost(message, tag = "2")]
5405 BlockNotFound(BlockNotFound),
5406 #[prost(message, tag = "3")]
5409 AccountNotFound(AccountNotFound),
5410 #[prost(message, tag = "4")]
5413 InstanceNotFound(InstanceNotFound),
5414 #[prost(message, tag = "5")]
5417 AmountOverLimit(AmountOverLimit),
5418 #[prost(message, tag = "6")]
5421 BalanceInsufficient(BalanceInsufficient),
5422 #[prost(message, tag = "8")]
5425 EnergyInsufficient(EnergyInsufficient),
5426 #[prost(message, tag = "9")]
5429 InvokeFailed(InvokeFailure),
5430 }
5431}
5432#[derive(Clone, PartialEq, ::prost::Message)]
5434pub struct DryRunSuccessResponse {
5435 #[prost(oneof = "dry_run_success_response::Response", tags = "1, 2, 3, 4, 5, 6, 7")]
5437 pub response: ::core::option::Option<dry_run_success_response::Response>,
5438}
5439pub mod dry_run_success_response {
5441 #[derive(Clone, PartialEq, ::prost::Message)]
5443 pub struct BlockStateLoaded {
5444 #[prost(message, optional, tag = "1")]
5446 pub current_timestamp: ::core::option::Option<super::Timestamp>,
5447 #[prost(message, optional, tag = "2")]
5449 pub block_hash: ::core::option::Option<super::BlockHash>,
5450 #[prost(enumeration = "super::ProtocolVersion", tag = "3")]
5453 pub protocol_version: i32,
5454 }
5455 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5457 pub struct TimestampSet {}
5458 #[derive(Clone, Copy, PartialEq, ::prost::Message)]
5460 pub struct MintedToAccount {}
5461 #[derive(Clone, PartialEq, ::prost::Message)]
5463 pub struct TransactionExecuted {
5464 #[prost(message, optional, tag = "1")]
5466 pub energy_cost: ::core::option::Option<super::Energy>,
5467 #[prost(message, optional, tag = "2")]
5469 pub details: ::core::option::Option<super::AccountTransactionDetails>,
5470 #[prost(bytes = "vec", optional, tag = "3")]
5473 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5474 }
5475 #[derive(Clone, PartialEq, ::prost::Message)]
5477 pub struct InvokeSuccess {
5478 #[prost(bytes = "vec", optional, tag = "1")]
5481 pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
5482 #[prost(message, optional, tag = "2")]
5484 pub used_energy: ::core::option::Option<super::Energy>,
5485 #[prost(message, repeated, tag = "3")]
5487 pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
5488 }
5489 #[derive(Clone, PartialEq, ::prost::Oneof)]
5491 pub enum Response {
5492 #[prost(message, tag = "1")]
5495 BlockStateLoaded(BlockStateLoaded),
5496 #[prost(message, tag = "2")]
5499 AccountInfo(super::AccountInfo),
5500 #[prost(message, tag = "3")]
5503 InstanceInfo(super::InstanceInfo),
5504 #[prost(message, tag = "4")]
5506 InvokeSucceeded(InvokeSuccess),
5507 #[prost(message, tag = "5")]
5510 TimestampSet(TimestampSet),
5511 #[prost(message, tag = "6")]
5514 MintedToAccount(MintedToAccount),
5515 #[prost(message, tag = "7")]
5519 TransactionExecuted(TransactionExecuted),
5520 }
5521}
5522#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5524pub struct FinalizerIndex {
5525 #[prost(uint32, tag = "1")]
5526 pub value: u32,
5527}
5528#[derive(Clone, PartialEq, ::prost::Message)]
5530pub struct QuorumMessage {
5531 #[prost(message, optional, tag = "1")]
5533 pub signature: ::core::option::Option<QuorumSignature>,
5534 #[prost(message, optional, tag = "2")]
5536 pub block: ::core::option::Option<BlockHash>,
5537 #[prost(message, optional, tag = "3")]
5539 pub finalizer: ::core::option::Option<FinalizerIndex>,
5540 #[prost(message, optional, tag = "4")]
5542 pub round: ::core::option::Option<Round>,
5543 #[prost(message, optional, tag = "5")]
5545 pub epoch: ::core::option::Option<Epoch>,
5546}
5547#[derive(Clone, PartialEq, ::prost::Message)]
5548pub struct RawQuorumCertificate {
5549 #[prost(message, optional, tag = "1")]
5551 pub block_hash: ::core::option::Option<BlockHash>,
5552 #[prost(message, optional, tag = "2")]
5554 pub round: ::core::option::Option<Round>,
5555 #[prost(message, optional, tag = "3")]
5557 pub epoch: ::core::option::Option<Epoch>,
5558 #[prost(message, optional, tag = "4")]
5560 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
5561 #[prost(message, repeated, tag = "5")]
5566 pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
5567}
5568#[derive(Clone, PartialEq, ::prost::Message)]
5571pub struct BlockSignature {
5572 #[prost(bytes = "vec", tag = "1")]
5573 pub value: ::prost::alloc::vec::Vec<u8>,
5574}
5575#[derive(Clone, PartialEq, ::prost::Message)]
5577pub struct TimeoutMessage {
5578 #[prost(message, optional, tag = "1")]
5580 pub finalizer: ::core::option::Option<FinalizerIndex>,
5581 #[prost(message, optional, tag = "2")]
5583 pub round: ::core::option::Option<Round>,
5584 #[prost(message, optional, tag = "3")]
5587 pub epoch: ::core::option::Option<Epoch>,
5588 #[prost(message, optional, tag = "4")]
5590 pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
5591 #[prost(message, optional, tag = "5")]
5593 pub signature: ::core::option::Option<TimeoutSignature>,
5594 #[prost(message, optional, tag = "6")]
5596 pub message_signature: ::core::option::Option<BlockSignature>,
5597}
5598#[derive(Clone, PartialEq, ::prost::Message)]
5599pub struct RawFinalizerRound {
5600 #[prost(message, optional, tag = "1")]
5602 pub round: ::core::option::Option<Round>,
5603 #[prost(message, repeated, tag = "2")]
5606 pub finalizers: ::prost::alloc::vec::Vec<FinalizerIndex>,
5607}
5608#[derive(Clone, PartialEq, ::prost::Message)]
5613pub struct RawTimeoutCertificate {
5614 #[prost(message, optional, tag = "1")]
5616 pub round: ::core::option::Option<Round>,
5617 #[prost(message, optional, tag = "2")]
5620 pub min_epoch: ::core::option::Option<Epoch>,
5621 #[prost(message, repeated, tag = "3")]
5624 pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
5625 #[prost(message, repeated, tag = "4")]
5628 pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
5629 #[prost(message, optional, tag = "5")]
5632 pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
5633}
5634#[derive(Clone, PartialEq, ::prost::Message)]
5635pub struct PersistentRoundStatus {
5636 #[prost(message, optional, tag = "1")]
5638 pub last_signed_quorum_message: ::core::option::Option<QuorumMessage>,
5639 #[prost(message, optional, tag = "2")]
5641 pub last_signed_timeout_message: ::core::option::Option<TimeoutMessage>,
5642 #[prost(message, optional, tag = "3")]
5644 pub last_baked_round: ::core::option::Option<Round>,
5645 #[prost(message, optional, tag = "4")]
5648 pub latest_timeout: ::core::option::Option<RawTimeoutCertificate>,
5649}
5650#[derive(Clone, PartialEq, ::prost::Message)]
5651pub struct RoundTimeout {
5652 #[prost(message, optional, tag = "1")]
5654 pub timeout_certificate: ::core::option::Option<RawTimeoutCertificate>,
5655 #[prost(message, optional, tag = "2")]
5657 pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
5658}
5659#[derive(Clone, PartialEq, ::prost::Message)]
5660pub struct RawFinalizationEntry {
5661 #[prost(message, optional, tag = "1")]
5663 pub finalized_qc: ::core::option::Option<RawQuorumCertificate>,
5664 #[prost(message, optional, tag = "2")]
5667 pub successor_qc: ::core::option::Option<RawQuorumCertificate>,
5668 #[prost(message, optional, tag = "3")]
5671 pub successor_proof: ::core::option::Option<SuccessorProof>,
5672}
5673#[derive(Clone, PartialEq, ::prost::Message)]
5675pub struct RoundStatus {
5676 #[prost(message, optional, tag = "1")]
5682 pub current_round: ::core::option::Option<Round>,
5683 #[prost(message, optional, tag = "2")]
5685 pub highest_certified_block: ::core::option::Option<RawQuorumCertificate>,
5686 #[prost(message, optional, tag = "3")]
5689 pub previous_round_timeout: ::core::option::Option<RoundTimeout>,
5690 #[prost(bool, tag = "4")]
5694 pub round_eligible_to_bake: bool,
5695 #[prost(message, optional, tag = "5")]
5699 pub current_epoch: ::core::option::Option<Epoch>,
5700 #[prost(message, optional, tag = "6")]
5704 pub last_epoch_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
5705 #[prost(message, optional, tag = "7")]
5707 pub current_timeout: ::core::option::Option<Duration>,
5708}
5709#[derive(Clone, PartialEq, ::prost::Message)]
5710pub struct BlockTableSummary {
5711 #[prost(uint64, tag = "1")]
5713 pub dead_block_cache_size: u64,
5714 #[prost(message, repeated, tag = "2")]
5716 pub live_blocks: ::prost::alloc::vec::Vec<BlockHash>,
5717}
5718#[derive(Clone, PartialEq, ::prost::Message)]
5720pub struct BranchBlocks {
5721 #[prost(message, repeated, tag = "1")]
5722 pub blocks_at_branch_height: ::prost::alloc::vec::Vec<BlockHash>,
5723}
5724#[derive(Clone, PartialEq, ::prost::Message)]
5725pub struct RoundExistingBlock {
5726 #[prost(message, optional, tag = "1")]
5728 pub round: ::core::option::Option<Round>,
5729 #[prost(message, optional, tag = "2")]
5731 pub baker: ::core::option::Option<BakerId>,
5732 #[prost(message, optional, tag = "3")]
5734 pub block: ::core::option::Option<BlockHash>,
5735}
5736#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5737pub struct RoundExistingQc {
5738 #[prost(message, optional, tag = "1")]
5740 pub round: ::core::option::Option<Round>,
5741 #[prost(message, optional, tag = "2")]
5743 pub epoch: ::core::option::Option<Epoch>,
5744}
5745#[derive(Clone, PartialEq, ::prost::Message)]
5747pub struct FullBakerInfo {
5748 #[prost(message, optional, tag = "1")]
5750 pub baker_identity: ::core::option::Option<BakerId>,
5751 #[prost(message, optional, tag = "2")]
5753 pub election_verify_key: ::core::option::Option<BakerElectionVerifyKey>,
5754 #[prost(message, optional, tag = "3")]
5756 pub signature_verify_key: ::core::option::Option<BakerSignatureVerifyKey>,
5757 #[prost(message, optional, tag = "4")]
5759 pub aggregation_verify_key: ::core::option::Option<BakerAggregationVerifyKey>,
5760 #[prost(message, optional, tag = "5")]
5762 pub stake: ::core::option::Option<Amount>,
5763}
5764#[derive(Clone, PartialEq, ::prost::Message)]
5767pub struct FinalizationCommitteeHash {
5768 #[prost(bytes = "vec", tag = "1")]
5769 pub value: ::prost::alloc::vec::Vec<u8>,
5770}
5771#[derive(Clone, PartialEq, ::prost::Message)]
5772pub struct BakersAndFinalizers {
5773 #[prost(message, repeated, tag = "1")]
5775 pub bakers: ::prost::alloc::vec::Vec<FullBakerInfo>,
5776 #[prost(message, repeated, tag = "2")]
5779 pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
5780 #[prost(message, optional, tag = "3")]
5782 pub baker_total_stake: ::core::option::Option<Amount>,
5783 #[prost(message, optional, tag = "4")]
5785 pub finalizer_total_stake: ::core::option::Option<Amount>,
5786 #[prost(message, optional, tag = "5")]
5788 pub finalization_committee_hash: ::core::option::Option<FinalizationCommitteeHash>,
5789}
5790#[derive(Clone, PartialEq, ::prost::Message)]
5791pub struct EpochBakers {
5792 #[prost(message, optional, tag = "1")]
5795 pub previous_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5796 #[prost(message, optional, tag = "2")]
5799 pub current_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5800 #[prost(message, optional, tag = "3")]
5803 pub next_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
5804 #[prost(message, optional, tag = "4")]
5806 pub next_payday: ::core::option::Option<Epoch>,
5807}
5808#[derive(Clone, PartialEq, ::prost::Message)]
5809pub struct TimeoutMessages {
5810 #[prost(message, optional, tag = "1")]
5812 pub first_epoch: ::core::option::Option<Epoch>,
5813 #[prost(message, repeated, tag = "2")]
5816 pub first_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
5817 #[prost(message, repeated, tag = "3")]
5819 pub second_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
5820}
5821#[derive(Clone, PartialEq, ::prost::Message)]
5822pub struct AggregatedSignatures {
5823 #[prost(message, optional, tag = "1")]
5825 pub signed_block: ::core::option::Option<BlockHash>,
5826 #[prost(message, optional, tag = "2")]
5828 pub signature_weight: ::core::option::Option<Amount>,
5829 #[prost(message, optional, tag = "3")]
5831 pub aggregate_signature: ::core::option::Option<QuorumSignature>,
5832 #[prost(message, repeated, tag = "4")]
5834 pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
5835}
5836#[derive(Clone, PartialEq, ::prost::Message)]
5837pub struct QuorumMessages {
5838 #[prost(message, repeated, tag = "1")]
5840 pub quorum_messages: ::prost::alloc::vec::Vec<QuorumMessage>,
5841 #[prost(message, repeated, tag = "2")]
5843 pub aggregated_signatures: ::prost::alloc::vec::Vec<AggregatedSignatures>,
5844}
5845#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5846pub struct ConsensusDetailedStatusQuery {
5847 #[prost(message, optional, tag = "1")]
5850 pub genesis_index: ::core::option::Option<GenesisIndex>,
5851}
5852#[derive(Clone, PartialEq, ::prost::Message)]
5853pub struct ConsensusDetailedStatus {
5854 #[prost(message, optional, tag = "1")]
5856 pub genesis_block: ::core::option::Option<BlockHash>,
5857 #[prost(message, optional, tag = "2")]
5859 pub persistent_round_status: ::core::option::Option<PersistentRoundStatus>,
5860 #[prost(message, optional, tag = "3")]
5862 pub round_status: ::core::option::Option<RoundStatus>,
5863 #[prost(uint64, tag = "4")]
5865 pub non_finalized_transaction_count: u64,
5866 #[prost(int64, tag = "5")]
5868 pub transaction_table_purge_counter: i64,
5869 #[prost(message, optional, tag = "6")]
5871 pub block_table: ::core::option::Option<BlockTableSummary>,
5872 #[prost(message, repeated, tag = "7")]
5874 pub branches: ::prost::alloc::vec::Vec<BranchBlocks>,
5875 #[prost(message, repeated, tag = "8")]
5878 pub round_existing_blocks: ::prost::alloc::vec::Vec<RoundExistingBlock>,
5879 #[prost(message, repeated, tag = "9")]
5881 pub round_existing_qcs: ::prost::alloc::vec::Vec<RoundExistingQc>,
5882 #[prost(message, optional, tag = "10")]
5884 pub genesis_block_height: ::core::option::Option<AbsoluteBlockHeight>,
5885 #[prost(message, optional, tag = "11")]
5887 pub last_finalized_block: ::core::option::Option<BlockHash>,
5888 #[prost(message, optional, tag = "12")]
5890 pub last_finalized_block_height: ::core::option::Option<BlockHeight>,
5891 #[prost(message, optional, tag = "13")]
5896 pub latest_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
5897 #[prost(message, optional, tag = "14")]
5900 pub epoch_bakers: ::core::option::Option<EpochBakers>,
5901 #[prost(message, optional, tag = "15")]
5903 pub timeout_messages: ::core::option::Option<TimeoutMessages>,
5904 #[prost(message, optional, tag = "16")]
5906 pub terminal_block: ::core::option::Option<BlockHash>,
5907}
5908#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5911pub struct AccountPending {
5912 #[prost(message, optional, tag = "1")]
5913 pub account_index: ::core::option::Option<AccountIndex>,
5914 #[prost(message, optional, tag = "2")]
5915 pub first_timestamp: ::core::option::Option<Timestamp>,
5916}
5917#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5921#[repr(i32)]
5922pub enum OpenStatus {
5923 OpenForAll = 0,
5924 ClosedForNew = 1,
5925 ClosedForAll = 2,
5926}
5927impl OpenStatus {
5928 pub fn as_str_name(&self) -> &'static str {
5933 match self {
5934 Self::OpenForAll => "OPEN_STATUS_OPEN_FOR_ALL",
5935 Self::ClosedForNew => "OPEN_STATUS_CLOSED_FOR_NEW",
5936 Self::ClosedForAll => "OPEN_STATUS_CLOSED_FOR_ALL",
5937 }
5938 }
5939 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5941 match value {
5942 "OPEN_STATUS_OPEN_FOR_ALL" => Some(Self::OpenForAll),
5943 "OPEN_STATUS_CLOSED_FOR_NEW" => Some(Self::ClosedForNew),
5944 "OPEN_STATUS_CLOSED_FOR_ALL" => Some(Self::ClosedForAll),
5945 _ => None,
5946 }
5947 }
5948}
5949#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5953#[repr(i32)]
5954pub enum ContractVersion {
5955 V0 = 0,
5956 V1 = 1,
5957}
5958impl ContractVersion {
5959 pub fn as_str_name(&self) -> &'static str {
5964 match self {
5965 Self::V0 => "V0",
5966 Self::V1 => "V1",
5967 }
5968 }
5969 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
5971 match value {
5972 "V0" => Some(Self::V0),
5973 "V1" => Some(Self::V1),
5974 _ => None,
5975 }
5976 }
5977}
5978#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5982#[repr(i32)]
5983pub enum CredentialType {
5984 Initial = 0,
5986 Normal = 1,
5988}
5989impl CredentialType {
5990 pub fn as_str_name(&self) -> &'static str {
5995 match self {
5996 Self::Initial => "CREDENTIAL_TYPE_INITIAL",
5997 Self::Normal => "CREDENTIAL_TYPE_NORMAL",
5998 }
5999 }
6000 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
6002 match value {
6003 "CREDENTIAL_TYPE_INITIAL" => Some(Self::Initial),
6004 "CREDENTIAL_TYPE_NORMAL" => Some(Self::Normal),
6005 _ => None,
6006 }
6007 }
6008}
6009#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6013#[repr(i32)]
6014pub enum UpdateType {
6015 UpdateProtocol = 0,
6016 UpdateElectionDifficulty = 1,
6017 UpdateEuroPerEnergy = 2,
6018 UpdateMicroCcdPerEuro = 3,
6019 UpdateFoundationAccount = 4,
6020 UpdateMintDistribution = 5,
6021 UpdateTransactionFeeDistribution = 6,
6022 UpdateGasRewards = 7,
6023 UpdatePoolParameters = 8,
6024 AddAnonymityRevoker = 9,
6025 AddIdentityProvider = 10,
6026 UpdateRootKeys = 11,
6027 UpdateLevel1Keys = 12,
6028 UpdateLevel2Keys = 13,
6029 UpdateCooldownParameters = 14,
6030 UpdateTimeParameters = 15,
6031 UpdateTimeoutParameters = 16,
6032 UpdateMinBlockTime = 17,
6033 UpdateBlockEnergyLimit = 18,
6034 UpdateFinalizationCommitteeParameters = 19,
6035 UpdateValidatorScoreParameters = 20,
6036 UpdateCreatePlt = 21,
6037}
6038impl UpdateType {
6039 pub fn as_str_name(&self) -> &'static str {
6044 match self {
6045 Self::UpdateProtocol => "UPDATE_PROTOCOL",
6046 Self::UpdateElectionDifficulty => "UPDATE_ELECTION_DIFFICULTY",
6047 Self::UpdateEuroPerEnergy => "UPDATE_EURO_PER_ENERGY",
6048 Self::UpdateMicroCcdPerEuro => "UPDATE_MICRO_CCD_PER_EURO",
6049 Self::UpdateFoundationAccount => "UPDATE_FOUNDATION_ACCOUNT",
6050 Self::UpdateMintDistribution => "UPDATE_MINT_DISTRIBUTION",
6051 Self::UpdateTransactionFeeDistribution => {
6052 "UPDATE_TRANSACTION_FEE_DISTRIBUTION"
6053 }
6054 Self::UpdateGasRewards => "UPDATE_GAS_REWARDS",
6055 Self::UpdatePoolParameters => "UPDATE_POOL_PARAMETERS",
6056 Self::AddAnonymityRevoker => "ADD_ANONYMITY_REVOKER",
6057 Self::AddIdentityProvider => "ADD_IDENTITY_PROVIDER",
6058 Self::UpdateRootKeys => "UPDATE_ROOT_KEYS",
6059 Self::UpdateLevel1Keys => "UPDATE_LEVEL1_KEYS",
6060 Self::UpdateLevel2Keys => "UPDATE_LEVEL2_KEYS",
6061 Self::UpdateCooldownParameters => "UPDATE_COOLDOWN_PARAMETERS",
6062 Self::UpdateTimeParameters => "UPDATE_TIME_PARAMETERS",
6063 Self::UpdateTimeoutParameters => "UPDATE_TIMEOUT_PARAMETERS",
6064 Self::UpdateMinBlockTime => "UPDATE_MIN_BLOCK_TIME",
6065 Self::UpdateBlockEnergyLimit => "UPDATE_BLOCK_ENERGY_LIMIT",
6066 Self::UpdateFinalizationCommitteeParameters => {
6067 "UPDATE_FINALIZATION_COMMITTEE_PARAMETERS"
6068 }
6069 Self::UpdateValidatorScoreParameters => "UPDATE_VALIDATOR_SCORE_PARAMETERS",
6070 Self::UpdateCreatePlt => "UPDATE_CREATE_PLT",
6071 }
6072 }
6073 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
6075 match value {
6076 "UPDATE_PROTOCOL" => Some(Self::UpdateProtocol),
6077 "UPDATE_ELECTION_DIFFICULTY" => Some(Self::UpdateElectionDifficulty),
6078 "UPDATE_EURO_PER_ENERGY" => Some(Self::UpdateEuroPerEnergy),
6079 "UPDATE_MICRO_CCD_PER_EURO" => Some(Self::UpdateMicroCcdPerEuro),
6080 "UPDATE_FOUNDATION_ACCOUNT" => Some(Self::UpdateFoundationAccount),
6081 "UPDATE_MINT_DISTRIBUTION" => Some(Self::UpdateMintDistribution),
6082 "UPDATE_TRANSACTION_FEE_DISTRIBUTION" => {
6083 Some(Self::UpdateTransactionFeeDistribution)
6084 }
6085 "UPDATE_GAS_REWARDS" => Some(Self::UpdateGasRewards),
6086 "UPDATE_POOL_PARAMETERS" => Some(Self::UpdatePoolParameters),
6087 "ADD_ANONYMITY_REVOKER" => Some(Self::AddAnonymityRevoker),
6088 "ADD_IDENTITY_PROVIDER" => Some(Self::AddIdentityProvider),
6089 "UPDATE_ROOT_KEYS" => Some(Self::UpdateRootKeys),
6090 "UPDATE_LEVEL1_KEYS" => Some(Self::UpdateLevel1Keys),
6091 "UPDATE_LEVEL2_KEYS" => Some(Self::UpdateLevel2Keys),
6092 "UPDATE_COOLDOWN_PARAMETERS" => Some(Self::UpdateCooldownParameters),
6093 "UPDATE_TIME_PARAMETERS" => Some(Self::UpdateTimeParameters),
6094 "UPDATE_TIMEOUT_PARAMETERS" => Some(Self::UpdateTimeoutParameters),
6095 "UPDATE_MIN_BLOCK_TIME" => Some(Self::UpdateMinBlockTime),
6096 "UPDATE_BLOCK_ENERGY_LIMIT" => Some(Self::UpdateBlockEnergyLimit),
6097 "UPDATE_FINALIZATION_COMMITTEE_PARAMETERS" => {
6098 Some(Self::UpdateFinalizationCommitteeParameters)
6099 }
6100 "UPDATE_VALIDATOR_SCORE_PARAMETERS" => {
6101 Some(Self::UpdateValidatorScoreParameters)
6102 }
6103 "UPDATE_CREATE_PLT" => Some(Self::UpdateCreatePlt),
6104 _ => None,
6105 }
6106 }
6107}
6108#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6112#[repr(i32)]
6113pub enum TransactionType {
6114 DeployModule = 0,
6115 InitContract = 1,
6116 Update = 2,
6117 Transfer = 3,
6118 AddBaker = 4,
6120 RemoveBaker = 5,
6122 UpdateBakerStake = 6,
6124 UpdateBakerRestakeEarnings = 7,
6126 UpdateBakerKeys = 8,
6128 UpdateCredentialKeys = 9,
6129 EncryptedAmountTransfer = 10,
6131 TransferToEncrypted = 11,
6133 TransferToPublic = 12,
6134 TransferWithSchedule = 13,
6135 UpdateCredentials = 14,
6136 RegisterData = 15,
6137 TransferWithMemo = 16,
6139 EncryptedAmountTransferWithMemo = 17,
6142 TransferWithScheduleAndMemo = 18,
6144 ConfigureBaker = 19,
6146 ConfigureDelegation = 20,
6148 TokenUpdate = 21,
6150}
6151impl TransactionType {
6152 pub fn as_str_name(&self) -> &'static str {
6157 match self {
6158 Self::DeployModule => "DEPLOY_MODULE",
6159 Self::InitContract => "INIT_CONTRACT",
6160 Self::Update => "UPDATE",
6161 Self::Transfer => "TRANSFER",
6162 Self::AddBaker => "ADD_BAKER",
6163 Self::RemoveBaker => "REMOVE_BAKER",
6164 Self::UpdateBakerStake => "UPDATE_BAKER_STAKE",
6165 Self::UpdateBakerRestakeEarnings => "UPDATE_BAKER_RESTAKE_EARNINGS",
6166 Self::UpdateBakerKeys => "UPDATE_BAKER_KEYS",
6167 Self::UpdateCredentialKeys => "UPDATE_CREDENTIAL_KEYS",
6168 Self::EncryptedAmountTransfer => "ENCRYPTED_AMOUNT_TRANSFER",
6169 Self::TransferToEncrypted => "TRANSFER_TO_ENCRYPTED",
6170 Self::TransferToPublic => "TRANSFER_TO_PUBLIC",
6171 Self::TransferWithSchedule => "TRANSFER_WITH_SCHEDULE",
6172 Self::UpdateCredentials => "UPDATE_CREDENTIALS",
6173 Self::RegisterData => "REGISTER_DATA",
6174 Self::TransferWithMemo => "TRANSFER_WITH_MEMO",
6175 Self::EncryptedAmountTransferWithMemo => {
6176 "ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO"
6177 }
6178 Self::TransferWithScheduleAndMemo => "TRANSFER_WITH_SCHEDULE_AND_MEMO",
6179 Self::ConfigureBaker => "CONFIGURE_BAKER",
6180 Self::ConfigureDelegation => "CONFIGURE_DELEGATION",
6181 Self::TokenUpdate => "TOKEN_UPDATE",
6182 }
6183 }
6184 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
6186 match value {
6187 "DEPLOY_MODULE" => Some(Self::DeployModule),
6188 "INIT_CONTRACT" => Some(Self::InitContract),
6189 "UPDATE" => Some(Self::Update),
6190 "TRANSFER" => Some(Self::Transfer),
6191 "ADD_BAKER" => Some(Self::AddBaker),
6192 "REMOVE_BAKER" => Some(Self::RemoveBaker),
6193 "UPDATE_BAKER_STAKE" => Some(Self::UpdateBakerStake),
6194 "UPDATE_BAKER_RESTAKE_EARNINGS" => Some(Self::UpdateBakerRestakeEarnings),
6195 "UPDATE_BAKER_KEYS" => Some(Self::UpdateBakerKeys),
6196 "UPDATE_CREDENTIAL_KEYS" => Some(Self::UpdateCredentialKeys),
6197 "ENCRYPTED_AMOUNT_TRANSFER" => Some(Self::EncryptedAmountTransfer),
6198 "TRANSFER_TO_ENCRYPTED" => Some(Self::TransferToEncrypted),
6199 "TRANSFER_TO_PUBLIC" => Some(Self::TransferToPublic),
6200 "TRANSFER_WITH_SCHEDULE" => Some(Self::TransferWithSchedule),
6201 "UPDATE_CREDENTIALS" => Some(Self::UpdateCredentials),
6202 "REGISTER_DATA" => Some(Self::RegisterData),
6203 "TRANSFER_WITH_MEMO" => Some(Self::TransferWithMemo),
6204 "ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO" => {
6205 Some(Self::EncryptedAmountTransferWithMemo)
6206 }
6207 "TRANSFER_WITH_SCHEDULE_AND_MEMO" => Some(Self::TransferWithScheduleAndMemo),
6208 "CONFIGURE_BAKER" => Some(Self::ConfigureBaker),
6209 "CONFIGURE_DELEGATION" => Some(Self::ConfigureDelegation),
6210 "TOKEN_UPDATE" => Some(Self::TokenUpdate),
6211 _ => None,
6212 }
6213 }
6214}
6215#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6219#[repr(i32)]
6220pub enum ProtocolVersion {
6221 ProtocolVersion1 = 0,
6222 ProtocolVersion2 = 1,
6223 ProtocolVersion3 = 2,
6224 ProtocolVersion4 = 3,
6225 ProtocolVersion5 = 4,
6226 ProtocolVersion6 = 5,
6227 ProtocolVersion7 = 6,
6228 ProtocolVersion8 = 7,
6229 ProtocolVersion9 = 8,
6230 ProtocolVersion10 = 9,
6231}
6232impl ProtocolVersion {
6233 pub fn as_str_name(&self) -> &'static str {
6238 match self {
6239 Self::ProtocolVersion1 => "PROTOCOL_VERSION_1",
6240 Self::ProtocolVersion2 => "PROTOCOL_VERSION_2",
6241 Self::ProtocolVersion3 => "PROTOCOL_VERSION_3",
6242 Self::ProtocolVersion4 => "PROTOCOL_VERSION_4",
6243 Self::ProtocolVersion5 => "PROTOCOL_VERSION_5",
6244 Self::ProtocolVersion6 => "PROTOCOL_VERSION_6",
6245 Self::ProtocolVersion7 => "PROTOCOL_VERSION_7",
6246 Self::ProtocolVersion8 => "PROTOCOL_VERSION_8",
6247 Self::ProtocolVersion9 => "PROTOCOL_VERSION_9",
6248 Self::ProtocolVersion10 => "PROTOCOL_VERSION_10",
6249 }
6250 }
6251 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
6253 match value {
6254 "PROTOCOL_VERSION_1" => Some(Self::ProtocolVersion1),
6255 "PROTOCOL_VERSION_2" => Some(Self::ProtocolVersion2),
6256 "PROTOCOL_VERSION_3" => Some(Self::ProtocolVersion3),
6257 "PROTOCOL_VERSION_4" => Some(Self::ProtocolVersion4),
6258 "PROTOCOL_VERSION_5" => Some(Self::ProtocolVersion5),
6259 "PROTOCOL_VERSION_6" => Some(Self::ProtocolVersion6),
6260 "PROTOCOL_VERSION_7" => Some(Self::ProtocolVersion7),
6261 "PROTOCOL_VERSION_8" => Some(Self::ProtocolVersion8),
6262 "PROTOCOL_VERSION_9" => Some(Self::ProtocolVersion9),
6263 "PROTOCOL_VERSION_10" => Some(Self::ProtocolVersion10),
6264 _ => None,
6265 }
6266 }
6267}
6268pub mod queries_client {
6270 #![allow(
6271 unused_variables,
6272 dead_code,
6273 missing_docs,
6274 clippy::wildcard_imports,
6275 clippy::let_unit_value,
6276 )]
6277 use tonic::codegen::*;
6278 use tonic::codegen::http::Uri;
6279 #[derive(Debug, Clone)]
6280 pub struct QueriesClient<T> {
6281 inner: tonic::client::Grpc<T>,
6282 }
6283 impl QueriesClient<tonic::transport::Channel> {
6284 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
6286 where
6287 D: TryInto<tonic::transport::Endpoint>,
6288 D::Error: Into<StdError>,
6289 {
6290 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
6291 Ok(Self::new(conn))
6292 }
6293 }
6294 impl<T> QueriesClient<T>
6295 where
6296 T: tonic::client::GrpcService<tonic::body::BoxBody>,
6297 T::Error: Into<StdError>,
6298 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
6299 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
6300 {
6301 pub fn new(inner: T) -> Self {
6302 let inner = tonic::client::Grpc::new(inner);
6303 Self { inner }
6304 }
6305 pub fn with_origin(inner: T, origin: Uri) -> Self {
6306 let inner = tonic::client::Grpc::with_origin(inner, origin);
6307 Self { inner }
6308 }
6309 pub fn with_interceptor<F>(
6310 inner: T,
6311 interceptor: F,
6312 ) -> QueriesClient<InterceptedService<T, F>>
6313 where
6314 F: tonic::service::Interceptor,
6315 T::ResponseBody: Default,
6316 T: tonic::codegen::Service<
6317 http::Request<tonic::body::BoxBody>,
6318 Response = http::Response<
6319 <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
6320 >,
6321 >,
6322 <T as tonic::codegen::Service<
6323 http::Request<tonic::body::BoxBody>,
6324 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
6325 {
6326 QueriesClient::new(InterceptedService::new(inner, interceptor))
6327 }
6328 #[must_use]
6333 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
6334 self.inner = self.inner.send_compressed(encoding);
6335 self
6336 }
6337 #[must_use]
6339 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
6340 self.inner = self.inner.accept_compressed(encoding);
6341 self
6342 }
6343 #[must_use]
6347 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
6348 self.inner = self.inner.max_decoding_message_size(limit);
6349 self
6350 }
6351 #[must_use]
6355 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
6356 self.inner = self.inner.max_encoding_message_size(limit);
6357 self
6358 }
6359 pub async fn get_blocks(
6362 &mut self,
6363 request: impl tonic::IntoRequest<super::Empty>,
6364 ) -> std::result::Result<
6365 tonic::Response<tonic::codec::Streaming<super::ArrivedBlockInfo>>,
6366 tonic::Status,
6367 > {
6368 self.inner
6369 .ready()
6370 .await
6371 .map_err(|e| {
6372 tonic::Status::unknown(
6373 format!("Service was not ready: {}", e.into()),
6374 )
6375 })?;
6376 let codec = tonic::codec::ProstCodec::default();
6377 let path = http::uri::PathAndQuery::from_static(
6378 "/concordium.v2.Queries/GetBlocks",
6379 );
6380 let mut req = request.into_request();
6381 req.extensions_mut()
6382 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocks"));
6383 self.inner.server_streaming(req, path, codec).await
6384 }
6385 pub async fn get_finalized_blocks(
6391 &mut self,
6392 request: impl tonic::IntoRequest<super::Empty>,
6393 ) -> std::result::Result<
6394 tonic::Response<tonic::codec::Streaming<super::FinalizedBlockInfo>>,
6395 tonic::Status,
6396 > {
6397 self.inner
6398 .ready()
6399 .await
6400 .map_err(|e| {
6401 tonic::Status::unknown(
6402 format!("Service was not ready: {}", e.into()),
6403 )
6404 })?;
6405 let codec = tonic::codec::ProstCodec::default();
6406 let path = http::uri::PathAndQuery::from_static(
6407 "/concordium.v2.Queries/GetFinalizedBlocks",
6408 );
6409 let mut req = request.into_request();
6410 req.extensions_mut()
6411 .insert(GrpcMethod::new("concordium.v2.Queries", "GetFinalizedBlocks"));
6412 self.inner.server_streaming(req, path, codec).await
6413 }
6414 pub async fn get_account_info(
6416 &mut self,
6417 request: impl tonic::IntoRequest<super::AccountInfoRequest>,
6418 ) -> std::result::Result<tonic::Response<super::AccountInfo>, tonic::Status> {
6419 self.inner
6420 .ready()
6421 .await
6422 .map_err(|e| {
6423 tonic::Status::unknown(
6424 format!("Service was not ready: {}", e.into()),
6425 )
6426 })?;
6427 let codec = tonic::codec::ProstCodec::default();
6428 let path = http::uri::PathAndQuery::from_static(
6429 "/concordium.v2.Queries/GetAccountInfo",
6430 );
6431 let mut req = request.into_request();
6432 req.extensions_mut()
6433 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountInfo"));
6434 self.inner.unary(req, path, codec).await
6435 }
6436 pub async fn get_token_info(
6438 &mut self,
6439 request: impl tonic::IntoRequest<super::TokenInfoRequest>,
6440 ) -> std::result::Result<tonic::Response<super::TokenInfo>, tonic::Status> {
6441 self.inner
6442 .ready()
6443 .await
6444 .map_err(|e| {
6445 tonic::Status::unknown(
6446 format!("Service was not ready: {}", e.into()),
6447 )
6448 })?;
6449 let codec = tonic::codec::ProstCodec::default();
6450 let path = http::uri::PathAndQuery::from_static(
6451 "/concordium.v2.Queries/GetTokenInfo",
6452 );
6453 let mut req = request.into_request();
6454 req.extensions_mut()
6455 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenInfo"));
6456 self.inner.unary(req, path, codec).await
6457 }
6458 pub async fn get_account_list(
6460 &mut self,
6461 request: impl tonic::IntoRequest<super::BlockHashInput>,
6462 ) -> std::result::Result<
6463 tonic::Response<tonic::codec::Streaming<super::AccountAddress>>,
6464 tonic::Status,
6465 > {
6466 self.inner
6467 .ready()
6468 .await
6469 .map_err(|e| {
6470 tonic::Status::unknown(
6471 format!("Service was not ready: {}", e.into()),
6472 )
6473 })?;
6474 let codec = tonic::codec::ProstCodec::default();
6475 let path = http::uri::PathAndQuery::from_static(
6476 "/concordium.v2.Queries/GetAccountList",
6477 );
6478 let mut req = request.into_request();
6479 req.extensions_mut()
6480 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountList"));
6481 self.inner.server_streaming(req, path, codec).await
6482 }
6483 pub async fn get_token_list(
6486 &mut self,
6487 request: impl tonic::IntoRequest<super::BlockHashInput>,
6488 ) -> std::result::Result<
6489 tonic::Response<tonic::codec::Streaming<super::plt::TokenId>>,
6490 tonic::Status,
6491 > {
6492 self.inner
6493 .ready()
6494 .await
6495 .map_err(|e| {
6496 tonic::Status::unknown(
6497 format!("Service was not ready: {}", e.into()),
6498 )
6499 })?;
6500 let codec = tonic::codec::ProstCodec::default();
6501 let path = http::uri::PathAndQuery::from_static(
6502 "/concordium.v2.Queries/GetTokenList",
6503 );
6504 let mut req = request.into_request();
6505 req.extensions_mut()
6506 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenList"));
6507 self.inner.server_streaming(req, path, codec).await
6508 }
6509 pub async fn get_module_list(
6513 &mut self,
6514 request: impl tonic::IntoRequest<super::BlockHashInput>,
6515 ) -> std::result::Result<
6516 tonic::Response<tonic::codec::Streaming<super::ModuleRef>>,
6517 tonic::Status,
6518 > {
6519 self.inner
6520 .ready()
6521 .await
6522 .map_err(|e| {
6523 tonic::Status::unknown(
6524 format!("Service was not ready: {}", e.into()),
6525 )
6526 })?;
6527 let codec = tonic::codec::ProstCodec::default();
6528 let path = http::uri::PathAndQuery::from_static(
6529 "/concordium.v2.Queries/GetModuleList",
6530 );
6531 let mut req = request.into_request();
6532 req.extensions_mut()
6533 .insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleList"));
6534 self.inner.server_streaming(req, path, codec).await
6535 }
6536 pub async fn get_ancestors(
6540 &mut self,
6541 request: impl tonic::IntoRequest<super::AncestorsRequest>,
6542 ) -> std::result::Result<
6543 tonic::Response<tonic::codec::Streaming<super::BlockHash>>,
6544 tonic::Status,
6545 > {
6546 self.inner
6547 .ready()
6548 .await
6549 .map_err(|e| {
6550 tonic::Status::unknown(
6551 format!("Service was not ready: {}", e.into()),
6552 )
6553 })?;
6554 let codec = tonic::codec::ProstCodec::default();
6555 let path = http::uri::PathAndQuery::from_static(
6556 "/concordium.v2.Queries/GetAncestors",
6557 );
6558 let mut req = request.into_request();
6559 req.extensions_mut()
6560 .insert(GrpcMethod::new("concordium.v2.Queries", "GetAncestors"));
6561 self.inner.server_streaming(req, path, codec).await
6562 }
6563 pub async fn get_module_source(
6565 &mut self,
6566 request: impl tonic::IntoRequest<super::ModuleSourceRequest>,
6567 ) -> std::result::Result<
6568 tonic::Response<super::VersionedModuleSource>,
6569 tonic::Status,
6570 > {
6571 self.inner
6572 .ready()
6573 .await
6574 .map_err(|e| {
6575 tonic::Status::unknown(
6576 format!("Service was not ready: {}", e.into()),
6577 )
6578 })?;
6579 let codec = tonic::codec::ProstCodec::default();
6580 let path = http::uri::PathAndQuery::from_static(
6581 "/concordium.v2.Queries/GetModuleSource",
6582 );
6583 let mut req = request.into_request();
6584 req.extensions_mut()
6585 .insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleSource"));
6586 self.inner.unary(req, path, codec).await
6587 }
6588 pub async fn get_instance_list(
6592 &mut self,
6593 request: impl tonic::IntoRequest<super::BlockHashInput>,
6594 ) -> std::result::Result<
6595 tonic::Response<tonic::codec::Streaming<super::ContractAddress>>,
6596 tonic::Status,
6597 > {
6598 self.inner
6599 .ready()
6600 .await
6601 .map_err(|e| {
6602 tonic::Status::unknown(
6603 format!("Service was not ready: {}", e.into()),
6604 )
6605 })?;
6606 let codec = tonic::codec::ProstCodec::default();
6607 let path = http::uri::PathAndQuery::from_static(
6608 "/concordium.v2.Queries/GetInstanceList",
6609 );
6610 let mut req = request.into_request();
6611 req.extensions_mut()
6612 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceList"));
6613 self.inner.server_streaming(req, path, codec).await
6614 }
6615 pub async fn get_instance_info(
6618 &mut self,
6619 request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
6620 ) -> std::result::Result<tonic::Response<super::InstanceInfo>, tonic::Status> {
6621 self.inner
6622 .ready()
6623 .await
6624 .map_err(|e| {
6625 tonic::Status::unknown(
6626 format!("Service was not ready: {}", e.into()),
6627 )
6628 })?;
6629 let codec = tonic::codec::ProstCodec::default();
6630 let path = http::uri::PathAndQuery::from_static(
6631 "/concordium.v2.Queries/GetInstanceInfo",
6632 );
6633 let mut req = request.into_request();
6634 req.extensions_mut()
6635 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceInfo"));
6636 self.inner.unary(req, path, codec).await
6637 }
6638 pub async fn get_instance_state(
6641 &mut self,
6642 request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
6643 ) -> std::result::Result<
6644 tonic::Response<tonic::codec::Streaming<super::InstanceStateKvPair>>,
6645 tonic::Status,
6646 > {
6647 self.inner
6648 .ready()
6649 .await
6650 .map_err(|e| {
6651 tonic::Status::unknown(
6652 format!("Service was not ready: {}", e.into()),
6653 )
6654 })?;
6655 let codec = tonic::codec::ProstCodec::default();
6656 let path = http::uri::PathAndQuery::from_static(
6657 "/concordium.v2.Queries/GetInstanceState",
6658 );
6659 let mut req = request.into_request();
6660 req.extensions_mut()
6661 .insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceState"));
6662 self.inner.server_streaming(req, path, codec).await
6663 }
6664 pub async fn instance_state_lookup(
6668 &mut self,
6669 request: impl tonic::IntoRequest<super::InstanceStateLookupRequest>,
6670 ) -> std::result::Result<
6671 tonic::Response<super::InstanceStateValueAtKey>,
6672 tonic::Status,
6673 > {
6674 self.inner
6675 .ready()
6676 .await
6677 .map_err(|e| {
6678 tonic::Status::unknown(
6679 format!("Service was not ready: {}", e.into()),
6680 )
6681 })?;
6682 let codec = tonic::codec::ProstCodec::default();
6683 let path = http::uri::PathAndQuery::from_static(
6684 "/concordium.v2.Queries/InstanceStateLookup",
6685 );
6686 let mut req = request.into_request();
6687 req.extensions_mut()
6688 .insert(GrpcMethod::new("concordium.v2.Queries", "InstanceStateLookup"));
6689 self.inner.unary(req, path, codec).await
6690 }
6691 pub async fn get_next_account_sequence_number(
6696 &mut self,
6697 request: impl tonic::IntoRequest<super::AccountAddress>,
6698 ) -> std::result::Result<
6699 tonic::Response<super::NextAccountSequenceNumber>,
6700 tonic::Status,
6701 > {
6702 self.inner
6703 .ready()
6704 .await
6705 .map_err(|e| {
6706 tonic::Status::unknown(
6707 format!("Service was not ready: {}", e.into()),
6708 )
6709 })?;
6710 let codec = tonic::codec::ProstCodec::default();
6711 let path = http::uri::PathAndQuery::from_static(
6712 "/concordium.v2.Queries/GetNextAccountSequenceNumber",
6713 );
6714 let mut req = request.into_request();
6715 req.extensions_mut()
6716 .insert(
6717 GrpcMethod::new(
6718 "concordium.v2.Queries",
6719 "GetNextAccountSequenceNumber",
6720 ),
6721 );
6722 self.inner.unary(req, path, codec).await
6723 }
6724 pub async fn get_consensus_info(
6726 &mut self,
6727 request: impl tonic::IntoRequest<super::Empty>,
6728 ) -> std::result::Result<tonic::Response<super::ConsensusInfo>, tonic::Status> {
6729 self.inner
6730 .ready()
6731 .await
6732 .map_err(|e| {
6733 tonic::Status::unknown(
6734 format!("Service was not ready: {}", e.into()),
6735 )
6736 })?;
6737 let codec = tonic::codec::ProstCodec::default();
6738 let path = http::uri::PathAndQuery::from_static(
6739 "/concordium.v2.Queries/GetConsensusInfo",
6740 );
6741 let mut req = request.into_request();
6742 req.extensions_mut()
6743 .insert(GrpcMethod::new("concordium.v2.Queries", "GetConsensusInfo"));
6744 self.inner.unary(req, path, codec).await
6745 }
6746 pub async fn get_block_item_status(
6748 &mut self,
6749 request: impl tonic::IntoRequest<super::TransactionHash>,
6750 ) -> std::result::Result<
6751 tonic::Response<super::BlockItemStatus>,
6752 tonic::Status,
6753 > {
6754 self.inner
6755 .ready()
6756 .await
6757 .map_err(|e| {
6758 tonic::Status::unknown(
6759 format!("Service was not ready: {}", e.into()),
6760 )
6761 })?;
6762 let codec = tonic::codec::ProstCodec::default();
6763 let path = http::uri::PathAndQuery::from_static(
6764 "/concordium.v2.Queries/GetBlockItemStatus",
6765 );
6766 let mut req = request.into_request();
6767 req.extensions_mut()
6768 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItemStatus"));
6769 self.inner.unary(req, path, codec).await
6770 }
6771 pub async fn get_cryptographic_parameters(
6773 &mut self,
6774 request: impl tonic::IntoRequest<super::BlockHashInput>,
6775 ) -> std::result::Result<
6776 tonic::Response<super::CryptographicParameters>,
6777 tonic::Status,
6778 > {
6779 self.inner
6780 .ready()
6781 .await
6782 .map_err(|e| {
6783 tonic::Status::unknown(
6784 format!("Service was not ready: {}", e.into()),
6785 )
6786 })?;
6787 let codec = tonic::codec::ProstCodec::default();
6788 let path = http::uri::PathAndQuery::from_static(
6789 "/concordium.v2.Queries/GetCryptographicParameters",
6790 );
6791 let mut req = request.into_request();
6792 req.extensions_mut()
6793 .insert(
6794 GrpcMethod::new(
6795 "concordium.v2.Queries",
6796 "GetCryptographicParameters",
6797 ),
6798 );
6799 self.inner.unary(req, path, codec).await
6800 }
6801 pub async fn get_block_info(
6803 &mut self,
6804 request: impl tonic::IntoRequest<super::BlockHashInput>,
6805 ) -> std::result::Result<tonic::Response<super::BlockInfo>, tonic::Status> {
6806 self.inner
6807 .ready()
6808 .await
6809 .map_err(|e| {
6810 tonic::Status::unknown(
6811 format!("Service was not ready: {}", e.into()),
6812 )
6813 })?;
6814 let codec = tonic::codec::ProstCodec::default();
6815 let path = http::uri::PathAndQuery::from_static(
6816 "/concordium.v2.Queries/GetBlockInfo",
6817 );
6818 let mut req = request.into_request();
6819 req.extensions_mut()
6820 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockInfo"));
6821 self.inner.unary(req, path, codec).await
6822 }
6823 pub async fn get_baker_list(
6825 &mut self,
6826 request: impl tonic::IntoRequest<super::BlockHashInput>,
6827 ) -> std::result::Result<
6828 tonic::Response<tonic::codec::Streaming<super::BakerId>>,
6829 tonic::Status,
6830 > {
6831 self.inner
6832 .ready()
6833 .await
6834 .map_err(|e| {
6835 tonic::Status::unknown(
6836 format!("Service was not ready: {}", e.into()),
6837 )
6838 })?;
6839 let codec = tonic::codec::ProstCodec::default();
6840 let path = http::uri::PathAndQuery::from_static(
6841 "/concordium.v2.Queries/GetBakerList",
6842 );
6843 let mut req = request.into_request();
6844 req.extensions_mut()
6845 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBakerList"));
6846 self.inner.server_streaming(req, path, codec).await
6847 }
6848 pub async fn get_pool_info(
6850 &mut self,
6851 request: impl tonic::IntoRequest<super::PoolInfoRequest>,
6852 ) -> std::result::Result<
6853 tonic::Response<super::PoolInfoResponse>,
6854 tonic::Status,
6855 > {
6856 self.inner
6857 .ready()
6858 .await
6859 .map_err(|e| {
6860 tonic::Status::unknown(
6861 format!("Service was not ready: {}", e.into()),
6862 )
6863 })?;
6864 let codec = tonic::codec::ProstCodec::default();
6865 let path = http::uri::PathAndQuery::from_static(
6866 "/concordium.v2.Queries/GetPoolInfo",
6867 );
6868 let mut req = request.into_request();
6869 req.extensions_mut()
6870 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolInfo"));
6871 self.inner.unary(req, path, codec).await
6872 }
6873 pub async fn get_passive_delegation_info(
6875 &mut self,
6876 request: impl tonic::IntoRequest<super::BlockHashInput>,
6877 ) -> std::result::Result<
6878 tonic::Response<super::PassiveDelegationInfo>,
6879 tonic::Status,
6880 > {
6881 self.inner
6882 .ready()
6883 .await
6884 .map_err(|e| {
6885 tonic::Status::unknown(
6886 format!("Service was not ready: {}", e.into()),
6887 )
6888 })?;
6889 let codec = tonic::codec::ProstCodec::default();
6890 let path = http::uri::PathAndQuery::from_static(
6891 "/concordium.v2.Queries/GetPassiveDelegationInfo",
6892 );
6893 let mut req = request.into_request();
6894 req.extensions_mut()
6895 .insert(
6896 GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegationInfo"),
6897 );
6898 self.inner.unary(req, path, codec).await
6899 }
6900 pub async fn get_blocks_at_height(
6902 &mut self,
6903 request: impl tonic::IntoRequest<super::BlocksAtHeightRequest>,
6904 ) -> std::result::Result<
6905 tonic::Response<super::BlocksAtHeightResponse>,
6906 tonic::Status,
6907 > {
6908 self.inner
6909 .ready()
6910 .await
6911 .map_err(|e| {
6912 tonic::Status::unknown(
6913 format!("Service was not ready: {}", e.into()),
6914 )
6915 })?;
6916 let codec = tonic::codec::ProstCodec::default();
6917 let path = http::uri::PathAndQuery::from_static(
6918 "/concordium.v2.Queries/GetBlocksAtHeight",
6919 );
6920 let mut req = request.into_request();
6921 req.extensions_mut()
6922 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocksAtHeight"));
6923 self.inner.unary(req, path, codec).await
6924 }
6925 pub async fn get_tokenomics_info(
6927 &mut self,
6928 request: impl tonic::IntoRequest<super::BlockHashInput>,
6929 ) -> std::result::Result<tonic::Response<super::TokenomicsInfo>, tonic::Status> {
6930 self.inner
6931 .ready()
6932 .await
6933 .map_err(|e| {
6934 tonic::Status::unknown(
6935 format!("Service was not ready: {}", e.into()),
6936 )
6937 })?;
6938 let codec = tonic::codec::ProstCodec::default();
6939 let path = http::uri::PathAndQuery::from_static(
6940 "/concordium.v2.Queries/GetTokenomicsInfo",
6941 );
6942 let mut req = request.into_request();
6943 req.extensions_mut()
6944 .insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenomicsInfo"));
6945 self.inner.unary(req, path, codec).await
6946 }
6947 pub async fn invoke_instance(
6950 &mut self,
6951 request: impl tonic::IntoRequest<super::InvokeInstanceRequest>,
6952 ) -> std::result::Result<
6953 tonic::Response<super::InvokeInstanceResponse>,
6954 tonic::Status,
6955 > {
6956 self.inner
6957 .ready()
6958 .await
6959 .map_err(|e| {
6960 tonic::Status::unknown(
6961 format!("Service was not ready: {}", e.into()),
6962 )
6963 })?;
6964 let codec = tonic::codec::ProstCodec::default();
6965 let path = http::uri::PathAndQuery::from_static(
6966 "/concordium.v2.Queries/InvokeInstance",
6967 );
6968 let mut req = request.into_request();
6969 req.extensions_mut()
6970 .insert(GrpcMethod::new("concordium.v2.Queries", "InvokeInstance"));
6971 self.inner.unary(req, path, codec).await
6972 }
6973 pub async fn get_pool_delegators(
6980 &mut self,
6981 request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
6982 ) -> std::result::Result<
6983 tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
6984 tonic::Status,
6985 > {
6986 self.inner
6987 .ready()
6988 .await
6989 .map_err(|e| {
6990 tonic::Status::unknown(
6991 format!("Service was not ready: {}", e.into()),
6992 )
6993 })?;
6994 let codec = tonic::codec::ProstCodec::default();
6995 let path = http::uri::PathAndQuery::from_static(
6996 "/concordium.v2.Queries/GetPoolDelegators",
6997 );
6998 let mut req = request.into_request();
6999 req.extensions_mut()
7000 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolDelegators"));
7001 self.inner.server_streaming(req, path, codec).await
7002 }
7003 pub async fn get_pool_delegators_reward_period(
7009 &mut self,
7010 request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
7011 ) -> std::result::Result<
7012 tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
7013 tonic::Status,
7014 > {
7015 self.inner
7016 .ready()
7017 .await
7018 .map_err(|e| {
7019 tonic::Status::unknown(
7020 format!("Service was not ready: {}", e.into()),
7021 )
7022 })?;
7023 let codec = tonic::codec::ProstCodec::default();
7024 let path = http::uri::PathAndQuery::from_static(
7025 "/concordium.v2.Queries/GetPoolDelegatorsRewardPeriod",
7026 );
7027 let mut req = request.into_request();
7028 req.extensions_mut()
7029 .insert(
7030 GrpcMethod::new(
7031 "concordium.v2.Queries",
7032 "GetPoolDelegatorsRewardPeriod",
7033 ),
7034 );
7035 self.inner.server_streaming(req, path, codec).await
7036 }
7037 pub async fn get_passive_delegators(
7044 &mut self,
7045 request: impl tonic::IntoRequest<super::BlockHashInput>,
7046 ) -> std::result::Result<
7047 tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
7048 tonic::Status,
7049 > {
7050 self.inner
7051 .ready()
7052 .await
7053 .map_err(|e| {
7054 tonic::Status::unknown(
7055 format!("Service was not ready: {}", e.into()),
7056 )
7057 })?;
7058 let codec = tonic::codec::ProstCodec::default();
7059 let path = http::uri::PathAndQuery::from_static(
7060 "/concordium.v2.Queries/GetPassiveDelegators",
7061 );
7062 let mut req = request.into_request();
7063 req.extensions_mut()
7064 .insert(
7065 GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegators"),
7066 );
7067 self.inner.server_streaming(req, path, codec).await
7068 }
7069 pub async fn get_passive_delegators_reward_period(
7075 &mut self,
7076 request: impl tonic::IntoRequest<super::BlockHashInput>,
7077 ) -> std::result::Result<
7078 tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
7079 tonic::Status,
7080 > {
7081 self.inner
7082 .ready()
7083 .await
7084 .map_err(|e| {
7085 tonic::Status::unknown(
7086 format!("Service was not ready: {}", e.into()),
7087 )
7088 })?;
7089 let codec = tonic::codec::ProstCodec::default();
7090 let path = http::uri::PathAndQuery::from_static(
7091 "/concordium.v2.Queries/GetPassiveDelegatorsRewardPeriod",
7092 );
7093 let mut req = request.into_request();
7094 req.extensions_mut()
7095 .insert(
7096 GrpcMethod::new(
7097 "concordium.v2.Queries",
7098 "GetPassiveDelegatorsRewardPeriod",
7099 ),
7100 );
7101 self.inner.server_streaming(req, path, codec).await
7102 }
7103 pub async fn get_branches(
7105 &mut self,
7106 request: impl tonic::IntoRequest<super::Empty>,
7107 ) -> std::result::Result<tonic::Response<super::Branch>, tonic::Status> {
7108 self.inner
7109 .ready()
7110 .await
7111 .map_err(|e| {
7112 tonic::Status::unknown(
7113 format!("Service was not ready: {}", e.into()),
7114 )
7115 })?;
7116 let codec = tonic::codec::ProstCodec::default();
7117 let path = http::uri::PathAndQuery::from_static(
7118 "/concordium.v2.Queries/GetBranches",
7119 );
7120 let mut req = request.into_request();
7121 req.extensions_mut()
7122 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBranches"));
7123 self.inner.unary(req, path, codec).await
7124 }
7125 pub async fn get_election_info(
7127 &mut self,
7128 request: impl tonic::IntoRequest<super::BlockHashInput>,
7129 ) -> std::result::Result<tonic::Response<super::ElectionInfo>, tonic::Status> {
7130 self.inner
7131 .ready()
7132 .await
7133 .map_err(|e| {
7134 tonic::Status::unknown(
7135 format!("Service was not ready: {}", e.into()),
7136 )
7137 })?;
7138 let codec = tonic::codec::ProstCodec::default();
7139 let path = http::uri::PathAndQuery::from_static(
7140 "/concordium.v2.Queries/GetElectionInfo",
7141 );
7142 let mut req = request.into_request();
7143 req.extensions_mut()
7144 .insert(GrpcMethod::new("concordium.v2.Queries", "GetElectionInfo"));
7145 self.inner.unary(req, path, codec).await
7146 }
7147 pub async fn get_identity_providers(
7150 &mut self,
7151 request: impl tonic::IntoRequest<super::BlockHashInput>,
7152 ) -> std::result::Result<
7153 tonic::Response<tonic::codec::Streaming<super::IpInfo>>,
7154 tonic::Status,
7155 > {
7156 self.inner
7157 .ready()
7158 .await
7159 .map_err(|e| {
7160 tonic::Status::unknown(
7161 format!("Service was not ready: {}", e.into()),
7162 )
7163 })?;
7164 let codec = tonic::codec::ProstCodec::default();
7165 let path = http::uri::PathAndQuery::from_static(
7166 "/concordium.v2.Queries/GetIdentityProviders",
7167 );
7168 let mut req = request.into_request();
7169 req.extensions_mut()
7170 .insert(
7171 GrpcMethod::new("concordium.v2.Queries", "GetIdentityProviders"),
7172 );
7173 self.inner.server_streaming(req, path, codec).await
7174 }
7175 pub async fn get_anonymity_revokers(
7178 &mut self,
7179 request: impl tonic::IntoRequest<super::BlockHashInput>,
7180 ) -> std::result::Result<
7181 tonic::Response<tonic::codec::Streaming<super::ArInfo>>,
7182 tonic::Status,
7183 > {
7184 self.inner
7185 .ready()
7186 .await
7187 .map_err(|e| {
7188 tonic::Status::unknown(
7189 format!("Service was not ready: {}", e.into()),
7190 )
7191 })?;
7192 let codec = tonic::codec::ProstCodec::default();
7193 let path = http::uri::PathAndQuery::from_static(
7194 "/concordium.v2.Queries/GetAnonymityRevokers",
7195 );
7196 let mut req = request.into_request();
7197 req.extensions_mut()
7198 .insert(
7199 GrpcMethod::new("concordium.v2.Queries", "GetAnonymityRevokers"),
7200 );
7201 self.inner.server_streaming(req, path, codec).await
7202 }
7203 pub async fn get_account_non_finalized_transactions(
7208 &mut self,
7209 request: impl tonic::IntoRequest<super::AccountAddress>,
7210 ) -> std::result::Result<
7211 tonic::Response<tonic::codec::Streaming<super::TransactionHash>>,
7212 tonic::Status,
7213 > {
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/GetAccountNonFinalizedTransactions",
7225 );
7226 let mut req = request.into_request();
7227 req.extensions_mut()
7228 .insert(
7229 GrpcMethod::new(
7230 "concordium.v2.Queries",
7231 "GetAccountNonFinalizedTransactions",
7232 ),
7233 );
7234 self.inner.server_streaming(req, path, codec).await
7235 }
7236 pub async fn get_block_transaction_events(
7239 &mut self,
7240 request: impl tonic::IntoRequest<super::BlockHashInput>,
7241 ) -> std::result::Result<
7242 tonic::Response<tonic::codec::Streaming<super::BlockItemSummary>>,
7243 tonic::Status,
7244 > {
7245 self.inner
7246 .ready()
7247 .await
7248 .map_err(|e| {
7249 tonic::Status::unknown(
7250 format!("Service was not ready: {}", e.into()),
7251 )
7252 })?;
7253 let codec = tonic::codec::ProstCodec::default();
7254 let path = http::uri::PathAndQuery::from_static(
7255 "/concordium.v2.Queries/GetBlockTransactionEvents",
7256 );
7257 let mut req = request.into_request();
7258 req.extensions_mut()
7259 .insert(
7260 GrpcMethod::new("concordium.v2.Queries", "GetBlockTransactionEvents"),
7261 );
7262 self.inner.server_streaming(req, path, codec).await
7263 }
7264 pub async fn get_block_special_events(
7269 &mut self,
7270 request: impl tonic::IntoRequest<super::BlockHashInput>,
7271 ) -> std::result::Result<
7272 tonic::Response<tonic::codec::Streaming<super::BlockSpecialEvent>>,
7273 tonic::Status,
7274 > {
7275 self.inner
7276 .ready()
7277 .await
7278 .map_err(|e| {
7279 tonic::Status::unknown(
7280 format!("Service was not ready: {}", e.into()),
7281 )
7282 })?;
7283 let codec = tonic::codec::ProstCodec::default();
7284 let path = http::uri::PathAndQuery::from_static(
7285 "/concordium.v2.Queries/GetBlockSpecialEvents",
7286 );
7287 let mut req = request.into_request();
7288 req.extensions_mut()
7289 .insert(
7290 GrpcMethod::new("concordium.v2.Queries", "GetBlockSpecialEvents"),
7291 );
7292 self.inner.server_streaming(req, path, codec).await
7293 }
7294 pub async fn get_block_pending_updates(
7297 &mut self,
7298 request: impl tonic::IntoRequest<super::BlockHashInput>,
7299 ) -> std::result::Result<
7300 tonic::Response<tonic::codec::Streaming<super::PendingUpdate>>,
7301 tonic::Status,
7302 > {
7303 self.inner
7304 .ready()
7305 .await
7306 .map_err(|e| {
7307 tonic::Status::unknown(
7308 format!("Service was not ready: {}", e.into()),
7309 )
7310 })?;
7311 let codec = tonic::codec::ProstCodec::default();
7312 let path = http::uri::PathAndQuery::from_static(
7313 "/concordium.v2.Queries/GetBlockPendingUpdates",
7314 );
7315 let mut req = request.into_request();
7316 req.extensions_mut()
7317 .insert(
7318 GrpcMethod::new("concordium.v2.Queries", "GetBlockPendingUpdates"),
7319 );
7320 self.inner.server_streaming(req, path, codec).await
7321 }
7322 pub async fn get_next_update_sequence_numbers(
7324 &mut self,
7325 request: impl tonic::IntoRequest<super::BlockHashInput>,
7326 ) -> std::result::Result<
7327 tonic::Response<super::NextUpdateSequenceNumbers>,
7328 tonic::Status,
7329 > {
7330 self.inner
7331 .ready()
7332 .await
7333 .map_err(|e| {
7334 tonic::Status::unknown(
7335 format!("Service was not ready: {}", e.into()),
7336 )
7337 })?;
7338 let codec = tonic::codec::ProstCodec::default();
7339 let path = http::uri::PathAndQuery::from_static(
7340 "/concordium.v2.Queries/GetNextUpdateSequenceNumbers",
7341 );
7342 let mut req = request.into_request();
7343 req.extensions_mut()
7344 .insert(
7345 GrpcMethod::new(
7346 "concordium.v2.Queries",
7347 "GetNextUpdateSequenceNumbers",
7348 ),
7349 );
7350 self.inner.unary(req, path, codec).await
7351 }
7352 pub async fn get_scheduled_release_accounts(
7356 &mut self,
7357 request: impl tonic::IntoRequest<super::BlockHashInput>,
7358 ) -> std::result::Result<
7359 tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
7360 tonic::Status,
7361 > {
7362 self.inner
7363 .ready()
7364 .await
7365 .map_err(|e| {
7366 tonic::Status::unknown(
7367 format!("Service was not ready: {}", e.into()),
7368 )
7369 })?;
7370 let codec = tonic::codec::ProstCodec::default();
7371 let path = http::uri::PathAndQuery::from_static(
7372 "/concordium.v2.Queries/GetScheduledReleaseAccounts",
7373 );
7374 let mut req = request.into_request();
7375 req.extensions_mut()
7376 .insert(
7377 GrpcMethod::new(
7378 "concordium.v2.Queries",
7379 "GetScheduledReleaseAccounts",
7380 ),
7381 );
7382 self.inner.server_streaming(req, path, codec).await
7383 }
7384 pub async fn get_cooldown_accounts(
7389 &mut self,
7390 request: impl tonic::IntoRequest<super::BlockHashInput>,
7391 ) -> std::result::Result<
7392 tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
7393 tonic::Status,
7394 > {
7395 self.inner
7396 .ready()
7397 .await
7398 .map_err(|e| {
7399 tonic::Status::unknown(
7400 format!("Service was not ready: {}", e.into()),
7401 )
7402 })?;
7403 let codec = tonic::codec::ProstCodec::default();
7404 let path = http::uri::PathAndQuery::from_static(
7405 "/concordium.v2.Queries/GetCooldownAccounts",
7406 );
7407 let mut req = request.into_request();
7408 req.extensions_mut()
7409 .insert(GrpcMethod::new("concordium.v2.Queries", "GetCooldownAccounts"));
7410 self.inner.server_streaming(req, path, codec).await
7411 }
7412 pub async fn get_pre_cooldown_accounts(
7416 &mut self,
7417 request: impl tonic::IntoRequest<super::BlockHashInput>,
7418 ) -> std::result::Result<
7419 tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
7420 tonic::Status,
7421 > {
7422 self.inner
7423 .ready()
7424 .await
7425 .map_err(|e| {
7426 tonic::Status::unknown(
7427 format!("Service was not ready: {}", e.into()),
7428 )
7429 })?;
7430 let codec = tonic::codec::ProstCodec::default();
7431 let path = http::uri::PathAndQuery::from_static(
7432 "/concordium.v2.Queries/GetPreCooldownAccounts",
7433 );
7434 let mut req = request.into_request();
7435 req.extensions_mut()
7436 .insert(
7437 GrpcMethod::new("concordium.v2.Queries", "GetPreCooldownAccounts"),
7438 );
7439 self.inner.server_streaming(req, path, codec).await
7440 }
7441 pub async fn get_pre_pre_cooldown_accounts(
7445 &mut self,
7446 request: impl tonic::IntoRequest<super::BlockHashInput>,
7447 ) -> std::result::Result<
7448 tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
7449 tonic::Status,
7450 > {
7451 self.inner
7452 .ready()
7453 .await
7454 .map_err(|e| {
7455 tonic::Status::unknown(
7456 format!("Service was not ready: {}", e.into()),
7457 )
7458 })?;
7459 let codec = tonic::codec::ProstCodec::default();
7460 let path = http::uri::PathAndQuery::from_static(
7461 "/concordium.v2.Queries/GetPrePreCooldownAccounts",
7462 );
7463 let mut req = request.into_request();
7464 req.extensions_mut()
7465 .insert(
7466 GrpcMethod::new("concordium.v2.Queries", "GetPrePreCooldownAccounts"),
7467 );
7468 self.inner.server_streaming(req, path, codec).await
7469 }
7470 pub async fn get_baker_earliest_win_time(
7485 &mut self,
7486 request: impl tonic::IntoRequest<super::BakerId>,
7487 ) -> std::result::Result<tonic::Response<super::Timestamp>, tonic::Status> {
7488 self.inner
7489 .ready()
7490 .await
7491 .map_err(|e| {
7492 tonic::Status::unknown(
7493 format!("Service was not ready: {}", e.into()),
7494 )
7495 })?;
7496 let codec = tonic::codec::ProstCodec::default();
7497 let path = http::uri::PathAndQuery::from_static(
7498 "/concordium.v2.Queries/GetBakerEarliestWinTime",
7499 );
7500 let mut req = request.into_request();
7501 req.extensions_mut()
7502 .insert(
7503 GrpcMethod::new("concordium.v2.Queries", "GetBakerEarliestWinTime"),
7504 );
7505 self.inner.unary(req, path, codec).await
7506 }
7507 pub async fn shutdown(
7510 &mut self,
7511 request: impl tonic::IntoRequest<super::Empty>,
7512 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7513 self.inner
7514 .ready()
7515 .await
7516 .map_err(|e| {
7517 tonic::Status::unknown(
7518 format!("Service was not ready: {}", e.into()),
7519 )
7520 })?;
7521 let codec = tonic::codec::ProstCodec::default();
7522 let path = http::uri::PathAndQuery::from_static(
7523 "/concordium.v2.Queries/Shutdown",
7524 );
7525 let mut req = request.into_request();
7526 req.extensions_mut()
7527 .insert(GrpcMethod::new("concordium.v2.Queries", "Shutdown"));
7528 self.inner.unary(req, path, codec).await
7529 }
7530 pub async fn peer_connect(
7537 &mut self,
7538 request: impl tonic::IntoRequest<super::IpSocketAddress>,
7539 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7540 self.inner
7541 .ready()
7542 .await
7543 .map_err(|e| {
7544 tonic::Status::unknown(
7545 format!("Service was not ready: {}", e.into()),
7546 )
7547 })?;
7548 let codec = tonic::codec::ProstCodec::default();
7549 let path = http::uri::PathAndQuery::from_static(
7550 "/concordium.v2.Queries/PeerConnect",
7551 );
7552 let mut req = request.into_request();
7553 req.extensions_mut()
7554 .insert(GrpcMethod::new("concordium.v2.Queries", "PeerConnect"));
7555 self.inner.unary(req, path, codec).await
7556 }
7557 pub async fn peer_disconnect(
7561 &mut self,
7562 request: impl tonic::IntoRequest<super::IpSocketAddress>,
7563 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7564 self.inner
7565 .ready()
7566 .await
7567 .map_err(|e| {
7568 tonic::Status::unknown(
7569 format!("Service was not ready: {}", e.into()),
7570 )
7571 })?;
7572 let codec = tonic::codec::ProstCodec::default();
7573 let path = http::uri::PathAndQuery::from_static(
7574 "/concordium.v2.Queries/PeerDisconnect",
7575 );
7576 let mut req = request.into_request();
7577 req.extensions_mut()
7578 .insert(GrpcMethod::new("concordium.v2.Queries", "PeerDisconnect"));
7579 self.inner.unary(req, path, codec).await
7580 }
7581 pub async fn get_banned_peers(
7583 &mut self,
7584 request: impl tonic::IntoRequest<super::Empty>,
7585 ) -> std::result::Result<tonic::Response<super::BannedPeers>, tonic::Status> {
7586 self.inner
7587 .ready()
7588 .await
7589 .map_err(|e| {
7590 tonic::Status::unknown(
7591 format!("Service was not ready: {}", e.into()),
7592 )
7593 })?;
7594 let codec = tonic::codec::ProstCodec::default();
7595 let path = http::uri::PathAndQuery::from_static(
7596 "/concordium.v2.Queries/GetBannedPeers",
7597 );
7598 let mut req = request.into_request();
7599 req.extensions_mut()
7600 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBannedPeers"));
7601 self.inner.unary(req, path, codec).await
7602 }
7603 pub async fn ban_peer(
7606 &mut self,
7607 request: impl tonic::IntoRequest<super::PeerToBan>,
7608 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7609 self.inner
7610 .ready()
7611 .await
7612 .map_err(|e| {
7613 tonic::Status::unknown(
7614 format!("Service was not ready: {}", e.into()),
7615 )
7616 })?;
7617 let codec = tonic::codec::ProstCodec::default();
7618 let path = http::uri::PathAndQuery::from_static(
7619 "/concordium.v2.Queries/BanPeer",
7620 );
7621 let mut req = request.into_request();
7622 req.extensions_mut()
7623 .insert(GrpcMethod::new("concordium.v2.Queries", "BanPeer"));
7624 self.inner.unary(req, path, codec).await
7625 }
7626 pub async fn unban_peer(
7629 &mut self,
7630 request: impl tonic::IntoRequest<super::BannedPeer>,
7631 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7632 self.inner
7633 .ready()
7634 .await
7635 .map_err(|e| {
7636 tonic::Status::unknown(
7637 format!("Service was not ready: {}", e.into()),
7638 )
7639 })?;
7640 let codec = tonic::codec::ProstCodec::default();
7641 let path = http::uri::PathAndQuery::from_static(
7642 "/concordium.v2.Queries/UnbanPeer",
7643 );
7644 let mut req = request.into_request();
7645 req.extensions_mut()
7646 .insert(GrpcMethod::new("concordium.v2.Queries", "UnbanPeer"));
7647 self.inner.unary(req, path, codec).await
7648 }
7649 pub async fn dump_start(
7653 &mut self,
7654 request: impl tonic::IntoRequest<super::DumpRequest>,
7655 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7656 self.inner
7657 .ready()
7658 .await
7659 .map_err(|e| {
7660 tonic::Status::unknown(
7661 format!("Service was not ready: {}", e.into()),
7662 )
7663 })?;
7664 let codec = tonic::codec::ProstCodec::default();
7665 let path = http::uri::PathAndQuery::from_static(
7666 "/concordium.v2.Queries/DumpStart",
7667 );
7668 let mut req = request.into_request();
7669 req.extensions_mut()
7670 .insert(GrpcMethod::new("concordium.v2.Queries", "DumpStart"));
7671 self.inner.unary(req, path, codec).await
7672 }
7673 pub async fn dump_stop(
7677 &mut self,
7678 request: impl tonic::IntoRequest<super::Empty>,
7679 ) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
7680 self.inner
7681 .ready()
7682 .await
7683 .map_err(|e| {
7684 tonic::Status::unknown(
7685 format!("Service was not ready: {}", e.into()),
7686 )
7687 })?;
7688 let codec = tonic::codec::ProstCodec::default();
7689 let path = http::uri::PathAndQuery::from_static(
7690 "/concordium.v2.Queries/DumpStop",
7691 );
7692 let mut req = request.into_request();
7693 req.extensions_mut()
7694 .insert(GrpcMethod::new("concordium.v2.Queries", "DumpStop"));
7695 self.inner.unary(req, path, codec).await
7696 }
7697 pub async fn get_peers_info(
7700 &mut self,
7701 request: impl tonic::IntoRequest<super::Empty>,
7702 ) -> std::result::Result<tonic::Response<super::PeersInfo>, tonic::Status> {
7703 self.inner
7704 .ready()
7705 .await
7706 .map_err(|e| {
7707 tonic::Status::unknown(
7708 format!("Service was not ready: {}", e.into()),
7709 )
7710 })?;
7711 let codec = tonic::codec::ProstCodec::default();
7712 let path = http::uri::PathAndQuery::from_static(
7713 "/concordium.v2.Queries/GetPeersInfo",
7714 );
7715 let mut req = request.into_request();
7716 req.extensions_mut()
7717 .insert(GrpcMethod::new("concordium.v2.Queries", "GetPeersInfo"));
7718 self.inner.unary(req, path, codec).await
7719 }
7720 pub async fn get_node_info(
7728 &mut self,
7729 request: impl tonic::IntoRequest<super::Empty>,
7730 ) -> std::result::Result<tonic::Response<super::NodeInfo>, tonic::Status> {
7731 self.inner
7732 .ready()
7733 .await
7734 .map_err(|e| {
7735 tonic::Status::unknown(
7736 format!("Service was not ready: {}", e.into()),
7737 )
7738 })?;
7739 let codec = tonic::codec::ProstCodec::default();
7740 let path = http::uri::PathAndQuery::from_static(
7741 "/concordium.v2.Queries/GetNodeInfo",
7742 );
7743 let mut req = request.into_request();
7744 req.extensions_mut()
7745 .insert(GrpcMethod::new("concordium.v2.Queries", "GetNodeInfo"));
7746 self.inner.unary(req, path, codec).await
7747 }
7748 pub async fn send_block_item(
7757 &mut self,
7758 request: impl tonic::IntoRequest<super::SendBlockItemRequest>,
7759 ) -> std::result::Result<
7760 tonic::Response<super::TransactionHash>,
7761 tonic::Status,
7762 > {
7763 self.inner
7764 .ready()
7765 .await
7766 .map_err(|e| {
7767 tonic::Status::unknown(
7768 format!("Service was not ready: {}", e.into()),
7769 )
7770 })?;
7771 let codec = tonic::codec::ProstCodec::default();
7772 let path = http::uri::PathAndQuery::from_static(
7773 "/concordium.v2.Queries/SendBlockItem",
7774 );
7775 let mut req = request.into_request();
7776 req.extensions_mut()
7777 .insert(GrpcMethod::new("concordium.v2.Queries", "SendBlockItem"));
7778 self.inner.unary(req, path, codec).await
7779 }
7780 pub async fn get_account_transaction_sign_hash(
7788 &mut self,
7789 request: impl tonic::IntoRequest<super::PreAccountTransaction>,
7790 ) -> std::result::Result<
7791 tonic::Response<super::AccountTransactionSignHash>,
7792 tonic::Status,
7793 > {
7794 self.inner
7795 .ready()
7796 .await
7797 .map_err(|e| {
7798 tonic::Status::unknown(
7799 format!("Service was not ready: {}", e.into()),
7800 )
7801 })?;
7802 let codec = tonic::codec::ProstCodec::default();
7803 let path = http::uri::PathAndQuery::from_static(
7804 "/concordium.v2.Queries/GetAccountTransactionSignHash",
7805 );
7806 let mut req = request.into_request();
7807 req.extensions_mut()
7808 .insert(
7809 GrpcMethod::new(
7810 "concordium.v2.Queries",
7811 "GetAccountTransactionSignHash",
7812 ),
7813 );
7814 self.inner.unary(req, path, codec).await
7815 }
7816 pub async fn get_account_transaction_v1_sign_hash(
7825 &mut self,
7826 request: impl tonic::IntoRequest<super::PreAccountTransactionV1>,
7827 ) -> std::result::Result<
7828 tonic::Response<super::AccountTransactionSignHash>,
7829 tonic::Status,
7830 > {
7831 self.inner
7832 .ready()
7833 .await
7834 .map_err(|e| {
7835 tonic::Status::unknown(
7836 format!("Service was not ready: {}", e.into()),
7837 )
7838 })?;
7839 let codec = tonic::codec::ProstCodec::default();
7840 let path = http::uri::PathAndQuery::from_static(
7841 "/concordium.v2.Queries/GetAccountTransactionV1SignHash",
7842 );
7843 let mut req = request.into_request();
7844 req.extensions_mut()
7845 .insert(
7846 GrpcMethod::new(
7847 "concordium.v2.Queries",
7848 "GetAccountTransactionV1SignHash",
7849 ),
7850 );
7851 self.inner.unary(req, path, codec).await
7852 }
7853 pub async fn get_block_chain_parameters(
7855 &mut self,
7856 request: impl tonic::IntoRequest<super::BlockHashInput>,
7857 ) -> std::result::Result<
7858 tonic::Response<super::ChainParameters>,
7859 tonic::Status,
7860 > {
7861 self.inner
7862 .ready()
7863 .await
7864 .map_err(|e| {
7865 tonic::Status::unknown(
7866 format!("Service was not ready: {}", e.into()),
7867 )
7868 })?;
7869 let codec = tonic::codec::ProstCodec::default();
7870 let path = http::uri::PathAndQuery::from_static(
7871 "/concordium.v2.Queries/GetBlockChainParameters",
7872 );
7873 let mut req = request.into_request();
7874 req.extensions_mut()
7875 .insert(
7876 GrpcMethod::new("concordium.v2.Queries", "GetBlockChainParameters"),
7877 );
7878 self.inner.unary(req, path, codec).await
7879 }
7880 pub async fn get_block_finalization_summary(
7882 &mut self,
7883 request: impl tonic::IntoRequest<super::BlockHashInput>,
7884 ) -> std::result::Result<
7885 tonic::Response<super::BlockFinalizationSummary>,
7886 tonic::Status,
7887 > {
7888 self.inner
7889 .ready()
7890 .await
7891 .map_err(|e| {
7892 tonic::Status::unknown(
7893 format!("Service was not ready: {}", e.into()),
7894 )
7895 })?;
7896 let codec = tonic::codec::ProstCodec::default();
7897 let path = http::uri::PathAndQuery::from_static(
7898 "/concordium.v2.Queries/GetBlockFinalizationSummary",
7899 );
7900 let mut req = request.into_request();
7901 req.extensions_mut()
7902 .insert(
7903 GrpcMethod::new(
7904 "concordium.v2.Queries",
7905 "GetBlockFinalizationSummary",
7906 ),
7907 );
7908 self.inner.unary(req, path, codec).await
7909 }
7910 pub async fn get_block_items(
7912 &mut self,
7913 request: impl tonic::IntoRequest<super::BlockHashInput>,
7914 ) -> std::result::Result<
7915 tonic::Response<tonic::codec::Streaming<super::BlockItem>>,
7916 tonic::Status,
7917 > {
7918 self.inner
7919 .ready()
7920 .await
7921 .map_err(|e| {
7922 tonic::Status::unknown(
7923 format!("Service was not ready: {}", e.into()),
7924 )
7925 })?;
7926 let codec = tonic::codec::ProstCodec::default();
7927 let path = http::uri::PathAndQuery::from_static(
7928 "/concordium.v2.Queries/GetBlockItems",
7929 );
7930 let mut req = request.into_request();
7931 req.extensions_mut()
7932 .insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItems"));
7933 self.inner.server_streaming(req, path, codec).await
7934 }
7935 pub async fn get_bakers_reward_period(
7939 &mut self,
7940 request: impl tonic::IntoRequest<super::BlockHashInput>,
7941 ) -> std::result::Result<
7942 tonic::Response<tonic::codec::Streaming<super::BakerRewardPeriodInfo>>,
7943 tonic::Status,
7944 > {
7945 self.inner
7946 .ready()
7947 .await
7948 .map_err(|e| {
7949 tonic::Status::unknown(
7950 format!("Service was not ready: {}", e.into()),
7951 )
7952 })?;
7953 let codec = tonic::codec::ProstCodec::default();
7954 let path = http::uri::PathAndQuery::from_static(
7955 "/concordium.v2.Queries/GetBakersRewardPeriod",
7956 );
7957 let mut req = request.into_request();
7958 req.extensions_mut()
7959 .insert(
7960 GrpcMethod::new("concordium.v2.Queries", "GetBakersRewardPeriod"),
7961 );
7962 self.inner.server_streaming(req, path, codec).await
7963 }
7964 pub async fn get_block_certificates(
7971 &mut self,
7972 request: impl tonic::IntoRequest<super::BlockHashInput>,
7973 ) -> std::result::Result<
7974 tonic::Response<super::BlockCertificates>,
7975 tonic::Status,
7976 > {
7977 self.inner
7978 .ready()
7979 .await
7980 .map_err(|e| {
7981 tonic::Status::unknown(
7982 format!("Service was not ready: {}", e.into()),
7983 )
7984 })?;
7985 let codec = tonic::codec::ProstCodec::default();
7986 let path = http::uri::PathAndQuery::from_static(
7987 "/concordium.v2.Queries/GetBlockCertificates",
7988 );
7989 let mut req = request.into_request();
7990 req.extensions_mut()
7991 .insert(
7992 GrpcMethod::new("concordium.v2.Queries", "GetBlockCertificates"),
7993 );
7994 self.inner.unary(req, path, codec).await
7995 }
7996 pub async fn get_winning_bakers_epoch(
8012 &mut self,
8013 request: impl tonic::IntoRequest<super::EpochRequest>,
8014 ) -> std::result::Result<
8015 tonic::Response<tonic::codec::Streaming<super::WinningBaker>>,
8016 tonic::Status,
8017 > {
8018 self.inner
8019 .ready()
8020 .await
8021 .map_err(|e| {
8022 tonic::Status::unknown(
8023 format!("Service was not ready: {}", e.into()),
8024 )
8025 })?;
8026 let codec = tonic::codec::ProstCodec::default();
8027 let path = http::uri::PathAndQuery::from_static(
8028 "/concordium.v2.Queries/GetWinningBakersEpoch",
8029 );
8030 let mut req = request.into_request();
8031 req.extensions_mut()
8032 .insert(
8033 GrpcMethod::new("concordium.v2.Queries", "GetWinningBakersEpoch"),
8034 );
8035 self.inner.server_streaming(req, path, codec).await
8036 }
8037 pub async fn get_first_block_epoch(
8048 &mut self,
8049 request: impl tonic::IntoRequest<super::EpochRequest>,
8050 ) -> std::result::Result<tonic::Response<super::BlockHash>, tonic::Status> {
8051 self.inner
8052 .ready()
8053 .await
8054 .map_err(|e| {
8055 tonic::Status::unknown(
8056 format!("Service was not ready: {}", e.into()),
8057 )
8058 })?;
8059 let codec = tonic::codec::ProstCodec::default();
8060 let path = http::uri::PathAndQuery::from_static(
8061 "/concordium.v2.Queries/GetFirstBlockEpoch",
8062 );
8063 let mut req = request.into_request();
8064 req.extensions_mut()
8065 .insert(GrpcMethod::new("concordium.v2.Queries", "GetFirstBlockEpoch"));
8066 self.inner.unary(req, path, codec).await
8067 }
8068 pub async fn get_consensus_detailed_status(
8075 &mut self,
8076 request: impl tonic::IntoRequest<super::ConsensusDetailedStatusQuery>,
8077 ) -> std::result::Result<
8078 tonic::Response<super::ConsensusDetailedStatus>,
8079 tonic::Status,
8080 > {
8081 self.inner
8082 .ready()
8083 .await
8084 .map_err(|e| {
8085 tonic::Status::unknown(
8086 format!("Service was not ready: {}", e.into()),
8087 )
8088 })?;
8089 let codec = tonic::codec::ProstCodec::default();
8090 let path = http::uri::PathAndQuery::from_static(
8091 "/concordium.v2.Queries/GetConsensusDetailedStatus",
8092 );
8093 let mut req = request.into_request();
8094 req.extensions_mut()
8095 .insert(
8096 GrpcMethod::new(
8097 "concordium.v2.Queries",
8098 "GetConsensusDetailedStatus",
8099 ),
8100 );
8101 self.inner.unary(req, path, codec).await
8102 }
8103 pub async fn dry_run(
8132 &mut self,
8133 request: impl tonic::IntoStreamingRequest<Message = super::DryRunRequest>,
8134 ) -> std::result::Result<
8135 tonic::Response<tonic::codec::Streaming<super::DryRunResponse>>,
8136 tonic::Status,
8137 > {
8138 self.inner
8139 .ready()
8140 .await
8141 .map_err(|e| {
8142 tonic::Status::unknown(
8143 format!("Service was not ready: {}", e.into()),
8144 )
8145 })?;
8146 let codec = tonic::codec::ProstCodec::default();
8147 let path = http::uri::PathAndQuery::from_static(
8148 "/concordium.v2.Queries/DryRun",
8149 );
8150 let mut req = request.into_streaming_request();
8151 req.extensions_mut()
8152 .insert(GrpcMethod::new("concordium.v2.Queries", "DryRun"));
8153 self.inner.streaming(req, path, codec).await
8154 }
8155 }
8156}