accounts

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 13 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(_ context.Context, _ 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) 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