2019-09-05 17:21:01 +04:00
|
|
|
(*****************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Open Source License *)
|
|
|
|
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* Permission is hereby granted, free of charge, to any person obtaining a *)
|
|
|
|
(* copy of this software and associated documentation files (the "Software"),*)
|
|
|
|
(* to deal in the Software without restriction, including without limitation *)
|
|
|
|
(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *)
|
|
|
|
(* and/or sell copies of the Software, and to permit persons to whom the *)
|
|
|
|
(* Software is furnished to do so, subject to the following conditions: *)
|
|
|
|
(* *)
|
|
|
|
(* The above copyright notice and this permission notice shall be included *)
|
|
|
|
(* in all copies or substantial portions of the Software. *)
|
|
|
|
(* *)
|
|
|
|
(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)
|
|
|
|
(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *)
|
|
|
|
(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *)
|
|
|
|
(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)
|
|
|
|
(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *)
|
|
|
|
(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *)
|
|
|
|
(* DEALINGS IN THE SOFTWARE. *)
|
|
|
|
(* *)
|
|
|
|
(*****************************************************************************)
|
|
|
|
|
|
|
|
let preserved_cycles c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.preserved_cycles
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let blocks_per_cycle c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.blocks_per_cycle
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let blocks_per_commitment c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.blocks_per_commitment
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let blocks_per_roll_snapshot c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.blocks_per_roll_snapshot
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let blocks_per_voting_period c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.blocks_per_voting_period
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let time_between_blocks c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.time_between_blocks
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let endorsers_per_block c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.endorsers_per_block
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-10-17 13:45:27 +04:00
|
|
|
let initial_endorsers c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.initial_endorsers
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-10-17 13:45:27 +04:00
|
|
|
let delay_per_missing_endorsement c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.delay_per_missing_endorsement
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let hard_gas_limit_per_operation c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.hard_gas_limit_per_operation
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let hard_gas_limit_per_block c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.hard_gas_limit_per_block
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let cost_per_byte c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.cost_per_byte
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let hard_storage_limit_per_operation c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.hard_storage_limit_per_operation
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let proof_of_work_threshold c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.proof_of_work_threshold
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let tokens_per_roll c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.tokens_per_roll
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let michelson_maximum_type_size c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.michelson_maximum_type_size
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let seed_nonce_revelation_tip c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.seed_nonce_revelation_tip
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let origination_size c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.origination_size
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let block_security_deposit c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.block_security_deposit
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let endorsement_security_deposit c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.endorsement_security_deposit
|
2020-02-12 20:40:17 +04:00
|
|
|
|
|
|
|
let baking_reward_per_endorsement c =
|
2019-09-05 17:21:01 +04:00
|
|
|
let constants = Raw_context.constants c in
|
2020-02-12 20:40:17 +04:00
|
|
|
constants.baking_reward_per_endorsement
|
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let endorsement_reward c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.endorsement_reward
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-09-05 17:21:01 +04:00
|
|
|
let test_chain_duration c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.test_chain_duration
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-10-17 13:45:27 +04:00
|
|
|
let quorum_min c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.quorum_min
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-10-17 13:45:27 +04:00
|
|
|
let quorum_max c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.quorum_max
|
2020-02-12 20:40:17 +04:00
|
|
|
|
2019-10-17 13:45:27 +04:00
|
|
|
let min_proposal_quorum c =
|
|
|
|
let constants = Raw_context.constants c in
|
|
|
|
constants.min_proposal_quorum
|
2020-02-12 20:40:17 +04:00
|
|
|
|
|
|
|
let parametric c = Raw_context.constants c
|