lightning 10.9.0 → 10.9.2

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.9.2
4
+
5
+ - Add support for LND v0.17.5-beta
6
+
3
7
  ## 10.9.0
4
8
 
5
9
  - `fundPsbt`, `getChainFeeEstimate`, `sendToChainAddress`,
@@ -51,6 +51,7 @@
51
51
  "d62c575f8499a314eb27f12462d20500b6bda2c7": "0.10.3-beta",
52
52
  "df0b82f0165f19bde8832bacd1e35544b0a2990d": "0.14.0-beta",
53
53
  "eecbe99d68384c734b2c91fd0800484e69c5cab2": "0.14.4-beta",
54
+ "f8211a2c3b3d2112159cd119bd7674743336c661": "0.17.5-beta",
54
55
  "fb765fdb1daf1c1db08ab9b6aa0c442af431bc82": "0.16.1-beta",
55
56
  "fd1a95bf322cdd1c743a1554f8e470fbf9a5e564": "0.15.1-beta",
56
57
  "fdbeb1e7023827f1cb499a81d474986aa569d945": "0.16.2-beta"
@@ -22,7 +22,7 @@ export type GetConfigurationResult = {
22
22
  * Requires `info:read`, `offchain:read`, `onchain:read`, `peers:read`
23
23
  permissions
24
24
  *
25
- * This method is not supported on LND 0.17.4 and below
25
+ * This method is not supported on LND 0.17.5 and below
26
26
  */
27
27
  export const getConfiguration: AuthenticatedLightningMethod<
28
28
  GetConfigurationArgs,
@@ -17,7 +17,7 @@ const {values} = Object;
17
17
  Requires `info:read`, `offchain:read`, `onchain:read`, `peers:read`
18
18
  permissions
19
19
 
20
- This method is not supported on LND 0.17.4 and below
20
+ This method is not supported on LND 0.17.5 and below
21
21
 
22
22
  {
23
23
  lnd: <Authenticated LND API Object>
@@ -56,7 +56,7 @@ export type GetConnectedWatchTowersResult = {
56
56
  *
57
57
  * `is_anchor` flag is not supported on LND 0.11.1 and below
58
58
  *
59
- * `is_taproot` flag is not supported on LND 0.17.4 and below
59
+ * `is_taproot` flag is not supported on LND 0.17.5 and below
60
60
  */
61
61
  export const getConnectedWatchtowers: AuthenticatedLightningMethod<
62
62
  GetConnectedWatchTowersArgs,
@@ -18,7 +18,7 @@ const unimplementedError = '12 UNIMPLEMENTED: unknown service wtclientrpc.Watcht
18
18
 
19
19
  `is_anchor` flag is not supported on LND 0.11.1 and below
20
20
 
21
- `is_taproot` flag is not supported on LND 0.17.4 and below
21
+ `is_taproot` flag is not supported on LND 0.17.5 and below
22
22
 
23
23
  {
24
24
  [is_anchor]: <Get Anchor Type Tower Info Bool>
@@ -23,7 +23,7 @@ const type = 'default';
23
23
 
24
24
  `blocks_until_expiry` is not supported in LND 0.16.4 or before
25
25
 
26
- `close_transaction` is not supported in LND 0.17.4 or before
26
+ `close_transaction` is not supported in LND 0.17.5 or before
27
27
 
28
28
  {
29
29
  lnd: <Authenticated LND API Object>
@@ -14,6 +14,6 @@ export type DeleteChainTransactionArgs = AuthenticatedLightningArgs<{
14
14
  *
15
15
  * Requires `onchain:write` permission
16
16
  *
17
- * This method is not supported on LND 0.17.4 and below
17
+ * This method is not supported on LND 0.17.5 and below
18
18
  */
19
19
  export const deleteChainTransaction: AuthenticatedLightningMethod<DeleteChainTransactionArgs>;
@@ -13,7 +13,7 @@ const type = 'wallet';
13
13
 
14
14
  Requires `onchain:write` permission
15
15
 
16
- This method is not supported on LND 0.17.4 and below
16
+ This method is not supported on LND 0.17.5 and below
17
17
 
18
18
  {
19
19
  id: <Transaction Id Hex String>
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AuthenticatedLightningArgs,
3
3
  AuthenticatedLightningMethod,
4
+ UtxoSelection,
4
5
  } from '../../typescript';
5
6
  import {MergeExclusive} from 'type-fest';
6
7
 
@@ -57,6 +58,8 @@ export type FundPsbtResult = {
57
58
  }[];
58
59
  /** Unsigned PSBT Hex */
59
60
  psbt: string;
61
+ /** Select UTXOs Using Method String */
62
+ utxo_selection?: UtxoSelection;
60
63
  };
61
64
 
62
65
  /**
@@ -73,6 +76,8 @@ export type FundPsbtResult = {
73
76
  * This method is not supported in LND 0.11.1 and below
74
77
  *
75
78
  * Specifying 0 for `min_confirmations` is not supported in LND 0.13.0 and below
79
+ *
80
+ * `utxo_selection` is not supported in LND 0.17.5 and below
76
81
  */
77
82
  export const fundPsbt: AuthenticatedLightningMethod<
78
83
  FundPsbtArgs,
@@ -37,7 +37,7 @@ const txIdFromHash = hash => hash.reverse().toString('hex');
37
37
 
38
38
  Specifying 0 for `min_confirmations` is not supported in LND 0.13.0 and below
39
39
 
40
- `utxo_selection` is not supported in LND 0.17.4 and below
40
+ `utxo_selection` is not supported in LND 0.17.5 and below
41
41
 
42
42
  {
43
43
  [fee_tokens_per_vbyte]: <Chain Fee Tokens Per Virtual Byte Number>
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AuthenticatedLightningArgs,
3
3
  AuthenticatedLightningMethod,
4
+ UtxoSelection,
4
5
  } from '../../typescript';
5
6
 
6
7
  export type GetChainFeeEstimateArgs = AuthenticatedLightningArgs<{
@@ -14,6 +15,8 @@ export type GetChainFeeEstimateArgs = AuthenticatedLightningArgs<{
14
15
  target_confirmations?: number;
15
16
  /** Minimum Confirmations for UTXO Selection */
16
17
  utxo_confirmations?: number;
18
+ /** Select UTXOs Using Method String */
19
+ utxo_selection?: UtxoSelection;
17
20
  }>;
18
21
 
19
22
  export type GetChainFeeEstimateResult = {
@@ -27,6 +30,8 @@ export type GetChainFeeEstimateResult = {
27
30
  * Get a chain fee estimate for a prospective chain send
28
31
  *
29
32
  * Requires `onchain:read` permission
33
+ *
34
+ * `utxo_selection` is not supported in LND 0.17.5 and below
30
35
  */
31
36
  export const getChainFeeEstimate: AuthenticatedLightningMethod<
32
37
  GetChainFeeEstimateArgs,
@@ -19,7 +19,7 @@ const unconfirmedConfCount = 0;
19
19
 
20
20
  Specifying 0 for `utxo_confirmations` is not supported in LND 0.13.0 or below
21
21
 
22
- `utxo_selection` is not supported in LND 0.17.4 and below
22
+ `utxo_selection` is not supported in LND 0.17.5 and below
23
23
 
24
24
  {
25
25
  lnd: <Authenticated LND API Object>
@@ -16,7 +16,7 @@ export type GetChainTransactionResult = ChainTransaction;
16
16
  *
17
17
  * Requires `onchain:read` permission
18
18
  *
19
- * This method is not supported on LND 0.17.4 and below
19
+ * This method is not supported on LND 0.17.5 and below
20
20
  */
21
21
  export const getChainTransaction: AuthenticatedLightningMethod<
22
22
  GetChainTransactionArgs,
@@ -13,7 +13,7 @@ const type = 'wallet';
13
13
 
14
14
  Requires `onchain:read` permission
15
15
 
16
- This method is not supported on LND 0.17.4 and below
16
+ This method is not supported on LND 0.17.5 and below
17
17
 
18
18
  {
19
19
  id: <Transaction Id Hex String>
@@ -3,6 +3,7 @@ import {
3
3
  AuthenticatedLightningArgs,
4
4
  AuthenticatedLightningMethod,
5
5
  LightningError,
6
+ UtxoSelection,
6
7
  } from '../../typescript';
7
8
  import {MergeExclusive} from 'type-fest';
8
9
 
@@ -38,6 +39,8 @@ export type SendToChainAddressArgs = AuthenticatedLightningArgs<
38
39
  target_confirmations?: number;
39
40
  /** Minimum Confirmations for UTXO Selection */
40
41
  utxo_confirmations?: number;
42
+ /** Select UTXOs Using Method String */
43
+ utxo_selection?: UtxoSelection;
41
44
  } & ExpectedNoTokensSpecifiedWhenSendingAllFunds &
42
45
  ExpectedLogFunctionForChainSendSocketAnnounce
43
46
  >;
@@ -61,6 +64,8 @@ export type SendToChainAddressResult = {
61
64
  * Requires `onchain:write` permission
62
65
  *
63
66
  * `utxo_confirmations` is not supported on LND 0.11.1 or below
67
+ *
68
+ * `utxo_selection` is not supported in LND 0.17.5 and below
64
69
  */
65
70
  export const sendToChainAddress: AuthenticatedLightningMethod<
66
71
  SendToChainAddressArgs,
@@ -22,7 +22,7 @@ const unconfirmedConfCount = 0;
22
22
 
23
23
  `utxo_confirmations` is not supported on LND 0.11.1 or below
24
24
 
25
- `utxo_selection` is not supported in LND 0.17.4 and below
25
+ `utxo_selection` is not supported in LND 0.17.5 and below
26
26
 
27
27
  {
28
28
  address: <Destination Chain Address String>
@@ -3,6 +3,7 @@ import {
3
3
  AuthenticatedLightningArgs,
4
4
  AuthenticatedLightningMethod,
5
5
  LightningError,
6
+ UtxoSelection,
6
7
  } from '../../typescript';
7
8
  import {MergeExclusive} from 'type-fest';
8
9
 
@@ -32,6 +33,8 @@ export type SendToChainAddressesArgs = AuthenticatedLightningArgs<
32
33
  target_confirmations?: number;
33
34
  /** Minimum Confirmations for UTXO Selection */
34
35
  utxo_confirmations?: number;
36
+ /** Select UTXOs Using Method String */
37
+ utxo_selection?: UtxoSelection;
35
38
  } & ExpectedLogForChainSendWebSocketAnnouncement
36
39
  >;
37
40
 
@@ -54,6 +57,8 @@ export type SendToChainAddressesResult = {
54
57
  * Requires `onchain:write` permission
55
58
  *
56
59
  * `utxo_confirmations` is not supported on LND 0.11.1 or below
60
+ *
61
+ * `utxo_selection` is not supported in LND 0.17.5 and below
57
62
  */
58
63
  export const sendToChainAddresses: AuthenticatedLightningMethod<
59
64
  SendToChainAddressesArgs,
@@ -20,7 +20,7 @@ const type = 'default';
20
20
 
21
21
  `utxo_confirmations` is not supported on LND 0.11.1 or below
22
22
 
23
- `utxo_selection` is not supported in LND 0.17.4 and below
23
+ `utxo_selection` is not supported in LND 0.17.5 and below
24
24
 
25
25
  {
26
26
  [description]: <Transaction Label String>
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AuthenticatedLightningArgs,
3
3
  AuthenticatedLightningMethod,
4
+ UtxoSelection,
4
5
  } from '../../typescript';
5
6
  import {MergeExclusive} from 'type-fest';
6
7
 
@@ -17,6 +18,8 @@ export type SendToChainOutputScriptsArgs = AuthenticatedLightningArgs<{
17
18
  }[];
18
19
  /** Minimum Confirmations for UTXO Selection Number */
19
20
  utxo_confirmations?: number;
21
+ /** Select UTXOs Using Method String */
22
+ utxo_selection?: UtxoSelection;
20
23
  }>;
21
24
 
22
25
  export type SendToChainOutputScriptsResult = {
@@ -40,6 +43,8 @@ export type SendToChainOutputScriptsResult = {
40
43
  * Requires `onchain:write` permission
41
44
  *
42
45
  * Requires LND compiled with `walletrpc` build tag
46
+ *
47
+ * `utxo_selection` is not supported in LND 0.17.5 and below
43
48
  */
44
49
  export const sendToChainOutputScripts: AuthenticatedLightningMethod<
45
50
  SendToChainOutputScriptsArgs,
@@ -26,7 +26,7 @@ const weightPerVByte = 4;
26
26
 
27
27
  Requires LND compiled with `walletrpc` build tag
28
28
 
29
- `utxo_selection` is not supported in LND 0.17.4 and below
29
+ `utxo_selection` is not supported in LND 0.17.5 and below
30
30
 
31
31
  {
32
32
  [description]: <Transaction Label String>
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "invoices": "3.0.0",
23
23
  "psbt": "3.0.0",
24
24
  "tiny-secp256k1": "2.2.3",
25
- "type-fest": "4.15.0"
25
+ "type-fest": "4.17.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.9.0"
56
+ "version": "10.9.2"
57
57
  }
@@ -118,3 +118,5 @@ export type RouteNode = {
118
118
  export type Route = RouteNode[]
119
119
 
120
120
  export type Routes = Route[]
121
+
122
+ export type UtxoSelection = "largest" | "random";