config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMConfig

type EVMConfig struct {
	config.BaseNetworkConfig
	BeaconEndpoint        string `split_words:"true"`
	Router                string
	Executor              string
	Hashi                 string
	Yaho                  string
	StartBlock            uint64   `split_words:"true"`
	StateRootAddresses    []string `split_words:"true"`
	SlotIndex             uint8    `required:"true" split_words:"true"`
	MaxGasPrice           int64    `default:"500000000000" split_words:"true"`
	GasMultiplier         float64  `default:"1" split_words:"true"`
	GasIncreasePercentage int64    `default:"15" split_words:"true"`
	BlockConfirmations    int64    `default:"1" split_words:"true"`
	BlockInterval         int64    `default:"5" split_words:"true"`
	BlockRetryInterval    uint64   `default:"5" split_words:"true"`
	FreshStart            bool     `default:"false" split_words:"true"`
	Latest                bool     `default:"false" split_words:"true"`
	GenericResources      []string `default:"0000000000000000000000000000000000000000000000000000000000000500" split_words:"true"`
	Spec                  Spec     `default:"mainnet"`
}

func LoadEVMConfig

func LoadEVMConfig(domainID uint8) (*EVMConfig, error)

LoadEVMConfig loads EVM config from the environment and validates the fields

type Spec added in v1.0.3

type Spec string
const (
	MainnetSpec Spec = "mainnet"
	GnosisSpec  Spec = "gnosis"
)

Jump to

Keyboard shortcuts

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