lightning 9.12.0 → 9.13.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
+ ## 9.13.1
4
+
5
+ - `openChannels`: Add `is_simplified_taproot` to make a simplified taproot chan
6
+
3
7
  ## 9.12.0
4
8
 
5
9
  - `openChannel`: Add `is_simplified_taproot` to make a simplified taproot chan
@@ -15,6 +15,7 @@ export type MultipleChannelOpenOptions = Pick<
15
15
  | 'min_htlc_mtokens'
16
16
  | 'partner_public_key'
17
17
  | 'partner_csv_delay'
18
+ | 'is_simplified_taproot'
18
19
  > & {
19
20
  /** Channel Capacity Tokens */
20
21
  capacity: number;
@@ -18,6 +18,7 @@ const isPublicKey = n => /^[0-9A-F]{66}$/i.test(n);
18
18
  const makeId = () => randomBytes(32);
19
19
  const method = 'openChannel';
20
20
  const notEnoughOutputs = 'not enough witness outputs to create funding';
21
+ const taproot = 'SIMPLE_TAPROOT';
21
22
  const type = 'default';
22
23
 
23
24
  /** Open one or more channels
@@ -42,6 +43,9 @@ const type = 'default';
42
43
 
43
44
  `description` is not supported on LND 0.16.4 and below
44
45
 
46
+ `is_simplified_taproot` is not supported on LND 0.16.4 and below and requires
47
+ `--protocol.simple-taproot-chans` set on both sides.
48
+
45
49
  {
46
50
  channels: [{
47
51
  [base_fee_mtokens]: <Routing Base Fee Millitokens Charged String>
@@ -51,6 +55,7 @@ const type = 'default';
51
55
  [fee_rate]: <Routing Fee Rate In Millitokens Per Million Number>
52
56
  [give_tokens]: <Tokens to Gift To Partner Number> // Defaults to zero
53
57
  [is_private]: <Channel is Private Bool> // Defaults to false
58
+ [is_simplified_taproot]: <Channel is Simplified Taproot Type Bool>
54
59
  [is_trusted_funding]: <Peer Should Avoid Waiting For Confirmation Bool>
55
60
  [min_htlc_mtokens]: <Minimum HTLC Millitokens String>
56
61
  [partner_csv_delay]: <Peer Output CSV Delay Number>
@@ -108,6 +113,7 @@ module.exports = (args, cbk) => {
108
113
  cooperative_close_address: channel.cooperative_close_address,
109
114
  give_tokens: channel.give_tokens,
110
115
  is_private: channel.is_private,
116
+ is_simplified_taproot: channel.is_simplified_taproot,
111
117
  is_trusted_funding: channel.is_trusted_funding,
112
118
  min_htlc_mtokens: channel.min_htlc_mtokens,
113
119
  partner_public_key: channel.partner_public_key,
@@ -124,10 +130,12 @@ module.exports = (args, cbk) => {
124
130
  let isDone = false;
125
131
  const isSelfPublish = !!args.is_avoiding_broadcast;
126
132
 
133
+ const commit = !!channel.is_simplified_taproot ? taproot : baseType;
134
+
127
135
  const channelOpen = args.lnd[type][method]({
128
136
  base_fee: channel.base_fee_mtokens || undefined,
129
137
  close_address: channel.cooperative_close_address || undefined,
130
- commitment_type: baseType,
138
+ commitment_type: commit,
131
139
  fee_rate: channel.fee_rate,
132
140
  funding_shim: {
133
141
  psbt_shim: {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/alexbosworth/lightning/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@grpc/grpc-js": "1.9.1",
10
+ "@grpc/grpc-js": "1.9.2",
11
11
  "@grpc/proto-loader": "0.7.9",
12
12
  "@types/express": "4.17.17",
13
13
  "@types/node": "20.5.7",
@@ -31,7 +31,7 @@
31
31
  "description": "Lightning Network client library",
32
32
  "devDependencies": {
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
- "tsd": "0.28.1",
34
+ "tsd": "0.29.0",
35
35
  "typescript": "5.2.2",
36
36
  "ws": "8.13.0"
37
37
  },
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "9.12.0"
62
+ "version": "9.13.1"
63
63
  }