lightning 9.13.3 → 9.14.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,10 @@
1
1
  # Versions
2
2
 
3
- ## 9.13.3
3
+ ## 9.14.0
4
+
5
+ - `openChannel`: Add `is_allowing_minimal_reserve` to allow no reserve on peer
6
+
7
+ ## 9.13.4
4
8
 
5
9
  - `openChannels`: Add `is_simplified_taproot` to make a simplified taproot chan
6
10
 
@@ -24,6 +24,8 @@ export type ChannelOpenOptions = {
24
24
  /** Tokens to Gift To Partner */
25
25
  give_tokens?: number;
26
26
  inputs?: ChannelOpenOptionsInput[]
27
+ /** Allow Peer to Have Minimal Reserve Bool */
28
+ is_allowing_minimal_reserve?: boolean;
27
29
  /** Use Maximal Chain Funds For Local Funding Bool */
28
30
  is_max_funding?: boolean;
29
31
  /** Channel is Private */
@@ -11,6 +11,7 @@ const errMemoLength = /^provided memo \(.*\) is of length \d*, exceeds (\d*)$/;
11
11
  const {isArray} = Array;
12
12
  const minChannelTokens = 20000;
13
13
  const method = 'openChannel';
14
+ const reserve = isDust => isDust ? 354 : undefined;
14
15
  const simplifiedTaprootChannelType = 'SIMPLE_TAPROOT';
15
16
  const type = 'default';
16
17
 
@@ -28,6 +29,8 @@ const type = 'default';
28
29
  `--protocol.option-scid-alias` and `--protocol.zero-conf` set on both sides
29
30
  as well as a channel open request listener to accept the trusted funding.
30
31
 
32
+ `is_allowing_minimal_reserve` is not supported on LND 0.15.0 and below
33
+
31
34
  `base_fee_mtokens` is not supported on LND 0.15.5 and below
32
35
  `fee_rate` is not supported on LND 0.15.5 and below
33
36
 
@@ -51,6 +54,7 @@ const type = 'default';
51
54
  transaction_id: <Fund With Unspent Transaction Id Hex String>
52
55
  transaction_vout: <Fund With Unspent Transaction Output Index Number>
53
56
  }]
57
+ [is_allowing_minimal_reserve]: <Allow Peer to Have Minimal Reserve Bool>
54
58
  [is_max_funding]: <Use Maximal Chain Funds For Local Funding Bool>
55
59
  [is_private]: <Channel is Private Bool> // Defaults to false
56
60
  [is_simplified_taproot]: <Channel is Simplified Taproot Type Bool>
@@ -157,6 +161,7 @@ module.exports = (args, cbk) => {
157
161
  node_pubkey: Buffer.from(args.partner_public_key, 'hex'),
158
162
  outpoints: outpoints || undefined,
159
163
  private: !!args.is_private,
164
+ remote_chan_reserve_sat: reserve(!!args.is_allowing_minimal_reserve),
160
165
  remote_csv_delay: args.partner_csv_delay || undefined,
161
166
  spend_unconfirmed: !minConfs,
162
167
  use_base_fee: args.base_fee_mtokens !== undefined,
package/package.json CHANGED
@@ -7,15 +7,15 @@
7
7
  "url": "https://github.com/alexbosworth/lightning/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@grpc/grpc-js": "1.9.3",
11
- "@grpc/proto-loader": "0.7.9",
12
- "@types/express": "4.17.17",
13
- "@types/node": "20.6.2",
14
- "@types/request": "2.48.8",
15
- "@types/ws": "8.5.5",
10
+ "@grpc/grpc-js": "1.9.4",
11
+ "@grpc/proto-loader": "0.7.10",
12
+ "@types/express": "4.17.18",
13
+ "@types/node": "20.7.1",
14
+ "@types/request": "2.48.9",
15
+ "@types/ws": "8.5.6",
16
16
  "async": "3.2.4",
17
17
  "asyncjs-util": "1.2.12",
18
- "bitcoinjs-lib": "6.1.4",
18
+ "bitcoinjs-lib": "6.1.5",
19
19
  "bn.js": "5.2.1",
20
20
  "body-parser": "1.20.2",
21
21
  "bolt07": "1.8.4",
@@ -26,14 +26,14 @@
26
26
  "invoices": "3.0.0",
27
27
  "psbt": "3.0.0",
28
28
  "tiny-secp256k1": "2.2.3",
29
- "type-fest": "4.3.1"
29
+ "type-fest": "4.3.2"
30
30
  },
31
31
  "description": "Lightning Network client library",
32
32
  "devDependencies": {
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
34
  "tsd": "0.29.0",
35
35
  "typescript": "5.2.2",
36
- "ws": "8.14.1"
36
+ "ws": "8.14.2"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=16"
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "9.13.3"
62
+ "version": "9.14.0"
63
63
  }
@@ -76,6 +76,7 @@ const makeArgs = overrides => {
76
76
  lnd: makeLnd({}),
77
77
  give_tokens: 1,
78
78
  local_tokens: 1e6,
79
+ is_allowing_minimal_reserve: true,
79
80
  partner_public_key: Buffer.alloc(33).toString('hex'),
80
81
  };
81
82