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
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 `default:"https://defi-kingdoms-community-api-gateway-co06z8vi.uc.gateway.dev/graphql" yaml:"dfk_url"` // 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 is the url of the omnirpc OmnirpcURL string `default:"https://rpc.omnirpc.io" yaml:"omnirpc_url"` // VpriceCheckTokens is the list of tokens to check vprice for VpriceCheckTokens []string `yaml:"vprice_tokens"` // RFQAPIURL is the url of the RFQ API RFQAPIUrl string `default:"http://rfq-api.omnirpc.io/quotes" yaml:"rfq_api_url"` // map chainid->address BridgeChecks map[int]string // BridgeConfig is the config for the bridge. BridgeConfig BridgeConfig // BatchCallLimit is the limit of batch calls BatchCallLimit int }
func DecodeConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.