keeper

package
v1.2.7-0...-4cd777e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

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

func (k Keeper) GetDecParam(ctx sdk.Context, key []byte) (res sdk.Dec)

GetDecParam returns the parameter as specified by key as sdk.Dec

func (Keeper) GetInitialRate

func (k Keeper) GetInitialRate(ctx sdk.Context) (rate sdk.Dec)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns all current parameters as a types.Params instance.

func (Keeper) GetRate

func (k Keeper) GetRate(ctx sdk.Context) sdk.Dec

func (Keeper) GetRateMultiplier

func (k Keeper) GetRateMultiplier(ctx sdk.Context) (multiplier sdk.Dec)

func (Keeper) GetValidExchangesParam

func (k Keeper) GetValidExchangesParam(ctx sdk.Context, key []byte) (res types.ValidExchanges)

GetDecParam returns the parameter as specified by key as types.ValidExchanges

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) SetInitialRate

func (k Keeper) SetInitialRate(ctx sdk.Context, value sdk.Dec)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, value types.Params)

SetParam saves the given key-value parameter to the store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL