package octez-smart-rollup-node-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Octez_smart_rollup_node.Refutation_playerSource

Worker module for a single refutation game player. The node's refutation coordinator will spawn a new refutation player for each refutation game.

Type for a refutation game player.

init_and_play node_ctxt ~self ~conflict ~game ~level initializes a new refutation game player for signer self. After initizialization, the worker will play the next move depending on the game state. If no game is passed, the worker will play the opening move for conflict.

Sourceval play : worker -> Octez_smart_rollup.Game.t -> level:int32 -> unit Lwt.t

play worker game ~level makes the worker play the next move depending on the game state for their conflict.

Sourceval shutdown : worker -> unit Lwt.t

Shutdown a refutaiton game player.

Sourceval current_games : unit -> (Tezos_crypto.Signature.public_key_hash * worker) list

current_games () lists the opponents' this node is playing refutation games against, alongside the worker that takes care of each game.

OCaml

Innovation. Community. Security.