Mavkit_smart_rollup.Game
module V1 : sig ... end
include Versioned_data.S with type t = V1.t
The type of versioned values, including the one that is currently used and the previous ones.
val versioned_encoding : versioned Mavryk_base.TzPervasives.Data_encoding.t
Encoding for versioned values, corresponds to the one defined by the protocol.
Conversion to the currently used representation. In practice this function must provide ways to translate values of older versions to the latest one.
include module type of V1
with type dissection_chunk = V1.dissection_chunk
and type step = V1.step
and type refutation = V1.refutation
and type index = V1.index
and type player = V1.player
and type game_state = V1.game_state
and type conflict = V1.conflict
and type t = V1.t
type refutation = V1.refutation =
| Start of {
player_commitment_hash : Mavkit_smart_rollup.Commitment.Hash.t;
opponent_commitment_hash : Mavkit_smart_rollup.Commitment.Hash.t;
}
| Move of {
choice : Z.t;
step : step;
}
val dissection_chunk_encoding :
dissection_chunk Mavryk_base.TzPervasives.Data_encoding.t
val dissection_encoding :
dissection_chunk list Mavryk_base.TzPervasives.Data_encoding.t
val step_encoding : step Mavryk_base.TzPervasives.Data_encoding.t
val refutation_encoding : refutation Mavryk_base.TzPervasives.Data_encoding.t
val index_encoding : index Mavryk_base.TzPervasives.Data_encoding.t
val make_index :
Mavryk_crypto.Signature.Public_key_hash.t ->
Mavryk_crypto.Signature.Public_key_hash.t ->
index
type game_state = V1.game_state =
| Dissecting of {
dissection : dissection_chunk list;
default_number_of_sections : int;
}
| Final_move of {
agreed_start_chunk : dissection_chunk;
refuted_stop_chunk : dissection_chunk;
}
type t = V1.t = {
turn : player;
inbox_snapshot : Inbox.V1.history_proof;
dal_snapshot : Dal.Slot_history.t;
start_level : int32;
inbox_level : int32;
game_state : game_state;
}
type conflict = V1.conflict = {
other : Mavryk_crypto.Signature.Public_key_hash.t;
their_commitment : Commitment.t;
our_commitment : Commitment.t;
parent_commitment : Mavkit_smart_rollup.Commitment.Hash.t;
}
val game_state_equal : game_state -> game_state -> bool
val player_encoding : player Mavryk_base.TzPervasives.Data_encoding.t
val game_state_encoding : game_state Mavryk_base.TzPervasives.Data_encoding.t
val encoding : t Mavryk_base.TzPervasives.Data_encoding.t
val conflict_encoding : conflict Mavryk_base.TzPervasives.Data_encoding.t