Documentation
¶
Index ¶
Constants ¶
const PasswordEnvVariable = "KEEP_ETHEREUM_PASSWORD"
PasswordEnvVariable environment variable name for ethereum key password. #nosec G101 (look for hardcoded credentials) This line doesn't contain any credentials. It's just the name of the environment variable.
Variables ¶
This section is empty.
Functions ¶
func ReadEthereumConfig ¶
ReadEthereumConfig reads in the configuration file at `filePath` and returns its contained Ethereum config, or an error if something fails while reading the file.
This is the same as invoking ReadConfig and reading the Ethereum property from the returned config, but is available for external functions that expect to interact solely with Ethereum and are therefore independent of the rest of the config structure.
Types ¶
type Config ¶
type Config struct {
Ethereum ethereum.Config
SanctionedApplications SanctionedApplications
Storage Storage
LibP2P libp2p.Config
Client client.Config
TSS tss.Config
Metrics Metrics
Diagnostics Diagnostics
Extensions Extensions
}
Config is the top level config structure.
func ReadConfig ¶
ReadConfig reads in the configuration file in .toml format. Ethereum key file password is expected to be provided as environment variable.
type Diagnostics ¶ added in v1.2.0
type Diagnostics struct {
Port int
}
Diagnostics stores diagnostics-related configuration.
type Extensions ¶ added in v1.5.0
type Extensions struct {
TBTC TBTC
}
Extensions stores app-specific extensions configuration.
type SanctionedApplications ¶
type SanctionedApplications struct {
AddressesStrings []string `toml:"Addresses"`
}
SanctionedApplications contains addresses of applications approved by the operator.