ln-service 57.8.1 → 57.9.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +32 -6
  3. package/package.json +5 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Versions
2
2
 
3
+ ## 57.9.1
4
+
5
+ - Add support for LND 0.17.5
6
+
7
+ ## 57.9.0
8
+
9
+ - `fundPsbt`, `getChainFeeEstimate`, `sendToChainAddress`,
10
+ `sendToChainAddresses`, `sendToChainOutputScripts`: Add `utxo_selection` to
11
+ specify preferred coin selection behavior.
12
+
3
13
  ## 57.8.1
4
14
 
5
15
  - `pay` and payment via request methods: disallow features 30/31 from payments
package/README.md CHANGED
@@ -9,7 +9,7 @@ through npm.
9
9
 
10
10
  Supported LND versions:
11
11
 
12
- - v0.17.0-beta to v0.17.4-beta
12
+ - v0.17.0-beta to v0.17.5-beta
13
13
  - v0.16.0-beta to v0.16.4-beta
14
14
  - v0.15.2-beta to v0.15.5-beta
15
15
  - v0.14.4-beta to v0.14.5-beta
@@ -1003,7 +1003,7 @@ Remove a chain transaction.
1003
1003
 
1004
1004
  Requires `onchain:write` permission
1005
1005
 
1006
- This method is not supported on LND 0.17.4 and below
1006
+ This method is not supported on LND 0.17.5 and below
1007
1007
 
