bump version

This commit is contained in:
Alex Bosworth 2023-09-21 10:19:54 -07:00
parent 46eeb0cbfd
commit e983feede3
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
7 changed files with 516 additions and 175 deletions

View file

@ -1,5 +1,13 @@
# Versions
## 16.0.0
- `chain-deposit`: Change default address type to `p2tr`
### Breaking Changes
- Remove support for LND 0.14.5 and below
## 15.11.0
- `rebalance`: Add `INBOUND_BASE_FEE` to `--in-filter` and `--out-filter`

View file

@ -9,7 +9,6 @@ Supported LND versions:
- v0.16.0-beta to v0.16.4-beta
- v0.15.2-beta to v0.15.5-beta
- v0.14.4-beta to v0.14.5-beta
## Install

4
bos
View file

@ -270,9 +270,9 @@ prog
// Deposit coins
.command('chain-deposit', 'Deposit coins in the on-chain wallet')
.help('--format address types supported: np2wpkh, p2tr, p2wpkh (default)')
.help('--format address types supported: np2wpkh, p2tr (default), p2wpkh')
.argument('[amount]', 'Amount to receive', INT)
.option('--format <format>', 'Address type', ['np2wpkh', 'p2tr', 'p2wpkh'], 'p2tr')
.option('--format <format>', 'Address type', ['np2wpkh', 'p2tr', 'p2wpkh'])
.option('--fresh', 'Create a fresh address')
.option('--no-color', 'Mute all colors')
.option('--node <node_name>', 'Node to deposit coins to')

View file

@ -4,6 +4,7 @@ const qrcode = require('qrcode-terminal');
const {returnResult} = require('asyncjs-util');
const bigTok = tokens => !tokens ? '0' : (tokens / 1e8).toFixed(8);
const defaultFormat = 'p2tr';
/** Get deposit address
@ -34,7 +35,12 @@ module.exports = ({format, fresh, lnd, tokens}, cbk) => {
// Get an address
getAddress: ['validate', ({}, cbk) => {
return createChainAddress({format, lnd, is_unused: !fresh}, cbk);
return createChainAddress({
lnd,
format: format || defaultFormat,
is_unused: !fresh,
},
cbk);
}],
// Get a QR code for the address URL

644
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -21,7 +21,7 @@
"asyncjs-util": "1.2.12",
"bech32": "2.0.0",
"bip66": "1.1.5",
"bitcoinjs-lib": "6.1.3",
"bitcoinjs-lib": "6.1.5",
"bolt01": "2.0.0",
"bolt03": "1.3.1",
"bolt07": "1.8.4",
@ -31,11 +31,11 @@
"csv-parse": "5.5.0",
"ecpair": "2.1.0",
"goldengate": "13.0.2",
"grammy": "1.18.1",
"grammy": "1.18.3",
"hot-formula-parser": "4.0.0",
"import-lazy": "4.0.0",
"ini": "4.1.1",
"inquirer": "9.2.10",
"inquirer": "9.2.11",
"ln-accounting": "7.0.2",
"ln-service": "56.13.0",
"ln-sync": "5.2.3",
@ -82,5 +82,5 @@
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
"test": "npx nyc@15.1.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"
},
"version": "15.11.0"
"version": "16.0.0"
}

View file

@ -12,14 +12,28 @@ const tests = [
},
{
args: {
lnd: {default: {newAddress: ({}, cbk) => cbk(null, {address: 'addr'})}},
lnd: {
default: {newAddress: ({}, cbk) => cbk(null, {address: 'addr'})},
wallet: {
listAccounts: ({}, cbk) => cbk(null, {
accounts: [{address_type: 'TAPROOT_PUBKEY'}],
}),
},
},
},
description: 'A chain address is returned',
expected: {deposit_address: 'addr', deposit_qr: true},
},
{
args: {
lnd: {default: {newAddress: ({}, cbk) => cbk(null, {address: 'addr'})}},
lnd: {
default: {newAddress: ({}, cbk) => cbk(null, {address: 'addr'})},
wallet: {
listAccounts: ({}, cbk) => cbk(null, {
accounts: [{address_type: 'TAPROOT_PUBKEY'}],
}),
},
},
tokens: 1,
},
description: 'A chain address is returned',