Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_eoa_transactions" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates normal eoa transactions and sends them to the network", Category: "transaction", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{}, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
LimitPerBlock int `yaml:"limitPerBlock" json:"limitPerBlock" require:"A.1" desc:"Maximum number of transactions to generate per block."`
LimitTotal int `yaml:"limitTotal" json:"limitTotal" require:"A.2" desc:"Total limit on the number of transactions to generate."`
LimitPending int `yaml:"limitPending" json:"limitPending" require:"A.3" desc:"Maximum number of pending transactions to allow before waiting."`
PrivateKey string `yaml:"privateKey" json:"privateKey" require:"B" desc:"Private key of the wallet used to send transactions."`
ChildWallets uint64 `yaml:"childWallets" json:"childWallets" desc:"Number of child wallets to use for parallel transaction sending."`
WalletSeed string `yaml:"walletSeed" json:"walletSeed" desc:"Seed used to derive child wallet addresses deterministically."`
RefillPendingLimit uint64 `yaml:"refillPendingLimit" json:"refillPendingLimit" desc:"Maximum pending refill transactions before waiting."`
RefillFeeCap *big.Int `yaml:"refillFeeCap" json:"refillFeeCap" desc:"Maximum fee cap (in wei) for refill transactions."`
RefillTipCap *big.Int `yaml:"refillTipCap" json:"refillTipCap" desc:"Maximum priority tip (in wei) for refill transactions."`
RefillAmount *big.Int `yaml:"refillAmount" json:"refillAmount" desc:"Amount (in wei) to transfer when refilling child wallets."`
RefillMinBalance *big.Int `yaml:"refillMinBalance" json:"refillMinBalance" desc:"Minimum balance (in wei) before triggering a refill."`
LegacyTxType bool `yaml:"legacyTxType" json:"legacyTxType" desc:"If true, use legacy transaction type instead of EIP-1559."`
FeeCap *big.Int `yaml:"feeCap" json:"feeCap" desc:"Maximum fee cap (in wei) for generated transactions."`
TipCap *big.Int `yaml:"tipCap" json:"tipCap" desc:"Maximum priority tip (in wei) for generated transactions."`
GasLimit uint64 `yaml:"gasLimit" json:"gasLimit" desc:"Gas limit for generated transactions."`
TargetAddress string `yaml:"targetAddress" json:"targetAddress" desc:"Target address to send transactions to."`
RandomTarget bool `yaml:"randomTarget" json:"randomTarget" desc:"If true, send transactions to random addresses."`
ContractDeployment bool `yaml:"contractDeployment" json:"contractDeployment" desc:"If true, deploy contracts instead of simple transfers."`
CallData string `yaml:"callData" json:"callData" desc:"Hex-encoded call data to include in transactions."`
RandomAmount bool `yaml:"randomAmount" json:"randomAmount" desc:"If true, use random amounts for each transaction."`
Amount *big.Int `yaml:"amount" json:"amount" desc:"Amount (in wei) to send in each transaction."`
AwaitReceipt bool `yaml:"awaitReceipt" json:"awaitReceipt" desc:"Wait for transaction receipts before completing."`
FailOnReject bool `yaml:"failOnReject" json:"failOnReject" desc:"Fail the task if any transaction is rejected."`
FailOnSuccess bool `yaml:"failOnSuccess" json:"failOnSuccess" desc:"Fail the task if any transaction succeeds (for negative testing)."`
ClientPattern string `` /* 127-byte string literal not displayed */
ExcludeClientPattern string `yaml:"excludeClientPattern" json:"excludeClientPattern" desc:"Regex pattern to exclude certain client endpoints."`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.