lightning 10.9.1 → 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 +1 -1
- package/lnd_methods/onchain/fund_psbt.d.ts +5 -0
- package/lnd_methods/onchain/get_chain_fee_estimate.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_address.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_addresses.d.ts +5 -0
- package/lnd_methods/onchain/send_to_chain_output_scripts.d.ts +5 -0
- package/package.json +2 -2
- package/typescript/shared.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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
|
}
|