Struct multiversx_chain_vm::scenario::model::SetStateStep
source · pub struct SetStateStep {
pub comment: Option<String>,
pub accounts: BTreeMap<AddressKey, Account>,
pub new_addresses: Vec<NewAddress>,
pub block_hashes: Vec<BytesValue>,
pub previous_block_info: Box<Option<BlockInfo>>,
pub current_block_info: Box<Option<BlockInfo>>,
}Fields§
§comment: Option<String>§accounts: BTreeMap<AddressKey, Account>§new_addresses: Vec<NewAddress>§block_hashes: Vec<BytesValue>§previous_block_info: Box<Option<BlockInfo>>§current_block_info: Box<Option<BlockInfo>>Implementations§
source§impl SetStateStep
impl SetStateStep
pub fn new() -> Self
pub fn put_account<A>(self, address_expr: A, account: Account) -> Selfwhere
AddressKey: From<A>,
pub fn new_address<CA, NA>(
self,
creator_address_expr: CA,
creator_nonce_expr: u64,
new_address_expr: NA
) -> Selfwhere
AddressValue: From<CA> + From<NA>,
pub fn block_epoch<N>(self, block_epoch_expr: N) -> Selfwhere
U64Value: From<N>,
pub fn block_nonce<N>(self, block_nonce_expr: N) -> Selfwhere
U64Value: From<N>,
pub fn block_round<N>(self, block_round_expr: N) -> Selfwhere
U64Value: From<N>,
pub fn block_timestamp<N>(self, block_timestamp_expr: N) -> Selfwhere
U64Value: From<N>,
pub fn block_random_seed<B>(self, block_random_seed_expr: B) -> Selfwhere
BytesValue: From<B>,
Trait Implementations§
source§impl Debug for SetStateStep
impl Debug for SetStateStep
source§impl Default for SetStateStep
impl Default for SetStateStep
source§fn default() -> SetStateStep
fn default() -> SetStateStep
Returns the “default value” for a type. Read more