package tezos-protocol-013-PtJakart

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

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 or prepare_first_block
  • Modification, using the operations defined in this signature
  • Finalization, using finalize
module type BASIC_DATA = sig ... end
type t
type context = t
module Slot : sig ... end
module Tez : sig ... end
module Period : sig ... end
module Timestamp : sig ... end
module Raw_level : sig ... end
module Cycle : sig ... end
module Round : sig ... end
module Gas : sig ... end

This module implements the gas subsystem of the context.

module Entrypoint : module type of Entrypoint_repr
module Script_string : module type of Script_string_repr

Strings of printable characters

module Script_int : module type of Script_int_repr
module Script_timestamp : sig ... end
module Script : sig ... end
module Constants : sig ... end
module Global_constants_storage : sig ... end
module Internal_for_tests : sig ... end
module Cache : sig ... end
module Level : sig ... end
module Fitness : sig ... end
module Nonce : sig ... end
module Seed : sig ... end
module Big_map : sig ... end
module Sapling : sig ... end
module Lazy_storage : sig ... end
module Origination_nonce : sig ... end
module Ticket_hash : sig ... end

This module re-exports functions from Ticket_hash_repr. See documentation of the functions there.

module Contract : sig ... end
module Tx_rollup_level : sig ... end
module Tx_rollup : sig ... end

This module re-exports definitions from Tx_rollup_repr and Tx_rollup_storage.

module Tx_rollup_withdraw : sig ... end
module Tx_rollup_withdraw_list_hash : sig ... end
module Tx_rollup_message_result : sig ... end
module Tx_rollup_message_result_hash : sig ... end
module Tx_rollup_commitment_hash : sig ... end
module Tx_rollup_state : sig ... end

This module re-exports definitions from Tx_rollup_state_repr and Tx_rollup_state_storage.

module Tx_rollup_reveal : sig ... end
module Tx_rollup_message : sig ... end

This module re-exports definitions from Tx_rollup_message_repr.

module Tx_rollup_message_hash : sig ... end
module Tx_rollup_inbox : sig ... end

This module re-exports definitions from Tx_rollup_inbox_repr and Tx_rollup_inbox_storage.

module Tx_rollup_commitment : sig ... end

This simply re-exports Tx_rollup_commitment_repr

module Tx_rollup_hash : sig ... end
module Tx_rollup_errors : sig ... end
module Bond_id : sig ... end
module Destination : sig ... end

This simply re-exports Destination_repr.

module Receipt : sig ... end
module Delegate : sig ... end
module Voting_period : sig ... end
module Vote : sig ... end
module Sc_rollup : sig ... end
module Block_payload : sig ... end
module Block_header : sig ... end
module Kind : sig ... end
type 'a consensus_operation_type =
  1. | Endorsement : Kind.endorsement consensus_operation_type
  2. | Preendorsement : Kind.preendorsement consensus_operation_type
type consensus_content = {
  1. slot : Slot.t;
  2. level : Raw_level.t;
  3. round : Round.t;
  4. block_payload_hash : Block_payload_hash.t;
}
type transaction = {
  1. amount : Tez.tez;
  2. parameters : Script.lazy_expr;
  3. entrypoint : Entrypoint.t;
  4. destination : Destination.t;
}
type origination = {
  1. delegate : Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t option;
  2. script : Script.t;
  3. credit : Tez.tez;
}
type 'kind operation = {
  1. shell : Tezos_protocol_environment_013_PtJakart.Operation.shell_header;
  2. protocol_data : 'kind protocol_data;
}
and 'kind protocol_data = {
  1. contents : 'kind contents_list;
  2. signature : Tezos_protocol_environment_013_PtJakart.Signature.t option;
}
and _ contents_list =
  1. | Single : 'kind contents -> 'kind contents_list
  2. | Cons : 'kind Kind.manager contents * 'rest Kind.manager contents_list -> ('kind * 'rest) Kind.manager contents_list
and _ contents =
  1. | Preendorsement : consensus_content -> Kind.preendorsement contents
  2. | Endorsement : consensus_content -> Kind.endorsement contents
  3. | Seed_nonce_revelation : {
    1. level : Raw_level.t;
    2. nonce : Nonce.t;
    } -> Kind.seed_nonce_revelation contents
  4. | Double_preendorsement_evidence : {
    1. op1 : Kind.preendorsement operation;
    2. op2 : Kind.preendorsement operation;
    } -> Kind.double_preendorsement_evidence contents
  5. | Double_endorsement_evidence : {
    1. op1 : Kind.endorsement operation;
    2. op2 : Kind.endorsement operation;
    } -> Kind.double_endorsement_evidence contents
  6. | Double_baking_evidence : {
    1. bh1 : Block_header.t;
    2. bh2 : Block_header.t;
    } -> Kind.double_baking_evidence contents
  7. | Activate_account : {
    1. id : Tezos_protocol_environment_013_PtJakart.Ed25519.Public_key_hash.t;
    2. activation_code : Blinded_public_key_hash.activation_code;
    } -> Kind.activate_account contents
  8. | Proposals : {
    1. source : Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t;
    2. period : int32;
    3. proposals : Tezos_protocol_environment_013_PtJakart.Protocol_hash.t list;
    } -> Kind.proposals contents
  9. | Ballot : {
    1. source : Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t;
    2. period : int32;
    3. proposal : Tezos_protocol_environment_013_PtJakart.Protocol_hash.t;
    4. ballot : Vote.ballot;
    } -> Kind.ballot contents
  10. | Failing_noop : string -> Kind.failing_noop contents
  11. | Manager_operation : {
    1. source : Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t;
    2. fee : Tez.tez;
    3. counter : counter;
    4. operation : 'kind manager_operation;
    5. gas_limit : Gas.Arith.integral;
    6. storage_limit : Tezos_protocol_environment_013_PtJakart.Z.t;
    } -> 'kind Kind.manager contents
