module Tag : Injector_sigs.TAG
A module which contains the different tags for the injector
val table_estimated_size : Tag.t -> int
Coarse approximation for the number of operation of each tag we expect to inject for each block.
val requeue_reverted_operation : rollup_node_state -> 'a Tezos_protocol_alpha.Protocol.Alpha_context.manager_operation -> bool Lwt.t
requeue_reverted_operation state op should return
true if an included operation should be re-queued for injection when the block in which it is included is reverted (due to a reorganization).
val ignore_failing_operation : 'a Tezos_protocol_alpha.Protocol.Alpha_context.manager_operation -> [ `Ignore_keep | `Ignore_drop | `Don't_ignore ]
ignore_failing_operation op specifies if the injector should ignore this operation when its simulation fails when trying to inject. Returns:
`Ignore_keepif the operation should be ignored but kept in the pending queue,
`Ignore_dropif the operation should be ignored and dropped from the pending queue,
`Don't_ignoreif the failing operation should not be ignored and the failure reported.
val operation_tag : 'a Tezos_protocol_alpha.Protocol.Alpha_context.manager_operation -> Tag.t option
The tag of a manager operation. This is used to send operations to the correct queue automatically (when signer is not provided) and to recover persistent information.
val approximate_fee_bound : rollup_node_state -> 'a Tezos_protocol_alpha.Protocol.Alpha_context.manager_operation -> Injector_sigs.approximate_fee_bound
Returns the appoximate upper-bounds for the fee and limits of an operation, used to compute an upper bound on the size (in bytes) for this operation.
val fee_parameter : rollup_node_state -> 'a Tezos_protocol_alpha.Protocol.Alpha_context.manager_operation -> Tezos_client_alpha.Injection.fee_parameter
Returns the fee_parameter (to compute fee w.r.t. gas, size, etc.) and the caps of fee and burn for each operation.
val batch_must_succeed : Tezos_protocol_alpha.Protocol.Alpha_context.packed_manager_operation list -> [ `All | `At_least_one ]
When injecting the given
operations in an L1 batch, if
batch_must_succeed operations returns
`All then all the operations must succeed in the simulation of injection. If it returns
`At_least_one, at least one operation in the list
operations must be successful in the simulation. In any case, only operations which are known as successful will be included in the injected L1 batch. Note: Returning
`At_least_one allows to incrementally build "or-batches" by iteratively removing operations that fail from the desired batch.