2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2017-11-14 03:36:14 +04:00
|
|
|
(* Copyright (c) 2014 - 2017. *)
|
2016-09-08 21:13:10 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
open Tezos_micheline
|
|
|
|
|
2017-11-04 03:16:05 +04:00
|
|
|
module Program : Client_aliases.Alias
|
|
|
|
with type t = Michelson_v1_parser.parsed Micheline_parser.parsing_result
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val run :
|
|
|
|
?amount:Tez.t ->
|
|
|
|
program:Michelson_v1_parser.parsed ->
|
|
|
|
storage:Michelson_v1_parser.parsed ->
|
|
|
|
input:Michelson_v1_parser.parsed ->
|
|
|
|
Client_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
(Script.expr * Script.expr) tzresult Lwt.t
|
|
|
|
|
|
|
|
val trace :
|
|
|
|
?amount:Tez.t ->
|
|
|
|
program:Michelson_v1_parser.parsed ->
|
|
|
|
storage:Michelson_v1_parser.parsed ->
|
|
|
|
input:Michelson_v1_parser.parsed ->
|
|
|
|
Client_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-06 18:22:58 +04:00
|
|
|
(Script.expr * Script.expr * (int * Gas.t * Script.expr list) list) tzresult Lwt.t
|
2017-11-07 20:38:11 +04:00
|
|
|
|
|
|
|
val print_trace_result :
|
|
|
|
#Client_commands.logger ->
|
|
|
|
show_source:bool ->
|
|
|
|
parsed:Michelson_v1_parser.parsed ->
|
|
|
|
(Script_repr.expr * Script_repr.expr *
|
2017-11-06 18:22:58 +04:00
|
|
|
(int * Gas.t * Script_repr.expr list) list)
|
2017-11-07 20:38:11 +04:00
|
|
|
tzresult -> unit tzresult Lwt.t
|
|
|
|
|
|
|
|
val print_run_result :
|
|
|
|
#Client_commands.logger ->
|
|
|
|
show_source:bool ->
|
|
|
|
parsed:Michelson_v1_parser.parsed ->
|
|
|
|
(Script.expr * Script.expr) tzresult ->
|
|
|
|
unit tzresult Lwt.t
|
|
|
|
|
|
|
|
val hash_and_sign :
|
2017-12-14 17:52:19 +04:00
|
|
|
Michelson_v1_parser.parsed ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Michelson_v1_parser.parsed ->
|
|
|
|
Ed25519.Secret_key.t ->
|
|
|
|
Client_proto_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
(string * string) tzresult Lwt.t
|
|
|
|
|
|
|
|
val typecheck_data :
|
|
|
|
data:Michelson_v1_parser.parsed ->
|
|
|
|
ty:Michelson_v1_parser.parsed ->
|
|
|
|
Client_proto_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
unit tzresult Lwt.t
|
|
|
|
|
|
|
|
val typecheck_program :
|
|
|
|
Michelson_v1_parser.parsed ->
|
|
|
|
Client_proto_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Script_ir_translator.type_map tzresult Lwt.t
|
|
|
|
|
|
|
|
val print_typecheck_result :
|
|
|
|
emacs:bool ->
|
|
|
|
show_types:bool ->
|
|
|
|
print_source_on_error:bool ->
|
|
|
|
Michelson_v1_parser.parsed ->
|
|
|
|
(Script_ir_translator.type_map, error list) result ->
|
|
|
|
#Client_commands.logger ->
|
|
|
|
unit tzresult Lwt.t
|