mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 02:31:19 +00:00
5aac06f04e
* begin move * use same import path * imports * regen protos * regen * no rename * generate ssz * gaz * fmt * edit build file * imports * modify * remove generated files * remove protos * edit imports in prysm * beacon chain all builds * edit script * add generated pbs * add replace rules * license for ethereumapis protos * change visibility * fmt * update build files to gaz ignore * use proper form * edit imports * wrap block * revert scripts * revert go mod
140 lines
3.6 KiB
Go
140 lines
3.6 KiB
Go
package attestations
|
|
|
|
import (
|
|
"context"
|
|
|
|
types "github.com/prysmaticlabs/eth2-types"
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
|
|
)
|
|
|
|
// PoolMock --
|
|
type PoolMock struct {
|
|
AggregatedAtts []*ethpb.Attestation
|
|
}
|
|
|
|
// AggregateUnaggregatedAttestations --
|
|
func (*PoolMock) AggregateUnaggregatedAttestations(_ context.Context) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// AggregateUnaggregatedAttestationsBySlotIndex --
|
|
func (*PoolMock) AggregateUnaggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveAggregatedAttestation --
|
|
func (*PoolMock) SaveAggregatedAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveAggregatedAttestations --
|
|
func (m *PoolMock) SaveAggregatedAttestations(atts []*ethpb.Attestation) error {
|
|
m.AggregatedAtts = append(m.AggregatedAtts, atts...)
|
|
return nil
|
|
}
|
|
|
|
// AggregatedAttestations --
|
|
func (m *PoolMock) AggregatedAttestations() []*ethpb.Attestation {
|
|
return m.AggregatedAtts
|
|
}
|
|
|
|
// AggregatedAttestationsBySlotIndex --
|
|
func (*PoolMock) AggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) []*ethpb.Attestation {
|
|
panic("implement me")
|
|
}
|
|
|
|
// DeleteAggregatedAttestation --
|
|
func (*PoolMock) DeleteAggregatedAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// HasAggregatedAttestation --
|
|
func (*PoolMock) HasAggregatedAttestation(_ *ethpb.Attestation) (bool, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
// AggregatedAttestationCount --
|
|
func (*PoolMock) AggregatedAttestationCount() int {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveUnaggregatedAttestation --
|
|
func (*PoolMock) SaveUnaggregatedAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveUnaggregatedAttestations --
|
|
func (*PoolMock) SaveUnaggregatedAttestations(_ []*ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// UnaggregatedAttestations --
|
|
func (*PoolMock) UnaggregatedAttestations() ([]*ethpb.Attestation, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
// UnaggregatedAttestationsBySlotIndex --
|
|
func (*PoolMock) UnaggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) []*ethpb.Attestation {
|
|
panic("implement me")
|
|
}
|
|
|
|
// DeleteUnaggregatedAttestation --
|
|
func (*PoolMock) DeleteUnaggregatedAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// DeleteSeenUnaggregatedAttestations --
|
|
func (*PoolMock) DeleteSeenUnaggregatedAttestations() (int, error) {
|
|
panic("implement me")
|
|
}
|
|
|
|
// UnaggregatedAttestationCount --
|
|
func (*PoolMock) UnaggregatedAttestationCount() int {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveBlockAttestation --
|
|
func (*PoolMock) SaveBlockAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveBlockAttestations --
|
|
func (*PoolMock) SaveBlockAttestations(_ []*ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// BlockAttestations --
|
|
func (*PoolMock) BlockAttestations() []*ethpb.Attestation {
|
|
panic("implement me")
|
|
}
|
|
|
|
// DeleteBlockAttestation --
|
|
func (*PoolMock) DeleteBlockAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveForkchoiceAttestation --
|
|
func (*PoolMock) SaveForkchoiceAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// SaveForkchoiceAttestations --
|
|
func (*PoolMock) SaveForkchoiceAttestations(_ []*ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// ForkchoiceAttestations --
|
|
func (*PoolMock) ForkchoiceAttestations() []*ethpb.Attestation {
|
|
panic("implement me")
|
|
}
|
|
|
|
// DeleteForkchoiceAttestation --
|
|
func (*PoolMock) DeleteForkchoiceAttestation(_ *ethpb.Attestation) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
// ForkchoiceAttestationCount --
|
|
func (*PoolMock) ForkchoiceAttestationCount() int {
|
|
panic("implement me")
|
|
}
|