Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns a handler for "htlc" type messages.
func RegisterCodec ¶
RegisterCodec registers concrete types on the Amino codec.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine.
type MsgAddHtlc ¶
type MsgAddHtlc struct { Amount sdk.Coin Hash string Locktime int64 RedeemAddress sdk.AccAddress TimeoutAddress sdk.AccAddress }
MsgAddHtlc defines a AddHtlc message.
func NewMsgAddHtlc ¶
func NewMsgAddHtlc(amount sdk.Coin, hash string, locktime int64, redeemAddress sdk.AccAddress, timeoutAddress sdk.AccAddress) MsgAddHtlc
NewMsgAddHtlc is the constructor function for MsgAddHtlc.
func (MsgAddHtlc) GetSignBytes ¶
func (msg MsgAddHtlc) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgAddHtlc) GetSigners ¶
func (msg MsgAddHtlc) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgAddHtlc) ValidateBasic ¶
func (msg MsgAddHtlc) ValidateBasic() sdk.Error
ValidateBasic Implements Msg.
type MsgClearHtlc ¶
type MsgClearHtlc struct {
Sender sdk.AccAddress
}
MsgClearHtlc defines the ClearHtlc message.
func NewMsgClearHtlc ¶
func NewMsgClearHtlc(sender sdk.AccAddress) MsgClearHtlc
NewMsgClearHtlc is the constructor function for MsgClearHtlc.
func (MsgClearHtlc) GetSignBytes ¶
func (msg MsgClearHtlc) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgClearHtlc) GetSigners ¶
func (msg MsgClearHtlc) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgClearHtlc) ValidateBasic ¶
func (msg MsgClearHtlc) ValidateBasic() sdk.Error
ValidateBasic Implements Msg.
type MsgFailHtlc ¶
type MsgFailHtlc struct { Hash string Sender sdk.AccAddress }
MsgFailHtlc defines the FailHtlc message.
func NewMsgFailHtlc ¶
func NewMsgFailHtlc(hash string, sender sdk.AccAddress) MsgFailHtlc
NewMsgFailHtlc is the constructor function for MsgFailHtlc.
func (MsgFailHtlc) GetSignBytes ¶
func (msg MsgFailHtlc) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgFailHtlc) GetSigners ¶
func (msg MsgFailHtlc) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgFailHtlc) ValidateBasic ¶
func (msg MsgFailHtlc) ValidateBasic() sdk.Error
ValidateBasic Implements Msg.
type MsgRedeemHtlc ¶
type MsgRedeemHtlc struct { Preimage string Sender sdk.AccAddress }
MsgRedeemHtlc defines the RedeemHtlc message.
func NewMsgRedeemHtlc ¶
func NewMsgRedeemHtlc(preimage string, sender sdk.AccAddress) MsgRedeemHtlc
NewMsgRedeemHtlc is the constructor function for MsgRedeemHtlc.
func (MsgRedeemHtlc) GetSignBytes ¶
func (msg MsgRedeemHtlc) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgRedeemHtlc) GetSigners ¶
func (msg MsgRedeemHtlc) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (MsgRedeemHtlc) ValidateBasic ¶
func (msg MsgRedeemHtlc) ValidateBasic() sdk.Error
ValidateBasic Implements Msg.