eth_clock

package
v1.9.7-0...-acf8c2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package eth_clock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumClock

type EthereumClock interface {
	GetSlotTime(slot uint64) time.Time
	GetCurrentSlot() uint64
	GetEpochAtSlot(slot uint64) uint64
	IsSlotCurrentSlotWithMaximumClockDisparity(slot uint64) bool
	GetSlotByTime(time time.Time) uint64
	GetCurrentEpoch() uint64
	CurrentForkDigest() (common.Bytes4, error)                             // ComputeForkDigest
	NextForkDigest() (common.Bytes4, error)                                // ComputeForkDigest
	ForkId() ([]byte, error)                                               // ComputeForkId
	LastFork() (common.Bytes4, error)                                      // GetLastFork
	StateVersionByForkDigest(common.Bytes4) (clparams.StateVersion, error) // ForkDigestVersion
	StateVersionByEpoch(uint64) clparams.StateVersion
	ComputeForkDigestForVersion(currentVersion common.Bytes4) (digest common.Bytes4, err error)

	GenesisValidatorsRoot() common.Hash
	GenesisTime() uint64
}

func NewEthereumClock

func NewEthereumClock(genesisTime uint64, genesisValidatorsRoot common.Hash, beaconCfg *clparams.BeaconChainConfig) EthereumClock

type MockEthereumClock

type MockEthereumClock struct {
	// contains filtered or unexported fields
}

MockEthereumClock is a mock of EthereumClock interface.

func NewMockEthereumClock

func NewMockEthereumClock(ctrl *gomock.Controller) *MockEthereumClock

NewMockEthereumClock creates a new mock instance.

func (*MockEthereumClock) ComputeForkDigestForVersion

func (m *MockEthereumClock) ComputeForkDigestForVersion(currentVersion common.Bytes4) (common.Bytes4, error)

ComputeForkDigestForVersion mocks base method.

func (*MockEthereumClock) CurrentForkDigest

func (m *MockEthereumClock) CurrentForkDigest() (common.Bytes4, error)

CurrentForkDigest mocks base method.

func (*MockEthereumClock) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEthereumClock) ForkId

func (m *MockEthereumClock) ForkId() ([]byte, error)

ForkId mocks base method.

func (*MockEthereumClock) GenesisTime

func (m *MockEthereumClock) GenesisTime() uint64

GenesisTime mocks base method.

func (*MockEthereumClock) GenesisValidatorsRoot

func (m *MockEthereumClock) GenesisValidatorsRoot() common.Hash

GenesisValidatorsRoot mocks base method.

func (*MockEthereumClock) GetCurrentEpoch

func (m *MockEthereumClock) GetCurrentEpoch() uint64

GetCurrentEpoch mocks base method.

func (*MockEthereumClock) GetCurrentSlot

func (m *MockEthereumClock) GetCurrentSlot() uint64

GetCurrentSlot mocks base method.

func (*MockEthereumClock) GetEpochAtSlot

func (m *MockEthereumClock) GetEpochAtSlot(slot uint64) uint64

GetEpochAtSlot mocks base method.

func (*MockEthereumClock) GetSlotByTime

func (m *MockEthereumClock) GetSlotByTime(time time.Time) uint64

GetSlotByTime mocks base method.

func (*MockEthereumClock) GetSlotTime

func (m *MockEthereumClock) GetSlotTime(slot uint64) time.Time

GetSlotTime mocks base method.

func (*MockEthereumClock) IsSlotCurrentSlotWithMaximumClockDisparity

func (m *MockEthereumClock) IsSlotCurrentSlotWithMaximumClockDisparity(slot uint64) bool

IsSlotCurrentSlotWithMaximumClockDisparity mocks base method.

func (*MockEthereumClock) LastFork

func (m *MockEthereumClock) LastFork() (common.Bytes4, error)

LastFork mocks base method.

func (*MockEthereumClock) NextForkDigest

func (m *MockEthereumClock) NextForkDigest() (common.Bytes4, error)

