pub struct DefaultContractCaller;Expand description
The default ContractCaller impl: routes call_raw to
NeoVMSyscall::contract_call. Used by host-mode tests and
by production code that needs the L6 cross-call upgrade
(tracked in the audit).
Trait Implementations§
Source§impl ContractCaller for DefaultContractCaller
impl ContractCaller for DefaultContractCaller
Source§fn call_raw(
&self,
script_hash: &NeoByteString,
method: &str,
args: &[NeoValue],
call_flags: &NeoInteger,
) -> Result<NeoValue, NeoError>
fn call_raw( &self, script_hash: &NeoByteString, method: &str, args: &[NeoValue], call_flags: &NeoInteger, ) -> Result<NeoValue, NeoError>
Invoke a remote contract’s method with the given args
and return the raw
NeoValue. The default impl uses
NeoVMSyscall::contract_call.Source§fn call_typed<T>(
&self,
script_hash: &NeoByteString,
method: &str,
args: &[NeoValue],
call_flags: &NeoInteger,
) -> Result<T, NeoError>where
T: FromNeoValue,
fn call_typed<T>(
&self,
script_hash: &NeoByteString,
method: &str,
args: &[NeoValue],
call_flags: &NeoInteger,
) -> Result<T, NeoError>where
T: FromNeoValue,
Invoke a remote contract’s method and decode the return
value into a typed Rust value via
FromNeoValue.Auto Trait Implementations§
impl Freeze for DefaultContractCaller
impl RefUnwindSafe for DefaultContractCaller
impl Send for DefaultContractCaller
impl Sync for DefaultContractCaller
impl Unpin for DefaultContractCaller
impl UnsafeUnpin for DefaultContractCaller
impl UnwindSafe for DefaultContractCaller
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