package octez-injector

  1. Overview
  2. Docs
type state
type operation
type unsigned_operation
val max_operation_data_length : int
val manager_pass : int

The validation pass of manager operations.

operation_status block oph ~index returns the status of the operation at position index in the L1 batch oph included in the block block. It returns None if the operation with the given index is not in the block.

val operation_size : operation -> int

Size of an operation in bytes according to the protocol. This only accounts for the actual content of the corresponding manager operation (and not its fees, gas, etc.).

val operation_size_overhead : int

An upper bound of the overhead added to manager operations in bytes. Typically, this would include the source, fees, counter, gas limit, and storage limit.

Simulating a batch of operations. This function returns the simulation result for each of these operations (with its associated index in the batch, in case there is a revelation operation added) together with a Tezos raw unsigned operation that can be directly injected on a node if one wishes to.

Sign an unsigned operation an return the serialized signed operation, ready for injection.

val time_until_next_block : state -> Tezos_base.Block_header.shell_header option -> Ptime.span

time_until_next_block state block_header computes the time until the block following block_header, with respect to the current time.

Run protocol specific checks for injector configuration/state.

OCaml

Innovation. Community. Security.