Skip to main content

VmCaller

Struct VmCaller 

Source
pub struct VmCaller {
    pub libraries: Dict<HashBytes, LibDescr>,
    pub behaviour_modifiers: BehaviourModifiers,
    pub config: BlockchainConfigParams,
}

Fields§

§libraries: Dict<HashBytes, LibDescr>§behaviour_modifiers: BehaviourModifiers§config: BlockchainConfigParams

Implementations§

Source§

impl VmCaller

Source

pub fn call_with_external_message_body( &self, account: &Account, body: Cell, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_with_external_message_body_ext( &self, account: &Account, body: Cell, args: &VmMessageArgs, debug: Option<&mut dyn Write>, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_with_internal_message_body( &self, account: &Account, amount: CurrencyCollection, body: Cell, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_with_internal_message_body_ext( &self, account: &Account, amount: CurrencyCollection, body: Cell, args: &VmMessageArgs, debug: Option<&mut dyn Write>, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_with_message( &self, account: &Account, msg: Cell, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_with_message_ext( &self, account: &Account, msg: Cell, args: &VmMessageArgs, debug: Option<&mut dyn Write>, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_tick_tock( &self, account: &Account, tick_tock: TickTock, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_tick_tock_ext( &self, account: &Account, tick_tock: TickTock, args: &VmMessageArgs, debug: Option<&mut dyn Write>, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_tx_ext( &self, account: &Account, tx_type: VmCallerTxInput, args: &VmMessageArgs, debug: Option<&mut dyn Write>, ) -> Result<VmMessageOutput, VmMessageError>

Source

pub fn call_getter<T: VmGetterMethodId>( &self, account: &Account, method: T, stack: Vec<RcStackValue>, ) -> Result<VmGetterOutput, VmGetterError>

Source

pub fn call_getter_ext<T: VmGetterMethodId>( &self, account: &Account, method: T, stack: Vec<RcStackValue>, args: &VmGetterArgs, debug: Option<&mut dyn Write>, ) -> Result<VmGetterOutput, VmGetterError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SafeDelete for T
where T: 'static,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> EquivalentRepr<T> for T