import "github.com/cosmos/cosmos-sdk/x/auth/keeper"
account.go keeper.go params.go querier.go
func NewQuerier(keeper AccountKeeper) sdk.Querier
NewQuerier creates a querier for auth REST endpoints
type AccountKeeper struct {
// contains filtered or unexported fields
}
AccountKeeper encodes/decodes accounts using the go-amino (binary) encoding/decoding library.
func NewAccountKeeper( cdc *codec.Codec, key sdk.StoreKey, paramstore subspace.Subspace, proto func() exported.Account, ) AccountKeeper
NewAccountKeeper returns a new sdk.AccountKeeper that uses go-amino to (binary) encode and decode concrete sdk.Accounts. nolint
func (ak AccountKeeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account
GetAccount implements sdk.AccountKeeper.
GetAllAccounts returns all accounts in the accountKeeper.
func (ak AccountKeeper) GetNextAccountNumber(ctx sdk.Context) uint64
GetNextAccountNumber returns and increments the global account number counter. If the global account number is not set, it initializes it with value 0.
GetParams gets the auth module's parameters.
func (ak AccountKeeper) GetPubKey(ctx sdk.Context, addr sdk.AccAddress) (crypto.PubKey, sdk.Error)
GetPubKey Returns the PubKey of the account at address
func (ak AccountKeeper) GetSequence(ctx sdk.Context, addr sdk.AccAddress) (uint64, sdk.Error)
GetSequence Returns the Sequence of the account at address
func (ak AccountKeeper) IterateAccounts(ctx sdk.Context, cb func(account exported.Account) (stop bool))
IterateAccounts iterates over all the stored accounts and performs a callback function
Logger returns a module-specific logger.
NewAccount sets the next account number to a given account interface
func (ak AccountKeeper) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account
NewAccountWithAddress implements sdk.AccountKeeper.
RemoveAccount removes an account for the account mapper store. NOTE: this will cause supply invariant violation if called
SetAccount implements sdk.AccountKeeper.
SetParams sets the auth module's parameters.
Package keeper imports 9 packages (graph) and is imported by 2 packages. Updated 2019-10-10. Refresh now. Tools for package owners.