2016-06-22 18:56:27 +00:00
|
|
|
package main
|
|
|
|
|
2016-07-27 11:47:41 +00:00
|
|
|
import (
|
|
|
|
"github.com/ethereum/go-ethereum/les"
|
|
|
|
)
|
|
|
|
|
2016-06-22 18:56:27 +00:00
|
|
|
type AccountInfo struct {
|
|
|
|
Address string `json:"address"`
|
|
|
|
PubKey string `json:"pubkey"`
|
|
|
|
Error string `json:"error"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type JSONError struct {
|
|
|
|
Error string `json:"error"`
|
|
|
|
}
|
2016-07-04 16:00:29 +00:00
|
|
|
|
|
|
|
type AddPeerResult struct {
|
2016-07-27 11:47:41 +00:00
|
|
|
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 {
|
2016-07-27 11:47:41 +00:00
|
|
|
Id int `json:"id"`
|
|
|
|
Error string `json:"error"`
|
2016-07-12 18:10:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type WhisperMessageEvent struct {
|
2016-07-27 11:47:41 +00:00
|
|
|
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 {
|
|
|
|
Hash string `json:"hash"`
|
|
|
|
Args les.SendTxArgs `json:"args"`
|
2016-07-12 18:10:37 +00:00
|
|
|
}
|
|
|
|
|
2016-08-09 16:41:42 +00:00
|
|
|
type CompleteTransactionResult struct {
|
|
|
|
Hash string `json:"hash"`
|
|
|
|
Error string `json:"error"`
|
|
|
|
}
|
|
|
|
|
2016-07-12 18:10:37 +00:00
|
|
|
type GethEvent struct {
|
2016-07-27 11:47:41 +00:00
|
|
|
Type string `json:"type"`
|
|
|
|
Event interface{} `json:"event"`
|
|
|
|
}
|