bitcoindevkit / bdk-cli

A CLI wallet library and REPL tool to demo and test the BDK library
Other
108 stars 64 forks source link

Unleash the power of Bitcoin Core into bdk-cli #92

Closed rajarshimaitra closed 2 years ago

rajarshimaitra commented 2 years ago

Description

fixes #62 fixes #76

This PR does the following

Notes to the reviewers

@sandipndev @krtk6160. This is the PR you guys can start working on top of to simulate the intended test situations. At least with bitcoind it can be done with all existing toolings. For LND some other wrapper needes to be built.

@notmandatory let me know what you think about the whole framework.

Also looking for more integration test ideas too add into.

basic node usage looks like this

$ ./target/debug/bdk-cli node --help
bdk-cli-node 0.5.0
Regtest Node mode

USAGE:
    bdk-cli node <SUBCOMMAND>

FLAGS:
    -h, --help       
            Prints help information

    -V, --version    
            Prints version information

SUBCOMMANDS:
    generate         Generate blocks
    getbalance       Get Wallet balance
    getinfo          Get info
    getnewaddress    Get new address from node's test wallet
    help             Prints this message or the help of the given subcommand(s)
    sendtoaddress    Send to an external wallet address

Checklists

All Submissions:

New Features:

notmandatory commented 2 years ago

Hey @rajarshimaitra concept ACK! but I need to focus on the next bdk release (taproot!) so won't be able to do a through review until that's out.

rajarshimaitra commented 2 years ago

Ya thanks @notmandatory no issues.. I opened this early for discussion.. This can wait till other major things are done..

rajarshimaitra commented 2 years ago
rajarshimaitra commented 2 years ago

Updated the PR doc..

The current test failure at cargo build --features reserves,electrum --locked fixes with https://github.com/weareseba/bdk-reserves/pull/5

rajarshimaitra commented 2 years ago

Opened an alternate version of the same PR in #102.

Not closing this one yet, in case we need to revert back to previous crate structure..

rajarshimaitra commented 2 years ago

Closing this as we are moving ahead with #102