Documentation
¶
Index ¶
Constants ¶
View Source
const (
RestHashLock = "hash-lock"
)
Rest variable names nolint
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClaimHTLCReq ¶
type ClaimHTLCReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Sender sdk.AccAddress `json:"sender" yaml:"sender"`
Secret string `json:"secret" yaml:"secret"`
}
ClaimHTLCReq defines the properties of an HTLC claim request's body.
type CreateHTLCReq ¶
type CreateHTLCReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Sender sdk.AccAddress `json:"sender" yaml:"sender"`
To sdk.AccAddress `json:"to" yaml:"to"`
ReceiverOnOtherChain string `json:"receiver_on_other_chain" yaml:"receiver_on_other_chain"`
Amount sdk.Coins `json:"amount" yaml:"amount"`
HashLock string `json:"hash_lock" yaml:"hash_lock"`
TimeLock uint64 `json:"time_lock" yaml:"time_lock"`
Timestamp uint64 `json:"timestamp" yaml:"timestamp"`
}
CreateHTLCReq defines the properties of an HTLC creation request's body.
type RefundHTLCReq ¶
type RefundHTLCReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Sender sdk.AccAddress `json:"sender" yaml:"sender"`
}
RefundHTLCReq defines the properties of an HTLC refund request's body.
Click to show internal directories.
Click to hide internal directories.