package tezt-tezos

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

Module Tezt_tezos.Demo_clientSource

Run Tezos client with commands related to `demo_protocol`.

Sourceval activate : ?endpoint:Client.endpoint -> ?fitness:int -> ?key:string -> ?timestamp:Client.timestamp -> Client.t -> unit Lwt.t

Run octez-client activate protocol with `demo_protocol`.

If timestamp is not specified explicitely, it is set to Ago timestamp_delay, where timestamp_delay is 365 days, which allows to bake plenty of blocks before their timestamp reach the present (at which point one would have to wait between each block so that peers do not reject them for being in the future).

Sourceval bake : ?msg:string -> Client.t -> unit Lwt.t

Run octez-client bake.

Sourceval get_a : Client.t -> int Lwt.t

Run octez-client get a, get the current value of counter `a`.

Sourceval get_b : Client.t -> int Lwt.t

Run octez-client get a, get the current value of counter `b`.

Sourceval increment_a : Client.t -> unit Lwt.t

Run octez-client increment a, add one to counter `a`.

Sourceval increment_b : Client.t -> unit Lwt.t

Run octez-client increment b, add one to counter `a`..

Sourceval transfer : Client.t -> int -> unit Lwt.t

Run octez-client transfer amount, when amount is positive, transfer amount from counter `a` to counter `b. When amount is negative, transfer -amount from `b` to `a`.

OCaml

Innovation. Community. Security.