Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_withdrawal_requests" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates withdrawal requests 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"` LimitPending int `yaml:"limitPending" json:"limitPending"` SourcePubkey string `yaml:"sourcePubkey" json:"sourcePubkey"` SourceMnemonic string `yaml:"sourceMnemonic" json:"sourceMnemonic"` SourceStartIndex int `yaml:"sourceStartIndex" json:"sourceStartIndex"` SourceStartValidatorIndex *uint64 `yaml:"sourceStartValidatorIndex" json:"sourceStartValidatorIndex"` SourceIndexCount int `yaml:"sourceIndexCount" json:"sourceIndexCount"` WithdrawAmount uint64 `yaml:"withdrawAmount" json:"withdrawAmount"` WalletPrivkey string `yaml:"walletPrivkey" json:"walletPrivkey"` WithdrawalContract string `yaml:"withdrawalContract" json:"withdrawalContract"` TxAmount *big.Int `yaml:"txAmount" json:"txAmount"` TxFeeCap *big.Int `yaml:"txFeeCap" json:"txFeeCap"` TxTipCap *big.Int `yaml:"txTipCap" json:"txTipCap"` TxGasLimit uint64 `yaml:"txGasLimit" json:"txGasLimit"` ClientPattern string `yaml:"clientPattern" json:"clientPattern"` ExcludeClientPattern string `yaml:"excludeClientPattern" json:"excludeClientPattern"` AwaitReceipt bool `yaml:"awaitReceipt" json:"awaitReceipt"` FailOnReject bool `yaml:"failOnReject" json:"failOnReject"` }
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.