qorechain-sdk 0.5.0

QoreChain SDK for Rust: networks, denom/address utils, HD accounts (native/EVM/SVM), ML-DSA-87 PQC signing, typed messages for all custom modules, tx lifecycle (auto-gas, tracking, search), typed queries, WS subscriptions, and REST/JSON-RPC read clients.
Documentation
// @generated
// This file is @generated by prost-build.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryObservationRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryObservationResponse {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(string, repeated, tag="2")]
    pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryRewardRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRewardResponse {
    #[prost(int64, tag="1")]
    pub height: i64,
    #[prost(string, tag="2")]
    pub total_reward: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub throughput_delta: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub finality_delta: ::prost::alloc::string::String,
    #[prost(string, tag="5")]
    pub decentralization_delta: ::prost::alloc::string::String,
    #[prost(string, tag="6")]
    pub mev_estimate: ::prost::alloc::string::String,
    #[prost(string, tag="7")]
    pub failed_tx_ratio: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryPolicyRequest {
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryPolicyResponse {
    #[prost(uint64, tag="1")]
    pub epoch: u64,
    #[prost(int64, tag="2")]
    pub updated_at: i64,
    #[prost(uint64, tag="3")]
    pub weight_count: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryAgentStatusRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAgentStatusResponse {
    #[prost(string, tag="1")]
    pub mode: ::prost::alloc::string::String,
    #[prost(uint64, tag="2")]
    pub current_epoch: u64,
    #[prost(uint64, tag="3")]
    pub total_steps: u64,
    #[prost(int64, tag="4")]
    pub last_observation_at: i64,
    #[prost(int64, tag="5")]
    pub last_action_at: i64,
    #[prost(bool, tag="6")]
    pub circuit_breaker_active: bool,
    #[prost(int64, tag="7")]
    pub blocks_since_revert: i64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryParamsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsResponse {
    #[prost(bool, tag="1")]
    pub enabled: bool,
    #[prost(uint64, tag="2")]
    pub observation_interval: u64,
    #[prost(string, tag="3")]
    pub agent_mode: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub max_change_conservative: ::prost::alloc::string::String,
    #[prost(string, tag="5")]
    pub max_change_autonomous: ::prost::alloc::string::String,
    #[prost(uint64, tag="6")]
    pub circuit_breaker_window: u64,
    #[prost(string, tag="7")]
    pub circuit_breaker_threshold: ::prost::alloc::string::String,
    /// Reward weights (flattened to avoid clashing with the hand-written
    /// types.RewardWeights struct used in genesis state).
    #[prost(string, tag="8")]
    pub reward_weight_throughput: ::prost::alloc::string::String,
    #[prost(string, tag="9")]
    pub reward_weight_finality: ::prost::alloc::string::String,
    #[prost(string, tag="10")]
    pub reward_weight_decentralization: ::prost::alloc::string::String,
    #[prost(string, tag="11")]
    pub reward_weight_mev: ::prost::alloc::string::String,
    #[prost(string, tag="12")]
    pub reward_weight_failed_txs: ::prost::alloc::string::String,
    #[prost(int64, tag="13")]
    pub default_block_time_ms: i64,
    #[prost(string, tag="14")]
    pub default_base_gas_price: ::prost::alloc::string::String,
    #[prost(uint64, tag="15")]
    pub default_validator_set_size: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSetAgentMode {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    /// mode cast to the named AgentMode (uint8) Go type.
    #[prost(uint32, tag="2")]
    pub mode: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgSetAgentModeResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgResumeAgent {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgResumeAgentResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdatePolicy {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    /// JSON-encoded types.PolicyWeights (epoch + MLP config + weight vector).
    #[prost(string, tag="2")]
    pub weights_json: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgUpdatePolicyResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgUpdateRewardWeights {
    #[prost(string, tag="1")]
    pub authority: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub throughput: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub finality: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub decentralization: ::prost::alloc::string::String,
    #[prost(string, tag="5")]
    pub mev: ::prost::alloc::string::String,
    #[prost(string, tag="6")]
    pub failed_txs: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgUpdateRewardWeightsResponse {
}
// @@protoc_insertion_point(module)