prysm-pulse/beacon-chain/operations/voluntaryexits/mock/mock.go
terence 5a66807989
Update to V5 (#13622)
* First take at updating everything to v5

* Patch gRPC gateway to use prysm v5

Fix patch

* Update go ssz

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00

33 lines
845 B
Go

package mock
import (
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
eth "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
)
// PoolMock is a fake implementation of PoolManager.
type PoolMock struct {
Exits []*eth.SignedVoluntaryExit
}
// PendingExits --
func (m *PoolMock) PendingExits() ([]*eth.SignedVoluntaryExit, error) {
return m.Exits, nil
}
// ExitsForInclusion --
func (m *PoolMock) ExitsForInclusion(_ state.ReadOnlyBeaconState, _ primitives.Slot) ([]*eth.SignedVoluntaryExit, error) {
return m.Exits, nil
}
// InsertVoluntaryExit --
func (m *PoolMock) InsertVoluntaryExit(exit *eth.SignedVoluntaryExit) {
m.Exits = append(m.Exits, exit)
}
// MarkIncluded --
func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
panic("implement me")
}