Documentation
¶
Index ¶
- func CalcSortIndex(blockNumber uint64, logIndex, txIndex uint) uint64
- func CalcSortIndexFromLog(raw *types.Log) uint64
- func FromDecimalForm(balance *big.Float, decimals int) *big.Int
- func SortTransfers(transfers []ERC20Transfer)
- func ToDecimalForm(balance *big.Int, decimals int) *big.Float
- type E20Cache
- type ERC20
- type ERC20Transfer
- type EthClient
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcSortIndex ¶
func CalcSortIndexFromLog ¶
func SortTransfers ¶
func SortTransfers(transfers []ERC20Transfer)
Types ¶
type ERC20 ¶
type ERC20Transfer ¶
type ERC20Transfer struct {
From string
To string
Value *big.Int
TXHash string
LogIndex uint
Token string
BlockNumber uint64
Timestamp time.Time
TXIndex uint
}
func (ERC20Transfer) IsBurn ¶
func (et ERC20Transfer) IsBurn() bool
func (ERC20Transfer) IsMint ¶
func (et ERC20Transfer) IsMint() bool
func (ERC20Transfer) SQLFrom ¶
func (et ERC20Transfer) SQLFrom() sql.NullString
func (ERC20Transfer) SQLTo ¶
func (et ERC20Transfer) SQLTo() sql.NullString
func (ERC20Transfer) SortIndex ¶
func (et ERC20Transfer) SortIndex() uint64
Click to show internal directories.
Click to hide internal directories.