package tezos-protocol-014-PtKathma
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-014-PtKathma.raw/Tezos_raw_protocol_014_PtKathma/Alpha_context/index.html
Module Tezos_raw_protocol_014_PtKathma.Alpha_context
Source
An Alpha_context.t
is an immutable snapshot of the ledger state at some block height, preserving type-safety and invariants of the ledger state.
Implementation
Alpha_context.t
is a wrapper over Raw_context.t
, which in turn is a wrapper around Context.t
from the Protocol Environment.
Lifetime of an Alpha_context
- Creation, using
prepare
orprepare_first_block
- Modification, using the operations defined in this signature
- Finalization, using
finalize
This module re-exports definitions from Period_repr
.
This module re-exports definitions from Ratio_repr
.
This module re-exports definitions from Raw_level_repr
.
This module re-exports definitions from Cycle_repr
.
This module re-exports definitions from Round_repr
.
This module re-exports definitions from Script_repr
and Michelson_v1_primitives
.
This module re-exports definitions from Constants_repr
and Constants_storage
.
See the definitions inside the module.
This module discloses definitions that are only useful for tests and must not be used otherwise.
This module re-exports definitions from Cache_repr
.
This module re-exports definitions from Level_repr
and Level_storage
.
This module re-exports definitions from Fitness_repr
.
This module re-exports definitions from Nonce_storage
.
This module re-exports definitions from Seed_repr
and Seed_storage
.
This module re-exports definitions from Sapling_repr
, Sapling_storage
and Sapling_validator
.
This module re-exports definitions from Lazy_storage_diff
.
See the definitions inside the module.
This module re-exports definitions from Ticket_hash_repr
.
This module re-exports definitions from Contract_repr
and Contract_storage
.
This module re-exports definitions from Tx_rollup_level_repr
.
This module re-exports definitions from Tx_rollup_repr
and Tx_rollup_storage
.
This module re-exports definitions from Tx_rollup_withdraw_repr
.
This module re-exports definitions from Tx_rollup_withdraw_list_hash_repr
.
This module re-exports definitions from Tx_rollup_message_result_repr
.
This module re-exports definitions from Tx_rollup_message_result_hash_repr
.
This module re-exports definitions from Tx_rollup_commitment_repr.Hash
.
This module re-exports definitions from Tx_rollup_state_repr
and Tx_rollup_state_storage
.
This module re-exports definitions from Tx_rollup_reveal_repr
and Tx_rollup_reveal_storage
.
This module re-exports definitions from Tx_rollup_message_repr
.
This module re-exports definitions from Tx_rollup_message_hash_repr
.
This module re-exports definitions from Tx_rollup_inbox_repr
and Tx_rollup_inbox_storage
.
This module re-exports definitions from Tx_rollup_commitment_repr
.
This module re-exports definitions from Tx_rollup_hash_builder
.
This module re-exports definitions from Tx_rollup_errors_repr
.
This is a forward declaration to avoid circular dependencies. Use module Sc_rollup
instead whenever possible. TODO : find a better way to resolve the circular dependency https://gitlab.com/tezos/tezos/-/issues/3147
This module re-exports definitions from Bond_id_repr
.
This module re-exports definitions from Receipt_repr
.
This module re-exports definitions from Delegate_storage
.
This module re-exports definitions from Voting_period_repr
and Voting_period_storage
.
This module re-exports definitions from Vote_repr
and Vote_storage
.
This module re-exports definitions from Sc_rollup_storage
and Sc_rollup_repr
.
This module re-exports definitions from Destination_repr
.
This module re-exports definitions from Block_header_repr
.
This module re-exports definitions from Lazy_storage_kind
.
All the definitions below are re-exported from Operation_repr
.
type 'a consensus_operation_type =
| Endorsement : Kind.endorsement consensus_operation_type
| Preendorsement : Kind.preendorsement consensus_operation_type
val pp_operation_kind :
Tezos_protocol_environment_014_PtKathma.Format.formatter ->
'kind consensus_operation_type ->
unit
type consensus_content = {
slot : Slot.t;
level : Raw_level.t;
round : Round.t;
block_payload_hash : Block_payload_hash.t;
}
val consensus_content_encoding :
consensus_content Tezos_protocol_environment_014_PtKathma.Data_encoding.t
val pp_consensus_content :
Tezos_protocol_environment_014_PtKathma.Format.formatter ->
consensus_content ->
unit
type 'kind operation = {
shell : Tezos_protocol_environment_014_PtKathma.Operation.shell_header;
protocol_data : 'kind protocol_data;
}
and 'kind protocol_data = {
contents : 'kind contents_list;
signature : Tezos_protocol_environment_014_PtKathma.Signature.t option;
}
and _ contents_list =
| Single : 'kind contents -> 'kind contents_list
| Cons : 'kind Kind.manager contents * 'rest Kind.manager contents_list -> ('kind * 'rest) Kind.manager contents_list
and _ contents =
| Preendorsement : consensus_content -> Kind.preendorsement contents
| Endorsement : consensus_content -> Kind.endorsement contents
| Dal_slot_availability : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t * Dal.Endorsement.t -> Kind.dal_slot_availability contents
| Seed_nonce_revelation : {
level : Raw_level.t;
nonce : Nonce.t;
} -> Kind.seed_nonce_revelation contents
| Vdf_revelation : {
solution : Seed.vdf_solution;
} -> Kind.vdf_revelation contents
| Double_preendorsement_evidence : {
op1 : Kind.preendorsement operation;
op2 : Kind.preendorsement operation;
} -> Kind.double_preendorsement_evidence contents
| Double_endorsement_evidence : {
op1 : Kind.endorsement operation;
op2 : Kind.endorsement operation;
} -> Kind.double_endorsement_evidence contents
| Double_baking_evidence : {
bh1 : Block_header.t;
bh2 : Block_header.t;
} -> Kind.double_baking_evidence contents
| Activate_account : {
id : Tezos_protocol_environment_014_PtKathma.Ed25519.Public_key_hash.t;
activation_code : Blinded_public_key_hash.activation_code;
} -> Kind.activate_account contents
| Proposals : {
source : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t;
period : int32;
proposals : Tezos_protocol_environment_014_PtKathma.Protocol_hash.t list;
} -> Kind.proposals contents
| Ballot : {
source : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t;
period : int32;
proposal : Tezos_protocol_environment_014_PtKathma.Protocol_hash.t;
ballot : Vote.ballot;
} -> Kind.ballot contents
| Failing_noop : string -> Kind.failing_noop contents
| Manager_operation : {
source : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t;
fee : Tez.tez;
counter : counter;
operation : 'kind manager_operation;
gas_limit : Gas.Arith.integral;
storage_limit : Tezos_protocol_environment_014_PtKathma.Z.t;
} -> 'kind Kind.manager contents
and _ manager_operation =
| Reveal : Tezos_protocol_environment_014_PtKathma.Signature.Public_key.t -> Kind.reveal manager_operation
| Transaction : {
amount : Tez.tez;
parameters : Script.lazy_expr;
entrypoint : Entrypoint.t;
destination : Contract.t;
} -> Kind.transaction manager_operation
| Origination : {
delegate : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t option;
script : Script.t;
credit : Tez.tez;
} -> Kind.origination manager_operation
| Delegation : Tezos_protocol_environment_014_PtKathma.Signature.Public_key_hash.t option -> Kind.delegation manager_operation
| Register_global_constant : {
value : Script.lazy_expr;
} -> Kind.register_global_constant manager_operation
| Set_deposits_limit : Tez.t option -> Kind.set_deposits_limit manager_operation
| Increase_paid_storage : {
amount_in_bytes : Tezos_protocol_environment_014_PtKathma.Z.t;
destination : Contract_hash.t;
} -> Kind.increase_paid_storage manager_operation
| Tx_rollup_origination : Kind.tx_rollup_origination manager_operation
| Tx_rollup_submit_batch : {
tx_rollup : Tx_rollup.t;
content : string;
burn_limit : Tez.tez option;
} -> Kind.tx_rollup_submit_batch manager_operation
| Tx_rollup_commit : {
tx_rollup : Tx_rollup.t;
commitment : Tx_rollup_commitment.Full.t;
} -> Kind.tx_rollup_commit manager_operation
| Tx_rollup_return_bond : {
tx_rollup : Tx_rollup.t;
} -> Kind.tx_rollup_return_bond manager_operation
| Tx_rollup_finalize_commitment : {
tx_rollup : Tx_rollup.t;
} -> Kind.tx_rollup_finalize_commitment manager_operation
| Tx_rollup_remove_commitment : {
tx_rollup : Tx_rollup.t;
} -> Kind.tx_rollup_remove_commitment manager_operation
| Tx_rollup_rejection : {
tx_rollup : Tx_rollup.t;
level : Tx_rollup_level.t;
message : Tx_rollup_message.t;
message_position : int;
message_path : Tx_rollup_inbox.Merkle.path;
message_result_hash : Tx_rollup_message_result_hash.t;
message_result_path : Tx_rollup_commitment.Merkle.path;
previous_message_result : Tx_rollup_message_result.t;
previous_message_result_path : Tx_rollup_commitment.Merkle.path;
proof : Tx_rollup_l2_proof.t;
} -> Kind.tx_rollup_rejection manager_operation
| Tx_rollup_dispatch_tickets : {
tx_rollup : Tx_rollup.t;
level : Tx_rollup_level.t;
context_hash : Tezos_protocol_environment_014_PtKathma.Context_hash.t;
message_index : int;
message_result_path : Tx_rollup_commitment.Merkle.path;
tickets_info : Tx_rollup_reveal.t list;
} -> Kind.tx_rollup_dispatch_tickets manager_operation
| Transfer_ticket : {
contents : Script.lazy_expr;
ty : Script.lazy_expr;
ticketer : Contract.t;
amount : Tezos_protocol_environment_014_PtKathma.Z.t;
destination : Contract.t;
entrypoint : Entrypoint.t;
} -> Kind.transfer_ticket manager_operation
| Dal_publish_slot_header : {
slot : Dal.Slot.t;
} -> Kind.dal_publish_slot_header manager_operation
| Sc_rollup_originate : {
kind : Sc_rollup.Kind.t;
boot_sector : string;
parameters_ty : Script.lazy_expr;
} -> Kind.sc_rollup_originate manager_operation
| Sc_rollup_add_messages : {
rollup : Sc_rollup.t;
messages : string list;
} -> Kind.sc_rollup_add_messages manager_operation
| Sc_rollup_cement : {
rollup : Sc_rollup.t;
commitment : Sc_rollup.Commitment.Hash.t;
} -> Kind.sc_rollup_cement manager_operation
| Sc_rollup_publish : {
rollup : Sc_rollup.t;
commitment : Sc_rollup.Commitment.t;
} -> Kind.sc_rollup_publish manager_operation
| Sc_rollup_refute : {
rollup : Sc_rollup.t;
opponent : Sc_rollup.Staker.t;
refutation : Sc_rollup.Game.refutation;
is_opening_move : bool;
} -> Kind.sc_rollup_refute manager_operation
| Sc_rollup_timeout : {
rollup : Sc_rollup.t;
stakers : Sc_rollup.Game.Index.t;
} -> Kind.sc_rollup_timeout manager_operation
| Sc_rollup_execute_outbox_message : {
rollup : Sc_rollup.t;
cemented_commitment : Sc_rollup.Commitment.Hash.t;
outbox_level : Raw_level.t;
message_index : int;
inclusion_proof : string;
message : string;
} -> Kind.sc_rollup_execute_outbox_message manager_operation
| Sc_rollup_recover_bond : {
sc_rollup : Sc_rollup.t;
} -> Kind.sc_rollup_recover_bond manager_operation
| Sc_rollup_dal_slot_subscribe : {
rollup : Sc_rollup.t;
slot_index : Dal.Slot_index.t;
} -> Kind.sc_rollup_dal_slot_subscribe manager_operation
type packed_manager_operation =
| Manager : 'kind manager_operation -> packed_manager_operation
type packed_operation = {
shell : Tezos_protocol_environment_014_PtKathma.Operation.shell_header;
protocol_data : packed_protocol_data;
}
This module re-exports definitions from Operation_repr
.
This module re-exports definitions from Stake_storage
, Delegate_storage
and Delegate
.
This module re-exports definitions from Commitment_repr
and, Commitment_storage
.
This module re-exports definitions from Bootstrap_storage
.
This module re-exports definitions from Migration_repr
.
val prepare_first_block :
Tezos_protocol_environment_014_PtKathma.Chain_id.t ->
Tezos_protocol_environment_014_PtKathma.Context.t ->
typecheck:
(context ->
Script.t ->
((Script.t * Lazy_storage.diffs option) * context)
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t) ->
level:Tezos_protocol_environment_014_PtKathma.Int32.t ->
timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
context Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
Create an Alpha_context.t
from an untyped context (first block in the chain only).
val prepare :
Tezos_protocol_environment_014_PtKathma.Context.t ->
level:Tezos_protocol_environment_014_PtKathma.Int32.t ->
predecessor_timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
timestamp:Tezos_protocol_environment_014_PtKathma.Time.t ->
(context * Receipt.balance_updates * Migration.origination_result list)
Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
Tezos_protocol_environment_014_PtKathma.Lwt.t
Create an Alpha_context.t
from an untyped context.
All the definitions below are re-exported from Raw_context
.
val fresh_internal_nonce :
context ->
(context * int) Tezos_protocol_environment_014_PtKathma.Error_monad.tzresult
val record_non_consensus_operation_hash :
context ->
Tezos_protocol_environment_014_PtKathma.Operation_hash.t ->
context
val non_consensus_operations :
context ->
Tezos_protocol_environment_014_PtKathma.Operation_hash.t list
val finalize :
?commit_message:string ->
context ->
Fitness.raw ->
Tezos_protocol_environment_014_PtKathma.Updater.validation_result
Finalize an Alpha_context.t
, producing a validation_result
.
Should only be used by Main.current_context
to return a context usable for RPCs
This module re-exports definitions from Parameters_repr
.
This module re-exports definitions from Liquidity_baking_repr
and Liquidity_baking_storage
.
This module re-exports definitions from Ticket_storage
.
This module re-exports definitions from Raw_context.Consensus
.
This module re-exports definitions from Fees_storage
.