code.vegaprotocol.io/vega@v0.79.0/core/rewards/mocks/mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/rewards (interfaces: MarketActivityTracker,Delegation,TimeService,Topology,Transfers,Teams,Vesting,ActivityStreak)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	types "code.vegaprotocol.io/vega/core/types"
    13  	vesting "code.vegaprotocol.io/vega/core/vesting"
    14  	num "code.vegaprotocol.io/vega/libs/num"
    15  	vega "code.vegaprotocol.io/vega/protos/vega"
    16  	gomock "github.com/golang/mock/gomock"
    17  	decimal "github.com/shopspring/decimal"
    18  )
    19  
    20  // MockMarketActivityTracker is a mock of MarketActivityTracker interface.
    21  type MockMarketActivityTracker struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockMarketActivityTrackerMockRecorder
    24  }
    25  
    26  // MockMarketActivityTrackerMockRecorder is the mock recorder for MockMarketActivityTracker.
    27  type MockMarketActivityTrackerMockRecorder struct {
    28  	mock *MockMarketActivityTracker
    29  }
    30  
    31  // NewMockMarketActivityTracker creates a new mock instance.
    32  func NewMockMarketActivityTracker(ctrl *gomock.Controller) *MockMarketActivityTracker {
    33  	mock := &MockMarketActivityTracker{ctrl: ctrl}
    34  	mock.recorder = &MockMarketActivityTrackerMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockMarketActivityTracker) EXPECT() *MockMarketActivityTrackerMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // CalculateMetricForIndividuals mocks base method.
    44  func (m *MockMarketActivityTracker) CalculateMetricForIndividuals(arg0 context.Context, arg1 *vega.DispatchStrategy) []*types.PartyContributionScore {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "CalculateMetricForIndividuals", arg0, arg1)
    47  	ret0, _ := ret[0].([]*types.PartyContributionScore)
    48  	return ret0
    49  }
    50  
    51  // CalculateMetricForIndividuals indicates an expected call of CalculateMetricForIndividuals.
    52  func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForIndividuals(arg0, arg1 interface{}) *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalculateMetricForIndividuals", reflect.TypeOf((*MockMarketActivityTracker)(nil).CalculateMetricForIndividuals), arg0, arg1)
    55  }
    56  
    57  // CalculateMetricForTeams mocks base method.
    58  func (m *MockMarketActivityTracker) CalculateMetricForTeams(arg0 context.Context, arg1 *vega.DispatchStrategy) ([]*types.PartyContributionScore, map[string][]*types.PartyContributionScore) {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "CalculateMetricForTeams", arg0, arg1)
    61  	ret0, _ := ret[0].([]*types.PartyContributionScore)
    62  	ret1, _ := ret[1].(map[string][]*types.PartyContributionScore)
    63  	return ret0, ret1
    64  }
    65  
    66  // CalculateMetricForTeams indicates an expected call of CalculateMetricForTeams.
    67  func (mr *MockMarketActivityTrackerMockRecorder) CalculateMetricForTeams(arg0, arg1 interface{}) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalculateMetricForTeams", reflect.TypeOf((*MockMarketActivityTracker)(nil).CalculateMetricForTeams), arg0, arg1)
    70  }
    71  
    72  // GetAllMarketIDs mocks base method.
    73  func (m *MockMarketActivityTracker) GetAllMarketIDs() []string {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "GetAllMarketIDs")
    76  	ret0, _ := ret[0].([]string)
    77  	return ret0
    78  }
    79  
    80  // GetAllMarketIDs indicates an expected call of GetAllMarketIDs.
    81  func (mr *MockMarketActivityTrackerMockRecorder) GetAllMarketIDs() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllMarketIDs", reflect.TypeOf((*MockMarketActivityTracker)(nil).GetAllMarketIDs))
    84  }
    85  
    86  // GetLastEpochTakeFees mocks base method.
    87  func (m *MockMarketActivityTracker) GetLastEpochTakeFees(arg0 string, arg1 []string, arg2 int32) map[string]*num.Uint {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "GetLastEpochTakeFees", arg0, arg1, arg2)
    90  	ret0, _ := ret[0].(map[string]*num.Uint)
    91  	return ret0
    92  }
    93  
    94  // GetLastEpochTakeFees indicates an expected call of GetLastEpochTakeFees.
    95  func (mr *MockMarketActivityTrackerMockRecorder) GetLastEpochTakeFees(arg0, arg1, arg2 interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastEpochTakeFees", reflect.TypeOf((*MockMarketActivityTracker)(nil).GetLastEpochTakeFees), arg0, arg1, arg2)
    98  }
    99  
   100  // GetProposer mocks base method.
   101  func (m *MockMarketActivityTracker) GetProposer(arg0 string) string {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "GetProposer", arg0)
   104  	ret0, _ := ret[0].(string)
   105  	return ret0
   106  }
   107  
   108  // GetProposer indicates an expected call of GetProposer.
   109  func (mr *MockMarketActivityTrackerMockRecorder) GetProposer(arg0 interface{}) *gomock.Call {
   110  	mr.mock.ctrl.T.Helper()
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProposer", reflect.TypeOf((*MockMarketActivityTracker)(nil).GetProposer), arg0)
   112  }
   113  
   114  // MockDelegation is a mock of Delegation interface.
   115  type MockDelegation struct {
   116  	ctrl     *gomock.Controller
   117  	recorder *MockDelegationMockRecorder
   118  }
   119  
   120  // MockDelegationMockRecorder is the mock recorder for MockDelegation.
   121  type MockDelegationMockRecorder struct {
   122  	mock *MockDelegation
   123  }
   124  
   125  // NewMockDelegation creates a new mock instance.
   126  func NewMockDelegation(ctrl *gomock.Controller) *MockDelegation {
   127  	mock := &MockDelegation{ctrl: ctrl}
   128  	mock.recorder = &MockDelegationMockRecorder{mock}
   129  	return mock
   130  }
   131  
   132  // EXPECT returns an object that allows the caller to indicate expected use.
   133  func (m *MockDelegation) EXPECT() *MockDelegationMockRecorder {
   134  	return m.recorder
   135  }
   136  
   137  // GetValidatorData mocks base method.
   138  func (m *MockDelegation) GetValidatorData() []*types.ValidatorData {
   139  	m.ctrl.T.Helper()
   140  	ret := m.ctrl.Call(m, "GetValidatorData")
   141  	ret0, _ := ret[0].([]*types.ValidatorData)
   142  	return ret0
   143  }
   144  
   145  // GetValidatorData indicates an expected call of GetValidatorData.
   146  func (mr *MockDelegationMockRecorder) GetValidatorData() *gomock.Call {
   147  	mr.mock.ctrl.T.Helper()
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidatorData", reflect.TypeOf((*MockDelegation)(nil).GetValidatorData))
   149  }
   150  
   151  // ProcessEpochDelegations mocks base method.
   152  func (m *MockDelegation) ProcessEpochDelegations(arg0 context.Context, arg1 types.Epoch) []*types.ValidatorData {
   153  	m.ctrl.T.Helper()
   154  	ret := m.ctrl.Call(m, "ProcessEpochDelegations", arg0, arg1)
   155  	ret0, _ := ret[0].([]*types.ValidatorData)
   156  	return ret0
   157  }
   158  
   159  // ProcessEpochDelegations indicates an expected call of ProcessEpochDelegations.
   160  func (mr *MockDelegationMockRecorder) ProcessEpochDelegations(arg0, arg1 interface{}) *gomock.Call {
   161  	mr.mock.ctrl.T.Helper()
   162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessEpochDelegations", reflect.TypeOf((*MockDelegation)(nil).ProcessEpochDelegations), arg0, arg1)
   163  }
   164  
   165  // MockTimeService is a mock of TimeService interface.
   166  type MockTimeService struct {
   167  	ctrl     *gomock.Controller
   168  	recorder *MockTimeServiceMockRecorder
   169  }
   170  
   171  // MockTimeServiceMockRecorder is the mock recorder for MockTimeService.
   172  type MockTimeServiceMockRecorder struct {
   173  	mock *MockTimeService
   174  }
   175  
   176  // NewMockTimeService creates a new mock instance.
   177  func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService {
   178  	mock := &MockTimeService{ctrl: ctrl}
   179  	mock.recorder = &MockTimeServiceMockRecorder{mock}
   180  	return mock
   181  }
   182  
   183  // EXPECT returns an object that allows the caller to indicate expected use.
   184  func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder {
   185  	return m.recorder
   186  }
   187  
   188  // GetTimeNow mocks base method.
   189  func (m *MockTimeService) GetTimeNow() time.Time {
   190  	m.ctrl.T.Helper()
   191  	ret := m.ctrl.Call(m, "GetTimeNow")
   192  	ret0, _ := ret[0].(time.Time)
   193  	return ret0
   194  }
   195  
   196  // GetTimeNow indicates an expected call of GetTimeNow.
   197  func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call {
   198  	mr.mock.ctrl.T.Helper()
   199  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow))
   200  }
   201  
   202  // MockTopology is a mock of Topology interface.
   203  type MockTopology struct {
   204  	ctrl     *gomock.Controller
   205  	recorder *MockTopologyMockRecorder
   206  }
   207  
   208  // MockTopologyMockRecorder is the mock recorder for MockTopology.
   209  type MockTopologyMockRecorder struct {
   210  	mock *MockTopology
   211  }
   212  
   213  // NewMockTopology creates a new mock instance.
   214  func NewMockTopology(ctrl *gomock.Controller) *MockTopology {
   215  	mock := &MockTopology{ctrl: ctrl}
   216  	mock.recorder = &MockTopologyMockRecorder{mock}
   217  	return mock
   218  }
   219  
   220  // EXPECT returns an object that allows the caller to indicate expected use.
   221  func (m *MockTopology) EXPECT() *MockTopologyMockRecorder {
   222  	return m.recorder
   223  }
   224  
   225  // GetRewardsScores mocks base method.
   226  func (m *MockTopology) GetRewardsScores(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, arg3 types.StakeScoreParams) (*types.ScoreData, *types.ScoreData) {
   227  	m.ctrl.T.Helper()
   228  	ret := m.ctrl.Call(m, "GetRewardsScores", arg0, arg1, arg2, arg3)
   229  	ret0, _ := ret[0].(*types.ScoreData)
   230  	ret1, _ := ret[1].(*types.ScoreData)
   231  	return ret0, ret1
   232  }
   233  
   234  // GetRewardsScores indicates an expected call of GetRewardsScores.
   235  func (mr *MockTopologyMockRecorder) GetRewardsScores(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   236  	mr.mock.ctrl.T.Helper()
   237  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRewardsScores", reflect.TypeOf((*MockTopology)(nil).GetRewardsScores), arg0, arg1, arg2, arg3)
   238  }
   239  
   240  // RecalcValidatorSet mocks base method.
   241  func (m *MockTopology) RecalcValidatorSet(arg0 context.Context, arg1 string, arg2 []*types.ValidatorData, arg3 types.StakeScoreParams) []*types.PartyContributionScore {
   242  	m.ctrl.T.Helper()
   243  	ret := m.ctrl.Call(m, "RecalcValidatorSet", arg0, arg1, arg2, arg3)
   244  	ret0, _ := ret[0].([]*types.PartyContributionScore)
   245  	return ret0
   246  }
   247  
   248  // RecalcValidatorSet indicates an expected call of RecalcValidatorSet.
   249  func (mr *MockTopologyMockRecorder) RecalcValidatorSet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   250  	mr.mock.ctrl.T.Helper()
   251  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecalcValidatorSet", reflect.TypeOf((*MockTopology)(nil).RecalcValidatorSet), arg0, arg1, arg2, arg3)
   252  }
   253  
   254  // MockTransfers is a mock of Transfers interface.
   255  type MockTransfers struct {
   256  	ctrl     *gomock.Controller
   257  	recorder *MockTransfersMockRecorder
   258  }
   259  
   260  // MockTransfersMockRecorder is the mock recorder for MockTransfers.
   261  type MockTransfersMockRecorder struct {
   262  	mock *MockTransfers
   263  }
   264  
   265  // NewMockTransfers creates a new mock instance.
   266  func NewMockTransfers(ctrl *gomock.Controller) *MockTransfers {
   267  	mock := &MockTransfers{ctrl: ctrl}
   268  	mock.recorder = &MockTransfersMockRecorder{mock}
   269  	return mock
   270  }
   271  
   272  // EXPECT returns an object that allows the caller to indicate expected use.
   273  func (m *MockTransfers) EXPECT() *MockTransfersMockRecorder {
   274  	return m.recorder
   275  }
   276  
   277  // GetDispatchStrategy mocks base method.
   278  func (m *MockTransfers) GetDispatchStrategy(arg0 string) *vega.DispatchStrategy {
   279  	m.ctrl.T.Helper()
   280  	ret := m.ctrl.Call(m, "GetDispatchStrategy", arg0)
   281  	ret0, _ := ret[0].(*vega.DispatchStrategy)
   282  	return ret0
   283  }
   284  
   285  // GetDispatchStrategy indicates an expected call of GetDispatchStrategy.
   286  func (mr *MockTransfersMockRecorder) GetDispatchStrategy(arg0 interface{}) *gomock.Call {
   287  	mr.mock.ctrl.T.Helper()
   288  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDispatchStrategy", reflect.TypeOf((*MockTransfers)(nil).GetDispatchStrategy), arg0)
   289  }
   290  
   291  // MockTeams is a mock of Teams interface.
   292  type MockTeams struct {
   293  	ctrl     *gomock.Controller
   294  	recorder *MockTeamsMockRecorder
   295  }
   296  
   297  // MockTeamsMockRecorder is the mock recorder for MockTeams.
   298  type MockTeamsMockRecorder struct {
   299  	mock *MockTeams
   300  }
   301  
   302  // NewMockTeams creates a new mock instance.
   303  func NewMockTeams(ctrl *gomock.Controller) *MockTeams {
   304  	mock := &MockTeams{ctrl: ctrl}
   305  	mock.recorder = &MockTeamsMockRecorder{mock}
   306  	return mock
   307  }
   308  
   309  // EXPECT returns an object that allows the caller to indicate expected use.
   310  func (m *MockTeams) EXPECT() *MockTeamsMockRecorder {
   311  	return m.recorder
   312  }
   313  
   314  // GetAllPartiesInTeams mocks base method.
   315  func (m *MockTeams) GetAllPartiesInTeams() []string {
   316  	m.ctrl.T.Helper()
   317  	ret := m.ctrl.Call(m, "GetAllPartiesInTeams")
   318  	ret0, _ := ret[0].([]string)
   319  	return ret0
   320  }
   321  
   322  // GetAllPartiesInTeams indicates an expected call of GetAllPartiesInTeams.
   323  func (mr *MockTeamsMockRecorder) GetAllPartiesInTeams() *gomock.Call {
   324  	mr.mock.ctrl.T.Helper()
   325  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllPartiesInTeams", reflect.TypeOf((*MockTeams)(nil).GetAllPartiesInTeams))
   326  }
   327  
   328  // GetTeamMembers mocks base method.
   329  func (m *MockTeams) GetTeamMembers(arg0 []string) map[string][]string {
   330  	m.ctrl.T.Helper()
   331  	ret := m.ctrl.Call(m, "GetTeamMembers", arg0)
   332  	ret0, _ := ret[0].(map[string][]string)
   333  	return ret0
   334  }
   335  
   336  // GetTeamMembers indicates an expected call of GetTeamMembers.
   337  func (mr *MockTeamsMockRecorder) GetTeamMembers(arg0 interface{}) *gomock.Call {
   338  	mr.mock.ctrl.T.Helper()
   339  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamMembers", reflect.TypeOf((*MockTeams)(nil).GetTeamMembers), arg0)
   340  }
   341  
   342  // MockVesting is a mock of Vesting interface.
   343  type MockVesting struct {
   344  	ctrl     *gomock.Controller
   345  	recorder *MockVestingMockRecorder
   346  }
   347  
   348  // MockVestingMockRecorder is the mock recorder for MockVesting.
   349  type MockVestingMockRecorder struct {
   350  	mock *MockVesting
   351  }
   352  
   353  // NewMockVesting creates a new mock instance.
   354  func NewMockVesting(ctrl *gomock.Controller) *MockVesting {
   355  	mock := &MockVesting{ctrl: ctrl}
   356  	mock.recorder = &MockVestingMockRecorder{mock}
   357  	return mock
   358  }
   359  
   360  // EXPECT returns an object that allows the caller to indicate expected use.
   361  func (m *MockVesting) EXPECT() *MockVestingMockRecorder {
   362  	return m.recorder
   363  }
   364  
   365  // AddReward mocks base method.
   366  func (m *MockVesting) AddReward(arg0 context.Context, arg1, arg2 string, arg3 *num.Uint, arg4 uint64) {
   367  	m.ctrl.T.Helper()
   368  	m.ctrl.Call(m, "AddReward", arg0, arg1, arg2, arg3, arg4)
   369  }
   370  
   371  // AddReward indicates an expected call of AddReward.
   372  func (mr *MockVestingMockRecorder) AddReward(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   373  	mr.mock.ctrl.T.Helper()
   374  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddReward", reflect.TypeOf((*MockVesting)(nil).AddReward), arg0, arg1, arg2, arg3, arg4)
   375  }
   376  
   377  // GetSingleAndSummedRewardBonusMultipliers mocks base method.
   378  func (m *MockVesting) GetSingleAndSummedRewardBonusMultipliers(arg0 string) (vesting.MultiplierAndQuantBalance, vesting.MultiplierAndQuantBalance) {
   379  	m.ctrl.T.Helper()
   380  	ret := m.ctrl.Call(m, "GetSingleAndSummedRewardBonusMultipliers", arg0)
   381  	ret0, _ := ret[0].(vesting.MultiplierAndQuantBalance)
   382  	ret1, _ := ret[1].(vesting.MultiplierAndQuantBalance)
   383  	return ret0, ret1
   384  }
   385  
   386  // GetSingleAndSummedRewardBonusMultipliers indicates an expected call of GetSingleAndSummedRewardBonusMultipliers.
   387  func (mr *MockVestingMockRecorder) GetSingleAndSummedRewardBonusMultipliers(arg0 interface{}) *gomock.Call {
   388  	mr.mock.ctrl.T.Helper()
   389  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSingleAndSummedRewardBonusMultipliers", reflect.TypeOf((*MockVesting)(nil).GetSingleAndSummedRewardBonusMultipliers), arg0)
   390  }
   391  
   392  // MockActivityStreak is a mock of ActivityStreak interface.
   393  type MockActivityStreak struct {
   394  	ctrl     *gomock.Controller
   395  	recorder *MockActivityStreakMockRecorder
   396  }
   397  
   398  // MockActivityStreakMockRecorder is the mock recorder for MockActivityStreak.
   399  type MockActivityStreakMockRecorder struct {
   400  	mock *MockActivityStreak
   401  }
   402  
   403  // NewMockActivityStreak creates a new mock instance.
   404  func NewMockActivityStreak(ctrl *gomock.Controller) *MockActivityStreak {
   405  	mock := &MockActivityStreak{ctrl: ctrl}
   406  	mock.recorder = &MockActivityStreakMockRecorder{mock}
   407  	return mock
   408  }
   409  
   410  // EXPECT returns an object that allows the caller to indicate expected use.
   411  func (m *MockActivityStreak) EXPECT() *MockActivityStreakMockRecorder {
   412  	return m.recorder
   413  }
   414  
   415  // GetRewardsDistributionMultiplier mocks base method.
   416  func (m *MockActivityStreak) GetRewardsDistributionMultiplier(arg0 string) decimal.Decimal {
   417  	m.ctrl.T.Helper()
   418  	ret := m.ctrl.Call(m, "GetRewardsDistributionMultiplier", arg0)
   419  	ret0, _ := ret[0].(decimal.Decimal)
   420  	return ret0
   421  }
   422  
   423  // GetRewardsDistributionMultiplier indicates an expected call of GetRewardsDistributionMultiplier.
   424  func (mr *MockActivityStreakMockRecorder) GetRewardsDistributionMultiplier(arg0 interface{}) *gomock.Call {
   425  	mr.mock.ctrl.T.Helper()
   426  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRewardsDistributionMultiplier", reflect.TypeOf((*MockActivityStreak)(nil).GetRewardsDistributionMultiplier), arg0)
   427  }