-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x/auth/ante: AccountKeeper expected interface used instead of the str… (
#6040) * x/auth/ante: AccountKeeper expected interface used instead of the strict auth.AccountKeeper dependency * CHANGELOG.md update
- Loading branch information
Mikhail Kornilov
authored
Apr 21, 2020
1 parent
80247dd
commit c15f112
Showing
6 changed files
with
35 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package ante | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/x/auth/exported" | ||
"github.com/cosmos/cosmos-sdk/x/auth/types" | ||
) | ||
|
||
// AccountKeeper defines the contract needed for AccountKeeper related APIs. | ||
// Interface provides support to use non-sdk AccountKeeper for AnteHandler's decorators. | ||
type AccountKeeper interface { | ||
GetParams(ctx sdk.Context) (params types.Params) | ||
GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account | ||
SetAccount(ctx sdk.Context, acc exported.Account) | ||
GetModuleAddress(moduleName string) sdk.AccAddress | ||
} |
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