package tezos-protocol-014-PtKathma
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-014-PtKathma/Tezos_protocol_014_PtKathma/Protocol/index.html
Module Tezos_protocol_014_PtKathma.Protocol
Source
include module type of struct include Tezos_raw_protocol_014_PtKathma end
module Constants_parametric_previous_repr =
Tezos_raw_protocol_014_PtKathma.Constants_parametric_previous_repr
module Delegate_activation_storage =
Tezos_raw_protocol_014_PtKathma.Delegate_activation_storage
module Liquidity_baking_migration =
Tezos_raw_protocol_014_PtKathma.Liquidity_baking_migration
module Sc_rollup_commitment_storage =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_commitment_storage
module Sc_rollup_data_version_sig =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_data_version_sig
module Sc_rollup_inbox_message_repr =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_inbox_message_repr
module Sc_rollup_management_protocol =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_management_protocol
module Sc_rollup_outbox_message_repr =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_outbox_message_repr
module Sc_rollup_refutation_storage =
Tezos_raw_protocol_014_PtKathma.Sc_rollup_refutation_storage
module Script_interpreter_logging =
Tezos_raw_protocol_014_PtKathma.Script_interpreter_logging
module Script_tc_errors_registration =
Tezos_raw_protocol_014_PtKathma.Script_tc_errors_registration
module Script_typed_ir_size_costs =
Tezos_raw_protocol_014_PtKathma.Script_typed_ir_size_costs
module Tx_rollup_commitment_storage =
Tezos_raw_protocol_014_PtKathma.Tx_rollup_commitment_storage
module Tx_rollup_message_hash_repr =
Tezos_raw_protocol_014_PtKathma.Tx_rollup_message_hash_repr
module Tx_rollup_message_result_hash_repr =
Tezos_raw_protocol_014_PtKathma.Tx_rollup_message_result_hash_repr
module Tx_rollup_message_result_repr =
Tezos_raw_protocol_014_PtKathma.Tx_rollup_message_result_repr
module Tx_rollup_withdraw_list_hash_repr =
Tezos_raw_protocol_014_PtKathma.Tx_rollup_withdraw_list_hash_repr
include module type of struct include Tezos_raw_protocol_014_PtKathma.Main end
type validation_mode = Tezos_raw_protocol_014_PtKathma.Main.validation_mode =
| Application of {
block_header : Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.t;
fitness : Tezos_raw_protocol_014_PtKathma.Alpha_context.Fitness.t;
payload_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
block_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
predecessor_round : Tezos_raw_protocol_014_PtKathma.Alpha_context.Round.t;
predecessor_level : Tezos_raw_protocol_014_PtKathma.Alpha_context.Level.t;
}
(*Full Validation of a block. See
*)Tezos_protocol_environment_sigs.V5.T.Updater.PROTOCOL.begin_application
*| Partial_application of {
block_header : Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.t;
fitness : Tezos_raw_protocol_014_PtKathma.Alpha_context.Fitness.t;
payload_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
block_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
predecessor_level : Tezos_raw_protocol_014_PtKathma.Alpha_context.Level.t;
predecessor_round : Tezos_raw_protocol_014_PtKathma.Alpha_context.Round.t;
}
(*
*)Partial_application
is used in pre-checking of blocks - not all checks are done. Special case ofApplication
to allow quick rejection of bad blocks. SeeTezos_protocol_environment_sigs.V5.T.Updater.PROTOCOL.begin_partial_application
| Partial_construction of {
predecessor : Tezos_protocol_environment_014_PtKathma.Block_hash.t;
predecessor_fitness : Tezos_protocol_environment_014_PtKathma.Fitness.t;
predecessor_level : Tezos_raw_protocol_014_PtKathma.Alpha_context.Level.t;
predecessor_round : Tezos_raw_protocol_014_PtKathma.Alpha_context.Round.t;
}
(*Shell/mempool-only construction of a virtual block. See
*)Tezos_protocol_environment_sigs.V5.T.Updater.PROTOCOL.begin_construction
| Full_construction of {
predecessor : Tezos_protocol_environment_014_PtKathma.Block_hash.t;
payload_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
block_producer : Tezos_raw_protocol_014_PtKathma.Alpha_context.public_key_hash;
protocol_data_contents : Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.contents;
level : Tezos_protocol_environment_014_PtKathma.Int32.t;
round : Tezos_raw_protocol_014_PtKathma.Alpha_context.Round.t;
predecessor_level : Tezos_raw_protocol_014_PtKathma.Alpha_context.Level.t;
predecessor_round : Tezos_raw_protocol_014_PtKathma.Alpha_context.Round.t;
}
(*Baker-only block construction for baking in. See
*)Tezos_protocol_environment_sigs.V5.T.Updater.PROTOCOL.begin_construction
validation_mode
permits to differenciate !type:validation_state
values.
There are four validation modes:
Application
Partial_application
Partial_construction
Full_construction
For the meaning and typical uses of each mode, refer to the comments attached to the corresponding type constructors below.
type validation_state = Tezos_raw_protocol_014_PtKathma.Main.validation_state = {
mode : validation_mode;
chain_id : Tezos_protocol_environment_014_PtKathma.Chain_id.t;
ctxt : Tezos_raw_protocol_014_PtKathma.Alpha_context.t;
op_count : int;
migration_balance_updates : Tezos_raw_protocol_014_PtKathma.Alpha_context.Receipt.balance_updates;
liquidity_baking_toggle_ema : Tezos_raw_protocol_014_PtKathma.Alpha_context.Liquidity_baking.Toggle_EMA.t;
implicit_operations_results : Tezos_raw_protocol_014_PtKathma.Apply_results.packed_successful_manager_operation_result list;
validate_operation_info : Tezos_raw_protocol_014_PtKathma.Validate_operation.validate_operation_info;
validate_operation_state : Tezos_raw_protocol_014_PtKathma.Validate_operation.validate_operation_state;
}
type operation = Tezos_raw_protocol_014_PtKathma.Alpha_context.packed_operation =
{
shell : Tezos_protocol_environment_014_PtKathma.Operation.shell_header;
protocol_data : operation_data;
}
val precheck_manager :
validation_state ->
'a Tezos_raw_protocol_014_PtKathma.Alpha_context.Kind.manager
Tezos_raw_protocol_014_PtKathma.Alpha_context.contents_list ->
'a Tezos_raw_protocol_014_PtKathma.Alpha_context.Kind.manager
Tezos_raw_protocol_014_PtKathma.Validate_operation.TMP_for_plugin.should_check_signature ->
Tezos_raw_protocol_014_PtKathma.Validate_operation.stamp
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
See Validate_operation.precheck_manager
.
include Tezos_protocol_environment_014_PtKathma.Updater.PROTOCOL
with type block_header_data =
Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.protocol_data
and type block_header_metadata =
Tezos_raw_protocol_014_PtKathma.Apply_results.block_metadata
and type block_header =
Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.t
and type operation_data := operation_data
and type operation_receipt =
Tezos_raw_protocol_014_PtKathma.Apply_results.packed_operation_metadata
and type operation := operation
and type validation_state := validation_state
type block_header_data =
Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.protocol_data
val block_header_data_encoding :
block_header_data Tezos_protocol_environment_014_PtKathma.Data_encoding.t
type block_header =
Tezos_raw_protocol_014_PtKathma.Alpha_context.Block_header.t =
{
shell : Tezos_protocol_environment_014_PtKathma.Block_header.shell_header;
protocol_data : block_header_data;
}
val block_header_metadata_encoding :
block_header_metadata Tezos_protocol_environment_014_PtKathma.Data_encoding.t
type operation_receipt =
Tezos_raw_protocol_014_PtKathma.Apply_results.packed_operation_metadata
val operation_data_encoding :
operation_data Tezos_protocol_environment_014_PtKathma.Data_encoding.t
val operation_receipt_encoding :
operation_receipt Tezos_protocol_environment_014_PtKathma.Data_encoding.t
val operation_data_and_receipt_encoding :
(operation_data * operation_receipt)
Tezos_protocol_environment_014_PtKathma.Data_encoding.t
val begin_partial_application :
chain_id:Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
ancestor_context:Tezos_protocol_environment_014_PtKathma.Context.t ->
predecessor_timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
predecessor_fitness:Tezos_protocol_environment_014_PtKathma.Fitness.t ->
block_header ->
validation_state Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
val begin_application :
chain_id:Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
predecessor_context:Tezos_protocol_environment_014_PtKathma.Context.t ->
predecessor_timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
predecessor_fitness:Tezos_protocol_environment_014_PtKathma.Fitness.t ->
block_header ->
validation_state Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
val begin_construction :
chain_id:Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
predecessor_context:Tezos_protocol_environment_014_PtKathma.Context.t ->
predecessor_timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
predecessor_level:Tezos_protocol_environment_014_PtKathma.Int32.t ->
predecessor_fitness:Tezos_protocol_environment_014_PtKathma.Fitness.t ->
predecessor:Tezos_protocol_environment_014_PtKathma.Block_hash.t ->
timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
?protocol_data:block_header_data ->
unit ->
validation_state Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
val finalize_block :
validation_state ->
Tezos_protocol_environment_014_PtKathma.Block_header.shell_header option ->
(Tezos_protocol_environment_014_PtKathma.Updater.validation_result
* block_header_metadata)
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
val init :
Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
Tezos_protocol_environment_014_PtKathma.Context.t ->
Tezos_protocol_environment_014_PtKathma.Block_header.shell_header ->
Tezos_protocol_environment_014_PtKathma.Updater.validation_result
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
val value_of_key :
chain_id:Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
predecessor_context:Tezos_protocol_environment_014_PtKathma.Context.t ->
predecessor_timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
predecessor_level:Tezos_protocol_environment_014_PtKathma.Int32.t ->
predecessor_fitness:Tezos_protocol_environment_014_PtKathma.Fitness.t ->
predecessor:Tezos_protocol_environment_014_PtKathma.Block_hash.t ->
timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
(Tezos_protocol_environment_014_PtKathma.Context.Cache.key ->
Tezos_protocol_environment_014_PtKathma.Context.Cache.value
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t)
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t