aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/message.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-01-13 13:44:56 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-01-13 13:44:56 +0800
commitb2112729faa2263fe0dbf6f735339e27608ae614 (patch)
tree099020852839f85b257677b6c2ac447ba0b55dd4 /rpc/message.go
parent32bed50ba107ff69ff489e4df6f935fd404a5caa (diff)
downloadgo-tangerine-b2112729faa2263fe0dbf6f735339e27608ae614.tar.gz
go-tangerine-b2112729faa2263fe0dbf6f735339e27608ae614.tar.zst
go-tangerine-b2112729faa2263fe0dbf6f735339e27608ae614.zip
cleanup
Diffstat (limited to 'rpc/message.go')
-rw-r--r--rpc/message.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/rpc/message.go b/rpc/message.go
index f520548c9..8aadfa691 100644
--- a/rpc/message.go
+++ b/rpc/message.go
@@ -4,8 +4,6 @@ import (
"bytes"
"encoding/json"
"errors"
-
- // "github.com/ethereum/go-ethereum/ethutil"
)
const (
@@ -16,30 +14,11 @@ const (
ErrorDecodeArgs = "Error: Could not decode arguments"
)
-// type JsonResponse interface {
-// }
-
type ErrorResponse struct {
Error bool `json:"error"`
ErrorText string `json:"errorText"`
}
-// type SuccessRes struct {
-// Error bool `json:"error"`
-// Result JsonResponse `json:"result"`
-// }
-
-// type Message struct {
-// Call string `json:"call"`
-// Args []interface{} `json:"args"`
-// Id int `json:"_id"`
-// Data interface{} `json:"data"`
-// }
-
-// func (self *Message) Arguments() *ethutil.Value {
-// return ethutil.NewValue(self.Args)
-// }
-
type RpcSuccessResponse struct {
ID int `json:"id"`
JsonRpc string `json:"jsonrpc"`