simulator

package
v0.0.0-...-94114ed Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Genesis

func Genesis() (*core.Genesis, error)

func InitBlockchain

func InitBlockchain(db ethdb.Database, height uint64, accountsMap map[common.Address]attack.Account) (*core.BlockChain, error)

Types

type AccountWithAddress

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

type Manager

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

func NewManager

func NewManager(chain *core.BlockChain, targetDataDir string) Manager

func (*Manager) GetRoutinesChannel

func (m *Manager) GetRoutinesChannel(idx int) chan attack.Routine

func (*Manager) StartServers

func (m *Manager) StartServers() error

func (*Manager) StopServers

func (m *Manager) StopServers()

type NoopBackend

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

func (*NoopBackend) CallContract

func (*NoopBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*NoopBackend) CodeAt

func (*NoopBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

func (*NoopBackend) EstimateGas

func (*NoopBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)

func (*NoopBackend) FilterLogs

func (*NoopBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

func (*NoopBackend) PendingCodeAt

func (*NoopBackend) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

func (*NoopBackend) PendingNonceAt

func (*NoopBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*NoopBackend) SendTransaction

func (*NoopBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*NoopBackend) SubscribeFilterLogs

func (*NoopBackend) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

func (*NoopBackend) SuggestGasPrice

func (*NoopBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*NoopBackend) TransactionReceipt

func (b *NoopBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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