Module Tezos_022_PsRiotum_test_helpers.State

Type of the state

val param_wait : t -> int

Expected number of cycles before staking parameters get applied

val unstake_wait : t -> int

Expected number of cycles before staking unstaked funds get unfrozen

val find_account : string -> t -> State_account.account_state

From a name, returns the corresponding account

val find_account_from_pkh : Signature.public_key_hash -> t -> string * State_account.account_state
val is_self_delegate : string -> t -> bool

Returns true iff account is a delegate

val apply_finalize : Tezos_base.TzPervasives.String.Map.key -> t -> t
val apply_unslashable_for_all : Tezos_022_PsRiotum_test_helpers.State_account.Cycle.cycle -> t -> t
val apply_rewards : baker:string -> Block.t -> t -> t Tezos_base.TzPervasives.tzresult Lwt.t
val update_account : string -> State_account.account_state -> t -> t

Given an account name and new account state, updates state accordingly Preferably use other specific update functions

val update_delegate : string -> string option -> t -> t