* Migrate keeper codec to use marshaler * Migrate AccountI to types * Did go imports * Fix tests for x/auth * Cleanup std/codec * Sort imports * Fix legacy codec * Add godoc for RegisterInterfaces * Add RegisterInterfaces to std * Fix typo * Fixed merge changes * Eliminate vesting import in auth * Fix lint issues * Fix tests * Addressed comments * Rename interfaces in RegisterInterfaces * Removed codec.proto from std * Minor code cleanup Co-authored-by: Aaron Craelius <aaron@regen.network>
16 lines
528 B
Go
16 lines
528 B
Go
package ante
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"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) types.AccountI
|
|
SetAccount(ctx sdk.Context, acc types.AccountI)
|
|
GetModuleAddress(moduleName string) sdk.AccAddress
|
|
}
|