Alpha/RPC: minor RPC renaming

This commit is contained in:
Grégoire Henry 2018-04-20 17:58:47 +02:00 committed by Benjamin Canou
parent b11a604d20
commit 9093e5c02d
4 changed files with 10 additions and 10 deletions

View File

@ -522,7 +522,7 @@ module Make(Proto : PROTO)(Next_proto : PROTO) = struct
module Helpers = struct
let path = RPC_path.(path / "helpers")
let path = RPC_path.(path / "context" / "helpers")
let preapply_result_encoding =
obj2

View File

@ -10,7 +10,7 @@
open Alpha_context
let custom_root =
(RPC_path.(open_root / "constants") : RPC_context.t RPC_path.context)
(RPC_path.(open_root / "context" / "constants") : RPC_context.t RPC_path.context)
module S = struct

View File

@ -41,7 +41,7 @@ let info_encoding =
module S = struct
let path = RPC_path.(open_root / "delegate")
let path = RPC_path.(open_root / "context" / "delegates")
open Data_encoding
@ -90,7 +90,7 @@ module S = struct
this includes the frozen deposits, rewards and fees."
~query: RPC_query.empty
~output: Tez.encoding
RPC_path.(path / "change")
RPC_path.(path / "frozen_balance")
let frozen_balances =
RPC_service.get_service
@ -275,7 +275,7 @@ module Baking_rights = struct
open Data_encoding
let custom_root =
RPC_path.(open_root / "helpers" / "baking_rights")
RPC_path.(open_root / "context" / "helpers" / "baking_rights")
type baking_rights_query = {
levels: Raw_level.t list ;
@ -400,7 +400,7 @@ module Endorsing_rights = struct
open Data_encoding
let custom_root =
RPC_path.(open_root / "helpers" / "endorsing_rights")
RPC_path.(open_root / "context" / "helpers" / "endorsing_rights")
type endorsing_rights_query = {
levels: Raw_level.t list ;

View File

@ -34,12 +34,12 @@ let parse_operation (op: Operation.raw) =
ok { shell = op.shell ; protocol_data }
| None -> error Cannot_parse_operation
let custom_root = RPC_path.(open_root / "context" / "helpers")
module S = struct
open Data_encoding
let custom_root = RPC_path.(open_root / "helpers")
type level_query = {
offset: int32 ;
}
@ -294,7 +294,7 @@ module Forge = struct
open Data_encoding
let custom_root = RPC_path.(open_root / "helpers" / "forge")
let custom_root = RPC_path.(custom_root / "forge")
let operations =
RPC_service.post_service
@ -490,7 +490,7 @@ module Parse = struct
open Data_encoding
let custom_root = RPC_path.(open_root / "helpers" / "parse")
let custom_root = RPC_path.(custom_root / "parse")
let operations =
RPC_service.post_service