Documentation
¶
Overview ¶
Package validatorsmock is a generated GoMock package.
Package validatorsmock is a generated GoMock package.
Package validatorsmock is a generated GoMock package.
Package validatorsmock is a generated GoMock package.
Index ¶
- type Manager
- func (m *Manager) Add(subnetID ids.ID, arg1 validators.Set) error
- func (m *Manager) Contains(subnetID ids.ID) bool
- func (m *Manager) Count() int
- func (m *Manager) EXPECT() *ManagerMockRecorder
- func (m *Manager) Get(subnetID ids.ID) (validators.Set, bool)
- func (m *Manager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool)
- func (m *Manager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error)
- func (m *Manager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64
- func (m *Manager) RecalculateStakes(subnetID ids.ID) error
- func (m *Manager) Remove(subnetID ids.ID) error
- func (m *Manager) String() string
- func (m *Manager) TotalWeight(subnetID ids.ID) (uint64, error)
- type ManagerMockRecorder
- func (mr *ManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call
- func (mr *ManagerMockRecorder) Contains(subnetID any) *gomock.Call
- func (mr *ManagerMockRecorder) Count() *gomock.Call
- func (mr *ManagerMockRecorder) Get(subnetID any) *gomock.Call
- func (mr *ManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call
- func (mr *ManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call
- func (mr *ManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call
- func (mr *ManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call
- func (mr *ManagerMockRecorder) Remove(subnetID any) *gomock.Call
- func (mr *ManagerMockRecorder) String() *gomock.Call
- func (mr *ManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call
- type MockConnector
- type MockConnectorMockRecorder
- type MockManager
- func (m *MockManager) Add(subnetID ids.ID, arg1 validators.Set) error
- func (m *MockManager) AddStaker(subnetID ids.ID, nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, ...) error
- func (m *MockManager) AddWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error
- func (m *MockManager) Contains(subnetID ids.ID) bool
- func (m *MockManager) Count() int
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) Get(subnetID ids.ID) (validators.Set, bool)
- func (m *MockManager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool)
- func (m *MockManager) GetMap(subnetID ids.ID) map[ids.NodeID]*validators.Validator
- func (m *MockManager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error)
- func (m *MockManager) GetValidatorIDs(subnetID ids.ID) []ids.NodeID
- func (m *MockManager) GetWeight(subnetID ids.ID, nodeID ids.NodeID) uint64
- func (m *MockManager) NumSubnets() int
- func (m *MockManager) RecalculateStakes(subnetID ids.ID) error
- func (m *MockManager) RegisterSetCallbackListener(subnetID ids.ID, listener validators.SetCallbackListener)
- func (m *MockManager) Remove(subnetID ids.ID) error
- func (m *MockManager) RemoveWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error
- func (m *MockManager) String() string
- func (m *MockManager) TotalWeight(subnetID ids.ID) (uint64, error)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call
- func (mr *MockManagerMockRecorder) AddStaker(subnetID, nodeID, pk, txID, weight any) *gomock.Call
- func (mr *MockManagerMockRecorder) AddWeight(subnetID, nodeID, weight any) *gomock.Call
- func (mr *MockManagerMockRecorder) Contains(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) Count() *gomock.Call
- func (mr *MockManagerMockRecorder) Get(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetMap(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetValidatorIDs(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call
- func (mr *MockManagerMockRecorder) NumSubnets() *gomock.Call
- func (mr *MockManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) RegisterSetCallbackListener(subnetID, listener any) *gomock.Call
- func (mr *MockManagerMockRecorder) Remove(subnetID any) *gomock.Call
- func (mr *MockManagerMockRecorder) RemoveWeight(subnetID, nodeID, weight any) *gomock.Call
- func (mr *MockManagerMockRecorder) String() *gomock.Call
- func (mr *MockManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call
- type MockSet
- func (m *MockSet) Add(nodeID ids.NodeID, pk []byte, weight uint64) error
- func (m *MockSet) AddWeight(nodeID ids.NodeID, weight uint64) error
- func (m *MockSet) Contains(nodeID ids.NodeID) bool
- func (m *MockSet) EXPECT() *MockSetMockRecorder
- func (m *MockSet) Get(nodeID ids.NodeID) (*validators.Validator, bool)
- func (m *MockSet) GetMap() map[ids.NodeID]*validators.Validator
- func (m *MockSet) Len() int
- func (m *MockSet) List() []*validators.Validator
- func (m *MockSet) Remove(nodeID ids.NodeID) error
- func (m *MockSet) RemoveWeight(nodeID ids.NodeID, weight uint64) error
- func (m *MockSet) Sample(seed uint64) (ids.NodeID, error)
- func (m *MockSet) String() string
- func (m *MockSet) Weight() uint64
- type MockSetCallbackListener
- func (m *MockSetCallbackListener) EXPECT() *MockSetCallbackListenerMockRecorder
- func (m *MockSetCallbackListener) OnValidatorAdded(nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64)
- func (m *MockSetCallbackListener) OnValidatorRemoved(nodeID ids.NodeID, weight uint64)
- func (m *MockSetCallbackListener) OnValidatorWeightChanged(nodeID ids.NodeID, oldWeight, newWeight uint64)
- type MockSetCallbackListenerMockRecorder
- func (mr *MockSetCallbackListenerMockRecorder) OnValidatorAdded(nodeID, pk, txID, weight any) *gomock.Call
- func (mr *MockSetCallbackListenerMockRecorder) OnValidatorRemoved(nodeID, weight any) *gomock.Call
- func (mr *MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged(nodeID, oldWeight, newWeight any) *gomock.Call
- type MockSetMockRecorder
- func (mr *MockSetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call
- func (mr *MockSetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call
- func (mr *MockSetMockRecorder) Contains(nodeID any) *gomock.Call
- func (mr *MockSetMockRecorder) Get(nodeID any) *gomock.Call
- func (mr *MockSetMockRecorder) GetMap() *gomock.Call
- func (mr *MockSetMockRecorder) Len() *gomock.Call
- func (mr *MockSetMockRecorder) List() *gomock.Call
- func (mr *MockSetMockRecorder) Remove(nodeID any) *gomock.Call
- func (mr *MockSetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call
- func (mr *MockSetMockRecorder) Sample(seed any) *gomock.Call
- func (mr *MockSetMockRecorder) String() *gomock.Call
- func (mr *MockSetMockRecorder) Weight() *gomock.Call
- type MockState
- func (m *MockState) ApplyValidatorPublicKeyDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, ...) error
- func (m *MockState) ApplyValidatorWeightDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, ...) error
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) GetCurrentHeight(ctx context.Context) (uint64, error)
- func (m *MockState) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error)
- func (m *MockState) GetMinimumHeight(ctx context.Context) (uint64, error)
- func (m *MockState) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error)
- func (m *MockState) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) ApplyValidatorPublicKeyDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call
- func (mr *MockStateMockRecorder) ApplyValidatorWeightDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call
- func (mr *MockStateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call
- func (mr *MockStateMockRecorder) GetCurrentValidatorSet(ctx, subnetID any) *gomock.Call
- func (mr *MockStateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call
- func (mr *MockStateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call
- func (mr *MockStateMockRecorder) GetValidatorSet(ctx, height, subnetID any) *gomock.Call
- type Set
- func (m *Set) Add(nodeID ids.NodeID, pk []byte, weight uint64) error
- func (m *Set) AddWeight(nodeID ids.NodeID, weight uint64) error
- func (m *Set) Contains(nodeID ids.NodeID) bool
- func (m *Set) EXPECT() *SetMockRecorder
- func (m *Set) Get(nodeID ids.NodeID) (*validators.Validator, bool)
- func (m *Set) Len() int
- func (m *Set) List() []*validators.Validator
- func (m *Set) Remove(nodeID ids.NodeID) error
- func (m *Set) RemoveWeight(nodeID ids.NodeID, weight uint64) error
- func (m *Set) Sample(seed uint64) (ids.NodeID, error)
- func (m *Set) String() string
- func (m *Set) Weight() uint64
- type SetMockRecorder
- func (mr *SetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call
- func (mr *SetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call
- func (mr *SetMockRecorder) Contains(nodeID any) *gomock.Call
- func (mr *SetMockRecorder) Get(nodeID any) *gomock.Call
- func (mr *SetMockRecorder) Len() *gomock.Call
- func (mr *SetMockRecorder) List() *gomock.Call
- func (mr *SetMockRecorder) Remove(nodeID any) *gomock.Call
- func (mr *SetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call
- func (mr *SetMockRecorder) Sample(seed any) *gomock.Call
- func (mr *SetMockRecorder) String() *gomock.Call
- func (mr *SetMockRecorder) Weight() *gomock.Call
- type State
- func (m *State) EXPECT() *StateMockRecorder
- func (m *State) GetCurrentHeight(ctx context.Context) (uint64, error)
- func (m *State) GetMinimumHeight(ctx context.Context) (uint64, error)
- func (m *State) GetSubnetID(ctx context.Context, chainID ids.ID) (ids.ID, error)
- func (m *State) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
- type StateMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a mock of Manager interface.
func NewManager ¶
func NewManager(ctrl *gomock.Controller) *Manager
NewManager creates a new mock instance.
func (*Manager) EXPECT ¶
func (m *Manager) EXPECT() *ManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Manager) GetByWeight ¶
GetByWeight mocks base method.
func (*Manager) GetValidator ¶
GetValidator mocks base method.
func (*Manager) RecalculateStakes ¶
RecalculateStakes mocks base method.
type ManagerMockRecorder ¶
type ManagerMockRecorder struct {
// contains filtered or unexported fields
}
ManagerMockRecorder is the mock recorder for Manager.
func (*ManagerMockRecorder) Add ¶
func (mr *ManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call
Add indicates an expected call of Add.
func (*ManagerMockRecorder) Contains ¶
func (mr *ManagerMockRecorder) Contains(subnetID any) *gomock.Call
Contains indicates an expected call of Contains.
func (*ManagerMockRecorder) Count ¶
func (mr *ManagerMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*ManagerMockRecorder) Get ¶
func (mr *ManagerMockRecorder) Get(subnetID any) *gomock.Call
Get indicates an expected call of Get.
func (*ManagerMockRecorder) GetByWeight ¶
func (mr *ManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call
GetByWeight indicates an expected call of GetByWeight.
func (*ManagerMockRecorder) GetValidator ¶
func (mr *ManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*ManagerMockRecorder) GetWeight ¶
func (mr *ManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call
GetWeight indicates an expected call of GetWeight.
func (*ManagerMockRecorder) RecalculateStakes ¶
func (mr *ManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call
RecalculateStakes indicates an expected call of RecalculateStakes.
func (*ManagerMockRecorder) Remove ¶
func (mr *ManagerMockRecorder) Remove(subnetID any) *gomock.Call
Remove indicates an expected call of Remove.
func (*ManagerMockRecorder) String ¶
func (mr *ManagerMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*ManagerMockRecorder) TotalWeight ¶
func (mr *ManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call
TotalWeight indicates an expected call of TotalWeight.
type MockConnector ¶
type MockConnector struct {
// contains filtered or unexported fields
}
MockConnector is a mock of Connector interface.
func NewMockConnector ¶
func NewMockConnector(ctrl *gomock.Controller) *MockConnector
NewMockConnector creates a new mock instance.
func (*MockConnector) Connected ¶
func (m *MockConnector) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error
Connected mocks base method.
func (*MockConnector) Disconnected ¶
Disconnected mocks base method.
func (*MockConnector) EXPECT ¶
func (m *MockConnector) EXPECT() *MockConnectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockConnectorMockRecorder ¶
type MockConnectorMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectorMockRecorder is the mock recorder for MockConnector.
func (*MockConnectorMockRecorder) Connected ¶
func (mr *MockConnectorMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call
Connected indicates an expected call of Connected.
func (*MockConnectorMockRecorder) Disconnected ¶
func (mr *MockConnectorMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call
Disconnected indicates an expected call of Disconnected.
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) Add ¶
func (m *MockManager) Add(subnetID ids.ID, arg1 validators.Set) error
Add mocks base method.
func (*MockManager) AddStaker ¶
func (m *MockManager) AddStaker(subnetID ids.ID, nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64) error
AddStaker mocks base method.
func (*MockManager) Contains ¶
func (m *MockManager) Contains(subnetID ids.ID) bool
Contains mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) Get ¶
func (m *MockManager) Get(subnetID ids.ID) (validators.Set, bool)
Get mocks base method.
func (*MockManager) GetByWeight ¶
func (m *MockManager) GetByWeight(subnetID ids.ID, minWeight uint64) (validators.Set, bool)
GetByWeight mocks base method.
func (*MockManager) GetMap ¶
func (m *MockManager) GetMap(subnetID ids.ID) map[ids.NodeID]*validators.Validator
GetMap mocks base method.
func (*MockManager) GetValidator ¶
func (m *MockManager) GetValidator(subnetID ids.ID, nodeID ids.NodeID) (*validators.Validator, error)
GetValidator mocks base method.
func (*MockManager) GetValidatorIDs ¶
func (m *MockManager) GetValidatorIDs(subnetID ids.ID) []ids.NodeID
GetValidatorIDs mocks base method.
func (*MockManager) NumSubnets ¶
func (m *MockManager) NumSubnets() int
NumSubnets mocks base method.
func (*MockManager) RecalculateStakes ¶
func (m *MockManager) RecalculateStakes(subnetID ids.ID) error
RecalculateStakes mocks base method.
func (*MockManager) RegisterSetCallbackListener ¶
func (m *MockManager) RegisterSetCallbackListener(subnetID ids.ID, listener validators.SetCallbackListener)
RegisterSetCallbackListener mocks base method.
func (*MockManager) Remove ¶
func (m *MockManager) Remove(subnetID ids.ID) error
Remove mocks base method.
func (*MockManager) RemoveWeight ¶
RemoveWeight mocks base method.
func (*MockManager) TotalWeight ¶
func (m *MockManager) TotalWeight(subnetID ids.ID) (uint64, error)
TotalWeight mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) Add ¶
func (mr *MockManagerMockRecorder) Add(subnetID, arg1 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockManagerMockRecorder) AddStaker ¶
func (mr *MockManagerMockRecorder) AddStaker(subnetID, nodeID, pk, txID, weight any) *gomock.Call
AddStaker indicates an expected call of AddStaker.
func (*MockManagerMockRecorder) AddWeight ¶
func (mr *MockManagerMockRecorder) AddWeight(subnetID, nodeID, weight any) *gomock.Call
AddWeight indicates an expected call of AddWeight.
func (*MockManagerMockRecorder) Contains ¶
func (mr *MockManagerMockRecorder) Contains(subnetID any) *gomock.Call
Contains indicates an expected call of Contains.
func (*MockManagerMockRecorder) Count ¶
func (mr *MockManagerMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockManagerMockRecorder) Get ¶
func (mr *MockManagerMockRecorder) Get(subnetID any) *gomock.Call
Get indicates an expected call of Get.
func (*MockManagerMockRecorder) GetByWeight ¶
func (mr *MockManagerMockRecorder) GetByWeight(subnetID, minWeight any) *gomock.Call
GetByWeight indicates an expected call of GetByWeight.
func (*MockManagerMockRecorder) GetMap ¶
func (mr *MockManagerMockRecorder) GetMap(subnetID any) *gomock.Call
GetMap indicates an expected call of GetMap.
func (*MockManagerMockRecorder) GetValidator ¶
func (mr *MockManagerMockRecorder) GetValidator(subnetID, nodeID any) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*MockManagerMockRecorder) GetValidatorIDs ¶
func (mr *MockManagerMockRecorder) GetValidatorIDs(subnetID any) *gomock.Call
GetValidatorIDs indicates an expected call of GetValidatorIDs.
func (*MockManagerMockRecorder) GetWeight ¶
func (mr *MockManagerMockRecorder) GetWeight(subnetID, nodeID any) *gomock.Call
GetWeight indicates an expected call of GetWeight.
func (*MockManagerMockRecorder) NumSubnets ¶
func (mr *MockManagerMockRecorder) NumSubnets() *gomock.Call
NumSubnets indicates an expected call of NumSubnets.
func (*MockManagerMockRecorder) RecalculateStakes ¶
func (mr *MockManagerMockRecorder) RecalculateStakes(subnetID any) *gomock.Call
RecalculateStakes indicates an expected call of RecalculateStakes.
func (*MockManagerMockRecorder) RegisterSetCallbackListener ¶
func (mr *MockManagerMockRecorder) RegisterSetCallbackListener(subnetID, listener any) *gomock.Call
RegisterSetCallbackListener indicates an expected call of RegisterSetCallbackListener.
func (*MockManagerMockRecorder) Remove ¶
func (mr *MockManagerMockRecorder) Remove(subnetID any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockManagerMockRecorder) RemoveWeight ¶
func (mr *MockManagerMockRecorder) RemoveWeight(subnetID, nodeID, weight any) *gomock.Call
RemoveWeight indicates an expected call of RemoveWeight.
func (*MockManagerMockRecorder) String ¶
func (mr *MockManagerMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockManagerMockRecorder) TotalWeight ¶
func (mr *MockManagerMockRecorder) TotalWeight(subnetID any) *gomock.Call
TotalWeight indicates an expected call of TotalWeight.
type MockSet ¶
type MockSet struct {
// contains filtered or unexported fields
}
MockSet is a mock of Set interface.
func NewMockSet ¶
func NewMockSet(ctrl *gomock.Controller) *MockSet
NewMockSet creates a new mock instance.
func (*MockSet) EXPECT ¶
func (m *MockSet) EXPECT() *MockSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSet) GetMap ¶
func (m *MockSet) GetMap() map[ids.NodeID]*validators.Validator
GetMap mocks base method.
func (*MockSet) RemoveWeight ¶
RemoveWeight mocks base method.
type MockSetCallbackListener ¶
type MockSetCallbackListener struct {
// contains filtered or unexported fields
}
MockSetCallbackListener is a mock of SetCallbackListener interface.
func NewMockSetCallbackListener ¶
func NewMockSetCallbackListener(ctrl *gomock.Controller) *MockSetCallbackListener
NewMockSetCallbackListener creates a new mock instance.
func (*MockSetCallbackListener) EXPECT ¶
func (m *MockSetCallbackListener) EXPECT() *MockSetCallbackListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSetCallbackListener) OnValidatorAdded ¶
func (m *MockSetCallbackListener) OnValidatorAdded(nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64)
OnValidatorAdded mocks base method.
func (*MockSetCallbackListener) OnValidatorRemoved ¶
func (m *MockSetCallbackListener) OnValidatorRemoved(nodeID ids.NodeID, weight uint64)
OnValidatorRemoved mocks base method.
func (*MockSetCallbackListener) OnValidatorWeightChanged ¶
func (m *MockSetCallbackListener) OnValidatorWeightChanged(nodeID ids.NodeID, oldWeight, newWeight uint64)
OnValidatorWeightChanged mocks base method.
type MockSetCallbackListenerMockRecorder ¶
type MockSetCallbackListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockSetCallbackListenerMockRecorder is the mock recorder for MockSetCallbackListener.
func (*MockSetCallbackListenerMockRecorder) OnValidatorAdded ¶
func (mr *MockSetCallbackListenerMockRecorder) OnValidatorAdded(nodeID, pk, txID, weight any) *gomock.Call
OnValidatorAdded indicates an expected call of OnValidatorAdded.
func (*MockSetCallbackListenerMockRecorder) OnValidatorRemoved ¶
func (mr *MockSetCallbackListenerMockRecorder) OnValidatorRemoved(nodeID, weight any) *gomock.Call
OnValidatorRemoved indicates an expected call of OnValidatorRemoved.
func (*MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged ¶
func (mr *MockSetCallbackListenerMockRecorder) OnValidatorWeightChanged(nodeID, oldWeight, newWeight any) *gomock.Call
OnValidatorWeightChanged indicates an expected call of OnValidatorWeightChanged.
type MockSetMockRecorder ¶
type MockSetMockRecorder struct {
// contains filtered or unexported fields
}
MockSetMockRecorder is the mock recorder for MockSet.
func (*MockSetMockRecorder) Add ¶
func (mr *MockSetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call
Add indicates an expected call of Add.
func (*MockSetMockRecorder) AddWeight ¶
func (mr *MockSetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call
AddWeight indicates an expected call of AddWeight.
func (*MockSetMockRecorder) Contains ¶
func (mr *MockSetMockRecorder) Contains(nodeID any) *gomock.Call
Contains indicates an expected call of Contains.
func (*MockSetMockRecorder) Get ¶
func (mr *MockSetMockRecorder) Get(nodeID any) *gomock.Call
Get indicates an expected call of Get.
func (*MockSetMockRecorder) GetMap ¶
func (mr *MockSetMockRecorder) GetMap() *gomock.Call
GetMap indicates an expected call of GetMap.
func (*MockSetMockRecorder) Len ¶
func (mr *MockSetMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockSetMockRecorder) List ¶
func (mr *MockSetMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*MockSetMockRecorder) Remove ¶
func (mr *MockSetMockRecorder) Remove(nodeID any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockSetMockRecorder) RemoveWeight ¶
func (mr *MockSetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call
RemoveWeight indicates an expected call of RemoveWeight.
func (*MockSetMockRecorder) Sample ¶
func (mr *MockSetMockRecorder) Sample(seed any) *gomock.Call
Sample indicates an expected call of Sample.
func (*MockSetMockRecorder) String ¶
func (mr *MockSetMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockSetMockRecorder) Weight ¶
func (mr *MockSetMockRecorder) Weight() *gomock.Call
Weight indicates an expected call of Weight.
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface.
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance.
func (*MockState) ApplyValidatorPublicKeyDiffs ¶
func (m *MockState) ApplyValidatorPublicKeyDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, startHeight, endHeight uint64, subnetID ids.ID) error
ApplyValidatorPublicKeyDiffs mocks base method.
func (*MockState) ApplyValidatorWeightDiffs ¶
func (m *MockState) ApplyValidatorWeightDiffs(ctx context.Context, arg1 map[ids.NodeID]*validators.GetValidatorOutput, startHeight, endHeight uint64, subnetID ids.ID) error
ApplyValidatorWeightDiffs mocks base method.
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockState) GetCurrentHeight ¶
GetCurrentHeight mocks base method.
func (*MockState) GetCurrentValidatorSet ¶
func (m *MockState) GetCurrentValidatorSet(ctx context.Context, subnetID ids.ID) (map[ids.ID]*validators.GetCurrentValidatorOutput, uint64, error)
GetCurrentValidatorSet mocks base method.
func (*MockState) GetMinimumHeight ¶
GetMinimumHeight mocks base method.
func (*MockState) GetSubnetID ¶
GetSubnetID mocks base method.
func (*MockState) GetValidatorSet ¶
func (m *MockState) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
GetValidatorSet mocks base method.
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState.
func (*MockStateMockRecorder) ApplyValidatorPublicKeyDiffs ¶
func (mr *MockStateMockRecorder) ApplyValidatorPublicKeyDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call
ApplyValidatorPublicKeyDiffs indicates an expected call of ApplyValidatorPublicKeyDiffs.
func (*MockStateMockRecorder) ApplyValidatorWeightDiffs ¶
func (mr *MockStateMockRecorder) ApplyValidatorWeightDiffs(ctx, arg1, startHeight, endHeight, subnetID any) *gomock.Call
ApplyValidatorWeightDiffs indicates an expected call of ApplyValidatorWeightDiffs.
func (*MockStateMockRecorder) GetCurrentHeight ¶
func (mr *MockStateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call
GetCurrentHeight indicates an expected call of GetCurrentHeight.
func (*MockStateMockRecorder) GetCurrentValidatorSet ¶
func (mr *MockStateMockRecorder) GetCurrentValidatorSet(ctx, subnetID any) *gomock.Call
GetCurrentValidatorSet indicates an expected call of GetCurrentValidatorSet.
func (*MockStateMockRecorder) GetMinimumHeight ¶
func (mr *MockStateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call
GetMinimumHeight indicates an expected call of GetMinimumHeight.
func (*MockStateMockRecorder) GetSubnetID ¶
func (mr *MockStateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call
GetSubnetID indicates an expected call of GetSubnetID.
func (*MockStateMockRecorder) GetValidatorSet ¶
func (mr *MockStateMockRecorder) GetValidatorSet(ctx, height, subnetID any) *gomock.Call
GetValidatorSet indicates an expected call of GetValidatorSet.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a mock of Set interface.
func (*Set) EXPECT ¶
func (m *Set) EXPECT() *SetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Set) RemoveWeight ¶
RemoveWeight mocks base method.
type SetMockRecorder ¶
type SetMockRecorder struct {
// contains filtered or unexported fields
}
SetMockRecorder is the mock recorder for Set.
func (*SetMockRecorder) Add ¶
func (mr *SetMockRecorder) Add(nodeID, pk, weight any) *gomock.Call
Add indicates an expected call of Add.
func (*SetMockRecorder) AddWeight ¶
func (mr *SetMockRecorder) AddWeight(nodeID, weight any) *gomock.Call
AddWeight indicates an expected call of AddWeight.
func (*SetMockRecorder) Contains ¶
func (mr *SetMockRecorder) Contains(nodeID any) *gomock.Call
Contains indicates an expected call of Contains.
func (*SetMockRecorder) Get ¶
func (mr *SetMockRecorder) Get(nodeID any) *gomock.Call
Get indicates an expected call of Get.
func (*SetMockRecorder) Len ¶
func (mr *SetMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*SetMockRecorder) List ¶
func (mr *SetMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*SetMockRecorder) Remove ¶
func (mr *SetMockRecorder) Remove(nodeID any) *gomock.Call
Remove indicates an expected call of Remove.
func (*SetMockRecorder) RemoveWeight ¶
func (mr *SetMockRecorder) RemoveWeight(nodeID, weight any) *gomock.Call
RemoveWeight indicates an expected call of RemoveWeight.
func (*SetMockRecorder) Sample ¶
func (mr *SetMockRecorder) Sample(seed any) *gomock.Call
Sample indicates an expected call of Sample.
func (*SetMockRecorder) String ¶
func (mr *SetMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*SetMockRecorder) Weight ¶
func (mr *SetMockRecorder) Weight() *gomock.Call
Weight indicates an expected call of Weight.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is a mock of State interface.
func (*State) EXPECT ¶
func (m *State) EXPECT() *StateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*State) GetCurrentHeight ¶
GetCurrentHeight mocks base method.
func (*State) GetMinimumHeight ¶
GetMinimumHeight mocks base method.
func (*State) GetSubnetID ¶
GetSubnetID mocks base method.
func (*State) GetValidatorSet ¶
func (m *State) GetValidatorSet(ctx context.Context, height uint64, subnetID ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error)
GetValidatorSet mocks base method.
type StateMockRecorder ¶
type StateMockRecorder struct {
// contains filtered or unexported fields
}
StateMockRecorder is the mock recorder for State.
func (*StateMockRecorder) GetCurrentHeight ¶
func (mr *StateMockRecorder) GetCurrentHeight(ctx any) *gomock.Call
GetCurrentHeight indicates an expected call of GetCurrentHeight.
func (*StateMockRecorder) GetMinimumHeight ¶
func (mr *StateMockRecorder) GetMinimumHeight(ctx any) *gomock.Call
GetMinimumHeight indicates an expected call of GetMinimumHeight.
func (*StateMockRecorder) GetSubnetID ¶
func (mr *StateMockRecorder) GetSubnetID(ctx, chainID any) *gomock.Call
GetSubnetID indicates an expected call of GetSubnetID.
func (*StateMockRecorder) GetValidatorSet ¶
func (mr *StateMockRecorder) GetValidatorSet(ctx, height, subnetID any) *gomock.Call
GetValidatorSet indicates an expected call of GetValidatorSet.