|
@ -9,9 +9,7 @@ It is generated from these files: |
|
|
types.proto |
|
|
types.proto |
|
|
|
|
|
|
|
|
It has these top-level messages: |
|
|
It has these top-level messages: |
|
|
Request |
|
|
|
|
|
RequestBroadcastTx |
|
|
RequestBroadcastTx |
|
|
Response |
|
|
|
|
|
ResponseBroadcastTx |
|
|
ResponseBroadcastTx |
|
|
*/ |
|
|
*/ |
|
|
package core_grpc |
|
|
package core_grpc |
|
@ -19,6 +17,7 @@ package core_grpc |
|
|
import proto "github.com/golang/protobuf/proto" |
|
|
import proto "github.com/golang/protobuf/proto" |
|
|
import fmt "fmt" |
|
|
import fmt "fmt" |
|
|
import math "math" |
|
|
import math "math" |
|
|
|
|
|
import types "github.com/tendermint/tmsp/types" |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
context "golang.org/x/net/context" |
|
|
context "golang.org/x/net/context" |
|
@ -36,96 +35,6 @@ var _ = math.Inf |
|
|
// proto package needs to be updated.
|
|
|
// proto package needs to be updated.
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
|
|
|
|
type Request struct { |
|
|
|
|
|
// Types that are valid to be assigned to Value:
|
|
|
|
|
|
// *Request_BroadcastTx
|
|
|
|
|
|
Value isRequest_Value `protobuf_oneof:"value"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
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} } |
|
|
|
|
|
|
|
|
|
|
|
type isRequest_Value interface { |
|
|
|
|
|
isRequest_Value() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type Request_BroadcastTx struct { |
|
|
|
|
|
BroadcastTx *RequestBroadcastTx `protobuf:"bytes,1,opt,name=broadcast_tx,json=broadcastTx,oneof"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (*Request_BroadcastTx) isRequest_Value() {} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) GetValue() isRequest_Value { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.Value |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *Request) GetBroadcastTx() *RequestBroadcastTx { |
|
|
|
|
|
if x, ok := m.GetValue().(*Request_BroadcastTx); ok { |
|
|
|
|
|
return x.BroadcastTx |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
|
|
func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
|
|
|
|
|
return _Request_OneofMarshaler, _Request_OneofUnmarshaler, _Request_OneofSizer, []interface{}{ |
|
|
|
|
|
(*Request_BroadcastTx)(nil), |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
|
|
|
|
|
m := msg.(*Request) |
|
|
|
|
|
// value
|
|
|
|
|
|
switch x := m.Value.(type) { |
|
|
|
|
|
case *Request_BroadcastTx: |
|
|
|
|
|
b.EncodeVarint(1<<3 | proto.WireBytes) |
|
|
|
|
|
if err := b.EncodeMessage(x.BroadcastTx); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
case nil: |
|
|
|
|
|
default: |
|
|
|
|
|
return fmt.Errorf("Request.Value has unexpected type %T", x) |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
|
|
|
|
|
m := msg.(*Request) |
|
|
|
|
|
switch tag { |
|
|
|
|
|
case 1: // value.broadcast_tx
|
|
|
|
|
|
if wire != proto.WireBytes { |
|
|
|
|
|
return true, proto.ErrInternalBadWireType |
|
|
|
|
|
} |
|
|
|
|
|
msg := new(RequestBroadcastTx) |
|
|
|
|
|
err := b.DecodeMessage(msg) |
|
|
|
|
|
m.Value = &Request_BroadcastTx{msg} |
|
|
|
|
|
return true, err |
|
|
|
|
|
default: |
|
|
|
|
|
return false, nil |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func _Request_OneofSizer(msg proto.Message) (n int) { |
|
|
|
|
|
m := msg.(*Request) |
|
|
|
|
|
// value
|
|
|
|
|
|
switch x := m.Value.(type) { |
|
|
|
|
|
case *Request_BroadcastTx: |
|
|
|
|
|
s := proto.Size(x.BroadcastTx) |
|
|
|
|
|
n += proto.SizeVarint(1<<3 | proto.WireBytes) |
|
|
|
|
|
n += proto.SizeVarint(uint64(s)) |
|
|
|
|
|
n += s |
|
|
|
|
|
case nil: |
|
|
|
|
|
default: |
|
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
|
|
|
|
|
} |
|
|
|
|
|
return n |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type RequestBroadcastTx struct { |
|
|
type RequestBroadcastTx struct { |
|
|
Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` |
|
|
Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` |
|
|
} |
|
|
} |
|
@ -133,113 +42,34 @@ type RequestBroadcastTx struct { |
|
|
func (m *RequestBroadcastTx) Reset() { *m = RequestBroadcastTx{} } |
|
|
func (m *RequestBroadcastTx) Reset() { *m = RequestBroadcastTx{} } |
|
|
func (m *RequestBroadcastTx) String() string { return proto.CompactTextString(m) } |
|
|
func (m *RequestBroadcastTx) String() string { return proto.CompactTextString(m) } |
|
|
func (*RequestBroadcastTx) ProtoMessage() {} |
|
|
func (*RequestBroadcastTx) ProtoMessage() {} |
|
|
func (*RequestBroadcastTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
|
|
|
|
|
|
|
|
func (*RequestBroadcastTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
|
|
|
|
|
|
|
|
type Response struct { |
|
|
|
|
|
// Types that are valid to be assigned to Value:
|
|
|
|
|
|
// *Response_BroadcastTx
|
|
|
|
|
|
Value isResponse_Value `protobuf_oneof:"value"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
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{2} } |
|
|
|
|
|
|
|
|
|
|
|
type isResponse_Value interface { |
|
|
|
|
|
isResponse_Value() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type Response_BroadcastTx struct { |
|
|
|
|
|
BroadcastTx *ResponseBroadcastTx `protobuf:"bytes,1,opt,name=broadcast_tx,json=broadcastTx,oneof"` |
|
|
|
|
|
|
|
|
type ResponseBroadcastTx struct { |
|
|
|
|
|
CheckTx *types.ResponseCheckTx `protobuf:"bytes,1,opt,name=check_tx,json=checkTx" json:"check_tx,omitempty"` |
|
|
|
|
|
AppendTx *types.ResponseAppendTx `protobuf:"bytes,2,opt,name=append_tx,json=appendTx" json:"append_tx,omitempty"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (*Response_BroadcastTx) isResponse_Value() {} |
|
|
|
|
|
|
|
|
func (m *ResponseBroadcastTx) Reset() { *m = ResponseBroadcastTx{} } |
|
|
|
|
|
func (m *ResponseBroadcastTx) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*ResponseBroadcastTx) ProtoMessage() {} |
|
|
|
|
|
func (*ResponseBroadcastTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
|
|
|
|
|
|
|
|
func (m *Response) GetValue() isResponse_Value { |
|
|
|
|
|
|
|
|
func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx { |
|
|
if m != nil { |
|
|
if m != nil { |
|
|
return m.Value |
|
|
|
|
|
|
|
|
return m.CheckTx |
|
|
} |
|
|
} |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *Response) GetBroadcastTx() *ResponseBroadcastTx { |
|
|
|
|
|
if x, ok := m.GetValue().(*Response_BroadcastTx); ok { |
|
|
|
|
|
return x.BroadcastTx |
|
|
|
|
|
} |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
|
|
|
|
|
func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
|
|
|
|
|
return _Response_OneofMarshaler, _Response_OneofUnmarshaler, _Response_OneofSizer, []interface{}{ |
|
|
|
|
|
(*Response_BroadcastTx)(nil), |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
|
|
|
|
|
m := msg.(*Response) |
|
|
|
|
|
// value
|
|
|
|
|
|
switch x := m.Value.(type) { |
|
|
|
|
|
case *Response_BroadcastTx: |
|
|
|
|
|
b.EncodeVarint(1<<3 | proto.WireBytes) |
|
|
|
|
|
if err := b.EncodeMessage(x.BroadcastTx); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
case nil: |
|
|
|
|
|
default: |
|
|
|
|
|
return fmt.Errorf("Response.Value has unexpected type %T", x) |
|
|
|
|
|
|
|
|
func (m *ResponseBroadcastTx) GetAppendTx() *types.ResponseAppendTx { |
|
|
|
|
|
if m != nil { |
|
|
|
|
|
return m.AppendTx |
|
|
} |
|
|
} |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
|
|
|
|
|
m := msg.(*Response) |
|
|
|
|
|
switch tag { |
|
|
|
|
|
case 1: // value.broadcast_tx
|
|
|
|
|
|
if wire != proto.WireBytes { |
|
|
|
|
|
return true, proto.ErrInternalBadWireType |
|
|
|
|
|
} |
|
|
|
|
|
msg := new(ResponseBroadcastTx) |
|
|
|
|
|
err := b.DecodeMessage(msg) |
|
|
|
|
|
m.Value = &Response_BroadcastTx{msg} |
|
|
|
|
|
return true, err |
|
|
|
|
|
default: |
|
|
|
|
|
return false, nil |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func _Response_OneofSizer(msg proto.Message) (n int) { |
|
|
|
|
|
m := msg.(*Response) |
|
|
|
|
|
// value
|
|
|
|
|
|
switch x := m.Value.(type) { |
|
|
|
|
|
case *Response_BroadcastTx: |
|
|
|
|
|
s := proto.Size(x.BroadcastTx) |
|
|
|
|
|
n += proto.SizeVarint(1<<3 | proto.WireBytes) |
|
|
|
|
|
n += proto.SizeVarint(uint64(s)) |
|
|
|
|
|
n += s |
|
|
|
|
|
case nil: |
|
|
|
|
|
default: |
|
|
|
|
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
|
|
|
|
|
} |
|
|
|
|
|
return n |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type ResponseBroadcastTx struct { |
|
|
|
|
|
Code uint64 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` |
|
|
|
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` |
|
|
|
|
|
Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *ResponseBroadcastTx) Reset() { *m = ResponseBroadcastTx{} } |
|
|
|
|
|
func (m *ResponseBroadcastTx) String() string { return proto.CompactTextString(m) } |
|
|
|
|
|
func (*ResponseBroadcastTx) ProtoMessage() {} |
|
|
|
|
|
func (*ResponseBroadcastTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
|
proto.RegisterType((*Request)(nil), "core_grpc.Request") |
|
|
|
|
|
proto.RegisterType((*RequestBroadcastTx)(nil), "core_grpc.RequestBroadcastTx") |
|
|
proto.RegisterType((*RequestBroadcastTx)(nil), "core_grpc.RequestBroadcastTx") |
|
|
proto.RegisterType((*Response)(nil), "core_grpc.Response") |
|
|
|
|
|
proto.RegisterType((*ResponseBroadcastTx)(nil), "core_grpc.ResponseBroadcastTx") |
|
|
proto.RegisterType((*ResponseBroadcastTx)(nil), "core_grpc.ResponseBroadcastTx") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -318,19 +148,19 @@ var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{ |
|
|
func init() { proto.RegisterFile("types.proto", fileDescriptor0) } |
|
|
func init() { proto.RegisterFile("types.proto", fileDescriptor0) } |
|
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{ |
|
|
var fileDescriptor0 = []byte{ |
|
|
// 222 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
|
|
|
// 223 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0xa9, 0x2c, 0x48, |
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2e, 0xa9, 0x2c, 0x48, |
|
|
0x2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, 0x08, |
|
|
|
|
|
0x62, 0x4f, 0x86, 0x30, 0x84, 0x4c, 0xb8, 0x38, 0x13, 0x0b, 0x0a, 0x80, 0xce, 0x02, 0xe9, 0x61, |
|
|
|
|
|
0x02, 0xeb, 0x11, 0x47, 0xd3, 0xe3, 0x08, 0x96, 0x07, 0x6a, 0xe2, 0x48, 0x84, 0xb2, 0x8c, 0x62, |
|
|
|
|
|
0xb8, 0x78, 0xe0, 0xf6, 0x3a, 0x06, 0x78, 0x0a, 0xf9, 0x70, 0x71, 0x23, 0xbb, 0x43, 0x56, 0x0f, |
|
|
|
|
|
0xee, 0x7d, 0x3d, 0x4c, 0xdf, 0x48, 0xc9, 0xa1, 0x48, 0x63, 0x78, 0x23, 0x89, 0x0d, 0x1c, 0x14, |
|
|
|
|
|
0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x68, 0x73, 0x87, 0xb0, 0x52, 0x01, 0x00, 0x00, |
|
|
} |
|
|
} |