Documentation ¶
Index ¶
- Variables
- type ErrCannotReadBlock
- type ErrCannotSetHeight
- type ErrIsNotNextBlock
- type TxSearch
- func (t *TxSearch) AddressTxList(From common.Address, index, size int) ([]itxsearch.TxList, error)
- func (t *TxSearch) Block(i uint32) (*types.Block, error)
- func (t *TxSearch) BlockHeight(bh hash.Hash256) (uint32, error)
- func (t *TxSearch) BlockList(index int) []*itxsearch.BlockInfo
- func (t *TxSearch) BridgeTxList(contStr common.Address, height uint32, to string) (interface{}, error)
- func (t *TxSearch) DailyReward(cont, rewarder common.Address, index int) (map[string]*amount.Amount, error)
- func (t *TxSearch) Height() uint32
- func (t *TxSearch) Name() string
- func (t *TxSearch) OnBlockConnected(b *types.Block, loader types.Loader)
- func (t *TxSearch) OnLoadChain(loader types.Loader) error
- func (t *TxSearch) OnTransactionFail(height uint32, txs []*types.Transaction, err []error)
- func (t *TxSearch) OnTransactionInPoolExpired(txs []*types.Transaction)
- func (t *TxSearch) Push(indexMap map[addrIndexKey]uint64, batch *leveldb.Batch, tag []byte, ...)
- func (t *TxSearch) Push41(indexMap map[addr41IndexKey]uint64, batch *leveldb.Batch, tag []byte, ...)
- func (t *TxSearch) ReadBlock(b *types.Block) (err error)
- func (t *TxSearch) Reward(cont, rewarder common.Address) (*amount.Amount, error)
- func (t *TxSearch) SetupApi() error
- func (t *TxSearch) TagSize(tag byte, arg *apiserver.Argument) (uint64, error)
- func (t *TxSearch) TokenLeaveList(height uint32) (interface{}, error)
- func (t *TxSearch) TokenOutList(height uint32) (interface{}, error)
- func (t *TxSearch) TokenTxList(From common.Address, index, size int) ([]itxsearch.TxList, error)
- func (t *TxSearch) TransferTxList(token, From common.Address, index, size int) ([]itxsearch.TxList, error)
- func (t *TxSearch) Tx(height uint32, index uint16) (map[string]interface{}, error)
- func (t *TxSearch) TxIndex(th hash.Hash256) (itxsearch.TxID, error)
- func (t *TxSearch) TxList(index int, size int) ([]itxsearch.TxList, error)
- func (t *TxSearch) TxSize() uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailTx = errors.New("failtx")
View Source
var TAG = "TXSEARCH"
Functions ¶
This section is empty.
Types ¶
type ErrCannotReadBlock ¶
type ErrCannotReadBlock struct {
// contains filtered or unexported fields
}
func (*ErrCannotReadBlock) Error ¶
func (e *ErrCannotReadBlock) Error() string
type ErrCannotSetHeight ¶
type ErrCannotSetHeight struct {
// contains filtered or unexported fields
}
func (*ErrCannotSetHeight) Error ¶
func (e *ErrCannotSetHeight) Error() string
type ErrIsNotNextBlock ¶
type ErrIsNotNextBlock struct { }
func (*ErrIsNotNextBlock) Error ¶
func (e *ErrIsNotNextBlock) Error() string
type TxSearch ¶
type TxSearch struct {
// contains filtered or unexported fields
}
func NewTxSearch ¶
func (*TxSearch) AddressTxList ¶
func (*TxSearch) BridgeTxList ¶
func (*TxSearch) DailyReward ¶
func (*TxSearch) OnBlockConnected ¶
OnBlockConnected called when a block is connected to the chain
func (*TxSearch) OnLoadChain ¶
OnLoadChain called when the chain loaded
func (*TxSearch) OnTransactionFail ¶
func (t *TxSearch) OnTransactionFail(height uint32, txs []*types.Transaction, err []error)
OnTransactionFail called when the tx fail
func (*TxSearch) OnTransactionInPoolExpired ¶
func (t *TxSearch) OnTransactionInPoolExpired(txs []*types.Transaction)
OnLoadChain called when the chain loaded
func (*TxSearch) TokenLeaveList ¶
func (*TxSearch) TokenOutList ¶
func (*TxSearch) TokenTxList ¶
func (*TxSearch) TransferTxList ¶
Click to show internal directories.
Click to hide internal directories.