accounts

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Faucet

type Faucet struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewFaucet

func NewFaucet(chainName string, source *accounts.Account) *Faucet

func (*Faucet) Address

func (f *Faucet) Address() libcommon.Address

func (*Faucet) Balance

func (f *Faucet) Balance(ctx context.Context) (*big.Int, error)

func (*Faucet) Contract

func (f *Faucet) Contract() *contracts.Faucet

func (*Faucet) NodeCreated

func (f *Faucet) NodeCreated(ctx context.Context, node devnet.Node)

func (*Faucet) NodeStarted

func (f *Faucet) NodeStarted(ctx context.Context, node devnet.Node)

func (*Faucet) Receive

func (f *Faucet) Receive(ctx context.Context, source *accounts.Account, eth float64) (*big.Int, libcommon.Hash, error)

func (*Faucet) Send

func (f *Faucet) Send(ctx context.Context, destination *accounts.Account, eth float64) (*big.Int, libcommon.Hash, error)

func (*Faucet) Source

func (f *Faucet) Source() *accounts.Account

func (*Faucet) Start

func (f *Faucet) Start(context context.Context) error

func (*Faucet) Stop

func (f *Faucet) Stop()

Jump to

Keyboard shortcuts

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