mock

package
v4.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Amount32Eth

func Amount32Eth() *big.Int

Amount32Eth returns 32Eth(in wei) in terms of the big.Int type.

func DeployDepositContract

func DeployDepositContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *deposit.DepositContract, error)

DeployDepositContract deploys a new Ethereum contract, binding an instance of DepositContract to it.

func LessThan1Eth

func LessThan1Eth() *big.Int

LessThan1Eth returns less than 1 Eth(in wei) in terms of the big.Int type.

Types

type TestAccount

type TestAccount struct {
	Addr         common.Address
	ContractAddr common.Address
	Contract     *deposit.DepositContract
	Backend      *backends.SimulatedBackend
	TxOpts       *bind.TransactOpts
}

TestAccount represents a test account in the simulated backend, through which we can perform actions on the eth1.0 chain.

func Setup

func Setup() (*TestAccount, error)

Setup creates the simulated backend with the deposit contract deployed

Jump to

Keyboard shortcuts

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