Module Mtyped

val let$ : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val rmap : ('a -> ('b, 'c) Stdlib.result) -> 'd list -> ('e list, 'f) Stdlib.result
type value = [
  1. | `address of string
  2. | `assoc of (value * value) list
  3. | `bls12_381_fr of Proto.A.zarith
  4. | `bls12_381_g1 of Proto.hex
  5. | `bls12_381_g2 of Proto.hex
  6. | `bool of bool
  7. | `bytes of Proto.hex
  8. | `chain_id of string
  9. | `chest of Proto.hex
  10. | `chest_key of Proto.hex
  11. | `contract
  12. | `int of Proto.A.zarith
  13. | `key of string
  14. | `key_hash of string
  15. | `l2_address of string
  16. | `lambda of Proto.micheline
  17. | `left of value
  18. | `mutez of Proto.A.zarith
  19. | `nat of Proto.A.zarith
  20. | `never
  21. | `none
  22. | `operation
  23. | `right of value
  24. | `seq of value list
  25. | `sapling_state
  26. | `sapling_transaction
  27. | `signature of string
  28. | `some of value
  29. | `string of string
  30. | `ticket of Proto.micheline
  31. | `timestamp of Proto.A.timestamp
  32. | `tuple of value list
  33. | `unit
]
type 'a type_aux = [
  1. | `address
  2. | `big_map of 'a * 'a
  3. | `bls12_381_fr
  4. | `bls12_381_g1
  5. | `bls12_381_g2
  6. | `bool
  7. | `bytes
  8. | `chain_id
  9. | `chest
  10. | `chest_key
  11. | `contract of 'a
  12. | `int
  13. | `key
  14. | `key_hash
  15. | `l2_address
  16. | `lambda of 'a * 'a
  17. | `map of 'a * 'a
  18. | `mutez
  19. | `nat
  20. | `never
  21. | `operation
  22. | `option of 'a
  23. | `or_ of 'a * 'a
  24. | `sapling_state of Proto.A.zarith
  25. | `sapling_transaction of Proto.A.zarith
  26. | `seq of 'a
  27. | `signature
  28. | `string
  29. | `timestamp
  30. | `ticket of 'a
  31. | `tuple of 'a list
  32. | `unit
]
type ftype = {
  1. name : string option;
  2. typ : ftype type_aux;
}
type stype = stype type_aux
val get_name_annots : string list -> string option
val parse_type : Proto.micheline -> (ftype, [> `unexpected_michelson ]) Stdlib.result
val parse_value : stype -> Proto.micheline -> (value, [> `end_of_bytes of int | `unexpected_michelson | `unexpected_tag of string * int ]) Stdlib.result
val search_value : name:string -> ftype -> value -> value option
val search_values : names:string list -> ftype -> value -> (string * value) option
val short : ftype -> stype
val named_micheline_type : ?name:string -> stype -> ftype
val to_michelson : value -> Proto.micheline