#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountAddress {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Memo {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Empty {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockHash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Sha256Hash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionHash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StateHash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AbsoluteBlockHeight {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BlockHeight {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerId {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AccountIndex {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleRef {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VersionedModuleSource {
#[prost(oneof = "versioned_module_source::Module", tags = "1, 2")]
pub module: ::core::option::Option<versioned_module_source::Module>,
}
pub mod versioned_module_source {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleSourceV0 {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleSourceV1 {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Module {
#[prost(message, tag = "1")]
V0(ModuleSourceV0),
#[prost(message, tag = "2")]
V1(ModuleSourceV1),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Timestamp {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Release {
#[prost(message, optional, tag = "1")]
pub timestamp: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, repeated, tag = "3")]
pub transactions: ::prost::alloc::vec::Vec<TransactionHash>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NewRelease {
#[prost(message, optional, tag = "1")]
pub timestamp: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseSchedule {
#[prost(message, optional, tag = "1")]
pub total: ::core::option::Option<Amount>,
#[prost(message, repeated, tag = "2")]
pub schedules: ::prost::alloc::vec::Vec<Release>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedAmount {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedBalance {
#[prost(message, optional, tag = "1")]
pub self_amount: ::core::option::Option<EncryptedAmount>,
#[prost(uint64, tag = "2")]
pub start_index: u64,
#[prost(message, optional, tag = "3")]
pub aggregated_amount: ::core::option::Option<EncryptedAmount>,
#[prost(uint32, optional, tag = "4")]
pub num_aggregated: ::core::option::Option<u32>,
#[prost(message, repeated, tag = "5")]
pub incoming_amounts: ::prost::alloc::vec::Vec<EncryptedAmount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationTarget {
#[prost(oneof = "delegation_target::Target", tags = "1, 2")]
pub target: ::core::option::Option<delegation_target::Target>,
}
pub mod delegation_target {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Target {
#[prost(message, tag = "1")]
Passive(super::Empty),
#[prost(message, tag = "2")]
Baker(super::BakerId),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerElectionVerifyKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerSignatureVerifyKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerAggregationVerifyKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerInfo {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "2")]
pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
#[prost(message, optional, tag = "3")]
pub signature_key: ::core::option::Option<BakerSignatureVerifyKey>,
#[prost(message, optional, tag = "4")]
pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StakePendingChange {
#[prost(oneof = "stake_pending_change::Change", tags = "1, 2")]
pub change: ::core::option::Option<stake_pending_change::Change>,
}
pub mod stake_pending_change {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Reduce {
#[prost(message, optional, tag = "1")]
pub new_stake: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub effective_time: ::core::option::Option<super::Timestamp>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Change {
#[prost(message, tag = "1")]
Reduce(Reduce),
#[prost(message, tag = "2")]
Remove(super::Timestamp),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AmountFraction {
#[prost(uint32, tag = "1")]
pub parts_per_hundred_thousand: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CommissionRates {
#[prost(message, optional, tag = "1")]
pub finalization: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub baking: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "3")]
pub transaction: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerPoolInfo {
#[prost(enumeration = "OpenStatus", tag = "1")]
pub open_status: i32,
#[prost(string, tag = "2")]
pub url: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub commission_rates: ::core::option::Option<CommissionRates>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountStakingInfo {
#[prost(oneof = "account_staking_info::StakingInfo", tags = "1, 2")]
pub staking_info: ::core::option::Option<account_staking_info::StakingInfo>,
}
pub mod account_staking_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Baker {
#[prost(message, optional, tag = "1")]
pub staked_amount: ::core::option::Option<super::Amount>,
#[prost(bool, tag = "2")]
pub restake_earnings: bool,
#[prost(message, optional, tag = "3")]
pub baker_info: ::core::option::Option<super::BakerInfo>,
#[prost(message, optional, tag = "4")]
pub pending_change: ::core::option::Option<super::StakePendingChange>,
#[prost(message, optional, tag = "5")]
pub pool_info: ::core::option::Option<super::BakerPoolInfo>,
#[prost(bool, tag = "6")]
pub is_suspended: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Delegator {
#[prost(message, optional, tag = "1")]
pub staked_amount: ::core::option::Option<super::Amount>,
#[prost(bool, tag = "2")]
pub restake_earnings: bool,
#[prost(message, optional, tag = "3")]
pub target: ::core::option::Option<super::DelegationTarget>,
#[prost(message, optional, tag = "4")]
pub pending_change: ::core::option::Option<super::StakePendingChange>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StakingInfo {
#[prost(message, tag = "1")]
Baker(Baker),
#[prost(message, tag = "2")]
Delegator(Delegator),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SequenceNumber {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateSequenceNumber {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Amount {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CredentialIndex {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SignatureThreshold {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AccountThreshold {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptionKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Address {
#[prost(oneof = "address::Type", tags = "1, 2")]
pub r#type: ::core::option::Option<address::Type>,
}
pub mod address {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(message, tag = "1")]
Account(super::AccountAddress),
#[prost(message, tag = "2")]
Contract(super::ContractAddress),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountVerifyKey {
#[prost(oneof = "account_verify_key::Key", tags = "1")]
pub key: ::core::option::Option<account_verify_key::Key>,
}
pub mod account_verify_key {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Key {
#[prost(bytes, tag = "1")]
Ed25519Key(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CredentialPublicKeys {
#[prost(map = "uint32, message", tag = "1")]
pub keys: ::std::collections::HashMap<u32, AccountVerifyKey>,
#[prost(message, optional, tag = "2")]
pub threshold: ::core::option::Option<SignatureThreshold>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CredentialRegistrationId {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IdentityProviderIdentity {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YearMonth {
#[prost(uint32, tag = "1")]
pub year: u32,
#[prost(uint32, tag = "2")]
pub month: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Policy {
#[prost(message, optional, tag = "1")]
pub created_at: ::core::option::Option<YearMonth>,
#[prost(message, optional, tag = "2")]
pub valid_to: ::core::option::Option<YearMonth>,
#[prost(map = "uint32, bytes", tag = "3")]
pub attributes: ::std::collections::HashMap<u32, ::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialCredentialValues {
#[prost(message, optional, tag = "1")]
pub keys: ::core::option::Option<CredentialPublicKeys>,
#[prost(message, optional, tag = "2")]
pub cred_id: ::core::option::Option<CredentialRegistrationId>,
#[prost(message, optional, tag = "3")]
pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
#[prost(message, optional, tag = "4")]
pub policy: ::core::option::Option<Policy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainArData {
#[prost(bytes = "vec", tag = "1")]
pub enc_id_cred_pub_share: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArThreshold {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Commitment {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CredentialCommitments {
#[prost(message, optional, tag = "1")]
pub prf: ::core::option::Option<Commitment>,
#[prost(message, optional, tag = "2")]
pub cred_counter: ::core::option::Option<Commitment>,
#[prost(message, optional, tag = "3")]
pub max_accounts: ::core::option::Option<Commitment>,
#[prost(map = "uint32, message", tag = "4")]
pub attributes: ::std::collections::HashMap<u32, Commitment>,
#[prost(message, repeated, tag = "5")]
pub id_cred_sec_sharing_coeff: ::prost::alloc::vec::Vec<Commitment>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NormalCredentialValues {
#[prost(message, optional, tag = "1")]
pub keys: ::core::option::Option<CredentialPublicKeys>,
#[prost(message, optional, tag = "2")]
pub cred_id: ::core::option::Option<CredentialRegistrationId>,
#[prost(message, optional, tag = "3")]
pub ip_id: ::core::option::Option<IdentityProviderIdentity>,
#[prost(message, optional, tag = "4")]
pub policy: ::core::option::Option<Policy>,
#[prost(message, optional, tag = "5")]
pub ar_threshold: ::core::option::Option<ArThreshold>,
#[prost(map = "uint32, message", tag = "6")]
pub ar_data: ::std::collections::HashMap<u32, ChainArData>,
#[prost(message, optional, tag = "7")]
pub commitments: ::core::option::Option<CredentialCommitments>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountCredential {
#[prost(oneof = "account_credential::CredentialValues", tags = "1, 2")]
pub credential_values: ::core::option::Option<account_credential::CredentialValues>,
}
pub mod account_credential {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CredentialValues {
#[prost(message, tag = "1")]
Initial(super::InitialCredentialValues),
#[prost(message, tag = "2")]
Normal(super::NormalCredentialValues),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Cooldown {
#[prost(message, optional, tag = "1")]
pub end_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<Amount>,
#[prost(enumeration = "cooldown::CooldownStatus", tag = "3")]
pub status: i32,
}
pub mod cooldown {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CooldownStatus {
Cooldown = 0,
PreCooldown = 1,
PrePreCooldown = 2,
}
impl CooldownStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Cooldown => "COOLDOWN",
Self::PreCooldown => "PRE_COOLDOWN",
Self::PrePreCooldown => "PRE_PRE_COOLDOWN",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"COOLDOWN" => Some(Self::Cooldown),
"PRE_COOLDOWN" => Some(Self::PreCooldown),
"PRE_PRE_COOLDOWN" => Some(Self::PrePreCooldown),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TokenInfo {
#[prost(message, optional, tag = "1")]
pub token_id: ::core::option::Option<plt::TokenId>,
#[prost(message, optional, tag = "2")]
pub token_state: ::core::option::Option<plt::TokenState>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountInfo {
#[prost(message, optional, tag = "1")]
pub sequence_number: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "3")]
pub schedule: ::core::option::Option<ReleaseSchedule>,
#[prost(map = "uint32, message", tag = "4")]
pub creds: ::std::collections::HashMap<u32, AccountCredential>,
#[prost(message, optional, tag = "5")]
pub threshold: ::core::option::Option<AccountThreshold>,
#[prost(message, optional, tag = "6")]
pub encrypted_balance: ::core::option::Option<EncryptedBalance>,
#[prost(message, optional, tag = "7")]
pub encryption_key: ::core::option::Option<EncryptionKey>,
#[prost(message, optional, tag = "8")]
pub index: ::core::option::Option<AccountIndex>,
#[prost(message, optional, tag = "9")]
pub stake: ::core::option::Option<AccountStakingInfo>,
#[prost(message, optional, tag = "10")]
pub address: ::core::option::Option<AccountAddress>,
#[prost(message, repeated, tag = "11")]
pub cooldowns: ::prost::alloc::vec::Vec<Cooldown>,
#[prost(message, optional, tag = "12")]
pub available_balance: ::core::option::Option<Amount>,
#[prost(message, repeated, tag = "13")]
pub tokens: ::prost::alloc::vec::Vec<account_info::Token>,
}
pub mod account_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Token {
#[prost(message, optional, tag = "1")]
pub token_id: ::core::option::Option<super::plt::TokenId>,
#[prost(message, optional, tag = "2")]
pub token_account_state: ::core::option::Option<super::plt::TokenAccountState>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockHashInput {
#[prost(oneof = "block_hash_input::BlockHashInput", tags = "1, 2, 3, 4, 5")]
pub block_hash_input: ::core::option::Option<block_hash_input::BlockHashInput>,
}
pub mod block_hash_input {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RelativeHeight {
#[prost(message, optional, tag = "1")]
pub genesis_index: ::core::option::Option<super::GenesisIndex>,
#[prost(message, optional, tag = "2")]
pub height: ::core::option::Option<super::BlockHeight>,
#[prost(bool, tag = "3")]
pub restrict: bool,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum BlockHashInput {
#[prost(message, tag = "1")]
Best(super::Empty),
#[prost(message, tag = "2")]
LastFinal(super::Empty),
#[prost(message, tag = "3")]
Given(super::BlockHash),
#[prost(message, tag = "4")]
AbsoluteHeight(super::AbsoluteBlockHeight),
#[prost(message, tag = "5")]
RelativeHeight(RelativeHeight),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpochRequest {
#[prost(oneof = "epoch_request::EpochRequestInput", tags = "1, 2")]
pub epoch_request_input: ::core::option::Option<epoch_request::EpochRequestInput>,
}
pub mod epoch_request {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RelativeEpoch {
#[prost(message, optional, tag = "1")]
pub genesis_index: ::core::option::Option<super::GenesisIndex>,
#[prost(message, optional, tag = "2")]
pub epoch: ::core::option::Option<super::Epoch>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EpochRequestInput {
#[prost(message, tag = "1")]
RelativeEpoch(RelativeEpoch),
#[prost(message, tag = "2")]
BlockHash(super::BlockHashInput),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountIdentifierInput {
#[prost(
oneof = "account_identifier_input::AccountIdentifierInput",
tags = "1, 2, 3"
)]
pub account_identifier_input: ::core::option::Option<
account_identifier_input::AccountIdentifierInput,
>,
}
pub mod account_identifier_input {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AccountIdentifierInput {
#[prost(message, tag = "1")]
Address(super::AccountAddress),
#[prost(message, tag = "2")]
CredId(super::CredentialRegistrationId),
#[prost(message, tag = "3")]
AccountIndex(super::AccountIndex),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountInfoRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub account_identifier: ::core::option::Option<AccountIdentifierInput>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TokenInfoRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub token_id: ::core::option::Option<plt::TokenId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalizedBlockInfo {
#[prost(message, optional, tag = "1")]
pub hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub height: ::core::option::Option<AbsoluteBlockHeight>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AncestorsRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(uint64, tag = "2")]
pub amount: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleSourceRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub module_ref: ::core::option::Option<ModuleRef>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ContractAddress {
#[prost(uint64, tag = "1")]
pub index: u64,
#[prost(uint64, tag = "2")]
pub subindex: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceInfoRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<ContractAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceInfo {
#[prost(oneof = "instance_info::Version", tags = "1, 2")]
pub version: ::core::option::Option<instance_info::Version>,
}
pub mod instance_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct V0 {
#[prost(message, optional, tag = "1")]
pub model: ::core::option::Option<super::ContractStateV0>,
#[prost(message, optional, tag = "2")]
pub owner: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "3")]
pub amount: ::core::option::Option<super::Amount>,
#[prost(message, repeated, tag = "4")]
pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
#[prost(message, optional, tag = "5")]
pub name: ::core::option::Option<super::InitName>,
#[prost(message, optional, tag = "6")]
pub source_module: ::core::option::Option<super::ModuleRef>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct V1 {
#[prost(message, optional, tag = "2")]
pub owner: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "3")]
pub amount: ::core::option::Option<super::Amount>,
#[prost(message, repeated, tag = "4")]
pub methods: ::prost::alloc::vec::Vec<super::ReceiveName>,
#[prost(message, optional, tag = "5")]
pub name: ::core::option::Option<super::InitName>,
#[prost(message, optional, tag = "6")]
pub source_module: ::core::option::Option<super::ModuleRef>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Version {
#[prost(message, tag = "1")]
V0(V0),
#[prost(message, tag = "2")]
V1(V1),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceStateKvPair {
#[prost(bytes = "vec", tag = "1")]
pub key: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "2")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceStateLookupRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<ContractAddress>,
#[prost(bytes = "vec", tag = "3")]
pub key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceStateValueAtKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReceiveName {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitName {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parameter {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContractStateV0 {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockItemStatus {
#[prost(oneof = "block_item_status::Status", tags = "1, 2, 3")]
pub status: ::core::option::Option<block_item_status::Status>,
}
pub mod block_item_status {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Committed {
#[prost(message, repeated, tag = "1")]
pub outcomes: ::prost::alloc::vec::Vec<super::BlockItemSummaryInBlock>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Finalized {
#[prost(message, optional, tag = "1")]
pub outcome: ::core::option::Option<super::BlockItemSummaryInBlock>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Status {
#[prost(message, tag = "1")]
Received(super::Empty),
#[prost(message, tag = "2")]
Committed(Committed),
#[prost(message, tag = "3")]
Finalized(Finalized),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockItemSummaryInBlock {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub outcome: ::core::option::Option<BlockItemSummary>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Energy {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Slot {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NextAccountSequenceNumber {
#[prost(message, optional, tag = "1")]
pub sequence_number: ::core::option::Option<SequenceNumber>,
#[prost(bool, tag = "2")]
pub all_final: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Duration {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RejectReason {
#[prost(
oneof = "reject_reason::Reason",
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"
)]
pub reason: ::core::option::Option<reject_reason::Reason>,
}
pub mod reject_reason {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvalidInitMethod {
#[prost(message, optional, tag = "1")]
pub module_ref: ::core::option::Option<super::ModuleRef>,
#[prost(message, optional, tag = "2")]
pub init_name: ::core::option::Option<super::InitName>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvalidReceiveMethod {
#[prost(message, optional, tag = "1")]
pub module_ref: ::core::option::Option<super::ModuleRef>,
#[prost(message, optional, tag = "2")]
pub receive_name: ::core::option::Option<super::ReceiveName>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AmountTooLarge {
#[prost(message, optional, tag = "1")]
pub address: ::core::option::Option<super::Address>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RejectedInit {
#[prost(int32, tag = "1")]
pub reject_reason: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RejectedReceive {
#[prost(int32, tag = "1")]
pub reject_reason: i32,
#[prost(message, optional, tag = "2")]
pub contract_address: ::core::option::Option<super::ContractAddress>,
#[prost(message, optional, tag = "3")]
pub receive_name: ::core::option::Option<super::ReceiveName>,
#[prost(message, optional, tag = "4")]
pub parameter: ::core::option::Option<super::Parameter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DuplicateCredIds {
#[prost(message, repeated, tag = "1")]
pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NonExistentCredIds {
#[prost(message, repeated, tag = "1")]
pub ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Reason {
#[prost(message, tag = "1")]
ModuleNotWf(super::Empty),
#[prost(message, tag = "2")]
ModuleHashAlreadyExists(super::ModuleRef),
#[prost(message, tag = "3")]
InvalidAccountReference(super::AccountAddress),
#[prost(message, tag = "4")]
InvalidInitMethod(InvalidInitMethod),
#[prost(message, tag = "5")]
InvalidReceiveMethod(InvalidReceiveMethod),
#[prost(message, tag = "6")]
InvalidModuleReference(super::ModuleRef),
#[prost(message, tag = "7")]
InvalidContractAddress(super::ContractAddress),
#[prost(message, tag = "8")]
RuntimeFailure(super::Empty),
#[prost(message, tag = "9")]
AmountTooLarge(AmountTooLarge),
#[prost(message, tag = "10")]
SerializationFailure(super::Empty),
#[prost(message, tag = "11")]
OutOfEnergy(super::Empty),
#[prost(message, tag = "12")]
RejectedInit(RejectedInit),
#[prost(message, tag = "13")]
RejectedReceive(RejectedReceive),
#[prost(message, tag = "14")]
InvalidProof(super::Empty),
#[prost(message, tag = "15")]
AlreadyABaker(super::BakerId),
#[prost(message, tag = "16")]
NotABaker(super::AccountAddress),
#[prost(message, tag = "17")]
InsufficientBalanceForBakerStake(super::Empty),
#[prost(message, tag = "18")]
StakeUnderMinimumThresholdForBaking(super::Empty),
#[prost(message, tag = "19")]
BakerInCooldown(super::Empty),
#[prost(message, tag = "20")]
DuplicateAggregationKey(super::BakerAggregationVerifyKey),
#[prost(message, tag = "21")]
NonExistentCredentialId(super::Empty),
#[prost(message, tag = "22")]
KeyIndexAlreadyInUse(super::Empty),
#[prost(message, tag = "23")]
InvalidAccountThreshold(super::Empty),
#[prost(message, tag = "24")]
InvalidCredentialKeySignThreshold(super::Empty),
#[prost(message, tag = "25")]
InvalidEncryptedAmountTransferProof(super::Empty),
#[prost(message, tag = "26")]
InvalidTransferToPublicProof(super::Empty),
#[prost(message, tag = "27")]
EncryptedAmountSelfTransfer(super::AccountAddress),
#[prost(message, tag = "28")]
InvalidIndexOnEncryptedTransfer(super::Empty),
#[prost(message, tag = "29")]
ZeroScheduledAmount(super::Empty),
#[prost(message, tag = "30")]
NonIncreasingSchedule(super::Empty),
#[prost(message, tag = "31")]
FirstScheduledReleaseExpired(super::Empty),
#[prost(message, tag = "32")]
ScheduledSelfTransfer(super::AccountAddress),
#[prost(message, tag = "33")]
InvalidCredentials(super::Empty),
#[prost(message, tag = "34")]
DuplicateCredIds(DuplicateCredIds),
#[prost(message, tag = "35")]
NonExistentCredIds(NonExistentCredIds),
#[prost(message, tag = "36")]
RemoveFirstCredential(super::Empty),
#[prost(message, tag = "37")]
CredentialHolderDidNotSign(super::Empty),
#[prost(message, tag = "38")]
NotAllowedMultipleCredentials(super::Empty),
#[prost(message, tag = "39")]
NotAllowedToReceiveEncrypted(super::Empty),
#[prost(message, tag = "40")]
NotAllowedToHandleEncrypted(super::Empty),
#[prost(message, tag = "41")]
MissingBakerAddParameters(super::Empty),
#[prost(message, tag = "42")]
FinalizationRewardCommissionNotInRange(super::Empty),
#[prost(message, tag = "43")]
BakingRewardCommissionNotInRange(super::Empty),
#[prost(message, tag = "44")]
TransactionFeeCommissionNotInRange(super::Empty),
#[prost(message, tag = "45")]
AlreadyADelegator(super::Empty),
#[prost(message, tag = "46")]
InsufficientBalanceForDelegationStake(super::Empty),
#[prost(message, tag = "47")]
MissingDelegationAddParameters(super::Empty),
#[prost(message, tag = "48")]
InsufficientDelegationStake(super::Empty),
#[prost(message, tag = "49")]
DelegatorInCooldown(super::Empty),
#[prost(message, tag = "50")]
NotADelegator(super::AccountAddress),
#[prost(message, tag = "51")]
DelegationTargetNotABaker(super::BakerId),
#[prost(message, tag = "52")]
StakeOverMaximumThresholdForPool(super::Empty),
#[prost(message, tag = "53")]
PoolWouldBecomeOverDelegated(super::Empty),
#[prost(message, tag = "54")]
PoolClosed(super::Empty),
#[prost(message, tag = "55")]
NonExistentTokenId(super::plt::TokenId),
#[prost(message, tag = "56")]
TokenUpdateTransactionFailed(super::plt::TokenModuleRejectReason),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContractInitializedEvent {
#[prost(enumeration = "ContractVersion", tag = "1")]
pub contract_version: i32,
#[prost(message, optional, tag = "2")]
pub origin_ref: ::core::option::Option<ModuleRef>,
#[prost(message, optional, tag = "3")]
pub address: ::core::option::Option<ContractAddress>,
#[prost(message, optional, tag = "4")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub init_name: ::core::option::Option<InitName>,
#[prost(message, repeated, tag = "6")]
pub events: ::prost::alloc::vec::Vec<ContractEvent>,
#[prost(message, optional, tag = "7")]
pub parameter: ::core::option::Option<Parameter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContractEvent {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceUpdatedEvent {
#[prost(enumeration = "ContractVersion", tag = "1")]
pub contract_version: i32,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<ContractAddress>,
#[prost(message, optional, tag = "3")]
pub instigator: ::core::option::Option<Address>,
#[prost(message, optional, tag = "4")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub parameter: ::core::option::Option<Parameter>,
#[prost(message, optional, tag = "6")]
pub receive_name: ::core::option::Option<ReceiveName>,
#[prost(message, repeated, tag = "7")]
pub events: ::prost::alloc::vec::Vec<ContractEvent>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContractTraceElement {
#[prost(oneof = "contract_trace_element::Element", tags = "1, 2, 3, 4, 5")]
pub element: ::core::option::Option<contract_trace_element::Element>,
}
pub mod contract_trace_element {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Transferred {
#[prost(message, optional, tag = "1")]
pub sender: ::core::option::Option<super::ContractAddress>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub receiver: ::core::option::Option<super::AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interrupted {
#[prost(message, optional, tag = "1")]
pub address: ::core::option::Option<super::ContractAddress>,
#[prost(message, repeated, tag = "2")]
pub events: ::prost::alloc::vec::Vec<super::ContractEvent>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Resumed {
#[prost(message, optional, tag = "1")]
pub address: ::core::option::Option<super::ContractAddress>,
#[prost(bool, tag = "2")]
pub success: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Upgraded {
#[prost(message, optional, tag = "1")]
pub address: ::core::option::Option<super::ContractAddress>,
#[prost(message, optional, tag = "2")]
pub from: ::core::option::Option<super::ModuleRef>,
#[prost(message, optional, tag = "3")]
pub to: ::core::option::Option<super::ModuleRef>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Element {
#[prost(message, tag = "1")]
Updated(super::InstanceUpdatedEvent),
#[prost(message, tag = "2")]
Transferred(Transferred),
#[prost(message, tag = "3")]
Interrupted(Interrupted),
#[prost(message, tag = "4")]
Resumed(Resumed),
#[prost(message, tag = "5")]
Upgraded(Upgraded),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerKeysEvent {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "2")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "3")]
pub sign_key: ::core::option::Option<BakerSignatureVerifyKey>,
#[prost(message, optional, tag = "4")]
pub election_key: ::core::option::Option<BakerElectionVerifyKey>,
#[prost(message, optional, tag = "5")]
pub aggregation_key: ::core::option::Option<BakerAggregationVerifyKey>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerStakeUpdatedData {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "2")]
pub new_stake: ::core::option::Option<Amount>,
#[prost(bool, tag = "3")]
pub increased: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedAmountRemovedEvent {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub new_amount: ::core::option::Option<EncryptedAmount>,
#[prost(message, optional, tag = "3")]
pub input_amount: ::core::option::Option<EncryptedAmount>,
#[prost(uint64, tag = "4")]
pub up_to_index: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NewEncryptedAmountEvent {
#[prost(message, optional, tag = "1")]
pub receiver: ::core::option::Option<AccountAddress>,
#[prost(uint64, tag = "2")]
pub new_index: u64,
#[prost(message, optional, tag = "3")]
pub encrypted_amount: ::core::option::Option<EncryptedAmount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedSelfAmountAddedEvent {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub new_amount: ::core::option::Option<EncryptedAmount>,
#[prost(message, optional, tag = "3")]
pub amount: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisteredData {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerEvent {
#[prost(
oneof = "baker_event::Event",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14"
)]
pub event: ::core::option::Option<baker_event::Event>,
}
pub mod baker_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerAdded {
#[prost(message, optional, tag = "1")]
pub keys_event: ::core::option::Option<super::BakerKeysEvent>,
#[prost(message, optional, tag = "2")]
pub stake: ::core::option::Option<super::Amount>,
#[prost(bool, tag = "3")]
pub restake_earnings: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerStakeIncreased {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub new_stake: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerStakeDecreased {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub new_stake: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerRestakeEarningsUpdated {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(bool, tag = "2")]
pub restake_earnings: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerSetOpenStatus {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(enumeration = "super::OpenStatus", tag = "2")]
pub open_status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerSetMetadataUrl {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(string, tag = "2")]
pub url: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerSetTransactionFeeCommission {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub transaction_fee_commission: ::core::option::Option<super::AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerSetBakingRewardCommission {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub baking_reward_commission: ::core::option::Option<super::AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerSetFinalizationRewardCommission {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub finalization_reward_commission: ::core::option::Option<
super::AmountFraction,
>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationRemoved {
#[prost(message, optional, tag = "1")]
pub delegator_id: ::core::option::Option<super::DelegatorId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerSuspended {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerResumed {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Event {
#[prost(message, tag = "1")]
BakerAdded(BakerAdded),
#[prost(message, tag = "2")]
BakerRemoved(super::BakerId),
#[prost(message, tag = "3")]
BakerStakeIncreased(BakerStakeIncreased),
#[prost(message, tag = "4")]
BakerStakeDecreased(BakerStakeDecreased),
#[prost(message, tag = "5")]
BakerRestakeEarningsUpdated(BakerRestakeEarningsUpdated),
#[prost(message, tag = "6")]
BakerKeysUpdated(super::BakerKeysEvent),
#[prost(message, tag = "7")]
BakerSetOpenStatus(BakerSetOpenStatus),
#[prost(message, tag = "8")]
BakerSetMetadataUrl(BakerSetMetadataUrl),
#[prost(message, tag = "9")]
BakerSetTransactionFeeCommission(BakerSetTransactionFeeCommission),
#[prost(message, tag = "10")]
BakerSetBakingRewardCommission(BakerSetBakingRewardCommission),
#[prost(message, tag = "11")]
BakerSetFinalizationRewardCommission(BakerSetFinalizationRewardCommission),
#[prost(message, tag = "12")]
DelegationRemoved(DelegationRemoved),
#[prost(message, tag = "13")]
BakerSuspended(BakerSuspended),
#[prost(message, tag = "14")]
BakerResumed(BakerResumed),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegatorId {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<AccountIndex>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationEvent {
#[prost(oneof = "delegation_event::Event", tags = "1, 2, 3, 4, 5, 6, 7")]
pub event: ::core::option::Option<delegation_event::Event>,
}
pub mod delegation_event {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationStakeIncreased {
#[prost(message, optional, tag = "1")]
pub delegator_id: ::core::option::Option<super::DelegatorId>,
#[prost(message, optional, tag = "2")]
pub new_stake: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationStakeDecreased {
#[prost(message, optional, tag = "1")]
pub delegator_id: ::core::option::Option<super::DelegatorId>,
#[prost(message, optional, tag = "2")]
pub new_stake: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationSetRestakeEarnings {
#[prost(message, optional, tag = "1")]
pub delegator_id: ::core::option::Option<super::DelegatorId>,
#[prost(bool, tag = "2")]
pub restake_earnings: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelegationSetDelegationTarget {
#[prost(message, optional, tag = "1")]
pub delegator_id: ::core::option::Option<super::DelegatorId>,
#[prost(message, optional, tag = "2")]
pub delegation_target: ::core::option::Option<super::DelegationTarget>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerRemoved {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Event {
#[prost(message, tag = "1")]
DelegationStakeIncreased(DelegationStakeIncreased),
#[prost(message, tag = "2")]
DelegationStakeDecreased(DelegationStakeDecreased),
#[prost(message, tag = "3")]
DelegationSetRestakeEarnings(DelegationSetRestakeEarnings),
#[prost(message, tag = "4")]
DelegationSetDelegationTarget(DelegationSetDelegationTarget),
#[prost(message, tag = "5")]
DelegationAdded(super::DelegatorId),
#[prost(message, tag = "6")]
DelegationRemoved(super::DelegatorId),
#[prost(message, tag = "7")]
BakerRemoved(BakerRemoved),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionEffects {
#[prost(
oneof = "account_transaction_effects::Effect",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20"
)]
pub effect: ::core::option::Option<account_transaction_effects::Effect>,
}
pub mod account_transaction_effects {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct None {
#[prost(enumeration = "super::TransactionType", optional, tag = "1")]
pub transaction_type: ::core::option::Option<i32>,
#[prost(message, optional, tag = "2")]
pub reject_reason: ::core::option::Option<super::RejectReason>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContractUpdateIssued {
#[prost(message, repeated, tag = "1")]
pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransfer {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub receiver: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "3")]
pub memo: ::core::option::Option<super::Memo>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerStakeUpdated {
#[prost(message, optional, tag = "1")]
pub update: ::core::option::Option<super::BakerStakeUpdatedData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedAmountTransferred {
#[prost(message, optional, tag = "1")]
pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
#[prost(message, optional, tag = "2")]
pub added: ::core::option::Option<super::NewEncryptedAmountEvent>,
#[prost(message, optional, tag = "3")]
pub memo: ::core::option::Option<super::Memo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferredToPublic {
#[prost(message, optional, tag = "1")]
pub removed: ::core::option::Option<super::EncryptedAmountRemovedEvent>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferredWithSchedule {
#[prost(message, optional, tag = "1")]
pub receiver: ::core::option::Option<super::AccountAddress>,
#[prost(message, repeated, tag = "2")]
pub amount: ::prost::alloc::vec::Vec<super::NewRelease>,
#[prost(message, optional, tag = "3")]
pub memo: ::core::option::Option<super::Memo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CredentialsUpdated {
#[prost(message, repeated, tag = "1")]
pub new_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
#[prost(message, repeated, tag = "2")]
pub removed_cred_ids: ::prost::alloc::vec::Vec<super::CredentialRegistrationId>,
#[prost(message, optional, tag = "3")]
pub new_threshold: ::core::option::Option<super::AccountThreshold>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerConfigured {
#[prost(message, repeated, tag = "1")]
pub events: ::prost::alloc::vec::Vec<super::BakerEvent>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegationConfigured {
#[prost(message, repeated, tag = "1")]
pub events: ::prost::alloc::vec::Vec<super::DelegationEvent>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Effect {
#[prost(message, tag = "1")]
None(None),
#[prost(message, tag = "2")]
ModuleDeployed(super::ModuleRef),
#[prost(message, tag = "3")]
ContractInitialized(super::ContractInitializedEvent),
#[prost(message, tag = "4")]
ContractUpdateIssued(ContractUpdateIssued),
#[prost(message, tag = "5")]
AccountTransfer(AccountTransfer),
#[prost(message, tag = "6")]
BakerAdded(super::baker_event::BakerAdded),
#[prost(message, tag = "7")]
BakerRemoved(super::BakerId),
#[prost(message, tag = "8")]
BakerStakeUpdated(BakerStakeUpdated),
#[prost(message, tag = "9")]
BakerRestakeEarningsUpdated(super::baker_event::BakerRestakeEarningsUpdated),
#[prost(message, tag = "10")]
BakerKeysUpdated(super::BakerKeysEvent),
#[prost(message, tag = "11")]
EncryptedAmountTransferred(EncryptedAmountTransferred),
#[prost(message, tag = "12")]
TransferredToEncrypted(super::EncryptedSelfAmountAddedEvent),
#[prost(message, tag = "13")]
TransferredToPublic(TransferredToPublic),
#[prost(message, tag = "14")]
TransferredWithSchedule(TransferredWithSchedule),
#[prost(message, tag = "15")]
CredentialKeysUpdated(super::CredentialRegistrationId),
#[prost(message, tag = "16")]
CredentialsUpdated(CredentialsUpdated),
#[prost(message, tag = "17")]
DataRegistered(super::RegisteredData),
#[prost(message, tag = "18")]
BakerConfigured(BakerConfigured),
#[prost(message, tag = "19")]
DelegationConfigured(DelegationConfigured),
#[prost(message, tag = "20")]
TokenUpdateEffect(super::plt::TokenEffect),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ElectionDifficulty {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeoutParameters {
#[prost(message, optional, tag = "1")]
pub timeout_base: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "2")]
pub timeout_increase: ::core::option::Option<Ratio>,
#[prost(message, optional, tag = "3")]
pub timeout_decrease: ::core::option::Option<Ratio>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FinalizationCommitteeParameters {
#[prost(uint32, tag = "1")]
pub minimum_finalizers: u32,
#[prost(uint32, tag = "2")]
pub maximum_finalizers: u32,
#[prost(message, optional, tag = "3")]
pub finalizer_relative_stake_threshold: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ValidatorScoreParameters {
#[prost(uint64, tag = "1")]
pub maximum_missed_rounds: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConsensusParametersV1 {
#[prost(message, optional, tag = "1")]
pub timeout_parameters: ::core::option::Option<TimeoutParameters>,
#[prost(message, optional, tag = "2")]
pub min_block_time: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "3")]
pub block_energy_limit: ::core::option::Option<Energy>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ExchangeRate {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<Ratio>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Ratio {
#[prost(uint64, tag = "1")]
pub numerator: u64,
#[prost(uint64, tag = "2")]
pub denominator: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePublicKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateKeysThreshold {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateKeysIndex {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HigherLevelKeys {
#[prost(message, repeated, tag = "1")]
pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
#[prost(message, optional, tag = "2")]
pub threshold: ::core::option::Option<UpdateKeysThreshold>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessStructure {
#[prost(message, repeated, tag = "1")]
pub access_public_keys: ::prost::alloc::vec::Vec<UpdateKeysIndex>,
#[prost(message, optional, tag = "2")]
pub access_threshold: ::core::option::Option<UpdateKeysThreshold>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationsV0 {
#[prost(message, repeated, tag = "1")]
pub keys: ::prost::alloc::vec::Vec<UpdatePublicKey>,
#[prost(message, optional, tag = "2")]
pub emergency: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "3")]
pub protocol: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "4")]
pub parameter_consensus: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "5")]
pub parameter_euro_per_energy: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "6")]
pub parameter_micro_ccd_per_euro: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "7")]
pub parameter_foundation_account: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "8")]
pub parameter_mint_distribution: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "9")]
pub parameter_transaction_fee_distribution: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "10")]
pub parameter_gas_rewards: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "11")]
pub pool_parameters: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "12")]
pub add_anonymity_revoker: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "13")]
pub add_identity_provider: ::core::option::Option<AccessStructure>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationsV1 {
#[prost(message, optional, tag = "1")]
pub v0: ::core::option::Option<AuthorizationsV0>,
#[prost(message, optional, tag = "2")]
pub parameter_cooldown: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "3")]
pub parameter_time: ::core::option::Option<AccessStructure>,
#[prost(message, optional, tag = "4")]
pub create_plt: ::core::option::Option<AccessStructure>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Description {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub url: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArInfo {
#[prost(message, optional, tag = "1")]
pub identity: ::core::option::Option<ar_info::ArIdentity>,
#[prost(message, optional, tag = "2")]
pub description: ::core::option::Option<Description>,
#[prost(message, optional, tag = "3")]
pub public_key: ::core::option::Option<ar_info::ArPublicKey>,
}
pub mod ar_info {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArIdentity {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArPublicKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IpIdentity {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpInfo {
#[prost(message, optional, tag = "1")]
pub identity: ::core::option::Option<IpIdentity>,
#[prost(message, optional, tag = "2")]
pub description: ::core::option::Option<Description>,
#[prost(message, optional, tag = "3")]
pub verify_key: ::core::option::Option<ip_info::IpVerifyKey>,
#[prost(message, optional, tag = "4")]
pub cdi_verify_key: ::core::option::Option<ip_info::IpCdiVerifyKey>,
}
pub mod ip_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpVerifyKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpCdiVerifyKey {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DurationSeconds {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InclusiveRangeAmountFraction {
#[prost(message, optional, tag = "1")]
pub min: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub max: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CommissionRanges {
#[prost(message, optional, tag = "1")]
pub finalization: ::core::option::Option<InclusiveRangeAmountFraction>,
#[prost(message, optional, tag = "2")]
pub baking: ::core::option::Option<InclusiveRangeAmountFraction>,
#[prost(message, optional, tag = "3")]
pub transaction: ::core::option::Option<InclusiveRangeAmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CapitalBound {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeverageFactor {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<Ratio>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Epoch {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Round {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RewardPeriodLength {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<Epoch>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MintRate {
#[prost(uint32, tag = "1")]
pub mantissa: u32,
#[prost(uint32, tag = "2")]
pub exponent: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CooldownParametersCpv1 {
#[prost(message, optional, tag = "1")]
pub pool_owner_cooldown: ::core::option::Option<DurationSeconds>,
#[prost(message, optional, tag = "2")]
pub delegator_cooldown: ::core::option::Option<DurationSeconds>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PoolParametersCpv1 {
#[prost(message, optional, tag = "1")]
pub passive_finalization_commission: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub passive_baking_commission: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "3")]
pub passive_transaction_commission: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "4")]
pub commission_bounds: ::core::option::Option<CommissionRanges>,
#[prost(message, optional, tag = "5")]
pub minimum_equity_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "6")]
pub capital_bound: ::core::option::Option<CapitalBound>,
#[prost(message, optional, tag = "7")]
pub leverage_bound: ::core::option::Option<LeverageFactor>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeParametersCpv1 {
#[prost(message, optional, tag = "1")]
pub reward_period_length: ::core::option::Option<RewardPeriodLength>,
#[prost(message, optional, tag = "2")]
pub mint_per_payday: ::core::option::Option<MintRate>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MintDistributionCpv1 {
#[prost(message, optional, tag = "1")]
pub baking_reward: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub finalization_reward: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtocolUpdate {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub specification_url: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub specification_hash: ::core::option::Option<Sha256Hash>,
#[prost(bytes = "vec", tag = "4")]
pub specification_auxiliary_data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MintDistributionCpv0 {
#[prost(message, optional, tag = "1")]
pub mint_per_slot: ::core::option::Option<MintRate>,
#[prost(message, optional, tag = "2")]
pub baking_reward: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "3")]
pub finalization_reward: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TransactionFeeDistribution {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub gas_account: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GasRewards {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "2")]
pub finalization_proof: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "3")]
pub account_creation: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "4")]
pub chain_update: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GasRewardsCpv2 {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "3")]
pub account_creation: ::core::option::Option<AmountFraction>,
#[prost(message, optional, tag = "4")]
pub chain_update: ::core::option::Option<AmountFraction>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerStakeThreshold {
#[prost(message, optional, tag = "1")]
pub baker_stake_threshold: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RootUpdate {
#[prost(oneof = "root_update::UpdateType", tags = "1, 2, 3, 4")]
pub update_type: ::core::option::Option<root_update::UpdateType>,
}
pub mod root_update {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum UpdateType {
#[prost(message, tag = "1")]
RootKeysUpdate(super::HigherLevelKeys),
#[prost(message, tag = "2")]
Level1KeysUpdate(super::HigherLevelKeys),
#[prost(message, tag = "3")]
Level2KeysUpdateV0(super::AuthorizationsV0),
#[prost(message, tag = "4")]
Level2KeysUpdateV1(super::AuthorizationsV1),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Level1Update {
#[prost(oneof = "level1_update::UpdateType", tags = "1, 2, 3")]
pub update_type: ::core::option::Option<level1_update::UpdateType>,
}
pub mod level1_update {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum UpdateType {
#[prost(message, tag = "1")]
Level1KeysUpdate(super::HigherLevelKeys),
#[prost(message, tag = "2")]
Level2KeysUpdateV0(super::AuthorizationsV0),
#[prost(message, tag = "3")]
Level2KeysUpdateV1(super::AuthorizationsV1),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdatePayload {
#[prost(
oneof = "update_payload::Payload",
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"
)]
pub payload: ::core::option::Option<update_payload::Payload>,
}
pub mod update_payload {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(message, tag = "1")]
ProtocolUpdate(super::ProtocolUpdate),
#[prost(message, tag = "2")]
ElectionDifficultyUpdate(super::ElectionDifficulty),
#[prost(message, tag = "3")]
EuroPerEnergyUpdate(super::ExchangeRate),
#[prost(message, tag = "4")]
MicroCcdPerEuroUpdate(super::ExchangeRate),
#[prost(message, tag = "5")]
FoundationAccountUpdate(super::AccountAddress),
#[prost(message, tag = "6")]
MintDistributionUpdate(super::MintDistributionCpv0),
#[prost(message, tag = "7")]
TransactionFeeDistributionUpdate(super::TransactionFeeDistribution),
#[prost(message, tag = "8")]
GasRewardsUpdate(super::GasRewards),
#[prost(message, tag = "9")]
BakerStakeThresholdUpdate(super::BakerStakeThreshold),
#[prost(message, tag = "10")]
RootUpdate(super::RootUpdate),
#[prost(message, tag = "11")]
Level1Update(super::Level1Update),
#[prost(message, tag = "12")]
AddAnonymityRevokerUpdate(super::ArInfo),
#[prost(message, tag = "13")]
AddIdentityProviderUpdate(super::IpInfo),
#[prost(message, tag = "14")]
CooldownParametersCpv1Update(super::CooldownParametersCpv1),
#[prost(message, tag = "15")]
PoolParametersCpv1Update(super::PoolParametersCpv1),
#[prost(message, tag = "16")]
TimeParametersCpv1Update(super::TimeParametersCpv1),
#[prost(message, tag = "17")]
MintDistributionCpv1Update(super::MintDistributionCpv1),
#[prost(message, tag = "18")]
GasRewardsCpv2Update(super::GasRewardsCpv2),
#[prost(message, tag = "19")]
TimeoutParametersUpdate(super::TimeoutParameters),
#[prost(message, tag = "20")]
MinBlockTimeUpdate(super::Duration),
#[prost(message, tag = "21")]
BlockEnergyLimitUpdate(super::Energy),
#[prost(message, tag = "22")]
FinalizationCommitteeParametersUpdate(super::FinalizationCommitteeParameters),
#[prost(message, tag = "23")]
ValidatorScoreParametersUpdate(super::ValidatorScoreParameters),
#[prost(message, tag = "24")]
CreatePltUpdate(super::plt::CreatePlt),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SponsorDetails {
#[prost(message, optional, tag = "1")]
pub cost: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub sponsor: ::core::option::Option<AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionDetails {
#[prost(message, optional, tag = "1")]
pub cost: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub sender: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "3")]
pub effects: ::core::option::Option<AccountTransactionEffects>,
#[prost(message, optional, tag = "4")]
pub sponsor: ::core::option::Option<SponsorDetails>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountCreationDetails {
#[prost(enumeration = "CredentialType", tag = "1")]
pub credential_type: i32,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "3")]
pub reg_id: ::core::option::Option<CredentialRegistrationId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TransactionTime {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDetails {
#[prost(message, optional, tag = "1")]
pub effective_time: ::core::option::Option<TransactionTime>,
#[prost(message, optional, tag = "2")]
pub payload: ::core::option::Option<UpdatePayload>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockItemSummary {
#[prost(message, optional, tag = "1")]
pub index: ::core::option::Option<block_item_summary::TransactionIndex>,
#[prost(message, optional, tag = "2")]
pub energy_cost: ::core::option::Option<Energy>,
#[prost(message, optional, tag = "3")]
pub hash: ::core::option::Option<TransactionHash>,
#[prost(oneof = "block_item_summary::Details", tags = "4, 5, 6, 7")]
pub details: ::core::option::Option<block_item_summary::Details>,
}
pub mod block_item_summary {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TransactionIndex {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Details {
#[prost(message, tag = "4")]
AccountTransaction(super::AccountTransactionDetails),
#[prost(message, tag = "5")]
AccountCreation(super::AccountCreationDetails),
#[prost(message, tag = "6")]
Update(super::UpdateDetails),
#[prost(message, tag = "7")]
TokenCreation(super::plt::TokenCreationDetails),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GenesisIndex {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsensusInfo {
#[prost(message, optional, tag = "1")]
pub best_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub genesis_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "3")]
pub genesis_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "4")]
pub slot_duration: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "5")]
pub epoch_duration: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "6")]
pub last_finalized_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "7")]
pub best_block_height: ::core::option::Option<AbsoluteBlockHeight>,
#[prost(message, optional, tag = "8")]
pub last_finalized_block_height: ::core::option::Option<AbsoluteBlockHeight>,
#[prost(uint32, tag = "9")]
pub blocks_received_count: u32,
#[prost(message, optional, tag = "10")]
pub block_last_received_time: ::core::option::Option<Timestamp>,
#[prost(double, tag = "11")]
pub block_receive_latency_ema: f64,
#[prost(double, tag = "12")]
pub block_receive_latency_emsd: f64,
#[prost(double, optional, tag = "13")]
pub block_receive_period_ema: ::core::option::Option<f64>,
#[prost(double, optional, tag = "14")]
pub block_receive_period_emsd: ::core::option::Option<f64>,
#[prost(uint32, tag = "15")]
pub blocks_verified_count: u32,
#[prost(message, optional, tag = "16")]
pub block_last_arrived_time: ::core::option::Option<Timestamp>,
#[prost(double, tag = "17")]
pub block_arrive_latency_ema: f64,
#[prost(double, tag = "18")]
pub block_arrive_latency_emsd: f64,
#[prost(double, optional, tag = "19")]
pub block_arrive_period_ema: ::core::option::Option<f64>,
#[prost(double, optional, tag = "20")]
pub block_arrive_period_emsd: ::core::option::Option<f64>,
#[prost(double, tag = "21")]
pub transactions_per_block_ema: f64,
#[prost(double, tag = "22")]
pub transactions_per_block_emsd: f64,
#[prost(uint32, tag = "23")]
pub finalization_count: u32,
#[prost(message, optional, tag = "24")]
pub last_finalized_time: ::core::option::Option<Timestamp>,
#[prost(double, optional, tag = "25")]
pub finalization_period_ema: ::core::option::Option<f64>,
#[prost(double, optional, tag = "26")]
pub finalization_period_emsd: ::core::option::Option<f64>,
#[prost(enumeration = "ProtocolVersion", tag = "27")]
pub protocol_version: i32,
#[prost(message, optional, tag = "28")]
pub genesis_index: ::core::option::Option<GenesisIndex>,
#[prost(message, optional, tag = "29")]
pub current_era_genesis_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "30")]
pub current_era_genesis_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "31")]
pub current_timeout_duration: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "32")]
pub current_round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "33")]
pub current_epoch: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "34")]
pub trigger_block_time: ::core::option::Option<Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArrivedBlockInfo {
#[prost(message, optional, tag = "1")]
pub hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub height: ::core::option::Option<AbsoluteBlockHeight>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CryptographicParameters {
#[prost(string, tag = "1")]
pub genesis_string: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub bulletproof_generators: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes = "vec", tag = "3")]
pub on_chain_commitment_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockInfo {
#[prost(message, optional, tag = "1")]
pub hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub height: ::core::option::Option<AbsoluteBlockHeight>,
#[prost(message, optional, tag = "3")]
pub parent_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "4")]
pub last_finalized_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "5")]
pub genesis_index: ::core::option::Option<GenesisIndex>,
#[prost(message, optional, tag = "6")]
pub era_block_height: ::core::option::Option<BlockHeight>,
#[prost(message, optional, tag = "7")]
pub receive_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "8")]
pub arrive_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "9")]
pub slot_number: ::core::option::Option<Slot>,
#[prost(message, optional, tag = "10")]
pub slot_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "11")]
pub baker: ::core::option::Option<BakerId>,
#[prost(bool, tag = "12")]
pub finalized: bool,
#[prost(uint32, tag = "13")]
pub transaction_count: u32,
#[prost(message, optional, tag = "14")]
pub transactions_energy_cost: ::core::option::Option<Energy>,
#[prost(uint32, tag = "15")]
pub transactions_size: u32,
#[prost(message, optional, tag = "16")]
pub state_hash: ::core::option::Option<StateHash>,
#[prost(enumeration = "ProtocolVersion", tag = "17")]
pub protocol_version: i32,
#[prost(message, optional, tag = "18")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "19")]
pub epoch: ::core::option::Option<Epoch>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PoolInfoRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub baker: ::core::option::Option<BakerId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PoolPendingChange {
#[prost(oneof = "pool_pending_change::Change", tags = "1, 2")]
pub change: ::core::option::Option<pool_pending_change::Change>,
}
pub mod pool_pending_change {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Reduce {
#[prost(message, optional, tag = "1")]
pub reduced_equity_capital: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub effective_time: ::core::option::Option<super::Timestamp>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Remove {
#[prost(message, optional, tag = "1")]
pub effective_time: ::core::option::Option<super::Timestamp>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Change {
#[prost(message, tag = "1")]
Reduce(Reduce),
#[prost(message, tag = "2")]
Remove(Remove),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PoolCurrentPaydayInfo {
#[prost(uint64, tag = "1")]
pub blocks_baked: u64,
#[prost(bool, tag = "2")]
pub finalization_live: bool,
#[prost(message, optional, tag = "3")]
pub transaction_fees_earned: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "4")]
pub effective_stake: ::core::option::Option<Amount>,
#[prost(double, tag = "5")]
pub lottery_power: f64,
#[prost(message, optional, tag = "6")]
pub baker_equity_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "7")]
pub delegated_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "8")]
pub commission_rates: ::core::option::Option<CommissionRates>,
#[prost(bool, optional, tag = "9")]
pub is_primed_for_suspension: ::core::option::Option<bool>,
#[prost(uint64, optional, tag = "10")]
pub missed_rounds: ::core::option::Option<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PoolInfoResponse {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "3")]
pub equity_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "4")]
pub delegated_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub delegated_capital_cap: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "6")]
pub pool_info: ::core::option::Option<BakerPoolInfo>,
#[prost(message, optional, tag = "7")]
pub equity_pending_change: ::core::option::Option<PoolPendingChange>,
#[prost(message, optional, tag = "8")]
pub current_payday_info: ::core::option::Option<PoolCurrentPaydayInfo>,
#[prost(message, optional, tag = "9")]
pub all_pool_total_capital: ::core::option::Option<Amount>,
#[prost(bool, optional, tag = "10")]
pub is_suspended: ::core::option::Option<bool>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PassiveDelegationInfo {
#[prost(message, optional, tag = "1")]
pub delegated_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub commission_rates: ::core::option::Option<CommissionRates>,
#[prost(message, optional, tag = "3")]
pub current_payday_transaction_fees_earned: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "4")]
pub current_payday_delegated_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub all_pool_total_capital: ::core::option::Option<Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BlocksAtHeightRequest {
#[prost(oneof = "blocks_at_height_request::BlocksAtHeight", tags = "1, 2")]
pub blocks_at_height: ::core::option::Option<
blocks_at_height_request::BlocksAtHeight,
>,
}
pub mod blocks_at_height_request {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Absolute {
#[prost(message, optional, tag = "1")]
pub height: ::core::option::Option<super::AbsoluteBlockHeight>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Relative {
#[prost(message, optional, tag = "1")]
pub genesis_index: ::core::option::Option<super::GenesisIndex>,
#[prost(message, optional, tag = "2")]
pub height: ::core::option::Option<super::BlockHeight>,
#[prost(bool, tag = "3")]
pub restrict: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum BlocksAtHeight {
#[prost(message, tag = "1")]
Absolute(Absolute),
#[prost(message, tag = "2")]
Relative(Relative),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlocksAtHeightResponse {
#[prost(message, repeated, tag = "1")]
pub blocks: ::prost::alloc::vec::Vec<BlockHash>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TokenomicsInfo {
#[prost(oneof = "tokenomics_info::Tokenomics", tags = "1, 2")]
pub tokenomics: ::core::option::Option<tokenomics_info::Tokenomics>,
}
pub mod tokenomics_info {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct V0 {
#[prost(message, optional, tag = "1")]
pub total_amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub total_encrypted_amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub baking_reward_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub finalization_reward_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "5")]
pub gas_account: ::core::option::Option<super::Amount>,
#[prost(enumeration = "super::ProtocolVersion", tag = "6")]
pub protocol_version: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct V1 {
#[prost(message, optional, tag = "1")]
pub total_amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub total_encrypted_amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub baking_reward_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub finalization_reward_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "5")]
pub gas_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "6")]
pub foundation_transaction_rewards: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "7")]
pub next_payday_time: ::core::option::Option<super::Timestamp>,
#[prost(message, optional, tag = "8")]
pub next_payday_mint_rate: ::core::option::Option<super::MintRate>,
#[prost(message, optional, tag = "9")]
pub total_staked_capital: ::core::option::Option<super::Amount>,
#[prost(enumeration = "super::ProtocolVersion", tag = "10")]
pub protocol_version: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Tokenomics {
#[prost(message, tag = "1")]
V0(V0),
#[prost(message, tag = "2")]
V1(V1),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvokeInstanceRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub invoker: ::core::option::Option<Address>,
#[prost(message, optional, tag = "3")]
pub instance: ::core::option::Option<ContractAddress>,
#[prost(message, optional, tag = "4")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub entrypoint: ::core::option::Option<ReceiveName>,
#[prost(message, optional, tag = "6")]
pub parameter: ::core::option::Option<Parameter>,
#[prost(message, optional, tag = "7")]
pub energy: ::core::option::Option<Energy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvokeInstanceResponse {
#[prost(oneof = "invoke_instance_response::Result", tags = "1, 2")]
pub result: ::core::option::Option<invoke_instance_response::Result>,
}
pub mod invoke_instance_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(bytes = "vec", optional, tag = "1")]
pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
#[prost(message, optional, tag = "2")]
pub used_energy: ::core::option::Option<super::Energy>,
#[prost(message, optional, tag = "3")]
pub reason: ::core::option::Option<super::RejectReason>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Success {
#[prost(bytes = "vec", optional, tag = "1")]
pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
#[prost(message, optional, tag = "2")]
pub used_energy: ::core::option::Option<super::Energy>,
#[prost(message, repeated, tag = "3")]
pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "1")]
Success(Success),
#[prost(message, tag = "2")]
Failure(Failure),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPoolDelegatorsRequest {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHashInput>,
#[prost(message, optional, tag = "2")]
pub baker: ::core::option::Option<BakerId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegatorInfo {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub stake: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "3")]
pub pending_change: ::core::option::Option<StakePendingChange>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegatorRewardPeriodInfo {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub stake: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Branch {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHash>,
#[prost(message, repeated, tag = "2")]
pub children: ::prost::alloc::vec::Vec<Branch>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LeadershipElectionNonce {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ElectionInfo {
#[prost(message, optional, tag = "1")]
pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
#[prost(message, optional, tag = "2")]
pub election_nonce: ::core::option::Option<LeadershipElectionNonce>,
#[prost(message, repeated, tag = "3")]
pub baker_election_info: ::prost::alloc::vec::Vec<election_info::Baker>,
}
pub mod election_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Baker {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub account: ::core::option::Option<super::AccountAddress>,
#[prost(double, tag = "3")]
pub lottery_power: f64,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockSpecialEvent {
#[prost(
oneof = "block_special_event::Event",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
)]
pub event: ::core::option::Option<block_special_event::Event>,
}
pub mod block_special_event {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountAmounts {
#[prost(message, repeated, tag = "1")]
pub entries: ::prost::alloc::vec::Vec<account_amounts::Entry>,
}
pub mod account_amounts {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entry {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<super::super::AccountAddress>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<super::super::Amount>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakingRewards {
#[prost(message, optional, tag = "1")]
pub baker_rewards: ::core::option::Option<AccountAmounts>,
#[prost(message, optional, tag = "2")]
pub remainder: ::core::option::Option<super::Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Mint {
#[prost(message, optional, tag = "1")]
pub mint_baking_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub mint_finalization_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub mint_platform_development_charge: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub foundation_account: ::core::option::Option<super::AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalizationRewards {
#[prost(message, optional, tag = "1")]
pub finalization_rewards: ::core::option::Option<AccountAmounts>,
#[prost(message, optional, tag = "2")]
pub remainder: ::core::option::Option<super::Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockReward {
#[prost(message, optional, tag = "1")]
pub transaction_fees: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub old_gas_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub new_gas_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub baker_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "5")]
pub foundation_charge: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "6")]
pub baker: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "7")]
pub foundation_account: ::core::option::Option<super::AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaydayFoundationReward {
#[prost(message, optional, tag = "1")]
pub foundation_account: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "2")]
pub development_charge: ::core::option::Option<super::Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PaydayAccountReward {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<super::AccountAddress>,
#[prost(message, optional, tag = "2")]
pub transaction_fees: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub baker_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub finalization_reward: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BlockAccrueReward {
#[prost(message, optional, tag = "1")]
pub transaction_fees: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub old_gas_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub new_gas_account: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub baker_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "5")]
pub passive_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "6")]
pub foundation_charge: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "7")]
pub baker: ::core::option::Option<super::BakerId>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PaydayPoolReward {
#[prost(message, optional, tag = "1")]
pub pool_owner: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub transaction_fees: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "3")]
pub baker_reward: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "4")]
pub finalization_reward: ::core::option::Option<super::Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSuspended {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub account: ::core::option::Option<super::AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorPrimedForSuspension {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(message, optional, tag = "2")]
pub account: ::core::option::Option<super::AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Event {
#[prost(message, tag = "1")]
BakingRewards(BakingRewards),
#[prost(message, tag = "2")]
Mint(Mint),
#[prost(message, tag = "3")]
FinalizationRewards(FinalizationRewards),
#[prost(message, tag = "4")]
BlockReward(BlockReward),
#[prost(message, tag = "5")]
PaydayFoundationReward(PaydayFoundationReward),
#[prost(message, tag = "6")]
PaydayAccountReward(PaydayAccountReward),
#[prost(message, tag = "7")]
BlockAccrueReward(BlockAccrueReward),
#[prost(message, tag = "8")]
PaydayPoolReward(PaydayPoolReward),
#[prost(message, tag = "9")]
ValidatorSuspended(ValidatorSuspended),
#[prost(message, tag = "10")]
ValidatorPrimedForSuspension(ValidatorPrimedForSuspension),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PendingUpdate {
#[prost(message, optional, tag = "1")]
pub effective_time: ::core::option::Option<TransactionTime>,
#[prost(
oneof = "pending_update::Effect",
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"
)]
pub effect: ::core::option::Option<pending_update::Effect>,
}
pub mod pending_update {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Effect {
#[prost(message, tag = "2")]
RootKeys(super::HigherLevelKeys),
#[prost(message, tag = "3")]
Level1Keys(super::HigherLevelKeys),
#[prost(message, tag = "4")]
Level2KeysCpv0(super::AuthorizationsV0),
#[prost(message, tag = "5")]
Level2KeysCpv1(super::AuthorizationsV1),
#[prost(message, tag = "6")]
Protocol(super::ProtocolUpdate),
#[prost(message, tag = "7")]
ElectionDifficulty(super::ElectionDifficulty),
#[prost(message, tag = "8")]
EuroPerEnergy(super::ExchangeRate),
#[prost(message, tag = "9")]
MicroCcdPerEuro(super::ExchangeRate),
#[prost(message, tag = "10")]
FoundationAccount(super::AccountAddress),
#[prost(message, tag = "11")]
MintDistributionCpv0(super::MintDistributionCpv0),
#[prost(message, tag = "12")]
MintDistributionCpv1(super::MintDistributionCpv1),
#[prost(message, tag = "13")]
TransactionFeeDistribution(super::TransactionFeeDistribution),
#[prost(message, tag = "14")]
GasRewards(super::GasRewards),
#[prost(message, tag = "15")]
PoolParametersCpv0(super::BakerStakeThreshold),
#[prost(message, tag = "16")]
PoolParametersCpv1(super::PoolParametersCpv1),
#[prost(message, tag = "17")]
AddAnonymityRevoker(super::ArInfo),
#[prost(message, tag = "18")]
AddIdentityProvider(super::IpInfo),
#[prost(message, tag = "19")]
CooldownParameters(super::CooldownParametersCpv1),
#[prost(message, tag = "20")]
TimeParameters(super::TimeParametersCpv1),
#[prost(message, tag = "21")]
GasRewardsCpv2(super::GasRewardsCpv2),
#[prost(message, tag = "22")]
TimeoutParameters(super::TimeoutParameters),
#[prost(message, tag = "23")]
MinBlockTime(super::Duration),
#[prost(message, tag = "24")]
BlockEnergyLimit(super::Energy),
#[prost(message, tag = "25")]
FinalizationCommitteeParameters(super::FinalizationCommitteeParameters),
#[prost(message, tag = "26")]
ValidatorScoreParameters(super::ValidatorScoreParameters),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NextUpdateSequenceNumbers {
#[prost(message, optional, tag = "1")]
pub root_keys: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "2")]
pub level1_keys: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "3")]
pub level2_keys: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "4")]
pub protocol: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "5")]
pub election_difficulty: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "6")]
pub euro_per_energy: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "7")]
pub micro_ccd_per_euro: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "8")]
pub foundation_account: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "9")]
pub mint_distribution: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "10")]
pub transaction_fee_distribution: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "11")]
pub gas_rewards: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "12")]
pub pool_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "13")]
pub add_anonymity_revoker: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "14")]
pub add_identity_provider: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "15")]
pub cooldown_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "16")]
pub time_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "17")]
pub timeout_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "18")]
pub min_block_time: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "19")]
pub block_energy_limit: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "20")]
pub finalization_committee_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "21")]
pub validator_score_parameters: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "22")]
pub protocol_level_tokens: ::core::option::Option<SequenceNumber>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpAddress {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Port {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpSocketAddress {
#[prost(message, optional, tag = "1")]
pub ip: ::core::option::Option<IpAddress>,
#[prost(message, optional, tag = "2")]
pub port: ::core::option::Option<Port>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeerId {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BannedPeer {
#[prost(message, optional, tag = "1")]
pub ip_address: ::core::option::Option<IpAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BannedPeers {
#[prost(message, repeated, tag = "1")]
pub peers: ::prost::alloc::vec::Vec<BannedPeer>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeerToBan {
#[prost(message, optional, tag = "1")]
pub ip_address: ::core::option::Option<IpAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DumpRequest {
#[prost(string, tag = "1")]
pub file: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub raw: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeersInfo {
#[prost(message, repeated, tag = "1")]
pub peers: ::prost::alloc::vec::Vec<peers_info::Peer>,
}
pub mod peers_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Peer {
#[prost(message, optional, tag = "1")]
pub peer_id: ::core::option::Option<super::PeerId>,
#[prost(message, optional, tag = "2")]
pub socket_address: ::core::option::Option<super::IpSocketAddress>,
#[prost(message, optional, tag = "3")]
pub network_stats: ::core::option::Option<peer::NetworkStats>,
#[prost(oneof = "peer::ConsensusInfo", tags = "4, 5")]
pub consensus_info: ::core::option::Option<peer::ConsensusInfo>,
}
pub mod peer {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NetworkStats {
#[prost(uint64, tag = "2")]
pub packets_sent: u64,
#[prost(uint64, tag = "3")]
pub packets_received: u64,
#[prost(uint64, tag = "4")]
pub latency: u64,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CatchupStatus {
Uptodate = 0,
Pending = 1,
Catchingup = 2,
}
impl CatchupStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Uptodate => "UPTODATE",
Self::Pending => "PENDING",
Self::Catchingup => "CATCHINGUP",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UPTODATE" => Some(Self::Uptodate),
"PENDING" => Some(Self::Pending),
"CATCHINGUP" => Some(Self::Catchingup),
_ => None,
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum ConsensusInfo {
#[prost(message, tag = "4")]
Bootstrapper(super::super::Empty),
#[prost(enumeration = "CatchupStatus", tag = "5")]
NodeCatchupStatus(i32),
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeInfo {
#[prost(string, tag = "1")]
pub peer_version: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub local_time: ::core::option::Option<Timestamp>,
#[prost(message, optional, tag = "4")]
pub peer_uptime: ::core::option::Option<Duration>,
#[prost(message, optional, tag = "5")]
pub network_info: ::core::option::Option<node_info::NetworkInfo>,
#[prost(oneof = "node_info::Details", tags = "6, 7")]
pub details: ::core::option::Option<node_info::Details>,
}
pub mod node_info {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkInfo {
#[prost(message, optional, tag = "1")]
pub node_id: ::core::option::Option<super::PeerId>,
#[prost(uint64, tag = "2")]
pub peer_total_sent: u64,
#[prost(uint64, tag = "3")]
pub peer_total_received: u64,
#[prost(uint64, tag = "4")]
pub avg_bps_in: u64,
#[prost(uint64, tag = "5")]
pub avg_bps_out: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BakerConsensusInfo {
#[prost(message, optional, tag = "1")]
pub baker_id: ::core::option::Option<super::BakerId>,
#[prost(oneof = "baker_consensus_info::Status", tags = "2, 3, 4")]
pub status: ::core::option::Option<baker_consensus_info::Status>,
}
pub mod baker_consensus_info {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ActiveBakerCommitteeInfo {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ActiveFinalizerCommitteeInfo {}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum PassiveCommitteeInfo {
NotInCommittee = 0,
AddedButNotActiveInCommittee = 1,
AddedButWrongKeys = 2,
}
impl PassiveCommitteeInfo {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::NotInCommittee => "NOT_IN_COMMITTEE",
Self::AddedButNotActiveInCommittee => {
"ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE"
}
Self::AddedButWrongKeys => "ADDED_BUT_WRONG_KEYS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NOT_IN_COMMITTEE" => Some(Self::NotInCommittee),
"ADDED_BUT_NOT_ACTIVE_IN_COMMITTEE" => {
Some(Self::AddedButNotActiveInCommittee)
}
"ADDED_BUT_WRONG_KEYS" => Some(Self::AddedButWrongKeys),
_ => None,
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Status {
#[prost(enumeration = "PassiveCommitteeInfo", tag = "2")]
PassiveCommitteeInfo(i32),
#[prost(message, tag = "3")]
ActiveBakerCommitteeInfo(ActiveBakerCommitteeInfo),
#[prost(message, tag = "4")]
ActiveFinalizerCommitteeInfo(ActiveFinalizerCommitteeInfo),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Node {
#[prost(oneof = "node::ConsensusStatus", tags = "1, 2, 3")]
pub consensus_status: ::core::option::Option<node::ConsensusStatus>,
}
pub mod node {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum ConsensusStatus {
#[prost(message, tag = "1")]
NotRunning(super::super::Empty),
#[prost(message, tag = "2")]
Passive(super::super::Empty),
#[prost(message, tag = "3")]
Active(super::BakerConsensusInfo),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Details {
#[prost(message, tag = "6")]
Bootstrapper(super::Empty),
#[prost(message, tag = "7")]
Node(Node),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendBlockItemRequest {
#[prost(oneof = "send_block_item_request::BlockItem", tags = "1, 2, 3, 4, 5")]
pub block_item: ::core::option::Option<send_block_item_request::BlockItem>,
}
pub mod send_block_item_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum BlockItem {
#[prost(message, tag = "1")]
AccountTransaction(super::AccountTransaction),
#[prost(message, tag = "2")]
CredentialDeployment(super::CredentialDeployment),
#[prost(message, tag = "3")]
UpdateInstruction(super::UpdateInstruction),
#[prost(message, tag = "4")]
AccountTransactionV1(super::AccountTransactionV1),
#[prost(bytes, tag = "5")]
RawBlockItem(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CredentialDeployment {
#[prost(message, optional, tag = "1")]
pub message_expiry: ::core::option::Option<TransactionTime>,
#[prost(oneof = "credential_deployment::Payload", tags = "2")]
pub payload: ::core::option::Option<credential_deployment::Payload>,
}
pub mod credential_deployment {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(bytes, tag = "2")]
RawPayload(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Signature {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignatureMap {
#[prost(map = "uint32, message", tag = "1")]
pub signatures: ::std::collections::HashMap<u32, Signature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountSignatureMap {
#[prost(map = "uint32, message", tag = "1")]
pub signatures: ::std::collections::HashMap<u32, Signature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionSignature {
#[prost(map = "uint32, message", tag = "1")]
pub signatures: ::std::collections::HashMap<u32, AccountSignatureMap>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionV1Signatures {
#[prost(message, optional, tag = "1")]
pub sender_signatures: ::core::option::Option<AccountTransactionSignature>,
#[prost(message, optional, tag = "2")]
pub sponsor_signatures: ::core::option::Option<AccountTransactionSignature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionHeader {
#[prost(message, optional, tag = "1")]
pub sender: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub sequence_number: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "3")]
pub energy_amount: ::core::option::Option<Energy>,
#[prost(message, optional, tag = "5")]
pub expiry: ::core::option::Option<TransactionTime>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionHeaderV1 {
#[prost(message, optional, tag = "1")]
pub sender: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub sequence_number: ::core::option::Option<SequenceNumber>,
#[prost(message, optional, tag = "3")]
pub energy_amount: ::core::option::Option<Energy>,
#[prost(message, optional, tag = "5")]
pub expiry: ::core::option::Option<TransactionTime>,
#[prost(message, optional, tag = "6")]
pub sponsor: ::core::option::Option<AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitContractPayload {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub module_ref: ::core::option::Option<ModuleRef>,
#[prost(message, optional, tag = "3")]
pub init_name: ::core::option::Option<InitName>,
#[prost(message, optional, tag = "4")]
pub parameter: ::core::option::Option<Parameter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateContractPayload {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub address: ::core::option::Option<ContractAddress>,
#[prost(message, optional, tag = "3")]
pub receive_name: ::core::option::Option<ReceiveName>,
#[prost(message, optional, tag = "4")]
pub parameter: ::core::option::Option<Parameter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferPayload {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub receiver: ::core::option::Option<AccountAddress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferWithMemoPayload {
#[prost(message, optional, tag = "1")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "2")]
pub receiver: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "3")]
pub memo: ::core::option::Option<Memo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionPayload {
#[prost(
oneof = "account_transaction_payload::Payload",
tags = "1, 2, 3, 4, 5, 6, 7"
)]
pub payload: ::core::option::Option<account_transaction_payload::Payload>,
}
pub mod account_transaction_payload {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(bytes, tag = "1")]
RawPayload(::prost::alloc::vec::Vec<u8>),
#[prost(message, tag = "2")]
DeployModule(super::VersionedModuleSource),
#[prost(message, tag = "3")]
InitContract(super::InitContractPayload),
#[prost(message, tag = "4")]
UpdateContract(super::UpdateContractPayload),
#[prost(message, tag = "5")]
Transfer(super::TransferPayload),
#[prost(message, tag = "6")]
TransferWithMemo(super::TransferWithMemoPayload),
#[prost(message, tag = "7")]
RegisterData(super::RegisteredData),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreAccountTransaction {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<AccountTransactionHeader>,
#[prost(message, optional, tag = "2")]
pub payload: ::core::option::Option<AccountTransactionPayload>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PreAccountTransactionV1 {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<AccountTransactionHeaderV1>,
#[prost(message, optional, tag = "2")]
pub payload: ::core::option::Option<AccountTransactionPayload>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransaction {
#[prost(message, optional, tag = "1")]
pub signature: ::core::option::Option<AccountTransactionSignature>,
#[prost(message, optional, tag = "2")]
pub header: ::core::option::Option<AccountTransactionHeader>,
#[prost(message, optional, tag = "3")]
pub payload: ::core::option::Option<AccountTransactionPayload>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionV1 {
#[prost(message, optional, tag = "1")]
pub signatures: ::core::option::Option<AccountTransactionV1Signatures>,
#[prost(message, optional, tag = "2")]
pub header: ::core::option::Option<AccountTransactionHeaderV1>,
#[prost(message, optional, tag = "3")]
pub payload: ::core::option::Option<AccountTransactionPayload>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateInstructionHeader {
#[prost(message, optional, tag = "1")]
pub sequence_number: ::core::option::Option<UpdateSequenceNumber>,
#[prost(message, optional, tag = "2")]
pub effective_time: ::core::option::Option<TransactionTime>,
#[prost(message, optional, tag = "3")]
pub timeout: ::core::option::Option<TransactionTime>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstructionPayload {
#[prost(oneof = "update_instruction_payload::Payload", tags = "3")]
pub payload: ::core::option::Option<update_instruction_payload::Payload>,
}
pub mod update_instruction_payload {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(bytes, tag = "3")]
RawPayload(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstruction {
#[prost(message, optional, tag = "1")]
pub signatures: ::core::option::Option<SignatureMap>,
#[prost(message, optional, tag = "2")]
pub header: ::core::option::Option<UpdateInstructionHeader>,
#[prost(message, optional, tag = "3")]
pub payload: ::core::option::Option<UpdateInstructionPayload>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccountTransactionSignHash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CredentialsPerBlockLimit {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainParametersV0 {
#[prost(message, optional, tag = "1")]
pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
#[prost(message, optional, tag = "2")]
pub euro_per_energy: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "3")]
pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "4")]
pub baker_cooldown_epochs: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "5")]
pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
#[prost(message, optional, tag = "6")]
pub mint_distribution: ::core::option::Option<MintDistributionCpv0>,
#[prost(message, optional, tag = "7")]
pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
#[prost(message, optional, tag = "8")]
pub gas_rewards: ::core::option::Option<GasRewards>,
#[prost(message, optional, tag = "9")]
pub foundation_account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "10")]
pub minimum_threshold_for_baking: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "11")]
pub root_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "12")]
pub level1_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "13")]
pub level2_keys: ::core::option::Option<AuthorizationsV0>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainParametersV1 {
#[prost(message, optional, tag = "1")]
pub election_difficulty: ::core::option::Option<ElectionDifficulty>,
#[prost(message, optional, tag = "2")]
pub euro_per_energy: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "3")]
pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "4")]
pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
#[prost(message, optional, tag = "5")]
pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
#[prost(message, optional, tag = "6")]
pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
#[prost(message, optional, tag = "7")]
pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
#[prost(message, optional, tag = "8")]
pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
#[prost(message, optional, tag = "9")]
pub gas_rewards: ::core::option::Option<GasRewards>,
#[prost(message, optional, tag = "10")]
pub foundation_account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "11")]
pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
#[prost(message, optional, tag = "12")]
pub root_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "13")]
pub level1_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "14")]
pub level2_keys: ::core::option::Option<AuthorizationsV1>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainParametersV2 {
#[prost(message, optional, tag = "1")]
pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
#[prost(message, optional, tag = "2")]
pub euro_per_energy: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "3")]
pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "4")]
pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
#[prost(message, optional, tag = "5")]
pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
#[prost(message, optional, tag = "6")]
pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
#[prost(message, optional, tag = "7")]
pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
#[prost(message, optional, tag = "8")]
pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
#[prost(message, optional, tag = "9")]
pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
#[prost(message, optional, tag = "10")]
pub foundation_account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "11")]
pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
#[prost(message, optional, tag = "12")]
pub root_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "13")]
pub level1_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "14")]
pub level2_keys: ::core::option::Option<AuthorizationsV1>,
#[prost(message, optional, tag = "15")]
pub finalization_committee_parameters: ::core::option::Option<
FinalizationCommitteeParameters,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainParametersV3 {
#[prost(message, optional, tag = "1")]
pub consensus_parameters: ::core::option::Option<ConsensusParametersV1>,
#[prost(message, optional, tag = "2")]
pub euro_per_energy: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "3")]
pub micro_ccd_per_euro: ::core::option::Option<ExchangeRate>,
#[prost(message, optional, tag = "4")]
pub cooldown_parameters: ::core::option::Option<CooldownParametersCpv1>,
#[prost(message, optional, tag = "5")]
pub time_parameters: ::core::option::Option<TimeParametersCpv1>,
#[prost(message, optional, tag = "6")]
pub account_creation_limit: ::core::option::Option<CredentialsPerBlockLimit>,
#[prost(message, optional, tag = "7")]
pub mint_distribution: ::core::option::Option<MintDistributionCpv1>,
#[prost(message, optional, tag = "8")]
pub transaction_fee_distribution: ::core::option::Option<TransactionFeeDistribution>,
#[prost(message, optional, tag = "9")]
pub gas_rewards: ::core::option::Option<GasRewardsCpv2>,
#[prost(message, optional, tag = "10")]
pub foundation_account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "11")]
pub pool_parameters: ::core::option::Option<PoolParametersCpv1>,
#[prost(message, optional, tag = "12")]
pub root_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "13")]
pub level1_keys: ::core::option::Option<HigherLevelKeys>,
#[prost(message, optional, tag = "14")]
pub level2_keys: ::core::option::Option<AuthorizationsV1>,
#[prost(message, optional, tag = "15")]
pub finalization_committee_parameters: ::core::option::Option<
FinalizationCommitteeParameters,
>,
#[prost(message, optional, tag = "16")]
pub validator_score_parameters: ::core::option::Option<ValidatorScoreParameters>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainParameters {
#[prost(oneof = "chain_parameters::Parameters", tags = "1, 2, 3, 4")]
pub parameters: ::core::option::Option<chain_parameters::Parameters>,
}
pub mod chain_parameters {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Parameters {
#[prost(message, tag = "1")]
V0(super::ChainParametersV0),
#[prost(message, tag = "2")]
V1(super::ChainParametersV1),
#[prost(message, tag = "3")]
V2(super::ChainParametersV2),
#[prost(message, tag = "4")]
V3(super::ChainParametersV3),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FinalizationSummaryParty {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<BakerId>,
#[prost(uint64, tag = "2")]
pub weight: u64,
#[prost(bool, tag = "3")]
pub signed: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FinalizationIndex {
#[prost(uint64, tag = "1")]
pub value: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalizationSummary {
#[prost(message, optional, tag = "1")]
pub block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub index: ::core::option::Option<FinalizationIndex>,
#[prost(message, optional, tag = "3")]
pub delay: ::core::option::Option<BlockHeight>,
#[prost(message, repeated, tag = "4")]
pub finalizers: ::prost::alloc::vec::Vec<FinalizationSummaryParty>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockFinalizationSummary {
#[prost(oneof = "block_finalization_summary::Summary", tags = "1, 2")]
pub summary: ::core::option::Option<block_finalization_summary::Summary>,
}
pub mod block_finalization_summary {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Summary {
#[prost(message, tag = "1")]
None(super::Empty),
#[prost(message, tag = "2")]
Record(super::FinalizationSummary),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockItem {
#[prost(message, optional, tag = "1")]
pub hash: ::core::option::Option<TransactionHash>,
#[prost(oneof = "block_item::BlockItem", tags = "2, 3, 4, 5, 6")]
pub block_item: ::core::option::Option<block_item::BlockItem>,
}
pub mod block_item {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum BlockItem {
#[prost(message, tag = "2")]
AccountTransaction(super::AccountTransaction),
#[prost(message, tag = "3")]
CredentialDeployment(super::CredentialDeployment),
#[prost(message, tag = "4")]
UpdateInstruction(super::UpdateInstruction),
#[prost(message, tag = "5")]
AccountTransactionV1(super::AccountTransactionV1),
#[prost(bytes, tag = "6")]
RawBlockItem(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakerRewardPeriodInfo {
#[prost(message, optional, tag = "1")]
pub baker: ::core::option::Option<BakerInfo>,
#[prost(message, optional, tag = "2")]
pub effective_stake: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "3")]
pub commission_rates: ::core::option::Option<CommissionRates>,
#[prost(message, optional, tag = "4")]
pub equity_capital: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub delegated_capital: ::core::option::Option<Amount>,
#[prost(bool, tag = "6")]
pub is_finalizer: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuorumSignature {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuorumCertificate {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "3")]
pub epoch: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "4")]
pub aggregate_signature: ::core::option::Option<QuorumSignature>,
#[prost(message, repeated, tag = "5")]
pub signatories: ::prost::alloc::vec::Vec<BakerId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalizerRound {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, repeated, tag = "2")]
pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutSignature {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutCertificate {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub min_epoch: ::core::option::Option<Epoch>,
#[prost(message, repeated, tag = "3")]
pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
#[prost(message, repeated, tag = "4")]
pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<FinalizerRound>,
#[prost(message, optional, tag = "5")]
pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuccessorProof {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpochFinalizationEntry {
#[prost(message, optional, tag = "1")]
pub finalized_qc: ::core::option::Option<QuorumCertificate>,
#[prost(message, optional, tag = "2")]
pub successor_qc: ::core::option::Option<QuorumCertificate>,
#[prost(message, optional, tag = "3")]
pub successor_proof: ::core::option::Option<SuccessorProof>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockCertificates {
#[prost(message, optional, tag = "1")]
pub quorum_certificate: ::core::option::Option<QuorumCertificate>,
#[prost(message, optional, tag = "2")]
pub timeout_certificate: ::core::option::Option<TimeoutCertificate>,
#[prost(message, optional, tag = "3")]
pub epoch_finalization_entry: ::core::option::Option<EpochFinalizationEntry>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WinningBaker {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub winner: ::core::option::Option<BakerId>,
#[prost(bool, tag = "3")]
pub present: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunRequest {
#[prost(oneof = "dry_run_request::Request", tags = "1, 2, 3")]
pub request: ::core::option::Option<dry_run_request::Request>,
}
pub mod dry_run_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Request {
#[prost(message, tag = "1")]
LoadBlockState(super::BlockHashInput),
#[prost(message, tag = "2")]
StateQuery(super::DryRunStateQuery),
#[prost(message, tag = "3")]
StateOperation(super::DryRunStateOperation),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunStateQuery {
#[prost(oneof = "dry_run_state_query::Query", tags = "1, 2, 3")]
pub query: ::core::option::Option<dry_run_state_query::Query>,
}
pub mod dry_run_state_query {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag = "1")]
GetAccountInfo(super::AccountIdentifierInput),
#[prost(message, tag = "2")]
GetInstanceInfo(super::ContractAddress),
#[prost(message, tag = "3")]
InvokeInstance(super::DryRunInvokeInstance),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunInvokeInstance {
#[prost(message, optional, tag = "1")]
pub invoker: ::core::option::Option<Address>,
#[prost(message, optional, tag = "2")]
pub instance: ::core::option::Option<ContractAddress>,
#[prost(message, optional, tag = "3")]
pub amount: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "4")]
pub entrypoint: ::core::option::Option<ReceiveName>,
#[prost(message, optional, tag = "5")]
pub parameter: ::core::option::Option<Parameter>,
#[prost(message, optional, tag = "6")]
pub energy: ::core::option::Option<Energy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunStateOperation {
#[prost(oneof = "dry_run_state_operation::Operation", tags = "1, 2, 3")]
pub operation: ::core::option::Option<dry_run_state_operation::Operation>,
}
pub mod dry_run_state_operation {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Operation {
#[prost(message, tag = "1")]
SetTimestamp(super::Timestamp),
#[prost(message, tag = "2")]
MintToAccount(super::DryRunMintToAccount),
#[prost(message, tag = "3")]
RunTransaction(super::DryRunTransaction),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunMintToAccount {
#[prost(message, optional, tag = "1")]
pub account: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub amount: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunTransaction {
#[prost(message, optional, tag = "1")]
pub sender: ::core::option::Option<AccountAddress>,
#[prost(message, optional, tag = "2")]
pub energy_amount: ::core::option::Option<Energy>,
#[prost(message, optional, tag = "3")]
pub payload: ::core::option::Option<AccountTransactionPayload>,
#[prost(message, repeated, tag = "4")]
pub signatures: ::prost::alloc::vec::Vec<DryRunSignature>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DryRunSignature {
#[prost(uint32, tag = "1")]
pub credential: u32,
#[prost(uint32, tag = "2")]
pub key: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunResponse {
#[prost(message, optional, tag = "3")]
pub quota_remaining: ::core::option::Option<Energy>,
#[prost(oneof = "dry_run_response::Response", tags = "1, 2")]
pub response: ::core::option::Option<dry_run_response::Response>,
}
pub mod dry_run_response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "1")]
Error(super::DryRunErrorResponse),
#[prost(message, tag = "2")]
Success(super::DryRunSuccessResponse),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunErrorResponse {
#[prost(oneof = "dry_run_error_response::Error", tags = "1, 2, 3, 4, 5, 6, 8, 9")]
pub error: ::core::option::Option<dry_run_error_response::Error>,
}
pub mod dry_run_error_response {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NoState {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BlockNotFound {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AccountNotFound {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InstanceNotFound {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AmountOverLimit {
#[prost(message, optional, tag = "1")]
pub amount_limit: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BalanceInsufficient {
#[prost(message, optional, tag = "1")]
pub required_amount: ::core::option::Option<super::Amount>,
#[prost(message, optional, tag = "2")]
pub available_amount: ::core::option::Option<super::Amount>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EnergyInsufficient {
#[prost(message, optional, tag = "1")]
pub energy_required: ::core::option::Option<super::Energy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvokeFailure {
#[prost(bytes = "vec", optional, tag = "1")]
pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
#[prost(message, optional, tag = "2")]
pub used_energy: ::core::option::Option<super::Energy>,
#[prost(message, optional, tag = "3")]
pub reason: ::core::option::Option<super::RejectReason>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Error {
#[prost(message, tag = "1")]
NoState(NoState),
#[prost(message, tag = "2")]
BlockNotFound(BlockNotFound),
#[prost(message, tag = "3")]
AccountNotFound(AccountNotFound),
#[prost(message, tag = "4")]
InstanceNotFound(InstanceNotFound),
#[prost(message, tag = "5")]
AmountOverLimit(AmountOverLimit),
#[prost(message, tag = "6")]
BalanceInsufficient(BalanceInsufficient),
#[prost(message, tag = "8")]
EnergyInsufficient(EnergyInsufficient),
#[prost(message, tag = "9")]
InvokeFailed(InvokeFailure),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DryRunSuccessResponse {
#[prost(oneof = "dry_run_success_response::Response", tags = "1, 2, 3, 4, 5, 6, 7")]
pub response: ::core::option::Option<dry_run_success_response::Response>,
}
pub mod dry_run_success_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockStateLoaded {
#[prost(message, optional, tag = "1")]
pub current_timestamp: ::core::option::Option<super::Timestamp>,
#[prost(message, optional, tag = "2")]
pub block_hash: ::core::option::Option<super::BlockHash>,
#[prost(enumeration = "super::ProtocolVersion", tag = "3")]
pub protocol_version: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimestampSet {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MintedToAccount {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionExecuted {
#[prost(message, optional, tag = "1")]
pub energy_cost: ::core::option::Option<super::Energy>,
#[prost(message, optional, tag = "2")]
pub details: ::core::option::Option<super::AccountTransactionDetails>,
#[prost(bytes = "vec", optional, tag = "3")]
pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvokeSuccess {
#[prost(bytes = "vec", optional, tag = "1")]
pub return_value: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
#[prost(message, optional, tag = "2")]
pub used_energy: ::core::option::Option<super::Energy>,
#[prost(message, repeated, tag = "3")]
pub effects: ::prost::alloc::vec::Vec<super::ContractTraceElement>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "1")]
BlockStateLoaded(BlockStateLoaded),
#[prost(message, tag = "2")]
AccountInfo(super::AccountInfo),
#[prost(message, tag = "3")]
InstanceInfo(super::InstanceInfo),
#[prost(message, tag = "4")]
InvokeSucceeded(InvokeSuccess),
#[prost(message, tag = "5")]
TimestampSet(TimestampSet),
#[prost(message, tag = "6")]
MintedToAccount(MintedToAccount),
#[prost(message, tag = "7")]
TransactionExecuted(TransactionExecuted),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FinalizerIndex {
#[prost(uint32, tag = "1")]
pub value: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuorumMessage {
#[prost(message, optional, tag = "1")]
pub signature: ::core::option::Option<QuorumSignature>,
#[prost(message, optional, tag = "2")]
pub block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "3")]
pub finalizer: ::core::option::Option<FinalizerIndex>,
#[prost(message, optional, tag = "4")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "5")]
pub epoch: ::core::option::Option<Epoch>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawQuorumCertificate {
#[prost(message, optional, tag = "1")]
pub block_hash: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "3")]
pub epoch: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "4")]
pub aggregate_signature: ::core::option::Option<QuorumSignature>,
#[prost(message, repeated, tag = "5")]
pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockSignature {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutMessage {
#[prost(message, optional, tag = "1")]
pub finalizer: ::core::option::Option<FinalizerIndex>,
#[prost(message, optional, tag = "2")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "3")]
pub epoch: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "4")]
pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
#[prost(message, optional, tag = "5")]
pub signature: ::core::option::Option<TimeoutSignature>,
#[prost(message, optional, tag = "6")]
pub message_signature: ::core::option::Option<BlockSignature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawFinalizerRound {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, repeated, tag = "2")]
pub finalizers: ::prost::alloc::vec::Vec<FinalizerIndex>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawTimeoutCertificate {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub min_epoch: ::core::option::Option<Epoch>,
#[prost(message, repeated, tag = "3")]
pub qc_rounds_first_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
#[prost(message, repeated, tag = "4")]
pub qc_rounds_second_epoch: ::prost::alloc::vec::Vec<RawFinalizerRound>,
#[prost(message, optional, tag = "5")]
pub aggregate_signature: ::core::option::Option<TimeoutSignature>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PersistentRoundStatus {
#[prost(message, optional, tag = "1")]
pub last_signed_quorum_message: ::core::option::Option<QuorumMessage>,
#[prost(message, optional, tag = "2")]
pub last_signed_timeout_message: ::core::option::Option<TimeoutMessage>,
#[prost(message, optional, tag = "3")]
pub last_baked_round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "4")]
pub latest_timeout: ::core::option::Option<RawTimeoutCertificate>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoundTimeout {
#[prost(message, optional, tag = "1")]
pub timeout_certificate: ::core::option::Option<RawTimeoutCertificate>,
#[prost(message, optional, tag = "2")]
pub quorum_certificate: ::core::option::Option<RawQuorumCertificate>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RawFinalizationEntry {
#[prost(message, optional, tag = "1")]
pub finalized_qc: ::core::option::Option<RawQuorumCertificate>,
#[prost(message, optional, tag = "2")]
pub successor_qc: ::core::option::Option<RawQuorumCertificate>,
#[prost(message, optional, tag = "3")]
pub successor_proof: ::core::option::Option<SuccessorProof>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoundStatus {
#[prost(message, optional, tag = "1")]
pub current_round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub highest_certified_block: ::core::option::Option<RawQuorumCertificate>,
#[prost(message, optional, tag = "3")]
pub previous_round_timeout: ::core::option::Option<RoundTimeout>,
#[prost(bool, tag = "4")]
pub round_eligible_to_bake: bool,
#[prost(message, optional, tag = "5")]
pub current_epoch: ::core::option::Option<Epoch>,
#[prost(message, optional, tag = "6")]
pub last_epoch_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
#[prost(message, optional, tag = "7")]
pub current_timeout: ::core::option::Option<Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockTableSummary {
#[prost(uint64, tag = "1")]
pub dead_block_cache_size: u64,
#[prost(message, repeated, tag = "2")]
pub live_blocks: ::prost::alloc::vec::Vec<BlockHash>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BranchBlocks {
#[prost(message, repeated, tag = "1")]
pub blocks_at_branch_height: ::prost::alloc::vec::Vec<BlockHash>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoundExistingBlock {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub baker: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "3")]
pub block: ::core::option::Option<BlockHash>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoundExistingQc {
#[prost(message, optional, tag = "1")]
pub round: ::core::option::Option<Round>,
#[prost(message, optional, tag = "2")]
pub epoch: ::core::option::Option<Epoch>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FullBakerInfo {
#[prost(message, optional, tag = "1")]
pub baker_identity: ::core::option::Option<BakerId>,
#[prost(message, optional, tag = "2")]
pub election_verify_key: ::core::option::Option<BakerElectionVerifyKey>,
#[prost(message, optional, tag = "3")]
pub signature_verify_key: ::core::option::Option<BakerSignatureVerifyKey>,
#[prost(message, optional, tag = "4")]
pub aggregation_verify_key: ::core::option::Option<BakerAggregationVerifyKey>,
#[prost(message, optional, tag = "5")]
pub stake: ::core::option::Option<Amount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FinalizationCommitteeHash {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BakersAndFinalizers {
#[prost(message, repeated, tag = "1")]
pub bakers: ::prost::alloc::vec::Vec<FullBakerInfo>,
#[prost(message, repeated, tag = "2")]
pub finalizers: ::prost::alloc::vec::Vec<BakerId>,
#[prost(message, optional, tag = "3")]
pub baker_total_stake: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "4")]
pub finalizer_total_stake: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "5")]
pub finalization_committee_hash: ::core::option::Option<FinalizationCommitteeHash>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EpochBakers {
#[prost(message, optional, tag = "1")]
pub previous_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
#[prost(message, optional, tag = "2")]
pub current_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
#[prost(message, optional, tag = "3")]
pub next_epoch_bakers: ::core::option::Option<BakersAndFinalizers>,
#[prost(message, optional, tag = "4")]
pub next_payday: ::core::option::Option<Epoch>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutMessages {
#[prost(message, optional, tag = "1")]
pub first_epoch: ::core::option::Option<Epoch>,
#[prost(message, repeated, tag = "2")]
pub first_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
#[prost(message, repeated, tag = "3")]
pub second_epoch_timeouts: ::prost::alloc::vec::Vec<TimeoutMessage>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AggregatedSignatures {
#[prost(message, optional, tag = "1")]
pub signed_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub signature_weight: ::core::option::Option<Amount>,
#[prost(message, optional, tag = "3")]
pub aggregate_signature: ::core::option::Option<QuorumSignature>,
#[prost(message, repeated, tag = "4")]
pub signatories: ::prost::alloc::vec::Vec<FinalizerIndex>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QuorumMessages {
#[prost(message, repeated, tag = "1")]
pub quorum_messages: ::prost::alloc::vec::Vec<QuorumMessage>,
#[prost(message, repeated, tag = "2")]
pub aggregated_signatures: ::prost::alloc::vec::Vec<AggregatedSignatures>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConsensusDetailedStatusQuery {
#[prost(message, optional, tag = "1")]
pub genesis_index: ::core::option::Option<GenesisIndex>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsensusDetailedStatus {
#[prost(message, optional, tag = "1")]
pub genesis_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "2")]
pub persistent_round_status: ::core::option::Option<PersistentRoundStatus>,
#[prost(message, optional, tag = "3")]
pub round_status: ::core::option::Option<RoundStatus>,
#[prost(uint64, tag = "4")]
pub non_finalized_transaction_count: u64,
#[prost(int64, tag = "5")]
pub transaction_table_purge_counter: i64,
#[prost(message, optional, tag = "6")]
pub block_table: ::core::option::Option<BlockTableSummary>,
#[prost(message, repeated, tag = "7")]
pub branches: ::prost::alloc::vec::Vec<BranchBlocks>,
#[prost(message, repeated, tag = "8")]
pub round_existing_blocks: ::prost::alloc::vec::Vec<RoundExistingBlock>,
#[prost(message, repeated, tag = "9")]
pub round_existing_qcs: ::prost::alloc::vec::Vec<RoundExistingQc>,
#[prost(message, optional, tag = "10")]
pub genesis_block_height: ::core::option::Option<AbsoluteBlockHeight>,
#[prost(message, optional, tag = "11")]
pub last_finalized_block: ::core::option::Option<BlockHash>,
#[prost(message, optional, tag = "12")]
pub last_finalized_block_height: ::core::option::Option<BlockHeight>,
#[prost(message, optional, tag = "13")]
pub latest_finalization_entry: ::core::option::Option<RawFinalizationEntry>,
#[prost(message, optional, tag = "14")]
pub epoch_bakers: ::core::option::Option<EpochBakers>,
#[prost(message, optional, tag = "15")]
pub timeout_messages: ::core::option::Option<TimeoutMessages>,
#[prost(message, optional, tag = "16")]
pub terminal_block: ::core::option::Option<BlockHash>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AccountPending {
#[prost(message, optional, tag = "1")]
pub account_index: ::core::option::Option<AccountIndex>,
#[prost(message, optional, tag = "2")]
pub first_timestamp: ::core::option::Option<Timestamp>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpenStatus {
OpenForAll = 0,
ClosedForNew = 1,
ClosedForAll = 2,
}
impl OpenStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::OpenForAll => "OPEN_STATUS_OPEN_FOR_ALL",
Self::ClosedForNew => "OPEN_STATUS_CLOSED_FOR_NEW",
Self::ClosedForAll => "OPEN_STATUS_CLOSED_FOR_ALL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OPEN_STATUS_OPEN_FOR_ALL" => Some(Self::OpenForAll),
"OPEN_STATUS_CLOSED_FOR_NEW" => Some(Self::ClosedForNew),
"OPEN_STATUS_CLOSED_FOR_ALL" => Some(Self::ClosedForAll),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ContractVersion {
V0 = 0,
V1 = 1,
}
impl ContractVersion {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::V0 => "V0",
Self::V1 => "V1",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"V0" => Some(Self::V0),
"V1" => Some(Self::V1),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CredentialType {
Initial = 0,
Normal = 1,
}
impl CredentialType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Initial => "CREDENTIAL_TYPE_INITIAL",
Self::Normal => "CREDENTIAL_TYPE_NORMAL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CREDENTIAL_TYPE_INITIAL" => Some(Self::Initial),
"CREDENTIAL_TYPE_NORMAL" => Some(Self::Normal),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UpdateType {
UpdateProtocol = 0,
UpdateElectionDifficulty = 1,
UpdateEuroPerEnergy = 2,
UpdateMicroCcdPerEuro = 3,
UpdateFoundationAccount = 4,
UpdateMintDistribution = 5,
UpdateTransactionFeeDistribution = 6,
UpdateGasRewards = 7,
UpdatePoolParameters = 8,
AddAnonymityRevoker = 9,
AddIdentityProvider = 10,
UpdateRootKeys = 11,
UpdateLevel1Keys = 12,
UpdateLevel2Keys = 13,
UpdateCooldownParameters = 14,
UpdateTimeParameters = 15,
UpdateTimeoutParameters = 16,
UpdateMinBlockTime = 17,
UpdateBlockEnergyLimit = 18,
UpdateFinalizationCommitteeParameters = 19,
UpdateValidatorScoreParameters = 20,
UpdateCreatePlt = 21,
}
impl UpdateType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::UpdateProtocol => "UPDATE_PROTOCOL",
Self::UpdateElectionDifficulty => "UPDATE_ELECTION_DIFFICULTY",
Self::UpdateEuroPerEnergy => "UPDATE_EURO_PER_ENERGY",
Self::UpdateMicroCcdPerEuro => "UPDATE_MICRO_CCD_PER_EURO",
Self::UpdateFoundationAccount => "UPDATE_FOUNDATION_ACCOUNT",
Self::UpdateMintDistribution => "UPDATE_MINT_DISTRIBUTION",
Self::UpdateTransactionFeeDistribution => {
"UPDATE_TRANSACTION_FEE_DISTRIBUTION"
}
Self::UpdateGasRewards => "UPDATE_GAS_REWARDS",
Self::UpdatePoolParameters => "UPDATE_POOL_PARAMETERS",
Self::AddAnonymityRevoker => "ADD_ANONYMITY_REVOKER",
Self::AddIdentityProvider => "ADD_IDENTITY_PROVIDER",
Self::UpdateRootKeys => "UPDATE_ROOT_KEYS",
Self::UpdateLevel1Keys => "UPDATE_LEVEL1_KEYS",
Self::UpdateLevel2Keys => "UPDATE_LEVEL2_KEYS",
Self::UpdateCooldownParameters => "UPDATE_COOLDOWN_PARAMETERS",
Self::UpdateTimeParameters => "UPDATE_TIME_PARAMETERS",
Self::UpdateTimeoutParameters => "UPDATE_TIMEOUT_PARAMETERS",
Self::UpdateMinBlockTime => "UPDATE_MIN_BLOCK_TIME",
Self::UpdateBlockEnergyLimit => "UPDATE_BLOCK_ENERGY_LIMIT",
Self::UpdateFinalizationCommitteeParameters => {
"UPDATE_FINALIZATION_COMMITTEE_PARAMETERS"
}
Self::UpdateValidatorScoreParameters => "UPDATE_VALIDATOR_SCORE_PARAMETERS",
Self::UpdateCreatePlt => "UPDATE_CREATE_PLT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UPDATE_PROTOCOL" => Some(Self::UpdateProtocol),
"UPDATE_ELECTION_DIFFICULTY" => Some(Self::UpdateElectionDifficulty),
"UPDATE_EURO_PER_ENERGY" => Some(Self::UpdateEuroPerEnergy),
"UPDATE_MICRO_CCD_PER_EURO" => Some(Self::UpdateMicroCcdPerEuro),
"UPDATE_FOUNDATION_ACCOUNT" => Some(Self::UpdateFoundationAccount),
"UPDATE_MINT_DISTRIBUTION" => Some(Self::UpdateMintDistribution),
"UPDATE_TRANSACTION_FEE_DISTRIBUTION" => {
Some(Self::UpdateTransactionFeeDistribution)
}
"UPDATE_GAS_REWARDS" => Some(Self::UpdateGasRewards),
"UPDATE_POOL_PARAMETERS" => Some(Self::UpdatePoolParameters),
"ADD_ANONYMITY_REVOKER" => Some(Self::AddAnonymityRevoker),
"ADD_IDENTITY_PROVIDER" => Some(Self::AddIdentityProvider),
"UPDATE_ROOT_KEYS" => Some(Self::UpdateRootKeys),
"UPDATE_LEVEL1_KEYS" => Some(Self::UpdateLevel1Keys),
"UPDATE_LEVEL2_KEYS" => Some(Self::UpdateLevel2Keys),
"UPDATE_COOLDOWN_PARAMETERS" => Some(Self::UpdateCooldownParameters),
"UPDATE_TIME_PARAMETERS" => Some(Self::UpdateTimeParameters),
"UPDATE_TIMEOUT_PARAMETERS" => Some(Self::UpdateTimeoutParameters),
"UPDATE_MIN_BLOCK_TIME" => Some(Self::UpdateMinBlockTime),
"UPDATE_BLOCK_ENERGY_LIMIT" => Some(Self::UpdateBlockEnergyLimit),
"UPDATE_FINALIZATION_COMMITTEE_PARAMETERS" => {
Some(Self::UpdateFinalizationCommitteeParameters)
}
"UPDATE_VALIDATOR_SCORE_PARAMETERS" => {
Some(Self::UpdateValidatorScoreParameters)
}
"UPDATE_CREATE_PLT" => Some(Self::UpdateCreatePlt),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TransactionType {
DeployModule = 0,
InitContract = 1,
Update = 2,
Transfer = 3,
AddBaker = 4,
RemoveBaker = 5,
UpdateBakerStake = 6,
UpdateBakerRestakeEarnings = 7,
UpdateBakerKeys = 8,
UpdateCredentialKeys = 9,
EncryptedAmountTransfer = 10,
TransferToEncrypted = 11,
TransferToPublic = 12,
TransferWithSchedule = 13,
UpdateCredentials = 14,
RegisterData = 15,
TransferWithMemo = 16,
EncryptedAmountTransferWithMemo = 17,
TransferWithScheduleAndMemo = 18,
ConfigureBaker = 19,
ConfigureDelegation = 20,
TokenUpdate = 21,
}
impl TransactionType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::DeployModule => "DEPLOY_MODULE",
Self::InitContract => "INIT_CONTRACT",
Self::Update => "UPDATE",
Self::Transfer => "TRANSFER",
Self::AddBaker => "ADD_BAKER",
Self::RemoveBaker => "REMOVE_BAKER",
Self::UpdateBakerStake => "UPDATE_BAKER_STAKE",
Self::UpdateBakerRestakeEarnings => "UPDATE_BAKER_RESTAKE_EARNINGS",
Self::UpdateBakerKeys => "UPDATE_BAKER_KEYS",
Self::UpdateCredentialKeys => "UPDATE_CREDENTIAL_KEYS",
Self::EncryptedAmountTransfer => "ENCRYPTED_AMOUNT_TRANSFER",
Self::TransferToEncrypted => "TRANSFER_TO_ENCRYPTED",
Self::TransferToPublic => "TRANSFER_TO_PUBLIC",
Self::TransferWithSchedule => "TRANSFER_WITH_SCHEDULE",
Self::UpdateCredentials => "UPDATE_CREDENTIALS",
Self::RegisterData => "REGISTER_DATA",
Self::TransferWithMemo => "TRANSFER_WITH_MEMO",
Self::EncryptedAmountTransferWithMemo => {
"ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO"
}
Self::TransferWithScheduleAndMemo => "TRANSFER_WITH_SCHEDULE_AND_MEMO",
Self::ConfigureBaker => "CONFIGURE_BAKER",
Self::ConfigureDelegation => "CONFIGURE_DELEGATION",
Self::TokenUpdate => "TOKEN_UPDATE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DEPLOY_MODULE" => Some(Self::DeployModule),
"INIT_CONTRACT" => Some(Self::InitContract),
"UPDATE" => Some(Self::Update),
"TRANSFER" => Some(Self::Transfer),
"ADD_BAKER" => Some(Self::AddBaker),
"REMOVE_BAKER" => Some(Self::RemoveBaker),
"UPDATE_BAKER_STAKE" => Some(Self::UpdateBakerStake),
"UPDATE_BAKER_RESTAKE_EARNINGS" => Some(Self::UpdateBakerRestakeEarnings),
"UPDATE_BAKER_KEYS" => Some(Self::UpdateBakerKeys),
"UPDATE_CREDENTIAL_KEYS" => Some(Self::UpdateCredentialKeys),
"ENCRYPTED_AMOUNT_TRANSFER" => Some(Self::EncryptedAmountTransfer),
"TRANSFER_TO_ENCRYPTED" => Some(Self::TransferToEncrypted),
"TRANSFER_TO_PUBLIC" => Some(Self::TransferToPublic),
"TRANSFER_WITH_SCHEDULE" => Some(Self::TransferWithSchedule),
"UPDATE_CREDENTIALS" => Some(Self::UpdateCredentials),
"REGISTER_DATA" => Some(Self::RegisterData),
"TRANSFER_WITH_MEMO" => Some(Self::TransferWithMemo),
"ENCRYPTED_AMOUNT_TRANSFER_WITH_MEMO" => {
Some(Self::EncryptedAmountTransferWithMemo)
}
"TRANSFER_WITH_SCHEDULE_AND_MEMO" => Some(Self::TransferWithScheduleAndMemo),
"CONFIGURE_BAKER" => Some(Self::ConfigureBaker),
"CONFIGURE_DELEGATION" => Some(Self::ConfigureDelegation),
"TOKEN_UPDATE" => Some(Self::TokenUpdate),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProtocolVersion {
ProtocolVersion1 = 0,
ProtocolVersion2 = 1,
ProtocolVersion3 = 2,
ProtocolVersion4 = 3,
ProtocolVersion5 = 4,
ProtocolVersion6 = 5,
ProtocolVersion7 = 6,
ProtocolVersion8 = 7,
ProtocolVersion9 = 8,
ProtocolVersion10 = 9,
}
impl ProtocolVersion {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::ProtocolVersion1 => "PROTOCOL_VERSION_1",
Self::ProtocolVersion2 => "PROTOCOL_VERSION_2",
Self::ProtocolVersion3 => "PROTOCOL_VERSION_3",
Self::ProtocolVersion4 => "PROTOCOL_VERSION_4",
Self::ProtocolVersion5 => "PROTOCOL_VERSION_5",
Self::ProtocolVersion6 => "PROTOCOL_VERSION_6",
Self::ProtocolVersion7 => "PROTOCOL_VERSION_7",
Self::ProtocolVersion8 => "PROTOCOL_VERSION_8",
Self::ProtocolVersion9 => "PROTOCOL_VERSION_9",
Self::ProtocolVersion10 => "PROTOCOL_VERSION_10",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROTOCOL_VERSION_1" => Some(Self::ProtocolVersion1),
"PROTOCOL_VERSION_2" => Some(Self::ProtocolVersion2),
"PROTOCOL_VERSION_3" => Some(Self::ProtocolVersion3),
"PROTOCOL_VERSION_4" => Some(Self::ProtocolVersion4),
"PROTOCOL_VERSION_5" => Some(Self::ProtocolVersion5),
"PROTOCOL_VERSION_6" => Some(Self::ProtocolVersion6),
"PROTOCOL_VERSION_7" => Some(Self::ProtocolVersion7),
"PROTOCOL_VERSION_8" => Some(Self::ProtocolVersion8),
"PROTOCOL_VERSION_9" => Some(Self::ProtocolVersion9),
"PROTOCOL_VERSION_10" => Some(Self::ProtocolVersion10),
_ => None,
}
}
}
pub mod queries_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct QueriesClient<T> {
inner: tonic::client::Grpc<T>,
}
impl QueriesClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> QueriesClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> QueriesClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
QueriesClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn get_blocks(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ArrivedBlockInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlocks",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocks"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_finalized_blocks(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::FinalizedBlockInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetFinalizedBlocks",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetFinalizedBlocks"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_account_info(
&mut self,
request: impl tonic::IntoRequest<super::AccountInfoRequest>,
) -> std::result::Result<tonic::Response<super::AccountInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAccountInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_token_info(
&mut self,
request: impl tonic::IntoRequest<super::TokenInfoRequest>,
) -> std::result::Result<tonic::Response<super::TokenInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetTokenInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_account_list(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::AccountAddress>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAccountList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetAccountList"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_token_list(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::plt::TokenId>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetTokenList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenList"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_module_list(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ModuleRef>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetModuleList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleList"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_ancestors(
&mut self,
request: impl tonic::IntoRequest<super::AncestorsRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BlockHash>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAncestors",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetAncestors"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_module_source(
&mut self,
request: impl tonic::IntoRequest<super::ModuleSourceRequest>,
) -> std::result::Result<
tonic::Response<super::VersionedModuleSource>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetModuleSource",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetModuleSource"));
self.inner.unary(req, path, codec).await
}
pub async fn get_instance_list(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ContractAddress>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetInstanceList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceList"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_instance_info(
&mut self,
request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
) -> std::result::Result<tonic::Response<super::InstanceInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetInstanceInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_instance_state(
&mut self,
request: impl tonic::IntoRequest<super::InstanceInfoRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::InstanceStateKvPair>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetInstanceState",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetInstanceState"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn instance_state_lookup(
&mut self,
request: impl tonic::IntoRequest<super::InstanceStateLookupRequest>,
) -> std::result::Result<
tonic::Response<super::InstanceStateValueAtKey>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/InstanceStateLookup",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "InstanceStateLookup"));
self.inner.unary(req, path, codec).await
}
pub async fn get_next_account_sequence_number(
&mut self,
request: impl tonic::IntoRequest<super::AccountAddress>,
) -> std::result::Result<
tonic::Response<super::NextAccountSequenceNumber>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetNextAccountSequenceNumber",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetNextAccountSequenceNumber",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_consensus_info(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::ConsensusInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetConsensusInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetConsensusInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_block_item_status(
&mut self,
request: impl tonic::IntoRequest<super::TransactionHash>,
) -> std::result::Result<
tonic::Response<super::BlockItemStatus>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockItemStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItemStatus"));
self.inner.unary(req, path, codec).await
}
pub async fn get_cryptographic_parameters(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::CryptographicParameters>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetCryptographicParameters",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetCryptographicParameters",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_block_info(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<tonic::Response<super::BlockInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_baker_list(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BakerId>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBakerList",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBakerList"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_pool_info(
&mut self,
request: impl tonic::IntoRequest<super::PoolInfoRequest>,
) -> std::result::Result<
tonic::Response<super::PoolInfoResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPoolInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_passive_delegation_info(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::PassiveDelegationInfo>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPassiveDelegationInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegationInfo"),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_blocks_at_height(
&mut self,
request: impl tonic::IntoRequest<super::BlocksAtHeightRequest>,
) -> std::result::Result<
tonic::Response<super::BlocksAtHeightResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlocksAtHeight",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBlocksAtHeight"));
self.inner.unary(req, path, codec).await
}
pub async fn get_tokenomics_info(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<tonic::Response<super::TokenomicsInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetTokenomicsInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetTokenomicsInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn invoke_instance(
&mut self,
request: impl tonic::IntoRequest<super::InvokeInstanceRequest>,
) -> std::result::Result<
tonic::Response<super::InvokeInstanceResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/InvokeInstance",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "InvokeInstance"));
self.inner.unary(req, path, codec).await
}
pub async fn get_pool_delegators(
&mut self,
request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPoolDelegators",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetPoolDelegators"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_pool_delegators_reward_period(
&mut self,
request: impl tonic::IntoRequest<super::GetPoolDelegatorsRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPoolDelegatorsRewardPeriod",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetPoolDelegatorsRewardPeriod",
),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_passive_delegators(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::DelegatorInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPassiveDelegators",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetPassiveDelegators"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_passive_delegators_reward_period(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::DelegatorRewardPeriodInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPassiveDelegatorsRewardPeriod",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetPassiveDelegatorsRewardPeriod",
),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_branches(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::Branch>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBranches",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBranches"));
self.inner.unary(req, path, codec).await
}
pub async fn get_election_info(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<tonic::Response<super::ElectionInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetElectionInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetElectionInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_identity_providers(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::IpInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetIdentityProviders",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetIdentityProviders"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_anonymity_revokers(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ArInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAnonymityRevokers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetAnonymityRevokers"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_account_non_finalized_transactions(
&mut self,
request: impl tonic::IntoRequest<super::AccountAddress>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::TransactionHash>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAccountNonFinalizedTransactions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetAccountNonFinalizedTransactions",
),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_block_transaction_events(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BlockItemSummary>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockTransactionEvents",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBlockTransactionEvents"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_block_special_events(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BlockSpecialEvent>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockSpecialEvents",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBlockSpecialEvents"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_block_pending_updates(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::PendingUpdate>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockPendingUpdates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBlockPendingUpdates"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_next_update_sequence_numbers(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::NextUpdateSequenceNumbers>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetNextUpdateSequenceNumbers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetNextUpdateSequenceNumbers",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_scheduled_release_accounts(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetScheduledReleaseAccounts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetScheduledReleaseAccounts",
),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_cooldown_accounts(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::AccountPending>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetCooldownAccounts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetCooldownAccounts"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_pre_cooldown_accounts(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPreCooldownAccounts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetPreCooldownAccounts"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_pre_pre_cooldown_accounts(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::AccountIndex>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPrePreCooldownAccounts",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetPrePreCooldownAccounts"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_baker_earliest_win_time(
&mut self,
request: impl tonic::IntoRequest<super::BakerId>,
) -> std::result::Result<tonic::Response<super::Timestamp>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBakerEarliestWinTime",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBakerEarliestWinTime"),
);
self.inner.unary(req, path, codec).await
}
pub async fn shutdown(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/Shutdown",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "Shutdown"));
self.inner.unary(req, path, codec).await
}
pub async fn peer_connect(
&mut self,
request: impl tonic::IntoRequest<super::IpSocketAddress>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/PeerConnect",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "PeerConnect"));
self.inner.unary(req, path, codec).await
}
pub async fn peer_disconnect(
&mut self,
request: impl tonic::IntoRequest<super::IpSocketAddress>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/PeerDisconnect",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "PeerDisconnect"));
self.inner.unary(req, path, codec).await
}
pub async fn get_banned_peers(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::BannedPeers>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBannedPeers",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBannedPeers"));
self.inner.unary(req, path, codec).await
}
pub async fn ban_peer(
&mut self,
request: impl tonic::IntoRequest<super::PeerToBan>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/BanPeer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "BanPeer"));
self.inner.unary(req, path, codec).await
}
pub async fn unban_peer(
&mut self,
request: impl tonic::IntoRequest<super::BannedPeer>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/UnbanPeer",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "UnbanPeer"));
self.inner.unary(req, path, codec).await
}
pub async fn dump_start(
&mut self,
request: impl tonic::IntoRequest<super::DumpRequest>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/DumpStart",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "DumpStart"));
self.inner.unary(req, path, codec).await
}
pub async fn dump_stop(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::Empty>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/DumpStop",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "DumpStop"));
self.inner.unary(req, path, codec).await
}
pub async fn get_peers_info(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::PeersInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetPeersInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetPeersInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn get_node_info(
&mut self,
request: impl tonic::IntoRequest<super::Empty>,
) -> std::result::Result<tonic::Response<super::NodeInfo>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetNodeInfo",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetNodeInfo"));
self.inner.unary(req, path, codec).await
}
pub async fn send_block_item(
&mut self,
request: impl tonic::IntoRequest<super::SendBlockItemRequest>,
) -> std::result::Result<
tonic::Response<super::TransactionHash>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/SendBlockItem",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "SendBlockItem"));
self.inner.unary(req, path, codec).await
}
pub async fn get_account_transaction_sign_hash(
&mut self,
request: impl tonic::IntoRequest<super::PreAccountTransaction>,
) -> std::result::Result<
tonic::Response<super::AccountTransactionSignHash>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAccountTransactionSignHash",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetAccountTransactionSignHash",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_account_transaction_v1_sign_hash(
&mut self,
request: impl tonic::IntoRequest<super::PreAccountTransactionV1>,
) -> std::result::Result<
tonic::Response<super::AccountTransactionSignHash>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetAccountTransactionV1SignHash",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetAccountTransactionV1SignHash",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_block_chain_parameters(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::ChainParameters>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockChainParameters",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBlockChainParameters"),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_block_finalization_summary(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::BlockFinalizationSummary>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockFinalizationSummary",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetBlockFinalizationSummary",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_block_items(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BlockItem>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockItems",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetBlockItems"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_bakers_reward_period(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::BakerRewardPeriodInfo>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBakersRewardPeriod",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBakersRewardPeriod"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_block_certificates(
&mut self,
request: impl tonic::IntoRequest<super::BlockHashInput>,
) -> std::result::Result<
tonic::Response<super::BlockCertificates>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetBlockCertificates",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetBlockCertificates"),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_winning_bakers_epoch(
&mut self,
request: impl tonic::IntoRequest<super::EpochRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::WinningBaker>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetWinningBakersEpoch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("concordium.v2.Queries", "GetWinningBakersEpoch"),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn get_first_block_epoch(
&mut self,
request: impl tonic::IntoRequest<super::EpochRequest>,
) -> std::result::Result<tonic::Response<super::BlockHash>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetFirstBlockEpoch",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "GetFirstBlockEpoch"));
self.inner.unary(req, path, codec).await
}
pub async fn get_consensus_detailed_status(
&mut self,
request: impl tonic::IntoRequest<super::ConsensusDetailedStatusQuery>,
) -> std::result::Result<
tonic::Response<super::ConsensusDetailedStatus>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/GetConsensusDetailedStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"concordium.v2.Queries",
"GetConsensusDetailedStatus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn dry_run(
&mut self,
request: impl tonic::IntoStreamingRequest<Message = super::DryRunRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::DryRunResponse>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/concordium.v2.Queries/DryRun",
);
let mut req = request.into_streaming_request();
req.extensions_mut()
.insert(GrpcMethod::new("concordium.v2.Queries", "DryRun"));
self.inner.streaming(req, path, codec).await
}
}
}