mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-15 12:50:28 +02:00
Merge pull request #248 from joostjager/user-expiry
loopout: user-specified expiry
This commit is contained in:
commit
2f40064639
13 changed files with 407 additions and 262 deletions
53
client.go
53
client.go
|
|
@ -3,6 +3,7 @@ package loop
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
|
@ -33,20 +34,10 @@ var (
|
|||
// more than the server maximum.
|
||||
ErrSwapAmountTooHigh = errors.New("swap amount too high")
|
||||
|
||||
// ErrExpiryTooSoon is returned when the server proposes an expiry that
|
||||
// is too soon for us.
|
||||
ErrExpiryTooSoon = errors.New("swap expiry too soon")
|
||||
|
||||
// ErrExpiryTooFar is returned when the server proposes an expiry that
|
||||
// is too soon for us.
|
||||
ErrExpiryTooFar = errors.New("swap expiry too far")
|
||||
|
||||
// ErrSweepConfTargetTooFar is returned when the client proposes a
|
||||
// confirmation target to sweep the on-chain HTLC of a Loop Out that is
|
||||
// beyond the expiration height proposed by the server.
|
||||
ErrSweepConfTargetTooFar = errors.New("sweep confirmation target is " +
|
||||
"beyond swap expiration height")
|
||||
|
||||
// serverRPCTimeout is the maximum time a gRPC request to the server
|
||||
// should be allowed to take.
|
||||
serverRPCTimeout = 30 * time.Second
|
||||
|
|
@ -363,8 +354,21 @@ func (s *Client) LoopOut(globalCtx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Create a new swap object for this swap.
|
||||
// Calculate htlc expiry height.
|
||||
terms, err := s.Server.GetLoopOutTerms(globalCtx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
initiationHeight := s.executor.height()
|
||||
request.Expiry, err = s.getExpiry(
|
||||
initiationHeight, terms, request.SweepConfTarget,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Create a new swap object for this swap.
|
||||
swapCfg := newSwapConfig(s.lndServices, s.Store, s.Server)
|
||||
initResult, err := newLoopOutSwap(
|
||||
globalCtx, swapCfg, initiationHeight, request,
|
||||
|
|
@ -386,6 +390,24 @@ func (s *Client) LoopOut(globalCtx context.Context,
|
|||
}, nil
|
||||
}
|
||||
|
||||
// getExpiry returns an absolute expiry height based on the sweep confirmation
|
||||
// target, constrained by the server terms.
|
||||
func (s *Client) getExpiry(height int32, terms *LoopOutTerms,
|
||||
confTarget int32) (int32, error) {
|
||||
|
||||
switch {
|
||||
case confTarget < terms.MinCltvDelta:
|
||||
return height + terms.MinCltvDelta, nil
|
||||
|
||||
case confTarget > terms.MaxCltvDelta:
|
||||
return 0, fmt.Errorf("confirmation target %v exceeds maximum "+
|
||||
"server cltv delta of %v", confTarget,
|
||||
terms.MaxCltvDelta)
|
||||
}
|
||||
|
||||
return height + confTarget, nil
|
||||
}
|
||||
|
||||
// LoopOutQuote takes a LoopOut amount and returns a break down of estimated
|
||||
// costs for the client. Both the swap server and the on-chain fee estimator
|
||||
// are queried to get to build the quote response.
|
||||
|
|
@ -405,8 +427,14 @@ func (s *Client) LoopOutQuote(ctx context.Context,
|
|||
return nil, ErrSwapAmountTooHigh
|
||||
}
|
||||
|
||||
height := s.executor.height()
|
||||
expiry, err := s.getExpiry(height, terms, request.SweepConfTarget)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
quote, err := s.Server.GetLoopOutQuote(
|
||||
ctx, request.Amount, request.SwapPublicationDeadline,
|
||||
ctx, request.Amount, expiry, request.SwapPublicationDeadline,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -440,7 +468,6 @@ func (s *Client) LoopOutQuote(ctx context.Context,
|
|||
MinerFee: minerFee,
|
||||
PrepayAmount: quote.PrepayAmount,
|
||||
SwapPaymentDest: quote.SwapPaymentDest,
|
||||
CltvDelta: quote.CltvDelta,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
13
interface.go
13
interface.go
|
|
@ -71,6 +71,9 @@ type OutRequest struct {
|
|||
// SwapPublicationDeadline can be set by the client to allow the server
|
||||
// delaying publication of the swap HTLC to save on chain fees.
|
||||
SwapPublicationDeadline time.Time
|
||||
|
||||
// Expiry is the absolute expiry height of the on-chain htlc.
|
||||
Expiry int32
|
||||
}
|
||||
|
||||
// Out contains the full details of a loop out request. This includes things
|
||||
|
|
@ -124,6 +127,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
|
||||
|
|
@ -140,10 +149,6 @@ type LoopOutQuote struct {
|
|||
// sweep the htlc.
|
||||
MinerFee btcutil.Amount
|
||||
|
||||
// Time lock delta relative to current block height that swap server
|
||||
// will accept on the swap initiation call.
|
||||
CltvDelta int32
|
||||
|
||||
// SwapPaymentDest is the node pubkey where to swap payment needs to be
|
||||
// sent to.
|
||||
SwapPaymentDest [33]byte
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
@ -371,7 +373,6 @@ func (s *swapClientServer) LoopOutQuote(ctx context.Context,
|
|||
PrepayAmtSat: int64(quote.PrepayAmount),
|
||||
SwapFeeSat: int64(quote.SwapFee),
|
||||
SwapPaymentDest: quote.SwapPaymentDest[:],
|
||||
CltvDelta: quote.CltvDelta,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
22
loopout.go
22
loopout.go
|
|
@ -106,13 +106,14 @@ func newLoopOutSwap(globalCtx context.Context, cfg *swapConfig,
|
|||
|
||||
// Post the swap parameters to the swap server. The response contains
|
||||
// the server revocation key and the swap and prepay invoices.
|
||||
log.Infof("Initiating swap request at height %v", currentHeight)
|
||||
log.Infof("Initiating swap request at height %v: amt=%v, expiry=%v",
|
||||
currentHeight, request.Amount, request.Expiry)
|
||||
|
||||
// The swap deadline will be given to the server for it to use as the
|
||||
// latest swap publication time.
|
||||
swapResp, err := cfg.server.NewLoopOutSwap(
|
||||
globalCtx, swapHash, request.Amount, receiverKey,
|
||||
request.SwapPublicationDeadline,
|
||||
globalCtx, swapHash, request.Amount, request.Expiry,
|
||||
receiverKey, request.SwapPublicationDeadline,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot initiate swap: %v", err)
|
||||
|
|
@ -150,7 +151,7 @@ func newLoopOutSwap(globalCtx context.Context, cfg *swapConfig,
|
|||
SenderKey: swapResp.senderKey,
|
||||
Preimage: swapPreimage,
|
||||
AmountRequested: request.Amount,
|
||||
CltvExpiry: swapResp.expiry,
|
||||
CltvExpiry: request.Expiry,
|
||||
MaxMinerFee: request.MaxMinerFee,
|
||||
MaxSwapFee: request.MaxSwapFee,
|
||||
},
|
||||
|
|
@ -994,18 +995,5 @@ func validateLoopOutContract(lnd *lndclient.LndServices,
|
|||
return ErrPrepayAmountTooHigh
|
||||
}
|
||||
|
||||
if response.expiry-height < MinLoopOutPreimageRevealDelta {
|
||||
log.Warnf("Proposed expiry %v (delta %v) too soon",
|
||||
response.expiry, response.expiry-height)
|
||||
|
||||
return ErrExpiryTooSoon
|
||||
}
|
||||
|
||||
// Ensure the client has provided a sweep confirmation target that does
|
||||
// not exceed the height at which we revert back to using the default.
|
||||
if height+request.SweepConfTarget >= response.expiry-DefaultSweepConfTargetDelta {
|
||||
return ErrSweepConfTargetTooFar
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,6 +151,8 @@ func TestLateHtlcPublish(t *testing.T) {
|
|||
|
||||
cfg := newSwapConfig(&lnd.LndServices, store, server)
|
||||
|
||||
testRequest.Expiry = height + testLoopOutMinOnChainCltvDelta
|
||||
|
||||
initResult, err := newLoopOutSwap(
|
||||
context.Background(), cfg, height, testRequest,
|
||||
)
|
||||
|
|
@ -225,12 +227,14 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
|
||||
// Use the highest sweep confirmation target before we attempt to use
|
||||
// the default.
|
||||
testRequest.SweepConfTarget = testLoopOutOnChainCltvDelta -
|
||||
testReq := *testRequest
|
||||
|
||||
testReq.SweepConfTarget = testLoopOutMinOnChainCltvDelta -
|
||||
DefaultSweepConfTargetDelta - 1
|
||||
|
||||
// Set up custom fee estimates such that the lower confirmation target
|
||||
// yields a much higher fee rate.
|
||||
ctx.Lnd.SetFeeEstimate(testRequest.SweepConfTarget, 250)
|
||||
ctx.Lnd.SetFeeEstimate(testReq.SweepConfTarget, 250)
|
||||
ctx.Lnd.SetFeeEstimate(DefaultSweepConfTarget, 10000)
|
||||
|
||||
cfg := newSwapConfig(
|
||||
|
|
@ -238,7 +242,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
)
|
||||
|
||||
initResult, err := newLoopOutSwap(
|
||||
context.Background(), cfg, ctx.Lnd.Height, testRequest,
|
||||
context.Background(), cfg, ctx.Lnd.Height, &testReq,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -357,7 +361,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
|
||||
// The sweep should have a fee that corresponds to the custom
|
||||
// confirmation target.
|
||||
_ = assertSweepTx(testRequest.SweepConfTarget)
|
||||
_ = assertSweepTx(testReq.SweepConfTarget)
|
||||
|
||||
// Once we have published an on chain sweep, we expect a preimage to
|
||||
// have been pushed to our server.
|
||||
|
|
@ -374,8 +378,8 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
|
||||
// We'll then notify the height at which we begin using the default
|
||||
// confirmation target.
|
||||
defaultConfTargetHeight := ctx.Lnd.Height + testLoopOutOnChainCltvDelta -
|
||||
DefaultSweepConfTargetDelta
|
||||
defaultConfTargetHeight := ctx.Lnd.Height +
|
||||
testLoopOutMinOnChainCltvDelta - DefaultSweepConfTargetDelta
|
||||
blockEpochChan <- int32(defaultConfTargetHeight)
|
||||
expiryChan <- time.Now()
|
||||
|
||||
|
|
@ -424,15 +428,17 @@ func TestPreimagePush(t *testing.T) {
|
|||
|
||||
// Start with a high confirmation delta which will have a very high fee
|
||||
// attached to it.
|
||||
testRequest.SweepConfTarget = testLoopOutOnChainCltvDelta -
|
||||
testReq := *testRequest
|
||||
testReq.SweepConfTarget = testLoopOutMinOnChainCltvDelta -
|
||||
DefaultSweepConfTargetDelta - 1
|
||||
testReq.Expiry = ctx.Lnd.Height + testLoopOutMinOnChainCltvDelta
|
||||
|
||||
// We set our mock fee estimate for our target sweep confs to be our
|
||||
// max miner fee *2, so that our fee will definitely be above what we
|
||||
// are willing to pay, and we will not sweep.
|
||||
ctx.Lnd.SetFeeEstimate(
|
||||
testRequest.SweepConfTarget, chainfee.SatPerKWeight(
|
||||
testRequest.MaxMinerFee*2,
|
||||
testReq.SweepConfTarget, chainfee.SatPerKWeight(
|
||||
testReq.MaxMinerFee*2,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -446,7 +452,7 @@ func TestPreimagePush(t *testing.T) {
|
|||
)
|
||||
|
||||
initResult, err := newLoopOutSwap(
|
||||
context.Background(), cfg, ctx.Lnd.Height, testRequest,
|
||||
context.Background(), cfg, ctx.Lnd.Height, &testReq,
|
||||
)
|
||||
require.NoError(t, err)
|
||||
swap := initResult.swap
|
||||
|
|
@ -517,7 +523,7 @@ func TestPreimagePush(t *testing.T) {
|
|||
// Now, we notify the height at which the client will start using the
|
||||
// default confirmation target. This has the effect of lowering our fees
|
||||
// so that the client still start sweeping.
|
||||
defaultConfTargetHeight := ctx.Lnd.Height + testLoopOutOnChainCltvDelta -
|
||||
defaultConfTargetHeight := ctx.Lnd.Height + testLoopOutMinOnChainCltvDelta -
|
||||
DefaultSweepConfTargetDelta
|
||||
blockEpochChan <- defaultConfTargetHeight
|
||||
|
||||
|
|
|
|||
|
|
@ -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, 0xa7, 0xce, 0x77, 0xca, 0x60, 0xce, 0x97, 0x01, 0x8b, 0xe4, 0x9b, 0x38,
|
||||
0xe1, 0x92, 0x93, 0xc6, 0x92, 0xf3, 0x38, 0x89, 0xe7, 0xfd, 0xef, 0xdd, 0x70, 0x7e, 0xb3, 0x64,
|
||||
0x43, 0x1a, 0x07, 0x43, 0x1a, 0x45, 0x5c, 0x52, 0x19, 0xf0, 0x48, 0x68, 0x9a, 0xf3, 0xd7, 0x2a,
|
||||
0x58, 0xa7, 0x9c, 0xc7, 0x17, 0x2b, 0xe9, 0xb2, 0xef, 0x56, 0x4c, 0x48, 0x62, 0x43, 0x95, 0x86,
|
||||
0xb2, 0x67, 0x0c, 0x8c, 0xdd, 0xaa, 0xab, 0x7e, 0x12, 0x02, 0x35, 0x9f, 0x09, 0xd9, 0xab, 0x0c,
|
||||
0x8c, 0xdd, 0x96, 0x8b, 0xbf, 0xc9, 0x10, 0x3e, 0x0e, 0xe9, 0xad, 0x27, 0xde, 0xd3, 0xd8, 0x4b,
|
||||
0xf8, 0x4a, 0x06, 0xd1, 0x8d, 0x77, 0xcd, 0x58, 0xaf, 0x8a, 0xdb, 0x36, 0x43, 0x7a, 0x3b, 0x7d,
|
||||
0x4f, 0x63, 0x57, 0xaf, 0x7c, 0xcd, 0x18, 0xf9, 0x12, 0x5e, 0xaa, 0x0d, 0x71, 0xc2, 0x62, 0x7a,
|
||||
0x57, 0xda, 0x52, 0xc3, 0x2d, 0x5b, 0x21, 0xbd, 0x9d, 0xe0, 0x62, 0x61, 0xd3, 0x00, 0xcc, 0xfc,
|
||||
0x14, 0x45, 0xad, 0x23, 0x15, 0x52, 0xeb, 0x8a, 0xf1, 0x29, 0x58, 0x05, 0xb3, 0xca, 0xf1, 0x0d,
|
||||
0xe4, 0x98, 0xb9, 0xb9, 0x83, 0x50, 0x12, 0x07, 0x3a, 0x8a, 0x15, 0x06, 0x11, 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0x9b, 0x6f, 0x52, 0x91, 0x78, 0xa3,
|
||||
0xce, 0x98, 0xdd, 0xc5, 0xcc, 0xc5, 0x65, 0xb2, 0x0b, 0x75, 0x21, 0xa9, 0xd4, 0xad, 0x69, 0xed,
|
||||
0x93, 0x12, 0x4f, 0xf9, 0xc2, 0x5c, 0x4d, 0x20, 0x3f, 0x82, 0x6e, 0x10, 0x05, 0x32, 0xd0, 0x17,
|
||||
0x55, 0x06, 0x61, 0xd6, 0xa3, 0xd6, 0x1a, 0x9e, 0x05, 0xa1, 0x32, 0x69, 0xe3, 0x8d, 0x59, 0xc5,
|
||||
0x3e, 0x95, 0x4c, 0x33, 0x75, 0xa7, 0x5a, 0x0a, 0xbf, 0x44, 0x18, 0x99, 0xf7, 0x2b, 0xd6, 0x78,
|
||||
0xbc, 0x62, 0x8f, 0x57, 0xc0, 0x7c, 0xa2, 0x02, 0x4f, 0xd4, 0xb7, 0xf3, 0x54, 0x7d, 0x3f, 0x81,
|
||||
0xf6, 0x9c, 0x0b, 0xe9, 0xe9, 0x02, 0xa1, 0x0e, 0x54, 0x5d, 0x50, 0xd0, 0x14, 0x11, 0xf2, 0x0a,
|
||||
0x4c, 0x24, 0xf0, 0x68, 0xbe, 0xa0, 0x41, 0x84, 0xed, 0x5c, 0x75, 0x71, 0xd3, 0x85, 0x86, 0x54,
|
||||
0x27, 0x68, 0xca, 0xf5, 0xb5, 0xe6, 0x80, 0x56, 0x26, 0xe4, 0xa4, 0x98, 0x43, 0xc0, 0x3e, 0x0d,
|
||||
0x84, 0x54, 0x89, 0x15, 0x59, 0xd5, 0x7f, 0x0e, 0x9b, 0x05, 0x2c, 0xbd, 0xf7, 0x9f, 0x41, 0x5d,
|
||||
0x35, 0xad, 0xe8, 0x19, 0x83, 0xea, 0x6e, 0x7b, 0x7f, 0xeb, 0x41, 0x4d, 0x56, 0xc2, 0xd5, 0x0c,
|
||||
0xe7, 0x15, 0x74, 0x15, 0x38, 0x8e, 0xae, 0x79, 0x26, 0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 0x8f, 0xa1, 0x47, 0xac, 0xf3, 0x95, 0x1c, 0x4a, 0xb4, 0x76, 0x95, 0x5b, 0x47,
|
||||
0x01, 0x2c, 0x58, 0x2f, 0x8e, 0x92, 0xb2, 0xf5, 0x92, 0x54, 0x3a, 0x03, 0xb4, 0xde, 0x27, 0xbd,
|
||||
0x92, 0xf5, 0xef, 0x14, 0x67, 0xf8, 0x81, 0x86, 0x52, 0x45, 0x60, 0x7d, 0xc3, 0xa4, 0x2e, 0xf9,
|
||||
0xb3, 0x31, 0xac, 0xb3, 0x76, 0x6f, 0x98, 0x3b, 0x3b, 0x78, 0xc8, 0x16, 0xd9, 0x2c, 0x5c, 0x85,
|
||||
0x3c, 0x82, 0xb5, 0xf5, 0x67, 0x63, 0x28, 0x5a, 0x2f, 0x87, 0xf0, 0x09, 0x5a, 0xdf, 0x21, 0xdb,
|
||||
0x45, 0xeb, 0xc5, 0x08, 0x7e, 0x09, 0x1d, 0x75, 0x46, 0xa6, 0x80, 0xa2, 0x70, 0x93, 0x4b, 0x32,
|
||||
0xdb, 0xdf, 0x7e, 0x80, 0x97, 0xbb, 0x83, 0x74, 0xf1, 0x08, 0x41, 0xe5, 0x50, 0x4b, 0xeb, 0xd5,
|
||||
0x06, 0xfe, 0x91, 0xfd, 0xf2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x3e, 0x0d, 0x16, 0xff,
|
||||
0x0e, 0x00, 0x00,
|
||||
0x76, 0x20, 0x1b, 0x56, 0x63, 0x36, 0x7b, 0xc5, 0x0a, 0x21, 0x65, 0x1c, 0xef, 0xc6, 0x51, 0x7e,
|
||||
0x4c, 0xdb, 0x59, 0x09, 0x84, 0xd4, 0xaa, 0xd8, 0x95, 0xb8, 0x85, 0xbb, 0xab, 0xb7, 0xab, 0x3c,
|
||||
0x93, 0x68, 0x85, 0x90, 0x78, 0x01, 0x2e, 0x78, 0x03, 0x5e, 0x83, 0x37, 0x40, 0xdc, 0x00, 0x0f,
|
||||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, 0x49, 0x5a, 0xde, 0x30, 0x49, 0x9f, 0xd5, 0x8b, 0xca, 0xf3, 0x7a, 0xf1, 0x07, 0x43,
|
||||
0x55, 0x3d, 0x71, 0x33, 0x49, 0x79, 0x0f, 0xcc, 0x54, 0x1b, 0x3c, 0x41, 0x53, 0x87, 0x41, 0x68,
|
||||
0x71, 0x98, 0x50, 0x54, 0x7e, 0x6c, 0x25, 0x3c, 0x51, 0x2c, 0x32, 0x66, 0xa2, 0xfc, 0x6a, 0x6d,
|
||||
0xac, 0x97, 0x92, 0x0d, 0xdf, 0x07, 0xc8, 0xe5, 0xb2, 0x8a, 0x71, 0x36, 0x66, 0xb9, 0x44, 0xea,
|
||||
0x14, 0x56, 0xec, 0xaa, 0xf3, 0x77, 0x7d, 0x0b, 0xfe, 0x5f, 0x97, 0x3e, 0x06, 0x6b, 0xfd, 0x00,
|
||||
0x40, 0x8e, 0x96, 0x35, 0x33, 0x4a, 0x5f, 0x00, 0x8a, 0xf5, 0xe3, 0x64, 0x62, 0x68, 0x2d, 0x2e,
|
||||
0xba, 0xdd, 0x56, 0x2b, 0x13, 0xb5, 0x90, 0x98, 0x44, 0xcd, 0x56, 0x79, 0xa5, 0xf7, 0x01, 0x0b,
|
||||
0xa5, 0x87, 0x0f, 0x20, 0x2d, 0x75, 0x6d, 0xcc, 0xa7, 0xc6, 0x8f, 0x55, 0x6d, 0x9f, 0x0f, 0xd0,
|
||||
0x69, 0x43, 0x6b, 0xca, 0x7f, 0xc3, 0xc2, 0xac, 0xd9, 0x7e, 0x06, 0x56, 0x0a, 0x24, 0x21, 0x1e,
|
||||
0xc0, 0x96, 0x44, 0x24, 0xe9, 0xee, 0xf5, 0xc4, 0x3d, 0x13, 0x54, 0x22, 0xd9, 0x4d, 0x18, 0xce,
|
||||
0x9f, 0x4b, 0xd0, 0xc8, 0x50, 0x75, 0x49, 0xae, 0xa9, 0x60, 0x5e, 0x40, 0x67, 0x34, 0xe6, 0x3c,
|
||||
0x4c, 0x7a, 0xdc, 0x54, 0xe0, 0x79, 0x82, 0xa9, 0x61, 0x95, 0xc6, 0xb1, 0xa0, 0x62, 0x81, 0xd9,
|
||||
0x31, 0xdd, 0x66, 0x82, 0x9d, 0x50, 0xb1, 0x20, 0x9f, 0x80, 0x9d, 0x52, 0xa2, 0x98, 0xf9, 0x81,
|
||||
0x12, 0x29, 0x2d, 0xa5, 0xed, 0x04, 0x1f, 0x27, 0xb0, 0x1a, 0xe5, 0xba, 0xc9, 0xbc, 0x88, 0xfa,
|
||||
0x73, 0x2f, 0x50, 0x59, 0xd4, 0x6f, 0x38, 0x4b, 0xe3, 0x63, 0xea, 0xcf, 0xcf, 0x05, 0x95, 0xe4,
|
||||
0x33, 0x78, 0x91, 0x7b, 0xe8, 0xe5, 0xe8, 0xba, 0x8b, 0x49, 0x9c, 0xbd, 0xf4, 0xb2, 0x2d, 0xaf,
|
||||
0xc0, 0x54, 0xda, 0xe0, 0xcd, 0x62, 0x46, 0x25, 0x9b, 0x27, 0x7d, 0xdc, 0x54, 0xd8, 0x40, 0x43,
|
||||
0xa4, 0x03, 0x35, 0x76, 0x17, 0xf9, 0x31, 0x9b, 0xa3, 0x36, 0xd4, 0xdd, 0xf4, 0x53, 0x6d, 0x16,
|
||||
0x92, 0xc7, 0xf4, 0x96, 0x79, 0x21, 0x0d, 0x18, 0x76, 0x77, 0xc3, 0x6d, 0x26, 0xd8, 0x05, 0x0d,
|
||||
0xd8, 0xc1, 0x6b, 0xa8, 0xa7, 0x62, 0x47, 0x4c, 0xa8, 0x9f, 0x5d, 0x5e, 0x8e, 0xbd, 0xcb, 0xab,
|
||||
0xa9, 0xfd, 0x01, 0x69, 0x42, 0x0d, 0xbf, 0x46, 0x17, 0xb6, 0x71, 0x20, 0xa0, 0x91, 0x69, 0x1d,
|
||||
0x69, 0x41, 0x63, 0x74, 0x31, 0x9a, 0x8e, 0x8e, 0xa6, 0xc3, 0x63, 0xfb, 0x03, 0xf2, 0x02, 0xb6,
|
||||
0xc7, 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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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ const (
|
|||
//incoming liquidity more quickly than if the server waited for the on chain
|
||||
//claim tx).
|
||||
ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT ProtocolVersion = 3
|
||||
// The client will propose a cltv expiry height for loop out.
|
||||
ProtocolVersion_USER_EXPIRY_LOOP_OUT ProtocolVersion = 4
|
||||
)
|
||||
|
||||
var ProtocolVersion_name = map[int32]string{
|
||||
|
|
@ -54,6 +56,7 @@ var ProtocolVersion_name = map[int32]string{
|
|||
1: "MULTI_LOOP_OUT",
|
||||
2: "NATIVE_SEGWIT_LOOP_IN",
|
||||
3: "PREIMAGE_PUSH_LOOP_OUT",
|
||||
4: "USER_EXPIRY_LOOP_OUT",
|
||||
}
|
||||
|
||||
var ProtocolVersion_value = map[string]int32{
|
||||
|
|
@ -61,6 +64,7 @@ var ProtocolVersion_value = map[string]int32{
|
|||
"MULTI_LOOP_OUT": 1,
|
||||
"NATIVE_SEGWIT_LOOP_IN": 2,
|
||||
"PREIMAGE_PUSH_LOOP_OUT": 3,
|
||||
"USER_EXPIRY_LOOP_OUT": 4,
|
||||
}
|
||||
|
||||
func (x ProtocolVersion) String() string {
|
||||
|
|
@ -157,10 +161,14 @@ type ServerLoopOutRequest struct {
|
|||
/// The unix time in seconds we want the on-chain swap to be published by.
|
||||
SwapPublicationDeadline int64 `protobuf:"varint,4,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"`
|
||||
/// The protocol version that the client adheres to.
|
||||
ProtocolVersion ProtocolVersion `protobuf:"varint,5,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ProtocolVersion ProtocolVersion `protobuf:"varint,5,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"`
|
||||
// The requested absolute block height of the on-chain htlc. This is
|
||||
// subjected to min and max constraints as reported in the LoopOutTerms
|
||||
// response.
|
||||
Expiry int32 `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutRequest) Reset() { *m = ServerLoopOutRequest{} }
|
||||
|
|
@ -223,11 +231,20 @@ func (m *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion {
|
|||
return ProtocolVersion_LEGACY
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutRequest) GetExpiry() int32 {
|
||||
if m != nil {
|
||||
return m.Expiry
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ServerLoopOutResponse struct {
|
||||
SwapInvoice string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
|
||||
PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"`
|
||||
SenderKey []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
|
||||
Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
||||
// The height at which the on-chain htlc will expire. Deprecated because the
|
||||
// field is already specified in the request.
|
||||
Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // Deprecated: Do not use.
|
||||
// A human-readable message from the loop server.
|
||||
ServerMessage string `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
|
|
@ -281,6 +298,7 @@ func (m *ServerLoopOutResponse) GetSenderKey() []byte {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *ServerLoopOutResponse) GetExpiry() int32 {
|
||||
if m != nil {
|
||||
return m.Expiry
|
||||
|
|
@ -301,10 +319,14 @@ type ServerLoopOutQuoteRequest struct {
|
|||
/// The unix time in seconds we want the on-chain swap to be published by.
|
||||
SwapPublicationDeadline int64 `protobuf:"varint,2,opt,name=swap_publication_deadline,json=swapPublicationDeadline,proto3" json:"swap_publication_deadline,omitempty"`
|
||||
/// The protocol version that the client adheres to.
|
||||
ProtocolVersion ProtocolVersion `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
ProtocolVersion ProtocolVersion `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty"`
|
||||
// The requested absolute block height of the on-chain htlc. This is
|
||||
// subjected to min and max constraints as reported in the LoopOutTerms
|
||||
// response.
|
||||
Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutQuoteRequest) Reset() { *m = ServerLoopOutQuoteRequest{} }
|
||||
|
|
@ -353,16 +375,25 @@ func (m *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion {
|
|||
return ProtocolVersion_LEGACY
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutQuoteRequest) GetExpiry() int32 {
|
||||
if m != nil {
|
||||
return m.Expiry
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ServerLoopOutQuote struct {
|
||||
SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
|
||||
/// The total estimated swap fee given the quote amt.
|
||||
SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
|
||||
/// Deprecated, total swap fee given quote amt is calculated in swap_fee.
|
||||
SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use.
|
||||
PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"`
|
||||
MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use.
|
||||
MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use.
|
||||
CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
|
||||
SwapFeeRate int64 `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use.
|
||||
PrepayAmt uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"`
|
||||
MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use.
|
||||
MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use.
|
||||
// The server-proposed cltv delta of the on-chain htlc. Deprecated because
|
||||
// the field is already specified in the request.
|
||||
CltvDelta int32 `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` // Deprecated: Do not use.
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
|
|
@ -438,6 +469,7 @@ func (m *ServerLoopOutQuote) GetMaxSwapAmount() uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *ServerLoopOutQuote) GetCltvDelta() int32 {
|
||||
if m != nil {
|
||||
return m.CltvDelta
|
||||
|
|
@ -486,8 +518,12 @@ func (m *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion {
|
|||
}
|
||||
|
||||
type ServerLoopOutTerms struct {
|
||||
MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
|
||||
MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
|
||||
MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
|
||||
MaxSwapAmount uint64 `protobuf:"varint,2,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,3,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,4,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:"-"`
|
||||
|
|
@ -532,6 +568,20 @@ func (m *ServerLoopOutTerms) GetMaxSwapAmount() uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutTerms) GetMinCltvDelta() int32 {
|
||||
if m != nil {
|
||||
return m.MinCltvDelta
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ServerLoopOutTerms) GetMaxCltvDelta() int32 {
|
||||
if m != nil {
|
||||
return m.MaxCltvDelta
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ServerLoopInRequest struct {
|
||||
SenderKey []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
|
||||
SwapHash []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
|
||||
|
|
@ -1135,83 +1185,87 @@ func init() {
|
|||
func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) }
|
||||
|
||||
var fileDescriptor_ad098daeda4239f7 = []byte{
|
||||
// 1203 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x72, 0xe2, 0x46,
|
||||
0x10, 0x8e, 0x04, 0x06, 0xd3, 0x80, 0xad, 0x9d, 0xdd, 0xf5, 0x62, 0x76, 0xed, 0x60, 0x52, 0x71,
|
||||
0x1c, 0x1f, 0xbc, 0x5b, 0x9b, 0x5b, 0x6e, 0x5a, 0x10, 0x46, 0xb5, 0x20, 0x11, 0x21, 0xec, 0xe4,
|
||||
0x34, 0x91, 0x61, 0x62, 0x54, 0x01, 0x49, 0x2b, 0x09, 0xff, 0x54, 0x8e, 0x79, 0x8a, 0xbc, 0x44,
|
||||
0x72, 0xca, 0x39, 0x4f, 0x91, 0x57, 0x48, 0x55, 0xde, 0x22, 0xa5, 0xd1, 0x08, 0x24, 0x90, 0x7f,
|
||||
0xa8, 0x72, 0x6e, 0x56, 0xf7, 0x37, 0xd3, 0xfd, 0x7d, 0x3d, 0x5f, 0x63, 0x28, 0x79, 0xc4, 0xbd,
|
||||
0x22, 0xee, 0x89, 0xe3, 0xda, 0xbe, 0x8d, 0xf2, 0x13, 0xdb, 0x76, 0x5c, 0x67, 0x58, 0x7d, 0x73,
|
||||
0x69, 0xdb, 0x97, 0x13, 0xf2, 0xd6, 0x70, 0xcc, 0xb7, 0x86, 0x65, 0xd9, 0xbe, 0xe1, 0x9b, 0xb6,
|
||||
0xe5, 0x85, 0xb0, 0xfa, 0xbf, 0x1c, 0xbc, 0xe8, 0xd3, 0x73, 0x1d, 0xdb, 0x76, 0xd4, 0x99, 0xaf,
|
||||
0x91, 0x4f, 0x33, 0xe2, 0xf9, 0xe8, 0x00, 0x4a, 0x2e, 0x19, 0x12, 0xf3, 0x8a, 0xb8, 0xf8, 0x67,
|
||||
0x72, 0x5b, 0xe1, 0x6a, 0xdc, 0x51, 0x49, 0x2b, 0x46, 0xb1, 0x8f, 0xe4, 0x16, 0xbd, 0x86, 0x82,
|
||||
0x77, 0x6d, 0x38, 0x78, 0x6c, 0x78, 0xe3, 0x0a, 0x4f, 0xf3, 0x9b, 0x41, 0xa0, 0x6d, 0x78, 0x63,
|
||||
0x24, 0x40, 0xc6, 0x98, 0xfa, 0x95, 0x4c, 0x8d, 0x3b, 0xca, 0x6a, 0xc1, 0x9f, 0xe8, 0x5b, 0xd8,
|
||||
0xa5, 0x70, 0x67, 0x76, 0x31, 0x31, 0x87, 0xb4, 0x0b, 0x3c, 0x22, 0xc6, 0x68, 0x62, 0x5a, 0xa4,
|
||||
0x92, 0xad, 0x71, 0x47, 0x19, 0xed, 0x55, 0x00, 0xe8, 0x2d, 0xf2, 0x4d, 0x96, 0x46, 0x0d, 0x10,
|
||||
0x68, 0xbf, 0x43, 0x7b, 0x82, 0xaf, 0x88, 0xeb, 0x99, 0xb6, 0x55, 0xd9, 0xa8, 0x71, 0x47, 0x5b,
|
||||
0xef, 0x2b, 0x27, 0x8c, 0xe8, 0x49, 0x8f, 0x01, 0xce, 0xc2, 0xbc, 0xb6, 0xed, 0x24, 0x03, 0xf5,
|
||||
0xbf, 0x38, 0x78, 0xb9, 0xc4, 0xd5, 0x73, 0x6c, 0xcb, 0x23, 0x01, 0x59, 0xda, 0x9a, 0x69, 0x5d,
|
||||
0xd9, 0xe6, 0x90, 0x50, 0xb2, 0x05, 0xad, 0x18, 0xc4, 0xe4, 0x30, 0x84, 0xbe, 0x84, 0x2d, 0xc7,
|
||||
0x25, 0x8e, 0x71, 0x3b, 0x07, 0xf1, 0x14, 0x54, 0x0e, 0xa3, 0x11, 0x6c, 0x0f, 0xc0, 0x23, 0xd6,
|
||||
0x88, 0x89, 0x96, 0xa1, 0xa2, 0x14, 0xc2, 0x48, 0x20, 0xd9, 0x0e, 0xe4, 0xc8, 0x8d, 0x63, 0xba,
|
||||
0xb7, 0x94, 0xf0, 0x86, 0xc6, 0xbe, 0x82, 0xdb, 0xc3, 0xe9, 0xe1, 0x29, 0xf1, 0x3c, 0xe3,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, 0x3d, 0x18, 0xa4, 0xc2, 0x96, 0x42, 0xae, 0x59, 0x28,
|
||||
0x28, 0x84, 0xf6, 0xd2, 0xe1, 0xd1, 0x6d, 0xfb, 0x77, 0xa5, 0xd9, 0x2b, 0x9d, 0xc0, 0xf3, 0x14,
|
||||
0x67, 0xa3, 0xaf, 0xd3, 0x8f, 0xa5, 0xac, 0xa0, 0xea, 0xf1, 0x63, 0xa0, 0xac, 0xda, 0x42, 0x8f,
|
||||
0xf0, 0x9f, 0xc4, 0x3b, 0xf4, 0x88, 0xff, 0xf8, 0xdd, 0xa5, 0x47, 0x78, 0x41, 0x07, 0x8a, 0xf1,
|
||||
0x1d, 0x7c, 0x90, 0x82, 0x4d, 0xfe, 0x00, 0x54, 0xab, 0x77, 0x43, 0x50, 0x07, 0xca, 0x4c, 0x5d,
|
||||
0x99, 0x6e, 0x6c, 0xf4, 0x26, 0x15, 0x1c, 0x5d, 0xb5, 0x77, 0x47, 0x96, 0x91, 0xd5, 0xa3, 0xde,
|
||||
0xc2, 0x56, 0xd3, 0x7b, 0x4b, 0x50, 0xad, 0xdf, 0x07, 0x61, 0xb7, 0x5e, 0xc6, 0x76, 0x6d, 0x72,
|
||||
0xdd, 0xa1, 0xda, 0xe2, 0x78, 0xfa, 0x36, 0xae, 0x1e, 0xad, 0x22, 0xd2, 0x57, 0xe6, 0x3b, 0x0e,
|
||||
0x11, 0xd8, 0x49, 0xdf, 0x70, 0x8f, 0xa8, 0xf3, 0x55, 0x7a, 0x9d, 0x95, 0x25, 0xf9, 0x8e, 0xbb,
|
||||
0xc8, 0xd1, 0x65, 0xff, 0xcd, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xcd, 0x43, 0xb7, 0xdb,
|
||||
0x0e, 0x00, 0x00,
|
||||
// 1275 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x72,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, 0x2b, 0x2c, 0x70, 0x40,
|
||||
0xa2, 0x53, 0xa4, 0x40, 0x89, 0xb8, 0x71, 0xa3, 0xd4, 0x92, 0x76, 0xca, 0x16, 0xfb, 0x89, 0xbe,
|
||||
0x81, 0x4d, 0x0e, 0x0f, 0x26, 0x47, 0x63, 0x67, 0xc4, 0xbb, 0xc0, 0xc7, 0x94, 0x1c, 0x8f, 0x1d,
|
||||
0x8f, 0x36, 0xca, 0x2d, 0x69, 0xa7, 0x64, 0x3d, 0x60, 0x80, 0xfe, 0x2c, 0xdf, 0x11, 0x69, 0xd4,
|
||||
0x06, 0x85, 0xf7, 0x3b, 0xf2, 0xc7, 0xf8, 0x8c, 0x86, 0x91, 0xe3, 0x7b, 0x8d, 0xa5, 0x96, 0xb4,
|
||||
0xb3, 0xf6, 0xbc, 0xb1, 0x27, 0x88, 0xee, 0xf5, 0x05, 0xe0, 0x75, 0x92, 0xb7, 0xd6, 0x83, 0x7c,
|
||||
0x00, 0x6d, 0x40, 0x85, 0x9e, 0x07, 0x4e, 0x78, 0xd1, 0xa8, 0xb4, 0xa4, 0x9d, 0x25, 0x4b, 0x3c,
|
||||
0xa9, 0x7f, 0x4a, 0x70, 0x7f, 0x4e, 0x83, 0x28, 0xf0, 0xbd, 0x88, 0x32, 0x11, 0x78, 0xcb, 0x8e,
|
||||
0x77, 0xe6, 0x3b, 0x23, 0xca, 0x45, 0xa8, 0x5a, 0x35, 0x16, 0x33, 0x92, 0x10, 0xfa, 0x02, 0xd6,
|
||||
0x82, 0x90, 0x06, 0xe4, 0x62, 0x0a, 0x92, 0x39, 0x68, 0x35, 0x89, 0xa6, 0xb0, 0x2d, 0x80, 0x88,
|
||||
0x7a, 0xc7, 0x42, 0xcc, 0x12, 0x17, 0xab, 0x9a, 0x44, 0x98, 0x94, 0xcd, 0x69, 0x6b, 0x4c, 0x88,
|
||||
0xa5, 0x17, 0x72, 0x43, 0x4a, 0xdb, 0x63, 0x15, 0x92, 0xc9, 0x62, 0x97, 0x46, 0x11, 0x39, 0xa1,
|
||||
0x9c, 0x79, 0xd5, 0x5a, 0x4d, 0xa2, 0x87, 0x49, 0x50, 0xfd, 0x4b, 0x82, 0xcd, 0x1c, 0x8b, 0x6f,
|
||||
0x27, 0x7e, 0x4c, 0xd3, 0x71, 0x8a, 0x71, 0x48, 0xd7, 0x1c, 0x87, 0x7c, 0xf3, 0x71, 0x94, 0xfe,
|
||||
0xfb, 0x38, 0xca, 0xb9, 0x71, 0xfc, 0x2a, 0x03, 0x5a, 0x24, 0x82, 0x76, 0xe1, 0x4e, 0xd2, 0x2f,
|
||||
0xb9, 0x70, 0xa9, 0x17, 0xe3, 0x63, 0x1a, 0xc5, 0x62, 0x20, 0xeb, 0xbc, 0xcf, 0x24, 0xde, 0x61,
|
||||
0x6c, 0x37, 0x81, 0x5f, 0x44, 0xfc, 0x3d, 0x4d, 0xa9, 0x2c, 0xb3, 0xe7, 0x7d, 0x4a, 0xd1, 0x13,
|
||||
0x58, 0x4d, 0x53, 0x38, 0x24, 0x31, 0xe5, 0x7d, 0x97, 0xb8, 0xe0, 0x35, 0x81, 0xb1, 0x48, 0xcc,
|
||||
0x07, 0x26, 0xe6, 0xca, 0x74, 0x2b, 0x73, 0xdd, 0xaa, 0x49, 0x44, 0x73, 0x63, 0xb4, 0x0b, 0xeb,
|
||||
0xae, 0xe3, 0x61, 0x7e, 0x14, 0x71, 0xfd, 0x89, 0x17, 0xf3, 0xa9, 0x94, 0xf9, 0x41, 0xab, 0xae,
|
||||
0xe3, 0x0d, 0x3e, 0x90, 0x40, 0xe3, 0x09, 0x8e, 0x25, 0xe7, 0x39, 0x6c, 0x25, 0x83, 0x25, 0xe7,
|
||||
0x19, 0xec, 0x36, 0xc0, 0x68, 0x1c, 0x9f, 0xe1, 0x63, 0x3a, 0x8e, 0x49, 0x63, 0x79, 0x7a, 0x19,
|
||||
0xaa, 0x2c, 0xda, 0x61, 0x41, 0xf5, 0xbb, 0xb9, 0x39, 0xdb, 0x34, 0x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||||
0x73, 0x67, 0x11, 0x51, 0xec, 0xa6, 0xcf, 0x24, 0x44, 0x61, 0xa3, 0xd8, 0xfc, 0xae, 0x51, 0xe7,
|
||||
0xcb, 0xe2, 0x3a, 0x0b, 0xfe, 0xf9, 0x4c, 0x3a, 0xaa, 0xf0, 0xef, 0xc0, 0xd7, 0xff, 0x06, 0x00,
|
||||
0x00, 0xff, 0xff, 0x95, 0x8b, 0xab, 0x97, 0x7b, 0x0f, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@ enum ProtocolVersion {
|
|||
claim tx).
|
||||
*/
|
||||
PREIMAGE_PUSH_LOOP_OUT = 3;
|
||||
|
||||
// The client will propose a cltv expiry height for loop out.
|
||||
USER_EXPIRY_LOOP_OUT = 4;
|
||||
}
|
||||
|
||||
message ServerLoopOutRequest {
|
||||
|
|
@ -68,6 +71,11 @@ message ServerLoopOutRequest {
|
|||
|
||||
/// The protocol version that the client adheres to.
|
||||
ProtocolVersion protocol_version = 5;
|
||||
|
||||
// The requested absolute block height of the on-chain htlc. This is
|
||||
// subjected to min and max constraints as reported in the LoopOutTerms
|
||||
// response.
|
||||
int32 expiry = 6;
|
||||
}
|
||||
|
||||
message ServerLoopOutResponse {
|
||||
|
|
@ -77,7 +85,9 @@ message ServerLoopOutResponse {
|
|||
|
||||
bytes sender_key = 3;
|
||||
|
||||
int32 expiry = 4;
|
||||
// The height at which the on-chain htlc will expire. Deprecated because the
|
||||
// field is already specified in the request.
|
||||
int32 expiry = 4 [deprecated = true];
|
||||
|
||||
// A human-readable message from the loop server.
|
||||
string server_message = 5;
|
||||
|
|
@ -92,6 +102,11 @@ message ServerLoopOutQuoteRequest {
|
|||
|
||||
/// The protocol version that the client adheres to.
|
||||
ProtocolVersion protocol_version = 3;
|
||||
|
||||
// The requested absolute block height of the on-chain htlc. This is
|
||||
// subjected to min and max constraints as reported in the LoopOutTerms
|
||||
// response.
|
||||
int32 expiry = 4;
|
||||
}
|
||||
|
||||
message ServerLoopOutQuote {
|
||||
|
|
@ -109,7 +124,9 @@ message ServerLoopOutQuote {
|
|||
|
||||
uint64 max_swap_amount = 6 [deprecated = true];
|
||||
|
||||
int32 cltv_delta = 7;
|
||||
// The server-proposed cltv delta of the on-chain htlc. Deprecated because
|
||||
// the field is already specified in the request.
|
||||
int32 cltv_delta = 7 [deprecated = true];
|
||||
}
|
||||
|
||||
message ServerLoopOutTermsRequest {
|
||||
|
|
@ -120,6 +137,12 @@ message ServerLoopOutTermsRequest {
|
|||
message ServerLoopOutTerms {
|
||||
uint64 min_swap_amount = 1;
|
||||
uint64 max_swap_amount = 2;
|
||||
|
||||
// The minimally accepted cltv delta of the on-chain htlc.
|
||||
int32 min_cltv_delta = 3;
|
||||
|
||||
// The maximally accepted cltv delta of the on-chain htlc.
|
||||
int32 max_cltv_delta = 4;
|
||||
}
|
||||
|
||||
message ServerLoopInRequest {
|
||||
|
|
|
|||
|
|
@ -18,12 +18,13 @@ import (
|
|||
var (
|
||||
testTime = time.Date(2018, time.January, 9, 14, 00, 00, 0, time.UTC)
|
||||
|
||||
testLoopOutOnChainCltvDelta = int32(30)
|
||||
testChargeOnChainCltvDelta = int32(100)
|
||||
testSwapFee = btcutil.Amount(210)
|
||||
testFixedPrepayAmount = btcutil.Amount(100)
|
||||
testMinSwapAmount = btcutil.Amount(10000)
|
||||
testMaxSwapAmount = btcutil.Amount(1000000)
|
||||
testLoopOutMinOnChainCltvDelta = int32(30)
|
||||
testLoopOutMaxOnChainCltvDelta = int32(40)
|
||||
testChargeOnChainCltvDelta = int32(100)
|
||||
testSwapFee = btcutil.Amount(210)
|
||||
testFixedPrepayAmount = btcutil.Amount(100)
|
||||
testMinSwapAmount = btcutil.Amount(10000)
|
||||
testMaxSwapAmount = btcutil.Amount(1000000)
|
||||
)
|
||||
|
||||
// serverMock is used in client unit tests to simulate swap server behaviour.
|
||||
|
|
@ -58,7 +59,7 @@ func newServerMock() *serverMock {
|
|||
}
|
||||
|
||||
func (s *serverMock) NewLoopOutSwap(ctx context.Context,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount, expiry int32,
|
||||
receiverKey [33]byte, _ time.Time) (
|
||||
*newLoopOutResponse, error) {
|
||||
|
||||
|
|
@ -87,7 +88,6 @@ func (s *serverMock) NewLoopOutSwap(ctx context.Context,
|
|||
senderKey: senderKeyArray,
|
||||
swapInvoice: swapPayReqString,
|
||||
prepayInvoice: prePayReqString,
|
||||
expiry: s.height + testLoopOutOnChainCltvDelta,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
@ -97,18 +97,19 @@ func (s *serverMock) GetLoopOutTerms(ctx context.Context) (
|
|||
return &LoopOutTerms{
|
||||
MinSwapAmount: testMinSwapAmount,
|
||||
MaxSwapAmount: testMaxSwapAmount,
|
||||
MinCltvDelta: testLoopOutMinOnChainCltvDelta,
|
||||
MaxCltvDelta: testLoopOutMaxOnChainCltvDelta,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *serverMock) GetLoopOutQuote(ctx context.Context, amt btcutil.Amount,
|
||||
_ time.Time) (*LoopOutQuote, error) {
|
||||
expiry int32, _ time.Time) (*LoopOutQuote, error) {
|
||||
|
||||
dest := [33]byte{1, 2, 3}
|
||||
|
||||
return &LoopOutQuote{
|
||||
SwapFee: testSwapFee,
|
||||
SwapPaymentDest: dest,
|
||||
CltvDelta: testLoopOutOnChainCltvDelta,
|
||||
PrepayAmount: testFixedPrepayAmount,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import (
|
|||
|
||||
// protocolVersion defines the version of the protocol that is currently
|
||||
// supported by the loop client.
|
||||
const protocolVersion = looprpc.ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT
|
||||
const protocolVersion = looprpc.ProtocolVersion_USER_EXPIRY_LOOP_OUT
|
||||
|
||||
var (
|
||||
// errServerSubscriptionComplete is returned when our subscription to
|
||||
|
|
@ -46,7 +46,7 @@ type swapServerClient interface {
|
|||
GetLoopOutTerms(ctx context.Context) (
|
||||
*LoopOutTerms, error)
|
||||
|
||||
GetLoopOutQuote(ctx context.Context, amt btcutil.Amount,
|
||||
GetLoopOutQuote(ctx context.Context, amt btcutil.Amount, expiry int32,
|
||||
swapPublicationDeadline time.Time) (
|
||||
*LoopOutQuote, error)
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ type swapServerClient interface {
|
|||
*LoopInQuote, error)
|
||||
|
||||
NewLoopOutSwap(ctx context.Context,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount, expiry int32,
|
||||
receiverKey [33]byte,
|
||||
swapPublicationDeadline time.Time) (
|
||||
*newLoopOutResponse, error)
|
||||
|
|
@ -140,11 +140,13 @@ 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
|
||||
}
|
||||
|
||||
func (s *grpcSwapServerClient) GetLoopOutQuote(ctx context.Context,
|
||||
amt btcutil.Amount, swapPublicationDeadline time.Time) (
|
||||
amt btcutil.Amount, expiry int32, swapPublicationDeadline time.Time) (
|
||||
*LoopOutQuote, error) {
|
||||
|
||||
rpcCtx, rpcCancel := context.WithTimeout(ctx, globalCallTimeout)
|
||||
|
|
@ -154,6 +156,7 @@ func (s *grpcSwapServerClient) GetLoopOutQuote(ctx context.Context,
|
|||
Amt: uint64(amt),
|
||||
SwapPublicationDeadline: swapPublicationDeadline.Unix(),
|
||||
ProtocolVersion: protocolVersion,
|
||||
Expiry: expiry,
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
|
@ -173,7 +176,6 @@ func (s *grpcSwapServerClient) GetLoopOutQuote(ctx context.Context,
|
|||
return &LoopOutQuote{
|
||||
PrepayAmount: btcutil.Amount(quoteResp.PrepayAmt),
|
||||
SwapFee: btcutil.Amount(quoteResp.SwapFee),
|
||||
CltvDelta: quoteResp.CltvDelta,
|
||||
SwapPaymentDest: destArray,
|
||||
}, nil
|
||||
}
|
||||
|
|
@ -220,7 +222,7 @@ func (s *grpcSwapServerClient) GetLoopInQuote(ctx context.Context,
|
|||
}
|
||||
|
||||
func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount,
|
||||
swapHash lntypes.Hash, amount btcutil.Amount, expiry int32,
|
||||
receiverKey [33]byte, swapPublicationDeadline time.Time) (
|
||||
*newLoopOutResponse, error) {
|
||||
|
||||
|
|
@ -233,6 +235,7 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
|
|||
ReceiverKey: receiverKey[:],
|
||||
SwapPublicationDeadline: swapPublicationDeadline.Unix(),
|
||||
ProtocolVersion: protocolVersion,
|
||||
Expiry: expiry,
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
|
@ -252,7 +255,6 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
|
|||
swapInvoice: swapResp.SwapInvoice,
|
||||
prepayInvoice: swapResp.PrepayInvoice,
|
||||
senderKey: senderKey,
|
||||
expiry: swapResp.Expiry,
|
||||
serverMessage: swapResp.ServerMessage,
|
||||
}, nil
|
||||
}
|
||||
|
|
@ -526,7 +528,6 @@ type newLoopOutResponse struct {
|
|||
swapInvoice string
|
||||
prepayInvoice string
|
||||
senderKey [33]byte
|
||||
expiry int32
|
||||
serverMessage string
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue