Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The Smart Contract defines currency as [3]byte. // But here, for simplicity we ware using string (encoding) CurrUSD = Currency("USD") CurrETH = Currency("ETH") CurrBTC = Currency("BTC") )
currencies
View Source
var (
BRGusdABI = ethereum.MustParseABI("BRGusd", contracts.BridgeTokenABI)
)
globals
Functions ¶
Types ¶
type Currency ¶
type Currency string
Currency type represent currency ISO name
func ParseCurrency ¶
ParseCurrency converts currency string into Currency type
func ParseCurrencyErrp ¶
ParseCurrencyErrp converts currency string into Currency type
func (Currency) Bytes ¶
Bytes converts Currency to bytes array which is expected by the SmartContract
func (Currency) MarshalJSON ¶
MarshalJSON implements Marshaller interface
func (*Currency) UnmarshalJSON ¶
UnmarshalJSON implements Unmarshaller interface
type EventTokenTransfer ¶
EventTokenTransfer represents Transfer event payload
Click to show internal directories.
Click to hide internal directories.