Documentation ¶
Index ¶
- Variables
- func DecimalsToWei(amount *decimal.Decimal, decimals *big.Int) *big.Int
- func EthToWei(amount *decimal.Decimal) *big.Int
- func GetAccountBalance(address string) (*big.Int, error)
- func GetLatestBlockNumber() (*big.Int, error)
- func GetSigRSVBytes(sig []byte) ([32]byte, [32]byte, uint8)
- func GetTokenAllowance(_tokenAddress string, _accountAddress string, _spenderAddress string) (*big.Int, error)
- func GetTokenBalance(_tokenAddress string, _accountAddress string) (*big.Int, error)
- func GetTokenDecimals(tokenAddress string) (*big.Int, error)
- func IsValidAddress(address string) bool
- func SetClientProviderURI(providerURI string)
- func TransferTokens(auth bind.TransactOpts, _tokenAddress string, _toAddress string, ...) (*types.Transaction, error)
- type RSV
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *ethclient.Client
Client client
Functions ¶
func GetLatestBlockNumber ¶
func GetTokenAllowance ¶
func GetTokenBalance ¶
func IsValidAddress ¶
func SetClientProviderURI ¶
func SetClientProviderURI(providerURI string)
SetClientProviderURI ETH provider client URI
func TransferTokens ¶
func TransferTokens(auth bind.TransactOpts, _tokenAddress string, _toAddress string, amount *big.Int) (*types.Transaction, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.