lightning 7.1.6 → 7.1.8

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
- ## 7.1.6
3
+ ## 7.1.8
4
4
 
5
5
  - `signChainAddressMessage`: Add method to sign a message given a chain address
6
6
  - `verifyChainAddressMessage`: Add method to verify a chain address message
@@ -1540,6 +1540,9 @@ message Channel {
1540
1540
 
1541
1541
  // The configured alias name of our peer.
1542
1542
  string peer_alias = 34;
1543
+
1544
+ // This is the peer SCID alias.
1545
+ uint64 peer_scid_alias = 35 [jstype = JS_STRING];
1543
1546
  }
1544
1547
 
1545
1548
  message ListChannelsRequest {
@@ -513,9 +513,9 @@ message MissionControlConfig {
513
513
 
514
514
  /*
515
515
  ProbabilityModel defines which probability estimator should be used in
516
- pathfinding.
516
+ pathfinding. Note that the bimodal estimator is experimental.
517
517
  */
518
- ProbabilityModel Model = 6;
518
+ ProbabilityModel model = 6;
519
519
 
520
520
  /*
521
521
  EstimatorConfig is populated dependent on the estimator type.
@@ -580,6 +580,14 @@ message AprioriParameters {
580
580
  available.
581
581
  */
582
582
  double weight = 3;
583
+
584
+ /*
585
+ The fraction of a channel's capacity that we consider to have liquidity. For
586
+ amounts that come close to or exceed the fraction, an additional penalty is
587
+ applied. A value of 1.0 disables the capacity factor. Allowed values are in
588
+ [0.75, 1.0].
589
+ */
590
+ double capacity_fraction = 4;
583
591
  }
584
592
 
585
593
  message QueryProbabilityRequest {
@@ -982,7 +982,8 @@ message ListSweepsResponse {
982
982
  }
983
983
 
984
984
  message LabelTransactionRequest {
985
- // The txid of the transaction to label.
985
+ // The txid of the transaction to label. Note: When using gRPC, the bytes
986
+ // must be in little-endian (reverse) order.
986
987
  bytes txid = 1;
987
988
 
988
989
  // The label to add to the transaction, limited to 500 characters.
@@ -1,4 +1,16 @@
1
- import {AuthenticatedLightningSubscription} from '../../typescript';
1
+ import {
2
+ AuthenticatedLightningArgs,
3
+ AuthenticatedLightningSubscription,
4
+ } from '../../typescript';
5
+
6
+ export type SubscribeToInvoicesArgs = AuthenticatedLightningArgs<{
7
+ /** Invoice Added After Index Number */
8
+ added_after?: number;
9
+ /** Invoice Confirmed After Index Number */
10
+ confirmed_after?: number;
11
+ /** Restart Subscription Delay Milliseconds Number */
12
+ restart_delay_ms?: number;
13
+ }>;
2
14
 
3
15
  export type SubscribeToInvoicesInvoiceUpdatedEvent = {
4
16
  /** Fallback Chain Address */
@@ -7,6 +19,8 @@ export type SubscribeToInvoicesInvoiceUpdatedEvent = {
7
19
  cltv_delta: number;
8
20
  /** Confirmed At ISO 8601 Date */
9
21
  confirmed_at?: string;
22
+ /** Confirmed Index Number */
23
+ confirmed_index?: number;
10
24
  /** Created At ISO 8601 Date */
11
25
  created_at: string;
12
26
  /** Description */
@@ -27,12 +41,14 @@ export type SubscribeToInvoicesInvoiceUpdatedEvent = {
27
41
  }[];
28
42
  /** Invoice Payment Hash Hex String */
29
43
  id: string;
44
+ /** Invoice Index Number */
45
+ index: number;
30
46
  /** Invoice is Confirmed */
31
47
  is_confirmed: boolean;
32
- /** Invoice is Outgoing */
33
- is_outgoing: boolean;
34
48
  /** Invoice is Push Payment */
35
49
  is_push?: boolean;
50
+ /** Invoiced Millitokens String */
51
+ mtokens: string;
36
52
  /**
37
53
  * Payment Identifying Secret Hex String
38
54
  *
@@ -88,4 +104,4 @@ export type SubscribeToInvoicesInvoiceUpdatedEvent = {
88
104
  *
89
105
  * `payment` is not supported on LND 0.11.1 and below
90
106
  */
91
- export const subscribeToInvoices: AuthenticatedLightningSubscription;
107
+ export const subscribeToInvoices: AuthenticatedLightningSubscription<SubscribeToInvoicesArgs>;
package/package.json CHANGED
@@ -26,14 +26,14 @@
26
26
  "invoices": "2.2.3",
27
27
  "psbt": "2.7.2",
28
28
  "tiny-secp256k1": "2.2.1",
29
- "type-fest": "3.7.2"
29
+ "type-fest": "3.8.0"
30
30
  },
31
31
  "description": "Lightning Network client library",
32
32
  "devDependencies": {
33
33
  "@alexbosworth/node-fetch": "2.6.2",
34
34
  "@alexbosworth/tap": "15.0.12",
35
35
  "tsd": "0.28.1",
36
- "typescript": "5.0.2",
36
+ "typescript": "5.0.3",
37
37
  "ws": "8.13.0"
38
38
  },
39
39
  "engines": {
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "7.1.6"
62
+ "version": "7.1.8"
63
63
  }
@@ -4,8 +4,14 @@ import {AuthenticatedLnd} from '../../lnd_grpc';
4
4
  import {subscribeToInvoices} from '../../lnd_methods';
5
5
 
6
6
  const lnd = {} as AuthenticatedLnd;
7
+ const added_after = 0;
8
+ const confirmed_after = 0;
9
+ const restart_delay_ms = 0;
7
10
 
8
11
  expectError(subscribeToInvoices());
9
12
  expectError(subscribeToInvoices({}));
10
13
 
11
14
  expectType<events.EventEmitter>(subscribeToInvoices({lnd}));
15
+ expectType<events.EventEmitter>(subscribeToInvoices({lnd, added_after}));
16
+ expectType<events.EventEmitter>(subscribeToInvoices({lnd, confirmed_after}));
17
+ expectType<events.EventEmitter>(subscribeToInvoices({lnd, restart_delay_ms}));