-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #460 from irisnet/feature/update_mt
update mt
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package types | ||
|
||
import ( | ||
"context" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" | ||
) | ||
|
||
// AccountKeeper defines the expected account keeper for query account | ||
type AccountKeeper interface { | ||
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI | ||
GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI | ||
} | ||
|
||
// BankKeeper defines the expected interface needed to retrieve account balances. | ||
type BankKeeper interface { | ||
GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins | ||
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin | ||
LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins | ||
SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins | ||
GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin | ||
LockedCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
} |