Versions in this module Expand all Collapse all v0 v0.0.5 Mar 13, 2019 Changes in this version + const CodeNoEffectivePrice + const RouterKey + const StoreKey + func ErrNoEffectivePrice(codespace sdk.CodespaceType, denom string) sdk.Error + func RegisterCodec(cdc *codec.Codec) type Keeper + func (k Keeper) SwapDecCoins(ctx sdk.Context, offerCoin sdk.DecCoin, askDenom string) (sdk.DecCoin, sdk.Error) + type SwapHistory []SwapMsg + func (swaps SwapHistory) String() (out string) v0.0.4 Dec 27, 2018 Changes in this version + const CodeInsufficientSwap + const CodeRecursiveSwap + const CodeUnknownDenom + const DefaultCodespace + func ErrInsufficientSwapCoins(codespace sdk.CodespaceType, rval sdk.Int) sdk.Error + func ErrRecursiveSwap(codespace sdk.CodespaceType, denom string) sdk.Error + func ErrUnknownDenomination(codespace sdk.CodespaceType, denom string) sdk.Error + func NewHandler(k Keeper) sdk.Handler + type Keeper struct + func NewKeeper(ok oracle.Keeper, tk treasury.Keeper, bk bank.Keeper) Keeper + func (k Keeper) SwapCoins(ctx sdk.Context, offerCoin sdk.Coin, askDenom string) (sdk.Coin, sdk.Error) + type SwapMsg struct + AskDenom string + OfferCoin sdk.Coin + Trader sdk.AccAddress + func NewSwapMsg(traderAddress sdk.AccAddress, offerCoin sdk.Coin, askCoin string) SwapMsg + func (msg SwapMsg) GetSignBytes() []byte + func (msg SwapMsg) GetSigners() []sdk.AccAddress + func (msg SwapMsg) Route() string + func (msg SwapMsg) String() string + func (msg SwapMsg) Type() string + func (msg SwapMsg) ValidateBasic() sdk.Error