type status =
| Evaluating
| Waiting_for_input
| Waiting_for_reveal
type output_info = {
message_index : int64;
outbox_level : int32;
}
type output = {
info : output_info;
encoded_message : bytes;
}
val octez_riscv_id_unsafe_of_raw_bytes : bytes -> id
val octez_riscv_storage_id_to_raw_bytes : id -> bytes
val octez_riscv_storage_id_equal : id -> id -> bool
val octez_riscv_storage_state_equal : state -> state -> bool
val octez_riscv_storage_state_empty : unit -> state
val octez_riscv_storage_load : string -> repo
val octez_riscv_storage_close : repo -> unit
val octez_riscv_storage_checkout : repo -> id -> state option
val octez_riscv_string_of_status : status -> string
val octez_riscv_compute_step_with_debug : state -> (bytes -> unit) -> state
val octez_riscv_compute_step_many : int64 -> state -> state * int64
val octez_riscv_mut_compute_step_many : int64 -> mut_state -> int64
val octez_riscv_compute_step_many_with_debug :
int64 ->
state ->
(bytes -> unit) ->
state * int64
val octez_riscv_mut_compute_step_many_with_debug :
int64 ->
mut_state ->
(bytes -> unit) ->
int64
val octez_riscv_get_tick : state -> int64
val octez_riscv_mut_get_tick : mut_state -> int64
val octez_riscv_get_level : state -> int32 option
val octez_riscv_mut_get_level : mut_state -> int32 option
val octez_riscv_install_boot_sector : state -> bytes -> state
val octez_riscv_state_hash : state -> bytes
val octez_riscv_mut_state_hash : mut_state -> bytes
val octez_riscv_get_message_counter : state -> int64
val octez_riscv_mut_get_message_counter : mut_state -> int64
val octez_riscv_storage_export_snapshot :
repo ->
id ->
string ->
(unit, [ `Msg of string ]) Stdlib.result
val octez_riscv_proof_start_state : proof -> bytes
val octez_riscv_proof_stop_state : proof -> bytes
val octez_riscv_serialise_proof : proof -> bytes
val octez_riscv_deserialise_proof : bytes -> (proof, string) Stdlib.Result.t
val octez_riscv_state_of_output_proof : output_proof -> bytes
val octez_riscv_serialise_output_proof : output_proof -> bytes
val octez_riscv_deserialise_output_proof :
bytes ->
(output_proof, string) Stdlib.result
val octez_riscv_get_reveal_request : state -> bytes
val octez_riscv_mut_get_reveal_request : mut_state -> bytes
val octez_riscv_mut_insert_failure : mut_state -> unit