Documentation ¶
Index ¶
Constants ¶
View Source
const (
EventCurrencyTickUpdateFormat walletevent.EventType = "wallet-currency-tick-update-format"
)
Variables ¶
This section is empty.
Functions ¶
func GetAllFiatCurrencySymbols ¶
func GetAllFiatCurrencySymbols() []string
func IsCurrencyFiat ¶
Types ¶
type Currency ¶
type Currency struct {
// contains filtered or unexported fields
}
func NewCurrency ¶
func (*Currency) FetchTokenCurrencyFormats ¶
func (cm *Currency) FetchTokenCurrencyFormats(symbols []string) (FormatPerSymbol, error)
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewCurrencyDB ¶
func (*DB) GetCachedFormats ¶
func (cdb *DB) GetCachedFormats() (FormatPerSymbol, error)
func (*DB) UpdateCachedFormats ¶
func (cdb *DB) UpdateCachedFormats(formats FormatPerSymbol) error
type FormatPerSymbol ¶
func GetFiatCurrencyFormats ¶
func GetFiatCurrencyFormats(symbols []string) (FormatPerSymbol, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) FetchAllCurrencyFormats ¶
func (s *Service) FetchAllCurrencyFormats() (FormatPerSymbol, error)
func (*Service) GetCachedCurrencyFormats ¶
func (s *Service) GetCachedCurrencyFormats() (FormatPerSymbol, error)
Click to show internal directories.
Click to hide internal directories.