package tezos-011-PtHangz2-test-helpers

  1. Overview
  2. Docs
type t = {
  1. pkh : Tezos_base__TzPervasives.Signature.Public_key_hash.t;
  2. pk : Tezos_base__TzPervasives.Signature.Public_key.t;
  3. sk : Tezos_base__TzPervasives.Signature.Secret_key.t;
}
type account = t
val known_accounts : t Tezos_base__TzPervasives.Signature.Public_key_hash.Table.t
val activator_account : account
val dummy_account : account
val new_account : ?seed:Bytes.t -> unit -> account
val add_account : t -> unit
val find : Tezos_base__TzPervasives.Signature.Public_key_hash.t -> t Tezos_base__TzPervasives.tzresult Lwt.t
val find_alternate : Tezos_base__TzPervasives.Signature.Public_key_hash.t -> t

generate_accounts ?initial_balances n : generates n random accounts with the initial balance of the ith account given by the ith value in the list initial_balances or otherwise 4.000.000.000 tz (if the list is too short); and add them to the global account state

val generate_accounts : ?rng_state:Random.State.t -> ?initial_balances:int64 list -> int -> (t * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Tez.t) list
val new_commitment : ?seed:Bytes.t -> unit -> (account * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Commitment.t) Tezos_base__TzPervasives.tzresult Lwt.t