loopout: show expiry range in terms

pull/248/head
Joost Jager 4 years ago
parent 05fd1da496
commit e72d998e78
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -39,6 +39,9 @@ func terms(ctx *cli.Context) error {
loopOutTerms.MinSwapAmount,
loopOutTerms.MaxSwapAmount,
)
fmt.Printf("Cltv delta: %d - %d\n",
loopOutTerms.MinCltvDelta, loopOutTerms.MaxCltvDelta,
)
}
fmt.Println()

@ -124,6 +124,12 @@ type LoopOutTerms struct {
// MaxSwapAmount is the maximum amount that the server accepts for a
// swap.
MaxSwapAmount btcutil.Amount
// MinCltvDelta is the minimum expiry delta for loop out swaps.
MinCltvDelta int32
// MaxCltvDelta is the maximum expiry delta for loop out swaps.
MaxCltvDelta int32
}
// LoopOutQuote contains estimates for the fees making up the total swap cost

@ -341,6 +341,8 @@ func (s *swapClientServer) LoopOutTerms(ctx context.Context,
return &looprpc.OutTermsResponse{
MinSwapAmount: int64(terms.MinSwapAmount),
MaxSwapAmount: int64(terms.MaxSwapAmount),
MinCltvDelta: terms.MinCltvDelta,
MaxCltvDelta: terms.MaxCltvDelta,
}, nil
}

@ -890,7 +890,11 @@ type OutTermsResponse struct {
MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
//*
//Maximum swap amount (sat)
MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
// The minimally accepted cltv delta of the on-chain htlc.
MinCltvDelta int32 `protobuf:"varint,8,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
// The maximally accepted cltv delta of the on-chain htlc.
MaxCltvDelta int32 `protobuf:"varint,9,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -935,6 +939,20 @@ func (m *OutTermsResponse) GetMaxSwapAmount() int64 {
return 0
}
func (m *OutTermsResponse) GetMinCltvDelta() int32 {
if m != nil {
return m.MinCltvDelta
}
return 0
}
func (m *OutTermsResponse) GetMaxCltvDelta() int32 {
if m != nil {
return m.MaxCltvDelta
}
return 0
}
type QuoteRequest struct {
//*
//The amount to swap in satoshis.
@ -1374,109 +1392,111 @@ func init() {
func init() { proto.RegisterFile("client.proto", fileDescriptor_014de31d7ac8c57c) }
var fileDescriptor_014de31d7ac8c57c = []byte{
// 1619 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x6e, 0x23, 0x49,
// 1651 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x6e, 0x23, 0x49,
0x15, 0xde, 0xf6, 0x4f, 0x6c, 0x1f, 0xb7, 0xdb, 0x9d, 0xca, 0xce, 0xc4, 0xb1, 0x40, 0xeb, 0x69,
0x76, 0x20, 0x1b, 0x56, 0x63, 0x36, 0x7b, 0xc5, 0x0a, 0x21, 0x65, 0x12, 0xef, 0xc6, 0x51, 0x7e,
0x4c, 0xdb, 0x59, 0x09, 0x84, 0xd4, 0xaa, 0xb8, 0x2b, 0x71, 0x0b, 0x77, 0x57, 0x6f, 0x57, 0x79,
0x26, 0xd1, 0x08, 0x81, 0x78, 0x01, 0x2e, 0x78, 0x03, 0x5e, 0x83, 0x37, 0xe0, 0x0e, 0x78, 0x00,
0x6e, 0xb8, 0xe1, 0x25, 0x10, 0xaa, 0x53, 0xdd, 0xed, 0xee, 0xfc, 0x49, 0x5c, 0x71, 0xe7, 0xfe,
0xea, 0xab, 0x53, 0xe7,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a6, 0x4b,
0x0f, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

@ -447,6 +447,12 @@ message OutTermsResponse {
Maximum swap amount (sat)
*/
int64 max_swap_amount = 6;
// The minimally accepted cltv delta of the on-chain htlc.
int32 min_cltv_delta = 8;
// The maximally accepted cltv delta of the on-chain htlc.
int32 max_cltv_delta = 9;
}
message QuoteRequest {

@ -548,6 +548,16 @@
"type": "string",
"format": "int64",
"title": "*\nMaximum swap amount (sat)"
},
"min_cltv_delta": {
"type": "integer",
"format": "int32",
"description": "The minimally accepted cltv delta of the on-chain htlc."
},
"max_cltv_delta": {
"type": "integer",
"format": "int32",
"description": "The maximally accepted cltv delta of the on-chain htlc."
}
}
},

@ -140,6 +140,8 @@ func (s *grpcSwapServerClient) GetLoopOutTerms(ctx context.Context) (
return &LoopOutTerms{
MinSwapAmount: btcutil.Amount(terms.MinSwapAmount),
MaxSwapAmount: btcutil.Amount(terms.MaxSwapAmount),
MinCltvDelta: terms.MinCltvDelta,
MaxCltvDelta: terms.MaxCltvDelta,
}, nil
}

Loading…
Cancel
Save