package tezos-client-010-PtGRANAD

  1. Overview
  2. Docs

Protocol constants overriding logic.

type t = {
  1. preserved_cycles : int option;
  2. blocks_per_cycle : int32 option;
  3. blocks_per_commitment : int32 option;
  4. blocks_per_roll_snapshot : int32 option;
  5. blocks_per_voting_period : int32 option;
  6. time_between_blocks : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Period.t list option;
  7. minimal_block_delay : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Period.t option;
  8. endorsers_per_block : int option;
  9. hard_gas_limit_per_operation : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Gas.Arith.integral option;
  10. hard_gas_limit_per_block : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Gas.Arith.integral option;
  11. proof_of_work_threshold : int64 option;
  12. tokens_per_roll : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  13. michelson_maximum_type_size : int option;
  14. seed_nonce_revelation_tip : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  15. origination_size : int option;
  16. block_security_deposit : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  17. endorsement_security_deposit : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  18. baking_reward_per_endorsement : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t list option;
  19. endorsement_reward : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t list option;
  20. cost_per_byte : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  21. hard_storage_limit_per_operation : Z.t option;
  22. quorum_min : int32 option;
  23. quorum_max : int32 option;
  24. min_proposal_quorum : int32 option;
  25. initial_endorsers : int option;
  26. delay_per_missing_endorsement : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Period.t option;
  27. liquidity_baking_subsidy : Tezos_protocol_010_PtGRANAD.Protocol.Alpha_context.Tez.t option;
  28. liquidity_baking_sunset_level : int32 option;
  29. liquidity_baking_escape_ema_threshold : int32 option;
  30. chain_id : Tezos_crypto.Chain_id.t option;
  31. timestamp : Tezos_base.Time.Protocol.t option;
}

Equivalent of Constants.parametric with additionally chain_id and timestamp but each field is wrapped in an option. Some is an override, None means "Use the default value".

val encoding : t Data_encoding.t

Shamefully copied from Constants_repr.parametric_encoding and adapted (opt instead of req).

val no_overrides : t
type field =
  1. | O : {
    1. name : string;
    2. override_value : 'a option;
    3. pp : Stdlib.Format.formatter -> 'a -> unit;
    } -> field

Existential wrapper to support heterogeneous lists/maps.

val field_pp : Stdlib.Format.formatter -> field -> unit
OCaml

Innovation. Community. Security.