Versions in this module Expand all Collapse all v0 v0.6.0 Jan 23, 2020 v0.5.0 Jan 23, 2020 Changes in this version + func HexToDecimal(hex string) (decimal.Decimal, bool) + type BlockNumPlugin struct + func NewBlockNumPlugin(callback func(uint64, bool)) BlockNumPlugin + func (p BlockNumPlugin) AcceptBlock(b *structs.RemovableBlock) + type ERC20TransferPlugin struct + func NewERC20TransferPlugin(...) *ERC20TransferPlugin + func (p *ERC20TransferPlugin) Accept(tx *structs.RemovableTxAndReceipt) + type IBlockPlugin interface + AcceptBlock func(block *structs.RemovableBlock) + type IReceiptLogPlugin interface + Accept func(receiptLog *structs.RemovableReceiptLog) + FromContract func() string + InterestedTopics func() []string + NeedReceiptLog func(receiptLog *structs.RemovableReceiptLog) bool + type ITxPlugin interface + AcceptTx func(transaction structs.RemovableTx) + type ITxReceiptPlugin interface + Accept func(tx *structs.RemovableTxAndReceipt) + type ReceiptLogPlugin struct + func NewReceiptLogPlugin(contract string, topics []string, ...) *ReceiptLogPlugin + func (p *ReceiptLogPlugin) Accept(receiptLog *structs.RemovableReceiptLog) + func (p *ReceiptLogPlugin) FromContract() string + func (p *ReceiptLogPlugin) InterestedTopics() []string + func (p *ReceiptLogPlugin) NeedReceiptLog(receiptLog *structs.RemovableReceiptLog) bool + type SimpleBlockPlugin struct + func NewSimpleBlockPlugin(callback func(block *structs.RemovableBlock)) SimpleBlockPlugin + func (p SimpleBlockPlugin) AcceptBlock(b *structs.RemovableBlock) + type TransferEvent struct + type TxHashPlugin struct + func NewTxHashPlugin(callback func(txHash string, isRemoved bool)) TxHashPlugin + func (p TxHashPlugin) AcceptTx(transaction structs.RemovableTx) + type TxPlugin struct + func NewTxPlugin(callback func(tx structs.RemovableTx)) TxPlugin + func (p TxPlugin) AcceptTx(transaction structs.RemovableTx) + type TxReceiptPlugin struct + func NewTxReceiptPlugin(callback func(tx *structs.RemovableTxAndReceipt)) *TxReceiptPlugin + func (p TxReceiptPlugin) Accept(tx *structs.RemovableTxAndReceipt) + type TxReceiptPluginWithFilter struct + func NewTxReceiptPluginWithFilter(callback func(tx *structs.RemovableTxAndReceipt), ...) *TxReceiptPluginWithFilter + func (p TxReceiptPluginWithFilter) NeedReceipt(tx blockchain.Transaction) bool