package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-l2-libs.smart-rollup/Octez_smart_rollup/Game/V1/index.html

Module Game.V1Source

Sourcetype dissection_chunk = {
  1. state_hash : State_hash.t option;
  2. tick : Z.t;
}
Sourcetype step =
  1. | Dissection of dissection_chunk list
  2. | Proof of string
Sourcetype refutation =
  1. | Start of {
    1. player_commitment_hash : Octez_smart_rollup.Commitment.Hash.t;
    2. opponent_commitment_hash : Octez_smart_rollup.Commitment.Hash.t;
    }
  2. | Move of {
    1. choice : Z.t;
    2. step : step;
    }
Sourceval dissection_chunk_encoding : dissection_chunk Tezos_base.TzPervasives.Data_encoding.t
Sourceval dissection_encoding : dissection_chunk list Tezos_base.TzPervasives.Data_encoding.t
Sourceval step_encoding : step Tezos_base.TzPervasives.Data_encoding.t
Sourceval refutation_encoding : refutation Tezos_base.TzPervasives.Data_encoding.t
Sourceval index_encoding : index Tezos_base.TzPervasives.Data_encoding.t
Sourcetype player =
  1. | Alice
  2. | Bob
Sourcetype game_state =
  1. | Dissecting of {
    1. dissection : dissection_chunk list;
    2. default_number_of_sections : int;
    }
  2. | Final_move of {
    1. agreed_start_chunk : dissection_chunk;
    2. refuted_stop_chunk : dissection_chunk;
    }
Sourcetype t = {
  1. turn : player;
  2. inbox_snapshot : Inbox.V1.history_proof;
  3. dal_snapshot : Dal.Slot_history.t;
  4. start_level : int32;
  5. inbox_level : int32;
  6. game_state : game_state;
}
Sourcetype conflict = {
  1. other : Tezos_crypto.Signature.Public_key_hash.t;
  2. their_commitment : Commitment.t;
  3. our_commitment : Commitment.t;
  4. parent_commitment : Octez_smart_rollup.Commitment.Hash.t;
}
Sourceval game_state_equal : game_state -> game_state -> bool
Sourceval player_encoding : player Tezos_base.TzPervasives.Data_encoding.t
Sourceval game_state_encoding : game_state Tezos_base.TzPervasives.Data_encoding.t
Sourceval encoding : t Tezos_base.TzPervasives.Data_encoding.t
Sourceval conflict_encoding : conflict Tezos_base.TzPervasives.Data_encoding.t
OCaml

Innovation. Community. Security.