config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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   `required:"true" split_words:"true"`
	Router                string   `required:"true"`
	Executor              string   `required:"true"`
	MaxGasPrice           int64    `default:"500000000000" split_words:"true"`
	GasMultiplier         float64  `default:"1" split_words:"true"`
	GasIncreasePercentage int64    `default:"15" split_words:"true"`
	StateRootAddresses    []string `required:"true" split_words:"true"`
	SlotIndex             uint8    `required:"true" split_words:"true"`
	BlockConfirmations    int64    `default:"10" split_words:"true"`
	BlockInterval         int64    `default:"5" split_words:"true"`
	BlockRetryInterval    uint64   `default:"5" split_words:"true"`
	StartBlock            uint64   `split_words:"true" required:"true"`
	FreshStart            bool     `default:"false" split_words:"true"`
	Latest                bool     `default:"false" split_words:"true"`
	GenericResources      []string `default:"0000000000000000000000000000000000000000000000000000000000000500" split_words:"true"`
}

func LoadEVMConfig

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

LoadEVMConfig loads EVM config from the environment and validates the fields

Jump to

Keyboard shortcuts

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