fans

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package fans details the actions of each crazed fan

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fan

type Fan struct {
	ID          string
	Name        string
	Wallet      *client.Wallet
	PrivateKey  *ecdsa.PrivateKey
	Address     common.Address
	CrazedLevel int
	// contains filtered or unexported fields
}

Fan is an NFT fan that searches for the NFT by incessantly bumping gas

func NewFan

func NewFan() (*Fan, error)

NewFan generates a new fan

func (*Fan) Guzzle added in v0.0.2

func (f *Fan) Guzzle(guzzler *guzzle.Guzzle, amountOfGas uint64) error

func (*Fan) IsSearching

func (f *Fan) IsSearching() bool

IsSearching indicates if the fan is currently in the midst of searching for an NFT

func (*Fan) Search

func (f *Fan) Search() error

Search triggers the fan to search for the hidden NFT

func (*Fan) StopSearch

func (f *Fan) StopSearch()

StopSearch halts the fan if it is currently searching for the NFT

type FanPresident

type FanPresident struct {
	// contains filtered or unexported fields
}

FanPresident controls the meta behaviors of fans, creating new ones, and directing their activity

func NewPresident

func NewPresident() (*FanPresident, error)

NewPresident creates a new president. Only can be used once

func (*FanPresident) DeployGasGuzzlers added in v0.0.2

func (fp *FanPresident) DeployGasGuzzlers(count int) error

DeployGasGuzzlers deploys a specified number of gas guzzle contracts, waiting for them all to get on chain to move on

func (*FanPresident) Fans

func (fp *FanPresident) Fans() []*Fan

Fans retrieves all the current fans

func (*FanPresident) FundFans

func (fp *FanPresident) FundFans(etherAmount *big.Float)

FundFans sends a specified amount of ether to all current fans

func (*FanPresident) GasGuzzlers added in v0.0.2

func (fp *FanPresident) GasGuzzlers() []*guzzle.Guzzle

GasGuzzlers retrieves all active gas guzzling contracts

func (*FanPresident) NewFans

func (fp *FanPresident) NewFans(count int) error

NewFans generates a specified number of new fans

Jump to

Keyboard shortcuts

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