rest

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestID    = "id"
	RestDenom = "denom"
)

Rest variable names nolint

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(cliCtx client.Context, r *mux.Router)

RegisterHandlers defines routes that get registered by the main application

Types

type ClaimHTLCReq

type ClaimHTLCReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Sender  string       `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               string       `json:"sender" yaml:"sender"`
	To                   string       `json:"to" yaml:"to"`
	ReceiverOnOtherChain string       `json:"receiver_on_other_chain" yaml:"receiver_on_other_chain"`
	SenderOnOtherChain   string       `json:"sender_on_other_chain" yaml:"sender_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"`
	Transfer             bool         `json:"transfer" yaml:"transfer"`
}

CreateHTLCReq defines the properties of an HTLC creation request's body.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL