2016-01-30 19:36:33 -08:00
|
|
|
// Code generated by protoc-gen-go.
|
|
|
|
// source: types/types.proto
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package types is a generated protocol buffer package.
|
|
|
|
|
|
|
|
It is generated from these files:
|
|
|
|
types/types.proto
|
|
|
|
|
|
|
|
It has these top-level messages:
|
|
|
|
Request
|
|
|
|
Response
|
2016-02-28 18:53:24 -08:00
|
|
|
Validator
|
2016-01-30 19:36:33 -08:00
|
|
|
*/
|
|
|
|
package types
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
2016-01-31 19:56:02 -08:00
|
|
|
type MessageType int32
|
|
|
|
|
|
|
|
const (
|
2016-03-05 19:18:34 -08:00
|
|
|
MessageType_NullMessage MessageType = 0
|
|
|
|
MessageType_Echo MessageType = 1
|
|
|
|
MessageType_Flush MessageType = 2
|
|
|
|
MessageType_Info MessageType = 3
|
|
|
|
MessageType_SetOption MessageType = 4
|
|
|
|
MessageType_Exception MessageType = 5
|
|
|
|
MessageType_AppendTx MessageType = 17
|
|
|
|
MessageType_CheckTx MessageType = 18
|
|
|
|
MessageType_Commit MessageType = 19
|
|
|
|
MessageType_Query MessageType = 20
|
|
|
|
MessageType_InitChain MessageType = 21
|
2016-03-06 17:57:47 -08:00
|
|
|
// BeginBlock = 0x16; NOT USED
|
|
|
|
MessageType_EndBlock MessageType = 23
|
2016-01-31 19:56:02 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
var MessageType_name = map[int32]string{
|
|
|
|
0: "NullMessage",
|
|
|
|
1: "Echo",
|
|
|
|
2: "Flush",
|
|
|
|
3: "Info",
|
|
|
|
4: "SetOption",
|
|
|
|
5: "Exception",
|
|
|
|
17: "AppendTx",
|
|
|
|
18: "CheckTx",
|
2016-02-14 13:11:06 -08:00
|
|
|
19: "Commit",
|
2016-01-31 19:56:02 -08:00
|
|
|
20: "Query",
|
2016-03-05 19:18:34 -08:00
|
|
|
21: "InitChain",
|
|
|
|
23: "EndBlock",
|
2016-01-31 19:56:02 -08:00
|
|
|
}
|
|
|
|
var MessageType_value = map[string]int32{
|
2016-03-05 19:18:34 -08:00
|
|
|
"NullMessage": 0,
|
|
|
|
"Echo": 1,
|
|
|
|
"Flush": 2,
|
|
|
|
"Info": 3,
|
|
|
|
"SetOption": 4,
|
|
|
|
"Exception": 5,
|
|
|
|
"AppendTx": 17,
|
|
|
|
"CheckTx": 18,
|
|
|
|
"Commit": 19,
|
|
|
|
"Query": 20,
|
|
|
|
"InitChain": 21,
|
|
|
|
"EndBlock": 23,
|
2016-01-31 19:56:02 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x MessageType) String() string {
|
|
|
|
return proto.EnumName(MessageType_name, int32(x))
|
|
|
|
}
|
|
|
|
func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
2016-01-31 20:39:43 -08:00
|
|
|
type CodeType int32
|
|
|
|
|
|
|
|
const (
|
2016-03-06 17:57:47 -08:00
|
|
|
CodeType_OK CodeType = 0
|
|
|
|
// General response codes, 0 ~ 99
|
2016-02-05 23:15:08 -08:00
|
|
|
CodeType_InternalError CodeType = 1
|
2016-03-05 19:18:34 -08:00
|
|
|
CodeType_EncodingError CodeType = 2
|
|
|
|
CodeType_BadNonce CodeType = 3
|
|
|
|
CodeType_Unauthorized CodeType = 4
|
|
|
|
CodeType_InsufficientFunds CodeType = 5
|
|
|
|
CodeType_UnknownRequest CodeType = 6
|
|
|
|
// Reserved for basecoin, 100 ~ 199
|
|
|
|
CodeType_BaseEncodingError CodeType = 101
|
|
|
|
CodeType_BaseBadNonce CodeType = 102
|
|
|
|
CodeType_BaseUnknownAccount CodeType = 103
|
|
|
|
CodeType_BaseUnauthorized CodeType = 104
|
|
|
|
CodeType_BaseInsufficientFunds CodeType = 105
|
|
|
|
CodeType_BaseInsufficientFees CodeType = 106
|
|
|
|
// Reserved for governance, 200 ~ 299
|
|
|
|
CodeType_GovUnknownEntity CodeType = 201
|
|
|
|
CodeType_GovUnknownGroup CodeType = 202
|
|
|
|
CodeType_GovUnknownMember CodeType = 203
|
|
|
|
CodeType_GovUnknownProposal CodeType = 204
|
|
|
|
CodeType_GovDuplicateEntity CodeType = 205
|
|
|
|
CodeType_GovDuplicateGroup CodeType = 206
|
|
|
|
CodeType_GovDuplicateMember CodeType = 207
|
|
|
|
CodeType_GovDuplicateProposal CodeType = 208
|
|
|
|
CodeType_GovDuplicateVote CodeType = 209
|
|
|
|
CodeType_GovInvalidVotingPower CodeType = 210
|
2016-01-31 20:39:43 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
var CodeType_name = map[int32]string{
|
2016-03-05 19:18:34 -08:00
|
|
|
0: "OK",
|
|
|
|
1: "InternalError",
|
|
|
|
2: "EncodingError",
|
|
|
|
3: "BadNonce",
|
|
|
|
4: "Unauthorized",
|
|
|
|
5: "InsufficientFunds",
|
|
|
|
6: "UnknownRequest",
|
|
|
|
101: "BaseEncodingError",
|
|
|
|
102: "BaseBadNonce",
|
|
|
|
103: "BaseUnknownAccount",
|
|
|
|
104: "BaseUnauthorized",
|
|
|
|
105: "BaseInsufficientFunds",
|
|
|
|
106: "BaseInsufficientFees",
|
|
|
|
201: "GovUnknownEntity",
|
|
|
|
202: "GovUnknownGroup",
|
|
|
|
203: "GovUnknownMember",
|
|
|
|
204: "GovUnknownProposal",
|
|
|
|
205: "GovDuplicateEntity",
|
|
|
|
206: "GovDuplicateGroup",
|
|
|
|
207: "GovDuplicateMember",
|
|
|
|
208: "GovDuplicateProposal",
|
|
|
|
209: "GovDuplicateVote",
|
|
|
|
210: "GovInvalidVotingPower",
|
2016-01-31 20:39:43 -08:00
|
|
|
}
|
|
|
|
var CodeType_value = map[string]int32{
|
2016-03-05 19:18:34 -08:00
|
|
|
"OK": 0,
|
|
|
|
"InternalError": 1,
|
|
|
|
"EncodingError": 2,
|
|
|
|
"BadNonce": 3,
|
|
|
|
"Unauthorized": 4,
|
|
|
|
"InsufficientFunds": 5,
|
|
|
|
"UnknownRequest": 6,
|
|
|
|
"BaseEncodingError": 101,
|
|
|
|
"BaseBadNonce": 102,
|
|
|
|
"BaseUnknownAccount": 103,
|
|
|
|
"BaseUnauthorized": 104,
|
|
|
|
"BaseInsufficientFunds": 105,
|
|
|
|
"BaseInsufficientFees": 106,
|
|
|
|
"GovUnknownEntity": 201,
|
|
|
|
"GovUnknownGroup": 202,
|
|
|
|
"GovUnknownMember": 203,
|
|
|
|
"GovUnknownProposal": 204,
|
|
|
|
"GovDuplicateEntity": 205,
|
|
|
|
"GovDuplicateGroup": 206,
|
|
|
|
"GovDuplicateMember": 207,
|
|
|
|
"GovDuplicateProposal": 208,
|
|
|
|
"GovDuplicateVote": 209,
|
|
|
|
"GovInvalidVotingPower": 210,
|
2016-01-31 20:39:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x CodeType) String() string {
|
|
|
|
return proto.EnumName(CodeType_name, int32(x))
|
|
|
|
}
|
|
|
|
func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
|
2016-01-30 19:36:33 -08:00
|
|
|
type Request struct {
|
2016-02-28 18:53:24 -08:00
|
|
|
Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
|
|
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
|
|
|
|
Value string `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
|
|
|
|
Validators []*Validator `protobuf:"bytes,5,rep,name=validators" json:"validators,omitempty"`
|
2016-03-05 19:18:34 -08:00
|
|
|
Height uint64 `protobuf:"varint,6,opt,name=height" json:"height,omitempty"`
|
2016-01-30 19:36:33 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Request) Reset() { *m = Request{} }
|
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Request) ProtoMessage() {}
|
|
|
|
func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
2016-02-28 18:53:24 -08:00
|
|
|
func (m *Request) GetValidators() []*Validator {
|
|
|
|
if m != nil {
|
|
|
|
return m.Validators
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-01-30 19:36:33 -08:00
|
|
|
type Response struct {
|
2016-02-28 18:53:24 -08:00
|
|
|
Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
|
|
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
Code CodeType `protobuf:"varint,3,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
|
|
|
|
Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
|
|
|
|
Log string `protobuf:"bytes,5,opt,name=log" json:"log,omitempty"`
|
|
|
|
Validators []*Validator `protobuf:"bytes,6,rep,name=validators" json:"validators,omitempty"`
|
2016-01-30 19:36:33 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) Reset() { *m = Response{} }
|
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
|
2016-02-28 18:53:24 -08:00
|
|
|
func (m *Response) GetValidators() []*Validator {
|
|
|
|
if m != nil {
|
|
|
|
return m.Validators
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Validator struct {
|
|
|
|
PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
|
|
|
|
Power uint64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Validator) Reset() { *m = Validator{} }
|
|
|
|
func (m *Validator) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Validator) ProtoMessage() {}
|
|
|
|
func (*Validator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
|
2016-01-30 19:36:33 -08:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Request)(nil), "types.Request")
|
|
|
|
proto.RegisterType((*Response)(nil), "types.Response")
|
2016-02-28 18:53:24 -08:00
|
|
|
proto.RegisterType((*Validator)(nil), "types.Validator")
|
2016-01-31 19:56:02 -08:00
|
|
|
proto.RegisterEnum("types.MessageType", MessageType_name, MessageType_value)
|
2016-01-31 20:39:43 -08:00
|
|
|
proto.RegisterEnum("types.CodeType", CodeType_name, CodeType_value)
|
2016-01-30 19:36:33 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
2016-03-06 17:57:47 -08:00
|
|
|
// 649 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0xcb, 0x52, 0xdb, 0x4a,
|
|
|
|
0x10, 0xbd, 0x63, 0xcb, 0xc6, 0x6e, 0xf3, 0x18, 0xcf, 0xb5, 0x2f, 0xba, 0x77, 0x45, 0x71, 0xab,
|
|
|
|
0x52, 0x14, 0x0b, 0x92, 0x22, 0xab, 0x2c, 0xc1, 0x31, 0x94, 0x8b, 0xe2, 0x11, 0x05, 0xd8, 0x0b,
|
|
|
|
0xa9, 0x6d, 0x29, 0x16, 0x33, 0x8a, 0x34, 0x02, 0x9c, 0x75, 0xbe, 0x26, 0x3f, 0x90, 0x2f, 0xc8,
|
|
|
|
0x22, 0xef, 0xc7, 0x17, 0xa5, 0x47, 0x92,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