2015-11-02 07:39:53 -08:00
|
|
|
package types
|
|
|
|
|
2016-01-30 19:36:33 -08:00
|
|
|
type RetCode uint
|
2015-11-02 07:39:53 -08:00
|
|
|
|
|
|
|
// Reserved return codes
|
|
|
|
const (
|
2015-11-27 11:07:16 -05:00
|
|
|
RetCodeOK RetCode = 0
|
|
|
|
RetCodeInternalError RetCode = 1
|
|
|
|
RetCodeUnauthorized RetCode = 2
|
|
|
|
RetCodeInsufficientFees RetCode = 3
|
|
|
|
RetCodeUnknownRequest RetCode = 4
|
2015-12-07 18:16:03 -05:00
|
|
|
RetCodeEncodingError RetCode = 5
|
2016-01-12 14:04:24 -08:00
|
|
|
RetCodeBadNonce RetCode = 6
|
2015-11-02 07:39:53 -08:00
|
|
|
)
|
2015-11-27 11:07:16 -05:00
|
|
|
|
|
|
|
//go:generate stringer -type=RetCode
|
|
|
|
|
|
|
|
// NOTE: The previous comment generates r.String().
|
|
|
|
// To run it, `go get golang.org/x/tools/cmd/stringer`
|
|
|
|
// and `go generate` in tmsp/types
|