Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggSender ¶
type AggSender struct {
// contains filtered or unexported fields
}
AggSender is a component that will send certificates to the aggLayer
func New ¶
func New( ctx context.Context, logger *log.Logger, cfg Config, aggLayerClient agglayer.AgglayerClientInterface, l1InfoTreeSyncer *l1infotreesync.L1InfoTreeSync, l2Syncer *bridgesync.BridgeSync) (*AggSender, error)
New returns a new AggSender
type Config ¶
type Config struct {
// StoragePath is the path of the sqlite db on which the AggSender will store the data
StoragePath string `mapstructure:"StoragePath"`
// AggLayerURL is the URL of the AggLayer
AggLayerURL string `mapstructure:"AggLayerURL"`
// BlockGetInterval is the interval at which the AggSender will get the blocks from L1
BlockGetInterval types.Duration `mapstructure:"BlockGetInterval"`
// CheckSettledInterval is the interval at which the AggSender will check if the blocks are settled
CheckSettledInterval types.Duration `mapstructure:"CheckSettledInterval"`
// AggsenderPrivateKey is the private key which is used to sign certificates
AggsenderPrivateKey types.KeystoreFileConfig `mapstructure:"AggsenderPrivateKey"`
// URLRPCL2 is the URL of the L2 RPC node
URLRPCL2 string `mapstructure:"URLRPCL2"`
// SaveCertificatesToFiles is a flag which tells the AggSender to save the certificates to a file
SaveCertificatesToFiles bool `mapstructure:"SaveCertificatesToFiles"`
}
Config is the configuration for the AggSender
Click to show internal directories.
Click to hide internal directories.