status-go/geth/types.go

71 lines
1.5 KiB
Go
Raw Normal View History

package geth
import (
"github.com/ethereum/go-ethereum/les/status"
)
type AccountInfo struct {
Address string `json:"address"`
PubKey string `json:"pubkey"`
Mnemonic string `json:"mnemonic"`
Error string `json:"error"`
}
type JSONError struct {
Error string `json:"error"`
}
2016-07-04 16:00:29 +00:00
type AddPeerResult struct {
Success bool `json:"success"`
Error string `json:"error"`
2016-07-04 16:00:29 +00:00
}
2016-07-12 18:10:37 +00:00
type AddWhisperFilterResult struct {
Id int `json:"id"`
Error string `json:"error"`
2016-07-12 18:10:37 +00:00
}
type WhisperMessageEvent struct {
Payload string `json:"payload"`
To string `json:"to"`
From string `json:"from"`
Sent int64 `json:"sent"`
TTL int64 `json:"ttl"`
Hash string `json:"hash"`
}
type SendTransactionEvent struct {
Id string `json:"id"`
Args status.SendTxArgs `json:"args"`
MessageId string `json:"message_id"`
2016-07-12 18:10:37 +00:00
}
type ReturnSendTransactionEvent struct {
Id string `json:"id"`
Args status.SendTxArgs `json:"args"`
MessageId string `json:"message_id"`
ErrorMessage string `json:"error_message"`
ErrorCode string `json:"error_code"`
}
2016-08-09 16:41:42 +00:00
type CompleteTransactionResult struct {
Hash string `json:"hash"`
Error string `json:"error"`
}
type DiscardTransactionResult struct {
Id string `json:"id"`
Error string `json:"error"`
}
2016-07-12 18:10:37 +00:00
type GethEvent struct {
Type string `json:"type"`
Event interface{} `json:"event"`
}
type RPCCall struct {
Id int64
Method string
Params []interface{}
}