Documentation ¶
Index ¶
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) ExchangeDenom(ctx sdk.Context, from, to commontypes.Denom, amt sdk.Coin, ...) error
- func (k Keeper) GetDecParam(ctx sdk.Context, key []byte) (res sdk.Dec)
- func (k Keeper) GetInitialRate(ctx sdk.Context) (rate sdk.Dec)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetRate(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetRateMultiplier(ctx sdk.Context) (multiplier sdk.Dec)
- func (k Keeper) GetValidExchangesParam(ctx sdk.Context, key []byte) (res types.ValidExchanges)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetInitialRate(ctx sdk.Context, value sdk.Dec)
- func (k Keeper) SetParams(ctx sdk.Context, value types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, subspace params.Subspace, sk types.SupplyKeeper, dk types.DistrKeeper, ok types.OracleKeeper) Keeper
func (Keeper) ExchangeDenom ¶
func (k Keeper) ExchangeDenom(ctx sdk.Context, from, to commontypes.Denom, amt sdk.Coin, requester sdk.AccAddress) error
func (Keeper) GetDecParam ¶
GetDecParam returns the parameter as specified by key as sdk.Dec
func (Keeper) GetRateMultiplier ¶
func (Keeper) GetValidExchangesParam ¶
GetDecParam returns the parameter as specified by key as types.ValidExchanges
Click to show internal directories.
Click to hide internal directories.