Library
Module
Module type
Parameter
Class
Class type
type mode =
| Observer
(*Only follows the chain and reconstructs L2 blocks
*)| Accuser
(*Follows the chain and rejects bad commitments
*)| Batcher
(*Accept transactions in its queue and batches them on the L1
*)| Maintenance
(*Follows the chain and injects commitments (and rejects bad ones)
*)| Operator
(*Equivalent to maintenance + batcher
*)| Custom
(*This mode allows to tweak which operations are injected by selecting the signers
*)
Mode for the rollup node
type signers = Tezos_crypto.Signature.public_key_hash option purposed
type cost_caps = {
fee_cap : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tez.t;
burn_cap : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tez.t;
}
type t = {
data_dir : string;
rollup_id : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup.t;
origination_level : int32 option;
rpc_addr : Tezos_base.P2p_point.Id.t;
cors_origins : string list;
cors_headers : string list;
reconnection_delay : float;
mode : mode;
signers : signers;
allow_deposit : bool;
l2_blocks_cache_size : int;
caps : caps;
batch_burn_limit : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tez.t option;
}
val default_data_dir :
Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup.t ->
string
default_data_dir
is the default value for data_dir
.
val default_rpc_addr : Tezos_base.P2p_point.Id.t
default_rpc_addr
is the default value for rpc_addr
.
default_reconnection_delay
is the default value for reconnection-delay
default_l2_blocks_cache_size
is the default number of L2 blocks that are cached by the rollup node
val default_cost_caps : cost_caps
The default fees/burn caps
val default_caps : caps
The default fees/burn caps for operations of the injector
val modes : mode list
val string_of_mode : mode -> string
val mode_of_string : string -> mode Tezos_base.TzPervasives.tzresult
val check_mode : t -> t Tezos_base.TzPervasives.tzresult
check_mode config
ensures the signers correspond to the chosen mode and removes the extra ones.
val save : force:bool -> t -> string Tezos_base.TzPervasives.tzresult Lwt.t
save ~force configuration
writes the configuration
file and returns the filename. If force
is true
then configuration is overwritten when it exists.
val load : data_dir:string -> t Tezos_base.TzPervasives.tzresult Lwt.t
load ~data_dir
loads a configuration stored in data_dir
.
val encoding : t Tezos_base.TzPervasives.Data_encoding.t
encoding
encodes a configuration.