github.com/cosmos/cosmos-sdk@v0.50.10/x/slashing/testutil/expected_keepers_mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: x/slashing/types/expected_keepers.go
     3  
     4  // Package testutil is a generated GoMock package.
     5  package testutil
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	address "cosmossdk.io/core/address"
    12  	math "cosmossdk.io/math"
    13  	types "github.com/cosmos/cosmos-sdk/types"
    14  	types0 "github.com/cosmos/cosmos-sdk/x/params/types"
    15  	types1 "github.com/cosmos/cosmos-sdk/x/staking/types"
    16  	gomock "github.com/golang/mock/gomock"
    17  )
    18  
    19  // MockAccountKeeper is a mock of AccountKeeper interface.
    20  type MockAccountKeeper struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockAccountKeeperMockRecorder
    23  }
    24  
    25  // MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
    26  type MockAccountKeeperMockRecorder struct {
    27  	mock *MockAccountKeeper
    28  }
    29  
    30  // NewMockAccountKeeper creates a new mock instance.
    31  func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper {
    32  	mock := &MockAccountKeeper{ctrl: ctrl}
    33  	mock.recorder = &MockAccountKeeperMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // GetAccount mocks base method.
    43  func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "GetAccount", ctx, addr)
    46  	ret0, _ := ret[0].(types.AccountI)
    47  	return ret0
    48  }
    49  
    50  // GetAccount indicates an expected call of GetAccount.
    51  func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetAccount), ctx, addr)
    54  }
    55  
    56  // IterateAccounts mocks base method.
    57  func (m *MockAccountKeeper) IterateAccounts(ctx context.Context, process func(types.AccountI) bool) {
    58  	m.ctrl.T.Helper()
    59  	m.ctrl.Call(m, "IterateAccounts", ctx, process)
    60  }
    61  
    62  // IterateAccounts indicates an expected call of IterateAccounts.
    63  func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateAccounts", reflect.TypeOf((*MockAccountKeeper)(nil).IterateAccounts), ctx, process)
    66  }
    67  
    68  // MockBankKeeper is a mock of BankKeeper interface.
    69  type MockBankKeeper struct {
    70  	ctrl     *gomock.Controller
    71  	recorder *MockBankKeeperMockRecorder
    72  }
    73  
    74  // MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
    75  type MockBankKeeperMockRecorder struct {
    76  	mock *MockBankKeeper
    77  }
    78  
    79  // NewMockBankKeeper creates a new mock instance.
    80  func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper {
    81  	mock := &MockBankKeeper{ctrl: ctrl}
    82  	mock.recorder = &MockBankKeeperMockRecorder{mock}
    83  	return mock
    84  }
    85  
    86  // EXPECT returns an object that allows the caller to indicate expected use.
    87  func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder {
    88  	return m.recorder
    89  }
    90  
    91  // GetAllBalances mocks base method.
    92  func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "GetAllBalances", ctx, addr)
    95  	ret0, _ := ret[0].(types.Coins)
    96  	return ret0
    97  }
    98  
    99  // GetAllBalances indicates an expected call of GetAllBalances.
   100  func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBalances", reflect.TypeOf((*MockBankKeeper)(nil).GetAllBalances), ctx, addr)
   103  }
   104  
   105  // GetBalance mocks base method.
   106  func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "GetBalance", ctx, addr, denom)
   109  	ret0, _ := ret[0].(types.Coin)
   110  	return ret0
   111  }
   112  
   113  // GetBalance indicates an expected call of GetBalance.
   114  func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBalance", reflect.TypeOf((*MockBankKeeper)(nil).GetBalance), ctx, addr, denom)
   117  }
   118  
   119  // LockedCoins mocks base method.
   120  func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types.AccAddress) types.Coins {
   121  	m.ctrl.T.Helper()
   122  	ret := m.ctrl.Call(m, "LockedCoins", ctx, addr)
   123  	ret0, _ := ret[0].(types.Coins)
   124  	return ret0
   125  }
   126  
   127  // LockedCoins indicates an expected call of LockedCoins.
   128  func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockedCoins", reflect.TypeOf((*MockBankKeeper)(nil).LockedCoins), ctx, addr)
   131  }
   132  
   133  // SpendableCoins mocks base method.
   134  func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "SpendableCoins", ctx, addr)
   137  	ret0, _ := ret[0].(types.Coins)
   138  	return ret0
   139  }
   140  
   141  // SpendableCoins indicates an expected call of SpendableCoins.
   142  func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpendableCoins", reflect.TypeOf((*MockBankKeeper)(nil).SpendableCoins), ctx, addr)
   145  }
   146  
   147  // MockParamSubspace is a mock of ParamSubspace interface.
   148  type MockParamSubspace struct {
   149  	ctrl     *gomock.Controller
   150  	recorder *MockParamSubspaceMockRecorder
   151  }
   152  
   153  // MockParamSubspaceMockRecorder is the mock recorder for MockParamSubspace.
   154  type MockParamSubspaceMockRecorder struct {
   155  	mock *MockParamSubspace
   156  }
   157  
   158  // NewMockParamSubspace creates a new mock instance.
   159  func NewMockParamSubspace(ctrl *gomock.Controller) *MockParamSubspace {
   160  	mock := &MockParamSubspace{ctrl: ctrl}
   161  	mock.recorder = &MockParamSubspaceMockRecorder{mock}
   162  	return mock
   163  }
   164  
   165  // EXPECT returns an object that allows the caller to indicate expected use.
   166  func (m *MockParamSubspace) EXPECT() *MockParamSubspaceMockRecorder {
   167  	return m.recorder
   168  }
   169  
   170  // Get mocks base method.
   171  func (m *MockParamSubspace) Get(ctx types.Context, key []byte, ptr interface{}) {
   172  	m.ctrl.T.Helper()
   173  	m.ctrl.Call(m, "Get", ctx, key, ptr)
   174  }
   175  
   176  // Get indicates an expected call of Get.
   177  func (mr *MockParamSubspaceMockRecorder) Get(ctx, key, ptr interface{}) *gomock.Call {
   178  	mr.mock.ctrl.T.Helper()
   179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockParamSubspace)(nil).Get), ctx, key, ptr)
   180  }
   181  
   182  // GetParamSet mocks base method.
   183  func (m *MockParamSubspace) GetParamSet(ctx types.Context, ps types0.ParamSet) {
   184  	m.ctrl.T.Helper()
   185  	m.ctrl.Call(m, "GetParamSet", ctx, ps)
   186  }
   187  
   188  // GetParamSet indicates an expected call of GetParamSet.
   189  func (mr *MockParamSubspaceMockRecorder) GetParamSet(ctx, ps interface{}) *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParamSet", reflect.TypeOf((*MockParamSubspace)(nil).GetParamSet), ctx, ps)
   192  }
   193  
   194  // HasKeyTable mocks base method.
   195  func (m *MockParamSubspace) HasKeyTable() bool {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "HasKeyTable")
   198  	ret0, _ := ret[0].(bool)
   199  	return ret0
   200  }
   201  
   202  // HasKeyTable indicates an expected call of HasKeyTable.
   203  func (mr *MockParamSubspaceMockRecorder) HasKeyTable() *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasKeyTable", reflect.TypeOf((*MockParamSubspace)(nil).HasKeyTable))
   206  }
   207  
   208  // SetParamSet mocks base method.
   209  func (m *MockParamSubspace) SetParamSet(ctx types.Context, ps types0.ParamSet) {
   210  	m.ctrl.T.Helper()
   211  	m.ctrl.Call(m, "SetParamSet", ctx, ps)
   212  }
   213  
   214  // SetParamSet indicates an expected call of SetParamSet.
   215  func (mr *MockParamSubspaceMockRecorder) SetParamSet(ctx, ps interface{}) *gomock.Call {
   216  	mr.mock.ctrl.T.Helper()
   217  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetParamSet", reflect.TypeOf((*MockParamSubspace)(nil).SetParamSet), ctx, ps)
   218  }
   219  
   220  // WithKeyTable mocks base method.
   221  func (m *MockParamSubspace) WithKeyTable(table types0.KeyTable) types0.Subspace {
   222  	m.ctrl.T.Helper()
   223  	ret := m.ctrl.Call(m, "WithKeyTable", table)
   224  	ret0, _ := ret[0].(types0.Subspace)
   225  	return ret0
   226  }
   227  
   228  // WithKeyTable indicates an expected call of WithKeyTable.
   229  func (mr *MockParamSubspaceMockRecorder) WithKeyTable(table interface{}) *gomock.Call {
   230  	mr.mock.ctrl.T.Helper()
   231  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithKeyTable", reflect.TypeOf((*MockParamSubspace)(nil).WithKeyTable), table)
   232  }
   233  
   234  // MockStakingKeeper is a mock of StakingKeeper interface.
   235  type MockStakingKeeper struct {
   236  	ctrl     *gomock.Controller
   237  	recorder *MockStakingKeeperMockRecorder
   238  }
   239  
   240  // MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
   241  type MockStakingKeeperMockRecorder struct {
   242  	mock *MockStakingKeeper
   243  }
   244  
   245  // NewMockStakingKeeper creates a new mock instance.
   246  func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper {
   247  	mock := &MockStakingKeeper{ctrl: ctrl}
   248  	mock.recorder = &MockStakingKeeperMockRecorder{mock}
   249  	return mock
   250  }
   251  
   252  // EXPECT returns an object that allows the caller to indicate expected use.
   253  func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder {
   254  	return m.recorder
   255  }
   256  
   257  // ConsensusAddressCodec mocks base method.
   258  func (m *MockStakingKeeper) ConsensusAddressCodec() address.Codec {
   259  	m.ctrl.T.Helper()
   260  	ret := m.ctrl.Call(m, "ConsensusAddressCodec")
   261  	ret0, _ := ret[0].(address.Codec)
   262  	return ret0
   263  }
   264  
   265  // ConsensusAddressCodec indicates an expected call of ConsensusAddressCodec.
   266  func (mr *MockStakingKeeperMockRecorder) ConsensusAddressCodec() *gomock.Call {
   267  	mr.mock.ctrl.T.Helper()
   268  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsensusAddressCodec", reflect.TypeOf((*MockStakingKeeper)(nil).ConsensusAddressCodec))
   269  }
   270  
   271  // Delegation mocks base method.
   272  func (m *MockStakingKeeper) Delegation(arg0 context.Context, arg1 types.AccAddress, arg2 types.ValAddress) (types1.DelegationI, error) {
   273  	m.ctrl.T.Helper()
   274  	ret := m.ctrl.Call(m, "Delegation", arg0, arg1, arg2)
   275  	ret0, _ := ret[0].(types1.DelegationI)
   276  	ret1, _ := ret[1].(error)
   277  	return ret0, ret1
   278  }
   279  
   280  // Delegation indicates an expected call of Delegation.
   281  func (mr *MockStakingKeeperMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call {
   282  	mr.mock.ctrl.T.Helper()
   283  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delegation", reflect.TypeOf((*MockStakingKeeper)(nil).Delegation), arg0, arg1, arg2)
   284  }
   285  
   286  // GetAllValidators mocks base method.
   287  func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]types1.Validator, error) {
   288  	m.ctrl.T.Helper()
   289  	ret := m.ctrl.Call(m, "GetAllValidators", ctx)
   290  	ret0, _ := ret[0].([]types1.Validator)
   291  	ret1, _ := ret[1].(error)
   292  	return ret0, ret1
   293  }
   294  
   295  // GetAllValidators indicates an expected call of GetAllValidators.
   296  func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx interface{}) *gomock.Call {
   297  	mr.mock.ctrl.T.Helper()
   298  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllValidators", reflect.TypeOf((*MockStakingKeeper)(nil).GetAllValidators), ctx)
   299  }
   300  
   301  // IsValidatorJailed mocks base method.
   302  func (m *MockStakingKeeper) IsValidatorJailed(ctx context.Context, addr types.ConsAddress) (bool, error) {
   303  	m.ctrl.T.Helper()
   304  	ret := m.ctrl.Call(m, "IsValidatorJailed", ctx, addr)
   305  	ret0, _ := ret[0].(bool)
   306  	ret1, _ := ret[1].(error)
   307  	return ret0, ret1
   308  }
   309  
   310  // IsValidatorJailed indicates an expected call of IsValidatorJailed.
   311  func (mr *MockStakingKeeperMockRecorder) IsValidatorJailed(ctx, addr interface{}) *gomock.Call {
   312  	mr.mock.ctrl.T.Helper()
   313  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidatorJailed", reflect.TypeOf((*MockStakingKeeper)(nil).IsValidatorJailed), ctx, addr)
   314  }
   315  
   316  // IterateValidators mocks base method.
   317  func (m *MockStakingKeeper) IterateValidators(arg0 context.Context, arg1 func(int64, types1.ValidatorI) bool) error {
   318  	m.ctrl.T.Helper()
   319  	ret := m.ctrl.Call(m, "IterateValidators", arg0, arg1)
   320  	ret0, _ := ret[0].(error)
   321  	return ret0
   322  }
   323  
   324  // IterateValidators indicates an expected call of IterateValidators.
   325  func (mr *MockStakingKeeperMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call {
   326  	mr.mock.ctrl.T.Helper()
   327  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateValidators", reflect.TypeOf((*MockStakingKeeper)(nil).IterateValidators), arg0, arg1)
   328  }
   329  
   330  // Jail mocks base method.
   331  func (m *MockStakingKeeper) Jail(arg0 context.Context, arg1 types.ConsAddress) error {
   332  	m.ctrl.T.Helper()
   333  	ret := m.ctrl.Call(m, "Jail", arg0, arg1)
   334  	ret0, _ := ret[0].(error)
   335  	return ret0
   336  }
   337  
   338  // Jail indicates an expected call of Jail.
   339  func (mr *MockStakingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call {
   340  	mr.mock.ctrl.T.Helper()
   341  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jail", reflect.TypeOf((*MockStakingKeeper)(nil).Jail), arg0, arg1)
   342  }
   343  
   344  // MaxValidators mocks base method.
   345  func (m *MockStakingKeeper) MaxValidators(arg0 context.Context) (uint32, error) {
   346  	m.ctrl.T.Helper()
   347  	ret := m.ctrl.Call(m, "MaxValidators", arg0)
   348  	ret0, _ := ret[0].(uint32)
   349  	ret1, _ := ret[1].(error)
   350  	return ret0, ret1
   351  }
   352  
   353  // MaxValidators indicates an expected call of MaxValidators.
   354  func (mr *MockStakingKeeperMockRecorder) MaxValidators(arg0 interface{}) *gomock.Call {
   355  	mr.mock.ctrl.T.Helper()
   356  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxValidators", reflect.TypeOf((*MockStakingKeeper)(nil).MaxValidators), arg0)
   357  }
   358  
   359  // Slash mocks base method.
   360  func (m *MockStakingKeeper) Slash(arg0 context.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec) (math.Int, error) {
   361  	m.ctrl.T.Helper()
   362  	ret := m.ctrl.Call(m, "Slash", arg0, arg1, arg2, arg3, arg4)
   363  	ret0, _ := ret[0].(math.Int)
   364  	ret1, _ := ret[1].(error)
   365  	return ret0, ret1
   366  }
   367  
   368  // Slash indicates an expected call of Slash.
   369  func (mr *MockStakingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   370  	mr.mock.ctrl.T.Helper()
   371  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Slash", reflect.TypeOf((*MockStakingKeeper)(nil).Slash), arg0, arg1, arg2, arg3, arg4)
   372  }
   373  
   374  // SlashWithInfractionReason mocks base method.
   375  func (m *MockStakingKeeper) SlashWithInfractionReason(arg0 context.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec, arg5 types1.Infraction) (math.Int, error) {
   376  	m.ctrl.T.Helper()
   377  	ret := m.ctrl.Call(m, "SlashWithInfractionReason", arg0, arg1, arg2, arg3, arg4, arg5)
   378  	ret0, _ := ret[0].(math.Int)
   379  	ret1, _ := ret[1].(error)
   380  	return ret0, ret1
   381  }
   382  
   383  // SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.
   384  func (mr *MockStakingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
   385  	mr.mock.ctrl.T.Helper()
   386  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SlashWithInfractionReason", reflect.TypeOf((*MockStakingKeeper)(nil).SlashWithInfractionReason), arg0, arg1, arg2, arg3, arg4, arg5)
   387  }
   388  
   389  // Unjail mocks base method.
   390  func (m *MockStakingKeeper) Unjail(arg0 context.Context, arg1 types.ConsAddress) error {
   391  	m.ctrl.T.Helper()
   392  	ret := m.ctrl.Call(m, "Unjail", arg0, arg1)
   393  	ret0, _ := ret[0].(error)
   394  	return ret0
   395  }
   396  
   397  // Unjail indicates an expected call of Unjail.
   398  func (mr *MockStakingKeeperMockRecorder) Unjail(arg0, arg1 interface{}) *gomock.Call {
   399  	mr.mock.ctrl.T.Helper()
   400  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unjail", reflect.TypeOf((*MockStakingKeeper)(nil).Unjail), arg0, arg1)
   401  }
   402  
   403  // Validator mocks base method.
   404  func (m *MockStakingKeeper) Validator(arg0 context.Context, arg1 types.ValAddress) (types1.ValidatorI, error) {
   405  	m.ctrl.T.Helper()
   406  	ret := m.ctrl.Call(m, "Validator", arg0, arg1)
   407  	ret0, _ := ret[0].(types1.ValidatorI)
   408  	ret1, _ := ret[1].(error)
   409  	return ret0, ret1
   410  }
   411  
   412  // Validator indicates an expected call of Validator.
   413  func (mr *MockStakingKeeperMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call {
   414  	mr.mock.ctrl.T.Helper()
   415  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validator", reflect.TypeOf((*MockStakingKeeper)(nil).Validator), arg0, arg1)
   416  }
   417  
   418  // ValidatorAddressCodec mocks base method.
   419  func (m *MockStakingKeeper) ValidatorAddressCodec() address.Codec {
   420  	m.ctrl.T.Helper()
   421  	ret := m.ctrl.Call(m, "ValidatorAddressCodec")
   422  	ret0, _ := ret[0].(address.Codec)
   423  	return ret0
   424  }
   425  
   426  // ValidatorAddressCodec indicates an expected call of ValidatorAddressCodec.
   427  func (mr *MockStakingKeeperMockRecorder) ValidatorAddressCodec() *gomock.Call {
   428  	mr.mock.ctrl.T.Helper()
   429  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorAddressCodec", reflect.TypeOf((*MockStakingKeeper)(nil).ValidatorAddressCodec))
   430  }
   431  
   432  // ValidatorByConsAddr mocks base method.
   433  func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (types1.ValidatorI, error) {
   434  	m.ctrl.T.Helper()
   435  	ret := m.ctrl.Call(m, "ValidatorByConsAddr", arg0, arg1)
   436  	ret0, _ := ret[0].(types1.ValidatorI)
   437  	ret1, _ := ret[1].(error)
   438  	return ret0, ret1
   439  }
   440  
   441  // ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.
   442  func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call {
   443  	mr.mock.ctrl.T.Helper()
   444  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorByConsAddr", reflect.TypeOf((*MockStakingKeeper)(nil).ValidatorByConsAddr), arg0, arg1)
   445  }
   446  
   447  // MockStakingHooks is a mock of StakingHooks interface.
   448  type MockStakingHooks struct {
   449  	ctrl     *gomock.Controller
   450  	recorder *MockStakingHooksMockRecorder
   451  }
   452  
   453  // MockStakingHooksMockRecorder is the mock recorder for MockStakingHooks.
   454  type MockStakingHooksMockRecorder struct {
   455  	mock *MockStakingHooks
   456  }
   457  
   458  // NewMockStakingHooks creates a new mock instance.
   459  func NewMockStakingHooks(ctrl *gomock.Controller) *MockStakingHooks {
   460  	mock := &MockStakingHooks{ctrl: ctrl}
   461  	mock.recorder = &MockStakingHooksMockRecorder{mock}
   462  	return mock
   463  }
   464  
   465  // EXPECT returns an object that allows the caller to indicate expected use.
   466  func (m *MockStakingHooks) EXPECT() *MockStakingHooksMockRecorder {
   467  	return m.recorder
   468  }
   469  
   470  // AfterDelegationModified mocks base method.
   471  func (m *MockStakingHooks) AfterDelegationModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   472  	m.ctrl.T.Helper()
   473  	ret := m.ctrl.Call(m, "AfterDelegationModified", ctx, delAddr, valAddr)
   474  	ret0, _ := ret[0].(error)
   475  	return ret0
   476  }
   477  
   478  // AfterDelegationModified indicates an expected call of AfterDelegationModified.
   479  func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
   480  	mr.mock.ctrl.T.Helper()
   481  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDelegationModified", reflect.TypeOf((*MockStakingHooks)(nil).AfterDelegationModified), ctx, delAddr, valAddr)
   482  }
   483  
   484  // AfterValidatorBeginUnbonding mocks base method.
   485  func (m *MockStakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   486  	m.ctrl.T.Helper()
   487  	ret := m.ctrl.Call(m, "AfterValidatorBeginUnbonding", ctx, consAddr, valAddr)
   488  	ret0, _ := ret[0].(error)
   489  	return ret0
   490  }
   491  
   492  // AfterValidatorBeginUnbonding indicates an expected call of AfterValidatorBeginUnbonding.
   493  func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr interface{}) *gomock.Call {
   494  	mr.mock.ctrl.T.Helper()
   495  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBeginUnbonding", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBeginUnbonding), ctx, consAddr, valAddr)
   496  }
   497  
   498  // AfterValidatorBonded mocks base method.
   499  func (m *MockStakingHooks) AfterValidatorBonded(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   500  	m.ctrl.T.Helper()
   501  	ret := m.ctrl.Call(m, "AfterValidatorBonded", ctx, consAddr, valAddr)
   502  	ret0, _ := ret[0].(error)
   503  	return ret0
   504  }
   505  
   506  // AfterValidatorBonded indicates an expected call of AfterValidatorBonded.
   507  func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr interface{}) *gomock.Call {
   508  	mr.mock.ctrl.T.Helper()
   509  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBonded", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBonded), ctx, consAddr, valAddr)
   510  }
   511  
   512  // AfterValidatorCreated mocks base method.
   513  func (m *MockStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr types.ValAddress) error {
   514  	m.ctrl.T.Helper()
   515  	ret := m.ctrl.Call(m, "AfterValidatorCreated", ctx, valAddr)
   516  	ret0, _ := ret[0].(error)
   517  	return ret0
   518  }
   519  
   520  // AfterValidatorCreated indicates an expected call of AfterValidatorCreated.
   521  func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call {
   522  	mr.mock.ctrl.T.Helper()
   523  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorCreated", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorCreated), ctx, valAddr)
   524  }
   525  
   526  // AfterValidatorRemoved mocks base method.
   527  func (m *MockStakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   528  	m.ctrl.T.Helper()
   529  	ret := m.ctrl.Call(m, "AfterValidatorRemoved", ctx, consAddr, valAddr)
   530  	ret0, _ := ret[0].(error)
   531  	return ret0
   532  }
   533  
   534  // AfterValidatorRemoved indicates an expected call of AfterValidatorRemoved.
   535  func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr interface{}) *gomock.Call {
   536  	mr.mock.ctrl.T.Helper()
   537  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorRemoved", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorRemoved), ctx, consAddr, valAddr)
   538  }
   539  
   540  // BeforeDelegationCreated mocks base method.
   541  func (m *MockStakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   542  	m.ctrl.T.Helper()
   543  	ret := m.ctrl.Call(m, "BeforeDelegationCreated", ctx, delAddr, valAddr)
   544  	ret0, _ := ret[0].(error)
   545  	return ret0
   546  }
   547  
   548  // BeforeDelegationCreated indicates an expected call of BeforeDelegationCreated.
   549  func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr interface{}) *gomock.Call {
   550  	mr.mock.ctrl.T.Helper()
   551  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationCreated", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationCreated), ctx, delAddr, valAddr)
   552  }
   553  
   554  // BeforeDelegationRemoved mocks base method.
   555  func (m *MockStakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   556  	m.ctrl.T.Helper()
   557  	ret := m.ctrl.Call(m, "BeforeDelegationRemoved", ctx, delAddr, valAddr)
   558  	ret0, _ := ret[0].(error)
   559  	return ret0
   560  }
   561  
   562  // BeforeDelegationRemoved indicates an expected call of BeforeDelegationRemoved.
   563  func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr interface{}) *gomock.Call {
   564  	mr.mock.ctrl.T.Helper()
   565  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationRemoved", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationRemoved), ctx, delAddr, valAddr)
   566  }
   567  
   568  // BeforeDelegationSharesModified mocks base method.
   569  func (m *MockStakingHooks) BeforeDelegationSharesModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   570  	m.ctrl.T.Helper()
   571  	ret := m.ctrl.Call(m, "BeforeDelegationSharesModified", ctx, delAddr, valAddr)
   572  	ret0, _ := ret[0].(error)
   573  	return ret0
   574  }
   575  
   576  // BeforeDelegationSharesModified indicates an expected call of BeforeDelegationSharesModified.
   577  func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
   578  	mr.mock.ctrl.T.Helper()
   579  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationSharesModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationSharesModified), ctx, delAddr, valAddr)
   580  }
   581  
   582  // BeforeValidatorModified mocks base method.
   583  func (m *MockStakingHooks) BeforeValidatorModified(ctx context.Context, valAddr types.ValAddress) error {
   584  	m.ctrl.T.Helper()
   585  	ret := m.ctrl.Call(m, "BeforeValidatorModified", ctx, valAddr)
   586  	ret0, _ := ret[0].(error)
   587  	return ret0
   588  }
   589  
   590  // BeforeValidatorModified indicates an expected call of BeforeValidatorModified.
   591  func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr interface{}) *gomock.Call {
   592  	mr.mock.ctrl.T.Helper()
   593  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorModified), ctx, valAddr)
   594  }
   595  
   596  // BeforeValidatorSlashed mocks base method.
   597  func (m *MockStakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr types.ValAddress, fraction math.LegacyDec) error {
   598  	m.ctrl.T.Helper()
   599  	ret := m.ctrl.Call(m, "BeforeValidatorSlashed", ctx, valAddr, fraction)
   600  	ret0, _ := ret[0].(error)
   601  	return ret0
   602  }
   603  
   604  // BeforeValidatorSlashed indicates an expected call of BeforeValidatorSlashed.
   605  func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction interface{}) *gomock.Call {
   606  	mr.mock.ctrl.T.Helper()
   607  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorSlashed", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorSlashed), ctx, valAddr, fraction)
   608  }