config

package
v0.0.0-...-1b15b10 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGasLimit = 6721975
View Source
const DefaultGasMultiplier = 1
View Source
const DefaultGasPrice = 20000000000

Variables

This section is empty.

Functions

This section is empty.

Types

type CeloChainConfig

type CeloChainConfig struct {
	ID                     utils.ChainId // ChainID
	Name                   string        // Human-readable chain name
	Endpoint               string        // url for rpc endpoint
	From                   string        // address of key to use // TODO: name should be changed
	KeystorePath           string        // Location of keyfiles
	BlockstorePath         string
	FreshStart             bool // Disables loading from blockstore at start
	BridgeContract         common.Address
	Erc20HandlerContract   common.Address
	Erc721HandlerContract  common.Address
	GenericHandlerContract common.Address
	GasLimit               *big.Int
	MaxGasPrice            *big.Int
	Http                   bool // Config for type of connection
	StartBlock             *big.Int
	LatestBlock            bool
	Insecure               bool
	EpochSize              uint64 // Size of chain epoch. eg. The number of blocks after which to checkpoint and reset the pending votes
	GasMultiplier          *big.Float
}

func ParseChainConfig

func ParseChainConfig(rawCfg *cfg.RawChainConfig, ctx *cli.Context) (*CeloChainConfig, error)

parseChainConfig uses a core.ChainConfig to construct a corresponding Config

func (*CeloChainConfig) EnsureContractsHaveBytecode

func (cfg *CeloChainConfig) EnsureContractsHaveBytecode(conn *client.Client) error

Jump to

Keyboard shortcuts

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