Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockActivityStreak
- type MockActivityStreakMockRecorder
- type MockDelegation
- type MockDelegationMockRecorder
- type MockMarketActivityTracker
- func (m *MockMarketActivityTracker) CalculateMetricForIndividuals(arg0 *vega.DispatchStrategy) []*types.PartyContributionScore
- func (m *MockMarketActivityTracker) CalculateMetricForTeams(arg0 *vega.DispatchStrategy) ([]*types.PartyContributionScore, map[string][]*types.PartyContributionScore)
- func (m *MockMarketActivityTracker) EXPECT() *MockMarketActivityTrackerMockRecorder
- func (m *MockMarketActivityTracker) GetAllMarketIDs() []string
- func (m *MockMarketActivityTracker) GetLastEpochTakeFees(arg0 string, arg1 []string) map[string]*num.Uint
- func (m *MockMarketActivityTracker) GetProposer(arg0 string) string
- type MockMarketActivityTrackerMockRecorder
- func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals(arg0 interface{}) *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams(arg0 interface{}) *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) GetAllMarketIDs() *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) GetLastEpochTakeFees(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMarketActivityTrackerMockRecorder) GetProposer(arg0 interface{}) *gomock.Call
- type MockTeams
- type MockTeamsMockRecorder
- type MockTimeService
- type MockTimeServiceMockRecorder
- type MockTopology
- func (m *MockTopology) EXPECT() *MockTopologyMockRecorder
- func (m *MockTopology) GetRewardsScores(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, ...) (*types.ScoreData, *types.ScoreData)
- func (m *MockTopology) RecalcValidatorSet(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, ...) []*types.PartyContributionScore
- type MockTopologyMockRecorder
- type MockTransfers
- type MockTransfersMockRecorder
- type MockVesting
- type MockVestingMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActivityStreak ¶ added in v0.73.0
type MockActivityStreak struct {
// contains filtered or unexported fields
}
MockActivityStreak is a mock of ActivityStreak interface.
func NewMockActivityStreak ¶ added in v0.73.0
func NewMockActivityStreak(ctrl *gomock.Controller) *MockActivityStreak
NewMockActivityStreak creates a new mock instance.
func (*MockActivityStreak) EXPECT ¶ added in v0.73.0
func (m *MockActivityStreak) EXPECT() *MockActivityStreakMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActivityStreak) GetRewardsDistributionMultiplier ¶ added in v0.73.0
func (m *MockActivityStreak) GetRewardsDistributionMultiplier(arg0 string) decimal.Decimal
GetRewardsDistributionMultiplier mocks base method.
type MockActivityStreakMockRecorder ¶ added in v0.73.0
type MockActivityStreakMockRecorder struct {
// contains filtered or unexported fields
}
MockActivityStreakMockRecorder is the mock recorder for MockActivityStreak.
func (*MockActivityStreakMockRecorder) GetRewardsDistributionMultiplier ¶ added in v0.73.0
func (mr *MockActivityStreakMockRecorder) GetRewardsDistributionMultiplier(arg0 interface{}) *gomock.Call
GetRewardsDistributionMultiplier indicates an expected call of GetRewardsDistributionMultiplier.
type MockDelegation ¶
type MockDelegation struct {
// contains filtered or unexported fields
}
MockDelegation is a mock of Delegation interface.
func NewMockDelegation ¶
func NewMockDelegation(ctrl *gomock.Controller) *MockDelegation
NewMockDelegation creates a new mock instance.
func (*MockDelegation) EXPECT ¶
func (m *MockDelegation) EXPECT() *MockDelegationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDelegation) GetValidatorData ¶
func (m *MockDelegation) GetValidatorData() []*types.ValidatorData
GetValidatorData mocks base method.
func (*MockDelegation) ProcessEpochDelegations ¶
func (m *MockDelegation) ProcessEpochDelegations(arg0 context.Context, arg1 types.Epoch) []*types.ValidatorData
ProcessEpochDelegations mocks base method.
type MockDelegationMockRecorder ¶
type MockDelegationMockRecorder struct {
// contains filtered or unexported fields
}
MockDelegationMockRecorder is the mock recorder for MockDelegation.
func (*MockDelegationMockRecorder) GetValidatorData ¶
func (mr *MockDelegationMockRecorder) GetValidatorData() *gomock.Call
GetValidatorData indicates an expected call of GetValidatorData.
func (*MockDelegationMockRecorder) ProcessEpochDelegations ¶
func (mr *MockDelegationMockRecorder) ProcessEpochDelegations(arg0, arg1 interface{}) *gomock.Call
ProcessEpochDelegations indicates an expected call of ProcessEpochDelegations.
type MockMarketActivityTracker ¶
type MockMarketActivityTracker struct {
// contains filtered or unexported fields
}
MockMarketActivityTracker is a mock of MarketActivityTracker interface.
func NewMockMarketActivityTracker ¶
func NewMockMarketActivityTracker(ctrl *gomock.Controller) *MockMarketActivityTracker
NewMockMarketActivityTracker creates a new mock instance.
func (*MockMarketActivityTracker) CalculateMetricForIndividuals ¶ added in v0.73.0
func (m *MockMarketActivityTracker) CalculateMetricForIndividuals(arg0 *vega.DispatchStrategy) []*types.PartyContributionScore
CalculateMetricForIndividuals mocks base method.
func (*MockMarketActivityTracker) CalculateMetricForTeams ¶ added in v0.73.0
func (m *MockMarketActivityTracker) CalculateMetricForTeams(arg0 *vega.DispatchStrategy) ([]*types.PartyContributionScore, map[string][]*types.PartyContributionScore)
CalculateMetricForTeams mocks base method.
func (*MockMarketActivityTracker) EXPECT ¶
func (m *MockMarketActivityTracker) EXPECT() *MockMarketActivityTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarketActivityTracker) GetAllMarketIDs ¶
func (m *MockMarketActivityTracker) GetAllMarketIDs() []string
GetAllMarketIDs mocks base method.
func (*MockMarketActivityTracker) GetLastEpochTakeFees ¶ added in v0.75.0
func (m *MockMarketActivityTracker) GetLastEpochTakeFees(arg0 string, arg1 []string) map[string]*num.Uint
GetLastEpochTakeFees mocks base method.
func (*MockMarketActivityTracker) GetProposer ¶ added in v0.55.0
func (m *MockMarketActivityTracker) GetProposer(arg0 string) string
GetProposer mocks base method.
type MockMarketActivityTrackerMockRecorder ¶
type MockMarketActivityTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockMarketActivityTrackerMockRecorder is the mock recorder for MockMarketActivityTracker.
func (*MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals ¶ added in v0.73.0
func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals(arg0 interface{}) *gomock.Call
CalculateMetricForIndividuals indicates an expected call of CalculateMetricForIndividuals.
func (*MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams ¶ added in v0.73.0
func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams(arg0 interface{}) *gomock.Call
CalculateMetricForTeams indicates an expected call of CalculateMetricForTeams.
func (*MockMarketActivityTrackerMockRecorder) GetAllMarketIDs ¶
func (mr *MockMarketActivityTrackerMockRecorder) GetAllMarketIDs() *gomock.Call
GetAllMarketIDs indicates an expected call of GetAllMarketIDs.
func (*MockMarketActivityTrackerMockRecorder) GetLastEpochTakeFees ¶ added in v0.75.0
func (mr *MockMarketActivityTrackerMockRecorder) GetLastEpochTakeFees(arg0, arg1 interface{}) *gomock.Call
GetLastEpochTakeFees indicates an expected call of GetLastEpochTakeFees.
func (*MockMarketActivityTrackerMockRecorder) GetProposer ¶ added in v0.55.0
func (mr *MockMarketActivityTrackerMockRecorder) GetProposer(arg0 interface{}) *gomock.Call
GetProposer indicates an expected call of GetProposer.
type MockTeams ¶ added in v0.73.0
type MockTeams struct {
// contains filtered or unexported fields
}
MockTeams is a mock of Teams interface.
func NewMockTeams ¶ added in v0.73.0
func NewMockTeams(ctrl *gomock.Controller) *MockTeams
NewMockTeams creates a new mock instance.
func (*MockTeams) EXPECT ¶ added in v0.73.0
func (m *MockTeams) EXPECT() *MockTeamsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTeams) GetAllPartiesInTeams ¶ added in v0.73.0
GetAllPartiesInTeams mocks base method.
type MockTeamsMockRecorder ¶ added in v0.73.0
type MockTeamsMockRecorder struct {
// contains filtered or unexported fields
}
MockTeamsMockRecorder is the mock recorder for MockTeams.
func (*MockTeamsMockRecorder) GetAllPartiesInTeams ¶ added in v0.73.0
func (mr *MockTeamsMockRecorder) GetAllPartiesInTeams() *gomock.Call
GetAllPartiesInTeams indicates an expected call of GetAllPartiesInTeams.
func (*MockTeamsMockRecorder) GetTeamMembers ¶ added in v0.73.0
func (mr *MockTeamsMockRecorder) GetTeamMembers(arg0 interface{}) *gomock.Call
GetTeamMembers indicates an expected call of GetTeamMembers.
type MockTimeService ¶
type MockTimeService struct {
// contains filtered or unexported fields
}
MockTimeService is a mock of TimeService interface.
func NewMockTimeService ¶
func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService
NewMockTimeService creates a new mock instance.
func (*MockTimeService) EXPECT ¶
func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTimeService) GetTimeNow ¶
func (m *MockTimeService) GetTimeNow() time.Time
GetTimeNow mocks base method.
type MockTimeServiceMockRecorder ¶
type MockTimeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockTimeServiceMockRecorder is the mock recorder for MockTimeService.
func (*MockTimeServiceMockRecorder) GetTimeNow ¶
func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call
GetTimeNow indicates an expected call of GetTimeNow.
type MockTopology ¶
type MockTopology struct {
// contains filtered or unexported fields
}
MockTopology is a mock of Topology interface.
func NewMockTopology ¶
func NewMockTopology(ctrl *gomock.Controller) *MockTopology
NewMockTopology creates a new mock instance.
func (*MockTopology) EXPECT ¶
func (m *MockTopology) EXPECT() *MockTopologyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTopology) GetRewardsScores ¶
func (m *MockTopology) GetRewardsScores(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, arg3 types.StakeScoreParams) (*types.ScoreData, *types.ScoreData)
GetRewardsScores mocks base method.
func (*MockTopology) RecalcValidatorSet ¶
func (m *MockTopology) RecalcValidatorSet(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, arg3 types.StakeScoreParams) []*types.PartyContributionScore
RecalcValidatorSet mocks base method.
type MockTopologyMockRecorder ¶
type MockTopologyMockRecorder struct {
// contains filtered or unexported fields
}
MockTopologyMockRecorder is the mock recorder for MockTopology.
func (*MockTopologyMockRecorder) GetRewardsScores ¶
func (mr *MockTopologyMockRecorder) GetRewardsScores(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetRewardsScores indicates an expected call of GetRewardsScores.
func (*MockTopologyMockRecorder) RecalcValidatorSet ¶
func (mr *MockTopologyMockRecorder) RecalcValidatorSet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RecalcValidatorSet indicates an expected call of RecalcValidatorSet.
type MockTransfers ¶ added in v0.73.0
type MockTransfers struct {
// contains filtered or unexported fields
}
MockTransfers is a mock of Transfers interface.
func NewMockTransfers ¶ added in v0.73.0
func NewMockTransfers(ctrl *gomock.Controller) *MockTransfers
NewMockTransfers creates a new mock instance.
func (*MockTransfers) EXPECT ¶ added in v0.73.0
func (m *MockTransfers) EXPECT() *MockTransfersMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransfers) GetDispatchStrategy ¶ added in v0.73.0
func (m *MockTransfers) GetDispatchStrategy(arg0 string) *vega.DispatchStrategy
GetDispatchStrategy mocks base method.
type MockTransfersMockRecorder ¶ added in v0.73.0
type MockTransfersMockRecorder struct {
// contains filtered or unexported fields
}
MockTransfersMockRecorder is the mock recorder for MockTransfers.
func (*MockTransfersMockRecorder) GetDispatchStrategy ¶ added in v0.73.0
func (mr *MockTransfersMockRecorder) GetDispatchStrategy(arg0 interface{}) *gomock.Call
GetDispatchStrategy indicates an expected call of GetDispatchStrategy.
type MockVesting ¶ added in v0.73.0
type MockVesting struct {
// contains filtered or unexported fields
}
MockVesting is a mock of Vesting interface.
func NewMockVesting ¶ added in v0.73.0
func NewMockVesting(ctrl *gomock.Controller) *MockVesting
NewMockVesting creates a new mock instance.
func (*MockVesting) AddReward ¶ added in v0.73.0
func (m *MockVesting) AddReward(arg0, arg1 string, arg2 *num.Uint, arg3 uint64)
AddReward mocks base method.
func (*MockVesting) EXPECT ¶ added in v0.73.0
func (m *MockVesting) EXPECT() *MockVestingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVesting) GetRewardBonusMultiplier ¶ added in v0.73.0
GetRewardBonusMultiplier mocks base method.
type MockVestingMockRecorder ¶ added in v0.73.0
type MockVestingMockRecorder struct {
// contains filtered or unexported fields
}
MockVestingMockRecorder is the mock recorder for MockVesting.
func (*MockVestingMockRecorder) AddReward ¶ added in v0.73.0
func (mr *MockVestingMockRecorder) AddReward(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AddReward indicates an expected call of AddReward.
func (*MockVestingMockRecorder) GetRewardBonusMultiplier ¶ added in v0.73.0
func (mr *MockVestingMockRecorder) GetRewardBonusMultiplier(arg0 interface{}) *gomock.Call
GetRewardBonusMultiplier indicates an expected call of GetRewardBonusMultiplier.