package octez-protocol-012-Psithaca-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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_stake_snapshot : int32 option;
  5. blocks_per_voting_period : int32 option;
  6. hard_gas_limit_per_operation : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Gas.Arith.integral option;
  7. hard_gas_limit_per_block : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Gas.Arith.integral option;
  8. proof_of_work_threshold : int64 option;
  9. tokens_per_roll : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  10. seed_nonce_revelation_tip : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  11. origination_size : int option;
  12. baking_reward_fixed_portion : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  13. baking_reward_bonus_per_slot : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  14. endorsing_reward_per_slot : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  15. cost_per_byte : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  16. hard_storage_limit_per_operation : Z.t option;
  17. quorum_min : int32 option;
  18. quorum_max : int32 option;
  19. min_proposal_quorum : int32 option;
  20. liquidity_baking_subsidy : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  21. liquidity_baking_sunset_level : int32 option;
  22. liquidity_baking_escape_ema_threshold : int32 option;
  23. max_operations_time_to_live : int option;
  24. minimal_block_delay : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Period.t option;
  25. delay_increment_per_round : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Period.t option;
  26. minimal_participation_ratio : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Constants.ratio option;
  27. consensus_committee_size : int option;
  28. consensus_threshold : int option;
  29. delegate_selection : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Constants.delegate_selection option;
  30. max_slashing_period : int option;
  31. frozen_deposits_percentage : int option;
  32. double_baking_punishment : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Tez.t option;
  33. ratio_of_frozen_deposits_slashed_per_double_endorsement : Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Constants.ratio option;
  34. chain_id : Tezos_base.TzPervasives.Chain_id.t option;
  35. timestamp : Tezos_base.TzPervasives.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".

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.