|
|
@ -3,13 +3,14 @@ |
|
|
|
|
|
|
|
package walletrpc |
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto" |
|
|
|
import fmt "fmt" |
|
|
|
import math "math" |
|
|
|
|
|
|
|
import ( |
|
|
|
context "golang.org/x/net/context" |
|
|
|
context "context" |
|
|
|
fmt "fmt" |
|
|
|
proto "github.com/golang/protobuf/proto" |
|
|
|
grpc "google.golang.org/grpc" |
|
|
|
codes "google.golang.org/grpc/codes" |
|
|
|
status "google.golang.org/grpc/status" |
|
|
|
math "math" |
|
|
|
) |
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
@ -21,7 +22,7 @@ var _ = math.Inf |
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
// A BlockID message contains identifiers to select a block: a height or a
|
|
|
|
// hash. If the hash is present it takes precedence.
|
|
|
@ -37,16 +38,17 @@ func (m *BlockID) Reset() { *m = BlockID{} } |
|
|
|
func (m *BlockID) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*BlockID) ProtoMessage() {} |
|
|
|
func (*BlockID) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{0} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{0} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *BlockID) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_BlockID.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_BlockID.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *BlockID) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_BlockID.Merge(dst, src) |
|
|
|
func (m *BlockID) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_BlockID.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *BlockID) XXX_Size() int { |
|
|
|
return xxx_messageInfo_BlockID.Size(m) |
|
|
@ -86,16 +88,17 @@ func (m *BlockRange) Reset() { *m = BlockRange{} } |
|
|
|
func (m *BlockRange) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*BlockRange) ProtoMessage() {} |
|
|
|
func (*BlockRange) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{1} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{1} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *BlockRange) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_BlockRange.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_BlockRange.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *BlockRange) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_BlockRange.Merge(dst, src) |
|
|
|
func (m *BlockRange) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_BlockRange.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *BlockRange) XXX_Size() int { |
|
|
|
return xxx_messageInfo_BlockRange.Size(m) |
|
|
@ -135,16 +138,17 @@ func (m *TxFilter) Reset() { *m = TxFilter{} } |
|
|
|
func (m *TxFilter) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*TxFilter) ProtoMessage() {} |
|
|
|
func (*TxFilter) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{2} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{2} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxFilter) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_TxFilter.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *TxFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_TxFilter.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *TxFilter) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_TxFilter.Merge(dst, src) |
|
|
|
func (m *TxFilter) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_TxFilter.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *TxFilter) XXX_Size() int { |
|
|
|
return xxx_messageInfo_TxFilter.Size(m) |
|
|
@ -188,16 +192,17 @@ func (m *RawTransaction) Reset() { *m = RawTransaction{} } |
|
|
|
func (m *RawTransaction) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*RawTransaction) ProtoMessage() {} |
|
|
|
func (*RawTransaction) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{3} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{3} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *RawTransaction) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_RawTransaction.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *RawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_RawTransaction.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *RawTransaction) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_RawTransaction.Merge(dst, src) |
|
|
|
func (m *RawTransaction) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_RawTransaction.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *RawTransaction) XXX_Size() int { |
|
|
|
return xxx_messageInfo_RawTransaction.Size(m) |
|
|
@ -227,16 +232,17 @@ func (m *SendResponse) Reset() { *m = SendResponse{} } |
|
|
|
func (m *SendResponse) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*SendResponse) ProtoMessage() {} |
|
|
|
func (*SendResponse) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{4} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{4} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *SendResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_SendResponse.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *SendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_SendResponse.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *SendResponse) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_SendResponse.Merge(dst, src) |
|
|
|
func (m *SendResponse) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_SendResponse.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *SendResponse) XXX_Size() int { |
|
|
|
return xxx_messageInfo_SendResponse.Size(m) |
|
|
@ -272,16 +278,17 @@ func (m *ChainSpec) Reset() { *m = ChainSpec{} } |
|
|
|
func (m *ChainSpec) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*ChainSpec) ProtoMessage() {} |
|
|
|
func (*ChainSpec) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_service_087f17e455cf31eb, []int{5} |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{5} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *ChainSpec) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_ChainSpec.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *ChainSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_ChainSpec.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (dst *ChainSpec) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_ChainSpec.Merge(dst, src) |
|
|
|
func (m *ChainSpec) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_ChainSpec.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *ChainSpec) XXX_Size() int { |
|
|
|
return xxx_messageInfo_ChainSpec.Size(m) |
|
|
@ -292,6 +299,37 @@ func (m *ChainSpec) XXX_DiscardUnknown() { |
|
|
|
|
|
|
|
var xxx_messageInfo_ChainSpec proto.InternalMessageInfo |
|
|
|
|
|
|
|
type Empty struct { |
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Empty) Reset() { *m = Empty{} } |
|
|
|
func (m *Empty) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*Empty) ProtoMessage() {} |
|
|
|
func (*Empty) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_a0b84a42fa06f626, []int{6} |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Empty) XXX_Unmarshal(b []byte) error { |
|
|
|
return xxx_messageInfo_Empty.Unmarshal(m, b) |
|
|
|
} |
|
|
|
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
|
|
|
} |
|
|
|
func (m *Empty) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_Empty.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *Empty) XXX_Size() int { |
|
|
|
return xxx_messageInfo_Empty.Size(m) |
|
|
|
} |
|
|
|
func (m *Empty) XXX_DiscardUnknown() { |
|
|
|
xxx_messageInfo_Empty.DiscardUnknown(m) |
|
|
|
} |
|
|
|
|
|
|
|
var xxx_messageInfo_Empty proto.InternalMessageInfo |
|
|
|
|
|
|
|
func init() { |
|
|
|
proto.RegisterType((*BlockID)(nil), "cash.z.wallet.sdk.rpc.BlockID") |
|
|
|
proto.RegisterType((*BlockRange)(nil), "cash.z.wallet.sdk.rpc.BlockRange") |
|
|
@ -299,6 +337,41 @@ func init() { |
|
|
|
proto.RegisterType((*RawTransaction)(nil), "cash.z.wallet.sdk.rpc.RawTransaction") |
|
|
|
proto.RegisterType((*SendResponse)(nil), "cash.z.wallet.sdk.rpc.SendResponse") |
|
|
|
proto.RegisterType((*ChainSpec)(nil), "cash.z.wallet.sdk.rpc.ChainSpec") |
|
|
|
proto.RegisterType((*Empty)(nil), "cash.z.wallet.sdk.rpc.Empty") |
|
|
|
} |
|
|
|
|
|
|
|
func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) } |
|
|
|
|
|
|
|
var fileDescriptor_a0b84a42fa06f626 = []byte{ |
|
|
|
// 444 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5f, 0x4f, 0x13, 0x41, |
|
|
|
0x10, 0x6f, 0xa5, 0x05, 0x3a, 0x2d, 0x18, 0x27, 0x62, 0x48, 0x43, 0xb4, 0xae, 0x9a, 0xf0, 0x74, |
|
|
|
0x21, 0xa8, 0x5f, 0x80, 0xaa, 0x84, 0x04, 0x13, 0xdd, 0xde, 0x13, 0x3e, 0x90, 0x65, 0x6f, 0xe8, |
|
|
|
0x9d, 0xb4, 0xbb, 0x97, 0xdd, 0x8d, 0x54, 0x3f, 0x93, 0x1f, 0xd2, 0xdc, 0x6c, 0xc1, 0x92, 0x78, |
|
|
|
0xf6, 0xde, 0x76, 0x76, 0x7f, 0x7f, 0xe6, 0xdf, 0xc2, 0x8e, 0x27, 0xf7, 0xa3, 0xd0, 0x94, 0x94, |
|
|
|
0xce, 0x06, 0x8b, 0x7b, 0x5a, 0xf9, 0x3c, 0xf9, 0x95, 0xdc, 0xaa, 0xd9, 0x8c, 0x42, 0xe2, 0xb3, |
|
|
|
0x9b, 0xc4, 0x95, 0x7a, 0xb8, 0xa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, 0x00, |
|
|
|
} |
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
@ -318,6 +391,7 @@ type CompactTxStreamerClient interface { |
|
|
|
GetBlockRange(ctx context.Context, in *BlockRange, opts ...grpc.CallOption) (CompactTxStreamer_GetBlockRangeClient, error) |
|
|
|
GetTransaction(ctx context.Context, in *TxFilter, opts ...grpc.CallOption) (*RawTransaction, error) |
|
|
|
SendTransaction(ctx context.Context, in *RawTransaction, opts ...grpc.CallOption) (*SendResponse, error) |
|
|
|
GetLightdInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SendResponse, error) |
|
|
|
} |
|
|
|
|
|
|
|
type compactTxStreamerClient struct { |
|
|
@ -396,6 +470,15 @@ func (c *compactTxStreamerClient) SendTransaction(ctx context.Context, in *RawTr |
|
|
|
return out, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (c *compactTxStreamerClient) GetLightdInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SendResponse, error) { |
|
|
|
out := new(SendResponse) |
|
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLightdInfo", in, out, opts...) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return out, nil |
|
|
|
} |
|
|
|
|
|
|
|
// CompactTxStreamerServer is the server API for CompactTxStreamer service.
|
|
|
|
type CompactTxStreamerServer interface { |
|
|
|
GetLatestBlock(context.Context, *ChainSpec) (*BlockID, error) |
|
|
@ -403,6 +486,30 @@ type CompactTxStreamerServer interface { |
|
|
|
GetBlockRange(*BlockRange, CompactTxStreamer_GetBlockRangeServer) error |
|
|
|
GetTransaction(context.Context, *TxFilter) (*RawTransaction, error) |
|
|
|
SendTransaction(context.Context, *RawTransaction) (*SendResponse, error) |
|
|
|
GetLightdInfo(context.Context, *Empty) (*SendResponse, error) |
|
|
|
} |
|
|
|
|
|
|
|
// UnimplementedCompactTxStreamerServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedCompactTxStreamerServer struct { |
|
|
|
} |
|
|
|
|
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetLatestBlock(ctx context.Context, req *ChainSpec) (*BlockID, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLatestBlock not implemented") |
|
|
|
} |
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetBlock(ctx context.Context, req *BlockID) (*CompactBlock, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBlock not implemented") |
|
|
|
} |
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetBlockRange(req *BlockRange, srv CompactTxStreamer_GetBlockRangeServer) error { |
|
|
|
return status.Errorf(codes.Unimplemented, "method GetBlockRange not implemented") |
|
|
|
} |
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetTransaction(ctx context.Context, req *TxFilter) (*RawTransaction, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented") |
|
|
|
} |
|
|
|
func (*UnimplementedCompactTxStreamerServer) SendTransaction(ctx context.Context, req *RawTransaction) (*SendResponse, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented") |
|
|
|
} |
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetLightdInfo(ctx context.Context, req *Empty) (*SendResponse, error) { |
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLightdInfo not implemented") |
|
|
|
} |
|
|
|
|
|
|
|
func RegisterCompactTxStreamerServer(s *grpc.Server, srv CompactTxStreamerServer) { |
|
|
@ -502,6 +609,24 @@ func _CompactTxStreamer_SendTransaction_Handler(srv interface{}, ctx context.Con |
|
|
|
return interceptor(ctx, in, info, handler) |
|
|
|
} |
|
|
|
|
|
|
|
func _CompactTxStreamer_GetLightdInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
in := new(Empty) |
|
|
|
if err := dec(in); err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
if interceptor == nil { |
|
|
|
return srv.(CompactTxStreamerServer).GetLightdInfo(ctx, in) |
|
|
|
} |
|
|
|
info := &grpc.UnaryServerInfo{ |
|
|
|
Server: srv, |
|
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLightdInfo", |
|
|
|
} |
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
|
|
|
return srv.(CompactTxStreamerServer).GetLightdInfo(ctx, req.(*Empty)) |
|
|
|
} |
|
|
|
return interceptor(ctx, in, info, handler) |
|
|
|
} |
|
|
|
|
|
|
|
var _CompactTxStreamer_serviceDesc = grpc.ServiceDesc{ |
|
|
|
ServiceName: "cash.z.wallet.sdk.rpc.CompactTxStreamer", |
|
|
|
HandlerType: (*CompactTxStreamerServer)(nil), |
|
|
@ -522,6 +647,10 @@ var _CompactTxStreamer_serviceDesc = grpc.ServiceDesc{ |
|
|
|
MethodName: "SendTransaction", |
|
|
|
Handler: _CompactTxStreamer_SendTransaction_Handler, |
|
|
|
}, |
|
|
|
{ |
|
|
|
MethodName: "GetLightdInfo", |
|
|
|
Handler: _CompactTxStreamer_GetLightdInfo_Handler, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Streams: []grpc.StreamDesc{ |
|
|
|
{ |
|
|
@ -532,36 +661,3 @@ var _CompactTxStreamer_serviceDesc = grpc.ServiceDesc{ |
|
|
|
}, |
|
|
|
Metadata: "service.proto", |
|
|
|
} |
|
|
|
|
|
|
|
func init() { proto.RegisterFile("service.proto", fileDescriptor_service_087f17e455cf31eb) } |
|
|
|
|
|
|
|
var fileDescriptor_service_087f17e455cf31eb = []byte{ |
|
|
|
// 420 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x51, 0x6f, 0xd3, 0x30, |
|
|
|
0x10, 0xc7, 0x1b, 0xda, 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