-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extract LnUrlError * Extract sdk-lnurl/auth and sdk-utils * Cargo fmt * Create lnurl module * Consolidate sdk-utils as module in sdk-lnurl * Rename sdk-lnurl workspace member to sdk-common * Move invoice module into sdk-common * Move input_parser module into sdk-common * Move pay module into sdk-common/lnurl * Move withdraw module into sdk-common/lnurl * Move auth structs into lnurl/auth/model * Revert test methods to crate visibility * Re-enable test-utils with FRB v1 workaround * Fix tests, clippy * Fix clippy for tests * Re-generate RN bindings * Fix tests, clippy, FRB * Revert "Fix tests, clippy, FRB" This reverts commit 1964f22. * Consolidate pay/withdraw request data structs * Move LnUrlPayError to sdk-common * Make lnurl-pay model public * Re-introduce payment in lnurl-pay result * Move lnurl-pay tests from sdk-common to SDK * Move LNURL-withdraw request, error into sdk-common * Re-generate RN bindings * Potential mockito server fix * Move test_utils.rs in inner module of lib.rs * Fix dart bridge mapping * Fix cargo clippy * Move UDL segments to minimize diff * Remove unused LnUrlPayResult * Potential fix for golang tests * Potential fix for golang tests v2 * Move LnUrlError conversion to lnurl/error.rs * Rename InputType::LnUrlEndpointError back to LnUrlError * Fix tests * Remove Wrapped prefix from LnUrlPaySuccessData, LnUrlPayResult * LNURL-pay: move non-E2E tests to sdk-common * LNURL-withdraw: move non-E2E tests to sdk-common * LNURL-withdraw: move remaining tests to sdk-common (E2E tests, but only cover first portion of the flow, without payment) * fix mirroring definitions * remove test attribute * Don't lint test_utils * run cargo fmt --------- Co-authored-by: Roei Erez <roeierez@gmail.com>
- Loading branch information
Showing
37 changed files
with
2,137 additions
and
1,614 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "sdk-common" | ||
edition = "2021" | ||
version.workspace = true | ||
|
||
[dependencies] | ||
aes = { workspace = true } | ||
anyhow = { workspace = true } | ||
base64 = { workspace = true } | ||
bip21 = "0.2" | ||
bitcoin = { workspace = true } | ||
cbc = { version = "0.1", features = ["std"] } | ||
hex = { workspace = true } | ||
lightning = { workspace = true } | ||
lightning-invoice = { workspace = true } | ||
log = { workspace = true } | ||
querystring = "1" | ||
regex = { workspace = true } | ||
reqwest = { workspace = true } | ||
rusqlite = { workspace = true } | ||
serde = { workspace = true } | ||
serde_json = { workspace = true } | ||
strum_macros = { workspace = true } | ||
thiserror = { workspace = true } | ||
|
||
[dev-dependencies] | ||
bitcoin = { workspace = true, features = ["rand"] } | ||
mockito = { workspace = true } | ||
tokio = { workspace = true } | ||
once_cell = { workspace = true } |
Oops, something went wrong.