faucet

package
v0.0.0-...-c0e68af Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendFaucet

func SendFaucet(ctx context.Context, c *ethclient.Client, o *ethAbiBind.TransactOpts, faucet, sender ethCommon.Address, addrs ...FaucetReq) (hash *ethTypes.Transaction, err error)

SendFaucet to multiple addresses, allowing the contract to randomly choose how much to send.

Types

type FaucetReq

type FaucetReq struct {
	Recipient ethCommon.Address `abi:"recipient"`
	IsStaker  bool              `abi:"isStaker"`
}

type FaucetRequest

type FaucetRequest struct {
	Addr                 string
	IpAddr               string
	CreatedBy, UpdatedBy time.Time
	WasSent, IsFlyStaker bool
}

Jump to

Keyboard shortcuts

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