pub struct ScriptBuilder { /* private fields */ }Expand description
Build a NeoVM invocation script.
Implementations§
Source§impl ScriptBuilder
impl ScriptBuilder
Sourcepub fn emit_push_integer(&mut self, value: i64) -> &mut Self
pub fn emit_push_integer(&mut self, value: i64) -> &mut Self
Push an integer onto the stack.
Sourcepub fn emit_push_bytes(&mut self, data: &[u8]) -> &mut Self
pub fn emit_push_bytes(&mut self, data: &[u8]) -> &mut Self
Push bytes onto the stack.
Sourcepub fn emit_push_hash160(&mut self, hash: &[u8; 20]) -> &mut Self
pub fn emit_push_hash160(&mut self, hash: &[u8; 20]) -> &mut Self
Push a 20-byte script hash.
Sourcepub fn emit_syscall(&mut self, method_hash: u32) -> &mut Self
pub fn emit_syscall(&mut self, method_hash: u32) -> &mut Self
Emit a syscall by its 4-byte hash.
Trait Implementations§
Source§impl Clone for ScriptBuilder
impl Clone for ScriptBuilder
Source§fn clone(&self) -> ScriptBuilder
fn clone(&self) -> ScriptBuilder
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 ScriptBuilder
impl Debug for ScriptBuilder
Source§impl Default for ScriptBuilder
impl Default for ScriptBuilder
Source§fn default() -> ScriptBuilder
fn default() -> ScriptBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScriptBuilder
impl RefUnwindSafe for ScriptBuilder
impl Send for ScriptBuilder
impl Sync for ScriptBuilder
impl Unpin for ScriptBuilder
impl UnsafeUnpin for ScriptBuilder
impl UnwindSafe for ScriptBuilder
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