Documentation ¶
Index ¶
- Constants
- func FetchRandao(ctx context.Context, httpClient *eth2api.Eth2HttpClient, slot types.Slot) (types.Hash, error)
- type Client
- func (c *Client) FetchBlock(ctx context.Context, slot types.Slot) error
- func (c *Client) FetchProposers(ctx context.Context, epoch types.Epoch) error
- func (c *Client) FetchValidators(ctx context.Context) error
- func (c *Client) GetBaseFeeForProposal(slot types.Slot) (*types.Uint256, error)
- func (c *Client) GetBlock(slot types.Slot) (*bellatrix.SignedBeaconBlock, error)
- func (c *Client) GetBlockNumberForProposal(slot types.Slot) (uint64, error)
- func (c *Client) GetForkVersion(slot types.Slot) types.ForkVersion
- func (c *Client) GetParentGasLimit(ctx context.Context, blockNumber uint64) (uint64, error)
- func (c *Client) GetParentHash(ctx context.Context, slot types.Slot) (types.Hash, error)
- func (c *Client) GetProposer(slot types.Slot) (*ValidatorInfo, error)
- func (c *Client) GetProposerPublicKey(ctx context.Context, slot types.Slot) (*types.PublicKey, error)
- func (c *Client) GetPublicKeyForIndex(ctx context.Context, validatorIndex types.ValidatorIndex) (*types.PublicKey, error)
- func (c *Client) GetRandomnessForProposal(slot types.Slot) (types.Hash, error)
- func (c *Client) GetValidator(publicKey *types.PublicKey) (*eth2api.ValidatorResponse, error)
- func (c *Client) GetValidatorStatus(publicKey *types.PublicKey) (ValidatorStatus, error)
- func (c *Client) LoadCurrentContext(ctx context.Context, currentSlot types.Slot, currentEpoch types.Epoch) error
- func (c *Client) SignatureDomain(slot types.Slot) crypto.Domain
- func (c *Client) SignatureDomainForBuilder() crypto.Domain
- func (c *Client) StreamHeads(ctx context.Context) <-chan types.Coordinate
- type Clock
- type RandaoResponse
- type ValidatorInfo
- type ValidatorStatus
Constants ¶
View Source
const ( GasElasticityMultiplier = 2 BaseFeeChangeDenominator uint64 = 8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { SlotsPerEpoch uint64 SecondsPerSlot uint64 GenesisTime uint64 GenesisValidatorsRoot types.Root // contains filtered or unexported fields }
func (*Client) FetchProposers ¶
func (*Client) FetchValidators ¶
TODO handle reorgs
func (*Client) GetBaseFeeForProposal ¶
func (*Client) GetBlockNumberForProposal ¶
func (*Client) GetForkVersion ¶
func (c *Client) GetForkVersion(slot types.Slot) types.ForkVersion
NOTE: this assumes the fork schedule is presented in ascending order
func (*Client) GetParentGasLimit ¶
func (*Client) GetParentHash ¶
func (*Client) GetProposer ¶
func (c *Client) GetProposer(slot types.Slot) (*ValidatorInfo, error)
func (*Client) GetProposerPublicKey ¶
func (*Client) GetPublicKeyForIndex ¶
func (*Client) GetRandomnessForProposal ¶
func (*Client) GetValidator ¶
func (*Client) GetValidatorStatus ¶
func (c *Client) GetValidatorStatus(publicKey *types.PublicKey) (ValidatorStatus, error)
func (*Client) LoadCurrentContext ¶
func (*Client) SignatureDomainForBuilder ¶
func (*Client) StreamHeads ¶
func (c *Client) StreamHeads(ctx context.Context) <-chan types.Coordinate
type RandaoResponse ¶
type ValidatorInfo ¶
type ValidatorInfo struct {
// contains filtered or unexported fields
}
type ValidatorStatus ¶
type ValidatorStatus string
const ( StatusValidatorUnknown ValidatorStatus = "unknown" StatusValidatorActive ValidatorStatus = "active" StatusValidatorPending ValidatorStatus = "pending" )
Click to show internal directories.
Click to hide internal directories.