backends

package
v0.13.9-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0, LGPL-3.0 Imports: 6 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/MetalBlockchain/coreth/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/MetalBlockchain/coreth/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