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