validatorreward

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName           = "workflow-plugin-crypto"
	ExecutorProvider       = "ethereum-testnet-validator-reward"
	WorkloadKind           = "provider"
	Operation              = "run_validator_reward_proof"
	EvidenceArtifact       = "validator_reward_evidence.json"
	BlockerArtifact        = "validator_reward_blocker.json"
	ComputeProtocolVersion = "compute.v1alpha1"
)

Variables

View Source
var Version = "0.1.0"

Functions

func Main

func Main(args []string, stdout, stderr io.Writer, stdin ...io.Reader) int

func WriteProbe

func WriteProbe(w io.Writer) error

Types

type Fixture

type Fixture struct {
	ValidatorPubkey        string `json:"validator_pubkey,omitempty"`
	ValidatorClientVersion string `json:"validator_client_version,omitempty"`
	DutyEvidenceRef        string `json:"duty_evidence_ref,omitempty"`
	RewardAccrualRef       string `json:"reward_accrual_ref,omitempty"`
	WalletReceiptStatusRef string `json:"wallet_receipt_status_ref,omitempty"`
	WalletReceiptStatus    string `json:"wallet_receipt_status,omitempty"`
	RewardDeltaGwei        int64  `json:"reward_delta_gwei,omitempty"`
	SourceState            string `json:"source_state,omitempty"`
}

type Request

type Request struct {
	Workload Workload `json:"workload"`
}

type Workload

type Workload struct {
	Chain                      string  `json:"chain"`
	Network                    string  `json:"network"`
	ValidatorClientIdentityRef string  `json:"validator_client_identity_ref"`
	SignerModeRef              string  `json:"signer_mode_ref"`
	WithdrawalAddressRef       string  `json:"withdrawal_address_ref"`
	FeeRecipientAddressRef     string  `json:"fee_recipient_address_ref"`
	SlashingProtectionRef      string  `json:"slashing_protection_ref"`
	BeaconRPCRef               string  `json:"beacon_rpc_ref,omitempty"`
	BeaconAPIURL               string  `json:"beacon_api_url,omitempty"`
	ValidatorPubkey            string  `json:"validator_pubkey,omitempty"`
	ObservationWindowSeconds   int     `json:"observation_window_seconds,omitempty"`
	Fixture                    Fixture `json:"fixture,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL