lightning 10.13.0 → 10.13.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 +2 -1
- package/lnd_methods/offchain/update_routing_fees.d.ts +4 -0
- package/lnd_methods/offchain/update_routing_fees.js +4 -0
- package/lnd_methods/onchain/create_funded_psbt.d.ts +58 -0
- package/lnd_methods/onchain/index.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"f8211a2c3b3d2112159cd119bd7674743336c661": "0.17.5-beta",
|
|
55
55
|
"fb765fdb1daf1c1db08ab9b6aa0c442af431bc82": "0.16.1-beta",
|
|
56
56
|
"fd1a95bf322cdd1c743a1554f8e470fbf9a5e564": "0.15.1-beta",
|
|
57
|
-
"fdbeb1e7023827f1cb499a81d474986aa569d945": "0.16.2-beta"
|
|
57
|
+
"fdbeb1e7023827f1cb499a81d474986aa569d945": "0.16.2-beta",
|
|
58
|
+
"fed760913ff98a89c73414acde6cf29f8728321a": "0.18.0-beta"
|
|
58
59
|
},
|
|
59
60
|
"weightedType": "weightedcomb",
|
|
60
61
|
"wrongLnd": "12 UNIMPLEMENTED: unknown service autopilotrpc.Autopilot"
|
|
@@ -38,6 +38,10 @@ export type UpdateRoutingFeesArgs = AuthenticatedLightningArgs<
|
|
|
38
38
|
max_htlc_mtokens?: string;
|
|
39
39
|
/** Minimum HTLC Millitokens to Forward */
|
|
40
40
|
min_htlc_mtokens?: string;
|
|
41
|
+
/** Inbound Fee Millitokens Reduction String */
|
|
42
|
+
inbound_base_discount_mtokens?: string;
|
|
43
|
+
/** Source Millitokens Per Million Discount Number */
|
|
44
|
+
inbound_rate_discount?: number;
|
|
41
45
|
}
|
|
42
46
|
>;
|
|
43
47
|
|
|
@@ -23,6 +23,10 @@ const type = 'default';
|
|
|
23
23
|
|
|
24
24
|
`failures` are not returned on LND 0.13.4 and below
|
|
25
25
|
|
|
26
|
+
`inbound_base_discount_mtokens` is not supported on LND 0.17.5 and below
|
|
27
|
+
|
|
28
|
+
`inbound_rate_discount` is not supported on LND 0.17.5 and below
|
|
29
|
+
|
|
26
30
|
Requires `offchain:write` permission
|
|
27
31
|
|
|
28
32
|
{
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AuthenticatedLightningArgs,
|
|
3
|
+
AuthenticatedLightningMethod,
|
|
4
|
+
} from '../../typescript';
|
|
5
|
+
|
|
6
|
+
export type CreateFundedPsbtArgs = AuthenticatedLightningArgs<{
|
|
7
|
+
/** Chain Fee Tokens Per Virtual Byte Number */
|
|
8
|
+
fee_tokens_per_vbyte?: number;
|
|
9
|
+
inputs?: Array<{
|
|
10
|
+
/** Sequence Number */
|
|
11
|
+
sequence?: number;
|
|
12
|
+
/** Unspent Transaction Id Hex String */
|
|
13
|
+
transaction_id: string;
|
|
14
|
+
/** Unspent Transaction Output Index Number */
|
|
15
|
+
transaction_vout: number;
|
|
16
|
+
}>;
|
|
17
|
+
/** Select Inputs With Minimum Confirmations Number */
|
|
18
|
+
min_confirmations?: number;
|
|
19
|
+
outputs?: Array<{
|
|
20
|
+
/** Use This Output For Change Bool */
|
|
21
|
+
is_change?: boolean;
|
|
22
|
+
/** Output Script Hex String> */
|
|
23
|
+
script: string;
|
|
24
|
+
/** Send Tokens Tokens Number */
|
|
25
|
+
tokens: number;
|
|
26
|
+
}>;
|
|
27
|
+
/** Blocks To Wait for Confirmation Number */
|
|
28
|
+
target_confirmations?: number;
|
|
29
|
+
/** Spendable Lock Time on Transaction Number */
|
|
30
|
+
timelock?: number;
|
|
31
|
+
/** Select Inputs Using Selection Methodology Type String */
|
|
32
|
+
utxo_selection?: string;
|
|
33
|
+
/** Transaction Version Number */
|
|
34
|
+
version?: number;
|
|
35
|
+
}>;
|
|
36
|
+
|
|
37
|
+
export interface CreateFundedPsbtResult {
|
|
38
|
+
/** Unsigned PSBT Hex String */
|
|
39
|
+
psbt: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Create an unsigned funded PSBT given inputs or outputs
|
|
44
|
+
*
|
|
45
|
+
* When specifying local inputs, they must be locked before using
|
|
46
|
+
*
|
|
47
|
+
* `utxo_selection` methods: 'largest', 'random'
|
|
48
|
+
*
|
|
49
|
+
* Requires `onchain:write` permission
|
|
50
|
+
*
|
|
51
|
+
* Requires LND built with `walletrpc` tag
|
|
52
|
+
*
|
|
53
|
+
* This method is not supported on LND 0.17.5 or below
|
|
54
|
+
*/
|
|
55
|
+
export const createFundedPsbt: AuthenticatedLightningMethod<
|
|
56
|
+
CreateFundedPsbtArgs,
|
|
57
|
+
CreateFundedPsbtResult
|
|
58
|
+
>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './broadcast_chain_transaction';
|
|
2
2
|
export * from './cancel_pending_channel';
|
|
3
3
|
export * from './close_channel';
|
|
4
|
+
export * from './create_funded_psbt';
|
|
4
5
|
export * from './delete_chain_transaction';
|
|
5
6
|
export * from './fund_pending_channels';
|
|
6
7
|
export * from './fund_psbt';
|
package/package.json
CHANGED
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@grpc/grpc-js": "1.10.8",
|
|
11
11
|
"@grpc/proto-loader": "0.7.13",
|
|
12
|
-
"@types/node": "20.
|
|
12
|
+
"@types/node": "20.14.2",
|
|
13
13
|
"@types/request": "2.48.12",
|
|
14
14
|
"@types/ws": "8.5.10",
|
|
15
15
|
"async": "3.2.5",
|
|
16
16
|
"asyncjs-util": "1.2.12",
|
|
17
17
|
"bitcoinjs-lib": "6.1.5",
|
|
18
18
|
"bn.js": "5.2.1",
|
|
19
|
-
"bolt07": "1.
|
|
19
|
+
"bolt07": "1.9.2",
|
|
20
20
|
"bolt09": "2.1.0",
|
|
21
21
|
"ecpair": "2.1.0",
|
|
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.20.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.13.
|
|
56
|
+
"version": "10.13.2"
|
|
57
57
|
}
|