config

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NodeURL         string   `mapstructure:"NODE_URL"`
	ChainID         int64    `mapstructure:"CHAIN_ID"`
	PrivateKey      string   `mapstructure:"PRIVATE_KEY"`
	LinkTokenAddr   string   `mapstructure:"LINK_TOKEN_ADDR"`
	Keepers         []string `mapstructure:"KEEPERS"`
	KeeperURLs      []string `mapstructure:"KEEPER_URLS"`
	KeeperEmails    []string `mapstructure:"KEEPER_EMAILS"`
	KeeperPasswords []string `mapstructure:"KEEPER_PASSWORDS"`
	ApproveAmount   string   `mapstructure:"APPROVE_AMOUNT"`
	GasLimit        uint64   `mapstructure:"GAS_LIMIT"`
	FundNodeAmount  string   `mapstructure:"FUND_CHAINLINK_NODE"`

	// Keeper config
	LinkETHFeedAddr      string `mapstructure:"LINK_ETH_FEED"`
	FastGasFeedAddr      string `mapstructure:"FAST_GAS_FEED"`
	PaymentPremiumPBB    uint32 `mapstructure:"PAYMENT_PREMIUM_PBB"`
	FlatFeeMicroLink     uint32 `mapstructure:"FLAT_FEE_MICRO_LINK"`
	BlockCountPerTurn    int64  `mapstructure:"BLOCK_COUNT_PER_TURN"`
	CheckGasLimit        uint32 `mapstructure:"CHECK_GAS_LIMIT"`
	StalenessSeconds     int64  `mapstructure:"STALENESS_SECONDS"`
	GasCeilingMultiplier uint16 `mapstructure:"GAS_CEILING_MULTIPLIER"`
	FallbackGasPrice     int64  `mapstructure:"FALLBACK_GAS_PRICE"`
	FallbackLinkPrice    int64  `mapstructure:"FALLBACK_LINK_PRICE"`

	// Keepers Config
	RegistryAddress                 string `mapstructure:"KEEPER_REGISTRY_ADDRESS"`
	RegistryConfigUpdate            bool   `mapstructure:"KEEPER_CONFIG_UPDATE"`
	KeepersCount                    int    `mapstructure:"KEEPERS_COUNT"`
	UpkeepTestRange                 int64  `mapstructure:"UPKEEP_TEST_RANGE"`
	UpkeepAverageEligibilityCadence int64  `mapstructure:"UPKEEP_AVERAGE_ELIGIBILITY_CADENCE"`
	UpkeepInterval                  int64  `mapstructure:"UPKEEP_INTERVAL"`
	UpkeepCheckData                 string `mapstructure:"UPKEEP_CHECK_DATA"`
	UpkeepGasLimit                  uint32 `mapstructure:"UPKEEP_GAS_LIMIT"`
	UpkeepCount                     int64  `mapstructure:"UPKEEP_COUNT"`
	AddFundsAmount                  string `mapstructure:"UPKEEP_ADD_FUNDS_AMOUNT"`

	// Feeds config
	FeedBaseAddr  string `mapstructure:"FEED_BASE_ADDR"`
	FeedQuoteAddr string `mapstructure:"FEED_QUOTE_ADDR"`
	FeedDecimals  uint8  `mapstructure:"FEED_DECIMALS"`
}

Config represents configuration fields

func New

func New() *Config

New is the constructor of Config

Jump to

Keyboard shortcuts

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