challenger

package module
v0.0.0-...-5cda5f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 12 Imported by: 0

README

DA Challenger

mt-challenger is a project about the fraud proof for EigenDA of Mantle Network

Tips: need Go 1.18+

Install

1.Install dependencies

go mod tidy

2.build binary

make datalayr
make binding
make mt-challenger

3.build docker

make datalayr
docker build -t challenger:latest -f ./Dockerfile .

4.start binary

Config .env, You can refer to .env_example, if config finished, you can exec following command

./mt-challenger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(gitVersion string) func(ctx *cli.Context) error

Types

type Config

type Config struct {
	L1EthRpc                  string
	L2MtlRpc                  string
	ChainId                   uint64
	PrivateKey                string
	Mnemonic                  string
	SequencerHDPath           string
	EigenContractAddress      string
	GraphProvider             string
	RetrieverSocket           string
	DtlClientUrl              string
	KzgConfig                 challenger.KzgConfig
	FromStoreNumber           uint64
	PollInterval              time.Duration
	CompensatePollInterval    time.Duration
	DbPath                    string
	Passphrase                string
	CheckerBatchIndex         uint64
	UpdateBatchIndexStep      uint64
	DisableHTTP2              bool
	NeedReRollupBatch         string
	ChallengerCheckEnable     bool
	ReRollupToolEnable        bool
	DataCompensateEnable      bool
	ResubmissionTimeout       time.Duration
	NumConfirmations          uint64
	SafeAbortNonceTooLowCount uint64
	LoggingConfig             logging.Config
	MetricsServerEnable       bool
	MetricsHostname           string
	MetricsPort               uint64
	EnableHsm                 bool
	HsmAPIName                string
	HsmCreden                 string
	HsmAddress                string
}

func NewConfig

func NewConfig(ctx *cli.Context) (Config, error)

Directories

Path Synopsis
db
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL