#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializableVmOutput {
#[prost(bytes = "bytes", repeated, tag = "1")]
pub return_data: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(uint64, tag = "2")]
pub return_code: u64,
#[prost(string, tag = "3")]
pub return_message: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
pub gas_remaining: u64,
#[prost(bytes = "bytes", tag = "5")]
pub gas_refund: ::prost::bytes::Bytes,
#[prost(map = "string, message", tag = "6")]
pub output_accounts: ::std::collections::HashMap<
::prost::alloc::string::String,
SerializableOutputAccount,
>,
#[prost(bytes = "bytes", repeated, tag = "7")]
pub deleted_accounts: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(bytes = "bytes", repeated, tag = "8")]
pub touched_accounts: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(message, optional, tag = "9")]
pub logs: ::core::option::Option<SerializableLogEntry>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SerializableOutputTransfer {
#[prost(bytes = "bytes", tag = "1")]
pub value: ::prost::bytes::Bytes,
#[prost(uint64, tag = "2")]
pub gas_limit: u64,
#[prost(uint64, tag = "3")]
pub gas_locked: u64,
#[prost(bytes = "bytes", tag = "4")]
pub data: ::prost::bytes::Bytes,
#[prost(enumeration = "SerializableCallType", tag = "5")]
pub call_type: i32,
#[prost(bytes = "bytes", tag = "6")]
pub sender_address: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SerializableStorageUpdate {
#[prost(bytes = "bytes", tag = "1")]
pub offset: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "2")]
pub data: ::prost::bytes::Bytes,
#[prost(bool, tag = "3")]
pub written: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializableOutputAccount {
#[prost(bytes = "bytes", tag = "1")]
pub address: ::prost::bytes::Bytes,
#[prost(uint64, tag = "2")]
pub nonce: u64,
#[prost(bytes = "bytes", tag = "3")]
pub balance: ::prost::bytes::Bytes,
#[prost(map = "string, message", tag = "4")]
pub storage_updates: ::std::collections::HashMap<
::prost::alloc::string::String,
SerializableStorageUpdate,
>,
#[prost(bytes = "bytes", tag = "5")]
pub code: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "6")]
pub code_metadata: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "7")]
pub code_deployer_address: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "8")]
pub balance_delta: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "9")]
pub output_transfers: ::prost::alloc::vec::Vec<SerializableOutputTransfer>,
#[prost(uint64, tag = "10")]
pub gas_used: u64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SerializableLogEntry {
#[prost(bytes = "bytes", tag = "1")]
pub identifier: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "2")]
pub address: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", repeated, tag = "3")]
pub topics: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(bytes = "bytes", tag = "4")]
pub data: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializableAsyncContext {
#[prost(bytes = "bytes", tag = "1")]
pub address: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "2")]
pub call_id: ::prost::bytes::Bytes,
#[prost(enumeration = "SerializableCallType", tag = "3")]
pub call_type: i32,
#[prost(bytes = "bytes", tag = "4")]
pub caller_addr: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "5")]
pub parent_addr: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "6")]
pub caller_call_id: ::prost::bytes::Bytes,
#[prost(bytes = "bytes", tag = "7")]
pub callback_async_initiator_call_id: ::prost::bytes::Bytes,
#[prost(string, tag = "8")]
pub callback: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "9")]
pub callback_data: ::prost::bytes::Bytes,
#[prost(uint64, tag = "10")]
pub gas_accumulated: u64,
#[prost(bytes = "bytes", tag = "11")]
pub return_data: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "12")]
pub async_call_groups: ::prost::alloc::vec::Vec<
super::vmhost::SerializableAsyncCallGroup,
>,
#[prost(uint64, tag = "13")]
pub calls_counter: u64,
#[prost(uint64, tag = "14")]
pub total_calls_counter: u64,
#[prost(message, optional, tag = "15")]
pub child_results: ::core::option::Option<SerializableVmOutput>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SerializableCallType {
DirectCall = 0,
AsynchronousCall = 1,
AsynchronousCallBack = 2,
EsdtTransferAndExecute = 3,
}
impl SerializableCallType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::DirectCall => "DirectCall",
Self::AsynchronousCall => "AsynchronousCall",
Self::AsynchronousCallBack => "AsynchronousCallBack",
Self::EsdtTransferAndExecute => "ESDTTransferAndExecute",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DirectCall" => Some(Self::DirectCall),
"AsynchronousCall" => Some(Self::AsynchronousCall),
"AsynchronousCallBack" => Some(Self::AsynchronousCallBack),
"ESDTTransferAndExecute" => Some(Self::EsdtTransferAndExecute),
_ => None,
}
}
}