package octez-protocol-014-PtKathma-libs

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

Protocol constants overriding logic.

type tx_rollup = {
  1. enable : bool option;
  2. origination_size : int option;
  3. hard_size_limit_per_inbox : int option;
  4. hard_size_limit_per_message : int option;
  5. max_withdrawals_per_batch : int option;
  6. commitment_bond : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  7. finality_period : int option;
  8. max_inboxes_count : int option;
  9. withdraw_period : int option;
  10. max_messages_per_inbox : int option;
  11. max_commitments_count : int option;
  12. cost_per_byte_ema_factor : int option;
  13. max_ticket_payload_size : int option;
  14. rejection_max_proof_size : int option;
  15. sunset_level : int32 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".

type sc_rollup = {
  1. enable : bool option;
  2. origination_size : int option;
  3. challenge_window_in_blocks : int option;
  4. max_available_messages : int option;
  5. stake_amount : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  6. commitment_period_in_blocks : int option;
  7. max_lookahead_in_blocks : int32 option;
  8. max_active_outbox_levels : int32 option;
  9. max_outbox_messages_per_level : int option;
}
type t = {
  1. preserved_cycles : int option;
  2. blocks_per_cycle : int32 option;
  3. blocks_per_commitment : int32 option;
  4. nonce_revelation_threshold : int32 option;
  5. blocks_per_stake_snapshot : int32 option;
  6. cycles_per_voting_period : int32 option;
  7. hard_gas_limit_per_operation : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Gas.Arith.integral option;
  8. hard_gas_limit_per_block : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Gas.Arith.integral option;
  9. proof_of_work_threshold : int64 option;
  10. tokens_per_roll : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  11. vdf_difficulty : int64 option;
  12. seed_nonce_revelation_tip : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  13. origination_size : int option;
  14. baking_reward_fixed_portion : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  15. baking_reward_bonus_per_slot : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  16. endorsing_reward_per_slot : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  17. cost_per_byte : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  18. hard_storage_limit_per_operation : Z.t option;
  19. quorum_min : int32 option;
  20. quorum_max : int32 option;
  21. min_proposal_quorum : int32 option;
  22. liquidity_baking_subsidy : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  23. liquidity_baking_sunset_level : int32 option;
  24. liquidity_baking_toggle_ema_threshold : int32 option;
  25. max_operations_time_to_live : int option;
  26. minimal_block_delay : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Period.t option;
  27. delay_increment_per_round : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Period.t option;
  28. minimal_participation_ratio : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Ratio.t option;
  29. consensus_committee_size : int option;
  30. consensus_threshold : int option;
  31. max_slashing_period : int option;
  32. frozen_deposits_percentage : int option;
  33. double_baking_punishment : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t option;
  34. ratio_of_frozen_deposits_slashed_per_double_endorsement : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Ratio.t option;
  35. testnet_dictator : Tezos_crypto.Signature.V0.Public_key_hash.t option option;
  36. cache_script_size : int option;
  37. cache_stake_distribution_cycles : int option;
  38. cache_sampler_state_cycles : int option;
  39. tx_rollup : tx_rollup;
  40. dal : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Constants.Parametric.dal option;
  41. sc_rollup : sc_rollup;
  42. chain_id : Tezos_base.TzPervasives.Chain_id.t option;
  43. timestamp : Tezos_base.TzPervasives.Time.Protocol.t option;
  44. initial_seed : Tezos_protocol_014_PtKathma.Protocol.State_hash.t option option;
}
val tx_rollup_encoding : tx_rollup Tezos_base.TzPervasives.Data_encoding.encoding

Shamefully copied from Constants_parametric_repr.encoding and adapted (opt instead of req).

val sc_rollup_encoding : sc_rollup Tezos_base.TzPervasives.Data_encoding.encoding
val encoding : t Tezos_base.TzPervasives.Data_encoding.encoding
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.