airdroputil

package
v0.0.0-...-83323f8 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AirdropAbi = `` /* 4073-byte string literal not displayed */

Variables

This section is empty.

Functions

func AirdropETHs

func AirdropETHs(paras *AirdropParams, accounts []common.Address, amounts []*big.Int)

func AirdropETHsByFile

func AirdropETHsByFile(paras *AirdropParams, airdropListFile string)

func AirdropTokens

func AirdropTokens(paras *AirdropParams, accounts []common.Address, amounts []*big.Int)

func AirdropTokensByFile

func AirdropTokensByFile(paras *AirdropParams, airdropListFile string)

func ReadAirdropAddressesOnly

func ReadAirdropAddressesOnly(filePath string) []common.Address

func ReadAirdropList

func ReadAirdropList(filePath string, tokenDecimals int64) ([]common.Address, []*big.Int)

func ReadNFTAirdropAddresssWithAmount

func ReadNFTAirdropAddresssWithAmount(filePath string) (addrs []common.Address, amount []int64)

func TrimContractAccount

func TrimContractAccount(client *ethclient.Client, allAccountsTemp []common.Address) []common.Address

Types

type AirdropParams

type AirdropParams struct {
	Endpoint        string
	SenderPrv       string
	GasLimit        int64
	GasPriceGwei    float64
	AirdropContract string
	Token           string
	TokenDecimals   int64
	AccountsPerTx   int
}

Jump to

Keyboard shortcuts

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