rest

package
v0.0.0-...-1237470 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Denom   = "denom"
	ChainId = "chain_id"
)

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)

RegisterRoutes registers btcx module REST handlers on the provided router.

Types

type BindAssetHashReq

type BindAssetHashReq struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom       string       `json:"denom" yaml:"denom"`
	ToChainId   uint64       `json:"redeem_script" yaml:"redeem_script"`
	ToAssetHash []byte       `json:"to_asset_hash" yaml:"to_asset_hash"`
}

type CreateCoinReq

type CreateCoinReq struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom        string       `json:"denom" yaml:"denom"`
	RedeemScript string       `json:"redeem_script" yaml:"redeem_script"`
}

type LockReq

type LockReq struct {
	BaseReq          rest.BaseReq `json:"base_req" yaml:"base_req"`
	SourceAssetDenom string       `json:"source_asset_denom" yaml:"source_asset_denom"`
	ToChainId        uint64       `json:"to_Chain_id" yaml:"to_chain_id"`
	ToAddressBs      []byte       `json:"to_address_bs" yaml:"to_address_bs"`
	Value            sdk.Int      `json:"value" yaml:"value"`
}

Jump to

Keyboard shortcuts

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