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.
/// ParamsView is the query-facing view of the module parameters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParamsView {
    #[prost(uint32, tag="1")]
    pub max_rollups: u32,
    #[prost(int64, tag="2")]
    pub min_stake_for_rollup: i64,
    #[prost(string, tag="3")]
    pub rollup_creation_burn_rate: ::prost::alloc::string::String,
    #[prost(uint64, tag="4")]
    pub default_challenge_window: u64,
    #[prost(uint64, tag="5")]
    pub max_da_blob_size: u64,
    #[prost(uint64, tag="6")]
    pub blob_retention_blocks: u64,
    #[prost(uint32, tag="7")]
    pub max_batches_per_block: u32,
}
/// RollupView is the query-facing view of a rollup config (scalar fields).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollupView {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub creator: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub profile: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub settlement_mode: ::prost::alloc::string::String,
    #[prost(string, tag="5")]
    pub da_backend: ::prost::alloc::string::String,
    #[prost(uint64, tag="6")]
    pub block_time_ms: u64,
    #[prost(uint64, tag="7")]
    pub max_tx_per_block: u64,
    #[prost(string, tag="8")]
    pub vm_type: ::prost::alloc::string::String,
    #[prost(string, tag="9")]
    pub status: ::prost::alloc::string::String,
    #[prost(int64, tag="10")]
    pub stake_amount: i64,
    #[prost(string, tag="11")]
    pub layer_id: ::prost::alloc::string::String,
    #[prost(int64, tag="12")]
    pub created_height: i64,
}
/// BatchView is the query-facing view of a settlement batch.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchView {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="2")]
    pub batch_index: u64,
    #[prost(string, tag="3")]
    pub state_root: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub prev_state_root: ::prost::alloc::string::String,
    #[prost(uint64, tag="5")]
    pub tx_count: u64,
    #[prost(string, tag="6")]
    pub data_hash: ::prost::alloc::string::String,
    #[prost(string, tag="7")]
    pub proof_type: ::prost::alloc::string::String,
    #[prost(string, tag="8")]
    pub status: ::prost::alloc::string::String,
    #[prost(int64, tag="9")]
    pub submitted_at: i64,
    #[prost(int64, tag="10")]
    pub finalized_at: i64,
    #[prost(string, tag="11")]
    pub withdrawals_root: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryParamsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsResponse {
    #[prost(message, optional, tag="1")]
    pub params: ::core::option::Option<ParamsView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRollupRequest {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRollupResponse {
    #[prost(message, optional, tag="1")]
    pub rollup: ::core::option::Option<RollupView>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryRollupsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRollupsResponse {
    #[prost(message, repeated, tag="1")]
    pub rollups: ::prost::alloc::vec::Vec<RollupView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryBatchRequest {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="2")]
    pub batch_index: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryBatchResponse {
    #[prost(message, optional, tag="1")]
    pub batch: ::core::option::Option<BatchView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryLatestBatchRequest {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryLatestBatchResponse {
    #[prost(message, optional, tag="1")]
    pub batch: ::core::option::Option<BatchView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgCreateRollup {
    #[prost(string, tag="1")]
    pub creator: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub profile: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub vm_type: ::prost::alloc::string::String,
    #[prost(int64, tag="5")]
    pub stake_amount: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgCreateRollupResponse {
    #[prost(string, tag="1")]
    pub rollup_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSubmitBatch {
    #[prost(string, tag="1")]
    pub sequencer: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="3")]
    pub batch_index: u64,
    #[prost(bytes="vec", tag="4")]
    pub state_root: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes="vec", tag="5")]
    pub prev_state_root: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint64, tag="6")]
    pub tx_count: u64,
    #[prost(bytes="vec", tag="7")]
    pub data_hash: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes="vec", tag="8")]
    pub proof: ::prost::alloc::vec::Vec<u8>,
    /// withdrawals_root commits the L2->L1 messages (withdrawals) in this batch as
    /// a binary Merkle root. Empty when the batch carries no cross-layer messages.
    #[prost(bytes="vec", tag="9")]
    pub withdrawals_root: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgSubmitBatchResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgChallengeBatch {
    #[prost(string, tag="1")]
    pub challenger: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="3")]
    pub batch_index: u64,
    #[prost(bytes="vec", tag="4")]
    pub proof: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgChallengeBatchResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgResolveChallenge {
    #[prost(string, tag="1")]
    pub resolver: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="3")]
    pub batch_index: u64,
    /// fraud_upheld true: fraud confirmed -> batch rejected, challenger refunded +
    /// rewarded from rollup stake. false: challenge dismissed -> challenger bond
    /// forfeited to the rollup operator, batch eligible for finalization.
    #[prost(bool, tag="4")]
    pub fraud_upheld: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgResolveChallengeResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgPauseRollup {
    #[prost(string, tag="1")]
    pub creator: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub reason: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgPauseRollupResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgResumeRollup {
    #[prost(string, tag="1")]
    pub creator: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgResumeRollupResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgStopRollup {
    #[prost(string, tag="1")]
    pub creator: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgStopRollupResponse {
}
/// MsgExecuteWithdrawal finalizes an L2->L1 cross-layer message: it proves a
/// withdrawal leaf is committed in a finalized batch's withdrawals_root and pays
/// the recipient from the rdk module escrow. Permissionless — anyone may submit a
/// valid proof; the funds always go to the committed recipient. Replay-protected
/// per (rollup_id, batch_index, withdrawal_index).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgExecuteWithdrawal {
    #[prost(string, tag="1")]
    pub submitter: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub rollup_id: ::prost::alloc::string::String,
    #[prost(uint64, tag="3")]
    pub batch_index: u64,
    #[prost(uint64, tag="4")]
    pub withdrawal_index: u64,
    #[prost(string, tag="5")]
    pub recipient: ::prost::alloc::string::String,
    #[prost(string, tag="6")]
    pub denom: ::prost::alloc::string::String,
    #[prost(int64, tag="7")]
    pub amount: i64,
    /// proof are the binary-Merkle sibling hashes from the leaf to withdrawals_root.
    #[prost(bytes="vec", repeated, tag="8")]
    pub proof: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MsgExecuteWithdrawalResponse {
}
// @@protoc_insertion_point(module)