balanceofsatoshis 19.4.3 → 19.4.4

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,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 19.4.4
4
+
5
+ - `fund`: Explicitly disallow funding of txs with fractional fee rates
6
+
3
7
  ## 19.4.3
4
8
 
5
9
  - `rebalance`: Correct for new fee buffer on close-to-balance rebalances
package/bos CHANGED
@@ -863,7 +863,7 @@ prog
863
863
  .argument('<address_amount...>', 'Address and amount to send')
864
864
  .option('--broadcast', 'Broadcast the signed transaction')
865
865
  .option('--dryrun', 'Avoid locking up UTXOs')
866
- .option('--fee-rate <fee>', 'Per vbyte fee rate for on-chain tx fee', INT)
866
+ .option('--fee-rate <fee>', 'Per vbyte fee rate for on-chain tx fee')
867
867
  .option('--node <node_name>', 'Node to spend coins')
868
868
  .option('--select-utxos', 'Specify UTXOs to spend interactively from a list')
869
869
  .option('--utxo <outpoint>', 'Spend a specific tx_id:vout', REPEATABLE)
@@ -26,6 +26,7 @@ const hasMaxAmount = amounts => !!amounts.find(n => !!n && !!/max/gim.test(n));
26
26
  const {isArray} = Array;
27
27
  const isOutpoint = n => !!n && /^[0-9A-F]{64}:[0-9]{1,6}$/i.test(n);
28
28
  const isPublicKey = n => !!n && /^0[2-3][0-9A-F]{64}$/i.test(n);
29
+ const isValidFeeRate = n => !n || Number.isInteger(Number(n));
29
30
  const minConfs = 1;
30
31
  const sumOf = arr => arr.reduce((sum, n) => sum + n, Number());
31
32
  const taprootAddressVersion = 1;
@@ -85,6 +86,10 @@ module.exports = (args, cbk) => {
85
86
  return cbk([400, 'ExpectedAskFunctionToFundTransaction']);
86
87
  }
87
88
 
89
+ if (!isValidFeeRate(args.fee_tokens_per_vbyte)) {
90
+ return cbk([400, 'ExpectedIntegerFeeRateForFundingTransaction']);
91
+ }
92
+
88
93
  if (!!args.is_broadcast && !!args.is_dry_run) {
89
94
  return cbk([400, 'BroadcastingSignedTxUnsupportedInDryRun']);
90
95
  }
@@ -159,6 +164,7 @@ module.exports = (args, cbk) => {
159
164
  value: asOutpoint(utxo),
160
165
  })),
161
166
  loop: false,
167
+ message: 'Select UTXOs to spend',
162
168
  name: 'inputs',
163
169
  type: 'checkbox',
164
170
  validate: input => {
package/package.json CHANGED
@@ -25,19 +25,19 @@
25
25
  "bolt01": "2.0.0",
26
26
  "bolt03": "1.3.2",
27
27
  "bolt07": "1.9.4",
28
- "cbor": "9.0.2",
28
+ "cbor": "10.0.2",
29
29
  "colorette": "2.0.20",
30
30
  "crypto-js": "4.2.0",
31
31
  "csv-parse": "5.5.6",
32
32
  "ecpair": "2.1.0",
33
33
  "goldengate": "14.0.9",
34
- "grammy": "1.30.0",
34
+ "grammy": "1.31.0",
35
35
  "hot-formula-parser": "4.0.0",
36
36
  "import-lazy": "4.0.0",
37
37
  "ini": "5.0.0",
38
- "inquirer": "12.0.0",
38
+ "inquirer": "12.0.1",
39
39
  "ln-accounting": "8.0.5",
40
- "ln-service": "57.22.0",
40
+ "ln-service": "57.22.2",
41
41
  "ln-sync": "6.4.0",
42
42
  "ln-telegram": "6.1.10",
43
43
  "minimist": "1.2.8",
@@ -83,5 +83,5 @@
83
83
  "postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
84
84
  "test": "npx nyc@17.0.0 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/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
85
85
  },
86
- "version": "19.4.3"
86
+ "version": "19.4.4"
87
87
  }