balanceofsatoshis 11.52.2 → 11.53.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,17 @@
1
1
  # Versions
2
2
 
3
+ ## 11.53.0
4
+
5
+ - `call`: Add support for `getPendingPayments` to show in-flight payments
6
+
7
+ ## 11.52.5
8
+
9
+ - `open-balanced-channel`: Fix error preventing internal funding
10
+
11
+ ## 11.52.4
12
+
13
+ - `telegram`: Fix crash when getting /liquidity and there is no liquidity
14
+
3
15
  ## 11.52.2
4
16
 
5
17
  - `telegram`: Fix connected node offline notifications
package/CONTRIBUTING.md CHANGED
@@ -10,13 +10,9 @@ If you want to help with style, here are some rough guidelines on style ideas:
10
10
 
11
11
  ### Formatting
12
12
 
13
- - Spaces not tabs, 2 spaces
14
13
  - Arguments to methods are snake_case
15
14
  - Regular variables are camelCase
16
15
  - Returned attributes are snake_case
17
- - Minimize function nesting, make new files if nesting is required
18
- - No extraneous whitespace
19
- - A single newline should appear at the end of a file
20
16
  - A single line should contain max 80 characters including the newline
21
17
  - If a top level scalar would go over 80 characters in a line, that's ok
22
18
  - Don't bother with () in functions when not needed: `const a = b => c`
@@ -25,13 +21,20 @@ If you want to help with style, here are some rough guidelines on style ideas:
25
21
  - Lines should be terminated by explicit semicolons
26
22
  - Logic like ternary operators should not extend beyond a single line
27
23
  - Don't let any lines linger when they don't do anything
28
- - Tightly space objects, like `{attribute: value}` not `{ attribute : value }`
29
24
  - Use single '' quotes not double "" quotes, except when `` is required
30
- - If conditions should avoid spanning multiple lines
31
25
  - Avoid double specifying an attribute and value, `{type: type}` vs `{type}`
32
26
  - Always use {} with if, else, etc statements
33
27
  - Document the top of methods with what the arguments are and what is returned
34
28
 
29
+ ### White Space
30
+
31
+ - Spaces not tabs, 2 spaces
32
+ - Minimize function nesting, make new files if nesting is required
33
+ - No extraneous whitespace
34
+ - A single newline should appear at the end of a file
35
+ - Tightly space objects, like `{attribute: value}` not `{ attribute : value }`
36
+ - If conditions should avoid spanning multiple lines
37
+
35
38
  ### Control Flow
36
39
 
37
40
  - Async functions should support both cbk and Promise style
@@ -82,3 +85,10 @@ If you want to help with style, here are some rough guidelines on style ideas:
82
85
  - Try to be very specific with error messages and try to not repeat one
83
86
  - Callbacks should always be called as (err, result)
84
87
  - Try and catch should not be used unless an error is expected
88
+
89
+ ### Testing
90
+
91
+ - Ideally there is a tap unit test that has 100% coverage, using mock-lnd
92
+ - Also good is a ln-docker-daemons integration test for common scenarios
93
+ - Design methods so that they can easily tested with self-contained unit tests
94
+ - Avoid breaking existing tests, changes should also change relevant tests
package/README.md CHANGED
@@ -188,6 +188,7 @@ bos utxos
188
188
  - Running `telegram` [via nohup/tmux howto](https://plebnet.wiki/wiki/Umbrel_-_Installing_BoS#Installing_Telegram_Bot)
189
189
  - Running `telegram` [via systemd](https://github.com/ziggie1984/miscellanous/blob/97c4905747fe23a824b6e53dc674c4a571ac0f5c/automation_telegram_bot.md)
190
190
  - Another `rebalance` + `tags` & `telegram` [commands howto](https://raspibolt.org/bonus/lightning/balance-of-satoshis.html#balance-of-satoshis-in-action)
191
+ - Documentation for bos commands [commands howto](https://github.com/niteshbalusu11/BOS-Commands-Document#balance-of-satoshis-commands)
191
192
 
192
193
  Want to stack some sats? Write your own LN paywalled guide!
193
194
 
package/commands/api.json CHANGED
@@ -490,6 +490,22 @@
490
490
  {
491
491
  "method": "getPendingChannels"
492
492
  },
493
+ {
494
+ "arguments": [
495
+ {
496
+ "description": "Results limit",
497
+ "named": "limit",
498
+ "optional": true,
499
+ "type": "number"
500
+ },
501
+ {
502
+ "description": "Paging token",
503
+ "named": "token",
504
+ "optional": true
505
+ }
506
+ ],
507
+ "method": "getPendingPayments"
508
+ },
493
509
  {
494
510
  "arguments": [
495
511
  {
package/package.json CHANGED
@@ -35,9 +35,9 @@
35
35
  "inquirer": "8.2.0",
36
36
  "invoices": "2.0.4",
37
37
  "ln-accounting": "5.0.5",
38
- "ln-service": "53.8.0",
39
- "ln-sync": "3.10.0",
40
- "ln-telegram": "3.17.1",
38
+ "ln-service": "53.9.0",
39
+ "ln-sync": "3.10.1",
40
+ "ln-telegram": "3.17.3",
41
41
  "moment": "2.29.1",
42
42
  "paid-services": "3.11.0",
43
43
  "probing": "2.0.3",
@@ -81,5 +81,5 @@
81
81
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis --push .",
82
82
  "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/telegram/*.js test/wallets/*.js"
83
83
  },
84
- "version": "11.52.2"
84
+ "version": "11.53.0"
85
85
  }
@@ -865,7 +865,8 @@ module.exports = (args, cbk) => {
865
865
  from,
866
866
  confirmed: transaction.is_confirmed,
867
867
  id: connectedId,
868
- send: (id, msg) => args.bot.api.sendMessage(id, msg, markdown),
868
+ nodes: getNodes,
869
+ send: (id, msg, opt) => args.bot.api.sendMessage(id, msg, opt),
869
870
  transaction: record,
870
871
  });
871
872
  } catch (err) {