symbol_translator

package
v0.0.0-...-8bffeb4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SymbolTranslator

type SymbolTranslator struct {
	// contains filtered or unexported fields
}

SymbolTranslator translates between Furynet denoms and Ethereum symbols

func NewSymbolTranslator

func NewSymbolTranslator() *SymbolTranslator

func NewSymbolTranslatorFromJSONBytes

func NewSymbolTranslatorFromJSONBytes(jsonContents []byte) (*SymbolTranslator, error)

func NewSymbolTranslatorFromJSONFile

func NewSymbolTranslatorFromJSONFile(filename string) (*SymbolTranslator, error)

func (*SymbolTranslator) EthereumToFurynet

func (s *SymbolTranslator) EthereumToFurynet(symbol string) string

func (*SymbolTranslator) FurynetToEthereum

func (s *SymbolTranslator) FurynetToEthereum(denom string) string

Jump to

Keyboard shortcuts

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