Trait concordium_std::HasActions[][src]

pub trait HasActions {
    fn accept() -> Self;
fn simple_transfer(acc: &AccountAddress, amount: Amount) -> Self;
fn send_raw(
        ca: &ContractAddress,
        receive_name: ReceiveName<'_>,
        amount: Amount,
        parameter: &[u8]
    ) -> Self;
fn and_then(self, then: Self) -> Self;
fn or_else(self, el: Self) -> Self; }
Expand description

An object that can serve to construct actions.

The actions that a smart contract can produce as a result of its execution. These actions form a tree and are executed by the scheduler in the predefined order.

Required methods

Default accept action.

Send a given amount to an account.

Send a message to a contract.

If the execution of the first action succeeds, run the second action as well.

If the execution of the first action fails, try the second.

Implementors

#Implementation of actions. These actions are implemented by direct calls to host functions.