package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Alpha_context/Sc_rollup/Game/index.html

Module Sc_rollup.GameSource

Sourcetype player =
  1. | Alice
  2. | Bob
Sourceval player_equal : player -> player -> bool
Sourcetype dissection_chunk = Dissection_chunk.t
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;
    }
Sourceval game_state_equal : game_state -> game_state -> bool
Sourcetype t = {
  1. turn : player;
  2. inbox_snapshot : Inbox.history_proof;
  3. dal_snapshot : Dal.Slots_history.t;
  4. start_level : Raw_level.t;
  5. inbox_level : Raw_level.t;
  6. game_state : game_state;
}
Sourcemodule Index : sig ... end
Sourceval opponent : player -> player
Sourcetype step =
  1. | Dissection of dissection_chunk list
  2. | Proof of Proof.serialized Proof.t
Sourcetype refutation =
  1. | Start of {
    1. player_commitment_hash : Commitment.Hash.t;
    2. opponent_commitment_hash : Commitment.Hash.t;
    }
  2. | Move of {
    1. choice : Tick.t;
    2. step : step;
    }
Sourcetype reason =
  1. | Conflict_resolved
  2. | Timeout
Sourcetype game_result =
  1. | Loser of {
    1. reason : reason;
    2. loser : Staker.t;
    }
  2. | Draw
Sourcetype status =
  1. | Ongoing
  2. | Ended of game_result
Sourceval initial : Inbox.history_proof -> Dal.Slots_history.t -> start_level:Raw_level.t -> parent_commitment:Commitment.t -> defender_commitment:Commitment.t -> refuter:Staker.t -> defender:Staker.t -> default_number_of_sections:int -> t
Sourcetype timeout = {
  1. alice : int;
  2. bob : int;
  3. last_turn_level : Raw_level.t;
}
Sourcetype Tezos_protocol_environment_alpha.Error_monad.error +=
  1. | Dissection_choice_not_found of Tick.t
  2. | Proof_unexpected_section_size of Tezos_protocol_environment_alpha.Z.t
  3. | Proof_start_state_hash_mismatch of {
    1. start_state_hash : State_hash.t option;
    2. start_proof : State_hash.t;
    }
  4. | Proof_stop_state_hash_failed_to_refute of {
    1. stop_state_hash : State_hash.t option;
    2. stop_proof : State_hash.t option;
    }
  5. | Proof_stop_state_hash_failed_to_validate of {
    1. stop_state_hash : State_hash.t option;
    2. stop_proof : State_hash.t option;
    }
  6. | Dissecting_during_final_move
Sourcemodule Internal_for_tests : sig ... end
OCaml

Innovation. Community. Security.