config

package
v0.0.0-...-0264a13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFile = "config.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountConfig

type AccountConfig struct {
	PrivateKey string `yaml:"private_key"`
}

type AppConfig

type AppConfig struct {
	LogLevel          int8   `yaml:"log_level"`
	ActiveContractKey string `yaml:"active_contract_key"`
}

type ChainlinkConfig

type ChainlinkConfig struct {
	UpkeepControllerAddress common.Address `yaml:"upkeep_controller_address"`
	MinControllerApprove    *big.Int       `yaml:"min_controller_approve"`
	TopupAmount             *big.Int       `yaml:"topup_amount"`
	TokenAddress            common.Address `yaml:"token_address"`
}

type Config

type Config struct {
	Account   AccountConfig   `yaml:"account"`
	Network   NetworkConfig   `yaml:"network"`
	App       AppConfig       `yaml:"app"`
	Contracts ContractsConfig `yaml:"contracts"`
	Chainlink ChainlinkConfig `yaml:"chainlink"`
}

func NewConfig

func NewConfig(filename string) (*Config, error)

type ContractsConfig

type ContractsConfig map[string]model.ContractInfo

type NetworkConfig

type NetworkConfig struct {
	RpcUrl  string   `yaml:"rpc_url"`
	ChainId *big.Int `yaml:"chain_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL