# Functions
LoadConfig loads the configuration at path however if loading from path fails, we attempt to load from environment variabels.
NewConfig generates a new config and stores at path TODO(etherdev12): generate a random private key.
ToWei converts decimals to wei this is copied from the utils package to prevent import cycles.
# Variables
ExampleConfig is primarily used to provide a template for generating the config file.
No description provided by the author
# Structs
Account provides configuration over the account used to sign transactions from https://github.com/indexed-finance/circuit-breaker/blob/master/config/config.go copyright for this code can be found in the LICENSE file of indexed-finance/circuit-breaker.
Blockchain provides configuration for connection to a blockchain rpc provider.
Config provides the base configuration type.
Database provides configuration over our database connection.
GasPrice controls how we specify gas prices for sending transactions from https://github.com/indexed-finance/circuit-breaker/blob/master/config/config.go copyright for this code can be found in the LICENSE file of indexed-finance/circuit-breaker.
Logger provides configuration over zap logger.