symbol_translator

package
v0.10.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 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 Sifchain 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) EthereumToSifchain

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

func (*SymbolTranslator) SifchainToEthereum

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

Jump to

Keyboard shortcuts

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