lightning 10.26.1 → 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
|
@@ -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
|
|
552
|
-
|
|
553
|
-
provided
|
|
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 {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"1a3194d302f33bb52823297d9d7f75cd37516053": "0.10.0-beta",
|
|
25
25
|
"1e511be523eb8e97c4e2d9c89a7a263963a3929f": "0.14.2-beta",
|
|
26
26
|
"2fb150c8fe827df9df0520ef9916b3afb7b03a8d": "0.17.0-beta",
|
|
27
|
+
"2fb725e0e257cc85e8d1e213ac9a3ba3e96a640c": "0.19.3-beta",
|
|
27
28
|
"3ae46d81f4a2edad06ef778b2940d9b06386d93b": "0.11.0-beta",
|
|
28
29
|
"42b856dbb98dee83d284646bfc3eab96199cec62": "0.18.1-beta",
|
|
29
30
|
"47483f1c66ae6fbb2e03ff29f9bc9b80c611c027": "0.16.3-beta",
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@grpc/grpc-js": "1.13.4",
|
|
11
|
-
"@grpc/proto-loader": "0.
|
|
12
|
-
"@types/node": "24.0
|
|
13
|
-
"@types/request": "2.48.
|
|
11
|
+
"@grpc/proto-loader": "0.8.0",
|
|
12
|
+
"@types/node": "24.4.0",
|
|
13
|
+
"@types/request": "2.48.13",
|
|
14
14
|
"@types/ws": "8.18.1",
|
|
15
15
|
"async": "3.2.6",
|
|
16
16
|
"asyncjs-util": "1.2.12",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"invoices": "4.0.0",
|
|
23
23
|
"psbt": "4.0.0",
|
|
24
24
|
"tiny-secp256k1": "2.2.4",
|
|
25
|
-
"type-fest": "
|
|
25
|
+
"type-fest": "5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"description": "Lightning Network client library",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"tsd": "0.
|
|
30
|
-
"typescript": "5.
|
|
29
|
+
"tsd": "0.33.0",
|
|
30
|
+
"typescript": "5.9.2"
|
|
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.26.
|
|
56
|
+
"version": "10.26.3"
|
|
57
57
|
}
|