mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-28 09:15:24 +00:00
d04aad5cc9
* fix: remove redundant debt limit param * wip: test pricefeed genesis * fix: pricefeed querier * fix: comments, naming * fix: query path * fix: store methods * fix: query methods * fix: standardize genesis validation
25 lines
591 B
Go
25 lines
591 B
Go
package rest
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/client/context"
|
|
"github.com/cosmos/cosmos-sdk/types/rest"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
const (
|
|
restName = "marketID"
|
|
)
|
|
|
|
type postPriceReq struct {
|
|
BaseReq rest.BaseReq `json:"base_req"`
|
|
MarketID string `json:"market_id"`
|
|
Price string `json:"price"`
|
|
Expiry string `json:"expiry"`
|
|
}
|
|
|
|
// RegisterRoutes - Central function to define routes that get registered by the main application
|
|
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) {
|
|
registerQueryRoutes(cliCtx, r)
|
|
registerTxRoutes(cliCtx, r)
|
|
}
|