Client refactor: Client_proto_rpcs.block
-> Block_services.block
This commit is contained in:
parent
83307c6de0
commit
2c90308caf
@ -12,7 +12,7 @@ open Tezos_context
|
||||
|
||||
val forge_endorsement:
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
src_sk:Client_keys.sk_locator ->
|
||||
?slot:int ->
|
||||
?max_priority:int ->
|
||||
|
@ -37,7 +37,7 @@ type error +=
|
||||
|
||||
val forge_block:
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
?force:bool ->
|
||||
?operations:Operation.raw list ->
|
||||
?best_effort:bool ->
|
||||
@ -86,5 +86,5 @@ val create:
|
||||
val get_unrevealed_nonces:
|
||||
#Client_commands.full_context ->
|
||||
?force:bool ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
(Block_hash.t * (Raw_level.t * Nonce.t)) list tzresult Lwt.t
|
||||
|
@ -13,7 +13,7 @@ open Tezos_context
|
||||
(** Mine a block *)
|
||||
val bake_block:
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
?force:bool ->
|
||||
?max_priority: int ->
|
||||
?free_baking: bool ->
|
||||
|
@ -12,13 +12,13 @@ open Tezos_context
|
||||
|
||||
val inject_seed_nonce_revelation:
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
?async:bool ->
|
||||
(Raw_level.t * Nonce.t) list ->
|
||||
Operation_hash.t tzresult Lwt.t
|
||||
|
||||
val forge_seed_nonce_revelation:
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
(Raw_level.t * Nonce.t) list ->
|
||||
unit tzresult Lwt.t
|
||||
|
@ -13,31 +13,31 @@ open Environment
|
||||
|
||||
val list_contract_labels :
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
(string * string * string) list tzresult Lwt.t
|
||||
|
||||
val get_storage :
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
Script.expr option tzresult Lwt.t
|
||||
|
||||
val get_manager :
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
(string * public_key_hash *
|
||||
public_key * Client_keys.sk_locator) tzresult Lwt.t
|
||||
|
||||
val get_balance:
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
Tez.t tzresult Lwt.t
|
||||
|
||||
val set_delegate :
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
fee:Tez.tez ->
|
||||
Contract.t ->
|
||||
src_pk:public_key ->
|
||||
@ -52,7 +52,7 @@ val operation_submitted_message :
|
||||
|
||||
val source_to_keys:
|
||||
#Client_commands.full_context ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
(public_key * Client_keys.sk_locator) tzresult Lwt.t
|
||||
|
||||
@ -107,7 +107,7 @@ val faucet :
|
||||
|
||||
val transfer :
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
?branch:int ->
|
||||
source:Contract.t ->
|
||||
src_pk:public_key ->
|
||||
@ -121,7 +121,7 @@ val transfer :
|
||||
|
||||
val dictate :
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
dictator_operation ->
|
||||
secret_key ->
|
||||
Operation_hash.t tzresult Lwt.t
|
||||
|
@ -43,19 +43,19 @@ val list_contracts:
|
||||
|
||||
val get_manager:
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
public_key_hash tzresult Lwt.t
|
||||
|
||||
val get_delegate:
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Contract.t ->
|
||||
public_key_hash tzresult Lwt.t
|
||||
|
||||
val check_public_key :
|
||||
#RPC_context.simple ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
?src_pk:public_key ->
|
||||
public_key_hash ->
|
||||
public_key option tzresult Lwt.t
|
||||
|
@ -52,20 +52,20 @@ val hash_and_sign :
|
||||
Michelson_v1_parser.parsed ->
|
||||
Michelson_v1_parser.parsed ->
|
||||
Client_keys.sk_locator ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
#RPC_context.simple ->
|
||||
(string * string) tzresult Lwt.t
|
||||
|
||||
val typecheck_data :
|
||||
data:Michelson_v1_parser.parsed ->
|
||||
ty:Michelson_v1_parser.parsed ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
#RPC_context.simple ->
|
||||
unit tzresult Lwt.t
|
||||
|
||||
val typecheck_program :
|
||||
Michelson_v1_parser.parsed ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
#RPC_context.simple ->
|
||||
Script_tc_errors.type_map tzresult Lwt.t
|
||||
|
||||
|
@ -19,7 +19,7 @@ val init :
|
||||
forked Tezos node and the block info of the block from where the
|
||||
tests will begin. *)
|
||||
|
||||
val level : Client_proto_rpcs.block -> Tezos_context.Level.t tzresult Lwt.t
|
||||
val level : Block_services.block -> Tezos_context.Level.t tzresult Lwt.t
|
||||
|
||||
module Account : sig
|
||||
|
||||
@ -59,7 +59,7 @@ module Account : sig
|
||||
(** The hardcoded bootstrap accounts. *)
|
||||
|
||||
val transfer :
|
||||
?block:Client_proto_rpcs.block ->
|
||||
?block:Block_services.block ->
|
||||
?fee: Tez.t ->
|
||||
account:t ->
|
||||
destination:Contract.t ->
|
||||
@ -68,7 +68,7 @@ module Account : sig
|
||||
(Operation_hash.t * Contract.t list) tzresult Lwt.t
|
||||
|
||||
val originate :
|
||||
?block:Client_proto_rpcs.block ->
|
||||
?block:Block_services.block ->
|
||||
?delegate:public_key_hash ->
|
||||
?fee: Tez.t ->
|
||||
src:t ->
|
||||
@ -77,7 +77,7 @@ module Account : sig
|
||||
unit -> (Operation_hash.t * Contract.t) tzresult Lwt.t
|
||||
|
||||
val set_delegate :
|
||||
?block:Client_proto_rpcs.block ->
|
||||
?block:Block_services.block ->
|
||||
?fee: Tez.t ->
|
||||
contract:Contract.t ->
|
||||
manager_sk:Client_keys.Secret_key_locator.t ->
|
||||
@ -85,10 +85,10 @@ module Account : sig
|
||||
public_key_hash option ->
|
||||
Operation_hash.t tzresult Lwt.t
|
||||
|
||||
val balance : ?block:Client_proto_rpcs.block -> t -> Tez.t tzresult Lwt.t
|
||||
val balance : ?block:Block_services.block -> t -> Tez.t tzresult Lwt.t
|
||||
|
||||
val delegate :
|
||||
?block:Client_proto_rpcs.block ->
|
||||
?block:Block_services.block ->
|
||||
Contract.t ->
|
||||
public_key_hash option tzresult Lwt.t
|
||||
|
||||
@ -112,17 +112,17 @@ module Endorse : sig
|
||||
val endorse :
|
||||
?slot:int ->
|
||||
Account.t ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Operation.raw tzresult Lwt.t
|
||||
|
||||
val endorsers_list :
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Account.t array tzresult Lwt.t
|
||||
|
||||
val endorsement_rights :
|
||||
?max_priority:int ->
|
||||
Account.t ->
|
||||
Client_proto_rpcs.block ->
|
||||
Block_services.block ->
|
||||
Client_proto_rpcs.Helpers.Rights.endorsement_slot list tzresult Lwt.t
|
||||
|
||||
end
|
||||
@ -208,4 +208,4 @@ module Assert : sig
|
||||
|
||||
end
|
||||
|
||||
val display_level: Client_proto_rpcs.block -> unit tzresult Lwt.t
|
||||
val display_level: Block_services.block -> unit tzresult Lwt.t
|
||||
|
Loading…
Reference in New Issue
Block a user