balanceofsatoshis 11.16.2 → 11.19.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,21 @@
1
1
  # Versions
2
2
 
3
+ ## 11.19.0
4
+
5
+ - `change-channel-capacity`: Allow changing private/public status of channel
6
+
7
+ ## 11.18.1
8
+
9
+ This release fixes an important issue with the experimental
10
+ `change-channel-capacity` command. Do not use this command on past versions.
11
+
12
+ - `change-channel-capacity`: Fix failure to preserve announce flags
13
+ - `trade-secret`: The public key of the peer to trade with is now optional
14
+
15
+ ## 11.17.0
16
+
17
+ - `change-channel-capacity`: Add command to adjust channel capacity up or down
18
+
3
19
  ## 11.16.2
4
20
 
5
21
  - Address Docker image installation issues
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:16
1
+ FROM node:lts-alpine
2
2
 
3
3
  # UID / GID 1000 is default for user `node` in the `node:latest` image, this
4
4
  # way the process will run as a non-root user
package/README.md CHANGED
@@ -283,7 +283,7 @@ variable to avoid adding the --node prefix
283
283
  If that is set, it will use that node if no node is specified.
284
284
 
285
285
  You can also add a JSON file to your .bos directory: config.json, add
286
- "default_saved_node": "nodename" to set the default via a file instead
286
+ `{"default_saved_node": "nodename"}` to set the default via a file instead
287
287
 
288
288
  ## Linux Fu
289
289
 
package/bos CHANGED
@@ -296,6 +296,26 @@ prog
296
296
  });
297
297
  })
298
298
 
299
+ // Change the capacity of an existing channel
300
+ .command('change-channel-capacity', 'Change the capacity of a channel')
301
+ .help('Remote node must be prepared to receive this type of request')
302
+ .help('The remote node should also run this same command after you propose')
303
+ .option('--node <node_name>', 'Use saved node details instead of local node')
304
+ .action((args, options, logger) => {
305
+ return new Promise(async (resolve, reject) => {
306
+ try {
307
+ return paidServices.changeChannelCapacity({
308
+ logger,
309
+ ask: (n, cbk) => inquirer.prompt([n]).then(res => cbk(res)),
310
+ lnd: (await lnd.authenticatedLnd({logger, node: options.node})).lnd,
311
+ },
312
+ responses.returnObject({exit, logger, reject, resolve}));
313
+ } catch (err) {
314
+ return reject(logger.error({err}));
315
+ }
316
+ });
317
+ })
318
+
299
319
  // Show a chart of chain fees paid
300
320
  .command('chart-chain-fees', 'Get a chart of chain fee expenses')
301
321
  .help('Show chart of mining fee expenditure over time')
package/package.json CHANGED
@@ -21,14 +21,14 @@
21
21
  "bitcoinjs-lib": "6.0.1",
22
22
  "bolt01": "1.2.3",
23
23
  "bolt03": "1.2.12",
24
- "bolt07": "1.7.4",
24
+ "bolt07": "1.8.0",
25
25
  "caporal": "1.4.0",
26
26
  "cbor": "8.1.0",
27
27
  "colorette": "2.0.16",
28
28
  "crypto-js": "4.1.1",
29
- "csv-parse": "5.0.3",
29
+ "csv-parse": "5.0.4",
30
30
  "goldengate": "11.0.0",
31
- "grammy": "1.5.4",
31
+ "grammy": "1.6.1",
32
32
  "hot-formula-parser": "4.0.0",
33
33
  "import-lazy": "4.0.0",
34
34
  "ini": "2.0.0",
@@ -37,9 +37,9 @@
37
37
  "ln-accounting": "5.0.5",
38
38
  "ln-service": "53.2.0",
39
39
  "ln-sync": "3.6.0",
40
- "ln-telegram": "3.4.2",
40
+ "ln-telegram": "3.4.3",
41
41
  "moment": "2.29.1",
42
- "paid-services": "3.2.0",
42
+ "paid-services": "3.5.0",
43
43
  "probing": "2.0.1",
44
44
  "psbt": "1.1.10",
45
45
  "qrcode-terminal": "0.12.0",
@@ -80,5 +80,5 @@
80
80
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
81
81
  "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 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/wallets/*.js"
82
82
  },
83
- "version": "11.16.2"
83
+ "version": "11.19.0"
84
84
  }
@@ -40,7 +40,6 @@ const paddedHexNumber = n => n.length % 2 ? `0${n}` : n;
40
40
  const {p2ms} = payments;
41
41
  const {p2pkh} = payments;
42
42
  const p2pTimeoutMs = 5000;
43
- const p2pTimeoutCode = 408;
44
43
  const {p2wsh} = payments;
45
44
  const relockIntervalMs = 1000 * 20;
46
45
  const times = 60 * 6;