ln-service 56.0.0 → 56.1.0

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
+ ## 56.1.0
4
+
5
+ - `getWalletInfo`: Add support for LND 0.16.1
6
+ - `subscribeToOpenRequests`: Add `type` for channel request commitment type
7
+
3
8
  ## 56.0.0
4
9
 
5
10
  ### Breaking Changes
package/README.md CHANGED
@@ -9,7 +9,7 @@ through npm.
9
9
 
10
10
  Supported LND versions:
11
11
 
12
- - v0.16.0-beta
12
+ - v0.16.0-beta to v0.16.1-beta
13
13
  - v0.15.2-beta to v0.15.5-beta
14
14
  - v0.14.4-beta to v0.14.5-beta
15
15
 
@@ -5739,6 +5739,7 @@ LND 0.15.0 and below do not support `is_trusted_funding`
5739
5739
  reject: <Reject Request Function> ({
5740
5740
  [reason]: <500 Character Limited Rejection Reason String>
5741
5741
  }) -> {}
5742
+ [type]: <Channel Commitment Transaction Type String>
5742
5743
  }
5743
5744
 
5744
5745
  Example:
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "cors": "2.8.5",
12
12
  "express": "4.18.2",
13
13
  "invoices": "2.2.3",
14
- "lightning": "9.0.0",
14
+ "lightning": "9.1.0",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
17
  "ws": "8.13.0"
@@ -28,7 +28,7 @@
28
28
  "bn.js": "5.2.1",
29
29
  "bs58check": "3.0.1",
30
30
  "ecpair": "2.1.0",
31
- "ln-docker-daemons": "5.0.0",
31
+ "ln-docker-daemons": "5.0.1",
32
32
  "p2tr": "1.3.3",
33
33
  "portfinder": "1.0.32",
34
34
  "psbt": "2.7.2",
@@ -56,6 +56,7 @@
56
56
  "url": "https://github.com/alexbosworth/ln-service.git"
57
57
  },
58
58
  "scripts": {
59
+ "integration-test-0.16.1": "DOCKER_LND_VERSION=v0.16.1-beta npm run test",
59
60
  "integration-test-0.16.0": "DOCKER_LND_VERSION=v0.16.0-beta npm run test",
60
61
  "integration-test-0.15.5": "DOCKER_LND_VERSION=v0.15.5-beta npm run test",
61
62
  "integration-test-0.15.4": "DOCKER_LND_VERSION=v0.15.4-beta npm run test",
@@ -65,5 +66,5 @@
65
66
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
66
67
  "test": "echo $DOCKER_LND_VERSION && tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 200 test/autopilotrpc-integration/*.js test/chainrpc-integration/*.js test/integration/*.js test/invoicesrpc-integration/*.js test/peersrpc-integration/*.js test/routerrpc-integration/*.js test/signerrpc-integration/*.js test/tower_clientrpc-integration/*.js test/tower_serverrpc-integration/*.js test/walletrpc-integration/*.js"
67
68
  },
68
- "version": "56.0.0"
69
+ "version": "56.1.0"
69
70
  }
@@ -24,7 +24,7 @@ const baseFeeMtokens = '1234';
24
24
  const capacity = 1e6;
25
25
  const count = 10;
26
26
  const defaultBaseFee = '1000';
27
- const interval = 10;
27
+ const interval = 20;
28
28
  const feeRate = 56;
29
29
  const maturity = 100;
30
30
  const race = promises => Promise.race(promises);
@@ -90,6 +90,7 @@ test(`Subscribe to open requests`, async ({end, equal, fail, ok}) => {
90
90
  ok(request.min_chain_output >= dustLimit, 'Dust limit tokens returned');
91
91
  equal(request.min_htlc_mtokens, '1', 'Got min htlc amount');
92
92
  equal(request.partner_public_key, target.id, 'Got pubkey');
93
+ equal(request.type, 'anchor', 'Channel type is returned');
93
94
 
94
95
  request.accept({
95
96
  cooperative_close_address: address,