ln-service 57.14.3 → 57.15.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,6 +1,11 @@
1
1
  # Versions
2
2
 
3
- ## 57.14.3
3
+ ## 57.15.0
4
+
5
+ - `authenticatedLndGrpc`, `unauthenticatedLndGrpc`: Add `path` to specify the
6
+ protos directory
7
+
8
+ ## 57.14.4
4
9
 
5
10
  - `getChannel`: Add support for specifying `transaction_id` and
6
11
  `transaction_vout` instead of `id`
package/README.md CHANGED
@@ -9,7 +9,7 @@ through npm.
9
9
 
10
10
  Supported LND versions:
11
11
 
12
- - v0.18.0-beta
12
+ - v0.18.0-beta to v0.18.1-beta
13
13
  - v0.17.0-beta to v0.17.5-beta
14
14
  - v0.16.0-beta to v0.16.4-beta
15
15
  - v0.15.2-beta to v0.15.5-beta
@@ -426,6 +426,7 @@ Both the cert and macaroon expect the entire serialized LND generated file
426
426
  {
427
427
  [cert]: <Base64 or Hex Serialized LND TLS Cert>
428
428
  [macaroon]: <Base64 or Hex Serialized Macaroon String>
429
+ [path]: <Path to Proto Files Directory String>
429
430
  [socket]: <Host:Port String>
430
431
  }
431
432
 
@@ -7437,6 +7438,7 @@ Make sure to provide a cert when using LND with its default self-signed cert
7437
7438
 
7438
7439
  {
7439
7440
  [cert]: <Base64 or Hex Serialized LND TLS Cert>
7441
+ [path]: <Path to Proto Files Directory String>
7440
7442
  [socket]: <Host:Port String>
7441
7443
  }
7442
7444
 
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.14.1",
12
+ "lightning": "10.15.1",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -19,16 +19,16 @@
19
19
  "async": "3.2.5",
20
20
  "asyncjs-util": "1.2.12",
21
21
  "bip32": "4.0.0",
22
- "bip66": "1.1.5",
22
+ "bip66": "2.0.0",
23
23
  "bitcoinjs-lib": "6.1.6",
24
24
  "bn.js": "5.2.1",
25
- "bs58check": "3.0.1",
25
+ "bs58check": "4.0.0",
26
26
  "ecpair": "2.1.0",
27
- "ln-docker-daemons": "6.0.19",
27
+ "ln-docker-daemons": "6.0.21",
28
28
  "p2tr": "2.0.0",
29
29
  "portfinder": "1.0.32",
30
30
  "psbt": "3.0.0",
31
- "rimraf": "5.0.7",
31
+ "rimraf": "6.0.1",
32
32
  "secp256k1": "5.0.0",
33
33
  "tiny-secp256k1": "2.2.3",
34
34
  "uuid": "10.0.0",
@@ -52,6 +52,8 @@
52
52
  "url": "https://github.com/alexbosworth/ln-service.git"
53
53
  },
54
54
  "scripts": {
55
+ "integration-test-0.18.2": "DOCKER_LND_VERSION=v0.18.2-beta npm run test",
56
+ "integration-test-0.18.1": "DOCKER_LND_VERSION=v0.18.1-beta npm run test",
55
57
  "integration-test-0.18.0": "DOCKER_LND_VERSION=v0.18.0-beta npm run test",
56
58
  "integration-test-0.17.5": "DOCKER_LND_VERSION=v0.17.5-beta npm run test",
57
59
  "integration-test-0.17.4": "DOCKER_LND_VERSION=v0.17.4-beta npm run test",
@@ -72,5 +74,5 @@
72
74
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
73
75
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
74
76
  },
75
- "version": "57.14.3"
77
+ "version": "57.15.0"
76
78
  }
@@ -145,6 +145,8 @@ test(`Get route through complex hops`, async () => {
145
145
  await asyncRetry({interval, times}, async () => {
146
146
  const {features} = await getNode({lnd, public_key: farthest.id});
147
147
 
148
+ await addPeer({lnd, public_key: farthest.id, socket: farthest.socket});
149
+
148
150
  if (!features.length) {
149
151
  throw new Error('ExpectedFarthestFeatures');
150
152
  }
@@ -126,13 +126,15 @@ test(`Get route through hops`, async () => {
126
126
  total_mtokens: decodedRequest.mtokens,
127
127
  });
128
128
 
129
- const lndRoute = await getRouteThroughHops({
130
- lnd,
131
- cltv_delta: decodedRequest.cltv_delta + confirmationCount,
132
- mtokens: decodedRequest.mtokens,
133
- payment: decodedRequest.payment,
134
- public_keys: [target.id, remote.id],
135
- total_mtokens: decodedRequest.mtokens,
129
+ const lndRoute = await asyncRetry({interval, times}, async () => {
130
+ return await getRouteThroughHops({
131
+ lnd,
132
+ cltv_delta: decodedRequest.cltv_delta + confirmationCount,
133
+ mtokens: decodedRequest.mtokens,
134
+ payment: decodedRequest.payment,
135
+ public_keys: [target.id, remote.id],
136
+ total_mtokens: decodedRequest.mtokens,
137
+ });
136
138
  });
137
139
 
138
140
  const discounted = BigInt(discountFee.inbound_base_discount_mtokens);
@@ -3,7 +3,7 @@ const {equal} = require('node:assert').strict;
3
3
  const test = require('node:test');
4
4
 
5
5
  const bip32 = require('bip32');
6
- const bs58check = require('bs58check');
6
+ const bs58check = require('bs58check').default;
7
7
  const ecc = require('tiny-secp256k1')
8
8
  const {spawnLightningCluster} = require('ln-docker-daemons');
9
9