pricefeed

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	Denom    string `yaml:"denom"`
	Exponent int    `yaml:"exponent"`
	PriceID  string `yaml:"price_id,omitempty"`
}

type Config

type Config struct {
	Tokens []Token `yaml:"tokens"`
}

func DefaultPricefeedConfig

func DefaultPricefeedConfig() Config

DefaultPricefeedConfig returns the default instance of Config

func NewPricefeedConfig

func NewPricefeedConfig(tokens []Token) Config

NewPricefeedConfig allows to build a new Config instance

type Token

type Token struct {
	Name  string `yaml:"name"`
	Units []Coin `yaml:"units"`
}

Jump to

Keyboard shortcuts

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