Documentation
¶
Index ¶
- func GetPriceIDBytes(id uint64) []byte
- func GetPriceIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendPrice(ctx sdk.Context, price types.Price) uint64
- func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPrice(ctx sdk.Context, id uint64) (val types.Price, found bool)
- func (k Keeper) GetPriceCount(ctx sdk.Context) uint64
- func (k Keeper) GetTokensActualPrice(ctx sdk.Context) (string, string, error)
- func (k Keeper) GetTokensActualPriceInt(ctx sdk.Context) (sdk.Int, sdk.Int, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Price(goCtx context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error)
- func (k Keeper) PriceAll(goCtx context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error)
- func (k Keeper) RemovePrice(ctx sdk.Context, id uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPrice(ctx sdk.Context, price types.Price)
- func (k Keeper) SetPriceCount(ctx sdk.Context, count uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPriceIDBytes ¶
GetPriceIDBytes returns the byte representation of the ID
func GetPriceIDFromBytes ¶
GetPriceIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) AppendPrice ¶
AppendPrice appends a price in the store with a new id and update the count
func (Keeper) GetAllPrice ¶
GetAllPrice returns all price
func (Keeper) GetPriceCount ¶
GetPriceCount get the total number of price
func (Keeper) GetTokensActualPrice ¶
TODO Sometimes the osmosis api does not return the stATOM price Set a more reliable stATOM price source
func (Keeper) GetTokensActualPriceInt ¶
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Price ¶
func (k Keeper) Price(goCtx context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error)
func (Keeper) PriceAll ¶
func (k Keeper) PriceAll(goCtx context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error)
func (Keeper) RemovePrice ¶
RemovePrice removes a price from the store
Click to show internal directories.
Click to hide internal directories.