txsearch

package
v0.0.0-...-24e5678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

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 NewTxSearch(Path string, api *apiserver.APIServer, st *chain.Store, cn *chain.Chain, initHeight uint32) *TxSearch

func (*TxSearch) AddressTxList

func (t *TxSearch) AddressTxList(From common.Address, index, size int) ([]itxsearch.TxList, error)

func (*TxSearch) Block

func (t *TxSearch) Block(i uint32) (*types.Block, error)

func (*TxSearch) BlockHeight

func (t *TxSearch) BlockHeight(bh hash.Hash256) (uint32, error)

func (*TxSearch) BlockList

func (t *TxSearch) BlockList(index int) []*itxsearch.BlockInfo

func (*TxSearch) BridgeTxList

func (t *TxSearch) BridgeTxList(contStr common.Address, height uint32, to string) (interface{}, error)

func (*TxSearch) DailyReward

func (t *TxSearch) DailyReward(cont, rewarder common.Address, index int) (map[string]*amount.Amount, error)

func (*TxSearch) Height

func (t *TxSearch) Height() uint32

func (*TxSearch) Name

func (t *TxSearch) Name() string

Name returns the name of the service

func (*TxSearch) OnBlockConnected

func (t *TxSearch) OnBlockConnected(b *types.Block, loader types.Loader)

OnBlockConnected called when a block is connected to the chain

func (*TxSearch) OnLoadChain

func (t *TxSearch) OnLoadChain(loader types.Loader) error

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) Push

func (t *TxSearch) Push(indexMap map[addrIndexKey]uint64, batch *leveldb.Batch, tag []byte, args ...interface{})

func (*TxSearch) Push41

func (t *TxSearch) Push41(indexMap map[addr41IndexKey]uint64, batch *leveldb.Batch, tag []byte, args ...interface{})

func (*TxSearch) ReadBlock

func (t *TxSearch) ReadBlock(b *types.Block) (err error)

func (*TxSearch) Reward

func (t *TxSearch) Reward(cont, rewarder common.Address) (*amount.Amount, error)

func (*TxSearch) SetupApi

func (t *TxSearch) SetupApi() error

func (*TxSearch) TagSize

func (t *TxSearch) TagSize(tag byte, arg *apiserver.Argument) (uint64, error)

func (*TxSearch) TokenLeaveList

func (t *TxSearch) TokenLeaveList(height uint32) (interface{}, error)

func (*TxSearch) TokenOutList

func (t *TxSearch) TokenOutList(height uint32) (interface{}, error)

func (*TxSearch) TokenTxList

func (t *TxSearch) TokenTxList(From common.Address, index, size int) ([]itxsearch.TxList, error)

func (*TxSearch) TransferTxList

func (t *TxSearch) TransferTxList(token, From common.Address, index, size int) ([]itxsearch.TxList, error)

func (*TxSearch) Tx

func (t *TxSearch) Tx(height uint32, index uint16) (map[string]interface{}, error)

func (*TxSearch) TxIndex

func (t *TxSearch) TxIndex(th hash.Hash256) (itxsearch.TxID, error)

func (*TxSearch) TxList

func (t *TxSearch) TxList(index int, size int) ([]itxsearch.TxList, error)

func (*TxSearch) TxSize

func (t *TxSearch) TxSize() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL