From: Steve Myers Date: Sun, 13 Sep 2020 20:35:07 +0000 (-0700) Subject: rename "magic" example cli tool to "repl", fix github footer links and playground... X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.SinglePub.html?a=commitdiff_plain;h=d5190cc469232a96bb4a58e84a3faae1765c1c74;p=bitcoindevkit.org rename "magic" example cli tool to "repl", fix github footer links and playground cargo and code --- diff --git a/README.md b/README.md index 675ed065d5..e1f8f8327b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This website is built with [Hugo](https://gohugo.io). To clone this project use the --recursive option to also clone the themes/learn submodule: ``` - git clone --recursive git@github.com:MagicalBitcoin/magicalbitcoin.org.git + git clone --recursive git@github.com:bitcoindevkit/bitcoindevkit.org.git ``` If you are editing this website, you can run diff --git a/content/repl/installation.md b/content/repl/installation.md index ca5e59355d..6b005d6dbb 100644 --- a/content/repl/installation.md +++ b/content/repl/installation.md @@ -20,24 +20,24 @@ cargo 1.45.0 (744bd1fbb 2020-06-15) If you really don't want to pipe the output of `curl` into `sh`, you can also try using a [Docker image](https://hub.docker.com/_/rust) and working inside of it, but that's meant for more advanced users and won't be covered in this guide. -## Installing BDK +## Installing BDK `repl` -Once Cargo is installed, you can proceed to install the interactive BDK shell directly from the GitHub repository, by running: +Once Cargo is installed, you can proceed to install the interactive BDK `repl` tool directly from the GitHub repository, by running: ```bash -cargo install --git https://github.com/bitcoindevkit/bdk --features=cli-utils --example magic +cargo install --git https://github.com/bitcoindevkit/bdk --features=cli-utils --example repl ``` -This command will probably take a while to finish, since it will fetch and compile all the dependencies and the `bdk` itself. Once it's done, you can check if everything went fine -by running `magic --help` which should print something like this: +This command will probably take a while to finish, since it will fetch and compile all the dependencies and the `bdk` library itself. Once it's done, you can check if everything went fine +by running `repl --help` which should print something like this: ```text -Magical Bitcoin Wallet 0.1.0 +BDK repl 0.1.0 Riccardo Casatta :Alekos Filini A modern, lightweight, descriptor-based wallet USAGE: - magic [FLAGS] [OPTIONS] --descriptor [SUBCOMMAND] + repl [FLAGS] [OPTIONS] --descriptor [SUBCOMMAND] FLAGS: -h, --help Prints help information diff --git a/content/repl/interface.md b/content/repl/interface.md index 9b01015daf..41915154bc 100644 --- a/content/repl/interface.md +++ b/content/repl/interface.md @@ -6,7 +6,7 @@ weight: 3 pre: "3. " --- -Remember the `magic --help` command you ran before? Let's analyze its output here to figure out the interface: +Remember the `repl --help` command you ran before? Let's analyze its output here to figure out the interface: ## Flags @@ -21,11 +21,11 @@ These are the optional flags that can be set with every command. The `-h` flag p ### Verbosity -If you want to increase the verbosity of the output, you should use the `RUST_LOG` environment variable. You can set it like so to see a lot more of what's going on behind the scenes, before running the `magic` -command. You only have to do this once when you open a new shell, after that you can run the `magic` command multiple times. +If you want to increase the verbosity of the output, you should use the `RUST_LOG` environment variable. You can set it like so to see a lot more of what's going on behind the scenes, before running the `repl` +command. You only have to do this once when you open a new shell, after that you can run the `repl` command multiple times. ```bash -export RUST_LOG="magical_bitcoin_wallet=debug" +export RUST_LOG="bdk_repl=debug" ``` ## Options @@ -80,7 +80,7 @@ match anymore the one you've used to initialize the cache. One solution could be | [sign](#sign) | Signs and tries to finalize a PSBT | | [sync](#sync) | Syncs with the chosen Electrum server | -These are the main "functions" of the wallet. Most of them are pretty self explanatory, but we'll go over them quickly anyways. You can get more details about every single command by running `magic --help`. +These are the main "functions" of the wallet. Most of them are pretty self explanatory, but we'll go over them quickly anyways. You can get more details about every single command by running `repl --help`. ### broadcast diff --git a/content/repl/regtest.md b/content/repl/regtest.md index ce31c84ba5..103fa10e71 100644 --- a/content/repl/regtest.md +++ b/content/repl/regtest.md @@ -49,4 +49,4 @@ $ nigiri start This will start electrum RPC interface on port `51401`, the REST interface on `3000` and the esplora UI on `5000` (You can visit with the browser and look for blocks, addresses and transactions) -You can then add the `-n regtest -s localhost:51401` to the `magic` commands to switch to the local regtest. +You can then add the `-n regtest -s localhost:51401` to the `repl` commands to switch to the local regtest. diff --git a/layouts/partials/menu-footer.html b/layouts/partials/menu-footer.html index d5a655cea3..fff01b7cc9 100644 --- a/layouts/partials/menu-footer.html +++ b/layouts/partials/menu-footer.html @@ -2,9 +2,9 @@
- Watch - Star - Fork + Watch + Star + Fork
Built with Hugo
diff --git a/playground/Cargo.toml b/playground/Cargo.toml index 3533cc0cc7..19d88559d0 100644 --- a/playground/Cargo.toml +++ b/playground/Cargo.toml @@ -19,7 +19,7 @@ log = "0.4" console_log = "0.2" clap = "2.33" secp256k1 = { version = "0.17", features = ["rand"] } -magical-bitcoin-wallet = { git = "https://github.com/MagicalBitcoin/magical-bitcoin-wallet.git", rev = "5683a83", default-features = false, features = ["esplora", "cli-utils", "compiler"] } +bdk = { git = "https://github.com/BitcoinDevKit/bdk.git", rev = "5683a83", default-features = false, features = ["esplora", "cli-utils", "compiler"] } serde = { version = "^1.0", features = ["derive"] } serde_json = { version = "^1.0" } diff --git a/playground/src/lib.rs b/playground/src/lib.rs index 801d4b1174..f0c700f08c 100644 --- a/playground/src/lib.rs +++ b/playground/src/lib.rs @@ -14,10 +14,10 @@ use serde::Deserialize; use clap::AppSettings; -use magical_bitcoin_wallet::bitcoin; -use magical_bitcoin_wallet::database::memory::MemoryDatabase; -use magical_bitcoin_wallet::miniscript; -use magical_bitcoin_wallet::*; +use bdk::bitcoin; +use bdk::database::memory::MemoryDatabase; +use bdk::miniscript; +use bdk::*; use bitcoin::*;