-
Notifications
You must be signed in to change notification settings - Fork 15
/
expected_keepers.go
38 lines (35 loc) · 1.17 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
36
37
38
package types // noalias
import (
sdktypes "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
)
// BankKeeper defines the contract needed to be fulfilled for banking and supply
// dependencies.
type BankKeeper interface {
SendCoinsFromModuleToAccount(
ctx sdktypes.Context,
senderModule string,
recipientAddr sdktypes.AccAddress,
amt sdktypes.Coins,
) error
SendCoinsFromModuleToModule(
ctx sdktypes.Context,
senderModule,
recipientModule string,
amt sdktypes.Coins,
) error
SendCoinsFromAccountToModule(
ctx sdktypes.Context,
senderAddr sdktypes.AccAddress,
recipientModule string,
amt sdktypes.Coins,
) error
IsSendEnabledCoins(ctx sdktypes.Context, coins ...sdktypes.Coin) error
BlockedAddr(addr sdktypes.AccAddress) bool
SendCoins(ctx sdktypes.Context, fromAddr sdktypes.AccAddress, toAddr sdktypes.AccAddress, amt sdktypes.Coins) error
InputOutputCoins(ctx sdktypes.Context, inputs []banktypes.Input, outputs []banktypes.Output) error
}
type AccountKeeper interface {
GetModuleAccount(ctx sdktypes.Context, moduleName string) authtypes.ModuleAccountI
}