Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default is the default config Default = Config{ API: API{ Url: "api.testnet.iotex.one:80", }, KeyStore: "", } // ErrInvalidCfg indicates the invalid config value ErrInvalidCfg = errors.New("invalid config value") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { API API `yaml:"api"` Log log.GlobalConfig `yaml:"log"` KeyStore string `yaml:"keyStore"` RunInterval uint64 `yaml:"runInterval"` Transfer transfer `yaml:"transfer"` Wallet string `yaml:"wallet"` Xrc20 xrc20 `yaml:"xrc20"` Execution execution `yaml:"execution"` }
Config is the root config struct, each package's config should be put as its sub struct
func (Config) ProducerAddress ¶
ProducerAddress returns the configured producer address derived from key
func (Config) ProducerPrivateKey ¶
func (cfg Config) ProducerPrivateKey() crypto.PrivateKey
ProducerPrivateKey returns the configured private key
Click to show internal directories.
Click to hide internal directories.