Documentation ¶
Index ¶
- Constants
- func GetStoreKey(fromDenom string, toDenom string) []byte
- func NewHandler(k Keeper) sdkTypes.Handler
- func NewQuerier(k Keeper, cdc *amino.Codec) sdk.Querier
- func RegisterCodec(cdc *amino.Codec) *amino.Codec
- type Keeper
- func (k Keeper) BuyCoin(ctx sdk.Context, account sdk.AccAddress, reserveAddress sdk.AccAddress, ...) (err error)
- func (k Keeper) CreateExchangeRate(ctx sdk.Context, msg messages.MsgCreate) (ex etypes.ExchangeRate, err error)
- func (k Keeper) Delete(ctx sdk.Context, fromDenom string, toDenom string) (e etypes.ExchangeRate, err error)
- func (k Keeper) DeleteExchangeRate(ctx sdk.Context, msg messages.MsgDelete) (ex etypes.ExchangeRate, err error)
- func (k Keeper) Get(ctx sdk.Context, fromDenom string, toDenom string) (e etypes.ExchangeRate, err error)
- func (k Keeper) RetrieveExchangeRate(ctx sdk.Context, fromDenom string, toDenom string) (ex etypes.ExchangeRate, err error)
- func (k Keeper) SellCoin(ctx sdk.Context, account sdk.AccAddress, reserveAddress sdk.AccAddress, ...) (err error)
- func (k Keeper) Store(ctx sdk.Context, e etypes.ExchangeRate) error
- func (k Keeper) UpdateExchangeRate(ctx sdk.Context, msg messages.MsgUpdate) (ex etypes.ExchangeRate, err error)
- type QueryExchangeParams
Constants ¶
View Source
const (
QueryExchange = "exchange"
)
Variables ¶
This section is empty.
Functions ¶
func GetStoreKey ¶
GetStoreKey return keys to be used as key for store
func NewHandler ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec) *amino.Codec
RegisterWire registers messages into the amino.codec
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper to store ExchangeRate
func (Keeper) CreateExchangeRate ¶
func (Keeper) DeleteExchangeRate ¶
func (Keeper) Get ¶
func (k Keeper) Get( ctx sdk.Context, fromDenom string, toDenom string, ) (e etypes.ExchangeRate, err error)
GetExchangeRate - get exchangeRate from a store
func (Keeper) RetrieveExchangeRate ¶
func (Keeper) UpdateExchangeRate ¶
type QueryExchangeParams ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.