lightning 10.24.0 → 10.25.1

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
+ ## 10.25.1
4
+
5
+ - Add support for Testnet4
6
+
3
7
  ## 10.24.0
4
8
 
5
9
  - `closeChannel`: Add `is_graceful_close` to wait for pending resolutions
package/bolt02/ids.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "bitcoinregtest": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
5
5
  "bitcoinsignet": "00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6",
6
6
  "bitcointestnet": "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943",
7
+ "bitcointestnet4": "00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043",
7
8
  "litecoinmainnet": "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
8
9
  "litecoinregtest": "530827f38f93b43ed12af0b3ad25a288dc02ed74d6d7857862df51fc56c416f9",
9
10
  "litecointestnet": "4966625a4b2851d9fdee139e56211a0d88575f59ed816ff5e6a63deb4e3e29a0"
@@ -26,7 +26,7 @@ module.exports = ({lnd}, cbk) => {
26
26
  // Check arguments
27
27
  validate: cbk => {
28
28
  if (!lnd) {
29
- return cbk([400, 'ExpectedAuthenticatedLndToGetCurrrentHeight']);
29
+ return cbk([400, 'ExpectedAuthenticatedLndToGetCurrrentHeight']);
30
30
  }
31
31
 
32
32
  return cbk();
@@ -47,6 +47,8 @@ export type ForceCloseChannelArgs = AuthenticatedLightningArgs<
47
47
  export type CoopCloseChannelArgs = AuthenticatedLightningArgs<
48
48
  ExpectedIdOfChannelToClose & {
49
49
  is_force_close?: false;
50
+ /** Is Waiting For Pending Payments to Coop Close Bool */
51
+ is_graceful_close?: boolean;
50
52
  /** Request Sending Local Channel Funds To Address String */
51
53
  address?: string;
52
54
  /** Fail Cooperative Close Above Fee Rate */
@@ -79,6 +81,8 @@ export type CloseChannelResult = {
79
81
  * Requires `info:read`, `offchain:write`, `onchain:write`, `peers:write` permissions
80
82
  *
81
83
  * `max_tokens_per_vbyte` is not supported in LND 0.15.0 and below
84
+ *
85
+ * `is_graceful_close` is not supported in LND 0.17.5 and below
82
86
  */
83
87
  export const closeChannel: AuthenticatedLightningMethod<
84
88
  CloseChannelArgs,
@@ -82,7 +82,7 @@ module.exports = ({lnd}) => {
82
82
  return emitError([503, 'UnexpectedBlockEventHashLength']);
83
83
  }
84
84
 
85
- if (!data.height) {
85
+ if (data.height === undefined) {
86
86
  return emitError([503, 'ExpectedHeightInBlockEvent']);
87
87
  }
88
88
 
package/package.json CHANGED
@@ -7,27 +7,27 @@
7
7
  "url": "https://github.com/alexbosworth/lightning/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@grpc/grpc-js": "1.13.0",
11
- "@grpc/proto-loader": "0.7.13",
12
- "@types/node": "22.13.10",
10
+ "@grpc/grpc-js": "1.13.3",
11
+ "@grpc/proto-loader": "0.7.15",
12
+ "@types/node": "22.15.21",
13
13
  "@types/request": "2.48.12",
14
- "@types/ws": "8.18.0",
14
+ "@types/ws": "8.18.1",
15
15
  "async": "3.2.6",
16
16
  "asyncjs-util": "1.2.12",
17
17
  "bitcoinjs-lib": "6.1.7",
18
- "bn.js": "5.2.1",
18
+ "bn.js": "5.2.2",
19
19
  "bolt07": "1.9.4",
20
20
  "bolt09": "2.1.0",
21
21
  "ecpair": "3.0.0",
22
- "invoices": "3.0.0",
23
- "psbt": "3.0.0",
22
+ "invoices": "4.0.0",
23
+ "psbt": "4.0.0",
24
24
  "tiny-secp256k1": "2.2.3",
25
- "type-fest": "4.37.0"
25
+ "type-fest": "4.41.0"
26
26
  },
27
27
  "description": "Lightning Network client library",
28
28
  "devDependencies": {
29
- "tsd": "0.31.2",
30
- "typescript": "5.8.2"
29
+ "tsd": "0.32.0",
30
+ "typescript": "5.8.3"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">=18"
@@ -53,5 +53,5 @@
53
53
  "directory": "test/typescript"
54
54
  },
55
55
  "types": "index.d.ts",
56
- "version": "10.24.0"
56
+ "version": "10.25.1"
57
57
  }