Tezos_raw_protocol_011_PtHangz2.Operation_reprTezos Protocol Implementation - Low level Repr. of Operations
Defines kinds of operations that can be performed on chain:
Voting_repr)Voting_repr)Each of them can be encoded as raw bytes. Operations are distinguished at type level using phantom type parameters. packed_operation type allows for unifying them when required, for instance to put them on a single list.
module Kind : sig ... endtype raw = Tezos_protocol_environment_011_PtHangz2.Operation.t = {shell : Tezos_protocol_environment_011_PtHangz2.Operation.shell_header;proto : bytes;}val raw_encoding : raw Tezos_protocol_environment_011_PtHangz2.Data_encoding.ttype 'kind operation = {shell : Tezos_protocol_environment_011_PtHangz2.Operation.shell_header;protocol_data : 'kind protocol_data;}and 'kind protocol_data = {contents : 'kind contents_list;signature : Tezos_protocol_environment_011_PtHangz2.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_listand _ contents = | Endorsement : {level : Raw_level_repr.t;} -> Kind.endorsement contents| Seed_nonce_revelation : {level : Raw_level_repr.t;nonce : Seed_repr.nonce;} -> Kind.seed_nonce_revelation contents| Endorsement_with_slot : {endorsement : Kind.endorsement operation;slot : int;} -> Kind.endorsement_with_slot contents| Double_endorsement_evidence : {op1 : Kind.endorsement operation;op2 : Kind.endorsement operation;slot : int;} -> Kind.double_endorsement_evidence contents| Double_baking_evidence : {bh1 : Block_header_repr.t;bh2 : Block_header_repr.t;} -> Kind.double_baking_evidence contents| Activate_account : {id : Tezos_protocol_environment_011_PtHangz2.Ed25519.Public_key_hash.t;activation_code : Blinded_public_key_hash.activation_code;} -> Kind.activate_account contents| Proposals : {source : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key_hash.t;period : int32;proposals : Tezos_protocol_environment_011_PtHangz2.Protocol_hash.t list;} -> Kind.proposals contents| Ballot : {source : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key_hash.t;period : int32;proposal : Tezos_protocol_environment_011_PtHangz2.Protocol_hash.t;ballot : Vote_repr.ballot;} -> Kind.ballot contents| Failing_noop : string -> Kind.failing_noop contents| Manager_operation : {source : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key_hash.t;fee : Tez_repr.tez;counter : counter;operation : 'kind manager_operation;gas_limit : Gas_limit_repr.Arith.integral;storage_limit : Tezos_protocol_environment_011_PtHangz2.Z.t;} -> 'kind Kind.manager contentsand _ manager_operation = | Reveal : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key.t ->
Kind.reveal
manager_operation| Transaction : {amount : Tez_repr.tez;parameters : Script_repr.lazy_expr;entrypoint : string;destination : Contract_repr.contract;} -> Kind.transaction manager_operation| Origination : {delegate : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key_hash.t
option;script : Script_repr.t;credit : Tez_repr.tez;preorigination : Contract_repr.t option;} -> Kind.origination manager_operation| Delegation : Tezos_protocol_environment_011_PtHangz2.Signature.Public_key_hash.t
option -> Kind.delegation manager_operation| Register_global_constant : {value : Script_repr.lazy_expr;} -> Kind.register_global_constant manager_operationand counter = Tezos_protocol_environment_011_PtHangz2.Z.ttype 'kind internal_operation = {source : Contract_repr.contract;operation : 'kind manager_operation;nonce : int;}val of_list :
packed_contents list ->
packed_contents_list
Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresultval to_list : packed_contents_list -> packed_contents listtype packed_operation = {shell : Tezos_protocol_environment_011_PtHangz2.Operation.shell_header;protocol_data : packed_protocol_data;}val pack : 'kind operation -> packed_operationtype packed_internal_operation = | Internal_operation : 'kind internal_operation -> packed_internal_operationval manager_kind : 'kind manager_operation -> 'kind Kind.managerval contents_encoding :
packed_contents Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval contents_list_encoding :
packed_contents_list Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval protocol_data_encoding :
packed_protocol_data Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval unsigned_operation_encoding :
(Tezos_protocol_environment_011_PtHangz2.Operation.shell_header
* packed_contents_list)
Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval hash_raw : raw -> Tezos_protocol_environment_011_PtHangz2.Operation_hash.tval hash :
_ operation ->
Tezos_protocol_environment_011_PtHangz2.Operation_hash.tval hash_packed :
packed_operation ->
Tezos_protocol_environment_011_PtHangz2.Operation_hash.tval acceptable_passes : packed_operation -> int listval internal_operation_encoding :
packed_internal_operation
Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval packed_internal_operation_in_memory_size :
packed_internal_operation ->
Cache_memory_helpers.nodes_and_sizemodule Encoding : sig ... end