Documentation ¶
Index ¶
- Constants
- func InitFromConfig(ctx context.Context, r *Relayer, cfg *Config) (err error)
- type Config
- type Relayer
- func (r *Relayer) Close()
- func (r *Relayer) InitFromCli(ctx context.Context, c *cli.Context) error
- func (r *Relayer) Name() string
- func (r *Relayer) ProcessL1BlocksProposedReward(ctx context.Context, latestBlockNumber uint64) error
- func (r *Relayer) ProcessL1BlocksProvenReward(ctx context.Context, latestBlockNumber uint64) error
- func (r *Relayer) Start() error
Constants ¶
View Source
const ( // RetryDelay Time to wait before the next try, when receiving subscription errors. RetryDelay = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { L1Endpoint string L1HttpEndpoint string L2Endpoint string MxcL1Address common.Address LPWANAddress common.Address MxcTokenAddress common.Address RelayerPrivKey *ecdsa.PrivateKey }
Config contains the configurations to initialize a Mxc driver.
func NewConfigFromCliContext ¶
NewConfigFromCliContext creates a new config instance from the command line inputs.
type Relayer ¶
type Relayer struct {
// contains filtered or unexported fields
}
Relayer sync L1 proposed/proven reward to L2 and sync L2 burn to L1 token contract
func (*Relayer) InitFromCli ¶
New initializes the given driver instance based on the command line flags.
func (*Relayer) ProcessL1BlocksProposedReward ¶
func (*Relayer) ProcessL1BlocksProvenReward ¶
Click to show internal directories.
Click to hide internal directories.