]> Untitled Git - bitcoindevkit.org/commitdiff
rename "magic" example cli tool to "repl", fix github footer links and playground...
authorSteve Myers <steve@notmandatory.org>
Sun, 13 Sep 2020 20:35:07 +0000 (13:35 -0700)
committerSteve Myers <steve@notmandatory.org>
Sun, 13 Sep 2020 20:35:07 +0000 (13:35 -0700)
README.md
content/repl/installation.md
content/repl/interface.md
content/repl/regtest.md
layouts/partials/menu-footer.html
playground/Cargo.toml
playground/src/lib.rs

index 675ed065d5e7139f692ea320fdfe5ae1f35b7117..e1f8f8327bf1434ab14321d02a209e076c4fb956 100644 (file)
--- 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
index ca5e59355dbbe325617942e7796fbb8d1345e638..6b005d6dbb377ebd571231d9947836c2801b802c 100644 (file)
@@ -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 <riccardo@casatta.it>:Alekos Filini <alekos.filini@gmail.com>
 A modern, lightweight, descriptor-based wallet
 
 USAGE:
-    magic [FLAGS] [OPTIONS] --descriptor <DESCRIPTOR> [SUBCOMMAND]
+    repl [FLAGS] [OPTIONS] --descriptor <DESCRIPTOR> [SUBCOMMAND]
 
 FLAGS:
     -h, --help       Prints help information
index 9b01015daf486363c1b88a48a55e6bc589e8a120..41915154bcf9f0f043143f194092a56862b46112 100644 (file)
@@ -6,7 +6,7 @@ weight: 3
 pre: "<b>3. </b>"
 ---
 
-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 <subcommand> --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 <subcommand> --help`.
 
 ### broadcast
 
index ce31c84ba5b0fc56ef934a3049f20be10115462f..103fa10e71f01b635c1f7110994694103017a803 100644 (file)
@@ -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.
index d5a655cea30c4ad3b043c2b702d5ce00f4a4a90d..fff01b7cc97cbc0bd58b36f712742540d9e842c2 100644 (file)
@@ -2,9 +2,9 @@
 
 <center>
     <!-- https://buttons.github.io/ -->
-    <a class="github-button" href="https://github.com/MagicalBitcoin/magical-bitcoin-wallet/subscription" data-icon="octicon-eye" data-show-count="true" aria-label="Watch MagicalBitcoin/magical-bitcoin-wallet on GitHub">Watch</a>
-    <a class="github-button" href="https://github.com/MagicalBitcoin/magical-bitcoin-wallet" data-icon="octicon-star" data-show-count="true" aria-label="Star MagicalBitcoin/magical-bitcoin-wallet on GitHub">Star</a>
-    <a class="github-button" href="https://github.com/MagicalBitcoin/magical-bitcoin-wallet/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork MagicalBitcoin/magical-bitcoin-wallet on GitHub">Fork</a>
+    <a class="github-button" href="https://github.com/bitcoindevkit/bdk/subscription" data-icon="octicon-eye" data-show-count="true" aria-label="Watch bitcoindevkit/bdk on GitHub">Watch</a>
+    <a class="github-button" href="https://github.com/bitcoindevkit/bdk" data-icon="octicon-star" data-show-count="true" aria-label="Star bitcoindevkit/bdk on GitHub">Star</a>
+    <a class="github-button" href="https://github.com/bitcoindevkit/bdk/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork bitcoindevkit/bdk on GitHub">Fork</a>
 </center>
 
 <center>Built with <a href="https://gohugo.io/">Hugo</a></center>
index 3533cc0cc7277987ffb267af829a136fcf7672fd..19d88559d034180646cd4089b09bd9dc4d07ade3 100644 (file)
@@ -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" }
 
index 801d4b117424c4455bf78f3f5a2b7056c15ea7fd..f0c700f08cff346d355c8788caad5abb710fd84b 100644 (file)
@@ -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::*;