ln-service 57.19.0 → 57.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Versions
2
2
 
3
+ ## 57.20.1
4
+
5
+ - `payViaPaymentRequest`, `subscribeToPayViaRequest`: Add `index` to response
6
+ for payment offset number in payments set
7
+
3
8
  ## 57.19.0
4
9
 
5
10
  - `createInvoice`: add `is_encrypting_routes` to enable blinded paths feature
package/README.md CHANGED
@@ -4487,6 +4487,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
4487
4487
  timeout: <First Route Timeout Block Height Number>
4488
4488
  }]
4489
4489
  id: <Payment Hash Hex String>
4490
+ index: <Payment Index Offset Number String>
4490
4491
  mtokens: <Total Millitokens Paid String>
4491
4492
  paths: [{
4492
4493
  fee_mtokens: <Total Fee Millitokens Paid String>
@@ -6583,6 +6584,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
6583
6584
  timeout: <Timeout Block Height Number>
6584
6585
  }]
6585
6586
  id: <Payment Hash Hex String>
6587
+ index: <Payment Index Offset Number String>
6586
6588
  mtokens: <Total Millitokens Paid String>
6587
6589
  safe_fee: <Payment Forwarding Fee Rounded Up Tokens Number>
6588
6590
  safe_tokens: <Payment Tokens Rounded Up Number>
@@ -6625,6 +6627,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
6625
6627
  created_at: <Payment Created At ISO 8601 Date String>
6626
6628
  destination: <Payment Destination Hex String>
6627
6629
  id: <Payment Hash Hex String>
6630
+ index: <Payment Index Offset Number String>
6628
6631
  mtokens: <Total Millitokens Pending String>
6629
6632
  paths: [{
6630
6633
  fee: <Total Fee Tokens Pending Number>
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "bolt07": "1.9.4",
11
11
  "invoices": "3.0.0",
12
- "lightning": "10.19.0",
12
+ "lightning": "10.20.1",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -32,7 +32,7 @@
32
32
  "secp256k1": "5.0.0",
33
33
  "tiny-secp256k1": "2.2.3",
34
34
  "uuid": "10.0.0",
35
- "varuint-bitcoin": "1.1.2"
35
+ "varuint-bitcoin": "2.0.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=18"
@@ -74,5 +74,5 @@
74
74
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
75
75
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
76
76
  },
77
- "version": "57.19.0"
77
+ "version": "57.20.1"
78
78
  }
@@ -92,6 +92,7 @@ test(`Pay via payment request`, async () => {
92
92
  equal(paid.fee, 1, 'Fee tokens paid');
93
93
  equal(paid.fee_mtokens, '1000', 'Fee mtokens tokens paid');
94
94
  equal(paid.id, invoice.id, 'Payment hash is equal on both sides');
95
+ equal(paid.index, '2', 'Got payment offset index');
95
96
  equal(paid.mtokens, '101000', 'Paid mtokens');
96
97
  equal(paid.secret, invoice.secret, 'Paid for invoice secret');
97
98