-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
9b38363
commit 9065da9
Showing
9 changed files
with
185 additions
and
75 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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package testutil | ||
|
||
import ( | ||
"context" | ||
|
||
"cosmossdk.io/core/address" | ||
banktypes "cosmossdk.io/x/bank/types" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// AccountKeeper defines the expected account keeper (noalias) | ||
type AccountKeeper interface { | ||
AddressCodec() address.Codec | ||
GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI | ||
NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI | ||
} | ||
|
||
// BankKeeper extends bank `MsgServer` to mock `Send` and to register handlers in MsgServiceRouter | ||
type BankKeeper interface { | ||
banktypes.MsgServer | ||
|
||
SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error | ||
SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error | ||
GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.