balanceofsatoshis 24.2.1 → 24.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 24.2.1
3
+ ## 24.2.2
4
4
 
5
5
  - `open`: Adhere to BIP 69 when ordering funding outputs with equal amounts
6
6
 
package/package.json CHANGED
@@ -32,18 +32,18 @@
32
32
  "cbor": "10.0.12",
33
33
  "colorette": "2.0.20",
34
34
  "csv-parse": "7.0.3",
35
- "goldengate": "16.0.7",
35
+ "goldengate": "16.0.8",
36
36
  "grammy": "1.46.0",
37
37
  "import-lazy": "4.0.0",
38
38
  "ini": "7.0.0",
39
- "inquirer": "14.2.2",
40
- "ln-accounting": "10.0.7",
39
+ "inquirer": "14.2.3",
40
+ "ln-accounting": "10.0.8",
41
41
  "ln-service": "60.1.2",
42
- "ln-sync": "8.0.6",
43
- "ln-telegram": "8.0.6",
42
+ "ln-sync": "8.0.7",
43
+ "ln-telegram": "8.0.7",
44
44
  "moment": "2.31.0",
45
- "paid-services": "9.0.0",
46
- "probing": "7.0.0",
45
+ "paid-services": "9.0.1",
46
+ "probing": "7.0.1",
47
47
  "qrcode-terminal": "0.12.0",
48
48
  "sanitize-filename": "1.6.4",
49
49
  "socks-proxy-agent": "10.1.0",
@@ -105,5 +105,5 @@
105
105
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
106
106
  "test": "node --experimental-test-coverage --test test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/offchain/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
107
107
  },
108
- "version": "24.2.1"
108
+ "version": "24.2.2"
109
109
  }
@@ -1,5 +1,4 @@
1
1
  const {balancedChannelKeyTypes} = require('./service_key_types');
2
- const {Transaction} = require('bitcoinjs-lib');
3
2
 
4
3
  const bufferAsHex = buffer => buffer.toString('hex');
5
4
  const hashHexLength = 64;
@@ -9,7 +8,7 @@ const isPublicKey = n => !!n && /^0[2-3][0-9A-F]{64}$/i.test(n);
9
8
  const maxSignatureLength = 150;
10
9
  const multiSigType = balancedChannelKeyTypes.multisig_public_key;
11
10
  const parseHexNumber = hex => parseInt(hex, 16);
12
- const sigHashAll = Buffer.from([Transaction.SIGHASH_ALL]);
11
+ const sigHashAll = Buffer.from([1]);
13
12
 
14
13
  /** Derive open accept details
15
14
 
@@ -8,7 +8,6 @@ const {getNetwork} = require('ln-sync');
8
8
  const {getNodeAlias} = require('ln-sync');
9
9
  const {getPublicKey} = require('ln-service');
10
10
  const moment = require('moment');
11
- const {networks} = require('bitcoinjs-lib');
12
11
  const {outputScriptForAddress} = require('@alexbosworth/blockchain');
13
12
  const {returnResult} = require('asyncjs-util');
14
13
 
package/swaps/swap_out.js CHANGED
@@ -27,6 +27,7 @@ const {getPayment} = require('ln-service');
27
27
  const {getSwapOutQuote} = require('goldengate');
28
28
  const {getSwapOutTerms} = require('goldengate');
29
29
  const {getSyntheticOutIgnores} = require('probing');
30
+ const {idForTransaction} = require('@alexbosworth/blockchain');
30
31
  const {lightningLabsSwapService} = require('goldengate');
31
32
  const moment = require('moment');
32
33
  const {payViaRoutes} = require('ln-service');
@@ -38,7 +39,6 @@ const {subscribeToMultiPathProbe} = require('probing');
38
39
  const {subscribeToPastPayment} = require('ln-service');
39
40
  const {subscribeToPayViaRequest} = require('ln-service');
40
41
  const {subscribeToSwapOutStatus} = require('goldengate');
41
- const {Transaction} = require('bitcoinjs-lib');
42
42
 
43
43
  const {authenticatedLnd} = require('./../lnd');
44
44
  const {chains} = require('./../network/networks');
@@ -1521,7 +1521,7 @@ module.exports = (args, cbk) => {
1521
1521
 
1522
1522
  args.logger.info({
1523
1523
  attempting_sweep_fee_rate: res.fee_rate,
1524
- attempt_tx_id: Transaction.fromHex(res.transaction).getId(),
1524
+ attempt_tx_id: idForTransaction({transaction: res.transaction}).id,
1525
1525
  });
1526
1526
 
1527
1527
  createInvoice({