package
0.0.0-20241225084627-c909cb5f3c50
Repository: https://github.com/sphantix/go-defi.git
Documentation: pkg.go.dev
# 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(bonedaddy): 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.
# 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.