Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_validator_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check validator status on consensus chain.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { ValidatorPubKey string `yaml:"validatorPubKey" json:"validatorPubKey"` ValidatorNamePattern string `yaml:"validatorNamePattern" json:"validatorNamePattern"` ValidatorIndex *uint64 `yaml:"validatorIndex" json:"validatorIndex"` ValidatorStatus []string `yaml:"validatorStatus" json:"validatorStatus"` MinValidatorBalance uint64 `yaml:"minValidatorBalance" json:"minValidatorBalance"` MaxValidatorBalance *uint64 `yaml:"maxValidatorBalance" json:"maxValidatorBalance"` WithdrawalCredsPrefix string `yaml:"withdrawalCredsPrefix" json:"withdrawalCredsPrefix"` FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss"` ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar"` ValidatorPubKeyResultVar string `yaml:"validatorPubKeyResultVar" json:"validatorPubKeyResultVar"` }
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.