backends

package
v0.0.0-...-c5cebdb Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 5 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/codecodeorg/opgeth/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/codecodeorg/opgeth/ethclient/simulated instead.

func NewSimulatedBackendFromConfig

func NewSimulatedBackendFromConfig(cfg ethconfig.Config) *SimulatedBackend

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