package tezt-tezos

  1. Overview
  2. Docs
type t

A representation of a consensus operation.

val dal_attestation : attestation:bool array -> level:int -> t

dal_attestation ~attestation ~level crafts a slot attestation operation to attest at level slot headers published at level level - attestation_lag. For each slot, the value of the booleans indicates whether the data is deemed available.

val operation : ?branch:string -> ?chain_id:string -> signer:Account.key -> t -> Client.t -> operation Lwt.t

operation constructs an operation from a consensus operation. the client is used to fetch the branch and the chain_id.

val inject : ?request:[ `Inject | `Notify ] -> ?force:bool -> ?branch:string -> ?chain_id:string -> ?error:Tezt.Base.rex -> signer:Account.key -> t -> Client.t -> [ `OpHash of string ] Lwt.t

A wrapper for inject with consensus operations. The client is used to get all the data that was not provided if it can be recovered via RPCs. Mainly those are the branch and the chain_id.

OCaml

Innovation. Community. Security.