Tezos_protocol_plugin_alpha.Delegators_contribution
Protocol-dependent helpers for the delegators_contribution RPC, which is defined in src/lib_shell_services/chain_services.ml
and implemented in src/lib_shell/chain_directory.ml
.
See src/lib_validation/protocol_plugin.mli
for the descriptions of the types and functions below.
val delegated_breakdown_at_sampling :
(Tezos_base.TzPervasives.Block_header.shell_header
* Tezos_protocol_alpha.Environment.Context.t) ->
cycle:int32 ->
delegate_pkh:Tezos_protocol_alpha.Environment.Signature.public_key_hash ->
[ `Ok of delegated_breakdown_at_sampling
| `Retry_at_level of int32
| `Cycle_too_far_in_future ]
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Lwt.t
val min_delegated_breakdown :
(Tezos_base.TzPervasives.Block_header.shell_header
* Tezos_protocol_alpha.Environment.Context.t) ->
delegate_pkh:Tezos_protocol_alpha.Environment.Signature.public_key_hash ->
min_delegated_breakdown
Tezos_protocol_alpha.Environment.Error_monad.shell_tzresult
Lwt.t