Enum concordium_std::test_infrastructure::ActionsTree [−][src]
pub enum ActionsTree {
Accept,
SimpleTransfer {
to: AccountAddress,
amount: Amount,
},
Send {
to: ContractAddress,
receive_name: OwnedReceiveName,
amount: Amount,
parameter: Vec<u8>,
},
AndThen {
left: Box<ActionsTree>,
right: Box<ActionsTree>,
},
OrElse {
left: Box<ActionsTree>,
right: Box<ActionsTree>,
},
}
Expand description
An actions tree, used to provide a simpler presentation for testing.
Variants
Fields of SimpleTransfer
to: AccountAddress
amount: Amount
Fields of Send
Fields of AndThen
left: Box<ActionsTree>
right: Box<ActionsTree>
Fields of OrElse
left: Box<ActionsTree>
right: Box<ActionsTree>
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.