test

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

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 (*MockExecutionLayer) ForEachOdaoNode

func (*MockExecutionLayer) GetRPInfo

func (*MockExecutionLayer) REthAddress

func (m *MockExecutionLayer) REthAddress() *common.Address

Jump to

Keyboard shortcuts

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