summaryrefslogtreecommitdiff
path: root/ocaml/lib/state.mli
blob: 0669fb882524c3d3a9cadfc9a9df8fc4db8ec2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
open Noun

type t

val create : ?initial:noun -> ?pier_path:string -> unit -> t
val event_number : t -> int64
val arvo_core : t -> noun
val boot : ?events_played:int64 -> t -> noun -> unit
val poke : t -> noun -> noun
val peek : t -> noun -> noun option
val snapshot : t -> bytes * int64
val load_snapshot : t -> bytes -> int64 -> unit
val close_eventlog : t -> unit