Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) Burn(ctx sdk.Context, owner string, amount sdk.Coin) error
- func (k Keeper) ClearCurrencies(ctx sdk.Context)
- func (k Keeper) CurrencyMintable(ctx sdk.Context, denom string) bool
- func (k Keeper) GetCurrencies(ctx sdk.Context) types.Currencies
- func (k Keeper) GetCurrency(ctx sdk.Context, denom string) types.Currency
- func (k *Keeper) GetParamSequence(ctx sdk.Context) (seq int64)
- func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetSequence(ctx sdk.Context) int64
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Mint(ctx sdk.Context, recv string, amount sdk.Coin) error
- func (k *Keeper) Mintable(ctx sdk.Context) (mintable bool)
- func (k Keeper) Owner(ctx sdk.Context, denom string) string
- func (k Keeper) SetCurrencies(ctx sdk.Context, currencies types.Currencies)
- func (k Keeper) SetCurrency(ctx sdk.Context, currency types.Currency)
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSequence(ctx sdk.Context, seq types.Sequence)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- type Migrator
- type Querier
- func (k Querier) Currencies(c context.Context, req *types.QueryCurrenciesRequest) (*types.QueryCurrenciesResponse, error)
- func (k Querier) Currency(c context.Context, req *types.QueryCurrencyRequest) (*types.QueryCurrencyResponse, error)
- func (k Querier) MaxAtoloSupply(c context.Context, _ *types.QueryMaxRequest) (*types.QueryMaxResponse, error)
- func (k Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
creates a querier for legacy rest endpoints
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeKey sdk.StoreKey, params paramtypes.Subspace, bankKeeper types.BankKeeper, ) Keeper
func (Keeper) ClearCurrencies ¶
ClearCurrencies clears all currencies
func (Keeper) CurrencyMintable ¶
CurrencyMintable
func (Keeper) GetCurrencies ¶
func (k Keeper) GetCurrencies(ctx sdk.Context) types.Currencies
GetCurrencies returns all supported currency denom list
func (Keeper) GetCurrency ¶
GetCurrency returns an information of a currency
func (*Keeper) GetParamSequence ¶
GetParamSequence returns the parameter sequence
func (Keeper) GetSequence ¶
GetSequence returns a sequence number of current state
func (Keeper) SetCurrencies ¶
func (k Keeper) SetCurrencies(ctx sdk.Context, currencies types.Currencies)
SetCurrencies stores all supported currency denom list
func (Keeper) SetCurrency ¶
SetCurrency stores an item of a currency
func (Keeper) SetSequence ¶
SetSequence stores a sequence number of current state
type Migrator ¶ added in v0.3.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v0.3.0
NewMigrator returns a new Migrator.
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) Currencies ¶
func (k Querier) Currencies(c context.Context, req *types.QueryCurrenciesRequest) (*types.QueryCurrenciesResponse, error)
Currencies queries all supported currency denom list
func (Querier) Currency ¶
func (k Querier) Currency(c context.Context, req *types.QueryCurrencyRequest) (*types.QueryCurrencyResponse, error)
Currency queries an information of a currency
func (Querier) MaxAtoloSupply ¶ added in v0.2.7
func (k Querier) MaxAtoloSupply(c context.Context, _ *types.QueryMaxRequest) (*types.QueryMaxResponse, error)
MaxAtoloSupply queries maximum mintable amount of atolo
func (Querier) Params ¶
func (k Querier) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries the parameters of treasury