pub struct Script {
pub bytecode: String,
}Expand description
Script for executing contract methods
Fields§
§bytecode: StringImplementations§
Source§impl Script
impl Script
Sourcepub async fn compile(node_provider: &NodeProvider, code: &str) -> Result<Self>
pub async fn compile(node_provider: &NodeProvider, code: &str) -> Result<Self>
Compile script from source code
Sourcepub async fn build_execute_tx(
&self,
_from_public_key: String,
_atto_alph_amount: Option<String>,
) -> Result<UnsignedTransaction>
pub async fn build_execute_tx( &self, _from_public_key: String, _atto_alph_amount: Option<String>, ) -> Result<UnsignedTransaction>
Build execution transaction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnsafeUnpin for Script
impl UnwindSafe for Script
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