package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Common end
val wrap : 'a Tezos_protocol_017_PtNairob.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 = Common.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_017_PtNairob.Protocol.Alpha_context.Sapling.diff) -> Tezos_sapling.Storage.state
include module type of struct include Contract_helpers end

Initializes 2 addresses to do only operations plus one that will be used to bake.

val read_file : string -> string

Return contents of a given file as string.

val load_script : storage:string -> string -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.t

Loads a script from file.

val default_payer : Tezos_base.TzPervasives.Signature.Public_key_hash.t

Helper function that parses and typechecks a script, its initial storage and parameters from strings. It then executes the typed script with the storage and parameters and returns the result.

The step_constants argument passes in some data which remains constant throughout script's execution, hence the name. This includes addresses of the sender and payer, the address of the smart contract, the amount of Tez transferred to it and so on.

An internal operation is an operation generated by smart contract's execution rather than by an implicit account.

Returns a block in which the contract is originated. Also returns the associated anti-replay string and KT1 address.

val hex_shield : memo_size:int -> wallet -> string -> string
val shield : memo_size:int -> Tezos_sapling.Forge.Core.Spending_key.t -> int -> Tezos_sapling.Core.Wallet.Viewing_key.t -> (string -> 'a) -> string -> 'a list * int
val next_block : Block.t -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Operation.packed -> (Block.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
OCaml

Innovation. Community. Security.