package octez-smart-rollup-node-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Fuel.AccountedSource

Accounted fuel where each tick consumes one unit of fuel.

Sourcetype t
Sourceval consume : t -> t -> t option

consume consumption fuel consumes the consumption amount from the original fuel. It returns None when the consumption is greater than the original fuel or Some remaining_fuel.

Sourceval one_tick_consumption : t

The amount of fuel required to run one PVM tick.

  one_tick_consumption = of_ticks 1L
Sourceval of_ticks : int64 -> t

of_ticks ticks gives the amount of fuel required to execute the amount of ticks.

Sourceval is_empty : t -> bool
Sourceval max_ticks : t -> int64

The maximum number of ticks that can be executed with the given amount of fuel.

  max_ticks ∘ of_ticks = Fun.id
  of_ticks ∘ max_ticks = Fun.id
OCaml

Innovation. Community. Security.