Struct concordium_std::Action [−][src]
pub struct Action { /* fields omitted */ }
Expand description
Actions that can be produced at the end of a contract execution. This
type is deliberately not cloneable so that we can enforce that
and_then
and or_else
can only be used when more than one event is
created.
This type is marked as must_use
since functions that produce
values of the type are effectful.
Implementations
Trait Implementations
#Implementation of actions. These actions are implemented by direct calls to host functions.
Send a given amount to an account.
fn send_raw(
ca: &ContractAddress,
receive_name: ReceiveName<'_>,
amount: Amount,
parameter: &[u8]
) -> Self
fn send_raw(
ca: &ContractAddress,
receive_name: ReceiveName<'_>,
amount: Amount,
parameter: &[u8]
) -> Self
Send a message to a contract.
If the execution of the first action succeeds, run the second action as well. Read more