Versions in this module Expand all Collapse all v0 v0.1.1 Apr 1, 2019 v0.1.0 Mar 28, 2019 Changes in this version + func NewHandler(keeper Keeper) sdk.Handler + func RegisterCodec(cdc *codec.Codec) + type Keeper struct + func NewKeeper(coinKeeper bank.Keeper, htlcStoreKey sdk.StoreKey, cdc *codec.Codec) Keeper + func (k Keeper) Clear(ctx sdk.Context) + func (k Keeper) GetHtlc(ctx sdk.Context, hash string) ObjHtlc + func (k Keeper) HasHtlc(ctx sdk.Context, hash string) bool + func (k Keeper) UpsertHtlc(ctx sdk.Context, obj ObjHtlc) + type MsgAddHtlc struct + Amount sdk.Coin + Hash string + Locktime int64 + RedeemAddress sdk.AccAddress + TimeoutAddress sdk.AccAddress + func NewMsgAddHtlc(amount sdk.Coin, hash string, locktime int64, redeemAddress sdk.AccAddress, ...) MsgAddHtlc + func (msg MsgAddHtlc) GetSignBytes() []byte + func (msg MsgAddHtlc) GetSigners() []sdk.AccAddress + func (msg MsgAddHtlc) Route() string + func (msg MsgAddHtlc) Type() string + func (msg MsgAddHtlc) ValidateBasic() sdk.Error + type MsgClearHtlc struct + Sender sdk.AccAddress + func NewMsgClearHtlc(sender sdk.AccAddress) MsgClearHtlc + func (msg MsgClearHtlc) GetSignBytes() []byte + func (msg MsgClearHtlc) GetSigners() []sdk.AccAddress + func (msg MsgClearHtlc) Route() string + func (msg MsgClearHtlc) Type() string + func (msg MsgClearHtlc) ValidateBasic() sdk.Error + type MsgFailHtlc struct + Hash string + Sender sdk.AccAddress + func NewMsgFailHtlc(hash string, sender sdk.AccAddress) MsgFailHtlc + func (msg MsgFailHtlc) GetSignBytes() []byte + func (msg MsgFailHtlc) GetSigners() []sdk.AccAddress + func (msg MsgFailHtlc) Route() string + func (msg MsgFailHtlc) Type() string + func (msg MsgFailHtlc) ValidateBasic() sdk.Error + type MsgRedeemHtlc struct + Preimage string + Sender sdk.AccAddress + func NewMsgRedeemHtlc(preimage string, sender sdk.AccAddress) MsgRedeemHtlc + func (msg MsgRedeemHtlc) GetSignBytes() []byte + func (msg MsgRedeemHtlc) GetSigners() []sdk.AccAddress + func (msg MsgRedeemHtlc) Route() string + func (msg MsgRedeemHtlc) Type() string + func (msg MsgRedeemHtlc) ValidateBasic() sdk.Error + type ObjHtlc struct + Amount sdk.Coin + BlockCreatedAt int64 + Hash string + Locktime int64 + RedeemAddress sdk.AccAddress + Status Status + TimeoutAddress sdk.AccAddress + type Status uint8 + const HtlcCreated + const HtlcFailed + const HtlcRedeemed