mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
943dec525c
* Delete deploy contract tool. Move mock to its own package as testonly with some helper functions * gofmt contracts/deposit/mock/mock.go * move stategen mock.go to its on testonly pkg * move password_reader_mock.go to mock testonly package * move mock keymanager to its own testonly package * move attestations mock * move voluntaryexits mock * Move slashings mock to mock pkg * move the slasher mock Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
30 lines
744 B
Go
30 lines
744 B
Go
package mock
|
|
|
|
import (
|
|
"context"
|
|
|
|
types "github.com/prysmaticlabs/eth2-types"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state"
|
|
eth "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// PoolMock is a fake implementation of PoolManager.
|
|
type PoolMock struct {
|
|
Exits []*eth.SignedVoluntaryExit
|
|
}
|
|
|
|
// PendingExits --
|
|
func (m *PoolMock) PendingExits(_ state.ReadOnlyBeaconState, _ types.Slot, _ bool) []*eth.SignedVoluntaryExit {
|
|
return m.Exits
|
|
}
|
|
|
|
// InsertVoluntaryExit --
|
|
func (m *PoolMock) InsertVoluntaryExit(_ context.Context, _ state.ReadOnlyBeaconState, exit *eth.SignedVoluntaryExit) {
|
|
m.Exits = append(m.Exits, exit)
|
|
}
|
|
|
|
// MarkIncluded --
|
|
func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
|
|
panic("implement me")
|
|
}
|