Documentation ¶
Index ¶
Constants ¶
View Source
const ( Operator = "operator" Coin = "coin" LockProxyHash = "lock_proxy_hash" ToChainId = "to_chain_id" AssetDenom = "asset_denom" ToLockProxyHash = "to_lock_proxy_hash" )
Variables ¶
This section is empty.
Functions ¶
func CreateAndDelegateCoinRequestHandlerFn ¶
func CreateAndDelegateCoinRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)
RegisterRoutes registers minting 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:"to_chain_id" yaml:"to_chain_id"` ToAssetHash []byte `json:"to_asset_hash" yaml:"to_asset_hash"` InitialAmt *big.Int `json:"initial_amt" yaml:"initial_amt"` }
type LockReq ¶
type LockReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` LockProxy []byte `json:"lock_proxy" yaml:"lock_proxy"` Denom string `json:"denom" yaml:"denom"` ToChainId uint64 `json:"to_chain_id" yaml:"to_chain_id"` ToAddress []byte `json:"to_address" yaml:"to_address"` Amount *big.Int `json:"amount" yaml:"amount"` }
Click to show internal directories.
Click to hide internal directories.