package tezos-client-008-PtEdo2Zk

  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_008_PtEdo2Zk.Protocol.Period_repr.t list option;
  7. endorsers_per_block : int option;
  8. hard_gas_limit_per_operation : Tezos_protocol_008_PtEdo2Zk.Protocol.Gas_limit_repr.Arith.integral option;
  9. hard_gas_limit_per_block : Tezos_protocol_008_PtEdo2Zk.Protocol.Gas_limit_repr.Arith.integral option;
  10. proof_of_work_threshold : int64 option;
  11. tokens_per_roll : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t option;
  12. michelson_maximum_type_size : int option;
  13. seed_nonce_revelation_tip : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t option;
  14. origination_size : int option;
  15. block_security_deposit : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t option;
  16. endorsement_security_deposit : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t option;
  17. baking_reward_per_endorsement : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t list option;
  18. endorsement_reward : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t list option;
  19. cost_per_byte : Tezos_protocol_008_PtEdo2Zk.Protocol.Tez_repr.t option;
  20. hard_storage_limit_per_operation : Z.t option;
  21. test_chain_duration : int64 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_008_PtEdo2Zk.Protocol.Period_repr.t option;
  27. chain_id : Tezos_crypto.Chain_id.t option;
  28. 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.