pub struct ExecuteRequestBuilder { /* private fields */ }Expand description
Builds an ExecuteRequest.
Implementations§
source§impl ExecuteRequestBuilder
impl ExecuteRequestBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Returns an ExecuteRequestBuilder.
sourcepub fn from_deploy_item(deploy_item: DeployItem) -> Self
pub fn from_deploy_item(deploy_item: DeployItem) -> Self
Takes a DeployItem and returns an ExecuteRequestBuilder.
sourcepub fn push_deploy(self, deploy: DeployItem) -> Self
pub fn push_deploy(self, deploy: DeployItem) -> Self
Adds a DeployItem to the ExecuteRequest.
sourcepub fn with_pre_state_hash(self, pre_state_hash: &[u8]) -> Self
pub fn with_pre_state_hash(self, pre_state_hash: &[u8]) -> Self
Sets the parent state hash of the ExecuteRequest.
sourcepub fn with_block_time(self, block_time: u64) -> Self
pub fn with_block_time(self, block_time: u64) -> Self
Sets the block time of the ExecuteRequest.
sourcepub fn with_protocol_version(self, protocol_version: ProtocolVersion) -> Self
pub fn with_protocol_version(self, protocol_version: ProtocolVersion) -> Self
Sets the protocol version of the ExecuteRequest.
sourcepub fn with_proposer(self, proposer: PublicKey) -> Self
pub fn with_proposer(self, proposer: PublicKey) -> Self
Sets the proposer used by the ExecuteRequest.
sourcepub fn build(self) -> ExecuteRequest
pub fn build(self) -> ExecuteRequest
Consumes self and returns an ExecuteRequest.
sourcepub fn standard(
account_hash: AccountHash,
session_file: &str,
session_args: RuntimeArgs
) -> Self
pub fn standard( account_hash: AccountHash, session_file: &str, session_args: RuntimeArgs ) -> Self
Returns an ExecuteRequest with standard dependencies.
sourcepub fn module_bytes(
account_hash: AccountHash,
module_bytes: Vec<u8>,
session_args: RuntimeArgs
) -> Self
pub fn module_bytes( account_hash: AccountHash, module_bytes: Vec<u8>, session_args: RuntimeArgs ) -> Self
Returns an ExecuteRequest from a module bytes.
sourcepub fn contract_call_by_hash(
sender: AccountHash,
contract_hash: ContractHash,
entry_point: &str,
args: RuntimeArgs
) -> Self
pub fn contract_call_by_hash( sender: AccountHash, contract_hash: ContractHash, entry_point: &str, args: RuntimeArgs ) -> Self
Returns an ExecuteRequest that will call a stored contract by hash.
sourcepub fn contract_call_by_name(
sender: AccountHash,
contract_name: &str,
entry_point: &str,
args: RuntimeArgs
) -> Self
pub fn contract_call_by_name( sender: AccountHash, contract_name: &str, entry_point: &str, args: RuntimeArgs ) -> Self
Returns an ExecuteRequest that will call a stored contract by named key.
sourcepub fn versioned_contract_call_by_hash(
sender: AccountHash,
contract_package_hash: ContractPackageHash,
version: Option<ContractVersion>,
entry_point_name: &str,
args: RuntimeArgs
) -> Self
pub fn versioned_contract_call_by_hash( sender: AccountHash, contract_package_hash: ContractPackageHash, version: Option<ContractVersion>, entry_point_name: &str, args: RuntimeArgs ) -> Self
Returns an ExecuteRequest that will call a versioned stored contract by hash.
sourcepub fn versioned_contract_call_by_name(
sender: AccountHash,
contract_name: &str,
version: Option<ContractVersion>,
entry_point_name: &str,
args: RuntimeArgs
) -> Self
pub fn versioned_contract_call_by_name( sender: AccountHash, contract_name: &str, version: Option<ContractVersion>, entry_point_name: &str, args: RuntimeArgs ) -> Self
Calls a versioned contract from contract package hash key_name
sourcepub fn transfer(sender: AccountHash, transfer_args: RuntimeArgs) -> Self
pub fn transfer(sender: AccountHash, transfer_args: RuntimeArgs) -> Self
Returns an ExecuteRequest for a native transfer.
Trait Implementations§
source§impl Debug for ExecuteRequestBuilder
impl Debug for ExecuteRequestBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ExecuteRequestBuilder
impl Send for ExecuteRequestBuilder
impl Sync for ExecuteRequestBuilder
impl Unpin for ExecuteRequestBuilder
impl UnwindSafe for ExecuteRequestBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.