mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-29 03:44:27 +01:00
* Add SDK global logger * Add bindings * Fix path to internal uniffi log * Exclude "set_log_stream" from generated RN methods * Move logger-specific structs to a separate module * Delegate init_logging to method in logger.rs * Rename uniffi BindingLogger to UniffiBindingLogger * Add set_log_stream for dart bindings * Add SDK logger to Dart bindings * Rename dart binding logger to DartBindingLogger * Add rustdocs * RN bindings: Add manual handling for setLogStream() * Re-generate dart bindings * Re-generate RN bindings * Remove LOG_INIT cell * Set global maximum log level once on initialization Return a LiquidSdkError::Generic instead of Anyhow error when initializing log stream on Dart bindings * Do not panic when initializing binding loggers * Rename LogStream to Logger --------- Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
27 lines
572 B
Markdown
27 lines
572 B
Markdown
# breez-liquid-sdk-cli
|
|
|
|
## Setup
|
|
|
|
You'll need a Testnet LN node to test the sending and receiving operations. A simple solution is using [Alby's testnet nodes](https://thunderhub.regtest.getalby.com). Read more about Alby's test setup [here](https://github.com/getAlby/lightning-browser-extension/wiki/Test-setup).
|
|
|
|
## Commands
|
|
|
|
Start the CLI with
|
|
|
|
```bash
|
|
cargo run
|
|
```
|
|
|
|
To set a specific network, use one of
|
|
|
|
```bash
|
|
cargo run -- --network mainnet
|
|
cargo run -- --network testnet
|
|
```
|
|
|
|
To specify a custom data directory, use
|
|
|
|
```bash
|
|
cargo run -- --data-dir temp-dir
|
|
```
|