Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FaultDisputeGameType is the uint8 enum value for the fault dispute game FaultDisputeGameType = 0 // ValidityDisputeGameType is the uint8 enum value for the validity dispute game ValidityDisputeGameType = 1 // AttestationDisputeGameType is the uint8 enum value for the attestation dispute game AttestationDisputeGameType = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct { // L1EthRpc is the HTTP provider URL for L1. L1EthRpc string // RollupRpc is the HTTP provider URL for the rollup node. RollupRpc string // L2OOAddress is the L2OutputOracle contract address. L2OOAddress string // DGFAddress is the DisputeGameFactory contract address. DGFAddress string // PrivateKey is the private key of the account that will be used to send transactions. PrivateKey string TxMgrConfig flags.TxManagerCLIConfig LogConfig oplog.CLIConfig MetricsConfig opmetrics.CLIConfig PprofConfig oppprof.CLIConfig }
CLIConfig is a well typed config that is parsed from the CLI params. This also contains config options for auxiliary services. It is transformed into a `Config` before the challenger is started.
type Challenger ¶
type Challenger struct {
// contains filtered or unexported fields
}
Challenger is responsible for disputing L2OutputOracle outputs
func NewChallenger ¶
NewChallenger creates a new Challenger
func NewChallengerFromCLIConfig ¶
func NewChallengerFromCLIConfig(cfg CLIConfig, l log.Logger, m metrics.Metricer) (*Challenger, error)
NewChallengerFromCLIConfig creates a new Challenger given the CLI Config
func (*Challenger) Start ¶
func (c *Challenger) Start() error
Start begins the Challenger's engine driver, adding an instance to the waitgroup.
type Config ¶
type Config struct { L2OutputOracleAddr common.Address DisputeGameFactory common.Address NetworkTimeout time.Duration TxManager txmgr.TxManager L1Client *ethclient.Client RollupClient *sources.RollupClient From common.Address // contains filtered or unexported fields }
Config contains the well typed fields that are used to initialize the challenger. It is intended for programmatic use.
Click to show internal directories.
Click to hide internal directories.