Documentation ¶
Index ¶
- type Duty
- func (d *Duty) Account() e2wtypes.Account
- func (d *Duty) RANDAOReveal() phase0.BLSSignature
- func (d *Duty) SetAccount(account e2wtypes.Account)
- func (d *Duty) SetRandaoReveal(randaoReveal phase0.BLSSignature)
- func (d *Duty) Slot() phase0.Slot
- func (d *Duty) String() string
- func (d *Duty) ValidatorIndex() phase0.ValidatorIndex
- type ProposerConfig
- type RelayConfig
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duty ¶
type Duty struct {
// contains filtered or unexported fields
}
Duty contains information about a beacon block proposal duty.
func NewDuty ¶
func NewDuty(slot phase0.Slot, validatorIndex phase0.ValidatorIndex) *Duty
NewDuty creates a new beacon block proposer duty.
func (*Duty) RANDAOReveal ¶
func (d *Duty) RANDAOReveal() phase0.BLSSignature
RANDAOReveal provides the RANDAO reveal.
func (*Duty) SetAccount ¶ added in v0.9.0
SetAccount sets the account.
func (*Duty) SetRandaoReveal ¶
func (d *Duty) SetRandaoReveal(randaoReveal phase0.BLSSignature)
SetRandaoReveal sets the RANDAO reveal.
func (*Duty) ValidatorIndex ¶
func (d *Duty) ValidatorIndex() phase0.ValidatorIndex
ValidatorIndex provides the validator index for the beacon block proposer.
type ProposerConfig ¶ added in v1.7.0
type ProposerConfig struct { FeeRecipient bellatrix.ExecutionAddress Relays []*RelayConfig }
ProposerConfig contains configuration for a proposer.
func (*ProposerConfig) MarshalJSON ¶ added in v1.7.0
func (p *ProposerConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ProposerConfig) String ¶ added in v1.7.0
func (p *ProposerConfig) String() string
String provides a string representation of the struct.
type RelayConfig ¶ added in v1.7.0
type RelayConfig struct { Address string PublicKey *phase0.BLSPubKey FeeRecipient bellatrix.ExecutionAddress GasLimit uint64 Grace time.Duration MinValue decimal.Decimal }
RelayConfig contains configuration for a relay.
func (*RelayConfig) MarshalJSON ¶ added in v1.7.0
func (r *RelayConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*RelayConfig) String ¶ added in v1.7.0
func (r *RelayConfig) String() string
String provides a string representation of the struct.
Click to show internal directories.
Click to hide internal directories.