0g-chain/internal/x/paychan/client/rest/rest.go

25 lines
643 B
Go
Raw Normal View History

2018-07-08 22:09:07 +00:00
package rest
import (
2018-09-01 23:29:51 +00:00
//"github.com/gorilla/mux"
//"github.com/tendermint/go-crypto/keys"
//"github.com/cosmos/cosmos-sdk/client/context"
//"github.com/cosmos/cosmos-sdk/wire"
2018-07-08 22:09:07 +00:00
)
2018-08-24 23:18:41 +00:00
/*
2018-07-08 22:09:07 +00:00
// RegisterRoutes registers paychan-related REST handlers to a router
func RegisterRoutes(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec, kb keys.Keybase) {
//r.HandleFunc("/accounts/{address}/send", SendRequestHandlerFn(cdc, kb, ctx)).Methods("POST")
}
// handler functions ...
// create paychan
// close paychan
// get paychan(s)
// send paychan payment
// get balance from receiver
// get balance from local storage
// handle incoming payment
2018-08-24 23:18:41 +00:00
*/