currency

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package currency implements conversion backends for different currencies used in a channel.

Use IsSupportedCurrency to check if the currency is supported and NewParser to obtain a parser for that currency.

Index

Constants

View Source
const (
	// ETH represents the ethereum currency.
	ETH = "ETH"
)

Variables

This section is empty.

Functions

func IsSupported

func IsSupported(currency string) bool

IsSupported checks if there is parser regsitered for the currency represented by the given string.

func NewParser

func NewParser(currency string) perun.Currency

NewParser returns the currency parser. It returns nil if unsupported currency is used. so check if exists before usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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