Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_consolidations" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates consolidations 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"`
SourceMnemonic string `yaml:"sourceMnemonic" json:"sourceMnemonic"`
SourceStartIndex int `yaml:"sourceStartIndex" json:"sourceStartIndex"`
SourceStartValidatorIndex *uint64 `yaml:"sourceStartValidatorIndex" json:"sourceStartValidatorIndex"`
SourceIndexCount int `yaml:"sourceIndexCount" json:"sourceIndexCount"`
TargetPublicKey string `yaml:"targetPublicKey" json:"targetPublicKey"`
TargetValidatorIndex *uint64 `yaml:"targetValidatorIndex" json:"targetValidatorIndex"`
ConsolidationEpoch *uint64 `yaml:"consolidationEpoch" json:"consolidationEpoch"`
WalletPrivkey string `yaml:"walletPrivkey" json:"walletPrivkey"`
ConsolidationContract string `yaml:"consolidationContract" json:"consolidationContract"`
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.