Documentation ¶
Index ¶
- type MockFetcher
- type MockGenesisTimeFetcher
- type MockPOWChainInfoFetcher
- func (m *MockPOWChainInfoFetcher) CurrentETH1ConnectionError() error
- func (m *MockPOWChainInfoFetcher) CurrentETH1Endpoint() string
- func (m *MockPOWChainInfoFetcher) ETH1ConnectionErrors() []error
- func (m *MockPOWChainInfoFetcher) ETH1Endpoints() []string
- func (m *MockPOWChainInfoFetcher) Eth2GenesisPowchainInfo() (uint64, *big.Int)
- func (m *MockPOWChainInfoFetcher) IsConnectedToETH1() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFetcher ¶
type MockFetcher struct { BeaconState state.BeaconState BeaconStateRoot []byte }
MockFetcher is a fake implementation of statefetcher.Fetcher.
func (*MockFetcher) State ¶
func (m *MockFetcher) State(context.Context, []byte) (state.BeaconState, error)
State --
func (*MockFetcher) StateBySlot ¶
func (m *MockFetcher) StateBySlot(context.Context, types.Slot) (state.BeaconState, error)
type MockGenesisTimeFetcher ¶
MockGenesisTimeFetcher is a fake implementation of the blockchain.TimeFetcher
func (*MockGenesisTimeFetcher) CurrentSlot ¶
func (m *MockGenesisTimeFetcher) CurrentSlot() types.Slot
func (*MockGenesisTimeFetcher) GenesisTime ¶
func (m *MockGenesisTimeFetcher) GenesisTime() time.Time
type MockPOWChainInfoFetcher ¶
type MockPOWChainInfoFetcher struct { CurrEndpoint string CurrError error Endpoints []string Errors []error }
MockGenesisTimeFetcher is a fake implementation of the powchain.ChainInfoFetcher
func (*MockPOWChainInfoFetcher) CurrentETH1ConnectionError ¶
func (m *MockPOWChainInfoFetcher) CurrentETH1ConnectionError() error
func (*MockPOWChainInfoFetcher) CurrentETH1Endpoint ¶
func (m *MockPOWChainInfoFetcher) CurrentETH1Endpoint() string
func (*MockPOWChainInfoFetcher) ETH1ConnectionErrors ¶
func (m *MockPOWChainInfoFetcher) ETH1ConnectionErrors() []error
func (*MockPOWChainInfoFetcher) ETH1Endpoints ¶
func (m *MockPOWChainInfoFetcher) ETH1Endpoints() []string
func (*MockPOWChainInfoFetcher) Eth2GenesisPowchainInfo ¶
func (m *MockPOWChainInfoFetcher) Eth2GenesisPowchainInfo() (uint64, *big.Int)
func (*MockPOWChainInfoFetcher) IsConnectedToETH1 ¶
func (m *MockPOWChainInfoFetcher) IsConnectedToETH1() bool
Click to show internal directories.
Click to hide internal directories.