monkey

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *MonkeyConfig)

Types

type Monkey

type Monkey struct {
	client.Client
	// contains filtered or unexported fields
}

func Exec

func Exec() (*Monkey, uint64)

func New

func New(ep string, source *ecdsa.PrivateKey, num int, timeout time.Duration) *Monkey

func (*Monkey) Crazy

func (m *Monkey) Crazy() uint64

func (*Monkey) Distribute

func (m *Monkey) Distribute()

func (*Monkey) DistributeBanana

func (m *Monkey) DistributeBanana(contract common.Address)

func (*Monkey) Feed

func (m *Monkey) Feed() uint64

func (*Monkey) Gamble

func (m *Monkey) Gamble() uint64

func (*Monkey) Keys

func (m *Monkey) Keys() []*ecdsa.PrivateKey

type MonkeyConfig

type MonkeyConfig struct {
	Key      string
	Endpoint string
	N        int
	Gambler  bool
	Feeder   bool
	Batch    bool
	Sleep    int
	Timeout  int
}

Jump to

Keyboard shortcuts

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