currency

package
v0.0.0-...-9e0b26f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Currency  string
	Label     string
	Symbol    string
	Pairs     []string
	Pools     []string
	Explorers ExplorerConf
	Unit      string
}

func FromRaw

func FromRaw(raw []RawConf) ([]Conf, error)

type ConfigMapping

type ConfigMapping string
const (
	LabelMap    ConfigMapping = "pub:map:currency:label"
	SymbolMap   ConfigMapping = "pub:map:currency:sym"
	UnitMap     ConfigMapping = "pub:map:currency:unit"
	ExplorerMap ConfigMapping = "pub:map:currency:explorer"
	ExchangeMap ConfigMapping = "pub:list:pair:exchange"
)

type ExplorerConf

type ExplorerConf struct {
	BaseUri        string
	AddressUri     string
	TransactionUri string
}

type RawConf

type RawConf struct {
	Mapping string
	Data    interface{}
}

Jump to

Keyboard shortcuts

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