Documentation ¶
Index ¶
- Constants
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) BurnCoins(ctx sdk.Context, from sdk.AccAddress, amount sdk.Int, denom string) sdk.Result
- func (k Keeper) FreezeCoins(ctx sdk.Context, from sdk.AccAddress, address sdk.AccAddress, amount sdk.Int, ...) sdk.Result
- func (k Keeper) GetNomineeParams(ctx sdk.Context) []string
- func (k Keeper) GetOwner(ctx sdk.Context, symbol string) (sdk.AccAddress, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetToken(ctx sdk.Context, symbol string) (*types.Token, error)
- func (k Keeper) GetTokensIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) HasOwner(ctx sdk.Context, symbol string) (bool, error)
- func (k Keeper) IsNominee(ctx sdk.Context, nominee string) bool
- func (k Keeper) IsSymbolPresent(ctx sdk.Context, symbol string) bool
- func (k Keeper) IssueToken(ctx sdk.Context, nominee, owner sdk.AccAddress, token types.Token) sdk.Result
- func (k Keeper) MintCoins(ctx sdk.Context, from sdk.AccAddress, amount sdk.Int, denom string) sdk.Result
- func (k Keeper) ResolveName(ctx sdk.Context, symbol string) (string, error)
- func (k Keeper) SetName(ctx sdk.Context, owner sdk.Address, symbol string, name string) error
- func (k Keeper) SetOwner(ctx sdk.Context, owner sdk.Address, symbol string, newOwner sdk.AccAddress) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetToken(ctx sdk.Context, owner sdk.Address, symbol string, token *types.Token) error
- func (k Keeper) UnfreezeCoins(ctx sdk.Context, from sdk.AccAddress, address sdk.AccAddress, amount sdk.Int, ...) sdk.Result
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 {
// 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( storeKey sdk.StoreKey, cdc *codec.Codec, ak auth.AccountKeeper, sk supply.Keeper, paramstore subspace.Subspace, codespace sdk.CodespaceType, ) Keeper
NewKeeper creates new instances of the assetmanagement Keeper
func (Keeper) FreezeCoins ¶
func (Keeper) GetNomineeParams ¶
GetNomineeParams get nominee params from store
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) IsSymbolPresent ¶
IsSymbolPresent - Check if the symbol is present in the store or not
func (Keeper) IssueToken ¶
func (Keeper) ResolveName ¶
ResolveName - returns the name string that the symbol resolves to
func (Keeper) SetOwner ¶
func (k Keeper) SetOwner(ctx sdk.Context, owner sdk.Address, symbol string, newOwner sdk.AccAddress) error
SetOwner - sets the current owner of a symbol
func (Keeper) SetToken ¶
func (k Keeper) SetToken(ctx sdk.Context, owner sdk.Address, symbol string, token *types.Token) error
SetToken sets the entire Token metadata struct by symbol. Owner must be set. Returns success