Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_spamoor_scenario" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Runs a spamoor scenario with the given configuration", 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 {
ScenarioName string `yaml:"scenarioName" json:"scenarioName" require:"A" desc:"Name of the spamoor scenario to run."`
PrivateKey string `yaml:"privateKey" json:"privateKey" require:"B" desc:"Private key of the root wallet used to fund scenario wallets."`
ScenarioYAML *helper.RawMessage `yaml:"scenarioYaml" json:"scenarioYaml" desc:"YAML configuration for the scenario (nested YAML structure passed to spamoor)."`
}
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.