github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/operations/attestations/mock.go (about)

     1  package attestations
     2  
     3  import (
     4  	"context"
     5  
     6  	types "github.com/prysmaticlabs/eth2-types"
     7  	ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
     8  )
     9  
    10  // PoolMock --
    11  type PoolMock struct {
    12  	AggregatedAtts []*ethpb.Attestation
    13  }
    14  
    15  // AggregateUnaggregatedAttestations --
    16  func (*PoolMock) AggregateUnaggregatedAttestations(_ context.Context) error {
    17  	panic("implement me")
    18  }
    19  
    20  // AggregateUnaggregatedAttestationsBySlotIndex --
    21  func (*PoolMock) AggregateUnaggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) error {
    22  	panic("implement me")
    23  }
    24  
    25  // SaveAggregatedAttestation --
    26  func (*PoolMock) SaveAggregatedAttestation(_ *ethpb.Attestation) error {
    27  	panic("implement me")
    28  }
    29  
    30  // SaveAggregatedAttestations --
    31  func (m *PoolMock) SaveAggregatedAttestations(atts []*ethpb.Attestation) error {
    32  	m.AggregatedAtts = append(m.AggregatedAtts, atts...)
    33  	return nil
    34  }
    35  
    36  // AggregatedAttestations --
    37  func (m *PoolMock) AggregatedAttestations() []*ethpb.Attestation {
    38  	return m.AggregatedAtts
    39  }
    40  
    41  // AggregatedAttestationsBySlotIndex --
    42  func (*PoolMock) AggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) []*ethpb.Attestation {
    43  	panic("implement me")
    44  }
    45  
    46  // DeleteAggregatedAttestation --
    47  func (*PoolMock) DeleteAggregatedAttestation(_ *ethpb.Attestation) error {
    48  	panic("implement me")
    49  }
    50  
    51  // HasAggregatedAttestation --
    52  func (*PoolMock) HasAggregatedAttestation(_ *ethpb.Attestation) (bool, error) {
    53  	panic("implement me")
    54  }
    55  
    56  // AggregatedAttestationCount --
    57  func (*PoolMock) AggregatedAttestationCount() int {
    58  	panic("implement me")
    59  }
    60  
    61  // SaveUnaggregatedAttestation --
    62  func (*PoolMock) SaveUnaggregatedAttestation(_ *ethpb.Attestation) error {
    63  	panic("implement me")
    64  }
    65  
    66  // SaveUnaggregatedAttestations --
    67  func (*PoolMock) SaveUnaggregatedAttestations(_ []*ethpb.Attestation) error {
    68  	panic("implement me")
    69  }
    70  
    71  // UnaggregatedAttestations --
    72  func (*PoolMock) UnaggregatedAttestations() ([]*ethpb.Attestation, error) {
    73  	panic("implement me")
    74  }
    75  
    76  // UnaggregatedAttestationsBySlotIndex --
    77  func (*PoolMock) UnaggregatedAttestationsBySlotIndex(_ context.Context, _ types.Slot, _ types.CommitteeIndex) []*ethpb.Attestation {
    78  	panic("implement me")
    79  }
    80  
    81  // DeleteUnaggregatedAttestation --
    82  func (*PoolMock) DeleteUnaggregatedAttestation(_ *ethpb.Attestation) error {
    83  	panic("implement me")
    84  }
    85  
    86  // DeleteSeenUnaggregatedAttestations --
    87  func (*PoolMock) DeleteSeenUnaggregatedAttestations() (int, error) {
    88  	panic("implement me")
    89  }
    90  
    91  // UnaggregatedAttestationCount --
    92  func (*PoolMock) UnaggregatedAttestationCount() int {
    93  	panic("implement me")
    94  }
    95  
    96  // SaveBlockAttestation --
    97  func (*PoolMock) SaveBlockAttestation(_ *ethpb.Attestation) error {
    98  	panic("implement me")
    99  }
   100  
   101  // SaveBlockAttestations --
   102  func (*PoolMock) SaveBlockAttestations(_ []*ethpb.Attestation) error {
   103  	panic("implement me")
   104  }
   105  
   106  // BlockAttestations --
   107  func (*PoolMock) BlockAttestations() []*ethpb.Attestation {
   108  	panic("implement me")
   109  }
   110  
   111  // DeleteBlockAttestation --
   112  func (*PoolMock) DeleteBlockAttestation(_ *ethpb.Attestation) error {
   113  	panic("implement me")
   114  }
   115  
   116  // SaveForkchoiceAttestation --
   117  func (*PoolMock) SaveForkchoiceAttestation(_ *ethpb.Attestation) error {
   118  	panic("implement me")
   119  }
   120  
   121  // SaveForkchoiceAttestations --
   122  func (*PoolMock) SaveForkchoiceAttestations(_ []*ethpb.Attestation) error {
   123  	panic("implement me")
   124  }
   125  
   126  // ForkchoiceAttestations --
   127  func (*PoolMock) ForkchoiceAttestations() []*ethpb.Attestation {
   128  	panic("implement me")
   129  }
   130  
   131  // DeleteForkchoiceAttestation --
   132  func (*PoolMock) DeleteForkchoiceAttestation(_ *ethpb.Attestation) error {
   133  	panic("implement me")
   134  }
   135  
   136  // ForkchoiceAttestationCount --
   137  func (*PoolMock) ForkchoiceAttestationCount() int {
   138  	panic("implement me")
   139  }