package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | B of Block.t
  2. | I of Incremental.t

Given a context, returns the list of endorsers charactized by the level, the public key hash of the delegate, its consensus_key and its assigned slots. see Plugin.RPC.Validator.t.

Return the first element delegate,slot of the list returns by get_endorsers, where delegate is the consensus key when is set.

Given a delegate, and a context ctxt, if delegate is in get_endorsers ctxt returns the slots of delegate otherwise return None.

The default constants used in the test framework. To be used with init_with_constants.

module Vote : sig ... end
module Contract : sig ... end
module Delegate : sig ... end
module Sc_rollup : sig ... end
type (_, _) tup =
  1. | T1 : ('a, 'a) tup
  2. | T2 : ('a, 'a * 'a) tup
  3. | T3 : ('a, 'a * 'a * 'a) tup
  4. | TList : int -> ('a, 'a list) tup
val tup_hd : ('a, 'elts) tup -> 'elts -> 'a
type 'accounts init := ?rng_state:Stdlib.Random.State.t -> ?commitments: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Commitment.t list -> ?bootstrap_balances:int64 list -> ?bootstrap_delegations: Tezos_protocol_017_PtNairob.Environment.Signature.Public_key_hash.t option list -> ?bootstrap_consensus_keys: Tezos_protocol_017_PtNairob.Environment.Signature.Public_key.t option list -> ?consensus_threshold:int -> ?min_proposal_quorum:int32 -> ?bootstrap_contracts: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Parameters.bootstrap_contract list -> ?level:int32 -> ?cost_per_byte:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t -> ?liquidity_baking_subsidy: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t -> ?endorsing_reward_per_slot: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t -> ?baking_reward_bonus_per_slot: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t -> ?baking_reward_fixed_portion: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t -> ?origination_size:int -> ?blocks_per_cycle:int32 -> ?cycles_per_voting_period:int32 -> ?sc_rollup_enable:bool -> ?sc_rollup_arith_pvm_enable:bool -> ?dal_enable:bool -> ?zk_rollup_enable:bool -> ?hard_gas_limit_per_block: Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Gas.Arith.integral -> ?nonce_revelation_threshold:int32 -> unit -> (Block.t * 'accounts) Tezos_base.TzPervasives.tzresult Tezos_protocol_017_PtNairob.Environment.Lwt.t

Returns an initial block and the implicit contracts corresponding to its bootstrap accounts. The number of bootstrap accounts, and the structure of the returned contracts, are specified by the tup argument.

init_n n : returns an initial block with n initialized accounts and the associated implicit contracts

init1 : returns an initial block with 1 initialized bootstrap account and the associated implicit contract

init2 : returns an initial block with 2 initialized bootstrap accounts and the associated implicit contracts

init3 : returns an initial block with 3 initialized bootstrap accounts and the associated implicit contracts

init_with_parameters_gen tup params returns an initial block parametrised with params and the implicit contracts corresponding to its bootstrap accounts. The number of bootstrap accounts, and the structure of the returned contracts, are specified by the tup argument.

init_with_parameters_n params n returns an initial block parametrized with params with n initialized accounts and the associated implicit contracts

init_with_parameters1 params returns an initial block parametrized with params with one initialized account and the associated implicit contract.

init_with_parameters2 params returns an initial block parametrized with params with two initialized accounts and the associated implicit contracts

default_raw_context returns a Raw_context.t for use in tests below Alpha_context

OCaml

Innovation. Community. Security.