testchain

package
v0.0.0-...-0928cd4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeScanner

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

func (*FakeScanner) GetConfirmations

func (s *FakeScanner) GetConfirmations(txHash [32]byte) int32

func (*FakeScanner) GetLatestScanHeight

func (s *FakeScanner) GetLatestScanHeight() int64

func (*FakeScanner) GetNewTxs

func (s *FakeScanner) GetNewTxs(blockHeight int64, blockHash [32]byte, scanBlock bool) []mdbtypes.Tx

func (*FakeScanner) SetLatestScanHeight

func (s *FakeScanner) SetLatestScanHeight(blockHeight int64)

type TestChain

type TestChain struct {
	*chains.VirtualChain
	// contains filtered or unexported fields
}

func CreateTestChain

func CreateTestChain() *TestChain

func (*TestChain) AddTx

func (tc *TestChain) AddTx(txHash gethcmn.Hash, logs ...mevmtypes.Log)

func (*TestChain) Destroy

func (tc *TestChain) Destroy()

func (*TestChain) GenNewBlock

func (tc *TestChain) GenNewBlock() (h int64, hash gethcmn.Hash)

func (*TestChain) NewBackend

func (tc *TestChain) NewBackend() api.BackendService

func (*TestChain) WaitMS

func (tc *TestChain) WaitMS(n int64)

Jump to

Keyboard shortcuts

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