backends

package
v0.0.0-...-8588118 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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/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

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