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
Click to show internal directories.
Click to hide internal directories.