package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

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.