2018-05-14 16:43:51 -07:00
|
|
|
package rest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/client/context"
|
2018-08-06 11:11:30 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/crypto/keys"
|
2018-05-14 16:43:51 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/wire"
|
2018-08-06 11:11:30 -07:00
|
|
|
|
|
|
|
"github.com/gorilla/mux"
|
2018-05-14 16:43:51 -07:00
|
|
|
)
|
|
|
|
|
2018-05-19 22:43:53 -07:00
|
|
|
// RegisterRoutes registers staking-related REST handlers to a router
|
2018-08-06 11:11:30 -07:00
|
|
|
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *wire.Codec, kb keys.Keybase) {
|
|
|
|
registerQueryRoutes(cliCtx, r, cdc)
|
|
|
|
registerTxRoutes(cliCtx, r, cdc, kb)
|
2018-05-14 16:43:51 -07:00
|
|
|
}
|