github.com/cosmos/cosmos-sdk@v0.50.10/x/gov/testutil/expected_keepers.go (about) 1 // This file only used to generate mocks 2 3 package testutil 4 5 import ( 6 context "context" 7 8 "cosmossdk.io/math" 9 10 sdk "github.com/cosmos/cosmos-sdk/types" 11 bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" 12 "github.com/cosmos/cosmos-sdk/x/gov/types" 13 ) 14 15 // AccountKeeper extends gov's actual expected AccountKeeper with additional 16 // methods used in tests. 17 type AccountKeeper interface { 18 types.AccountKeeper 19 20 IterateAccounts(ctx context.Context, cb func(account sdk.AccountI) (stop bool)) 21 } 22 23 // BankKeeper extends gov's actual expected BankKeeper with additional 24 // methods used in tests. 25 type BankKeeper interface { 26 bankkeeper.Keeper 27 } 28 29 // StakingKeeper extends gov's actual expected StakingKeeper with additional 30 // methods used in tests. 31 type StakingKeeper interface { 32 types.StakingKeeper 33 34 BondDenom(ctx context.Context) (string, error) 35 TokensFromConsensusPower(ctx context.Context, power int64) math.Int 36 } 37 38 // DistributionKeeper defines the expected distribution keeper 39 type DistributionKeeper interface { 40 FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error 41 }