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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: x/staking/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  	crypto "github.com/cometbft/cometbft/proto/tendermint/crypto"
    14  	types "github.com/cosmos/cosmos-sdk/types"
    15  	types0 "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  // AddressCodec mocks base method.
    43  func (m *MockAccountKeeper) AddressCodec() address.Codec {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "AddressCodec")
    46  	ret0, _ := ret[0].(address.Codec)
    47  	return ret0
    48  }
    49  
    50  // AddressCodec indicates an expected call of AddressCodec.
    51  func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddressCodec", reflect.TypeOf((*MockAccountKeeper)(nil).AddressCodec))
    54  }
    55  
    56  // GetAccount mocks base method.
    57  func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "GetAccount", ctx, addr)
    60  	ret0, _ := ret[0].(types.AccountI)
    61  	return ret0
    62  }
    63  
    64  // GetAccount indicates an expected call of GetAccount.
    65  func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetAccount), ctx, addr)
    68  }
    69  
    70  // GetModuleAccount mocks base method.
    71  func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types.ModuleAccountI {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "GetModuleAccount", ctx, moduleName)
    74  	ret0, _ := ret[0].(types.ModuleAccountI)
    75  	return ret0
    76  }
    77  
    78  // GetModuleAccount indicates an expected call of GetModuleAccount.
    79  func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccount), ctx, moduleName)
    82  }
    83  
    84  // GetModuleAddress mocks base method.
    85  func (m *MockAccountKeeper) GetModuleAddress(name string) types.AccAddress {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "GetModuleAddress", name)
    88  	ret0, _ := ret[0].(types.AccAddress)
    89  	return ret0
    90  }
    91  
    92  // GetModuleAddress indicates an expected call of GetModuleAddress.
    93  func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddress", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddress), name)
    96  }
    97  
    98  // IterateAccounts mocks base method.
    99  func (m *MockAccountKeeper) IterateAccounts(ctx context.Context, process func(types.AccountI) bool) {
   100  	m.ctrl.T.Helper()
   101  	m.ctrl.Call(m, "IterateAccounts", ctx, process)
   102  }
   103  
   104  // IterateAccounts indicates an expected call of IterateAccounts.
   105  func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateAccounts", reflect.TypeOf((*MockAccountKeeper)(nil).IterateAccounts), ctx, process)
   108  }
   109  
   110  // SetModuleAccount mocks base method.
   111  func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.ModuleAccountI) {
   112  	m.ctrl.T.Helper()
   113  	m.ctrl.Call(m, "SetModuleAccount", arg0, arg1)
   114  }
   115  
   116  // SetModuleAccount indicates an expected call of SetModuleAccount.
   117  func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call {
   118  	mr.mock.ctrl.T.Helper()
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetModuleAccount), arg0, arg1)
   120  }
   121  
   122  // MockBankKeeper is a mock of BankKeeper interface.
   123  type MockBankKeeper struct {
   124  	ctrl     *gomock.Controller
   125  	recorder *MockBankKeeperMockRecorder
   126  }
   127  
   128  // MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
   129  type MockBankKeeperMockRecorder struct {
   130  	mock *MockBankKeeper
   131  }
   132  
   133  // NewMockBankKeeper creates a new mock instance.
   134  func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper {
   135  	mock := &MockBankKeeper{ctrl: ctrl}
   136  	mock.recorder = &MockBankKeeperMockRecorder{mock}
   137  	return mock
   138  }
   139  
   140  // EXPECT returns an object that allows the caller to indicate expected use.
   141  func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder {
   142  	return m.recorder
   143  }
   144  
   145  // BurnCoins mocks base method.
   146  func (m *MockBankKeeper) BurnCoins(ctx context.Context, name string, amt types.Coins) error {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "BurnCoins", ctx, name, amt)
   149  	ret0, _ := ret[0].(error)
   150  	return ret0
   151  }
   152  
   153  // BurnCoins indicates an expected call of BurnCoins.
   154  func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, name, amt interface{}) *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BurnCoins", reflect.TypeOf((*MockBankKeeper)(nil).BurnCoins), ctx, name, amt)
   157  }
   158  
   159  // DelegateCoinsFromAccountToModule mocks base method.
   160  func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "DelegateCoinsFromAccountToModule", ctx, senderAddr, recipientModule, amt)
   163  	ret0, _ := ret[0].(error)
   164  	return ret0
   165  }
   166  
   167  // DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.
   168  func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelegateCoinsFromAccountToModule", reflect.TypeOf((*MockBankKeeper)(nil).DelegateCoinsFromAccountToModule), ctx, senderAddr, recipientModule, amt)
   171  }
   172  
   173  // GetAllBalances mocks base method.
   174  func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "GetAllBalances", ctx, addr)
   177  	ret0, _ := ret[0].(types.Coins)
   178  	return ret0
   179  }
   180  
   181  // GetAllBalances indicates an expected call of GetAllBalances.
   182  func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBalances", reflect.TypeOf((*MockBankKeeper)(nil).GetAllBalances), ctx, addr)
   185  }
   186  
   187  // GetBalance mocks base method.
   188  func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types.AccAddress, denom string) types.Coin {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "GetBalance", ctx, addr, denom)
   191  	ret0, _ := ret[0].(types.Coin)
   192  	return ret0
   193  }
   194  
   195  // GetBalance indicates an expected call of GetBalance.
   196  func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBalance", reflect.TypeOf((*MockBankKeeper)(nil).GetBalance), ctx, addr, denom)
   199  }
   200  
   201  // GetSupply mocks base method.
   202  func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types.Coin {
   203  	m.ctrl.T.Helper()
   204  	ret := m.ctrl.Call(m, "GetSupply", ctx, denom)
   205  	ret0, _ := ret[0].(types.Coin)
   206  	return ret0
   207  }
   208  
   209  // GetSupply indicates an expected call of GetSupply.
   210  func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call {
   211  	mr.mock.ctrl.T.Helper()
   212  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSupply", reflect.TypeOf((*MockBankKeeper)(nil).GetSupply), ctx, denom)
   213  }
   214  
   215  // LockedCoins mocks base method.
   216  func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types.AccAddress) types.Coins {
   217  	m.ctrl.T.Helper()
   218  	ret := m.ctrl.Call(m, "LockedCoins", ctx, addr)
   219  	ret0, _ := ret[0].(types.Coins)
   220  	return ret0
   221  }
   222  
   223  // LockedCoins indicates an expected call of LockedCoins.
   224  func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call {
   225  	mr.mock.ctrl.T.Helper()
   226  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockedCoins", reflect.TypeOf((*MockBankKeeper)(nil).LockedCoins), ctx, addr)
   227  }
   228  
   229  // SendCoinsFromModuleToModule mocks base method.
   230  func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt types.Coins) error {
   231  	m.ctrl.T.Helper()
   232  	ret := m.ctrl.Call(m, "SendCoinsFromModuleToModule", ctx, senderPool, recipientPool, amt)
   233  	ret0, _ := ret[0].(error)
   234  	return ret0
   235  }
   236  
   237  // SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
   238  func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call {
   239  	mr.mock.ctrl.T.Helper()
   240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToModule), ctx, senderPool, recipientPool, amt)
   241  }
   242  
   243  // SpendableCoins mocks base method.
   244  func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins {
   245  	m.ctrl.T.Helper()
   246  	ret := m.ctrl.Call(m, "SpendableCoins", ctx, addr)
   247  	ret0, _ := ret[0].(types.Coins)
   248  	return ret0
   249  }
   250  
   251  // SpendableCoins indicates an expected call of SpendableCoins.
   252  func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call {
   253  	mr.mock.ctrl.T.Helper()
   254  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpendableCoins", reflect.TypeOf((*MockBankKeeper)(nil).SpendableCoins), ctx, addr)
   255  }
   256  
   257  // UndelegateCoinsFromModuleToAccount mocks base method.
   258  func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error {
   259  	m.ctrl.T.Helper()
   260  	ret := m.ctrl.Call(m, "UndelegateCoinsFromModuleToAccount", ctx, senderModule, recipientAddr, amt)
   261  	ret0, _ := ret[0].(error)
   262  	return ret0
   263  }
   264  
   265  // UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.
   266  func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call {
   267  	mr.mock.ctrl.T.Helper()
   268  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UndelegateCoinsFromModuleToAccount", reflect.TypeOf((*MockBankKeeper)(nil).UndelegateCoinsFromModuleToAccount), ctx, senderModule, recipientAddr, amt)
   269  }
   270  
   271  // MockValidatorSet is a mock of ValidatorSet interface.
   272  type MockValidatorSet struct {
   273  	ctrl     *gomock.Controller
   274  	recorder *MockValidatorSetMockRecorder
   275  }
   276  
   277  // MockValidatorSetMockRecorder is the mock recorder for MockValidatorSet.
   278  type MockValidatorSetMockRecorder struct {
   279  	mock *MockValidatorSet
   280  }
   281  
   282  // NewMockValidatorSet creates a new mock instance.
   283  func NewMockValidatorSet(ctrl *gomock.Controller) *MockValidatorSet {
   284  	mock := &MockValidatorSet{ctrl: ctrl}
   285  	mock.recorder = &MockValidatorSetMockRecorder{mock}
   286  	return mock
   287  }
   288  
   289  // EXPECT returns an object that allows the caller to indicate expected use.
   290  func (m *MockValidatorSet) EXPECT() *MockValidatorSetMockRecorder {
   291  	return m.recorder
   292  }
   293  
   294  // Delegation mocks base method.
   295  func (m *MockValidatorSet) Delegation(arg0 context.Context, arg1 types.AccAddress, arg2 types.ValAddress) (types0.DelegationI, error) {
   296  	m.ctrl.T.Helper()
   297  	ret := m.ctrl.Call(m, "Delegation", arg0, arg1, arg2)
   298  	ret0, _ := ret[0].(types0.DelegationI)
   299  	ret1, _ := ret[1].(error)
   300  	return ret0, ret1
   301  }
   302  
   303  // Delegation indicates an expected call of Delegation.
   304  func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call {
   305  	mr.mock.ctrl.T.Helper()
   306  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delegation", reflect.TypeOf((*MockValidatorSet)(nil).Delegation), arg0, arg1, arg2)
   307  }
   308  
   309  // GetPubKeyByConsAddr mocks base method.
   310  func (m *MockValidatorSet) GetPubKeyByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (crypto.PublicKey, error) {
   311  	m.ctrl.T.Helper()
   312  	ret := m.ctrl.Call(m, "GetPubKeyByConsAddr", arg0, arg1)
   313  	ret0, _ := ret[0].(crypto.PublicKey)
   314  	ret1, _ := ret[1].(error)
   315  	return ret0, ret1
   316  }
   317  
   318  // GetPubKeyByConsAddr indicates an expected call of GetPubKeyByConsAddr.
   319  func (mr *MockValidatorSetMockRecorder) GetPubKeyByConsAddr(arg0, arg1 interface{}) *gomock.Call {
   320  	mr.mock.ctrl.T.Helper()
   321  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPubKeyByConsAddr", reflect.TypeOf((*MockValidatorSet)(nil).GetPubKeyByConsAddr), arg0, arg1)
   322  }
   323  
   324  // IterateBondedValidatorsByPower mocks base method.
   325  func (m *MockValidatorSet) IterateBondedValidatorsByPower(arg0 context.Context, arg1 func(int64, types0.ValidatorI) bool) error {
   326  	m.ctrl.T.Helper()
   327  	ret := m.ctrl.Call(m, "IterateBondedValidatorsByPower", arg0, arg1)
   328  	ret0, _ := ret[0].(error)
   329  	return ret0
   330  }
   331  
   332  // IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.
   333  func (mr *MockValidatorSetMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 interface{}) *gomock.Call {
   334  	mr.mock.ctrl.T.Helper()
   335  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateBondedValidatorsByPower", reflect.TypeOf((*MockValidatorSet)(nil).IterateBondedValidatorsByPower), arg0, arg1)
   336  }
   337  
   338  // IterateLastValidators mocks base method.
   339  func (m *MockValidatorSet) IterateLastValidators(arg0 context.Context, arg1 func(int64, types0.ValidatorI) bool) error {
   340  	m.ctrl.T.Helper()
   341  	ret := m.ctrl.Call(m, "IterateLastValidators", arg0, arg1)
   342  	ret0, _ := ret[0].(error)
   343  	return ret0
   344  }
   345  
   346  // IterateLastValidators indicates an expected call of IterateLastValidators.
   347  func (mr *MockValidatorSetMockRecorder) IterateLastValidators(arg0, arg1 interface{}) *gomock.Call {
   348  	mr.mock.ctrl.T.Helper()
   349  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateLastValidators", reflect.TypeOf((*MockValidatorSet)(nil).IterateLastValidators), arg0, arg1)
   350  }
   351  
   352  // IterateValidators mocks base method.
   353  func (m *MockValidatorSet) IterateValidators(arg0 context.Context, arg1 func(int64, types0.ValidatorI) bool) error {
   354  	m.ctrl.T.Helper()
   355  	ret := m.ctrl.Call(m, "IterateValidators", arg0, arg1)
   356  	ret0, _ := ret[0].(error)
   357  	return ret0
   358  }
   359  
   360  // IterateValidators indicates an expected call of IterateValidators.
   361  func (mr *MockValidatorSetMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call {
   362  	mr.mock.ctrl.T.Helper()
   363  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateValidators", reflect.TypeOf((*MockValidatorSet)(nil).IterateValidators), arg0, arg1)
   364  }
   365  
   366  // Jail mocks base method.
   367  func (m *MockValidatorSet) Jail(arg0 context.Context, arg1 types.ConsAddress) error {
   368  	m.ctrl.T.Helper()
   369  	ret := m.ctrl.Call(m, "Jail", arg0, arg1)
   370  	ret0, _ := ret[0].(error)
   371  	return ret0
   372  }
   373  
   374  // Jail indicates an expected call of Jail.
   375  func (mr *MockValidatorSetMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call {
   376  	mr.mock.ctrl.T.Helper()
   377  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jail", reflect.TypeOf((*MockValidatorSet)(nil).Jail), arg0, arg1)
   378  }
   379  
   380  // MaxValidators mocks base method.
   381  func (m *MockValidatorSet) MaxValidators(arg0 context.Context) (uint32, error) {
   382  	m.ctrl.T.Helper()
   383  	ret := m.ctrl.Call(m, "MaxValidators", arg0)
   384  	ret0, _ := ret[0].(uint32)
   385  	ret1, _ := ret[1].(error)
   386  	return ret0, ret1
   387  }
   388  
   389  // MaxValidators indicates an expected call of MaxValidators.
   390  func (mr *MockValidatorSetMockRecorder) MaxValidators(arg0 interface{}) *gomock.Call {
   391  	mr.mock.ctrl.T.Helper()
   392  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxValidators", reflect.TypeOf((*MockValidatorSet)(nil).MaxValidators), arg0)
   393  }
   394  
   395  // Slash mocks base method.
   396  func (m *MockValidatorSet) Slash(arg0 context.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec) (math.Int, error) {
   397  	m.ctrl.T.Helper()
   398  	ret := m.ctrl.Call(m, "Slash", arg0, arg1, arg2, arg3, arg4)
   399  	ret0, _ := ret[0].(math.Int)
   400  	ret1, _ := ret[1].(error)
   401  	return ret0, ret1
   402  }
   403  
   404  // Slash indicates an expected call of Slash.
   405  func (mr *MockValidatorSetMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   406  	mr.mock.ctrl.T.Helper()
   407  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Slash", reflect.TypeOf((*MockValidatorSet)(nil).Slash), arg0, arg1, arg2, arg3, arg4)
   408  }
   409  
   410  // SlashWithInfractionReason mocks base method.
   411  func (m *MockValidatorSet) SlashWithInfractionReason(arg0 context.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 math.LegacyDec, arg5 types0.Infraction) (math.Int, error) {
   412  	m.ctrl.T.Helper()
   413  	ret := m.ctrl.Call(m, "SlashWithInfractionReason", arg0, arg1, arg2, arg3, arg4, arg5)
   414  	ret0, _ := ret[0].(math.Int)
   415  	ret1, _ := ret[1].(error)
   416  	return ret0, ret1
   417  }
   418  
   419  // SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.
   420  func (mr *MockValidatorSetMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
   421  	mr.mock.ctrl.T.Helper()
   422  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SlashWithInfractionReason", reflect.TypeOf((*MockValidatorSet)(nil).SlashWithInfractionReason), arg0, arg1, arg2, arg3, arg4, arg5)
   423  }
   424  
   425  // StakingTokenSupply mocks base method.
   426  func (m *MockValidatorSet) StakingTokenSupply(arg0 context.Context) (math.Int, error) {
   427  	m.ctrl.T.Helper()
   428  	ret := m.ctrl.Call(m, "StakingTokenSupply", arg0)
   429  	ret0, _ := ret[0].(math.Int)
   430  	ret1, _ := ret[1].(error)
   431  	return ret0, ret1
   432  }
   433  
   434  // StakingTokenSupply indicates an expected call of StakingTokenSupply.
   435  func (mr *MockValidatorSetMockRecorder) StakingTokenSupply(arg0 interface{}) *gomock.Call {
   436  	mr.mock.ctrl.T.Helper()
   437  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StakingTokenSupply", reflect.TypeOf((*MockValidatorSet)(nil).StakingTokenSupply), arg0)
   438  }
   439  
   440  // TotalBondedTokens mocks base method.
   441  func (m *MockValidatorSet) TotalBondedTokens(arg0 context.Context) (math.Int, error) {
   442  	m.ctrl.T.Helper()
   443  	ret := m.ctrl.Call(m, "TotalBondedTokens", arg0)
   444  	ret0, _ := ret[0].(math.Int)
   445  	ret1, _ := ret[1].(error)
   446  	return ret0, ret1
   447  }
   448  
   449  // TotalBondedTokens indicates an expected call of TotalBondedTokens.
   450  func (mr *MockValidatorSetMockRecorder) TotalBondedTokens(arg0 interface{}) *gomock.Call {
   451  	mr.mock.ctrl.T.Helper()
   452  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalBondedTokens", reflect.TypeOf((*MockValidatorSet)(nil).TotalBondedTokens), arg0)
   453  }
   454  
   455  // Unjail mocks base method.
   456  func (m *MockValidatorSet) Unjail(arg0 context.Context, arg1 types.ConsAddress) error {
   457  	m.ctrl.T.Helper()
   458  	ret := m.ctrl.Call(m, "Unjail", arg0, arg1)
   459  	ret0, _ := ret[0].(error)
   460  	return ret0
   461  }
   462  
   463  // Unjail indicates an expected call of Unjail.
   464  func (mr *MockValidatorSetMockRecorder) Unjail(arg0, arg1 interface{}) *gomock.Call {
   465  	mr.mock.ctrl.T.Helper()
   466  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unjail", reflect.TypeOf((*MockValidatorSet)(nil).Unjail), arg0, arg1)
   467  }
   468  
   469  // Validator mocks base method.
   470  func (m *MockValidatorSet) Validator(arg0 context.Context, arg1 types.ValAddress) (types0.ValidatorI, error) {
   471  	m.ctrl.T.Helper()
   472  	ret := m.ctrl.Call(m, "Validator", arg0, arg1)
   473  	ret0, _ := ret[0].(types0.ValidatorI)
   474  	ret1, _ := ret[1].(error)
   475  	return ret0, ret1
   476  }
   477  
   478  // Validator indicates an expected call of Validator.
   479  func (mr *MockValidatorSetMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call {
   480  	mr.mock.ctrl.T.Helper()
   481  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validator", reflect.TypeOf((*MockValidatorSet)(nil).Validator), arg0, arg1)
   482  }
   483  
   484  // ValidatorByConsAddr mocks base method.
   485  func (m *MockValidatorSet) ValidatorByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (types0.ValidatorI, error) {
   486  	m.ctrl.T.Helper()
   487  	ret := m.ctrl.Call(m, "ValidatorByConsAddr", arg0, arg1)
   488  	ret0, _ := ret[0].(types0.ValidatorI)
   489  	ret1, _ := ret[1].(error)
   490  	return ret0, ret1
   491  }
   492  
   493  // ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.
   494  func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call {
   495  	mr.mock.ctrl.T.Helper()
   496  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorByConsAddr", reflect.TypeOf((*MockValidatorSet)(nil).ValidatorByConsAddr), arg0, arg1)
   497  }
   498  
   499  // MockDelegationSet is a mock of DelegationSet interface.
   500  type MockDelegationSet struct {
   501  	ctrl     *gomock.Controller
   502  	recorder *MockDelegationSetMockRecorder
   503  }
   504  
   505  // MockDelegationSetMockRecorder is the mock recorder for MockDelegationSet.
   506  type MockDelegationSetMockRecorder struct {
   507  	mock *MockDelegationSet
   508  }
   509  
   510  // NewMockDelegationSet creates a new mock instance.
   511  func NewMockDelegationSet(ctrl *gomock.Controller) *MockDelegationSet {
   512  	mock := &MockDelegationSet{ctrl: ctrl}
   513  	mock.recorder = &MockDelegationSetMockRecorder{mock}
   514  	return mock
   515  }
   516  
   517  // EXPECT returns an object that allows the caller to indicate expected use.
   518  func (m *MockDelegationSet) EXPECT() *MockDelegationSetMockRecorder {
   519  	return m.recorder
   520  }
   521  
   522  // GetValidatorSet mocks base method.
   523  func (m *MockDelegationSet) GetValidatorSet() types0.ValidatorSet {
   524  	m.ctrl.T.Helper()
   525  	ret := m.ctrl.Call(m, "GetValidatorSet")
   526  	ret0, _ := ret[0].(types0.ValidatorSet)
   527  	return ret0
   528  }
   529  
   530  // GetValidatorSet indicates an expected call of GetValidatorSet.
   531  func (mr *MockDelegationSetMockRecorder) GetValidatorSet() *gomock.Call {
   532  	mr.mock.ctrl.T.Helper()
   533  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidatorSet", reflect.TypeOf((*MockDelegationSet)(nil).GetValidatorSet))
   534  }
   535  
   536  // IterateDelegations mocks base method.
   537  func (m *MockDelegationSet) IterateDelegations(ctx context.Context, delegator types.AccAddress, fn func(int64, types0.DelegationI) bool) error {
   538  	m.ctrl.T.Helper()
   539  	ret := m.ctrl.Call(m, "IterateDelegations", ctx, delegator, fn)
   540  	ret0, _ := ret[0].(error)
   541  	return ret0
   542  }
   543  
   544  // IterateDelegations indicates an expected call of IterateDelegations.
   545  func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn interface{}) *gomock.Call {
   546  	mr.mock.ctrl.T.Helper()
   547  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateDelegations", reflect.TypeOf((*MockDelegationSet)(nil).IterateDelegations), ctx, delegator, fn)
   548  }
   549  
   550  // MockStakingHooks is a mock of StakingHooks interface.
   551  type MockStakingHooks struct {
   552  	ctrl     *gomock.Controller
   553  	recorder *MockStakingHooksMockRecorder
   554  }
   555  
   556  // MockStakingHooksMockRecorder is the mock recorder for MockStakingHooks.
   557  type MockStakingHooksMockRecorder struct {
   558  	mock *MockStakingHooks
   559  }
   560  
   561  // NewMockStakingHooks creates a new mock instance.
   562  func NewMockStakingHooks(ctrl *gomock.Controller) *MockStakingHooks {
   563  	mock := &MockStakingHooks{ctrl: ctrl}
   564  	mock.recorder = &MockStakingHooksMockRecorder{mock}
   565  	return mock
   566  }
   567  
   568  // EXPECT returns an object that allows the caller to indicate expected use.
   569  func (m *MockStakingHooks) EXPECT() *MockStakingHooksMockRecorder {
   570  	return m.recorder
   571  }
   572  
   573  // AfterDelegationModified mocks base method.
   574  func (m *MockStakingHooks) AfterDelegationModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   575  	m.ctrl.T.Helper()
   576  	ret := m.ctrl.Call(m, "AfterDelegationModified", ctx, delAddr, valAddr)
   577  	ret0, _ := ret[0].(error)
   578  	return ret0
   579  }
   580  
   581  // AfterDelegationModified indicates an expected call of AfterDelegationModified.
   582  func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
   583  	mr.mock.ctrl.T.Helper()
   584  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDelegationModified", reflect.TypeOf((*MockStakingHooks)(nil).AfterDelegationModified), ctx, delAddr, valAddr)
   585  }
   586  
   587  // AfterUnbondingInitiated mocks base method.
   588  func (m *MockStakingHooks) AfterUnbondingInitiated(ctx context.Context, id uint64) error {
   589  	m.ctrl.T.Helper()
   590  	ret := m.ctrl.Call(m, "AfterUnbondingInitiated", ctx, id)
   591  	ret0, _ := ret[0].(error)
   592  	return ret0
   593  }
   594  
   595  // AfterUnbondingInitiated indicates an expected call of AfterUnbondingInitiated.
   596  func (mr *MockStakingHooksMockRecorder) AfterUnbondingInitiated(ctx, id interface{}) *gomock.Call {
   597  	mr.mock.ctrl.T.Helper()
   598  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterUnbondingInitiated", reflect.TypeOf((*MockStakingHooks)(nil).AfterUnbondingInitiated), ctx, id)
   599  }
   600  
   601  // AfterValidatorBeginUnbonding mocks base method.
   602  func (m *MockStakingHooks) AfterValidatorBeginUnbonding(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   603  	m.ctrl.T.Helper()
   604  	ret := m.ctrl.Call(m, "AfterValidatorBeginUnbonding", ctx, consAddr, valAddr)
   605  	ret0, _ := ret[0].(error)
   606  	return ret0
   607  }
   608  
   609  // AfterValidatorBeginUnbonding indicates an expected call of AfterValidatorBeginUnbonding.
   610  func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr interface{}) *gomock.Call {
   611  	mr.mock.ctrl.T.Helper()
   612  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBeginUnbonding", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBeginUnbonding), ctx, consAddr, valAddr)
   613  }
   614  
   615  // AfterValidatorBonded mocks base method.
   616  func (m *MockStakingHooks) AfterValidatorBonded(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   617  	m.ctrl.T.Helper()
   618  	ret := m.ctrl.Call(m, "AfterValidatorBonded", ctx, consAddr, valAddr)
   619  	ret0, _ := ret[0].(error)
   620  	return ret0
   621  }
   622  
   623  // AfterValidatorBonded indicates an expected call of AfterValidatorBonded.
   624  func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr interface{}) *gomock.Call {
   625  	mr.mock.ctrl.T.Helper()
   626  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorBonded", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorBonded), ctx, consAddr, valAddr)
   627  }
   628  
   629  // AfterValidatorCreated mocks base method.
   630  func (m *MockStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr types.ValAddress) error {
   631  	m.ctrl.T.Helper()
   632  	ret := m.ctrl.Call(m, "AfterValidatorCreated", ctx, valAddr)
   633  	ret0, _ := ret[0].(error)
   634  	return ret0
   635  }
   636  
   637  // AfterValidatorCreated indicates an expected call of AfterValidatorCreated.
   638  func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call {
   639  	mr.mock.ctrl.T.Helper()
   640  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorCreated", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorCreated), ctx, valAddr)
   641  }
   642  
   643  // AfterValidatorRemoved mocks base method.
   644  func (m *MockStakingHooks) AfterValidatorRemoved(ctx context.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error {
   645  	m.ctrl.T.Helper()
   646  	ret := m.ctrl.Call(m, "AfterValidatorRemoved", ctx, consAddr, valAddr)
   647  	ret0, _ := ret[0].(error)
   648  	return ret0
   649  }
   650  
   651  // AfterValidatorRemoved indicates an expected call of AfterValidatorRemoved.
   652  func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr interface{}) *gomock.Call {
   653  	mr.mock.ctrl.T.Helper()
   654  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorRemoved", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorRemoved), ctx, consAddr, valAddr)
   655  }
   656  
   657  // BeforeDelegationCreated mocks base method.
   658  func (m *MockStakingHooks) BeforeDelegationCreated(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   659  	m.ctrl.T.Helper()
   660  	ret := m.ctrl.Call(m, "BeforeDelegationCreated", ctx, delAddr, valAddr)
   661  	ret0, _ := ret[0].(error)
   662  	return ret0
   663  }
   664  
   665  // BeforeDelegationCreated indicates an expected call of BeforeDelegationCreated.
   666  func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr interface{}) *gomock.Call {
   667  	mr.mock.ctrl.T.Helper()
   668  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationCreated", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationCreated), ctx, delAddr, valAddr)
   669  }
   670  
   671  // BeforeDelegationRemoved mocks base method.
   672  func (m *MockStakingHooks) BeforeDelegationRemoved(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   673  	m.ctrl.T.Helper()
   674  	ret := m.ctrl.Call(m, "BeforeDelegationRemoved", ctx, delAddr, valAddr)
   675  	ret0, _ := ret[0].(error)
   676  	return ret0
   677  }
   678  
   679  // BeforeDelegationRemoved indicates an expected call of BeforeDelegationRemoved.
   680  func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr interface{}) *gomock.Call {
   681  	mr.mock.ctrl.T.Helper()
   682  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationRemoved", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationRemoved), ctx, delAddr, valAddr)
   683  }
   684  
   685  // BeforeDelegationSharesModified mocks base method.
   686  func (m *MockStakingHooks) BeforeDelegationSharesModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error {
   687  	m.ctrl.T.Helper()
   688  	ret := m.ctrl.Call(m, "BeforeDelegationSharesModified", ctx, delAddr, valAddr)
   689  	ret0, _ := ret[0].(error)
   690  	return ret0
   691  }
   692  
   693  // BeforeDelegationSharesModified indicates an expected call of BeforeDelegationSharesModified.
   694  func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr interface{}) *gomock.Call {
   695  	mr.mock.ctrl.T.Helper()
   696  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeDelegationSharesModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeDelegationSharesModified), ctx, delAddr, valAddr)
   697  }
   698  
   699  // BeforeValidatorModified mocks base method.
   700  func (m *MockStakingHooks) BeforeValidatorModified(ctx context.Context, valAddr types.ValAddress) error {
   701  	m.ctrl.T.Helper()
   702  	ret := m.ctrl.Call(m, "BeforeValidatorModified", ctx, valAddr)
   703  	ret0, _ := ret[0].(error)
   704  	return ret0
   705  }
   706  
   707  // BeforeValidatorModified indicates an expected call of BeforeValidatorModified.
   708  func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr interface{}) *gomock.Call {
   709  	mr.mock.ctrl.T.Helper()
   710  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorModified", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorModified), ctx, valAddr)
   711  }
   712  
   713  // BeforeValidatorSlashed mocks base method.
   714  func (m *MockStakingHooks) BeforeValidatorSlashed(ctx context.Context, valAddr types.ValAddress, fraction math.LegacyDec) error {
   715  	m.ctrl.T.Helper()
   716  	ret := m.ctrl.Call(m, "BeforeValidatorSlashed", ctx, valAddr, fraction)
   717  	ret0, _ := ret[0].(error)
   718  	return ret0
   719  }
   720  
   721  // BeforeValidatorSlashed indicates an expected call of BeforeValidatorSlashed.
   722  func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction interface{}) *gomock.Call {
   723  	mr.mock.ctrl.T.Helper()
   724  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeforeValidatorSlashed", reflect.TypeOf((*MockStakingHooks)(nil).BeforeValidatorSlashed), ctx, valAddr, fraction)
   725  }