Documentation ¶
Index ¶
- Constants
- Variables
- func NewQuerier(keeper Keeper) sdk.Querier
- type AliasEntry
- type AliasKeeper
- func (keeper *AliasKeeper) AddAlias(ctx sdk.Context, alias string, addr sdk.AccAddress, asDefault bool, ...) (bool, bool)
- func (keeper *AliasKeeper) GetAddressFromAlias(ctx sdk.Context, alias string) ([]byte, bool)
- func (keeper *AliasKeeper) GetAliasListOfAccount(ctx sdk.Context, addr sdk.AccAddress) []string
- func (keeper *AliasKeeper) GetAllAlias(ctx sdk.Context) []AliasEntry
- func (keeper *AliasKeeper) RemoveAlias(ctx sdk.Context, alias string, addr sdk.AccAddress)
- type Keeper
- func (k *Keeper) AddAlias(ctx sdk.Context, alias string, addr sdk.AccAddress, asDefault bool, ...) (bool, bool)
- func (k *Keeper) DeductInt64CetFee(ctx sdk.Context, addr sdk.AccAddress, amt int64) sdk.Error
- func (k *Keeper) GetAddressFromAlias(ctx sdk.Context, alias string) ([]byte, bool)
- func (k *Keeper) GetAliasListOfAccount(ctx sdk.Context, addr sdk.AccAddress) []string
- func (k *Keeper) GetAllAlias(ctx sdk.Context) []AliasEntry
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k *Keeper) IsTokenIssuer(ctx sdk.Context, denom string, addr sdk.AccAddress) bool
- func (k *Keeper) RemoveAlias(ctx sdk.Context, alias string, addr sdk.AccAddress)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type QueryAliasInfoParam
Constants ¶
View Source
const ( QueryAliasInfo = "alias-info" QueryParameters = "parameters" )
View Source
const ( GetAddressFromAlias = 1 ListAliasOfAccount = 2 )
Variables ¶
View Source
var ( AliasToAccountKey = []byte{0x10} AliasToAccountKeyEnd = []byte{0x11} AccountToAliasKey = []byte{0x12} )
Functions ¶
func NewQuerier ¶
creates a querier for asset REST endpoints
Types ¶
type AliasEntry ¶
type AliasEntry struct { Alias string `json:"alias"` Addr sdk.AccAddress `json:"addr"` AsDefault bool `json:"is_default"` }
type AliasKeeper ¶
type AliasKeeper struct {
// contains filtered or unexported fields
}
func NewAliasKeeper ¶
func NewAliasKeeper(key sdk.StoreKey) *AliasKeeper
func (*AliasKeeper) AddAlias ¶
func (keeper *AliasKeeper) AddAlias(ctx sdk.Context, alias string, addr sdk.AccAddress, asDefault bool, maxCount int) (bool, bool)
func (*AliasKeeper) GetAddressFromAlias ¶
func (*AliasKeeper) GetAliasListOfAccount ¶
func (keeper *AliasKeeper) GetAliasListOfAccount(ctx sdk.Context, addr sdk.AccAddress) []string
func (*AliasKeeper) GetAllAlias ¶
func (keeper *AliasKeeper) GetAllAlias(ctx sdk.Context) []AliasEntry
func (*AliasKeeper) RemoveAlias ¶
func (keeper *AliasKeeper) RemoveAlias(ctx sdk.Context, alias string, addr sdk.AccAddress)
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(key sdk.StoreKey, bankKeeper types.ExpectedBankxKeeper, assetKeeper types.ExpectedAssetStatusKeeper, paramstore params.Subspace) Keeper
func (*Keeper) DeductInt64CetFee ¶
func (*Keeper) GetAddressFromAlias ¶
func (*Keeper) GetAliasListOfAccount ¶
func (*Keeper) GetAllAlias ¶
func (k *Keeper) GetAllAlias(ctx sdk.Context) []AliasEntry
func (*Keeper) IsTokenIssuer ¶
func (*Keeper) RemoveAlias ¶
type QueryAliasInfoParam ¶
type QueryAliasInfoParam struct { Owner sdk.AccAddress `json:"owner"` Alias string `json:"alias"` QueryOp int32 `json:"query_op"` }
Click to show internal directories.
Click to hide internal directories.