lightning 10.26.2 → 10.26.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
- ## 10.26.2
3
+ ## 10.26.3
4
4
 
5
5
  - Add support for LND 0.19.3
6
6
 
@@ -341,6 +341,13 @@ service Lightning {
341
341
  */
342
342
  rpc SubscribeInvoices (InvoiceSubscription) returns (stream Invoice);
343
343
 
344
+ /* lncli: `deletecanceledinvoice`
345
+ DeleteCanceledInvoice removes a canceled invoice from the database. If the
346
+ invoice is not in the canceled state, an error will be returned.
347
+ */
348
+ rpc DeleteCanceledInvoice (DelCanceledInvoiceReq)
349
+ returns (DelCanceledInvoiceResp);
350
+
344
351
  /* lncli: `decodepayreq`
345
352
  DecodePayReq takes an encoded payment request string and attempts to decode
346
353
  it, returning a full description of the conditions encoded within the
@@ -548,9 +555,10 @@ service Lightning {
548
555
  returns (ListPermissionsResponse);
549
556
 
550
557
  /*
551
- CheckMacaroonPermissions checks whether a request follows the constraints
552
- imposed on the macaroon and that the macaroon is authorized to follow the
553
- provided permissions.
558
+ CheckMacaroonPermissions checks whether the provided macaroon contains all
559
+ the provided permissions. If the macaroon is valid (e.g. all caveats are
560
+ satisfied), and all permissions provided in the request are met, then
561
+ this RPC returns true.
554
562
  */
555
563
  rpc CheckMacaroonPermissions (CheckMacPermRequest)
556
564
  returns (CheckMacPermResponse);
@@ -2840,6 +2848,25 @@ message PendingChannelsResponse {
2840
2848
  // very likely canceled the funding and the channel will never become
2841
2849
  // fully operational.
2842
2850
  int32 funding_expiry_blocks = 3;
2851
+
2852
+ // The number of blocks remaining until the channel status changes from
2853
+ // pending to active. A value of 0 indicates that the channel is now
2854
+ // active.
2855
+ //
2856
+ // "Active" here means both channel peers have the channel marked OPEN
2857
+ // and can immediately start using it. For public channels, this does
2858
+ // not imply a channel_announcement has been gossiped. It only becomes
2859
+ // public on the network after 6 on‐chain confirmations.
2860
+ // See BOLT07 "Routing Gossip":
2861
+ // https://github.com/lightning/bolts/blob/master/07-routing-gossip.md
2862
+ //
2863
+ // ZeroConf channels bypass the pending state entirely: they are marked
2864
+ // active immediately upon creation, so they never show up as "pending".
2865
+ uint32 confirmations_until_active = 7;
2866
+
2867
+ // The confirmation height records the block height at which the funding
2868
+ // transaction was first confirmed.
2869
+ uint32 confirmation_height = 8;
2843
2870
  }
2844
2871
 
2845
2872
  message WaitingCloseChannel {
@@ -4233,6 +4260,16 @@ message InvoiceSubscription {
4233
4260
  uint64 settle_index = 2;
4234
4261
  }
4235
4262
 
4263
+ message DelCanceledInvoiceReq {
4264
+ // Invoice payment hash to delete.
4265
+ string invoice_hash = 1;
4266
+ }
4267
+
4268
+ message DelCanceledInvoiceResp {
4269
+ // The status of the delete operation.
4270
+ string status = 1;
4271
+ }
4272
+
4236
4273
  enum PaymentFailureReason {
4237
4274
  /*
4238
4275
  Payment isn't failed (yet).
@@ -5107,9 +5144,37 @@ message Op {
5107
5144
  }
5108
5145
 
5109
5146
  message CheckMacPermRequest {
5147
+ // The macaroon to check permissions for, serialized in binary format. For
5148
+ // a macaroon to be valid, it must have been issued by lnd, must succeed all
5149
+ // caveat conditions, and must contain all of the permissions specified in
5150
+ // the permissions field.
5110
5151
  bytes macaroon = 1;
5152
+
5153
+ // The list of permissions the macaroon should be checked against. Only if
5154
+ // the macaroon contains all of these permissions, it is considered valid.
5155
+ // If the list of permissions given is empty, then the macaroon is
5156
+ // considered valid only based on issuance authority and caveat validity.
5157
+ // An empty list of permissions is therefore equivalent to saying "skip
5158
+ // checking permissions" (unless check_default_perms_from_full_method is
5159
+ // specified).
5111
5160
  repeated MacaroonPermission permissions = 2;
5161
+
5162
+ // The RPC method to check the macaroon against. This is only used if there
5163
+ // are custom `uri:<rpcpackage>.<ServiceName>/<MethodName>` permissions in
5164
+ // the permission list above. To check a macaroon against the list of
5165
+ // permissions of a certain RPC method, query the `ListPermissions` RPC
5166
+ // first, extract the permissions for the method, and then pass them in the
5167
+ // `permissions` field above.
5112
5168
  string fullMethod = 3;
5169
+
5170
+ // If this field is set to true, then the permissions list above MUST be
5171
+ // empty. The default permissions for the provided fullMethod will be used
5172
+ // to check the macaroon. This is equivalent to looking up the permissions
5173
+ // for a method in the `ListPermissions` RPC and then calling this RPC with
5174
+ // the permission list returned from that call. Without this flag, the list
5175
+ // of permissions must be non-empty for the check to actually perform a
5176
+ // permission check.
5177
+ bool check_default_perms_from_full_method = 4;
5113
5178
  }
5114
5179
 
5115
5180
  message CheckMacPermResponse {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@grpc/grpc-js": "1.13.4",
11
11
  "@grpc/proto-loader": "0.8.0",
12
- "@types/node": "24.3.0",
12
+ "@types/node": "24.4.0",
13
13
  "@types/request": "2.48.13",
14
14
  "@types/ws": "8.18.1",
15
15
  "async": "3.2.6",
@@ -22,7 +22,7 @@
22
22
  "invoices": "4.0.0",
23
23
  "psbt": "4.0.0",
24
24
  "tiny-secp256k1": "2.2.4",
25
- "type-fest": "4.41.0"
25
+ "type-fest": "5.0.0"
26
26
  },
27
27
  "description": "Lightning Network client library",
28
28
  "devDependencies": {
@@ -53,5 +53,5 @@
53
53
  "directory": "test/typescript"
54
54
  },
55
55
  "types": "index.d.ts",
56
- "version": "10.26.2"
56
+ "version": "10.26.3"
57
57
  }