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.", Category: "consensus", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "validator", Type: "object", Description: "The validator information object.", }, { Name: "pubkey", Type: "string", Description: "The validator's public key.", }, }, 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" desc:"Public key of the validator to check."`
ValidatorNamePattern string `yaml:"validatorNamePattern" json:"validatorNamePattern" desc:"Regex pattern to match validator names."`
ValidatorIndex *uint64 `yaml:"validatorIndex" json:"validatorIndex" desc:"Index of the validator to check."`
ValidatorStatus []string `yaml:"validatorStatus" json:"validatorStatus" desc:"List of expected validator statuses."`
MinValidatorBalance uint64 `yaml:"minValidatorBalance" json:"minValidatorBalance" desc:"Minimum validator balance required (in gwei)."`
MaxValidatorBalance *uint64 `yaml:"maxValidatorBalance" json:"maxValidatorBalance" desc:"Maximum validator balance allowed (in gwei)."`
WithdrawalCredsPrefix string `yaml:"withdrawalCredsPrefix" json:"withdrawalCredsPrefix" desc:"Expected prefix of withdrawal credentials."`
FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss" desc:"If true, fail the task when validator status check condition is not met."`
ContinueOnPass bool `` /* 137-byte string literal not displayed */
ValidatorInfoResultVar string `yaml:"validatorInfoResultVar" json:"validatorInfoResultVar" deprecated:"true" desc:"Deprecated: Use task outputs instead."`
ValidatorPubKeyResultVar string `` /* 126-byte string literal not displayed */
}
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.