1008
1008
  {
1009
1009
  id: <Transaction Id Hex String>
@@ -1341,6 +1341,8 @@ Specify outputs or PSBT with the outputs encoded
1341
1341
 
1342
1342
  If there are no inputs passed, internal UTXOs will be selected and locked
1343
1343
 
1344
+ `utxo_selection` methods: 'largest', 'random'
1345
+
1344
1346
  Requires `onchain:write` permission
1345
1347
 
1346
1348
  Requires LND built with `walletrpc` tag
@@ -1349,6 +1351,8 @@ This method is not supported in LND 0.11.1 and below
1349
1351
 
1350
1352
  Specifying 0 for `min_confirmations` is not supported in LND 0.13.0 and below
1351
1353
 
1354
+ `utxo_selection` is not supported in LND 0.17.5 and below
1355
+
1352
1356
  {
1353
1357
  [fee_tokens_per_vbyte]: <Chain Fee Tokens Per Virtual Byte Number>
1354
1358
  [inputs]: [{
@@ -1363,6 +1367,7 @@ Specifying 0 for `min_confirmations` is not supported in LND 0.13.0 and below
1363
1367
  }]
1364
1368
  [target_confirmations]: <Confirmations To Wait Number>
1365
1369
  [psbt]: <Existing PSBT Hex String>
1370
+ [utxo_selection]: <Select UTXOs Using Method String>
1366
1371
  }
1367
1372
 
1368
1373
  @returns via cbk or Promise
@@ -1637,10 +1642,14 @@ const chainBalance = (await getChainBalance({lnd})).chain_balance;
1637
1642
 
1638
1643
  Get a chain fee estimate for a prospective chain send
1639
1644
 
1645
+ `utxo_selection` methods: 'largest', 'random'
1646
+
1640
1647
  Requires `onchain:read` permission
1641
1648
 
1642
1649
  Specifying 0 for `utxo_confirmations` is not supported in LND 0.13.0 or below
1643
1650
 
1651
+ `utxo_selection` is not supported in LND 0.17.5 and below
1652
+
1644
1653
  {
1645
1654
  lnd: <Authenticated LND API Object>
1646
1655
  send_to: [{
@@ -1648,6 +1657,8 @@ Specifying 0 for `utxo_confirmations` is not supported in LND 0.13.0 or below
1648
1657
  tokens: <Tokens Number>
1649
1658
  }]
1650
1659
  [target_confirmations]: <Target Confirmations Number>
1660
+ [utxo_confirmations]: <Minimum Confirmations for UTXO Selection Number>
1661
+ [utxo_selection]: <Select UTXOs Using Method String>
1651
1662
  }
1652
1663
 
1653
1664
  @returns via cbk or Promise
@@ -1695,7 +1706,7 @@ Get a chain transaction.
1695
1706
 
1696
1707
  Requires `onchain:read` permission
1697
1708
 
1698
- This method is not supported on LND 0.17.4 and below
1709
+ This method is not supported on LND 0.17.5 and below
1699
1710
 
1700
1711
  {
1701
1712
  id: <Transaction Id Hex String>
@@ -2008,7 +2019,7 @@ Get the current configuration file settings and the output log
2008
2019
  Requires `info:read`, `offchain:read`, `onchain:read`, `peers:read`
2009
2020
  permissions
2010
2021
 
2011
- This method is not supported on LND 0.17.4 and below
2022
+ This method is not supported on LND 0.17.5 and below
2012
2023
 
2013
2024
  {
2014
2025
  lnd: <Authenticated LND API Object>
@@ -2043,7 +2054,7 @@ Includes previously connected watchtowers
2043
2054
 
2044
2055
  `is_anchor` flag is not supported on LND 0.11.1 and below
2045
2056
 
2046
- `is_taproot` flag is not supported on LND 0.17.4 and below
2057
+ `is_taproot` flag is not supported on LND 0.17.5 and below
2047
2058
 
2048
2059
  {
2049
2060
  [is_anchor]: <Get Anchor Type Tower Info Bool>
@@ -3102,7 +3113,7 @@ Requires `offchain:read` permission
3102
3113
 
3103
3114
  `blocks_until_expiry` is not supported in LND 0.16.4 or before
3104
3115
 
3105
- `close_transaction` is not supported in LND 0.17.4 or before
3116
+ `close_transaction` is not supported in LND 0.17.5 or before
3106
3117
 
3107
3118
  {
3108
3119
  lnd: <Authenticated LND API Object>
@@ -4955,10 +4966,14 @@ await sendMessageToPeer({
4955
4966
 
4956
4967
  Send tokens in a blockchain transaction.
4957
4968
 
4969
+ `utxo_selection` methods: 'largest', 'random'
4970
+
4958
4971
  Requires `onchain:write` permission
4959
4972
 
4960
4973
  `utxo_confirmations` is not supported on LND 0.11.1 or below
4961
4974
 
4975
+ `utxo_selection` is not supported in LND 0.17.5 and below
4976
+
4962
4977
  {
4963
4978
  address: <Destination Chain Address String>
4964
4979
  [description]: <Transaction Label String>
@@ -4969,6 +4984,7 @@ Requires `onchain:write` permission
4969
4984
  [target_confirmations]: <Confirmations To Wait Number>
4970
4985
  tokens: <Tokens To Send Number>
4971
4986
  [utxo_confirmations]: <Minimum Confirmations for UTXO Selection Number>
4987
+ [utxo_selection]: <Select UTXOs Using Method String>
4972
4988
  [wss]: [<Web Socket Server Object>]
4973
4989
  }
4974
4990
 
@@ -4994,10 +5010,14 @@ await sendToChainAddress({address, lnd, tokens});
4994
5010
 
4995
5011
  Send tokens to multiple destinations in a blockchain transaction.
4996
5012
 
5013
+ `utxo_selection` methods: 'largest', 'random'
5014
+
4997
5015
  Requires `onchain:write` permission
4998
5016
 
4999
5017
  `utxo_confirmations` is not supported on LND 0.11.1 or below
5000
5018
 
5019
+ `utxo_selection` is not supported in LND 0.17.5 and below
5020
+
5001
5021
  {
5002
5022
  [description]: <Transaction Label String>
5003
5023
  [fee_tokens_per_vbyte]: <Chain Fee Tokens Per Virtual Byte Number>
@@ -5009,6 +5029,7 @@ Requires `onchain:write` permission
5009
5029
  }]
5010
5030
  [target_confirmations]: <Confirmations To Wait Number>
5011
5031
  [utxo_confirmations]: <Minimum Confirmations for UTXO Selection Number>
5032
+ [utxo_selection]: <Select UTXOs Using Method String>
5012
5033
  [wss]: [<Web Socket Server Object>]
5013
5034
  }
5014
5035
 
@@ -5033,10 +5054,14 @@ await sendToChainAddresses({lnd, send_to: sendTo});
5033
5054
 
5034
5055
  Send on-chain funds to multiple output scripts
5035
5056
 
5057
+ `utxo_selection` methods: 'largest', 'random'
5058
+
5036
5059
  Requires `onchain:write` permission
5037
5060
 
5038
5061
  Requires LND compiled with `walletrpc` build tag
5039
5062
 
5063
+ `utxo_selection` is not supported in LND 0.17.5 and below
5064
+
5040
5065
  {
5041
5066
  [description]: <Transaction Label String>
5042
5067
  [fee_tokens_per_vbyte]: <Chain Fee Tokens Per Virtual Byte Number>
@@ -5046,6 +5071,7 @@ Requires LND compiled with `walletrpc` build tag
5046
5071
  tokens: <Tokens Number>
5047
5072
  }]
5048
5073
  [utxo_confirmations]: <Minimum Confirmations for UTXO Selection Number>
5074
+ [utxo_selection]: <Select UTXOs Using Method String>
5049
5075
  }
5050
5076
 
5051
5077
  @returns via cbk or Promise
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "bolt07": "1.8.4",
11
11
  "invoices": "3.0.0",
12
- "lightning": "10.8.2",
12
+ "lightning": "10.9.1",
13
13
  "macaroon": "3.0.4"
14
14
  },
15
15
  "description": "Interaction helper for your Lightning Network daemon",
@@ -24,7 +24,7 @@
24
24
  "bn.js": "5.2.1",
25
25
  "bs58check": "3.0.1",
26
26
  "ecpair": "2.1.0",
27
- "ln-docker-daemons": "6.0.12",
27
+ "ln-docker-daemons": "6.0.14",
28
28
  "p2tr": "2.0.0",
29
29
  "portfinder": "1.0.32",
30
30
  "psbt": "3.0.0",
@@ -52,6 +52,8 @@
52
52
  "url": "https://github.com/alexbosworth/ln-service.git"
53
53
  },
54
54
  "scripts": {
55
+ "integration-test-0.17.5": "DOCKER_LND_VERSION=v0.17.5-beta npm run test",
56
+ "integration-test-0.17.4": "DOCKER_LND_VERSION=v0.17.4-beta npm run test",
55
57
  "integration-test-0.17.3": "DOCKER_LND_VERSION=v0.17.3-beta npm run test",
56
58
  "integration-test-0.17.2": "DOCKER_LND_VERSION=v0.17.2-beta npm run test",
57
59
  "integration-test-0.17.1": "DOCKER_LND_VERSION=v0.17.1-beta npm run test",
@@ -69,5 +71,5 @@
69
71
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
70
72
  "test": "echo $DOCKER_LND_VERSION && node test/runner"
71
73
  },
72
- "version": "57.8.1"
74
+ "version": "57.9.1"
73
75
  }