Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_consensus_builder_status" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Check builder status on consensus chain by loading the full beacon state.", Category: "consensus", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "builder", Type: "object", Description: "The builder information object.", }, { Name: "builderIndex", Type: "number", Description: "The builder's index in the builder list.", }, { Name: "pubkey", Type: "string", Description: "The builder'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 {
BuilderPubKey string `yaml:"builderPubKey" json:"builderPubKey" desc:"Public key of the builder to check."`
BuilderIndex *uint64 `yaml:"builderIndex" json:"builderIndex" desc:"Index of the builder to check."`
MinBuilderBalance uint64 `yaml:"minBuilderBalance" json:"minBuilderBalance" desc:"Minimum builder balance required (in gwei)."`
MaxBuilderBalance *uint64 `yaml:"maxBuilderBalance" json:"maxBuilderBalance" desc:"Maximum builder balance allowed (in gwei)."`
ExpectExiting bool `` /* 146-byte string literal not displayed */
ExpectActive bool `` /* 127-byte string literal not displayed */
FailOnCheckMiss bool `yaml:"failOnCheckMiss" json:"failOnCheckMiss" desc:"If true, fail the task when builder status check condition is not met."`
ContinueOnPass bool `` /* 137-byte string literal not displayed */
ClientPattern string `yaml:"clientPattern" json:"clientPattern" desc:"Regex pattern to select specific client endpoints for state queries."`
}
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.