Documentation ¶
Index ¶
- func NewQuerier(keeper AccountKeeper) sdk.Querier
- type AccountKeeper
- func (ak AccountKeeper) Account(conte context.Context, req *types.QueryAccountRequest) (*types.QueryAccountResponse, error)
- func (ak AccountKeeper) Accounts(c context.Context, req *types.QueryAccountsRequest) (*types.QueryAccountsResponse, error)
- func (ak AccountKeeper) GetAccStateRoot(rootBytes []byte) ethcmn.Hash
- func (ak AccountKeeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account
- func (ak AccountKeeper) GetAllAccounts(ctx sdk.Context) (accounts []exported.Account)
- func (ak AccountKeeper) GetEncodedAccountSize(acc exported.Account) int
- func (ak AccountKeeper) GetNextAccountNumber(ctx sdk.Context) uint64
- func (ak AccountKeeper) GetParams(ctx sdk.Context) (params types.Params)
- func (ak AccountKeeper) GetPubKey(ctx sdk.Context, addr sdk.AccAddress) (crypto.PubKey, error)
- func (ak AccountKeeper) GetSequence(ctx sdk.Context, addr sdk.AccAddress) (uint64, error)
- func (ak AccountKeeper) GetStateRootAndCodeHash(bz []byte) (ethcmn.Hash, []byte)
- func (ak AccountKeeper) IterateAccounts(ctx sdk.Context, cb func(account exported.Account) (stop bool))
- func (ak AccountKeeper) Logger(ctx sdk.Context) log.Logger
- func (ak AccountKeeper) MigrateAccounts(ctx sdk.Context, ...)
- func (ak AccountKeeper) ModifyAccStateRoot(before []byte, rootHash ethcmn.Hash) []byte
- func (ak AccountKeeper) NewAccount(ctx sdk.Context, acc exported.Account) exported.Account
- func (ak AccountKeeper) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account
- func (ak AccountKeeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (ak AccountKeeper) RemoveAccount(ctx sdk.Context, acc exported.Account)
- func (ak AccountKeeper) RetrieveStateRoot(bz []byte) ethcmn.Hash
- func (ak AccountKeeper) SetAccount(ctx sdk.Context, acc exported.Account)
- func (k *AccountKeeper) SetObserverKeeper(observer ObserverI)
- func (ak AccountKeeper) SetParams(ctx sdk.Context, params types.Params)
- type IsSystemFreeHandler
- type ObserverI
- type ValidateMsgHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
func NewQuerier(keeper AccountKeeper) sdk.Querier
NewQuerier creates a querier for auth REST endpoints
Types ¶
type AccountKeeper ¶
type AccountKeeper struct {
// contains filtered or unexported fields
}
AccountKeeper encodes/decodes accounts using the go-amino (binary) encoding/decoding library.
func NewAccountKeeper ¶
func NewAccountKeeper( cdc *codec.Codec, keyMpt 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 (AccountKeeper) Account ¶
func (ak AccountKeeper) Account(conte context.Context, req *types.QueryAccountRequest) (*types.QueryAccountResponse, error)
func (AccountKeeper) Accounts ¶
func (ak AccountKeeper) Accounts(c context.Context, req *types.QueryAccountsRequest) (*types.QueryAccountsResponse, error)
func (AccountKeeper) GetAccStateRoot ¶
func (ak AccountKeeper) GetAccStateRoot(rootBytes []byte) ethcmn.Hash
func (AccountKeeper) GetAccount ¶
func (ak AccountKeeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) exported.Account
GetAccount implements sdk.AccountKeeper.
func (AccountKeeper) GetAllAccounts ¶
func (ak AccountKeeper) GetAllAccounts(ctx sdk.Context) (accounts []exported.Account)
GetAllAccounts returns all accounts in the accountKeeper.
func (AccountKeeper) GetEncodedAccountSize ¶
func (ak AccountKeeper) GetEncodedAccountSize(acc exported.Account) int
func (AccountKeeper) GetNextAccountNumber ¶
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.
func (AccountKeeper) GetParams ¶
func (ak AccountKeeper) GetParams(ctx sdk.Context) (params types.Params)
GetParams gets the auth module's parameters.
func (AccountKeeper) GetPubKey ¶
func (ak AccountKeeper) GetPubKey(ctx sdk.Context, addr sdk.AccAddress) (crypto.PubKey, error)
GetPubKey Returns the PubKey of the account at address
func (AccountKeeper) GetSequence ¶
func (ak AccountKeeper) GetSequence(ctx sdk.Context, addr sdk.AccAddress) (uint64, error)
GetSequence Returns the Sequence of the account at address
func (AccountKeeper) GetStateRootAndCodeHash ¶
func (ak AccountKeeper) GetStateRootAndCodeHash(bz []byte) (ethcmn.Hash, []byte)
func (AccountKeeper) IterateAccounts ¶
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
func (AccountKeeper) Logger ¶
func (ak AccountKeeper) Logger(ctx sdk.Context) log.Logger
Logger returns a module-specific logger.
func (AccountKeeper) MigrateAccounts ¶
func (ak AccountKeeper) MigrateAccounts(ctx sdk.Context, cb func(account exported.Account, key, value []byte) (stop bool))
IterateAccounts iterates over all the stored accounts and performs a callback function
TODO by yxq: deprecated
func (AccountKeeper) ModifyAccStateRoot ¶
func (ak AccountKeeper) ModifyAccStateRoot(before []byte, rootHash ethcmn.Hash) []byte
func (AccountKeeper) NewAccount ¶
NewAccount sets the next account number to a given account interface
func (AccountKeeper) NewAccountWithAddress ¶
func (ak AccountKeeper) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) exported.Account
NewAccountWithAddress implements sdk.AccountKeeper.
func (AccountKeeper) Params ¶
func (ak AccountKeeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns parameters of auth module
func (AccountKeeper) RemoveAccount ¶
func (ak AccountKeeper) RemoveAccount(ctx sdk.Context, acc exported.Account)
RemoveAccount removes an account for the account mapper store. NOTE: this will cause supply invariant violation if called
func (AccountKeeper) RetrieveStateRoot ¶
func (ak AccountKeeper) RetrieveStateRoot(bz []byte) ethcmn.Hash
func (AccountKeeper) SetAccount ¶
func (ak AccountKeeper) SetAccount(ctx sdk.Context, acc exported.Account)
SetAccount implements sdk.AccountKeeper.
func (*AccountKeeper) SetObserverKeeper ¶
func (k *AccountKeeper) SetObserverKeeper(observer ObserverI)