Skip to content

Commit

Permalink
Deleted comments for TODO in #1939
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Kunze committed Aug 8, 2018
1 parent 9ea4d6d commit 94c7507
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions x/stake/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *wire.Cod
delegatorTxsHandlerFn(cliCtx, cdc),
).Methods("GET")

// TODO Tests
// // GET /stake/delegators/{delegatorAddr}/validators // Query all validators that a delegator is bonded to
// r.HandleFunc(
// "/stake/delegators/{delegatorAddr}/validators",
// delegatorValidatorsHandlerFn(cliCtx, cdc),
// ).Methods("GET")

// TODO Tests
// GET /stake/delegators/{delegatorAddr}/validators/{validatorAddr} // Query a validator that a delegator is bonded to
// r.HandleFunc(
// "/stake/delegators/{delegatorAddr}/validators",
// delegatorValidatorHandlerFn(cliCtx, cdc),
// ).Methods("GET")

// GET /stake/delegators/{delegatorAddr}/delegations/{validatorAddr} // Query a delegation between a delegator and a validator
r.HandleFunc(
"/stake/delegators/{delegatorAddr}/delegations/{validatorAddr}",
Expand Down Expand Up @@ -165,6 +151,7 @@ func delegatorHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.Handler
}
}

// nolint gocyclo
// HTTP request handler to query all staking txs (msgs) from a delegator
func delegatorTxsHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 94c7507

Please sign in to comment.