package tezos-client-alpha

  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_stake_snapshot : int32 option;
  5. blocks_per_voting_period : int32 option;
  6. hard_gas_limit_per_operation : Tezos_protocol_alpha.Protocol.Alpha_context.Gas.Arith.integral option;
  7. hard_gas_limit_per_block : Tezos_protocol_alpha.Protocol.Alpha_context.Gas.Arith.integral option;
  8. proof_of_work_threshold : int64 option;
  9. tokens_per_roll : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  10. seed_nonce_revelation_tip : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  11. origination_size : int option;
  12. baking_reward_fixed_portion : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  13. baking_reward_bonus_per_slot : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  14. endorsing_reward_per_slot : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  15. cost_per_byte : Tezos_protocol_alpha.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_alpha.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_alpha.Protocol.Alpha_context.Period.t option;
  25. delay_increment_per_round : Tezos_protocol_alpha.Protocol.Alpha_context.Period.t option;
  26. minimal_participation_ratio : Tezos_protocol_alpha.Protocol.Alpha_context.Constants.ratio option;
  27. consensus_committee_size : int option;
  28. consensus_threshold : int option;
  29. max_slashing_period : int option;
  30. frozen_deposits_percentage : int option;
  31. double_baking_punishment : Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t option;
  32. ratio_of_frozen_deposits_slashed_per_double_endorsement : Tezos_protocol_alpha.Protocol.Alpha_context.Constants.ratio option;
  33. tx_rollup_enable : bool option;
  34. tx_rollup_origination_size : int option;
  35. chain_id : Tezos_crypto.Chain_id.t option;
  36. timestamp : Tezos_base.Time.Protocol.t option;
  37. initial_seed : Tezos_protocol_alpha.Protocol.State_hash.t option 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.encoding

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.