keeper

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServiceServer

func NewMsgServiceServer(keeper Keeper) types.MsgServiceServer

func NewQueryServiceServer

func NewQueryServiceServer(k Keeper) types.QueryServiceServer

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, params paramstypes.Subspace, oracle expected.OracleKeeper) Keeper

func (*Keeper) Admin

func (k *Keeper) Admin(ctx sdk.Context) (s string)

func (*Keeper) DeleteAssetForDenom

func (k *Keeper) DeleteAssetForDenom(ctx sdk.Context, denom string)

func (*Keeper) GetAsset

func (k *Keeper) GetAsset(ctx sdk.Context, id uint64) (asset types.Asset, found bool)

func (*Keeper) GetAssetForDenom

func (k *Keeper) GetAssetForDenom(ctx sdk.Context, denom string) (asset types.Asset, found bool)

func (*Keeper) GetAssetID

func (k *Keeper) GetAssetID(ctx sdk.Context) uint64

func (*Keeper) GetAssets

func (k *Keeper) GetAssets(ctx sdk.Context) (assets []types.Asset)

func (*Keeper) GetPair

func (k *Keeper) GetPair(ctx sdk.Context, id uint64) (pair types.Pair, found bool)

func (*Keeper) GetPairID

func (k *Keeper) GetPairID(ctx sdk.Context) uint64

func (*Keeper) GetPairs

func (k *Keeper) GetPairs(ctx sdk.Context) (pairs []types.Pair)

func (*Keeper) GetParams

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

func (*Keeper) GetPriceForAsset

func (k *Keeper) GetPriceForAsset(ctx sdk.Context, id uint64) (uint64, bool)

func (*Keeper) HandleUpdateAdminProposal

func (k *Keeper) HandleUpdateAdminProposal(ctx sdk.Context, prop *types.UpdateAdminProposal) error

func (*Keeper) HasAsset

func (k *Keeper) HasAsset(ctx sdk.Context, id uint64) bool

func (*Keeper) HasAssetForDenom

func (k *Keeper) HasAssetForDenom(ctx sdk.Context, denom string) bool

func (*Keeper) SetAsset

func (k *Keeper) SetAsset(ctx sdk.Context, asset types.Asset)

func (*Keeper) SetAssetForDenom

func (k *Keeper) SetAssetForDenom(ctx sdk.Context, denom string, id uint64)

func (*Keeper) SetAssetID

func (k *Keeper) SetAssetID(ctx sdk.Context, id uint64)

func (*Keeper) SetPair

func (k *Keeper) SetPair(ctx sdk.Context, pair types.Pair)

func (*Keeper) SetPairID

func (k *Keeper) SetPairID(ctx sdk.Context, id uint64)

func (*Keeper) SetParams

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

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

Jump to

Keyboard shortcuts

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