NextForkDigest mocks base method.

func (*MockEthereumClock) StateVersionByEpoch

func (m *MockEthereumClock) StateVersionByEpoch(arg0 uint64) clparams.StateVersion

StateVersionByEpoch mocks base method.

func (*MockEthereumClock) StateVersionByForkDigest

func (m *MockEthereumClock) StateVersionByForkDigest(arg0 common.Bytes4) (clparams.StateVersion, error)

StateVersionByForkDigest mocks base method.

type MockEthereumClockComputeForkDigestForVersionCall

type MockEthereumClockComputeForkDigestForVersionCall struct {
	*gomock.Call
}

MockEthereumClockComputeForkDigestForVersionCall wrap *gomock.Call

func (*MockEthereumClockComputeForkDigestForVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockComputeForkDigestForVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockComputeForkDigestForVersionCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockCurrentForkDigestCall

type MockEthereumClockCurrentForkDigestCall struct {
	*gomock.Call
}

MockEthereumClockCurrentForkDigestCall wrap *gomock.Call

func (*MockEthereumClockCurrentForkDigestCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockCurrentForkDigestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockCurrentForkDigestCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockForkIdCall

type MockEthereumClockForkIdCall struct {
	*gomock.Call
}

MockEthereumClockForkIdCall wrap *gomock.Call

func (*MockEthereumClockForkIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockForkIdCall) DoAndReturn

func (c *MockEthereumClockForkIdCall) DoAndReturn(f func() ([]byte, error)) *MockEthereumClockForkIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockForkIdCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGenesisTimeCall

type MockEthereumClockGenesisTimeCall struct {
	*gomock.Call
}

MockEthereumClockGenesisTimeCall wrap *gomock.Call

func (*MockEthereumClockGenesisTimeCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGenesisTimeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGenesisTimeCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGenesisValidatorsRootCall

type MockEthereumClockGenesisValidatorsRootCall struct {
	*gomock.Call
}

MockEthereumClockGenesisValidatorsRootCall wrap *gomock.Call

func (*MockEthereumClockGenesisValidatorsRootCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGenesisValidatorsRootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGenesisValidatorsRootCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGetCurrentEpochCall

type MockEthereumClockGetCurrentEpochCall struct {
	*gomock.Call
}

MockEthereumClockGetCurrentEpochCall wrap *gomock.Call

func (*MockEthereumClockGetCurrentEpochCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGetCurrentEpochCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGetCurrentEpochCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGetCurrentSlotCall

type MockEthereumClockGetCurrentSlotCall struct {
	*gomock.Call
}

MockEthereumClockGetCurrentSlotCall wrap *gomock.Call

func (*MockEthereumClockGetCurrentSlotCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGetCurrentSlotCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGetCurrentSlotCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGetEpochAtSlotCall

type MockEthereumClockGetEpochAtSlotCall struct {
	*gomock.Call
}

MockEthereumClockGetEpochAtSlotCall wrap *gomock.Call

func (*MockEthereumClockGetEpochAtSlotCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGetEpochAtSlotCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGetEpochAtSlotCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGetSlotByTimeCall

type MockEthereumClockGetSlotByTimeCall struct {
	*gomock.Call
}

MockEthereumClockGetSlotByTimeCall wrap *gomock.Call

func (*MockEthereumClockGetSlotByTimeCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGetSlotByTimeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGetSlotByTimeCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockGetSlotTimeCall

type MockEthereumClockGetSlotTimeCall struct {
	*gomock.Call
}

MockEthereumClockGetSlotTimeCall wrap *gomock.Call

func (*MockEthereumClockGetSlotTimeCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockGetSlotTimeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockGetSlotTimeCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall

type MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall struct {
	*gomock.Call
}

MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall wrap *gomock.Call

func (*MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockLastForkCall

type MockEthereumClockLastForkCall struct {
	*gomock.Call
}

MockEthereumClockLastForkCall wrap *gomock.Call

func (*MockEthereumClockLastForkCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockLastForkCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockLastForkCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockMockRecorder

type MockEthereumClockMockRecorder struct {
	// contains filtered or unexported fields
}

MockEthereumClockMockRecorder is the mock recorder for MockEthereumClock.

func (*MockEthereumClockMockRecorder) ComputeForkDigestForVersion

func (mr *MockEthereumClockMockRecorder) ComputeForkDigestForVersion(currentVersion any) *MockEthereumClockComputeForkDigestForVersionCall

ComputeForkDigestForVersion indicates an expected call of ComputeForkDigestForVersion.

func (*MockEthereumClockMockRecorder) CurrentForkDigest

CurrentForkDigest indicates an expected call of CurrentForkDigest.

func (*MockEthereumClockMockRecorder) ForkId

ForkId indicates an expected call of ForkId.

func (*MockEthereumClockMockRecorder) GenesisTime

GenesisTime indicates an expected call of GenesisTime.

func (*MockEthereumClockMockRecorder) GenesisValidatorsRoot

GenesisValidatorsRoot indicates an expected call of GenesisValidatorsRoot.

func (*MockEthereumClockMockRecorder) GetCurrentEpoch

GetCurrentEpoch indicates an expected call of GetCurrentEpoch.

func (*MockEthereumClockMockRecorder) GetCurrentSlot

GetCurrentSlot indicates an expected call of GetCurrentSlot.

func (*MockEthereumClockMockRecorder) GetEpochAtSlot

GetEpochAtSlot indicates an expected call of GetEpochAtSlot.

func (*MockEthereumClockMockRecorder) GetSlotByTime

GetSlotByTime indicates an expected call of GetSlotByTime.

func (*MockEthereumClockMockRecorder) GetSlotTime

GetSlotTime indicates an expected call of GetSlotTime.

func (*MockEthereumClockMockRecorder) IsSlotCurrentSlotWithMaximumClockDisparity

func (mr *MockEthereumClockMockRecorder) IsSlotCurrentSlotWithMaximumClockDisparity(slot any) *MockEthereumClockIsSlotCurrentSlotWithMaximumClockDisparityCall

IsSlotCurrentSlotWithMaximumClockDisparity indicates an expected call of IsSlotCurrentSlotWithMaximumClockDisparity.

func (*MockEthereumClockMockRecorder) LastFork

LastFork indicates an expected call of LastFork.

func (*MockEthereumClockMockRecorder) NextForkDigest

NextForkDigest indicates an expected call of NextForkDigest.

func (*MockEthereumClockMockRecorder) StateVersionByEpoch

StateVersionByEpoch indicates an expected call of StateVersionByEpoch.

func (*MockEthereumClockMockRecorder) StateVersionByForkDigest

StateVersionByForkDigest indicates an expected call of StateVersionByForkDigest.

type MockEthereumClockNextForkDigestCall

type MockEthereumClockNextForkDigestCall struct {
	*gomock.Call
}

MockEthereumClockNextForkDigestCall wrap *gomock.Call

func (*MockEthereumClockNextForkDigestCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockNextForkDigestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockNextForkDigestCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockStateVersionByEpochCall

type MockEthereumClockStateVersionByEpochCall struct {
	*gomock.Call
}

MockEthereumClockStateVersionByEpochCall wrap *gomock.Call

func (*MockEthereumClockStateVersionByEpochCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockStateVersionByEpochCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockStateVersionByEpochCall) Return

Return rewrite *gomock.Call.Return

type MockEthereumClockStateVersionByForkDigestCall

type MockEthereumClockStateVersionByForkDigestCall struct {
	*gomock.Call
}

MockEthereumClockStateVersionByForkDigestCall wrap *gomock.Call

func (*MockEthereumClockStateVersionByForkDigestCall) Do

Do rewrite *gomock.Call.Do

func (*MockEthereumClockStateVersionByForkDigestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEthereumClockStateVersionByForkDigestCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL