Documentation ¶
Index ¶
- func NewAggregateAttestationsSubmitter() eth2client.AggregateAttestationsSubmitter
- func NewAttestationSubmitter() eth2client.AttestationSubmitter
- func NewBeaconBlockSubmitter() eth2client.BeaconBlockSubmitter
- func NewBeaconCommitteeSubscriptionsSubmitter() eth2client.BeaconCommitteeSubscriptionsSubmitter
- func NewGenesisTimeProvider(genesisTime time.Time) eth2client.GenesisTimeProvider
- func NewSlotDurationProvider(slotDuration time.Duration) eth2client.SlotDurationProvider
- func NewSlotsPerEpochProvider(slotsPerEpoch uint64) eth2client.SlotsPerEpochProvider
- type AggregateAttestationsSubmitter
- type AttestationSubmitter
- type BeaconBlockSubmitter
- type BeaconCommitteeSubscriptionsSubmitter
- type GenesisTimeProvider
- type SlotDurationProvider
- type SlotsPerEpochProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAggregateAttestationsSubmitter ¶
func NewAggregateAttestationsSubmitter() eth2client.AggregateAttestationsSubmitter
NewAggregateAttestationsSubmitter returns a mock aggregate attestation submitter with the provided value.
func NewAttestationSubmitter ¶
func NewAttestationSubmitter() eth2client.AttestationSubmitter
NewAttestationSubmitter returns a mock attestation submitter with the provided value.
func NewBeaconBlockSubmitter ¶
func NewBeaconBlockSubmitter() eth2client.BeaconBlockSubmitter
NewBeaconBlockSubmitter returns a mock beacon block submitter with the provided value.
func NewBeaconCommitteeSubscriptionsSubmitter ¶
func NewBeaconCommitteeSubscriptionsSubmitter() eth2client.BeaconCommitteeSubscriptionsSubmitter
NewBeaconCommitteeSubscriptionsSubmitter returns a mock beacon committee subscription submitter with the provided value.
func NewGenesisTimeProvider ¶
func NewGenesisTimeProvider(genesisTime time.Time) eth2client.GenesisTimeProvider
NewGenesisTimeProvider returns a mock genesis time provider with the provided value.
func NewSlotDurationProvider ¶
func NewSlotDurationProvider(slotDuration time.Duration) eth2client.SlotDurationProvider
NewSlotDurationProvider returns a mock slot duration provider with the provided value.
func NewSlotsPerEpochProvider ¶
func NewSlotsPerEpochProvider(slotsPerEpoch uint64) eth2client.SlotsPerEpochProvider
NewSlotsPerEpochProvider returns a mock slots per epoch provider with the provided value.
Types ¶
type AggregateAttestationsSubmitter ¶
type AggregateAttestationsSubmitter struct{}
AggregateAttestationsSubmitter is a mock for eth2client.AggregateAttestationsSubmitter.
func (*AggregateAttestationsSubmitter) SubmitAggregateAttestations ¶
func (m *AggregateAttestationsSubmitter) SubmitAggregateAttestations(ctx context.Context, aggregates []*spec.SignedAggregateAndProof) error
SubmitAggregateAttestations is a mock.
type AttestationSubmitter ¶
type AttestationSubmitter struct{}
AttestationSubmitter is a mock for eth2client.AttestationSubmitter.
func (*AttestationSubmitter) SubmitAttestation ¶
func (m *AttestationSubmitter) SubmitAttestation(ctx context.Context, attestation *spec.Attestation) error
SubmitAttestation is a mock.
type BeaconBlockSubmitter ¶
type BeaconBlockSubmitter struct{}
BeaconBlockSubmitter is a mock for eth2client.BeaconBlockSubmitter.
func (*BeaconBlockSubmitter) SubmitBeaconBlock ¶
func (m *BeaconBlockSubmitter) SubmitBeaconBlock(ctx context.Context, bloc *spec.SignedBeaconBlock) error
SubmitBeaconBlock is a mock.
type BeaconCommitteeSubscriptionsSubmitter ¶
type BeaconCommitteeSubscriptionsSubmitter struct{}
BeaconCommitteeSubscriptionsSubmitter is a mock for eth2client.BeaconCommitteeSubscriptionsSubmitter.
func (*BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions ¶
func (m *BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions(ctx context.Context, subscriptions []*eth2client.BeaconCommitteeSubscription) error
SubmitBeaconCommitteeSubscriptions is a mock.
type GenesisTimeProvider ¶
type GenesisTimeProvider struct {
// contains filtered or unexported fields
}
GenesisTimeProvider is a mock for eth2client.GenesisTimeProvider.
func (*GenesisTimeProvider) GenesisTime ¶
GenesisTime is a mock.
type SlotDurationProvider ¶
type SlotDurationProvider struct {
// contains filtered or unexported fields
}
SlotDurationProvider is a mock for eth2client.SlotDurationProvider.
func (*SlotDurationProvider) SlotDuration ¶
SlotDuration is a mock.
type SlotsPerEpochProvider ¶
type SlotsPerEpochProvider struct {
// contains filtered or unexported fields
}
SlotsPerEpochProvider is a mock for eth2client.SlotsPerEpochProvider.
func (*SlotsPerEpochProvider) SlotsPerEpoch ¶
func (m *SlotsPerEpochProvider) SlotsPerEpoch(ctx context.Context) (uint64, error)
SlotsPerEpoch is a mock.