monkey

package
v1.0.0-tan Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TestERC20TokenABI = "" /* 3190-byte string literal not displayed */

TestERC20TokenABI is the input ABI used to generate the binding from.

View Source
const TestERC20TokenBin = `` /* 5016-byte string literal not displayed */

TestERC20TokenBin is the compiled bytecode used for deploying new contracts.

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) DistributeToken

func (m *Monkey) DistributeToken(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