Tezos_alpha_test_helpers.Scenario_bakeSourceval apply_end_cycle :
Tezos_alpha_test_helpers.State_account.Cycle.t ->
Block.t ->
Block.t ->
State.t ->
State.t Tezos_base.TzPervasives.tzresult Lwt.tApplies when baking the last block of a cycle
val apply_new_cycle :
Tezos_alpha_test_helpers.State_account.Cycle.cycle ->
State.t ->
State.tApplies when baking the first block of a cycle. Technically nothing special happens, but we need to update the unslashable unstakes since it's done lazily
After baking and applying rewards in state
val bake :
?baker:string ->
Scenario_base.t ->
Scenario_base.t Tezos_base.TzPervasives.tzresult Lwt.tBake a block, with the given baker and the given operations.
val bake_until_next_cycle :
Scenario_base.t ->
Scenario_base.t Tezos_base.TzPervasives.tzresult Lwt.tBake until a cycle is reached, using bake instead of Block.bake
val bake_until_dawn_of_next_cycle :
Scenario_base.t ->
Scenario_base.t Tezos_base.TzPervasives.tzresult Lwt.tBake all the remaining blocks of the current cycle
Bake a single block
val next_block_with_baker :
string ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenariosBake a single block with a specific baker
Bake until the end of a cycle
Bake until the end of a cycle
val exec_op :
((Block.t * 'a) ->
(State.t
* Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation list,
Tezos_base.TzPervasives.tztrace)
result
Lwt.t) ->
(Block.t * 'a, Scenario_base.t) Scenario_dsl.scenariosExecutes an operation: f should return a new state and a list of operations, which are then applied
Waiting functions
val wait_cycle_f_es :
(Scenario_base.t ->
Scenario_base.t ->
bool Tezos_base.TzPervasives.tzresult Lwt.t) ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenariosval wait_cycle_f :
(Scenario_base.t -> Scenario_base.t -> bool) ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenariosWaits until condition init_t current_t is fulfilled. It is checked on the first block of every cycle. If it returns false, another cycle is baked, until it succeeds.
val wait_cycle_until :
([< `AI_activation
| `AI_activation_with_votes
| `And of 'a * 'a
| `delegate_parameters_activation
| `right_before_delegate_parameters_activation ] as 'a) ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenariosWait until we are in a cycle satisfying the given condition. Fails if AI_activation is requested and AI is not set to be activated in the future.
Wait until AI activates. Fails if AI is not set to be activated in the future.
val wait_delegate_parameters_activation :
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenarioswait delegate_parameters_activation_delay cycles
val wait_n_cycles_f_es :
(Scenario_base.t -> int Tezos_base.TzPervasives.tzresult Lwt.t) ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenariosval wait_n_cycles_f :
(Scenario_base.t -> int) ->
(Scenario_base.t, Scenario_base.t) Scenario_dsl.scenarios