Skip to content

Commit

Permalink
Add uniffi bindings (#59)
Browse files Browse the repository at this point in the history
* Rename CLI and lib projects

* Place lib in a workspace

* Add uniffi package

* Bump uniffi version

* Add uniffi.toml config file to customize lib names

* Add makefile for kotlin, python, swift bindings

* Add missing PaymentError variant

* Rename BoltzGeneric error variant
  • Loading branch information
ok300 authored Apr 15, 2024
1 parent a405fa2 commit e2ace48
Show file tree
Hide file tree
Showing 22 changed files with 875 additions and 159 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Breez-SDK Liquid
# Liquid Swap SDK

- `lib`: [lib/README.md](lib/README.md)
- `lib`: [lib/README.md](lib/ls-sdk-core/README.md)
- `cli`: [cli/README.md](cli/README.md)

## Roadmap
Expand Down
144 changes: 72 additions & 72 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "breez-sdk-liquid-cli"
name = "ls-sdk-cli"
edition = "2021"
version = "0.0.1"

Expand All @@ -8,10 +8,10 @@ version = "0.0.1"
[dependencies]
anyhow = "1.0.80"
bip39 = "2.0.0"
breez-sdk-liquid = { path = "../lib" }
clap = { version = "4.5.1", features = ["derive"] }
env_logger = "0.11"
log = "0.4.20"
ls-sdk = { path = "../lib/ls-sdk-core" }
qr2term = "0.3.1"
rustyline = { version = "13.0.0", features = ["derive"] }
serde = { version = "1.0.197", features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ use std::time::Duration;

use anyhow::Result;
use clap::{arg, Parser};
use ls_sdk::{ReceivePaymentRequest, Wallet};
use rustyline::highlight::Highlighter;
use rustyline::history::DefaultHistory;
use rustyline::Editor;
use rustyline::{hint::HistoryHinter, Completer, Helper, Hinter, Validator};

use breez_sdk_liquid::{ReceivePaymentRequest, Wallet};
use serde::Serialize;
use serde_json::to_string_pretty;

Expand Down
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mod persist;
use std::{fs, path::PathBuf};

use anyhow::{anyhow, Result};
use breez_sdk_liquid::{Network, Wallet};
use clap::Parser;
use commands::{handle_command, CliHelper, Command, CommandResult};
use log::{error, info};
use ls_sdk::{Network, Wallet};
use persist::CliPersistence;
use rustyline::{error::ReadlineError, hint::HistoryHinter, Editor};

Expand Down
Loading

0 comments on commit e2ace48

Please sign in to comment.