package tezos-011-PtHangz2-test-helpers

  1. Overview
  2. Docs
val wrap : 'a Tezos_protocol_011_PtHangz2.Protocol.Environment.Error_monad.tzresult -> 'a Tezos_base__TzPervasives.tzresult Lwt.t
val assert_true : (bool, 'a) result Lwt.t -> (unit, 'a) result Lwt.t
val assert_false : (bool, 'a) result Lwt.t -> (unit, 'a) result Lwt.t
val assert_some : ('a option, 'b) result Lwt.t -> ('a, 'b) result Lwt.t
val assert_none : ('a option, 'b) result Lwt.t -> (unit, 'b) result Lwt.t
val assert_error : ('a, 'b) result Lwt.t -> (unit, 'c) result Lwt.t
val print : ?prefix:string -> 'a Data_encoding.Encoding.t -> 'a -> unit
val to_hex : 'a -> 'a Data_encoding.Encoding.t -> string
val randomized_byte : ?pos:int -> 'a -> 'a Data_encoding.Encoding.t -> 'a
type wallet = {
  1. sk : Tezos_sapling.Core.Wallet.Spending_key.t;
  2. vk : Tezos_sapling.Core.Wallet.Viewing_key.t;
}
val wallet_gen : unit -> wallet
val gen_addr : int -> Tezos_sapling.Core.Client.Viewing_key.t -> Tezos_sapling.Core.Client.Viewing_key.address list
val gen_nf : unit -> Tezos_sapling.Core.Client.Nullifier.t
val gen_cm_cipher : memo_size:int -> unit -> Tezos_sapling.Core.Client.Commitment.t * Tezos_sapling.Core.Client.Ciphertext.t
val client_state_of_diff : memo_size:int -> (Tezos_sapling.Core.Validator.Hash.t * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Sapling.diff) -> Tezos_sapling.Storage.state