2018-01-16 01:09:25 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-02-11 22:17:39 +04:00
|
|
|
open Proto_alpha.Alpha_context
|
2018-01-16 01:09:25 +04:00
|
|
|
|
|
|
|
exception Tez_error
|
|
|
|
|
2018-02-11 22:17:39 +04:00
|
|
|
(** Common casts between Alpha_context types *)
|
2018-01-16 01:09:25 +04:00
|
|
|
|
|
|
|
val tez_of_int : int -> Tez.tez
|
|
|
|
val cents_of_int : int -> Tez.tez
|
|
|
|
|
|
|
|
(** Tez.(+?) with a top - level error instead *)
|
|
|
|
val tez_add : Tez.tez -> Tez.tez -> Tez.tez
|
|
|
|
val tez_add_int : Tez.tez -> int -> Tez.tez
|
|
|
|
|
|
|
|
(** Tez.(-?) with a top - level error instead *)
|
|
|
|
val tez_sub : Tez.tez -> Tez.tez -> Tez.tez
|
|
|
|
val tez_sub_int : Tez.tez -> int -> Tez.tez
|
2018-02-17 17:39:45 +04:00
|
|
|
val ctxt_of_tc : context -> Tezos_protocol_environment_memory.Context.t
|
2018-01-16 01:09:25 +04:00
|
|
|
|