package tezos-protocol-012-Psithaca

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-012-Psithaca.raw/Tezos_raw_protocol_012_Psithaca/Script_ir_annot/index.html

Module Tezos_raw_protocol_012_Psithaca.Script_ir_annotSource

Sourcetype var_annot = private
  1. | Var_annot of Non_empty_string.t
Sourcetype type_annot = private
  1. | Type_annot of Non_empty_string.t
Sourcetype field_annot = private
  1. | Field_annot of Non_empty_string.t
Sourcemodule FOR_TESTS : sig ... end

Default annotations

Sourceval default_now_annot : var_annot option
Sourceval default_amount_annot : var_annot option
Sourceval default_balance_annot : var_annot option
Sourceval default_level_annot : var_annot option
Sourceval default_source_annot : var_annot option
Sourceval default_sender_annot : var_annot option
Sourceval default_self_annot : var_annot option
Sourceval default_arg_annot : var_annot option
Sourceval lambda_arg_annot : var_annot option
Sourceval default_param_annot : var_annot option
Sourceval default_storage_annot : var_annot option
Sourceval default_sapling_state_annot : var_annot option
Sourceval default_sapling_balance_annot : var_annot option
Sourceval default_car_annot : field_annot option
Sourceval default_cdr_annot : field_annot option
Sourceval default_contract_annot : field_annot option
Sourceval default_addr_annot : field_annot option
Sourceval default_pack_annot : field_annot option
Sourceval default_unpack_annot : field_annot option
Sourceval default_slice_annot : field_annot option
Sourceval default_elt_annot : field_annot option
Sourceval default_key_annot : field_annot option
Sourceval default_hd_annot : field_annot option
Sourceval default_tl_annot : field_annot option
Sourceval default_some_annot : field_annot option
Sourceval default_left_annot : field_annot option
Sourceval default_right_annot : field_annot option

Unparse annotations to their string representation

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

Conversion functions between different annotation kinds

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

Replace an annotation by its default value if it is None

Sourceval gen_access_annot : var_annot option -> ?default:field_annot option -> field_annot option -> var_annot option

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

Sourceval merge_type_annot : legacy:bool -> type_annot option -> type_annot option -> type_annot option Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult

Merge type annotations.

  • returns

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

Sourceval merge_field_annot : legacy:bool -> field_annot option -> field_annot option -> field_annot option Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult

Merge field annotations.

  • returns

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

Sourceval merge_var_annot : var_annot option -> var_annot option -> var_annot option

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

  • 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 %field1 %field2 in any order.

Extract and remove a field annotation from a node

Check that field annotations match, used for field accesses.

Instruction annotations parsing

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

Sourceval is_allowed_char : char -> bool
Sourceval parse_constr_annot : Alpha_context.Script.location -> ?if_special_first:field_annot option -> ?if_special_second:field_annot option -> string list -> (var_annot option * type_annot option * field_annot option * field_annot option) Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult
Sourceval parse_destr_annot : Alpha_context.Script.location -> string list -> default_accessor:field_annot option -> field_name:field_annot option -> pair_annot:var_annot option -> value_annot:var_annot option -> (var_annot option * field_annot option) Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult
Sourceval parse_unpair_annot : Alpha_context.Script.location -> string list -> field_name_car:field_annot option -> field_name_cdr:field_annot option -> pair_annot:var_annot option -> value_annot_car:var_annot option -> value_annot_cdr:var_annot option -> (var_annot option * var_annot option * field_annot option * field_annot option) Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult
Sourceval parse_entrypoint_annot : Alpha_context.Script.location -> ?default:var_annot option -> string list -> (var_annot option * field_annot option) Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult
OCaml

Innovation. Community. Security.