Documentation ¶
Index ¶
- type MockConsensusLayer
- type MockExecutionLayer
- func (m *MockExecutionLayer) ForEachNode(c executionlayer.ForEachNodeClosure) error
- func (m *MockExecutionLayer) ForEachOdaoNode(c executionlayer.ForEachNodeClosure) error
- func (m *MockExecutionLayer) GetRPInfo(k rptypes.ValidatorPubkey) (*executionlayer.RPInfo, error)
- func (m *MockExecutionLayer) REthAddress() *common.Address
- func (m *MockExecutionLayer) ValidateEIP1271(ctx context.Context, dataHash common.Hash, signature []byte, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsensusLayer ¶
type MockConsensusLayer struct { Indices map[rptypes.ValidatorPubkey]string // contains filtered or unexported fields }
func NewMockConsensusLayer ¶
func NewMockConsensusLayer(numValidators int, seed string) *MockConsensusLayer
func (*MockConsensusLayer) AddExecutionValidators ¶
func (m *MockConsensusLayer) AddExecutionValidators(e *MockExecutionLayer, seed string)
func (*MockConsensusLayer) GetValidatorInfo ¶
func (m *MockConsensusLayer) GetValidatorInfo(idx []string) (map[string]*consensuslayer.ValidatorInfo, error)
func (*MockConsensusLayer) GetValidators ¶
func (m *MockConsensusLayer) GetValidators() ([]*apiv1.Validator, error)
type MockExecutionLayer ¶
type MockExecutionLayer struct { VMap map[rptypes.ValidatorPubkey]*executionlayer.RPInfo REth common.Address // contains filtered or unexported fields }
func NewMockExecutionLayer ¶
func NewMockExecutionLayer(numNodes int, numOdaoNodes int, numValidators int, seed string) *MockExecutionLayer
func (*MockExecutionLayer) ForEachNode ¶
func (m *MockExecutionLayer) ForEachNode(c executionlayer.ForEachNodeClosure) error
func (*MockExecutionLayer) ForEachOdaoNode ¶
func (m *MockExecutionLayer) ForEachOdaoNode(c executionlayer.ForEachNodeClosure) error
func (*MockExecutionLayer) GetRPInfo ¶
func (m *MockExecutionLayer) GetRPInfo(k rptypes.ValidatorPubkey) (*executionlayer.RPInfo, error)
func (*MockExecutionLayer) REthAddress ¶
func (m *MockExecutionLayer) REthAddress() *common.Address
Click to show internal directories.
Click to hide internal directories.