Struct near_workspaces::Worker [−][src]
pub struct Worker<T> { /* fields omitted */ }Implementations
pub async fn call(
&self,
contract: &Contract,
function: &str,
args: Vec<u8>,
gas: Option<u64>,
deposit: Option<Balance>
) -> Result<CallExecutionDetails>
pub async fn view(
&self,
contract_id: AccountId,
function: &str,
args: Vec<u8>
) -> Result<ViewResultDetails>
pub async fn view_state(
&self,
contract_id: AccountId,
prefix: Option<StoreKey>
) -> Result<HashMap<String, Vec<u8>>>
pub async fn transfer_near(
&self,
signer: &InMemorySigner,
receiver_id: AccountId,
amount_yocto: Balance
) -> Result<CallExecutionDetails>
pub async fn delete_account(
&self,
account_id: AccountId,
signer: &InMemorySigner,
beneficiary_id: AccountId
) -> Result<CallExecutionDetails>
Trait Implementations
fn patch_state<'life0, 'async_trait>(
&'life0 self,
contract_id: AccountId,
key: String,
value: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn import_contract<'a, 'b>(
&'b self,
id: AccountId,
worker: &'a Worker<impl Network>
) -> ImportContractBuilder<'a, 'b>
Auto Trait Implementations
impl<T> RefUnwindSafe for Worker<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Worker<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
