rest

package
v0.0.0-...-8470daa Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestPoolID = "pool-id"
)

Rest variable names nolint

Variables

This section is empty.

Functions

func RegisterHandlers

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

RegisterHandlers registers asset-related REST handlers to a router

Types

type CreateLiquidityPoolReq

type CreateLiquidityPoolReq struct {
	BaseReq           rest.BaseReq `json:"base_req" yaml:"base_req"`
	PoolCreator       string       `json:"pool_creator" yaml:"pool_creator"`
	PoolTypeIndex     string       `json:"pool_type_index" yaml:"pool_type_index"`
	ReserveCoinDenoms string       `json:"reserve_coin_denoms" yaml:"reserve_coin_denoms"`
	DepositCoins      string       `json:"deposit_coins" yaml:"deposit_coins"`
}

WithdrawLiquidityPoolReq defines the properties of a Deposit from liquidity Pool request's body

type DepositLiquidityPoolReq

type DepositLiquidityPoolReq struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	Depositor    string       `json:"depositor" yaml:"depositor"`
	PoolID       string       `json:"pool_id" yaml:"pool_id"`
	DepositCoins string       `json:"deposit_coins_amount" yaml:"deposit_coins"`
}

DepositLiquidityPoolReq defines the properties of a Deposit liquidity request's body

type SwapReq

type SwapReq struct {
	BaseReq       rest.BaseReq `json:"base_req" yaml:"base_req"`
	SwapRequester string       `json:"swap_requester" yaml:"swap_requester"`
	PoolID        string       `json:"pool_id" yaml:"pool_id"`
	PoolTypeIndex string       `json:"pool_type_index" yaml:"pool_type_index"`
	SwapType      string       `json:"swap_type" yaml:"swap_type"`
	OfferCoin     string       `json:"offer_coin" yaml:"offer_coin"`
	DemandCoin    string       `json:"demand_coin" yaml:"demand_coin"`
	OrderPrice    string       `json:"order_price" yaml:"order_price"`
}

DepositLiquidityPoolReq defines the properties of a Deposit liquidity request's body

type WithdrawLiquidityPoolReq

type WithdrawLiquidityPoolReq struct {
	BaseReq    rest.BaseReq `json:"base_req" yaml:"base_req"`
	Withdrawer string       `json:"withdrawer" yaml:"withdrawer"`
	PoolID     string       `json:"pool_id" yaml:"pool_id"`
	PoolCoin   string       `json:"pool_coin_amount" yaml:"pool_coin"`
}

WithdrawLiquidityPoolReq defines the properties of a Deposit from liquidity Pool request's body

Jump to

Keyboard shortcuts

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