package tezos-protocol-demo-counter

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. a : int32;
  2. b : int32;
}

Demo protocol state

val invariant : t -> bool

counter should be positive

val create : int32 -> int32 -> t option
val encoding : t Tezos_base__TzPervasives.Data_encoding.t
val encoding_length : int
val get_state : Environment_context.Context.t -> t Lwt.t
val update_state : Environment_context.Context.t -> t -> Environment_context.Context.t Lwt.t
OCaml

Innovation. Community. Security.