mirror of
https://github.com/alexbosworth/balanceofsatoshis.git
synced 2026-08-13 12:33:37 +02:00
bump version
This commit is contained in:
parent
46eeb0cbfd
commit
e983feede3
7 changed files with 516 additions and 175 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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
4
bos
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
644
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue