ln-service 60.1.1 → 60.1.3
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 +7 -1
- package/README.md +17 -15
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
-
## 60.1.
|
|
3
|
+
## 60.1.3
|
|
4
|
+
|
|
5
|
+
- `getChannels`, `subscribeToChannels`: Fix `pending_payments` returning
|
|
6
|
+
`payment`, `in_payment` and `out_payment` as undefined when the HTLC
|
|
7
|
+
index is zero, `payment` is now always present
|
|
8
|
+
|
|
9
|
+
## 60.1.2
|
|
4
10
|
|
|
5
11
|
- Add support for LND 0.21.4
|
|
6
12
|
- Add support for LND 0.20.5
|
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ lnService.getWalletInfo({lnd}, (err, result) => {
|
|
|
95
95
|
const nodePublicKey = (await lnService.getWalletInfo({lnd})).public_key;
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
An [unauthenticatedLndGrpc](#
|
|
98
|
+
An [unauthenticatedLndGrpc](#unauthenticatedlndgrpc) function is also available
|
|
99
99
|
for `unlocker` methods.
|
|
100
100
|
|
|
101
101
|
## Subscriptions
|
|
@@ -203,6 +203,7 @@ for `unlocker` methods.
|
|
|
203
203
|
- [getLockedUtxos](#getlockedutxos) - Get all previously locked UTXOs
|
|
204
204
|
- [getMasterPublicKeys](#getmasterpublickeys) - Get a list of master pub keys
|
|
205
205
|
- [getMethods](#getmethods) - Get available methods and associated permissions
|
|
206
|
+
- [getMinimumRelayFee](#getminimumrelayfee) - Get the minimum chain relay fee
|
|
206
207
|
- [getNetworkCentrality](#getnetworkcentrality) - Get centrality score for nodes
|
|
207
208
|
- [getNetworkGraph](#getnetworkgraph) - Get the channels and nodes of the graph
|
|
208
209
|
- [getNetworkInfo](#getnetworkinfo) - Get high-level graph info
|
|
@@ -230,7 +231,6 @@ for `unlocker` methods.
|
|
|
230
231
|
- [getWalletStatus](#getwalletstatus) - Get the status of the wallet
|
|
231
232
|
- [getWalletVersion](#getwalletversion) - Get the build and version of the LND
|
|
232
233
|
- [grantAccess](#grantaccess) - Grant an access credential macaroon
|
|
233
|
-
- [grpcProxyServer](#grpcproxyserver) - REST proxy server for calling to gRPC
|
|
234
234
|
- [isDestinationPayable](#isdestinationpayable) - Check can pay to destination
|
|
235
235
|
- [lockUtxo](#lockutxo) - Lock a UTXO temporarily to prevent it being used
|
|
236
236
|
- [openChannel](#openchannel) - Open a new channel
|
|
@@ -294,12 +294,11 @@ for `unlocker` methods.
|
|
|
294
294
|
- [subscribeToPeerMessages](#subscribetopeermessages) - Listen to incoming
|
|
295
295
|
custom messages
|
|
296
296
|
- [subscribeToPeers](#subscribetopeers) - Subscribe to peers connectivity
|
|
297
|
-
- [subscribeToProbe](#subscribetoprobe) - Subscribe to a probe for a route
|
|
298
297
|
- [subscribeToProbeForRoute](#subscribetoprobeforroute) - Probe for a route
|
|
299
298
|
- [subscribeToRpcRequests](#subscribetorpcrequests) - Subscribe to rpc requests
|
|
300
299
|
- [subscribeToTransactions](#subscribetotransactions) - Subscribe to chain tx
|
|
301
300
|
- [subscribeToWalletStatus](#subscribetowalletstatus) - Subscribe to node state
|
|
302
|
-
- [unauthenticatedLndGrpc](#
|
|
301
|
+
- [unauthenticatedLndGrpc](#unauthenticatedlndgrpc) - LND for locked lnd APIs
|
|
303
302
|
- [unlockUtxo](#unlockutxo) - Release a locked UTXO so that it can be used
|
|
304
303
|
again
|
|
305
304
|
- [unlockWallet](#unlockwallet) - Unlock a locked lnd
|
|
@@ -1947,9 +1946,6 @@ Get channels
|
|
|
1947
1946
|
|
|
1948
1947
|
Requires `offchain:read` permission
|
|
1949
1948
|
|
|
1950
|
-
`in_channel`, `in_payment`, `is_forward`, `out_channel`, `out_payment`,
|
|
1951
|
-
`payment` are not supported on LND 0.11.1 and below
|
|
1952
|
-
|
|
1953
1949
|
`is_trusted_funding` is not supported on LND 0.15.0 and below
|
|
1954
1950
|
|
|
1955
1951
|
`description` is not supported on LND 0.16.4 and below
|
|
@@ -1999,7 +1995,7 @@ Requires `offchain:read` permission
|
|
|
1999
1995
|
is_outgoing: <Payment Is Outgoing Bool>
|
|
2000
1996
|
[out_channel]: <Forward Outbound To Channel Id String>
|
|
2001
1997
|
[out_payment]: <Payment Index on Outbound Channel Number>
|
|
2002
|
-
|
|
1998
|
+
payment: <Payment Attempt Id Number>
|
|
2003
1999
|
timeout: <Chain Height Expiration Number>
|
|
2004
2000
|
tokens: <Payment Tokens Number>
|
|
2005
2001
|
}]
|
|
@@ -3583,7 +3579,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
3583
3579
|
[mtokens]: <Tokens to Send String>
|
|
3584
3580
|
[outgoing_channel]: <Outgoing Channel Id String>
|
|
3585
3581
|
[outgoing_channels]: [<Outgoing Channel Ids String>]
|
|
3586
|
-
[payment]: <Payment Identifier Hex
|
|
3582
|
+
[payment]: <Payment Identifier Hex String>
|
|
3587
3583
|
[routes]: [[{
|
|
3588
3584
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
3589
3585
|
[channel]: <Standard Format Channel Id String>
|
|
@@ -5851,8 +5847,8 @@ Requires `offchain:read` permission
|
|
|
5851
5847
|
is_cooperative_close: <Is Cooperative Close Bool>
|
|
5852
5848
|
is_funding_cancel: <Is Funding Cancelled Close Bool>
|
|
5853
5849
|
is_local_force_close: <Is Local Force Close Bool>
|
|
5854
|
-
|
|
5855
|
-
|
|
5850
|
+
is_partner_closed: <Channel Was Closed By Channel Peer Bool>
|
|
5851
|
+
is_partner_initiated: <Channel Was Initiated By Channel Peer Bool>
|
|
5856
5852
|
is_remote_force_close: <Is Remote Force Close Bool>
|
|
5857
5853
|
other_ids: [<Other Channel Id String>]
|
|
5858
5854
|
partner_public_key: <Partner Public Key Hex String>
|
|
@@ -5876,19 +5872,25 @@ Requires `offchain:read` permission
|
|
|
5876
5872
|
is_private: <Channel Is Private Bool>
|
|
5877
5873
|
[is_trusted_funding]: <Funding Output is Trusted Bool>
|
|
5878
5874
|
local_balance: <Local Balance Tokens Number>
|
|
5879
|
-
|
|
5875
|
+
local_given: <Local Initially Pushed Tokens Number>
|
|
5880
5876
|
local_reserve: <Local Reserved Tokens Number>
|
|
5881
5877
|
partner_public_key: <Channel Partner Public Key String>
|
|
5882
5878
|
past_states: <Total Count of Past Channel States Number>
|
|
5883
5879
|
pending_payments: [{
|
|
5884
5880
|
id: <Payment Preimage Hash Hex String>
|
|
5881
|
+
[in_channel]: <Forward Inbound From Channel Id String>
|
|
5882
|
+
[in_payment]: <Payment Index on Inbound Channel Number>
|
|
5883
|
+
[is_forward]: <Payment is a Forward Bool>
|
|
5885
5884
|
is_outgoing: <Payment Is Outgoing Bool>
|
|
5885
|
+
[out_channel]: <Forward Outbound To Channel Id String>
|
|
5886
|
+
[out_payment]: <Payment Index on Outbound Channel Number>
|
|
5887
|
+
payment: <Payment Attempt Id Number>
|
|
5886
5888
|
timeout: <Chain Height Expiration Number>
|
|
5887
5889
|
tokens: <Payment Tokens Number>
|
|
5888
5890
|
}]
|
|
5889
5891
|
received: <Received Tokens Number>
|
|
5890
5892
|
remote_balance: <Remote Balance Tokens Number>
|
|
5891
|
-
|
|
5893
|
+
remote_given: <Remote Initially Pushed Tokens Number>
|
|
5892
5894
|
remote_reserve: <Remote Reserved Tokens Number>
|
|
5893
5895
|
sent: <Sent Tokens Number>
|
|
5894
5896
|
transaction_id: <Blockchain Transaction Id String>
|
|
@@ -6142,7 +6144,6 @@ Requires `invoices:read` permission
|
|
|
6142
6144
|
[is_canceled]: <Invoice is Canceled Bool>
|
|
6143
6145
|
is_confirmed: <Invoice is Confirmed Bool>
|
|
6144
6146
|
[is_held]: <HTLC is Held Bool>
|
|
6145
|
-
is_outgoing: <Invoice is Outgoing Bool>
|
|
6146
6147
|
is_private: <Invoice is Private Bool>
|
|
6147
6148
|
[is_push]: <Invoice is Push Payment Bool>
|
|
6148
6149
|
mtokens: <Invoiced Millitokens String>
|
|
@@ -6205,6 +6206,7 @@ Requires `invoices:read` permission
|
|
|
6205
6206
|
[chain_address]: <Fallback Chain Address String>
|
|
6206
6207
|
cltv_delta: <Final CLTV Delta Number>
|
|
6207
6208
|
[confirmed_at]: <Confirmed At ISO 8601 Date String>
|
|
6209
|
+
[confirmed_index]: <Confirmed Index Number>
|
|
6208
6210
|
created_at: <Created At ISO 8601 Date String>
|
|
6209
6211
|
description: <Description String>
|
|
6210
6212
|
description_hash: <Description Hash Hex String>
|
|
@@ -6216,8 +6218,8 @@ Requires `invoices:read` permission
|
|
|
6216
6218
|
name: <Feature Name String>
|
|
6217
6219
|
}]
|
|
6218
6220
|
id: <Invoice Payment Hash Hex String>
|
|
6221
|
+
index: <Invoice Index Number>
|
|
6219
6222
|
is_confirmed: <Invoice is Confirmed Bool>
|
|
6220
|
-
is_outgoing: <Invoice is Outgoing Bool>
|
|
6221
6223
|
[is_push]: <Invoice is Push Payment Bool>
|
|
6222
6224
|
mtokens: <Invoiced Millitokens String>
|
|
6223
6225
|
[payment]: <Payment Identifying Secret Hex String>
|
package/package.json
CHANGED
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
},
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Alex Bosworth",
|
|
9
|
-
"url": "https://
|
|
9
|
+
"url": "https://x.com/alexbosworth"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/alexbosworth/ln-service/issues"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"bolt07": "2.0.0",
|
|
16
|
-
"invoices": "6.
|
|
17
|
-
"lightning": "13.1.
|
|
16
|
+
"invoices": "6.3.0",
|
|
17
|
+
"lightning": "13.1.3",
|
|
18
18
|
"macaroon": "3.0.4"
|
|
19
19
|
},
|
|
20
20
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@alexbosworth/blockchain": "4.
|
|
22
|
+
"@alexbosworth/blockchain": "4.10.0",
|
|
23
23
|
"async": "3.2.6",
|
|
24
24
|
"asyncjs-util": "1.2.12",
|
|
25
25
|
"bip32": "5.0.1",
|
|
26
26
|
"bip66": "2.0.0",
|
|
27
27
|
"bolt04": "1.3.0",
|
|
28
28
|
"ecpair": "3.0.2",
|
|
29
|
-
"ln-docker-daemons": "8.0
|
|
29
|
+
"ln-docker-daemons": "8.1.0",
|
|
30
30
|
"p2tr": "3.0.0",
|
|
31
31
|
"portfinder": "1.0.38",
|
|
32
32
|
"psbt": "6.0.4",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"integration-test-0.20.0": "DOCKER_LND_VERSION=v0.20.0-beta npm run test",
|
|
69
69
|
"test": "echo $DOCKER_LND_VERSION && node test/runner"
|
|
70
70
|
},
|
|
71
|
-
"version": "60.1.
|
|
71
|
+
"version": "60.1.3"
|
|
72
72
|
}
|