testenv

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Testenv

type Testenv struct {
	Auth *bind.TransactOpts
	*backends.SimulatedBackend
	// contains filtered or unexported fields
}

func NewBlockchain

func NewBlockchain(ctx context.Context) (*Testenv, error)

NewBlockchain is used to generate a simulated blockchain

func (*Testenv) BlockNumber added in v0.0.4

func (t *Testenv) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber returns the most recent block number

func (*Testenv) Cancel

func (t *Testenv) Cancel()

func (*Testenv) Context

func (t *Testenv) Context() context.Context

func (*Testenv) DoWaitDeployed

func (t *Testenv) DoWaitDeployed(tx *types.Transaction, printArgs ...string) (common.Address, error)

func (*Testenv) DoWaitMined

func (t *Testenv) DoWaitMined(tx *types.Transaction, printArgs ...string) error

func (*Testenv) PK

func (t *Testenv) PK() *ecdsa.PrivateKey

func (*Testenv) SendETH

func (t *Testenv) SendETH(recipient common.Address, value *big.Int) error

Jump to

Keyboard shortcuts

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