Module primitives::config
source · Modules
Module for
Config (de)serialization of std::time::Duration from
and to milliseconds.Structs
Configured chain with tokens.
Examples:
Config values that are used in the sentry only
Errors that can occur when deserializing a type.
Config values that are used in the validator worker only
Enums
The environment in which the application is running
Defaults to
Environment::DevelopmentStatics
Ganache (dev) configuration found in
docs/config/ganache.tomlProduction configuration found in
docs/config/prod.tomlFunctions
If no
config_file path is provided it will load the Environment configuration.
If config_file path is provided it will try to read and parse the file in Toml format.