example1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ScenarioDefaultOptions = ScenarioOptions{
	TotalCount:      0,
	Throughput:      10,
	MaxPending:      0,
	MaxWallets:      0,
	Rebroadcast:     1,
	BaseFee:         20,
	TipFee:          2,
	InitialValue:    100,
	MaxIncrement:    10,
	RandomizeValues: true,
	Timeout:         "",
	ClientGroup:     "",
	LogTxs:          false,
}
View Source
var ScenarioDescriptor = scenario.Descriptor{
	Name:           ScenarioName,
	Description:    "Example scenario demonstrating contract deployment and bound transactions",
	DefaultOptions: ScenarioDefaultOptions,
	NewScenario:    newScenario,
}
View Source
var ScenarioName = "_example1-plugin"

Functions

This section is empty.

Types

type Scenario

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

Scenario represents the example scenario implementation

func (*Scenario) Flags

func (s *Scenario) Flags(flags *pflag.FlagSet) error

func (*Scenario) Init

func (s *Scenario) Init(options *scenario.Options) error

func (*Scenario) Run

func (s *Scenario) Run(ctx context.Context) error

type ScenarioOptions

type ScenarioOptions struct {
	TotalCount      uint64  `yaml:"total_count"`
	Throughput      uint64  `yaml:"throughput"`
	MaxPending      uint64  `yaml:"max_pending"`
	MaxWallets      uint64  `yaml:"max_wallets"`
	Rebroadcast     uint64  `yaml:"rebroadcast"`
	BaseFee         float64 `yaml:"base_fee"`
	TipFee          float64 `yaml:"tip_fee"`
	BaseFeeWei      string  `yaml:"base_fee_wei"`
	TipFeeWei       string  `yaml:"tip_fee_wei"`
	InitialValue    uint64  `yaml:"initial_value"`
	MaxIncrement    uint64  `yaml:"max_increment"`
	RandomizeValues bool    `yaml:"randomize_values"`
	Timeout         string  `yaml:"timeout"`
	ClientGroup     string  `yaml:"client_group"`
	LogTxs          bool    `yaml:"log_txs"`
}

ScenarioOptions defines the configuration options for the example scenario

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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