-
Notifications
You must be signed in to change notification settings - Fork 44
/
expected_keepers.go
35 lines (28 loc) · 1.32 KB
/
expected_keepers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)
// DONTCOVER
// AccountKeeper represents the expected keeper used to interact with x/auth
type AccountKeeper interface {
GetParams(ctx sdk.Context) authtypes.Params
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
SetAccount(ctx sdk.Context, acc authtypes.AccountI)
GetModuleAddress(moduleName string) sdk.AccAddress
}
// BankKeeper represents the expected keeper used to interact with x/bank
type BankKeeper interface {
SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
// Required by auth AnteHandler
IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
SendCoins(ctx sdk.Context, from, to sdk.AccAddress, amt sdk.Coins) error
}
// SubspacesKeeper represents the expected keeper used to interact with x/subspaces
type SubspacesKeeper interface {
UseGrantedFees(ctx sdk.Context, subspaceID uint64, grantee sdk.AccAddress, fees sdk.Coins, msgs []sdk.Msg) bool
}
// AuthDeductFeeDecorator represents the expected keeper used to interact with auth.DeductFeeDecorator
type AuthDeductFeeDecorator interface {
AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
}