pub struct SmcInfoTonV4 {
pub base: SmcInfoBase,
pub code: Option<Cell>,
pub message_balance: CurrencyCollection,
pub storage_fees: Tokens,
pub prev_blocks_info: Option<SafeRc<Tuple>>,
}Expand description
Extended smart contract info for TVM since version 4.
Fields§
§base: SmcInfoBaseBase values.
code: Option<Cell>Smart contract code.
message_balance: CurrencyCollectionIncoming message balance (zero for external messages).
storage_fees: TokensStorage fees collected on the storage phase.
prev_blocks_info: Option<SafeRc<Tuple>>Previous blocks info (raw for now).
Implementations§
Source§impl SmcInfoTonV4
impl SmcInfoTonV4
pub const MYCODE_IDX: usize = 10
pub const IN_MSG_VALUE_IDX: usize = 11
pub const STORAGE_FEE_IDX: usize = 12
pub const PREV_BLOCKS_IDX: usize = 13
pub fn with_code(self, code: Cell) -> Self
pub fn with_message_balance(self, balance: CurrencyCollection) -> Self
pub fn with_storage_fees(self, storage_fees: Tokens) -> Self
pub fn with_prev_blocks_info(self, prev_blocks_info: SafeRc<Tuple>) -> Self
pub fn require_ton_v6(self) -> SmcInfoTonV6
Trait Implementations§
Source§impl Clone for SmcInfoTonV4
impl Clone for SmcInfoTonV4
Source§fn clone(&self) -> SmcInfoTonV4
fn clone(&self) -> SmcInfoTonV4
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmcInfoTonV4
impl Debug for SmcInfoTonV4
Source§impl Default for SmcInfoTonV4
impl Default for SmcInfoTonV4
Source§fn default() -> SmcInfoTonV4
fn default() -> SmcInfoTonV4
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SmcInfoTonV4
impl !RefUnwindSafe for SmcInfoTonV4
impl !Send for SmcInfoTonV4
impl !Sync for SmcInfoTonV4
impl Unpin for SmcInfoTonV4
impl !UnwindSafe for SmcInfoTonV4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more