txdb

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxDB

type TxDB struct {
	View
	// contains filtered or unexported fields
}

func (*TxDB) AddInitialBlock added in v0.7.3

func (db *TxDB) AddInitialBlock(ctx context.Context, initialBlockHeight *big.Int) error

func (*TxDB) AddMessages

func (db *TxDB) AddMessages(ctx context.Context, msgs []arbbridge.MessageDeliveredEvent, finishedBlock *common.BlockId) error

func (*TxDB) GetBlock

func (db *TxDB) GetBlock(height uint64) (*machine.BlockInfo, error)

func (*TxDB) GetBlockResults added in v0.7.3

func (db *TxDB) GetBlockResults(res *evm.BlockInfo) ([]*evm.TxResult, error)

func (*TxDB) GetLog

func (db *TxDB) GetLog(index uint64) (value.Value, error)

func (*TxDB) GetLogs added in v0.7.3

func (db *TxDB) GetLogs(_ context.Context, blockHash ethcommon.Hash) ([][]*types.Log, error)

func (*TxDB) GetMachineBlockResults added in v0.7.3

func (db *TxDB) GetMachineBlockResults(block *machine.BlockInfo) ([]*evm.TxResult, error)

func (*TxDB) GetMessage

func (db *TxDB) GetMessage(index uint64) (value.Value, error)

func (*TxDB) GetReceipts added in v0.7.3

func (db *TxDB) GetReceipts(_ context.Context, blockHash ethcommon.Hash) (types.Receipts, error)

func (*TxDB) GetSnapshot

func (db *TxDB) GetSnapshot(time inbox.ChainTime) *snapshot.Snapshot

func (*TxDB) LatestBlock

func (db *TxDB) LatestBlock() *common.BlockId

func (*TxDB) LatestBlockId

func (db *TxDB) LatestBlockId() *common.BlockId

func (*TxDB) LatestSnapshot

func (db *TxDB) LatestSnapshot() *snapshot.Snapshot

func (*TxDB) Load added in v0.7.2

func (db *TxDB) Load(ctx context.Context) error

func (*TxDB) SubscribeBlockProcessingEvent added in v0.7.3

func (db *TxDB) SubscribeBlockProcessingEvent(ch chan<- []*types.Log) event.Subscription

func (*TxDB) SubscribeChainEvent added in v0.7.3

func (db *TxDB) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription

func (*TxDB) SubscribeChainHeadEvent added in v0.7.3

func (db *TxDB) SubscribeChainHeadEvent(ch chan<- core.ChainEvent) event.Subscription

func (*TxDB) SubscribeChainSideEvent added in v0.7.3

func (db *TxDB) SubscribeChainSideEvent(ch chan<- core.ChainEvent) event.Subscription

func (*TxDB) SubscribeLogsEvent added in v0.7.3

func (db *TxDB) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscription

func (*TxDB) SubscribePendingLogsEvent added in v0.7.3

func (db *TxDB) SubscribePendingLogsEvent(ch chan<- []*types.Log) event.Subscription

func (*TxDB) SubscribeRemovedLogsEvent added in v0.7.3

func (db *TxDB) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription

type View

type View struct {
	// contains filtered or unexported fields
}

func (*View) FindLogs

func (txdb *View) FindLogs(
	ctx context.Context,
	fromHeight *uint64,
	toHeight *uint64,
	address []common.Address,
	topics [][]common.Hash,
) ([]evm.FullLog, error)

func (*View) GetBlock

func (txdb *View) GetBlock(height uint64) (*machine.BlockInfo, error)

func (*View) GetBlockWithHash added in v0.7.3

func (txdb *View) GetBlockWithHash(blockHash common.Hash) (*machine.BlockInfo, error)

func (*View) GetLog

func (txdb *View) GetLog(index uint64) (value.Value, error)

func (*View) GetMessage

func (txdb *View) GetMessage(index uint64) (value.Value, error)

func (*View) GetRequest

func (txdb *View) GetRequest(requestId common.Hash) (value.Value, error)

func (*View) LatestBlockId

func (txdb *View) LatestBlockId() (*common.BlockId, error)

Jump to

Keyboard shortcuts

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