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 +4 -0
- package/lnd_methods/info/constants.json +1 -0
- package/lnd_methods/info/get_configuration.d.ts +1 -1
- package/lnd_methods/info/get_configuration.js +1 -1
- package/lnd_methods/offchain/get_connected_watchtowers.d.ts +1 -1
- package/lnd_methods/offchain/get_connected_watchtowers.js +1 -1
- package/lnd_methods/offchain/get_pending_channels.js +1 -1
- package/lnd_methods/onchain/delete_chain_transaction.d.ts +1 -1
- package/lnd_methods/onchain/delete_chain_transaction.js +1 -1
- package/lnd_methods/onchain/fund_psbt.d.ts +5 -0
- package/lnd_methods/onchain/fund_psbt.js +1 -1
- package/lnd_methods/onchain/get_chain_fee_estimate.d.ts +5 -0
- package/lnd_methods/onchain/get_chain_fee_estimate.js +1 -1
- package/lnd_methods/onchain/get_chain_transaction.d.ts +1 -1
- package/lnd_methods/onchain/get_chain_transaction.js +1 -1
- package/lnd_methods/onchain/send_to_chain_address.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_address.js +1 -1
- package/lnd_methods/onchain/send_to_chain_addresses.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_addresses.js +1 -1
- package/lnd_methods/onchain/send_to_chain_output_scripts.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_output_scripts.js +1 -1
- package/package.json +2 -2
- package/typescript/shared.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
17
|
+
* This method is not supported on LND 0.17.5 and below
|
|
18
18
|
*/
|
|
19
19
|
export const deleteChainTransaction: AuthenticatedLightningMethod<DeleteChainTransactionArgs>;
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
19
|
+
* This method is not supported on LND 0.17.5 and below
|
|
20
20
|
*/
|
|
21
21
|
export const getChainTransaction: AuthenticatedLightningMethod<
|
|
22
22
|
GetChainTransactionArgs,
|
|
@@ -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.
|
|
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.
|
|
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,
|
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.
|
|
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.
|
|
56
|
+
"version": "10.9.2"
|
|
57
57
|
}
|