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
Click to show internal directories.
Click to hide internal directories.