config

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config contains the config for the prom exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeConfig added in v0.0.46

type BridgeConfig struct {
	ChainID int    `yaml:"chain_id"`
	Address string `yaml:"address"`
}

BridgeConfig contains the config for the bridge.

type Config

type Config struct {
	// Port is the port of the config
	Port int `yaml:"port"`
	// DFKApiUrl is the url of the DFK API
	DFKUrl string `yaml:"dfk_url" default:"https://defi-kingdoms-community-api-gateway-co06z8vi.uc.gateway.dev/graphql"`
	// DFKPending is the list of pending heroes
	DFKPending []DFKPending `yaml:"dfk_pending"`
	// SubmitterChecks is the list of gas checks
	SubmitterChecks []SubmitterChecks `yaml:"gas_checks"`
	OmnirpcURL      string            `yaml:"omnirpc_url" default:"https://rpc.omnirpc.io"`
	// map chainid->address
	BridgeChecks map[int]string
	// VpriceCheckTokens is the list of tokens to check vprice for
	VpriceCheckTokens []string `yaml:"vprice_tokens"`
	// BridgeConfig is the config for the bridge.
	BridgeConfig BridgeConfig
	// BatchCallLimit is the limit of batch calls
	BatchCallLimit int
}

Config contains the config for the prometheues exporter.

func DecodeConfig

func DecodeConfig(filePath string) (_ Config, err error)

DecodeConfig decodes the config from the given file path.

type DFKPending

type DFKPending struct {
	// Owner is the owner of the pending heroes
	Owner string `yaml:"owner"`
	// ChainName is the name of the chain
	ChainName string `yaml:"chain_name"`
}

DFKPending contains the config for the DFK pending metric.

type SubmitterChecks added in v0.0.6

type SubmitterChecks struct {
	// ChainID is the chain id
	ChainIDs []int `yaml:"chain_ids"`
	// Address is the address of the contract
	Address string `yaml:"address"`
	// Name of the address entity
	Name string `yaml:"name"`
}

SubmitterChecks contains the config for the gas checks.

Jump to

Keyboard shortcuts

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