Refactor: move tezos-micheline below tezos-base

This commit is contained in:
Grégoire Henry 2018-01-30 11:45:38 +01:00
parent f2de3ffa3e
commit ca29c92442
9 changed files with 13 additions and 5 deletions

View File

@ -9,6 +9,7 @@
-open Tezos_data_encoding -open Tezos_data_encoding
-open Tezos_error_monad -open Tezos_error_monad
-open Tezos_rpc -open Tezos_rpc
-open Tezos_micheline
-safe-string)) -safe-string))
(libraries (tezos-stdlib (libraries (tezos-stdlib
tezos-stdlib-lwt tezos-stdlib-lwt
@ -16,6 +17,7 @@
tezos-data-encoding tezos-data-encoding
tezos-error-monad tezos-error-monad
tezos-rpc tezos-rpc
tezos-micheline
calendar calendar
ezjsonm ezjsonm
mtime.clock.os)))) mtime.clock.os))))

View File

@ -67,6 +67,7 @@ module Make(Param : sig val name: string end)() = struct
type error_category = [ `Branch | `Temporary | `Permanent ] type error_category = [ `Branch | `Temporary | `Permanent ]
include Error_monad.Make() include Error_monad.Make()
end end
module Micheline = Micheline
module Logging = Logging.Make(Param) module Logging = Logging.Make(Param)
type error += Ecoproto_error of Error_monad.error list type error += Ecoproto_error of Error_monad.error list

View File

@ -14,6 +14,8 @@ depends: [
"tezos-crypto" "tezos-crypto"
"tezos-data-encoding" "tezos-data-encoding"
"tezos-error-monad" "tezos-error-monad"
"tezos-micheline"
"tezos-rpc"
"ezjsonm" { >= "0.5.0" } "ezjsonm" { >= "0.5.0" }
"calendar" "calendar"
"mtime" { >= "1.0.0" } "mtime" { >= "1.0.0" }

View File

@ -13,6 +13,7 @@ include Tezos_data_encoding
include Tezos_error_monad include Tezos_error_monad
include Tezos_rpc include Tezos_rpc
include Tezos_crypto include Tezos_crypto
include Tezos_micheline
module List = struct module List = struct
include List include List

View File

@ -11,7 +11,6 @@ module Make(Param : sig val name: string end)() = struct
include Tezos_base.Protocol_environment.Make(Param)() include Tezos_base.Protocol_environment.Make(Param)()
module Micheline = Micheline
module Updater = struct module Updater = struct
include Fake_updater.Make(Fake_context) include Fake_updater.Make(Fake_context)
module type PROTOCOL = module type PROTOCOL =

View File

@ -8,11 +8,13 @@
;; External ;; External
uutf uutf
;; Internal ;; Internal
tezos-base tezos-error-monad
tezos-data-encoding
)) ))
(flags (:standard -w -9+27-30-32-40@8 (flags (:standard -w -9+27-30-32-40@8
-safe-string -safe-string
-open Tezos_base__TzPervasives)))) -open Tezos_error_monad
-open Tezos_data_encoding))))
(alias (alias
((name runtest_indent) ((name runtest_indent)

View File

@ -7,6 +7,7 @@
(* *) (* *)
(**************************************************************************) (**************************************************************************)
open Error_monad
open Micheline open Micheline
type 'a parsing_result = 'a * error list type 'a parsing_result = 'a * error list

View File

@ -9,7 +9,8 @@ license: "unreleased"
depends: [ depends: [
"ocamlfind" { build } "ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" } "jbuilder" { build & >= "1.0+beta15" }
"tezos-base" "tezos-data-encoding"
"tezos-error-monad"
"uutf" "uutf"
] ]
build: [ build: [

View File

@ -11,7 +11,6 @@ module Make(Param : sig val name: string end)() = struct
include Tezos_base.Protocol_environment.Make(Param)() include Tezos_base.Protocol_environment.Make(Param)()
module Micheline = Micheline
module Updater = struct module Updater = struct
include Updater include Updater
module type PROTOCOL = module type PROTOCOL =