backends

package
v1.14.14 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimulatedBackend

type SimulatedBackend struct {
	*simulated.Backend
	simulated.Client
}

SimulatedBackend is a simulated blockchain. Deprecated: use package github.com/DoModond/go-ethereum/ethclient/simulated instead.

func NewSimulatedBackend deprecated

func NewSimulatedBackend(alloc types.GenesisAlloc, gasLimit uint64) *SimulatedBackend

NewSimulatedBackend creates a new binding backend using a simulated blockchain for testing purposes.

A simulated backend always uses chainID 1337.

Deprecated: please use simulated.Backend from package github.com/DoModond/go-ethereum/ethclient/simulated instead.

func (*SimulatedBackend) Fork

func (b *SimulatedBackend) Fork(ctx context.Context, parentHash common.Hash) error

Fork sets the head to a new block, which is based on the provided parentHash.

Jump to

Keyboard shortcuts

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