package tezos-protocol-012-Psithaca
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-012-Psithaca.raw/Tezos_raw_protocol_012_Psithaca/Ticket_costs/index.html
Module Tezos_raw_protocol_012_Psithaca.Ticket_costs
Source
This module contains constants and utility functions for gas metering functions used for extracting and handling tickets for the global ticket balance table.
Source
val consume_gas_steps :
Alpha_context.t ->
step_cost:Alpha_context.Gas.cost ->
num_steps:int ->
Alpha_context.t Tezos_protocol_environment_012_Psithaca.Error_monad.tzresult
consume_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.
Source
val has_tickets_of_ty_cost :
'a Script_typed_ir.ty ->
Saturation_repr.may_saturate Saturation_repr.t
has_tickets_of_ty_cost ty
returns the cost of producing a has_tickets
, used internally in the Ticket_scanner
module.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>