balanceofsatoshis 22.1.4 → 22.1.6

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,9 @@
1
1
  # Versions
2
2
 
3
+ ## 22.1.6
4
+
5
+ - Add support for LND 0.21.1
6
+
3
7
  ## 22.1.4
4
8
 
5
9
  - Improve support for SOCKS proxy on old node versions
package/README.md CHANGED
@@ -7,7 +7,7 @@ Commands for working with LND balances.
7
7
 
8
8
  Supported LND versions:
9
9
 
10
- - v0.21.0-beta
10
+ - v0.21.0-beta to v0.21.1-beta
11
11
  - v0.20.0-beta to v0.20.1-beta
12
12
 
13
13
  ## Install
package/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "cbor": "10.0.12",
29
29
  "colorette": "2.0.20",
30
30
  "crypto-js": "4.2.0",
31
- "csv-parse": "6.2.1",
31
+ "csv-parse": "7.0.1",
32
32
  "ecpair": "2.1.0",
33
33
  "goldengate": "16.0.3",
34
34
  "grammy": "1.44.0",
@@ -37,7 +37,7 @@
37
37
  "ini": "7.0.0",
38
38
  "inquirer": "14.0.2",
39
39
  "ln-accounting": "10.0.3",
40
- "ln-service": "59.1.1",
40
+ "ln-service": "59.2.0",
41
41
  "ln-sync": "8.0.3",
42
42
  "ln-telegram": "8.0.3",
43
43
  "minimist": "1.2.8",
@@ -54,7 +54,7 @@
54
54
  "description": "Lightning balance CLI",
55
55
  "devDependencies": {
56
56
  "invoices": "5.0.2",
57
- "ln-docker-daemons": "8.0.1"
57
+ "ln-docker-daemons": "8.0.2"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=22"
@@ -81,5 +81,5 @@
81
81
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
82
82
  "test": "npx nyc@17.1.0 node --experimental-test-coverage --test test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
83
83
  },
84
- "version": "22.1.4"
84
+ "version": "22.1.6"
85
85
  }
@@ -1,37 +1,25 @@
1
1
  const {equal} = require('node:assert').strict;
2
2
  const test = require('node:test');
3
3
 
4
- const {address} = require('bitcoinjs-lib');
5
4
  const {createChainAddress} = require('ln-service');
6
- const {crypto} = require('bitcoinjs-lib');
7
- const {networks} = require('bitcoinjs-lib');
8
- const {script} = require('bitcoinjs-lib');
9
5
  const {spawnLightningCluster} = require('ln-docker-daemons');
10
- const tinysecp = require('tiny-secp256k1');
11
6
 
12
7
  const {fundTransaction} = require('./../../chain');
13
8
 
14
- const {compile} = script;
15
9
  const count = 100;
16
- const {fromOutputScript} = address;
17
- const makeTaprootKey = (k, h) => tinysecp.xOnlyPointAddTweak(k, h).xOnlyPubkey;
18
- const OP_1 = 81;
19
- const shortKey = keyPair => keyPair.publicKey.slice(1, 33);
20
- const tapHash = k => crypto.taggedHash('TapTweak', k.publicKey.slice(1, 33));
21
10
  const tokens = 1e6;
22
11
 
23
12
  // Funding a transaction should result in a funded tx
24
13
  test(`Fund transaction`, async () => {
25
- const ecp = (await import('ecpair')).ECPairFactory(tinysecp);
26
14
  const {kill, nodes} = await spawnLightningCluster({});
27
15
 
28
16
  const [{generate, lnd}] = nodes;
29
17
 
30
- const {address} = await createChainAddress({lnd, format: 'p2tr'});
18
+ try {
19
+ const {address} = await createChainAddress({lnd, format: 'p2tr'});
31
20
 
32
- await generate({count});
21
+ await generate({count});
33
22
 
34
- try {
35
23
  await fundTransaction({
36
24
  lnd,
37
25
  addresses: [address],
@@ -44,7 +32,7 @@ test(`Fund transaction`, async () => {
44
32
  });
45
33
  } catch (err) {
46
34
  equal(err, null, 'Expected no error');
35
+ } finally {
36
+ await kill({});
47
37
  }
48
-
49
- await kill({});
50
38
  });
@@ -19,7 +19,7 @@ const report = [
19
19
  },
20
20
  {},
21
21
  {
22
- subtitle: '56 years ago',
22
+ subtitle: '57 years ago',
23
23
  title: 'Last Block:',
24
24
  },
25
25
  {