lightning 10.2.0 → 10.2.1
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 +5 -1
- package/lnd_methods/offchain/subscribe_to_open_requests.d.ts +1 -1
- package/lnd_methods/offchain/subscribe_to_open_requests.js +1 -1
- package/lnd_methods/onchain/delete_chain_transaction.d.ts +19 -0
- package/lnd_methods/onchain/get_chain_transaction.d.ts +24 -0
- package/lnd_methods/onchain/index.d.ts +2 -0
- package/package.json +3 -3
- package/test/lnd_methods/offchain/test_subscribe_to_probe_for_route.js +1 -1
- package/test/lnd_methods/onchain/test_get_chain_fee_estimate.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## 10.2.1
|
|
4
|
+
|
|
5
|
+
- `deleteChainTransaction`, `getChainTransaction`: Add types
|
|
6
|
+
|
|
3
7
|
## 10.2.0
|
|
4
8
|
|
|
5
9
|
- `deleteChainTransaction`: Add method to delete a chain transaction
|
|
@@ -467,7 +471,7 @@
|
|
|
467
471
|
|
|
468
472
|
## 4.2.1
|
|
469
473
|
|
|
470
|
-
- `getChannelBalance`:
|
|
474
|
+
- `getChannelBalance`: Correct typescript type for `unsettled_balance_mtokens`
|
|
471
475
|
- `subscribeToProbeForRoute`: Correct typescript type for `base_fee_mtokens`
|
|
472
476
|
|
|
473
477
|
## 4.2.0
|
|
@@ -17,7 +17,7 @@ export type SubscribeToOpenRequestsChannelRequestEvent = {
|
|
|
17
17
|
remote_max_htlcs?: number;
|
|
18
18
|
/** Maximum HTLCs Value Millitokens */
|
|
19
19
|
remote_max_pending_mtokens?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** Minimum HTLC Value Millitokens */
|
|
21
21
|
remote_min_htlc_mtokens?: string;
|
|
22
22
|
}) => void;
|
|
23
23
|
/** Capacity Tokens */
|
|
@@ -41,7 +41,7 @@ const type = 'default';
|
|
|
41
41
|
[remote_reserve]: <Minimum Tokens Peer Must Keep On Their Side Number>
|
|
42
42
|
[remote_max_htlcs]: <Maximum Slots For Attaching HTLCs Number>
|
|
43
43
|
[remote_max_pending_mtokens]: <Maximum HTLCs Value Millitokens String>
|
|
44
|
-
[remote_min_htlc_mtokens]: <
|
|
44
|
+
[remote_min_htlc_mtokens]: <Minimum HTLC Value Millitokens String>
|
|
45
45
|
}) -> {}
|
|
46
46
|
capacity: <Capacity Tokens Number>
|
|
47
47
|
chain: <Chain Id Hex String>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AuthenticatedLightningArgs,
|
|
3
|
+
AuthenticatedLightningMethod,
|
|
4
|
+
} from '../../typescript';
|
|
5
|
+
|
|
6
|
+
export type DeleteChainTransactionArgs = AuthenticatedLightningArgs<{
|
|
7
|
+
/** Transaction Id Hex String */
|
|
8
|
+
id: string;
|
|
9
|
+
}>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* Remove a chain transaction.
|
|
14
|
+
*
|
|
15
|
+
* Requires `onchain:write` permission
|
|
16
|
+
*
|
|
17
|
+
* This method is not supported on LND 0.17.3 and below
|
|
18
|
+
*/
|
|
19
|
+
export const deleteChainTransaction: AuthenticatedLightningMethod<DeleteChainTransactionArgs>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AuthenticatedLightningArgs,
|
|
3
|
+
AuthenticatedLightningMethod,
|
|
4
|
+
} from '../../typescript';
|
|
5
|
+
import {ChainTransaction} from './get_chain_transactions';
|
|
6
|
+
|
|
7
|
+
export type GetChainTransactionArgs = AuthenticatedLightningArgs<{
|
|
8
|
+
/** Transaction Id Hex String */
|
|
9
|
+
id: string;
|
|
10
|
+
}>;
|
|
11
|
+
|
|
12
|
+
export type GetChainTransactionResult = ChainTransaction;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get a chain transaction.
|
|
16
|
+
*
|
|
17
|
+
* Requires `onchain:read` permission
|
|
18
|
+
*
|
|
19
|
+
* This method is not supported on LND 0.17.3 and below
|
|
20
|
+
*/
|
|
21
|
+
export const getChainTransaction: AuthenticatedLightningMethod<
|
|
22
|
+
GetChainTransactionArgs,
|
|
23
|
+
GetChainTransactionResult
|
|
24
|
+
>;
|
|
@@ -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 './delete_chain_transaction';
|
|
4
5
|
export * from './fund_pending_channels';
|
|
5
6
|
export * from './fund_psbt';
|
|
6
7
|
export * from './get_block';
|
|
@@ -9,6 +10,7 @@ export * from './get_chain_addresses';
|
|
|
9
10
|
export * from './get_chain_balance';
|
|
10
11
|
export * from './get_chain_fee_estimate';
|
|
11
12
|
export * from './get_chain_fee_rate';
|
|
13
|
+
export * from './get_chain_transaction';
|
|
12
14
|
export * from './get_chain_transactions';
|
|
13
15
|
export * from './get_locked_utxos';
|
|
14
16
|
export * from './get_master_public_keys';
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@grpc/grpc-js": "1.9.13",
|
|
11
11
|
"@grpc/proto-loader": "0.7.10",
|
|
12
|
-
"@types/node": "20.10.
|
|
12
|
+
"@types/node": "20.10.5",
|
|
13
13
|
"@types/request": "2.48.12",
|
|
14
14
|
"@types/ws": "8.5.10",
|
|
15
15
|
"async": "3.2.5",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"description": "Lightning Network client library",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"tsd": "0.
|
|
29
|
+
"tsd": "0.30.0",
|
|
30
30
|
"typescript": "5.3.3"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"directory": "test/typescript"
|
|
54
54
|
},
|
|
55
55
|
"types": "index.d.ts",
|
|
56
|
-
"version": "10.2.
|
|
56
|
+
"version": "10.2.1"
|
|
57
57
|
}
|
|
@@ -42,7 +42,7 @@ const sendToRouteFailure = {
|
|
|
42
42
|
const makeLnd = ({count, getInfo, sendToRouteV2}) => {
|
|
43
43
|
let returnedRoutes = 0;
|
|
44
44
|
|
|
45
|
-
const defaultSendTo = ({}, cbk) => cbk(null, {
|
|
45
|
+
const defaultSendTo = ({}, cbk) => cbk(null, {});
|
|
46
46
|
|
|
47
47
|
const lnd = {
|
|
48
48
|
default: {
|
|
@@ -38,7 +38,7 @@ const tests = [
|
|
|
38
38
|
lnd: {default: {estimateFee: ({}, cbk) => cbk('err')}},
|
|
39
39
|
send_to: [{address: 'address', tokens: 1}],
|
|
40
40
|
},
|
|
41
|
-
description: 'An error is
|
|
41
|
+
description: 'An error is passed back from fee estimate',
|
|
42
42
|
error: [503, 'UnexpectedErrEstimatingFeeForChainSend', {err: 'err'}],
|
|
43
43
|
},
|
|
44
44
|
{
|