Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) DeleteToken(ctx sdk.Context, symbol string)
- func (k Keeper) GetOwner(ctx sdk.Context, symbol string) (sdk.AccAddress, error)
- func (k Keeper) GetToken(ctx sdk.Context, symbol string) (*types.Token, error)
- func (k Keeper) GetTokensIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetTotalSupply(ctx sdk.Context, symbol string) (sdk.Coins, error)
- func (k Keeper) HasOwner(ctx sdk.Context, symbol string) (bool, error)
- func (k Keeper) IsSymbolPresent(ctx sdk.Context, symbol string) bool
- func (k Keeper) ResolveName(ctx sdk.Context, symbol string) (string, error)
- func (k Keeper) SetName(ctx sdk.Context, symbol string, name string) error
- func (k Keeper) SetOwner(ctx sdk.Context, symbol string, owner sdk.AccAddress) error
- func (k Keeper) SetToken(ctx sdk.Context, symbol string, token *types.Token) error
- func (k Keeper) SetTotalSupply(ctx sdk.Context, symbol string, totalSupply sdk.Coins) error
Constants ¶
const ( QuerySymbols = "symbols" QueryToken = "token" )
query endpoints supported by the assetmanagement Querier
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct { AccountKeeper auth.AccountKeeper CoinKeeper bank.Keeper // contains filtered or unexported fields }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper(accountKeeper auth.AccountKeeper, coinKeeper bank.Keeper, storeKey sdk.StoreKey, cdc *codec.Codec) Keeper
NewKeeper creates new instances of the assetmanagement Keeper
func (Keeper) DeleteToken ¶
DeleteToken - deletes the entire Token metadata struct by symbol
func (Keeper) GetToken ¶
GetToken gets the entire Token metadata struct by symbol. False if not found, true otherwise
func (Keeper) GetTokensIterator ¶
GetTokensIterator - Get an iterator over all symbols in which the keys are the symbols and the values are the token
func (Keeper) GetTotalSupply ¶
GetTotalSupply - gets the current total supply of a symbol
func (Keeper) IsSymbolPresent ¶
IsSymbolPresent - Check if the symbol is present in the store or not
func (Keeper) ResolveName ¶
ResolveName - returns the name string that the symbol resolves to