package tezos-protocol-alpha
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Alpha_context/index.html
Module Tezos_raw_protocol_alpha.Alpha_contextSource
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
prepareorprepare_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 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.
Big maps are a data structure storing key-value associations, just like regular maps, but here the whole content of the structure is not loaded in memory when interacting with it. They are thus suitable for a Michelson contract, for instance, when there are a lot of bindings, but only a few items are accessed at each contract call.
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 Manager_counter_repr.
This module re-exports definitions from Contract_repr and Contract_storage.
This module re-exports definitions from Bond_id_repr.
This module re-exports definitions from Zk_rollup_repr and Zk_rollup_storage.
This module re-exports definitions from Receipt_repr.
This module re-exports definitions from Delegate_consensus_key.
This module re-exports definitions from Deposits_repr, Delegate_storage, Delegate_consensus_key, Delegate_missed_attestations_storage, Delegate_slashed_deposits_storage, Delegate_cycles, Delegate_rewards.
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 Dal_errors_repr.
This module re-exports definitions from Sc_rollup_storage and Sc_rollup_repr.
This module re-exports definitions from Destination_repr.
See Block_payload_repr.
This module re-exports definitions from Block_header_repr.
This module re-exports definitions from Cache_repr.
This module re-exports definitions from Operation_repr.Kind.
All the definitions below are re-exported from Operation_repr.
type 'a consensus_operation_type = | Attestation : Kind.attestation consensus_operation_type| Preattestation : Kind.preattestation consensus_operation_type
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_alpha.Data_encoding.tval pp_consensus_content :
Tezos_protocol_environment_alpha.Format.formatter ->
consensus_content ->
unittype 'kind operation = {shell : Tezos_protocol_environment_alpha.Operation.shell_header;protocol_data : 'kind protocol_data;
}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 = | Preattestation : consensus_content -> Kind.preattestation contents| Attestation : consensus_content -> Kind.attestation contents| Dal_attestation : Dal.Attestation.operation -> Kind.dal_attestation 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_preattestation_evidence : {op1 : Kind.preattestation operation;op2 : Kind.preattestation operation;
} -> Kind.double_preattestation_evidence contents| Double_attestation_evidence : {op1 : Kind.attestation operation;op2 : Kind.attestation operation;
} -> Kind.double_attestation_evidence contents| Double_baking_evidence : {bh1 : Block_header.t;bh2 : Block_header.t;
} -> Kind.double_baking_evidence contents| Activate_account : {id : Tezos_protocol_environment_alpha.Ed25519.Public_key_hash.t;activation_code : Blinded_public_key_hash.activation_code;
} -> Kind.activate_account contents| Proposals : {source : public_key_hash;period : int32;proposals : Tezos_protocol_environment_alpha.Protocol_hash.t list;
} -> Kind.proposals contents| Ballot : {source : public_key_hash;period : int32;proposal : Tezos_protocol_environment_alpha.Protocol_hash.t;ballot : Vote.ballot;
} -> Kind.ballot contents| Drain_delegate : {consensus_key : Tezos_protocol_environment_alpha.Signature.Public_key_hash.t;delegate : Tezos_protocol_environment_alpha.Signature.Public_key_hash.t;destination : Tezos_protocol_environment_alpha.Signature.Public_key_hash.t;
} -> Kind.drain_delegate contents| Failing_noop : string -> Kind.failing_noop contents| Manager_operation : {source : public_key_hash;fee : Tez.tez;counter : Manager_counter.t;operation : 'kind manager_operation;gas_limit : Gas.Arith.integral;storage_limit : Tezos_protocol_environment_alpha.Z.t;
} -> 'kind Kind.manager contents
and _ manager_operation = | Reveal : public_key -> Kind.reveal manager_operation| Transaction : {amount : Tez.tez;parameters : Script.lazy_expr;entrypoint : Entrypoint.t;destination : Contract.t;
} -> Kind.transaction manager_operation| Origination : {delegate : public_key_hash option;script : Script.t;credit : Tez.tez;
} -> Kind.origination manager_operation| Delegation : public_key_hash option -> Kind.delegation manager_operation| Register_global_constant : {value : Script.lazy_expr;
} -> Kind.register_global_constant manager_operation| Increase_paid_storage : {amount_in_bytes : Tezos_protocol_environment_alpha.Z.t;destination : Contract_hash.t;
} -> Kind.increase_paid_storage manager_operation| Update_consensus_key : Tezos_protocol_environment_alpha.Signature.Public_key.t -> Kind.update_consensus_key manager_operation| Transfer_ticket : {contents : Script.lazy_expr;ty : Script.lazy_expr;ticketer : Contract.t;amount : Ticket_amount.t;destination : Contract.t;entrypoint : Entrypoint.t;
} -> Kind.transfer_ticket manager_operation| Dal_publish_slot_header : Dal.Operations.Publish_slot_header.t -> Kind.dal_publish_slot_header manager_operation| Sc_rollup_originate : {kind : Sc_rollup.Kind.t;boot_sector : string;parameters_ty : Script.lazy_expr;whitelist : Sc_rollup.Whitelist.t option;
} -> Kind.sc_rollup_originate manager_operation| Sc_rollup_add_messages : {} -> Kind.sc_rollup_add_messages manager_operation| Sc_rollup_cement : {rollup : Sc_rollup.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;
} -> 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;output_proof : string;
} -> Kind.sc_rollup_execute_outbox_message manager_operation| Sc_rollup_recover_bond : {sc_rollup : Sc_rollup.t;staker : Tezos_protocol_environment_alpha.Signature.Public_key_hash.t;
} -> Kind.sc_rollup_recover_bond manager_operation| Zk_rollup_origination : {public_parameters : Tezos_protocol_environment_alpha.Plonk.public_parameters;circuits_info : [ `Public | `Private | `Fee ] Zk_rollup.Account.SMap.t;init_state : Zk_rollup.State.t;nb_ops : int;
} -> Kind.zk_rollup_origination manager_operation| Zk_rollup_publish : {zk_rollup : Zk_rollup.t;ops : (Zk_rollup.Operation.t * Zk_rollup.Ticket.t option) list;
} -> Kind.zk_rollup_publish manager_operation| Zk_rollup_update : {zk_rollup : Zk_rollup.t;update : Zk_rollup.Update.t;
} -> Kind.zk_rollup_update manager_operation
type packed_manager_operation = | Manager : 'kind manager_operation -> packed_manager_operation
type packed_operation = {shell : Tezos_protocol_environment_alpha.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_alpha.Chain_id.t ->
Tezos_protocol_environment_alpha.Context.t ->
typecheck_smart_contract:
(context ->
Script.t ->
((Script.t * Lazy_storage.diffs option) * context)
Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.t) ->
typecheck_smart_rollup:
(context ->
Script.expr ->
context Tezos_protocol_environment_alpha.Error_monad.tzresult) ->
level:Tezos_protocol_environment_alpha.Int32.t ->
timestamp:Tezos_protocol_environment_alpha.Time.t ->
predecessor:Tezos_protocol_environment_alpha.Block_hash.t ->
context Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.tCreate an Alpha_context.t from an untyped context (first block in the chain only).
val prepare :
Tezos_protocol_environment_alpha.Context.t ->
level:Tezos_protocol_environment_alpha.Int32.t ->
predecessor_timestamp:Tezos_protocol_environment_alpha.Time.t ->
timestamp:Tezos_protocol_environment_alpha.Time.t ->
(context * Receipt.balance_updates * Migration.origination_result list)
Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.tCreate 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_alpha.Error_monad.tzresultval record_non_consensus_operation_hash :
context ->
Tezos_protocol_environment_alpha.Operation_hash.t ->
contextval non_consensus_operations :
context ->
Tezos_protocol_environment_alpha.Operation_hash.t listval finalize :
?commit_message:string ->
context ->
Fitness.raw ->
Tezos_protocol_environment_alpha.Updater.validation_resultFinalize 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 Votes_EMA_repr
This module re-exports definitions from Per_block_votes_repr.
This module re-exports definitions from Liquidity_baking_storage.
This module re-exports definitions from Adaptive_issuance_storage.
This module re-exports definitions from Ticket_storage.
This module re-exports definitions from Raw_context.Consensus.
This module re-exports definitions from Unstake_requests_storage.
This module re-exports definitions from Staking_pseudotokens_storage.
This module re-exports definitions from Fees_storage.