2020-09-30 10:55:22 -07:00
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct ConfirmedBlock {
|
|
|
|
#[prost(string, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub previous_blockhash: ::prost::alloc::string::String,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(string, tag = "2")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub blockhash: ::prost::alloc::string::String,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(uint64, tag = "3")]
|
|
|
|
pub parent_slot: u64,
|
|
|
|
#[prost(message, repeated, tag = "4")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub transactions: ::prost::alloc::vec::Vec<ConfirmedTransaction>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, repeated, tag = "5")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub rewards: ::prost::alloc::vec::Vec<Reward>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, optional, tag = "6")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub block_time: ::core::option::Option<UnixTimestamp>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct ConfirmedTransaction {
|
|
|
|
#[prost(message, optional, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub transaction: ::core::option::Option<Transaction>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, optional, tag = "2")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub meta: ::core::option::Option<TransactionStatusMeta>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct Transaction {
|
2021-02-04 23:21:53 -08:00
|
|
|
#[prost(bytes = "vec", repeated, tag = "1")]
|
|
|
|
pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, optional, tag = "2")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub message: ::core::option::Option<Message>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct Message {
|
|
|
|
#[prost(message, optional, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub header: ::core::option::Option<MessageHeader>,
|
|
|
|
#[prost(bytes = "vec", repeated, tag = "2")]
|
|
|
|
pub account_keys: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
|
|
|
|
#[prost(bytes = "vec", tag = "3")]
|
|
|
|
pub recent_blockhash: ::prost::alloc::vec::Vec<u8>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, repeated, tag = "4")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub instructions: ::prost::alloc::vec::Vec<CompiledInstruction>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct MessageHeader {
|
|
|
|
#[prost(uint32, tag = "1")]
|
|
|
|
pub num_required_signatures: u32,
|
|
|
|
#[prost(uint32, tag = "2")]
|
|
|
|
pub num_readonly_signed_accounts: u32,
|
|
|
|
#[prost(uint32, tag = "3")]
|
|
|
|
pub num_readonly_unsigned_accounts: u32,
|
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct TransactionStatusMeta {
|
|
|
|
#[prost(message, optional, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub err: ::core::option::Option<TransactionError>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(uint64, tag = "2")]
|
|
|
|
pub fee: u64,
|
|
|
|
#[prost(uint64, repeated, tag = "3")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub pre_balances: ::prost::alloc::vec::Vec<u64>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(uint64, repeated, tag = "4")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub post_balances: ::prost::alloc::vec::Vec<u64>,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(message, repeated, tag = "5")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub inner_instructions: ::prost::alloc::vec::Vec<InnerInstructions>,
|
2020-10-13 17:11:52 -07:00
|
|
|
#[prost(string, repeated, tag = "6")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub log_messages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
2020-12-10 19:25:07 -08:00
|
|
|
#[prost(message, repeated, tag = "7")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub pre_token_balances: ::prost::alloc::vec::Vec<TokenBalance>,
|
2020-12-10 19:25:07 -08:00
|
|
|
#[prost(message, repeated, tag = "8")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub post_token_balances: ::prost::alloc::vec::Vec<TokenBalance>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct TransactionError {
|
2021-02-04 23:21:53 -08:00
|
|
|
#[prost(bytes = "vec", tag = "1")]
|
|
|
|
pub err: ::prost::alloc::vec::Vec<u8>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct InnerInstructions {
|
|
|
|
#[prost(uint32, tag = "1")]
|
|
|
|
pub index: u32,
|
|
|
|
#[prost(message, repeated, tag = "2")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub instructions: ::prost::alloc::vec::Vec<CompiledInstruction>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct CompiledInstruction {
|
|
|
|
#[prost(uint32, tag = "1")]
|
|
|
|
pub program_id_index: u32,
|
2021-02-04 23:21:53 -08:00
|
|
|
#[prost(bytes = "vec", tag = "2")]
|
|
|
|
pub accounts: ::prost::alloc::vec::Vec<u8>,
|
|
|
|
#[prost(bytes = "vec", tag = "3")]
|
|
|
|
pub data: ::prost::alloc::vec::Vec<u8>,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
2020-12-10 19:25:07 -08:00
|
|
|
pub struct TokenBalance {
|
|
|
|
#[prost(uint32, tag = "1")]
|
|
|
|
pub account_index: u32,
|
|
|
|
#[prost(string, tag = "2")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub mint: ::prost::alloc::string::String,
|
2020-12-10 19:25:07 -08:00
|
|
|
#[prost(message, optional, tag = "3")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub ui_token_amount: ::core::option::Option<UiTokenAmount>,
|
2020-12-10 19:25:07 -08:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
|
|
pub struct UiTokenAmount {
|
|
|
|
#[prost(double, tag = "1")]
|
|
|
|
pub ui_amount: f64,
|
|
|
|
#[prost(uint32, tag = "2")]
|
|
|
|
pub decimals: u32,
|
|
|
|
#[prost(string, tag = "3")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub amount: ::prost::alloc::string::String,
|
2020-12-10 19:25:07 -08:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
2020-09-30 10:55:22 -07:00
|
|
|
pub struct Reward {
|
|
|
|
#[prost(string, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub pubkey: ::prost::alloc::string::String,
|
2020-09-30 10:55:22 -07:00
|
|
|
#[prost(int64, tag = "2")]
|
|
|
|
pub lamports: i64,
|
2020-09-30 16:57:06 -07:00
|
|
|
#[prost(uint64, tag = "3")]
|
|
|
|
pub post_balance: u64,
|
2020-10-09 12:55:35 -07:00
|
|
|
#[prost(enumeration = "RewardType", tag = "4")]
|
|
|
|
pub reward_type: i32,
|
2020-09-30 10:55:22 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
2020-10-15 17:04:10 -07:00
|
|
|
pub struct Rewards {
|
|
|
|
#[prost(message, repeated, tag = "1")]
|
2021-02-04 23:21:53 -08:00
|
|
|
pub rewards: ::prost::alloc::vec::Vec<Reward>,
|
2020-10-15 17:04:10 -07:00
|
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
2020-09-30 10:55:22 -07:00
|
|
|
pub struct UnixTimestamp {
|
|
|
|
#[prost(int64, tag = "1")]
|
|
|
|
pub timestamp: i64,
|
|
|
|
}
|
2020-10-09 12:55:35 -07:00
|
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
|
|
#[repr(i32)]
|
|
|
|
pub enum RewardType {
|
|
|
|
Unspecified = 0,
|
|
|
|
Fee = 1,
|
|
|
|
Rent = 2,
|
|
|
|
Staking = 3,
|
|
|
|
Voting = 4,
|
|
|
|
}
|