Alpha_context.Ticket_balance
This module re-exports definitions from Ticket_storage
.
type Mavryk_protocol_environment_alpha.Error_monad.error +=
| Negative_ticket_balance of {
key : Ticket_hash.t;
balance : Mavryk_protocol_environment_alpha.Z.t;
}
| Used_storage_space_underflow
val adjust_storage_space :
context ->
storage_diff:Mavryk_protocol_environment_alpha.Z.t ->
(Mavryk_protocol_environment_alpha.Z.t * context)
Mavryk_protocol_environment_alpha.Error_monad.tzresult
Mavryk_protocol_environment_alpha.Lwt.t
val get_balance :
context ->
Ticket_hash.t ->
(Mavryk_protocol_environment_alpha.Z.t option * context)
Mavryk_protocol_environment_alpha.Error_monad.tzresult
Mavryk_protocol_environment_alpha.Lwt.t
module Internal_for_tests : sig ... end
This module discloses definitions that are only useful for tests and must not be used otherwise.