package tezos-protocol-007-PsDELPH1

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-007-PsDELPH1.raw/Tezos_raw_protocol_007_PsDELPH1/Script_ir_annot/index.html

Module Tezos_raw_protocol_007_PsDELPH1.Script_ir_annotSource

Default annotations

Sourceval default_now_annot : Script_typed_ir.var_annot option
Sourceval default_amount_annot : Script_typed_ir.var_annot option
Sourceval default_balance_annot : Script_typed_ir.var_annot option
Sourceval default_steps_annot : Script_typed_ir.var_annot option
Sourceval default_source_annot : Script_typed_ir.var_annot option
Sourceval default_sender_annot : Script_typed_ir.var_annot option
Sourceval default_self_annot : Script_typed_ir.var_annot option
Sourceval default_arg_annot : Script_typed_ir.var_annot option
Sourceval default_param_annot : Script_typed_ir.var_annot option
Sourceval default_storage_annot : Script_typed_ir.var_annot option
Sourceval default_car_annot : Script_typed_ir.field_annot option
Sourceval default_cdr_annot : Script_typed_ir.field_annot option
Sourceval default_contract_annot : Script_typed_ir.field_annot option
Sourceval default_addr_annot : Script_typed_ir.field_annot option
Sourceval default_manager_annot : Script_typed_ir.field_annot option
Sourceval default_pack_annot : Script_typed_ir.field_annot option
Sourceval default_unpack_annot : Script_typed_ir.field_annot option
Sourceval default_slice_annot : Script_typed_ir.field_annot option
Sourceval default_elt_annot : Script_typed_ir.field_annot option
Sourceval default_key_annot : Script_typed_ir.field_annot option
Sourceval default_hd_annot : Script_typed_ir.field_annot option
Sourceval default_tl_annot : Script_typed_ir.field_annot option
Sourceval default_some_annot : Script_typed_ir.field_annot option
Sourceval default_left_annot : Script_typed_ir.field_annot option
Sourceval default_right_annot : Script_typed_ir.field_annot option
Sourceval default_binding_annot : Script_typed_ir.field_annot option

Unparse annotations to their string representation

Sourceval unparse_type_annot : Script_typed_ir.type_annot option -> string list
Sourceval unparse_var_annot : Script_typed_ir.var_annot option -> string list
Sourceval unparse_field_annot : Script_typed_ir.field_annot option -> string list

Conversion functions between different annotation kinds

Sourceval field_to_var_annot : Script_typed_ir.field_annot option -> Script_typed_ir.var_annot option
Sourceval type_to_var_annot : Script_typed_ir.type_annot option -> Script_typed_ir.var_annot option
Sourceval var_to_field_annot : Script_typed_ir.var_annot option -> Script_typed_ir.field_annot option
Sourceval default_annot : default:'a option -> 'a option -> 'a option

Replace an annotation by its default value if it is None

Generate annotation for field accesses, of the form var.field1.field2

Merge type annotations.

  • returns

    an error Inconsistent_type_annotations if they are both present and different, unless legacy

Merge field annotations.

  • returns

    an error Inconsistent_type_annotations if they are both present and different, unless legacy

Merge variable annotations, does not fail (None if different).

Sourceval error_unexpected_annot : int -> 'a list -> unit Tezos_protocol_environment_007_PsDELPH1.Error_monad.tzresult
  • returns

    an error Unexpected_annotation in the monad the list is not empty.

Parse a type annotation only.

Parse a field annotation only.

Parse an annotation for composed types, of the form :ty_name %field in any order.

Parse an annotation for composed types, of the form :ty_name %field1 %field2 in any order.

Check that field annotations match, used for field accesses.

Instruction annotations parsing

Parse a variable annotation, replaced by a default value if None.

Sourceval parse_destr_annot : int -> string list -> default_accessor:Script_typed_ir.field_annot option -> field_name:Script_typed_ir.field_annot option -> pair_annot:Script_typed_ir.var_annot option -> value_annot:Script_typed_ir.var_annot option -> (Script_typed_ir.var_annot option * Script_typed_ir.field_annot option) Tezos_protocol_environment_007_PsDELPH1.Error_monad.tzresult
OCaml

Innovation. Community. Security.