pub struct InvokeHostFunctionOperationBuilder { /* private fields */ }Expand description
Builder for InvokeHostFunctionOperation.
Implementations§
Source§impl InvokeHostFunctionOperationBuilder
impl InvokeHostFunctionOperationBuilder
Sourcepub fn with_source_account<S>(self, source: S) -> Selfwhere
S: Into<MuxedAccount>,
pub fn with_source_account<S>(self, source: S) -> Selfwhere
S: Into<MuxedAccount>,
Sets the source account.
Sourcepub fn with_host_function(self, hf: HostFunction) -> Self
pub fn with_host_function(self, hf: HostFunction) -> Self
Sets the host function.
Sourcepub fn with_auth(self, auth: Vec<SorobanAuthorizationEntry>) -> Self
pub fn with_auth(self, auth: Vec<SorobanAuthorizationEntry>) -> Self
Replaces the authorization entries.
Sourcepub fn add_auth_entry(self, entry: SorobanAuthorizationEntry) -> Self
pub fn add_auth_entry(self, entry: SorobanAuthorizationEntry) -> Self
Adds a single authorization entry.
Sourcepub fn with_invoke_contract(
self,
contract_address: ScAddress,
function_name: ScSymbol,
args: Vec<ScVal>,
) -> Self
pub fn with_invoke_contract( self, contract_address: ScAddress, function_name: ScSymbol, args: Vec<ScVal>, ) -> Self
Convenience: host function InvokeContract.
Sourcepub fn with_upload_wasm(self, wasm: BytesM) -> Self
pub fn with_upload_wasm(self, wasm: BytesM) -> Self
Convenience: host function UploadContractWasm.
Sourcepub fn with_create_contract(
self,
contract_id_preimage: ContractIdPreimage,
executable: ContractExecutable,
) -> Self
pub fn with_create_contract( self, contract_id_preimage: ContractIdPreimage, executable: ContractExecutable, ) -> Self
Convenience: host function CreateContract.
Sourcepub fn with_create_contract_v2(
self,
contract_id_preimage: ContractIdPreimage,
executable: ContractExecutable,
constructor_args: Vec<ScVal>,
) -> Self
pub fn with_create_contract_v2( self, contract_id_preimage: ContractIdPreimage, executable: ContractExecutable, constructor_args: Vec<ScVal>, ) -> Self
Convenience: host function CreateContractV2.
Trait Implementations§
Source§impl Default for InvokeHostFunctionOperationBuilder
impl Default for InvokeHostFunctionOperationBuilder
Source§fn default() -> InvokeHostFunctionOperationBuilder
fn default() -> InvokeHostFunctionOperationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InvokeHostFunctionOperationBuilder
impl RefUnwindSafe for InvokeHostFunctionOperationBuilder
impl Send for InvokeHostFunctionOperationBuilder
impl Sync for InvokeHostFunctionOperationBuilder
impl Unpin for InvokeHostFunctionOperationBuilder
impl UnwindSafe for InvokeHostFunctionOperationBuilder
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