Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_deposits" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates deposits and sends them to the network", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { LimitPerSlot int `yaml:"limitPerSlot" json:"limitPerSlot"` LimitTotal int `yaml:"limitTotal" json:"limitTotal"` Mnemonic string `yaml:"mnemonic" json:"mnemonic"` StartIndex int `yaml:"startIndex" json:"startIndex"` IndexCount int `yaml:"indexCount" json:"indexCount"` WalletPrivkey string `yaml:"walletPrivkey" json:"walletPrivkey"` DepositContract string `yaml:"depositContract" json:"depositContract"` DepositTxFeeCap int64 `yaml:"depositTxFeeCap" json:"depositTxFeeCap"` DepositTxTipCap int64 `yaml:"depositTxTipCap" json:"depositTxTipCap"` ClientPattern string `yaml:"clientPattern" json:"clientPattern"` ExcludeClientPattern string `yaml:"excludeClientPattern" json:"excludeClientPattern"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) Description ¶
func (*Task) LoadConfig ¶
func (*Task) Logger ¶
func (t *Task) Logger() logrus.FieldLogger
Click to show internal directories.
Click to hide internal directories.