currency

package
v0.0.0-...-39157a1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 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 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