and _ manager_operation =
  1. | Reveal : Tezos_protocol_environment_013_PtJakart.Signature.Public_key.t -> Kind.reveal manager_operation
  2. | Transaction : transaction -> Kind.transaction manager_operation
  3. | Origination : origination -> Kind.origination manager_operation
  4. | Delegation : Tezos_protocol_environment_013_PtJakart.Signature.Public_key_hash.t option -> Kind.delegation manager_operation
  5. | Register_global_constant : {
    1. value : Script.lazy_expr;
    } -> Kind.register_global_constant manager_operation
  6. | Set_deposits_limit : Tez.t option -> Kind.set_deposits_limit manager_operation
  7. | Tx_rollup_origination : Kind.tx_rollup_origination manager_operation
  8. | Tx_rollup_submit_batch : {
    1. tx_rollup : Tx_rollup.t;
    2. content : string;
    3. burn_limit : Tez.tez option;
    } -> Kind.tx_rollup_submit_batch manager_operation
  9. | Tx_rollup_commit : {
    1. tx_rollup : Tx_rollup.t;
    2. commitment : Tx_rollup_commitment.Full.t;
    } -> Kind.tx_rollup_commit manager_operation
  10. | Tx_rollup_return_bond : {
    1. tx_rollup : Tx_rollup.t;
    } -> Kind.tx_rollup_return_bond manager_operation
  11. | Tx_rollup_finalize_commitment : {
    1. tx_rollup : Tx_rollup.t;
    } -> Kind.tx_rollup_finalize_commitment manager_operation
  12. | Tx_rollup_remove_commitment : {
    1. tx_rollup : Tx_rollup.t;
    } -> Kind.tx_rollup_remove_commitment manager_operation
  13. | Tx_rollup_rejection : {
    1. tx_rollup : Tx_rollup.t;
    2. level : Tx_rollup_level.t;
    3. message : Tx_rollup_message.t;
    4. message_position : int;
    5. message_path : Tx_rollup_inbox.Merkle.path;
    6. message_result_hash : Tx_rollup_message_result_hash.t;
    7. message_result_path : Tx_rollup_commitment.Merkle.path;
    8. previous_message_result : Tx_rollup_message_result.t;
    9. previous_message_result_path : Tx_rollup_commitment.Merkle.path;
    10. proof : Tx_rollup_l2_proof.t;
    } -> Kind.tx_rollup_rejection manager_operation
  14. | Tx_rollup_dispatch_tickets : {
    1. tx_rollup : Tx_rollup.t;
    2. level : Tx_rollup_level.t;
    3. context_hash : Tezos_protocol_environment_013_PtJakart.Context_hash.t;
    4. message_index : int;
    5. message_result_path : Tx_rollup_commitment.Merkle.path;
    6. tickets_info : Tx_rollup_reveal.t list;
    } -> Kind.tx_rollup_dispatch_tickets manager_operation
  15. | Transfer_ticket : {
    1. contents : Script.lazy_expr;
    2. ty : Script.lazy_expr;
    3. ticketer : Contract.t;
    4. amount : Tezos_protocol_environment_013_PtJakart.Z.t;
    5. destination : Contract.t;
    6. entrypoint : Entrypoint.t;
    } -> Kind.transfer_ticket manager_operation
  16. | Sc_rollup_originate : {
    1. kind : Sc_rollup.Kind.t;
    2. boot_sector : string;
    } -> Kind.sc_rollup_originate manager_operation
  17. | Sc_rollup_add_messages : {
    1. rollup : Sc_rollup.t;
    2. messages : string list;
    } -> Kind.sc_rollup_add_messages manager_operation
  18. | Sc_rollup_cement : {
    1. rollup : Sc_rollup.t;
    2. commitment : Sc_rollup.Commitment_hash.t;
    } -> Kind.sc_rollup_cement manager_operation
  19. | Sc_rollup_publish : {
    1. rollup : Sc_rollup.t;
    2. commitment : Sc_rollup.Commitment.t;
    } -> Kind.sc_rollup_publish manager_operation
type packed_manager_operation =
  1. | Manager : 'kind manager_operation -> packed_manager_operation
type packed_contents =
  1. | Contents : 'kind contents -> packed_contents
type packed_contents_list =
  1. | Contents_list : 'kind contents_list -> packed_contents_list
type packed_protocol_data =
  1. | Operation_data : 'kind protocol_data -> packed_protocol_data
val manager_kind : 'kind manager_operation -> 'kind Kind.manager
module Operation : sig ... end
module Stake_distribution : sig ... end
module Commitment : sig ... end
module Bootstrap : sig ... end
module Migration : sig ... end
val reset_internal_nonce : context -> context
val record_internal_nonce : context -> int -> context
val internal_nonce_already_recorded : context -> int -> bool
val description : context Storage_description.t

Finalize an Alpha_context.t, producing a validation_result.

Should only be used by Main.current_context to return a context usable for RPCs

val record_non_consensus_operation_hash : context -> Tezos_protocol_environment_013_PtJakart.Operation_hash.t -> context
module Parameters : sig ... end
module Liquidity_baking : sig ... end
module Ticket_balance : sig ... end

This module re-exports functions from Ticket_storage. See documentation of the functions there.

module First_level_of_protocol : sig ... end
module Consensus : sig ... end
module Token : sig ... end

See 'token.mli' for more explanation.

module Fees : sig ... end
OCaml

Innovation. Community. Security.