lnrpc: add new SendCoins RPC to service
This commit adds a new RPC to the RPC server: “sendcoins”. This RPC is identical to “sendmany” with one small change: the level of send parallelization is 1. This is useful when one wishes to simply send coins to a friend and/or a payment.
This commit is contained in:
parent
e22734f9cf
commit
6e5fb13a0d
278
lnrpc/rpc.pb.go
278
lnrpc/rpc.pb.go
@ -13,6 +13,8 @@ It has these top-level messages:
|
||||
LightningAddress
|
||||
SendManyRequest
|
||||
SendManyResponse
|
||||
SendCoinsRequest
|
||||
SendCoinsResponse
|
||||
NewAddressRequest
|
||||
NewAddressResponse
|
||||
ConnectPeerRequest
|
||||
@ -72,7 +74,7 @@ func (x NewAddressRequest_AddressType) String() string {
|
||||
return proto.EnumName(NewAddressRequest_AddressType_name, int32(x))
|
||||
}
|
||||
func (NewAddressRequest_AddressType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{4, 0}
|
||||
return fileDescriptor0, []int{6, 0}
|
||||
}
|
||||
|
||||
type ChannelPoint struct {
|
||||
@ -120,6 +122,25 @@ func (m *SendManyResponse) String() string { return proto.CompactText
|
||||
func (*SendManyResponse) ProtoMessage() {}
|
||||
func (*SendManyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
|
||||
type SendCoinsRequest struct {
|
||||
Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
|
||||
Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
|
||||
}
|
||||
|
||||
func (m *SendCoinsRequest) Reset() { *m = SendCoinsRequest{} }
|
||||
func (m *SendCoinsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SendCoinsRequest) ProtoMessage() {}
|
||||
func (*SendCoinsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
|
||||
type SendCoinsResponse struct {
|
||||
Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"`
|
||||
}
|
||||
|
||||
func (m *SendCoinsResponse) Reset() { *m = SendCoinsResponse{} }
|
||||
func (m *SendCoinsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SendCoinsResponse) ProtoMessage() {}
|
||||
func (*SendCoinsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
|
||||
type NewAddressRequest struct {
|
||||
Type NewAddressRequest_AddressType `protobuf:"varint,1,opt,name=type,enum=lnrpc.NewAddressRequest_AddressType" json:"type,omitempty"`
|
||||
}
|
||||
@ -127,7 +148,7 @@ type NewAddressRequest struct {
|
||||
func (m *NewAddressRequest) Reset() { *m = NewAddressRequest{} }
|
||||
func (m *NewAddressRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*NewAddressRequest) ProtoMessage() {}
|
||||
func (*NewAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
func (*NewAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
|
||||
type NewAddressResponse struct {
|
||||
Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
|
||||
@ -136,7 +157,7 @@ type NewAddressResponse struct {
|
||||
func (m *NewAddressResponse) Reset() { *m = NewAddressResponse{} }
|
||||
func (m *NewAddressResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*NewAddressResponse) ProtoMessage() {}
|
||||
func (*NewAddressResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
func (*NewAddressResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
|
||||
type ConnectPeerRequest struct {
|
||||
Addr *LightningAddress `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
|
||||
@ -145,7 +166,7 @@ type ConnectPeerRequest struct {
|
||||
func (m *ConnectPeerRequest) Reset() { *m = ConnectPeerRequest{} }
|
||||
func (m *ConnectPeerRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConnectPeerRequest) ProtoMessage() {}
|
||||
func (*ConnectPeerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
func (*ConnectPeerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
|
||||
func (m *ConnectPeerRequest) GetAddr() *LightningAddress {
|
||||
if m != nil {
|
||||
@ -161,7 +182,7 @@ type ConnectPeerResponse struct {
|
||||
func (m *ConnectPeerResponse) Reset() { *m = ConnectPeerResponse{} }
|
||||
func (m *ConnectPeerResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConnectPeerResponse) ProtoMessage() {}
|
||||
func (*ConnectPeerResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
func (*ConnectPeerResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||
|
||||
type HTLC struct {
|
||||
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
|
||||
@ -173,7 +194,7 @@ type HTLC struct {
|
||||
func (m *HTLC) Reset() { *m = HTLC{} }
|
||||
func (m *HTLC) String() string { return proto.CompactTextString(m) }
|
||||
func (*HTLC) ProtoMessage() {}
|
||||
func (*HTLC) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
func (*HTLC) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||
|
||||
type ActiveChannel struct {
|
||||
// TODO(roasbeef): make channel points a string everywhere in rpc?
|
||||
@ -190,7 +211,7 @@ type ActiveChannel struct {
|
||||
func (m *ActiveChannel) Reset() { *m = ActiveChannel{} }
|
||||
func (m *ActiveChannel) String() string { return proto.CompactTextString(m) }
|
||||
func (*ActiveChannel) ProtoMessage() {}
|
||||
func (*ActiveChannel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
||||
func (*ActiveChannel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
||||
|
||||
func (m *ActiveChannel) GetPendingHtlcs() []*HTLC {
|
||||
if m != nil {
|
||||
@ -215,7 +236,7 @@ type Peer struct {
|
||||
func (m *Peer) Reset() { *m = Peer{} }
|
||||
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
||||
func (*Peer) ProtoMessage() {}
|
||||
func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
||||
func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
||||
|
||||
func (m *Peer) GetChannels() []*ActiveChannel {
|
||||
if m != nil {
|
||||
@ -230,7 +251,7 @@ type ListPeersRequest struct {
|
||||
func (m *ListPeersRequest) Reset() { *m = ListPeersRequest{} }
|
||||
func (m *ListPeersRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListPeersRequest) ProtoMessage() {}
|
||||
func (*ListPeersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
||||
func (*ListPeersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
||||
|
||||
type ListPeersResponse struct {
|
||||
Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"`
|
||||
@ -239,7 +260,7 @@ type ListPeersResponse struct {
|
||||
func (m *ListPeersResponse) Reset() { *m = ListPeersResponse{} }
|
||||
func (m *ListPeersResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListPeersResponse) ProtoMessage() {}
|
||||
func (*ListPeersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
||||
func (*ListPeersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
||||
|
||||
func (m *ListPeersResponse) GetPeers() []*Peer {
|
||||
if m != nil {
|
||||
@ -260,7 +281,7 @@ type OpenChannelRequest struct {
|
||||
func (m *OpenChannelRequest) Reset() { *m = OpenChannelRequest{} }
|
||||
func (m *OpenChannelRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenChannelRequest) ProtoMessage() {}
|
||||
func (*OpenChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
||||
func (*OpenChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
|
||||
func (m *OpenChannelRequest) GetTargetNode() *LightningAddress {
|
||||
if m != nil {
|
||||
@ -276,7 +297,7 @@ type OpenChannelResponse struct {
|
||||
func (m *OpenChannelResponse) Reset() { *m = OpenChannelResponse{} }
|
||||
func (m *OpenChannelResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*OpenChannelResponse) ProtoMessage() {}
|
||||
func (*OpenChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
||||
func (*OpenChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
|
||||
func (m *OpenChannelResponse) GetChannelPoint() *ChannelPoint {
|
||||
if m != nil {
|
||||
@ -294,7 +315,7 @@ type CloseChannelRequest struct {
|
||||
func (m *CloseChannelRequest) Reset() { *m = CloseChannelRequest{} }
|
||||
func (m *CloseChannelRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloseChannelRequest) ProtoMessage() {}
|
||||
func (*CloseChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
||||
func (*CloseChannelRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||
|
||||
func (m *CloseChannelRequest) GetChannelPoint() *ChannelPoint {
|
||||
if m != nil {
|
||||
@ -310,7 +331,7 @@ type CloseChannelResponse struct {
|
||||
func (m *CloseChannelResponse) Reset() { *m = CloseChannelResponse{} }
|
||||
func (m *CloseChannelResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloseChannelResponse) ProtoMessage() {}
|
||||
func (*CloseChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
||||
func (*CloseChannelResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||
|
||||
type WalletBalanceRequest struct {
|
||||
WitnessOnly bool `protobuf:"varint,1,opt,name=witness_only" json:"witness_only,omitempty"`
|
||||
@ -319,7 +340,7 @@ type WalletBalanceRequest struct {
|
||||
func (m *WalletBalanceRequest) Reset() { *m = WalletBalanceRequest{} }
|
||||
func (m *WalletBalanceRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*WalletBalanceRequest) ProtoMessage() {}
|
||||
func (*WalletBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
||||
func (*WalletBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
|
||||
|
||||
type WalletBalanceResponse struct {
|
||||
Balance float64 `protobuf:"fixed64,1,opt,name=balance" json:"balance,omitempty"`
|
||||
@ -328,13 +349,15 @@ type WalletBalanceResponse struct {
|
||||
func (m *WalletBalanceResponse) Reset() { *m = WalletBalanceResponse{} }
|
||||
func (m *WalletBalanceResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*WalletBalanceResponse) ProtoMessage() {}
|
||||
func (*WalletBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
||||
func (*WalletBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ChannelPoint)(nil), "lnrpc.ChannelPoint")
|
||||
proto.RegisterType((*LightningAddress)(nil), "lnrpc.LightningAddress")
|
||||
proto.RegisterType((*SendManyRequest)(nil), "lnrpc.SendManyRequest")
|
||||
proto.RegisterType((*SendManyResponse)(nil), "lnrpc.SendManyResponse")
|
||||
proto.RegisterType((*SendCoinsRequest)(nil), "lnrpc.SendCoinsRequest")
|
||||
proto.RegisterType((*SendCoinsResponse)(nil), "lnrpc.SendCoinsResponse")
|
||||
proto.RegisterType((*NewAddressRequest)(nil), "lnrpc.NewAddressRequest")
|
||||
proto.RegisterType((*NewAddressResponse)(nil), "lnrpc.NewAddressResponse")
|
||||
proto.RegisterType((*ConnectPeerRequest)(nil), "lnrpc.ConnectPeerRequest")
|
||||
@ -364,13 +387,14 @@ const _ = grpc.SupportPackageIsVersion2
|
||||
// Client API for Lightning service
|
||||
|
||||
type LightningClient interface {
|
||||
WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error)
|
||||
SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error)
|
||||
SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error)
|
||||
NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error)
|
||||
ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error)
|
||||
ListPeers(ctx context.Context, in *ListPeersRequest, opts ...grpc.CallOption) (*ListPeersResponse, error)
|
||||
OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
|
||||
CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (*CloseChannelResponse, error)
|
||||
WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error)
|
||||
}
|
||||
|
||||
type lightningClient struct {
|
||||
@ -381,6 +405,15 @@ func NewLightningClient(cc *grpc.ClientConn) LightningClient {
|
||||
return &lightningClient{cc}
|
||||
}
|
||||
|
||||
func (c *lightningClient) WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error) {
|
||||
out := new(WalletBalanceResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/WalletBalance", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error) {
|
||||
out := new(SendManyResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/SendMany", in, out, c.cc, opts...)
|
||||
@ -390,6 +423,15 @@ func (c *lightningClient) SendMany(ctx context.Context, in *SendManyRequest, opt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error) {
|
||||
out := new(SendCoinsResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/SendCoins", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) {
|
||||
out := new(NewAddressResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/NewAddress", in, out, c.cc, opts...)
|
||||
@ -435,31 +477,41 @@ func (c *lightningClient) CloseChannel(ctx context.Context, in *CloseChannelRequ
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lightningClient) WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error) {
|
||||
out := new(WalletBalanceResponse)
|
||||
err := grpc.Invoke(ctx, "/lnrpc.Lightning/WalletBalance", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for Lightning service
|
||||
|
||||
type LightningServer interface {
|
||||
WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
|
||||
SendMany(context.Context, *SendManyRequest) (*SendManyResponse, error)
|
||||
SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error)
|
||||
NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
|
||||
ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerResponse, error)
|
||||
ListPeers(context.Context, *ListPeersRequest) (*ListPeersResponse, error)
|
||||
OpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
|
||||
CloseChannel(context.Context, *CloseChannelRequest) (*CloseChannelResponse, error)
|
||||
WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error)
|
||||
}
|
||||
|
||||
func RegisterLightningServer(s *grpc.Server, srv LightningServer) {
|
||||
s.RegisterService(&_Lightning_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Lightning_WalletBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(WalletBalanceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LightningServer).WalletBalance(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/lnrpc.Lightning/WalletBalance",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LightningServer).WalletBalance(ctx, req.(*WalletBalanceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_SendMany_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SendManyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@ -478,6 +530,24 @@ func _Lightning_SendMany_Handler(srv interface{}, ctx context.Context, dec func(
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_SendCoins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SendCoinsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LightningServer).SendCoins(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/lnrpc.Lightning/SendCoins",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LightningServer).SendCoins(ctx, req.(*SendCoinsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_NewAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(NewAddressRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@ -568,32 +638,22 @@ func _Lightning_CloseChannel_Handler(srv interface{}, ctx context.Context, dec f
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lightning_WalletBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(WalletBalanceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(LightningServer).WalletBalance(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/lnrpc.Lightning/WalletBalance",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LightningServer).WalletBalance(ctx, req.(*WalletBalanceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _Lightning_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "lnrpc.Lightning",
|
||||
HandlerType: (*LightningServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "WalletBalance",
|
||||
Handler: _Lightning_WalletBalance_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SendMany",
|
||||
Handler: _Lightning_SendMany_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SendCoins",
|
||||
Handler: _Lightning_SendCoins_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "NewAddress",
|
||||
Handler: _Lightning_NewAddress_Handler,
|
||||
@ -614,75 +674,73 @@ var _Lightning_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "CloseChannel",
|
||||
Handler: _Lightning_CloseChannel_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "WalletBalance",
|
||||
Handler: _Lightning_WalletBalance_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 961 bytes of a gzipped FileDescriptorProto
|
||||
// 998 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0xdb, 0x36,
|
||||
0x14, 0x9e, 0x63, 0x3b, 0xb1, 0x8f, 0xec, 0x24, 0xa6, 0x9d, 0x46, 0xd5, 0x3a, 0xa0, 0x20, 0xd6,
|
||||
0x2e, 0x18, 0x0a, 0x0f, 0x70, 0x77, 0x31, 0xb4, 0x40, 0x01, 0x37, 0x09, 0x96, 0xad, 0x5d, 0x1b,
|
||||
0x2c, 0x1e, 0x8a, 0x5d, 0x11, 0xb2, 0xc4, 0xc4, 0x42, 0x65, 0x52, 0x13, 0xa9, 0xa4, 0xde, 0x03,
|
||||
0xec, 0x19, 0xf6, 0x3e, 0xbb, 0xdf, 0x93, 0xec, 0x21, 0x46, 0x52, 0x94, 0x25, 0xff, 0xe4, 0xa2,
|
||||
0x97, 0x3a, 0xfc, 0x78, 0xf8, 0x7d, 0xe7, 0x7c, 0xe7, 0xd8, 0xd0, 0x4e, 0x93, 0x60, 0x98, 0xa4,
|
||||
0x5c, 0x72, 0xd4, 0x8c, 0x99, 0xfa, 0xc0, 0x2f, 0xa0, 0x73, 0x3a, 0xf3, 0x19, 0xa3, 0xf1, 0x25,
|
||||
0x8f, 0x98, 0x44, 0x03, 0xe8, 0x5c, 0x67, 0x2c, 0x8c, 0xd8, 0x0d, 0x91, 0x9f, 0xa2, 0xd0, 0xad,
|
||||
0x3d, 0xae, 0x9d, 0x74, 0x74, 0x94, 0x67, 0x32, 0xc9, 0x24, 0x89, 0x58, 0x48, 0x3f, 0xb9, 0x3b,
|
||||
0x2a, 0xda, 0xc5, 0xdf, 0xc3, 0xe1, 0xdb, 0xe8, 0x66, 0x26, 0x99, 0x42, 0x8f, 0xc3, 0x30, 0xa5,
|
||||
0x42, 0x20, 0x04, 0x90, 0x64, 0xd3, 0x37, 0x74, 0x71, 0xe1, 0x8b, 0x99, 0xb9, 0xdd, 0x46, 0x1d,
|
||||
0x68, 0xcc, 0xb8, 0x90, 0xe6, 0x56, 0x1b, 0xff, 0x55, 0x83, 0x83, 0x2b, 0xca, 0xc2, 0x5f, 0x7c,
|
||||
0xb6, 0xf8, 0x95, 0xfe, 0x91, 0x51, 0x21, 0xd1, 0x2b, 0xe8, 0xe8, 0x04, 0x13, 0x3e, 0x9e, 0xf3,
|
||||
0x8c, 0x49, 0x75, 0xaf, 0x7e, 0xe2, 0x8c, 0x4e, 0x86, 0x86, 0xe3, 0x70, 0x0d, 0x3d, 0xac, 0x42,
|
||||
0xcf, 0x99, 0x4c, 0x17, 0xde, 0x73, 0xe8, 0x6d, 0x04, 0x91, 0x03, 0xf5, 0x8f, 0x74, 0x61, 0x39,
|
||||
0x74, 0xa1, 0x79, 0xeb, 0xc7, 0x19, 0x35, 0x24, 0xea, 0x2f, 0x76, 0x7e, 0xa8, 0xe1, 0xc7, 0x70,
|
||||
0x58, 0x66, 0x16, 0x09, 0x67, 0x82, 0x6a, 0xaa, 0x4b, 0xd9, 0x6d, 0xfc, 0x77, 0x0d, 0x7a, 0xef,
|
||||
0xe8, 0x9d, 0xd5, 0x56, 0x90, 0x1d, 0x29, 0xcc, 0x22, 0xa1, 0x06, 0xb3, 0x3f, 0xfa, 0xda, 0x92,
|
||||
0xdc, 0xc0, 0x0d, 0xed, 0xe7, 0x44, 0x61, 0xf1, 0x7b, 0x70, 0x2a, 0x9f, 0xe8, 0x18, 0xfa, 0x1f,
|
||||
0x7e, 0x9a, 0xbc, 0x3b, 0xbf, 0xba, 0x22,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dd, 0xef, 0x6f, 0xbb, 0xca, 0x89, 0x2c, 0x87, 0x91, 0xe4, 0x43, 0xb2, 0x3a, 0xb2, 0x4b,
|
||||
0x22, 0x9b, 0x73, 0x8b, 0x55, 0x14, 0x54, 0xbd, 0xac, 0x62, 0x73, 0x5c, 0x97, 0x55, 0x6c, 0x1b,
|
||||
0x82, 0x1f, 0xf0, 0xe7, 0xa4, 0x20, 0x33, 0xb2, 0xac, 0x78, 0x53, 0xed, 0xfd, 0x07, 0x5b, 0xef,
|
||||
0xd2, 0x40, 0x93, 0x5d, 0xfb, 0xcf, 0xf3, 0xec, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x0f,
|
||||
0xf3, 0x8a, 0x00, 0x09, 0x00, 0x00,
|
||||
}
|
||||
|
@ -3,8 +3,9 @@ syntax = "proto3";
|
||||
package lnrpc;
|
||||
|
||||
service Lightning {
|
||||
rpc WalletBalance(WalletBalanceRequest) returns (WalletBalanceResponse);
|
||||
rpc SendMany(SendManyRequest) returns (SendManyResponse);
|
||||
|
||||
rpc SendCoins(SendCoinsRequest) returns (SendCoinsResponse);
|
||||
rpc NewAddress(NewAddressRequest) returns (NewAddressResponse);
|
||||
|
||||
rpc ConnectPeer(ConnectPeerRequest) returns (ConnectPeerResponse);
|
||||
@ -13,7 +14,6 @@ service Lightning {
|
||||
rpc OpenChannel(OpenChannelRequest) returns (OpenChannelResponse);
|
||||
rpc CloseChannel(CloseChannelRequest) returns (CloseChannelResponse);
|
||||
|
||||
rpc WalletBalance(WalletBalanceRequest) returns (WalletBalanceResponse);
|
||||
}
|
||||
|
||||
message ChannelPoint {
|
||||
@ -33,6 +33,14 @@ message SendManyResponse {
|
||||
string txid = 1;
|
||||
}
|
||||
|
||||
message SendCoinsRequest {
|
||||
string addr = 1;
|
||||
int64 amount = 2;
|
||||
}
|
||||
message SendCoinsResponse {
|
||||
string txid = 1;
|
||||
}
|
||||
|
||||
message NewAddressRequest {
|
||||
enum AddressType {
|
||||
WITNESS_PUBKEY_HASH = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user