balanceofsatoshis 25.2.2 → 25.2.3

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,6 @@
1
1
  # Versions
2
2
 
3
- ## 25.2.2
3
+ ## 25.2.3
4
4
 
5
5
  - `telegram`: Indicate when a cooperative close was initiated by the peer
6
6
 
@@ -1,19 +1,12 @@
1
1
  const asyncAuto = require('async/auto');
2
- const {getChannels} = require('ln-service');
3
2
  const {getLiquidity} = require('ln-sync');
4
- const {getNode} = require('ln-service');
5
3
  const {returnResult} = require('asyncjs-util');
6
4
 
7
5
  const balanceFromTokens = require('./balance_from_tokens');
8
6
  const {getTags} = require('./../tags');
9
7
 
10
- const {round} = Math;
11
- const topPercentile = 0.9;
12
-
13
8
  /** Get the channel available liquidity
14
9
 
15
- A request function is required when min_node_score is specified
16
-
17
10
  {
18
11
  [above]: <Tokens Above Tokens Number>
19
12
  [below]: <Tokens Below Tokens Number>
@@ -24,7 +17,6 @@ const topPercentile = 0.9;
24
17
  [is_top]: <Return Top Liquidity Bool>
25
18
  lnd: <Authenticated LND API Object>
26
19
  [max_fee_rate]: <Max Inbound Fee Rate Parts Per Million Number>
27
- [request]: <Request Function>
28
20
  [with]: <Liquidity With Public Key Hex or Tag Alias or Id String>
29
21
  }
30
22
 
@@ -50,10 +42,6 @@ module.exports = (args, cbk) => {
50
42
  return cbk([400, 'ExpectedLndToGetLiquidity']);
51
43
  }
52
44
 
53
- if (!!args.min_node_score && !args.request) {
54
- return cbk([400, 'ExpectedRequestFunctionToFilterByNodeScore']);
55
- }
56
-
57
45
  return cbk();
58
46
  },
59
47
 
@@ -107,7 +95,7 @@ module.exports = (args, cbk) => {
107
95
  is_outbound: args.is_outbound,
108
96
  is_top: args.is_top,
109
97
  lnd: args.lnd,
110
- request: args.request,
98
+ max_fee_rate: args.max_fee_rate,
111
99
  with: withNodes,
112
100
  },
113
101
  cbk);
package/bos CHANGED
@@ -995,7 +995,6 @@ prog
995
995
  is_top: options.top || undefined,
996
996
  lnd: (await lnd.authenticatedLnd({logger, node: options.node})).lnd,
997
997
  max_fee_rate: options.maxFeeRate || undefined,
998
- request: commands.simpleRequest,
999
998
  with: options.with,
1000
999
  },
1001
1000
  responses.returnNumber({logger, reject, resolve, number: 'balance'}));
package/package.json CHANGED
@@ -104,5 +104,5 @@
104
104
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
105
105
  "test": "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/offchain/*.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"
106
106
  },
107
- "version": "25.2.2"
107
+ "version": "25.2.3"
108
108
  }