Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "check_eth_call" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Checks the response of an eth_call transaction", Category: "execution", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "callResult", Type: "string", Description: "The result of the eth_call as a hex string.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
EthCallData string `yaml:"ethCallData" json:"ethCallData" desc:"Hex-encoded call data to send with eth_call."`
ExpectResult string `yaml:"expectResult" json:"expectResult" desc:"Expected hex-encoded result from eth_call."`
IgnoreResults []string `yaml:"ignoreResults" json:"ignoreResults" desc:"List of hex-encoded results to ignore (not treat as failures)."`
CallAddress string `yaml:"callAddress" json:"callAddress" desc:"Target contract address for eth_call."`
BlockNumber uint64 `yaml:"blockNumber" json:"blockNumber" desc:"Block number to execute eth_call at (0 for latest)."`
FailOnMismatch bool `yaml:"failOnMismatch" json:"failOnMismatch" desc:"If true, fail the task when eth_call result does not match expected."`
ClientPattern string `yaml:"clientPattern" json:"clientPattern" desc:"Regex pattern to select specific client endpoints for eth_call."`
ExcludeClientPattern string `yaml:"excludeClientPattern" json:"excludeClientPattern" desc:"Regex pattern to exclude certain client endpoints."`
ContinueOnPass bool `` /* 137-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.