From 9093e5c02d5dafdb1e2a6d1cd7dbb2baa086b4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Fri, 20 Apr 2018 17:58:47 +0200 Subject: [PATCH] Alpha/RPC: minor RPC renaming --- src/lib_shell_services/block_services.ml | 2 +- src/proto_alpha/lib_protocol/src/constants_services.ml | 2 +- src/proto_alpha/lib_protocol/src/delegate_services.ml | 8 ++++---- src/proto_alpha/lib_protocol/src/helpers_services.ml | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib_shell_services/block_services.ml b/src/lib_shell_services/block_services.ml index 2da3834b1..b9ee98a4c 100644 --- a/src/lib_shell_services/block_services.ml +++ b/src/lib_shell_services/block_services.ml @@ -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 diff --git a/src/proto_alpha/lib_protocol/src/constants_services.ml b/src/proto_alpha/lib_protocol/src/constants_services.ml index 3afd3c013..2536a9c4a 100644 --- a/src/proto_alpha/lib_protocol/src/constants_services.ml +++ b/src/proto_alpha/lib_protocol/src/constants_services.ml @@ -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 diff --git a/src/proto_alpha/lib_protocol/src/delegate_services.ml b/src/proto_alpha/lib_protocol/src/delegate_services.ml index c5e9e4dff..bd4d7b956 100644 --- a/src/proto_alpha/lib_protocol/src/delegate_services.ml +++ b/src/proto_alpha/lib_protocol/src/delegate_services.ml @@ -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 ; diff --git a/src/proto_alpha/lib_protocol/src/helpers_services.ml b/src/proto_alpha/lib_protocol/src/helpers_services.ml index 0b3d70d04..1f0142ebd 100644 --- a/src/proto_alpha/lib_protocol/src/helpers_services.ml +++ b/src/proto_alpha/lib_protocol/src/helpers_services.ml @@ -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