pub struct NeoVMSyscall;Expand description
Neo N3 System Call Wrapper
Implementations§
Source§impl NeoVMSyscall
impl NeoVMSyscall
Sourcepub fn get_time() -> NeoResult<NeoInteger>
pub fn get_time() -> NeoResult<NeoInteger>
Get current timestamp
Sourcepub fn check_witness(account: &NeoByteString) -> NeoResult<NeoBoolean>
pub fn check_witness(account: &NeoByteString) -> NeoResult<NeoBoolean>
Check if the specified account is a witness
pub fn get_trigger() -> NeoResult<NeoInteger>
pub fn get_invocation_counter() -> NeoResult<NeoInteger>
pub fn get_random() -> NeoResult<NeoInteger>
pub fn get_network() -> NeoResult<NeoInteger>
pub fn get_address_version() -> NeoResult<NeoInteger>
pub fn get_gas_left() -> NeoResult<NeoInteger>
pub fn get_calling_script_hash() -> NeoResult<NeoByteString>
pub fn get_entry_script_hash() -> NeoResult<NeoByteString>
pub fn get_executing_script_hash() -> NeoResult<NeoByteString>
Sourcepub fn get_notifications(
script_hash: Option<&NeoByteString>,
) -> NeoResult<NeoArray<NeoValue>>
pub fn get_notifications( script_hash: Option<&NeoByteString>, ) -> NeoResult<NeoArray<NeoValue>>
Get notifications for the specified script hash, or all notifications if None.
pub fn get_script_container() -> NeoResult<NeoArray<NeoValue>>
pub fn storage_get_context() -> NeoResult<NeoStorageContext>
pub fn storage_get_read_only_context() -> NeoResult<NeoStorageContext>
pub fn storage_as_read_only( context: &NeoStorageContext, ) -> NeoResult<NeoStorageContext>
pub fn storage_get( context: &NeoStorageContext, key: &NeoByteString, ) -> NeoResult<NeoByteString>
pub fn storage_put( context: &NeoStorageContext, key: &NeoByteString, value: &NeoByteString, ) -> NeoResult<()>
pub fn storage_delete( context: &NeoStorageContext, key: &NeoByteString, ) -> NeoResult<()>
pub fn storage_find( context: &NeoStorageContext, prefix: &NeoByteString, ) -> NeoResult<NeoIterator<NeoValue>>
Auto Trait Implementations§
impl Freeze for NeoVMSyscall
impl RefUnwindSafe for NeoVMSyscall
impl Send for NeoVMSyscall
impl Sync for NeoVMSyscall
impl Unpin for NeoVMSyscall
impl UnwindSafe for NeoVMSyscall
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