v1

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributionConfig

type DistributionConfig struct {
	DistributionFrequency int64 `toml:"distribution_frequency"`
}

type PricefeedConfig

type PricefeedConfig struct {
	Tokens []Token `toml:"tokens"`
}

type Token

type Token struct {
	Name  string      `toml:"name"`
	Units []TokenUnit `toml:"units"`
}

type TokenUnit

type TokenUnit struct {
	Denom    string   `toml:"denom"`
	Exponent int      `toml:"exponent"`
	Aliases  []string `toml:"aliases"`
	PriceID  string   `toml:"price_id"`
}

type TomlConfig

type TomlConfig struct {
	PricefeedConfig    *PricefeedConfig    `toml:"pricefeed"`
	DistributionConfig *DistributionConfig `toml:"distribution"`
}

func ParseConfig

func ParseConfig(bz []byte) (TomlConfig, error)

Jump to

Keyboard shortcuts

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