diff --git a/poolrpc/trader.pb.go b/poolrpc/trader.pb.go index 2e59b97..134f188 100644 --- a/poolrpc/trader.pb.go +++ b/poolrpc/trader.pb.go @@ -1805,6 +1805,225 @@ func (m *AuctionFeeResponse) GetExecutionFee() *ExecutionFee { return nil } +type Lease struct { + // The outpoint of the channel created. + ChannelPoint *OutPoint `protobuf:"bytes,1,opt,name=channel_point,json=channelPoint,proto3" json:"channel_point,omitempty"` + // The amount, in satoshis, of the channel created. + ChannelAmtSat uint64 `protobuf:"varint,2,opt,name=channel_amt_sat,json=channelAmtSat,proto3" json:"channel_amt_sat,omitempty"` + // The intended duration, in blocks, of the channel created. + ChannelDurationBlocks uint32 `protobuf:"varint,3,opt,name=channel_duration_blocks,json=channelDurationBlocks,proto3" json:"channel_duration_blocks,omitempty"` + // + //The premium, in satoshis, either paid or received for the offered liquidity. + PremiumSat uint64 `protobuf:"varint,4,opt,name=premium_sat,json=premiumSat,proto3" json:"premium_sat,omitempty"` + // + //The execution fee, in satoshis, charged by the auctioneer for the channel + //created. + ExecutionFeeSat uint64 `protobuf:"varint,5,opt,name=execution_fee_sat,json=executionFeeSat,proto3" json:"execution_fee_sat,omitempty"` + // + //The fee, in satoshis, charged by the auctioneer for the batch execution + //transaction that created this lease. + ChainFeeSat uint64 `protobuf:"varint,6,opt,name=chain_fee_sat,json=chainFeeSat,proto3" json:"chain_fee_sat,omitempty"` + // The order executed that resulted in the channel created. + OrderNonce []byte `protobuf:"bytes,7,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"` + // Whether this channel was purchased from another trader or not. + Purchased bool `protobuf:"varint,8,opt,name=purchased,proto3" json:"purchased,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Lease) Reset() { *m = Lease{} } +func (m *Lease) String() string { return proto.CompactTextString(m) } +func (*Lease) ProtoMessage() {} +func (*Lease) Descriptor() ([]byte, []int) { + return fileDescriptor_b8f61804588c75fe, []int{30} +} + +func (m *Lease) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Lease.Unmarshal(m, b) +} +func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Lease.Marshal(b, m, deterministic) +} +func (m *Lease) XXX_Merge(src proto.Message) { + xxx_messageInfo_Lease.Merge(m, src) +} +func (m *Lease) XXX_Size() int { + return xxx_messageInfo_Lease.Size(m) +} +func (m *Lease) XXX_DiscardUnknown() { + xxx_messageInfo_Lease.DiscardUnknown(m) +} + +var xxx_messageInfo_Lease proto.InternalMessageInfo + +func (m *Lease) GetChannelPoint() *OutPoint { + if m != nil { + return m.ChannelPoint + } + return nil +} + +func (m *Lease) GetChannelAmtSat() uint64 { + if m != nil { + return m.ChannelAmtSat + } + return 0 +} + +func (m *Lease) GetChannelDurationBlocks() uint32 { + if m != nil { + return m.ChannelDurationBlocks + } + return 0 +} + +func (m *Lease) GetPremiumSat() uint64 { + if m != nil { + return m.PremiumSat + } + return 0 +} + +func (m *Lease) GetExecutionFeeSat() uint64 { + if m != nil { + return m.ExecutionFeeSat + } + return 0 +} + +func (m *Lease) GetChainFeeSat() uint64 { + if m != nil { + return m.ChainFeeSat + } + return 0 +} + +func (m *Lease) GetOrderNonce() []byte { + if m != nil { + return m.OrderNonce + } + return nil +} + +func (m *Lease) GetPurchased() bool { + if m != nil { + return m.Purchased + } + return false +} + +type LeasesRequest struct { + // + //An optional list of batches to retrieve the leases of. If empty, leases + //throughout all batches are returned. + BatchIds [][]byte `protobuf:"bytes,1,rep,name=batch_ids,json=batchIds,proto3" json:"batch_ids,omitempty"` + // + //An optional list of accounts to retrieve the leases of. If empty, leases + //for all accounts are returned. + Accounts [][]byte `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LeasesRequest) Reset() { *m = LeasesRequest{} } +func (m *LeasesRequest) String() string { return proto.CompactTextString(m) } +func (*LeasesRequest) ProtoMessage() {} +func (*LeasesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b8f61804588c75fe, []int{31} +} + +func (m *LeasesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LeasesRequest.Unmarshal(m, b) +} +func (m *LeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LeasesRequest.Marshal(b, m, deterministic) +} +func (m *LeasesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LeasesRequest.Merge(m, src) +} +func (m *LeasesRequest) XXX_Size() int { + return xxx_messageInfo_LeasesRequest.Size(m) +} +func (m *LeasesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LeasesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LeasesRequest proto.InternalMessageInfo + +func (m *LeasesRequest) GetBatchIds() [][]byte { + if m != nil { + return m.BatchIds + } + return nil +} + +func (m *LeasesRequest) GetAccounts() [][]byte { + if m != nil { + return m.Accounts + } + return nil +} + +type LeasesResponse struct { + // The relevant list of leases purchased or sold within the auction. + Leases []*Lease `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases,omitempty"` + // The total amount of satoshis earned from the leases returned. + TotalAmtEarnedSat uint64 `protobuf:"varint,2,opt,name=total_amt_earned_sat,json=totalAmtEarnedSat,proto3" json:"total_amt_earned_sat,omitempty"` + // The total amount of satoshis paid for the leases returned. + TotalAmtPaidSat uint64 `protobuf:"varint,3,opt,name=total_amt_paid_sat,json=totalAmtPaidSat,proto3" json:"total_amt_paid_sat,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LeasesResponse) Reset() { *m = LeasesResponse{} } +func (m *LeasesResponse) String() string { return proto.CompactTextString(m) } +func (*LeasesResponse) ProtoMessage() {} +func (*LeasesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b8f61804588c75fe, []int{32} +} + +func (m *LeasesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LeasesResponse.Unmarshal(m, b) +} +func (m *LeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LeasesResponse.Marshal(b, m, deterministic) +} +func (m *LeasesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LeasesResponse.Merge(m, src) +} +func (m *LeasesResponse) XXX_Size() int { + return xxx_messageInfo_LeasesResponse.Size(m) +} +func (m *LeasesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LeasesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LeasesResponse proto.InternalMessageInfo + +func (m *LeasesResponse) GetLeases() []*Lease { + if m != nil { + return m.Leases + } + return nil +} + +func (m *LeasesResponse) GetTotalAmtEarnedSat() uint64 { + if m != nil { + return m.TotalAmtEarnedSat + } + return 0 +} + +func (m *LeasesResponse) GetTotalAmtPaidSat() uint64 { + if m != nil { + return m.TotalAmtPaidSat + } + return 0 +} + type TokensRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1815,7 +2034,7 @@ func (m *TokensRequest) Reset() { *m = TokensRequest{} } func (m *TokensRequest) String() string { return proto.CompactTextString(m) } func (*TokensRequest) ProtoMessage() {} func (*TokensRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b8f61804588c75fe, []int{30} + return fileDescriptor_b8f61804588c75fe, []int{33} } func (m *TokensRequest) XXX_Unmarshal(b []byte) error { @@ -1849,7 +2068,7 @@ func (m *TokensResponse) Reset() { *m = TokensResponse{} } func (m *TokensResponse) String() string { return proto.CompactTextString(m) } func (*TokensResponse) ProtoMessage() {} func (*TokensResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b8f61804588c75fe, []int{31} + return fileDescriptor_b8f61804588c75fe, []int{34} } func (m *TokensResponse) XXX_Unmarshal(b []byte) error { @@ -1914,7 +2133,7 @@ func (m *LsatToken) Reset() { *m = LsatToken{} } func (m *LsatToken) String() string { return proto.CompactTextString(m) } func (*LsatToken) ProtoMessage() {} func (*LsatToken) Descriptor() ([]byte, []int) { - return fileDescriptor_b8f61804588c75fe, []int{32} + return fileDescriptor_b8f61804588c75fe, []int{35} } func (m *LsatToken) XXX_Unmarshal(b []byte) error { @@ -2023,6 +2242,9 @@ func init() { proto.RegisterType((*RecoverAccountsResponse)(nil), "poolrpc.RecoverAccountsResponse") proto.RegisterType((*AuctionFeeRequest)(nil), "poolrpc.AuctionFeeRequest") proto.RegisterType((*AuctionFeeResponse)(nil), "poolrpc.AuctionFeeResponse") + proto.RegisterType((*Lease)(nil), "poolrpc.Lease") + proto.RegisterType((*LeasesRequest)(nil), "poolrpc.LeasesRequest") + proto.RegisterType((*LeasesResponse)(nil), "poolrpc.LeasesResponse") proto.RegisterType((*TokensRequest)(nil), "poolrpc.TokensRequest") proto.RegisterType((*TokensResponse)(nil), "poolrpc.TokensResponse") proto.RegisterType((*LsatToken)(nil), "poolrpc.LsatToken") @@ -2031,132 +2253,146 @@ func init() { func init() { proto.RegisterFile("trader.proto", fileDescriptor_b8f61804588c75fe) } var fileDescriptor_b8f61804588c75fe = []byte{ - // 1990 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0xeb, 0x72, 0x23, 0x47, - 0x15, 0xb6, 0x7c, 0xf7, 0xd1, 0xd5, 0x2d, 0xad, 0xed, 0xd5, 0xda, 0x6b, 0xef, 0x40, 0xc0, 0xeb, - 0x2c, 0x56, 0xc5, 0x90, 0xa2, 0x2a, 0xa4, 0x00, 0xcb, 0x96, 0x23, 0x57, 0x36, 0xb6, 0x19, 0x3b, - 0x4b, 0x12, 0xaa, 0x98, 0x6a, 0x69, 0x5a, 0x52, 0xe3, 0xb9, 0x28, 0xd3, 0x3d, 0xbe, 0x90, 0xe2, -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50, 0x94, 0x33, 0xde, 0x65, - 0x80, 0x87, 0x6c, 0x10, 0x72, 0x34, 0x2a, 0xe3, 0x0c, 0x6e, 0x28, 0x9e, 0x3e, 0x24, 0xd6, 0x2c, - 0xdb, 0x92, 0xe5, 0x31, 0x1a, 0xdd, 0x8d, 0x72, 0xcc, 0x6c, 0x30, 0xb3, 0xff, 0x97, 0x50, 0xfc, - 0x84, 0xf0, 0xa4, 0xd5, 0x32, 0x34, 0xfa, 0x5b, 0x23, 0xd3, 0xcf, 0xeb, 0xeb, 0x13, 0xf8, 0xb4, - 0x93, 0xf1, 0x18, 0xe6, 0x0d, 0xd5, 0xc3, 0x9b, 0x3f, 0xfe, 0xea, 0xbd, 0x3e, 0xe5, 0x83, 0xb8, - 0xb3, 0xdf, 0x0d, 0xfd, 0x86, 0x27, 0x9e, 0x52, 0x01, 0x0d, 0xfa, 0x1e, 0xee, 0x30, 0x65, 0x8a, - 0xde, 0xb0, 0xb3, 0x28, 0xff, 0xb9, 0xfc, 0xe9, 0x77, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x07, - 0xa2, 0x7f, 0x02, 0x15, 0x00, 0x00, + // 2217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x58, 0x5b, 0x73, 0x23, 0x47, + 0x15, 0xb6, 0x64, 0x5b, 0xb6, 0x8f, 0xae, 0x6e, 0xcb, 0x97, 0xd5, 0xda, 0xb1, 0x77, 0x20, 0xc1, + 0xeb, 0x5d, 0x56, 0x95, 0x85, 0x84, 0xaa, 0x90, 0x02, 0x2c, 0x5b, 0x1b, 0xb9, 0xb2, 0x59, 0x9b, + 0xb1, 0xb3, 0x24, 0xa1, 0x8a, 0xa9, 0x96, 0xa6, 0x6d, 0x0d, 0x9e, 0x8b, 0x32, 0xdd, 0xe3, 0x0b, + 0x29, 0x5e, 0x80, 0x1f, 0x40, 0x91, 0x82, 0x3f,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0x17, + 0xdf, 0x76, 0x4a, 0x30, 0x77, 0x4e, 0x08, 0xb5, 0x08, 0xac, 0xfc, 0x32, 0x89, 0x18, 0xf9, 0x2e, + 0xe6, 0xe4, 0x88, 0xb5, 0x29, 0x26, 0xb1, 0xa6, 0xb9, 0x86, 0x66, 0x96, 0x86, 0x8e, 0xa2, 0x90, + 0x12, 0xf4, 0x13, 0xb8, 0x17, 0x78, 0x21, 0x89, 0x9d, 0x73, 0x42, 0x9c, 0x18, 0x33, 0xe2, 0x50, + 0xcc, 0x9c, 0x11, 0x89, 0x9d, 0xcb, 0x6b, 0xc5, 0xd9, 0x14, 0x80, 0x67, 0x84, 0xd8, 0x98, 0x91, + 0x53, 0xcc, 0x4e, 0x48, 0xfc, 0xe9, 0x35, 0x7a, 0x0f, 0xea, 0xe9, 0x42, 0x16, 0x31, 0xec, 0x0b, + 0xfe, 0x39, 0xbb, 0xaa, 0xe1, 0x67, 0x5c, 0x68, 0xad, 0xc2, 0xca, 0x73, 0x8f, 0xea, 0x68, 0x51, + 0x65, 0x9f, 0x75, 0x08, 0xcd, 0xac, 0x58, 0x9d, 0xe7, 0x31, 0x2c, 0x2a, 0x13, 0xe9, 0x46, 0x61, + 0x67, 0x76, 0xb7, 0xfc, 0xb4, 0xf1, 0x44, 0x65, 0xca, 0x13, 0x7d, 0xf6, 0x31, 0xc2, 0xfa, 0x39, + 0x94, 0x8e, 0x13, 0x36, 0x4a, 0x18, 0xba, 0x0f, 0x4b, 0xc2, 0x4f, 0xfc, 0xf8, 0xea, 0xdc, 0x8b, + 0x42, 0x70, 0x8a, 0x19, 0xda, 0x80, 0x05, 0xec, 0xba, 0x31, 0xa1, 0x54, 0x9c, 0x71, 0xc9, 0xd6, + 0x9f, 0xd6, 0x9f, 0x0a, 0x50, 0x95, 0x3b, 0xfc, 0xca, 0x63, 0xc3, 0x67, 0x84, 0x98, 0xd8, 0x42, + 0x06, 0xfb, 0x06, 0xde, 0x46, 0x4f, 0x60, 0x65, 0x9a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0x59, + 0x4d, 0xc1, 0x56, 0x43, 0x95, 0x31, 0xdb, 0x39, 0x21, 0x28, 0x82, 0xaa, 0x18, 0x0c, 0x4e, 0x43, + 0x3c, 0xa2, 0xc3, 0x88, 0xa1, 0xb4, 0x8c, 0x33, 0x72, 0x4d, 0xf1, 0xce, 0x5d, 0x6a, 0xc5, 0xb2, + 0x2d, 0x58, 0xee, 0xa1, 0xf4, 0x6e, 0x14, 0x6d, 0x46, 0x9b, 0xea, 0xfd, 0xbf, 0x84, 0xea, 0x27, + 0x84, 0x8d, 0x9f, 0x5a, 0x8a, 0xd2, 0xff, 0xc2, 0x32, 0xef, 0x79, 0x6b, 0x7d, 0x42, 0x3e, 0x2d, + 0x32, 0x3e, 0xc5, 0xac, 0x2d, 0xdf, 0x70, 0x64, 0x43, 0x49, 0xb6, 0x2a, 0xc6, 0x9e, 0x99, 0x36, + 0xc8, 0xd8, 0x33, 0xdb, 0xd3, 0x4c, 0x89, 0xb6, 0x6c, 0x62, 0x3a, 0x3f, 0xf8, 0xea, 0xdd, 0x0b, + 0x8f, 0x0d, 0x93, 0xfe, 0x93, 0x41, 0x14, 0xb4, 0x7d, 0x3e, 0xd3, 0x87, 0x5e, 0x78, 0xe1, 0xe3, + 0x3e, 0x95, 0x38, 0xb5, 0x61, 0xbf, 0x24, 0xfe, 0x42, 0xff, 0xd1, 0xff, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xfb, 0xf5, 0x8b, 0xcd, 0x8b, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2227,9 +2463,13 @@ type TraderClient interface { // pool: `auction snapshot` //BatchSnapshot returns the snapshot of a past batch identified by its ID. BatchSnapshot(ctx context.Context, in *BatchSnapshotRequest, opts ...grpc.CallOption) (*BatchSnapshotResponse, error) - //* pool: `listauth` + // pool: `listauth` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) + // pool: `auction leases` + //Leases returns the list of channels that were either purchased or sold by + //the trader within the auction. + Leases(ctx context.Context, in *LeasesRequest, opts ...grpc.CallOption) (*LeasesResponse, error) } type traderClient struct { @@ -2366,6 +2606,15 @@ func (c *traderClient) GetLsatTokens(ctx context.Context, in *TokensRequest, opt return out, nil } +func (c *traderClient) Leases(ctx context.Context, in *LeasesRequest, opts ...grpc.CallOption) (*LeasesResponse, error) { + out := new(LeasesResponse) + err := c.cc.Invoke(ctx, "/poolrpc.Trader/Leases", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // TraderServer is the server API for Trader service. type TraderServer interface { // @@ -2424,9 +2673,13 @@ type TraderServer interface { // pool: `auction snapshot` //BatchSnapshot returns the snapshot of a past batch identified by its ID. BatchSnapshot(context.Context, *BatchSnapshotRequest) (*BatchSnapshotResponse, error) - //* pool: `listauth` + // pool: `listauth` //GetLsatTokens returns all LSAT tokens the daemon ever paid for. GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error) + // pool: `auction leases` + //Leases returns the list of channels that were either purchased or sold by + //the trader within the auction. + Leases(context.Context, *LeasesRequest) (*LeasesResponse, error) } // UnimplementedTraderServer can be embedded to have forward compatible implementations. @@ -2475,6 +2728,9 @@ func (*UnimplementedTraderServer) BatchSnapshot(ctx context.Context, req *BatchS func (*UnimplementedTraderServer) GetLsatTokens(ctx context.Context, req *TokensRequest) (*TokensResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLsatTokens not implemented") } +func (*UnimplementedTraderServer) Leases(ctx context.Context, req *LeasesRequest) (*LeasesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Leases not implemented") +} func RegisterTraderServer(s *grpc.Server, srv TraderServer) { s.RegisterService(&_Trader_serviceDesc, srv) @@ -2732,6 +2988,24 @@ func _Trader_GetLsatTokens_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Trader_Leases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LeasesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TraderServer).Leases(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/poolrpc.Trader/Leases", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TraderServer).Leases(ctx, req.(*LeasesRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Trader_serviceDesc = grpc.ServiceDesc{ ServiceName: "poolrpc.Trader", HandlerType: (*TraderServer)(nil), @@ -2792,6 +3066,10 @@ var _Trader_serviceDesc = grpc.ServiceDesc{ MethodName: "GetLsatTokens", Handler: _Trader_GetLsatTokens_Handler, }, + { + MethodName: "Leases", + Handler: _Trader_Leases_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "trader.proto", diff --git a/poolrpc/trader.pb.gw.go b/poolrpc/trader.pb.gw.go index f792c5c..4087720 100644 --- a/poolrpc/trader.pb.gw.go +++ b/poolrpc/trader.pb.gw.go @@ -461,6 +461,39 @@ func local_request_Trader_GetLsatTokens_0(ctx context.Context, marshaler runtime } +var ( + filter_Trader_Leases_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Trader_Leases_0(ctx context.Context, marshaler runtime.Marshaler, client TraderClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeasesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Trader_Leases_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Leases(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Trader_Leases_0(ctx context.Context, marshaler runtime.Marshaler, server TraderServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeasesRequest + var metadata runtime.ServerMetadata + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Trader_Leases_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Leases(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterTraderHandlerServer registers the http handlers for service Trader to "mux". // UnaryRPC :call TraderServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -746,6 +779,26 @@ func RegisterTraderHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser }) + mux.Handle("GET", pattern_Trader_Leases_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Trader_Leases_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Trader_Leases_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1067,6 +1120,26 @@ func RegisterTraderHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) + mux.Handle("GET", pattern_Trader_Leases_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Trader_Leases_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Trader_Leases_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1098,6 +1171,8 @@ var ( pattern_Trader_BatchSnapshot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "pool", "batch", "snapshot"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Trader_GetLsatTokens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "lsat", "tokens"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Trader_Leases_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "pool", "leases"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( @@ -1128,4 +1203,6 @@ var ( forward_Trader_BatchSnapshot_0 = runtime.ForwardResponseMessage forward_Trader_GetLsatTokens_0 = runtime.ForwardResponseMessage + + forward_Trader_Leases_0 = runtime.ForwardResponseMessage ) diff --git a/poolrpc/trader.proto b/poolrpc/trader.proto index d1f5dde..f6cd0f1 100644 --- a/poolrpc/trader.proto +++ b/poolrpc/trader.proto @@ -149,7 +149,7 @@ service Trader { }; }; - /** pool: `listauth` + /* pool: `listauth` GetLsatTokens returns all LSAT tokens the daemon ever paid for. */ rpc GetLsatTokens (TokensRequest) returns (TokensResponse) { @@ -157,6 +157,17 @@ service Trader { get: "/v1/lsat/tokens" }; } + + /* pool: `auction leases` + Leases returns the list of channels that were either purchased or sold by + the trader within the auction. + */ + rpc Leases (LeasesRequest) returns (LeasesResponse) { + option (google.api.http) = { + get: "/v1/pool/leases" + }; + }; + } message InitAccountRequest { @@ -535,6 +546,65 @@ message AuctionFeeResponse { ExecutionFee execution_fee = 1; } +message Lease { + // The outpoint of the channel created. + OutPoint channel_point = 1; + + // The amount, in satoshis, of the channel created. + uint64 channel_amt_sat = 2; + + // The intended duration, in blocks, of the channel created. + uint32 channel_duration_blocks = 3; + + /* + The premium, in satoshis, either paid or received for the offered liquidity. + */ + uint64 premium_sat = 4; + + /* + The execution fee, in satoshis, charged by the auctioneer for the channel + created. + */ + uint64 execution_fee_sat = 5; + + /* + The fee, in satoshis, charged by the auctioneer for the batch execution + transaction that created this lease. + */ + uint64 chain_fee_sat = 6; + + // The order executed that resulted in the channel created. + bytes order_nonce = 7; + + // Whether this channel was purchased from another trader or not. + bool purchased = 8; +} + +message LeasesRequest { + /* + An optional list of batches to retrieve the leases of. If empty, leases + throughout all batches are returned. + */ + repeated bytes batch_ids = 1; + + /* + An optional list of accounts to retrieve the leases of. If empty, leases + for all accounts are returned. + */ + repeated bytes accounts = 2; +} + +message LeasesResponse { + // The relevant list of leases purchased or sold within the auction. + repeated Lease leases = 1; + + // The total amount of satoshis earned from the leases returned. + uint64 total_amt_earned_sat = 2; + + // The total amount of satoshis paid for the leases returned. + uint64 total_amt_paid_sat = 3; +} + message TokensRequest { } diff --git a/poolrpc/trader.swagger.json b/poolrpc/trader.swagger.json index db13b5e..03b4dbc 100644 --- a/poolrpc/trader.swagger.json +++ b/poolrpc/trader.swagger.json @@ -13,7 +13,7 @@ "paths": { "/v1/lsat/tokens": { "get": { - "summary": "* pool: `listauth`\nGetLsatTokens returns all LSAT tokens the daemon ever paid for.", + "summary": "pool: `listauth`\nGetLsatTokens returns all LSAT tokens the daemon ever paid for.", "operationId": "GetLsatTokens", "responses": { "200": { @@ -363,6 +363,55 @@ ] } }, + "/v1/pool/leases": { + "get": { + "summary": "pool: `auction leases`\nLeases returns the list of channels that were either purchased or sold by\nthe trader within the auction.", + "operationId": "Leases", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/poolrpcLeasesResponse" + } + }, + "default": { + "description": "An unexpected error response", + "schema": { + "$ref": "#/definitions/gatewayruntimeError" + } + } + }, + "parameters": [ + { + "name": "batch_ids", + "description": "An optional list of batches to retrieve the leases of. If empty, leases\nthroughout all batches are returned.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "collectionFormat": "multi" + }, + { + "name": "accounts", + "description": "An optional list of accounts to retrieve the leases of. If empty, leases\nfor all accounts are returned.", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string", + "format": "byte" + }, + "collectionFormat": "multi" + } + ], + "tags": [ + "Trader" + ] + } + }, "/v1/pool/orders": { "get": { "summary": "pool: `orders list`\nListOrders returns a list of all active and archived orders that are\ncurrently known to the trader daemon.", @@ -787,6 +836,72 @@ } } }, + "poolrpcLease": { + "type": "object", + "properties": { + "channel_point": { + "$ref": "#/definitions/poolrpcOutPoint", + "description": "The outpoint of the channel created." + }, + "channel_amt_sat": { + "type": "string", + "format": "uint64", + "description": "The amount, in satoshis, of the channel created." + }, + "channel_duration_blocks": { + "type": "integer", + "format": "int64", + "description": "The intended duration, in blocks, of the channel created." + }, + "premium_sat": { + "type": "string", + "format": "uint64", + "description": "The premium, in satoshis, either paid or received for the offered liquidity." + }, + "execution_fee_sat": { + "type": "string", + "format": "uint64", + "description": "The execution fee, in satoshis, charged by the auctioneer for the channel\ncreated." + }, + "chain_fee_sat": { + "type": "string", + "format": "uint64", + "description": "The fee, in satoshis, charged by the auctioneer for the batch execution\ntransaction that created this lease." + }, + "order_nonce": { + "type": "string", + "format": "byte", + "description": "The order executed that resulted in the channel created." + }, + "purchased": { + "type": "boolean", + "format": "boolean", + "description": "Whether this channel was purchased from another trader or not." + } + } + }, + "poolrpcLeasesResponse": { + "type": "object", + "properties": { + "leases": { + "type": "array", + "items": { + "$ref": "#/definitions/poolrpcLease" + }, + "description": "The relevant list of leases purchased or sold within the auction." + }, + "total_amt_earned_sat": { + "type": "string", + "format": "uint64", + "description": "The total amount of satoshis earned from the leases returned." + }, + "total_amt_paid_sat": { + "type": "string", + "format": "uint64", + "description": "The total amount of satoshis paid for the leases returned." + } + } + }, "poolrpcListAccountsResponse": { "type": "object", "properties": { diff --git a/rpcserver.go b/rpcserver.go index 9c85409..fa9aec0 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -23,9 +23,11 @@ import ( "github.com/lightninglabs/pool/clientdb" "github.com/lightninglabs/pool/order" "github.com/lightninglabs/pool/poolrpc" + "github.com/lightninglabs/pool/poolscript" "github.com/lightninglabs/pool/terms" "github.com/lightningnetwork/lnd" "github.com/lightningnetwork/lnd/chanbackup" + "github.com/lightningnetwork/lnd/input" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnwallet/chainfee" "github.com/lightningnetwork/lnd/lnwire" @@ -1476,6 +1478,195 @@ func (s *rpcServer) AuctionFee(ctx context.Context, }, nil } +// Leases returns the list of channels that were either purchased or sold by the +// trader within the auction. +func (s *rpcServer) Leases(ctx context.Context, + req *poolrpc.LeasesRequest) (*poolrpc.LeasesResponse, error) { + + // We'll start by parsing the list of accounts we should retrieve lease + // for. If none are specified, leases for all accounts will be returned. + accounts := make(map[[33]byte]struct{}, len(req.Accounts)) + for _, rawAccountKey := range req.Accounts { + _, err := btcec.ParsePubKey(rawAccountKey, btcec.S256()) + if err != nil { + return nil, fmt.Errorf("invalid account key: %v", err) + } + + var accountKey [33]byte + copy(accountKey[:], rawAccountKey) + accounts[accountKey] = struct{}{} + } + + // We'll then retrieve the list of specified batches. If none are + // specified, we'll retrieve all of them. + var batches []*clientdb.LocalBatchSnapshot + if len(req.BatchIds) == 0 { + var err error + batches, err = s.server.db.GetLocalBatchSnapshots() + if err != nil { + return nil, err + } + } else { + for _, rawBatchID := range req.BatchIds { + batchKey, err := btcec.ParsePubKey( + rawBatchID, btcec.S256(), + ) + if err != nil { + return nil, fmt.Errorf("invalid batch id: %v", + err) + } + + batchID := order.NewBatchID(batchKey) + batch, err := s.server.db.GetLocalBatchSnapshot(batchID) + if err != nil { + return nil, err + } + batches = append(batches, batch) + } + } + + return s.prepareLeasesResponse(ctx, accounts, batches) +} + +// prepareLeasesResponse prepares a poolrpc.LeasesResponse for the given +// accounts in the given batches. +func (s *rpcServer) prepareLeasesResponse(ctx context.Context, + accounts map[[33]byte]struct{}, batches []*clientdb.LocalBatchSnapshot) ( + *poolrpc.LeasesResponse, error) { + + // Now we're ready to prepare our response. + var ( + rpcLeases []*poolrpc.Lease + totalAmtEarned btcutil.Amount + totalAmtPaid btcutil.Amount + ) + for _, batch := range batches { + // Keep a tally of how many channels were created within each + // batch in order to estimate the chain fees paid. + numChans := 0 + + // Keep track of the index for the first lease found for this + // batch. We'll use this to know where to start from when + // populating the ChainFeeSat field for each lease. + firstIdxForBatch := len(rpcLeases) + + for nonce, matches := range batch.MatchedOrders { + nonce := nonce + for _, match := range matches { + // Obtain our order that was matched. + ourOrder, ok := batch.Orders[nonce] + if !ok { + return nil, fmt.Errorf("order %v not "+ + "found in batch snapshot", nonce) + } + + // Filter out the account if required. + _, ok = accounts[ourOrder.Details().AcctKey] + if len(accounts) != 0 && !ok { + continue + } + + // Derive the channel output script, which we'll + // use to locate the channel outpoint within the + // batch transaction. + ourMultiSigKey, err := s.server.lndServices.WalletKit.DeriveKey( + ctx, &ourOrder.Details().MultiSigKeyLocator, + ) + if err != nil { + return nil, err + } + chanAmt := match.UnitsFilled.ToSatoshis() + _, chanOutput, err := input.GenFundingPkScript( + ourMultiSigKey.PubKey.SerializeCompressed(), + match.MultiSigKey[:], int64(chanAmt), + ) + if err != nil { + return nil, err + } + + batchTxHash := batch.BatchTX.TxHash() + chanOutputIdx, ok := poolscript.LocateOutputScript( + batch.BatchTX, chanOutput.PkScript, + ) + if !ok { + return nil, fmt.Errorf("channel with "+ + "script %x not found in batch "+ + "transaction %v", + chanOutput.PkScript, batchTxHash) + } + + // The duration of the channel is always that + // specified by the bid order. + var bidDuration uint32 + if ourOrder.Type() == order.TypeBid { + bidDuration = ourOrder.(*order.Bid).MinDuration + } else { + bidDuration = match.Order.(*order.Bid).MinDuration + } + + // Calculate the premium paid/received to/from + // the maker/taker and the execution fee paid + // to the auctioneer and tally them. + premium := batch.ClearingPrice.LumpSumPremium( + chanAmt, bidDuration, + ) + exeFee := batch.ExecutionFee.BaseFee() + + batch.ExecutionFee.ExecutionFee(chanAmt) + + if ourOrder.Type() == order.TypeBid { + totalAmtPaid += premium + } else { + totalAmtEarned += premium + } + totalAmtPaid += exeFee + + purchased := ourOrder.Type() == order.TypeBid + rpcLeases = append(rpcLeases, &poolrpc.Lease{ + ChannelPoint: &poolrpc.OutPoint{ + Txid: batchTxHash[:], + OutputIndex: chanOutputIdx, + }, + ChannelAmtSat: uint64(chanAmt), + ChannelDurationBlocks: bidDuration, + PremiumSat: uint64(premium), + ExecutionFeeSat: uint64(exeFee), + OrderNonce: nonce[:], + Purchased: purchased, + }) + + numChans++ + } + + // Estimate the chain fees paid for the number of + // channels created in this batch and tally them. + chainFee := order.EstimateTraderFee( + uint32(numChans), batch.BatchTxFeeRate, + ) + + // We'll need to compute the chain fee paid for each + // lease. Since multiple leases can be created within a + // batch, we'll need to evenly distribute. We'll always + // apply the remainder to the first lease in the batch. + chainFeePerChan := chainFee / btcutil.Amount(numChans) + chainFeePerChanRem := chainFee % btcutil.Amount(numChans) + for i := firstIdxForBatch; i < len(rpcLeases); i++ { + chainFee := chainFeePerChan + if i == firstIdxForBatch { + chainFee += chainFeePerChanRem + } + rpcLeases[i].ChainFeeSat = uint64(chainFee) + } + totalAmtPaid += chainFee + } + } + + return &poolrpc.LeasesResponse{ + Leases: rpcLeases, + TotalAmtEarnedSat: uint64(totalAmtEarned), + TotalAmtPaidSat: uint64(totalAmtPaid), + }, nil +} + // BatchSnapshot returns information about a target batch including the // clearing price of the batch, and the set of orders matched within the batch. func (s *rpcServer) BatchSnapshot(ctx context.Context,