Delegate_services.Implem
Functions used in the implementation of this file's RPCs, but also useful elsewhere (as opposed to the functions above, which call the RPCs). These functions are gathered in a separate module to avoid naming conflicts.
val check_delegate_registered : Tezos_protocol_alpha.Protocol.Alpha_context.t -> Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> unit Tezos_protocol_alpha.Environment.Error_monad.tzresult Tezos_protocol_alpha.Environment.Lwt.t
val total_delegated : Tezos_protocol_alpha.Protocol.Alpha_context.t -> Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t Tezos_protocol_alpha.Environment.Error_monad.tzresult Tezos_protocol_alpha.Environment.Lwt.t
val own_delegated : Tezos_protocol_alpha.Protocol.Alpha_context.t -> Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t Tezos_protocol_alpha.Environment.Error_monad.tzresult Tezos_protocol_alpha.Environment.Lwt.t
val delegators : Tezos_protocol_alpha.Protocol.Alpha_context.t -> Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t list Tezos_protocol_alpha.Environment.Lwt.t