package tezos-protocol-015-PtLimaPt
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
    
    
  sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
    
    
  doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Ticket_costs/index.html
Module Tezos_raw_protocol_015_PtLimaPt.Ticket_costsSource
This module contains constants and utility functions for gas metering functions used for extracting and handling tickets for the global ticket balance table.
val consume_gas_steps : 
  Alpha_context.t ->
  step_cost:Alpha_context.Gas.cost ->
  num_steps:int ->
  Alpha_context.t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresultconsume_gas_steps ctxt ~num_steps consumes gas corresponding to a given num_steps and step_cost. It's useful for paying for gas upfront where the number of steps can be determined.
This function is generic and should probably be moved. See issue https://gitlab.com/tezos/tezos/-/issues/1950.
val has_tickets_of_ty_cost : 
  ('a, _) Script_typed_ir.ty ->
  Saturation_repr.may_saturate Saturation_repr.thas_tickets_of_ty_cost ty returns the cost of producing a has_tickets, used internally in the Ticket_scanner module.
negate_cost z returns the cost of negating the given value z.
val add_int_cost : 
  Script_int.n Script_int.num ->
  Script_int.n Script_int.num ->
  Alpha_context.Gas.costadd_int_cost n1 n2 returns the cost of adding the values n1 and n2.
val add_z_cost : 
  Tezos_protocol_environment_015_PtLimaPt.Z.t ->
  Tezos_protocol_environment_015_PtLimaPt.Z.t ->
  Alpha_context.Gas.costadd_z_cost z1 z2 returns the cost of adding the values z1 and z2.