github.com/cosmos/cosmos-sdk@v0.50.10/x/distribution/testutil/expected_keepers_mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: x/distribution/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 types "github.com/cosmos/cosmos-sdk/types" 13 types0 "github.com/cosmos/cosmos-sdk/x/staking/types" 14 gomock "github.com/golang/mock/gomock" 15 ) 16 17 // MockAccountKeeper is a mock of AccountKeeper interface. 18 type MockAccountKeeper struct { 19 ctrl *gomock.Controller 20 recorder *MockAccountKeeperMockRecorder 21 } 22 23 // MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper. 24 type MockAccountKeeperMockRecorder struct { 25 mock *MockAccountKeeper 26 } 27 28 // NewMockAccountKeeper creates a new mock instance. 29 func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper { 30 mock := &MockAccountKeeper{ctrl: ctrl} 31 mock.recorder = &MockAccountKeeperMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder { 37 return m.recorder 38 } 39 40 // AddressCodec mocks base method. 41 func (m *MockAccountKeeper) AddressCodec() address.Codec { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "AddressCodec") 44 ret0, _ := ret[0].(address.Codec) 45 return ret0 46 } 47 48 // AddressCodec indicates an expected call of AddressCodec. 49 func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddressCodec", reflect.TypeOf((*MockAccountKeeper)(nil).AddressCodec)) 52 } 53 54 // GetAccount mocks base method. 55 func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "GetAccount", ctx, addr) 58 ret0, _ := ret[0].(types.AccountI) 59 return ret0 60 } 61 62 // GetAccount indicates an expected call of GetAccount. 63 func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetAccount), ctx, addr) 66 } 67 68 // GetModuleAccount mocks base method. 69 func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, name string) types.ModuleAccountI { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "GetModuleAccount", ctx, name) 72 ret0, _ := ret[0].(types.ModuleAccountI) 73 return ret0 74 } 75 76 // GetModuleAccount indicates an expected call of GetModuleAccount. 77 func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, name interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAccount), ctx, name) 80 } 81 82 // GetModuleAddress mocks base method. 83 func (m *MockAccountKeeper) GetModuleAddress(name string) types.AccAddress { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "GetModuleAddress", name) 86 ret0, _ := ret[0].(types.AccAddress) 87 return ret0 88 } 89 90 // GetModuleAddress indicates an expected call of GetModuleAddress. 91 func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModuleAddress", reflect.TypeOf((*MockAccountKeeper)(nil).GetModuleAddress), name) 94 } 95 96 // SetModuleAccount mocks base method. 97 func (m *MockAccountKeeper) SetModuleAccount(arg0 context.Context, arg1 types.ModuleAccountI) { 98 m.ctrl.T.Helper() 99 m.ctrl.Call(m, "SetModuleAccount", arg0, arg1) 100 } 101 102 // SetModuleAccount indicates an expected call of SetModuleAccount. 103 func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetModuleAccount", reflect.TypeOf((*MockAccountKeeper)(nil).SetModuleAccount), arg0, arg1) 106 } 107 108 // MockBankKeeper is a mock of BankKeeper interface. 109 type MockBankKeeper struct { 110 ctrl *gomock.Controller 111 recorder *MockBankKeeperMockRecorder 112 } 113 114 // MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper. 115 type MockBankKeeperMockRecorder struct { 116 mock *MockBankKeeper 117 } 118 119 // NewMockBankKeeper creates a new mock instance. 120 func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper { 121 mock := &MockBankKeeper{ctrl: ctrl} 122 mock.recorder = &MockBankKeeperMockRecorder{mock} 123 return mock 124 } 125 126 // EXPECT returns an object that allows the caller to indicate expected use. 127 func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder { 128 return m.recorder 129 } 130 131 // BlockedAddr mocks base method. 132 func (m *MockBankKeeper) BlockedAddr(addr types.AccAddress) bool { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "BlockedAddr", addr) 135 ret0, _ := ret[0].(bool) 136 return ret0 137 } 138 139 // BlockedAddr indicates an expected call of BlockedAddr. 140 func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockedAddr", reflect.TypeOf((*MockBankKeeper)(nil).BlockedAddr), addr) 143 } 144 145 // GetAllBalances mocks base method. 146 func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types.AccAddress) types.Coins { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "GetAllBalances", ctx, addr) 149 ret0, _ := ret[0].(types.Coins) 150 return ret0 151 } 152 153 // GetAllBalances indicates an expected call of GetAllBalances. 154 func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBalances", reflect.TypeOf((*MockBankKeeper)(nil).GetAllBalances), ctx, addr) 157 } 158 159 // SendCoinsFromAccountToModule mocks base method. 160 func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "SendCoinsFromAccountToModule", ctx, senderAddr, recipientModule, amt) 163 ret0, _ := ret[0].(error) 164 return ret0 165 } 166 167 // SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule. 168 func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromAccountToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromAccountToModule), ctx, senderAddr, recipientModule, amt) 171 } 172 173 // SendCoinsFromModuleToAccount mocks base method. 174 func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "SendCoinsFromModuleToAccount", ctx, senderModule, recipientAddr, amt) 177 ret0, _ := ret[0].(error) 178 return ret0 179 } 180 181 // SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount. 182 func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToAccount", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToAccount), ctx, senderModule, recipientAddr, amt) 185 } 186 187 // SendCoinsFromModuleToModule mocks base method. 188 func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types.Coins) error { 189 m.ctrl.T.Helper() 190 ret := m.ctrl.Call(m, "SendCoinsFromModuleToModule", ctx, senderModule, recipientModule, amt) 191 ret0, _ := ret[0].(error) 192 return ret0 193 } 194 195 // SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule. 196 func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call { 197 mr.mock.ctrl.T.Helper() 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendCoinsFromModuleToModule", reflect.TypeOf((*MockBankKeeper)(nil).SendCoinsFromModuleToModule), ctx, senderModule, recipientModule, amt) 199 } 200 201 // SpendableCoins mocks base method. 202 func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types.AccAddress) types.Coins { 203 m.ctrl.T.Helper() 204 ret := m.ctrl.Call(m, "SpendableCoins", ctx, addr) 205 ret0, _ := ret[0].(types.Coins) 206 return ret0 207 } 208 209 // SpendableCoins indicates an expected call of SpendableCoins. 210 func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call { 211 mr.mock.ctrl.T.Helper() 212 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpendableCoins", reflect.TypeOf((*MockBankKeeper)(nil).SpendableCoins), ctx, addr) 213 } 214 215 // MockStakingKeeper is a mock of StakingKeeper interface. 216 type MockStakingKeeper struct { 217 ctrl *gomock.Controller 218 recorder *MockStakingKeeperMockRecorder 219 } 220 221 // MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper. 222 type MockStakingKeeperMockRecorder struct { 223 mock *MockStakingKeeper 224 } 225 226 // NewMockStakingKeeper creates a new mock instance. 227 func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper { 228 mock := &MockStakingKeeper{ctrl: ctrl} 229 mock.recorder = &MockStakingKeeperMockRecorder{mock} 230 return mock 231 } 232 233 // EXPECT returns an object that allows the caller to indicate expected use. 234 func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder { 235 return m.recorder 236 } 237 238 // ConsensusAddressCodec mocks base method. 239 func (m *MockStakingKeeper) ConsensusAddressCodec() address.Codec { 240 m.ctrl.T.Helper() 241 ret := m.ctrl.Call(m, "ConsensusAddressCodec") 242 ret0, _ := ret[0].(address.Codec) 243 return ret0 244 } 245 246 // ConsensusAddressCodec indicates an expected call of ConsensusAddressCodec. 247 func (mr *MockStakingKeeperMockRecorder) ConsensusAddressCodec() *gomock.Call { 248 mr.mock.ctrl.T.Helper() 249 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsensusAddressCodec", reflect.TypeOf((*MockStakingKeeper)(nil).ConsensusAddressCodec)) 250 } 251 252 // Delegation mocks base method. 253 func (m *MockStakingKeeper) Delegation(arg0 context.Context, arg1 types.AccAddress, arg2 types.ValAddress) (types0.DelegationI, error) { 254 m.ctrl.T.Helper() 255 ret := m.ctrl.Call(m, "Delegation", arg0, arg1, arg2) 256 ret0, _ := ret[0].(types0.DelegationI) 257 ret1, _ := ret[1].(error) 258 return ret0, ret1 259 } 260 261 // Delegation indicates an expected call of Delegation. 262 func (mr *MockStakingKeeperMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call { 263 mr.mock.ctrl.T.Helper() 264 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delegation", reflect.TypeOf((*MockStakingKeeper)(nil).Delegation), arg0, arg1, arg2) 265 } 266 267 // GetAllDelegatorDelegations mocks base method. 268 func (m *MockStakingKeeper) GetAllDelegatorDelegations(ctx context.Context, delegator types.AccAddress) ([]types0.Delegation, error) { 269 m.ctrl.T.Helper() 270 ret := m.ctrl.Call(m, "GetAllDelegatorDelegations", ctx, delegator) 271 ret0, _ := ret[0].([]types0.Delegation) 272 ret1, _ := ret[1].(error) 273 return ret0, ret1 274 } 275 276 // GetAllDelegatorDelegations indicates an expected call of GetAllDelegatorDelegations. 277 func (mr *MockStakingKeeperMockRecorder) GetAllDelegatorDelegations(ctx, delegator interface{}) *gomock.Call { 278 mr.mock.ctrl.T.Helper() 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllDelegatorDelegations", reflect.TypeOf((*MockStakingKeeper)(nil).GetAllDelegatorDelegations), ctx, delegator) 280 } 281 282 // GetAllSDKDelegations mocks base method. 283 func (m *MockStakingKeeper) GetAllSDKDelegations(ctx context.Context) ([]types0.Delegation, error) { 284 m.ctrl.T.Helper() 285 ret := m.ctrl.Call(m, "GetAllSDKDelegations", ctx) 286 ret0, _ := ret[0].([]types0.Delegation) 287 ret1, _ := ret[1].(error) 288 return ret0, ret1 289 } 290 291 // GetAllSDKDelegations indicates an expected call of GetAllSDKDelegations. 292 func (mr *MockStakingKeeperMockRecorder) GetAllSDKDelegations(ctx interface{}) *gomock.Call { 293 mr.mock.ctrl.T.Helper() 294 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllSDKDelegations", reflect.TypeOf((*MockStakingKeeper)(nil).GetAllSDKDelegations), ctx) 295 } 296 297 // GetAllValidators mocks base method. 298 func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]types0.Validator, error) { 299 m.ctrl.T.Helper() 300 ret := m.ctrl.Call(m, "GetAllValidators", ctx) 301 ret0, _ := ret[0].([]types0.Validator) 302 ret1, _ := ret[1].(error) 303 return ret0, ret1 304 } 305 306 // GetAllValidators indicates an expected call of GetAllValidators. 307 func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx interface{}) *gomock.Call { 308 mr.mock.ctrl.T.Helper() 309 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllValidators", reflect.TypeOf((*MockStakingKeeper)(nil).GetAllValidators), ctx) 310 } 311 312 // IterateDelegations mocks base method. 313 func (m *MockStakingKeeper) IterateDelegations(ctx context.Context, delegator types.AccAddress, fn func(int64, types0.DelegationI) bool) error { 314 m.ctrl.T.Helper() 315 ret := m.ctrl.Call(m, "IterateDelegations", ctx, delegator, fn) 316 ret0, _ := ret[0].(error) 317 return ret0 318 } 319 320 // IterateDelegations indicates an expected call of IterateDelegations. 321 func (mr *MockStakingKeeperMockRecorder) IterateDelegations(ctx, delegator, fn interface{}) *gomock.Call { 322 mr.mock.ctrl.T.Helper() 323 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateDelegations", reflect.TypeOf((*MockStakingKeeper)(nil).IterateDelegations), ctx, delegator, fn) 324 } 325 326 // IterateValidators mocks base method. 327 func (m *MockStakingKeeper) IterateValidators(arg0 context.Context, arg1 func(int64, types0.ValidatorI) bool) error { 328 m.ctrl.T.Helper() 329 ret := m.ctrl.Call(m, "IterateValidators", arg0, arg1) 330 ret0, _ := ret[0].(error) 331 return ret0 332 } 333 334 // IterateValidators indicates an expected call of IterateValidators. 335 func (mr *MockStakingKeeperMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call { 336 mr.mock.ctrl.T.Helper() 337 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterateValidators", reflect.TypeOf((*MockStakingKeeper)(nil).IterateValidators), arg0, arg1) 338 } 339 340 // Validator mocks base method. 341 func (m *MockStakingKeeper) Validator(arg0 context.Context, arg1 types.ValAddress) (types0.ValidatorI, error) { 342 m.ctrl.T.Helper() 343 ret := m.ctrl.Call(m, "Validator", arg0, arg1) 344 ret0, _ := ret[0].(types0.ValidatorI) 345 ret1, _ := ret[1].(error) 346 return ret0, ret1 347 } 348 349 // Validator indicates an expected call of Validator. 350 func (mr *MockStakingKeeperMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call { 351 mr.mock.ctrl.T.Helper() 352 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validator", reflect.TypeOf((*MockStakingKeeper)(nil).Validator), arg0, arg1) 353 } 354 355 // ValidatorAddressCodec mocks base method. 356 func (m *MockStakingKeeper) ValidatorAddressCodec() address.Codec { 357 m.ctrl.T.Helper() 358 ret := m.ctrl.Call(m, "ValidatorAddressCodec") 359 ret0, _ := ret[0].(address.Codec) 360 return ret0 361 } 362 363 // ValidatorAddressCodec indicates an expected call of ValidatorAddressCodec. 364 func (mr *MockStakingKeeperMockRecorder) ValidatorAddressCodec() *gomock.Call { 365 mr.mock.ctrl.T.Helper() 366 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorAddressCodec", reflect.TypeOf((*MockStakingKeeper)(nil).ValidatorAddressCodec)) 367 } 368 369 // ValidatorByConsAddr mocks base method. 370 func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types.ConsAddress) (types0.ValidatorI, error) { 371 m.ctrl.T.Helper() 372 ret := m.ctrl.Call(m, "ValidatorByConsAddr", arg0, arg1) 373 ret0, _ := ret[0].(types0.ValidatorI) 374 ret1, _ := ret[1].(error) 375 return ret0, ret1 376 } 377 378 // ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr. 379 func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call { 380 mr.mock.ctrl.T.Helper() 381 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorByConsAddr", reflect.TypeOf((*MockStakingKeeper)(nil).ValidatorByConsAddr), arg0, arg1) 382 } 383 384 // MockStakingHooks is a mock of StakingHooks interface. 385 type MockStakingHooks struct { 386 ctrl *gomock.Controller 387 recorder *MockStakingHooksMockRecorder 388 } 389 390 // MockStakingHooksMockRecorder is the mock recorder for MockStakingHooks. 391 type MockStakingHooksMockRecorder struct { 392 mock *MockStakingHooks 393 } 394 395 // NewMockStakingHooks creates a new mock instance. 396 func NewMockStakingHooks(ctrl *gomock.Controller) *MockStakingHooks { 397 mock := &MockStakingHooks{ctrl: ctrl} 398 mock.recorder = &MockStakingHooksMockRecorder{mock} 399 return mock 400 } 401 402 // EXPECT returns an object that allows the caller to indicate expected use. 403 func (m *MockStakingHooks) EXPECT() *MockStakingHooksMockRecorder { 404 return m.recorder 405 } 406 407 // AfterDelegationModified mocks base method. 408 func (m *MockStakingHooks) AfterDelegationModified(ctx context.Context, delAddr types.AccAddress, valAddr types.ValAddress) error { 409 m.ctrl.T.Helper() 410 ret := m.ctrl.Call(m, "AfterDelegationModified", ctx, delAddr, valAddr) 411 ret0, _ := ret[0].(error) 412 return ret0 413 } 414 415 // AfterDelegationModified indicates an expected call of AfterDelegationModified. 416 func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call { 417 mr.mock.ctrl.T.Helper() 418 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterDelegationModified", reflect.TypeOf((*MockStakingHooks)(nil).AfterDelegationModified), ctx, delAddr, valAddr) 419 } 420 421 // AfterValidatorCreated mocks base method. 422 func (m *MockStakingHooks) AfterValidatorCreated(ctx context.Context, valAddr types.ValAddress) error { 423 m.ctrl.T.Helper() 424 ret := m.ctrl.Call(m, "AfterValidatorCreated", ctx, valAddr) 425 ret0, _ := ret[0].(error) 426 return ret0 427 } 428 429 // AfterValidatorCreated indicates an expected call of AfterValidatorCreated. 430 func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call { 431 mr.mock.ctrl.T.Helper() 432 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterValidatorCreated", reflect.TypeOf((*MockStakingHooks)(nil).AfterValidatorCreated), ctx, valAddr) 433 }