Documentation
¶
Index ¶
- Constants
- Variables
- func NewQuerier(keeper Keeper, cdc *codec.Codec) sdk.Querier
- func ParamKeyTable() params.KeyTable
- 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
- type Params
- type QueryAliasInfoParam
Constants ¶
View Source
const ( DefaultFeeForAliasLength2 = 2000000 DefaultFeeForAliasLength3 = 300000 DefaultFeeForAliasLength4 = 40000 DefaultFeeForAliasLength5 = 5000 DefaultFeeForAliasLength6 = 600 DefaultFeeForAliasLength7OrHigher = 70 DefaultMaxAliasCount = 5 )
View Source
const ( GetAddressFromAlias = 1 ListAliasOfAccount = 2 )
View Source
const (
QueryAliasInfo = "alias-info"
)
Variables ¶
View Source
var ( AliasToAccountKey = []byte{0x10} AliasToAccountKeyEnd = []byte{0x11} AccountToAliasKey = []byte{0x12} )
View Source
var ( KeyFeeForAliasLength2 = []byte("FeeForAliasLength2") KeyFeeForAliasLength3 = []byte("FeeForAliasLength3") KeyFeeForAliasLength4 = []byte("FeeForAliasLength4") KeyFeeForAliasLength5 = []byte("FeeForAliasLength5") KeyFeeForAliasLength6 = []byte("FeeForAliasLength6") KeyFeeForAliasLength7OrHigher = []byte("FeeForAliasLength7OrHigher") KeyMaxAliasCount = []byte("MaxAliasCount") )
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 { AliasKeeper *AliasKeeper BankKeeper types.ExpectedBankxKeeper AssetKeeper types.ExpectedAssetStatusKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(key sdk.StoreKey, bankKeeper types.ExpectedBankxKeeper, assetKeeper types.ExpectedAssetStatusKeeper, paramstore params.Subspace) Keeper
type Params ¶
type Params struct { FeeForAliasLength2 int64 `json:"fee_for_alias_length_2"` FeeForAliasLength3 int64 `json:"fee_for_alias_length_3"` FeeForAliasLength4 int64 `json:"fee_for_alias_length_4"` FeeForAliasLength5 int64 `json:"fee_for_alias_length_5"` FeeForAliasLength6 int64 `json:"fee_for_alias_length_6"` FeeForAliasLength7OrHigher int64 `json:"fee_for_alias_length_7_or_higher"` MaxAliasCount int `json:"max_alias_count"` }
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of asset module's parameters. nolint
func (*Params) ValidateGenesis ¶
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.