stress

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDENTITY_UPDATES_SIGNATURE = "addIdentityUpdate(bytes32,bytes)"
	IDENTITY_UPDATES_INBOX_ID  = "0xdee4b6c2d041591ff89952fb57487e594ec42d07063a94cd4535e80af25c8e2e"
	IDENTITY_UPDATES_PAYLOAD   = "" /* 912-byte string literal not displayed */
)
View Source
const MAX_RETRIES = 10

Variables

This section is empty.

Functions

func StressIdentityUpdates

func StressIdentityUpdates(
	ctx context.Context,
	logger *zap.Logger,
	n int,
	contractAddress, rpc, privateKey string,
	async bool,
) error

Types

type CastSendCommand

type CastSendCommand struct {
	ContractAddress string
	Function        string
	FunctionArgs    []string
	Rpc             string
	PrivateKey      string
	Nonce           *uint64
	Async           bool
}

func (*CastSendCommand) Run

func (c *CastSendCommand) Run(ctx context.Context) error

type Watcher

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

func NewWatcher

func NewWatcher(
	ctx context.Context,
	logger *zap.Logger,
	wsUrl string,
	watchedContract common.Address,
) (*Watcher, error)

func (*Watcher) Listen

func (w *Watcher) Listen(ctx context.Context) error

Jump to

Keyboard shortcuts

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