Documentation ¶
Index ¶
- func NewAggregateAttestationsSubmitter() eth2client.AggregateAttestationsSubmitter
- func NewAttestationSubmitter() eth2client.AttestationsSubmitter
- func NewBeaconBlockSubmitter() eth2client.BeaconBlockSubmitter
- func NewBeaconCommitteeSubscriptionsSubmitter() eth2client.BeaconCommitteeSubscriptionsSubmitter
- func NewForkScheduleProvider(schedule []*phase0.Fork) eth2client.ForkScheduleProvider
- func NewGenesisProvider(genesisTime time.Time) eth2client.GenesisProvider
- func NewSlotsPerEpochProvider(slotsPerEpoch uint64) eth2client.SlotsPerEpochProvider
- func NewSpecProvider(slotDuration time.Duration, slotsPerEpoch uint64, ...) eth2client.SpecProvider
- type AggregateAttestationsSubmitter
- type AttestationsSubmitter
- type BeaconBlockSubmitter
- type BeaconCommitteeSubscriptionsSubmitter
- type ForkScheduleProvider
- type GenesisProvider
- type SlotsPerEpochProvider
- type SpecProvider
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.AttestationsSubmitter
NewAttestationSubmitter returns a mock attestations 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 NewForkScheduleProvider ¶
func NewForkScheduleProvider(schedule []*phase0.Fork) eth2client.ForkScheduleProvider
NewForkScheduleProvider returns a mock spec provider with the provided values.
func NewGenesisProvider ¶ added in v1.34.1
func NewGenesisProvider(genesisTime time.Time) eth2client.GenesisProvider
NewGenesisProvider returns a mock genesis 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.
func NewSpecProvider ¶
func NewSpecProvider(slotDuration time.Duration, slotsPerEpoch uint64, epochsPerSyncCommitteePeriod uint64, ) eth2client.SpecProvider
NewSpecProvider returns a mock spec provider with the provided values.
Types ¶
type AggregateAttestationsSubmitter ¶
type AggregateAttestationsSubmitter struct{}
AggregateAttestationsSubmitter is a mock for eth2client.AggregateAttestationsSubmitter.
func (*AggregateAttestationsSubmitter) SubmitAggregateAttestations ¶
func (m *AggregateAttestationsSubmitter) SubmitAggregateAttestations(_ context.Context, _ []*phase0.SignedAggregateAndProof) error
SubmitAggregateAttestations is a mock.
type AttestationsSubmitter ¶
type AttestationsSubmitter struct{}
AttestationsSubmitter is a mock for eth2client.AttestationsSubmitter.
func (*AttestationsSubmitter) SubmitAttestations ¶
func (m *AttestationsSubmitter) SubmitAttestations(_ context.Context, _ []*phase0.Attestation) error
SubmitAttestations is a mock.
type BeaconBlockSubmitter ¶
type BeaconBlockSubmitter struct{}
BeaconBlockSubmitter is a mock for eth2client.BeaconBlockSubmitter.
func (*BeaconBlockSubmitter) SubmitBeaconBlock ¶
func (m *BeaconBlockSubmitter) SubmitBeaconBlock(_ context.Context, _ *spec.VersionedSignedBeaconBlock) error
SubmitBeaconBlock is a mock.
type BeaconCommitteeSubscriptionsSubmitter ¶
type BeaconCommitteeSubscriptionsSubmitter struct{}
BeaconCommitteeSubscriptionsSubmitter is a mock for eth2client.BeaconCommitteeSubscriptionsSubmitter.
func (*BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions ¶
func (m *BeaconCommitteeSubscriptionsSubmitter) SubmitBeaconCommitteeSubscriptions(_ context.Context, _ []*apiv1.BeaconCommitteeSubscription) error
SubmitBeaconCommitteeSubscriptions is a mock.
type ForkScheduleProvider ¶
type ForkScheduleProvider struct {
// contains filtered or unexported fields
}
ForkScheduleProvider is a mock for eth2client.ForkScheduleProvider.
func (*ForkScheduleProvider) ForkSchedule ¶
func (m *ForkScheduleProvider) ForkSchedule(_ context.Context, _ *api.ForkScheduleOpts) (*api.Response[[]*phase0.Fork], error)
ForkSchedule is a mock.
type GenesisProvider ¶ added in v1.34.1
type GenesisProvider struct {
// contains filtered or unexported fields
}
GenesisProvider is a mock for eth2client.GenesisProvider.
type SlotsPerEpochProvider ¶
type SlotsPerEpochProvider struct {
// contains filtered or unexported fields
}
SlotsPerEpochProvider is a mock for eth2client.SlotsPerEpochProvider.
func (*SlotsPerEpochProvider) SlotsPerEpoch ¶
func (m *SlotsPerEpochProvider) SlotsPerEpoch(_ context.Context) (uint64, error)
SlotsPerEpoch is a mock.