backends

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 331

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/ethereum/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/ethereum/go-ethereum/ethclient/simulated instead.

func (*SimulatedBackend) Fork added in v1.10.4

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