* feat(rt-sync): add persistency layer (#555)
* feat(rt-sync): add pull and merge (#556)
* feat(rt-sync): add push logic and run method (#568)
* feat(rt-sync): integrate rt-sync with the sdk
fix: add formatting command to build
feat: add secondary trigger to sync
deps: add tonic tls-webpki-roots
feat: prevent double claiming on status stream handlers
fix: add tx commit to chain swap update (#588)
fix: ensure we pull records before prepare_send
fix: fmt and tests
* fix: set initial pulled state to `Recoverable`
* feat(rt-sync): add `last_derivation_index` to sync service
* Single chain source
* Handle Recoverable state
* fix(rt-sync): chain recovery integration (#590)
Co-authored-by: yse <hydra_yse@proton.me>
* feat(rt-sync): add `pair_fees_json`
* fix(rt-sync): clean already persisted incoming records
* feat: cache wallet info (#591)
* log: add status-stream logging for non-local swaps
* Sync improvements (#598)
* Full sync on new Bitcoin block
* Track the last unconfirmed refund tx
* Trigger synced event on partial sync
* fix: remove `REPLACE` clause from swap insert/update
* fix(rt-sync): update chain swap payer/receiver amount (#604)
* Fix syncing last derivation index
* fix: update bindings and lockfile
* remove logs
* fix(rt-sync): avoid reuse of derivation index update logic (#608)
* Add 5 index buffer to full scan
* Fix storing claim_address (#609)
* Filter incoming MRH txs by swap timestamp
* fix liquid panding timestamp
* persist tx data timestamp
* Update unconfirmed transactions
* feat: add API key (#618)
* Use configured lazy connect channel in sync service
* fix: set lower-case header (#624)
* fix error message
* Store & Sync LNURL info (#617)
* Persist and decrypt LNURL info
* Update Notification Plugin
* Sync payment details
* Update list payments to include chain swaps with only user lockup (#620)
* Update payments query to include chain swaps without txs
* Allow emitting a payment event without tx_id
* fix: bindings
---------
Co-authored-by: Ross Savage <hello@satimoto.com>
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
Co-authored-by: Roei Erez <roeierez@gmail.com>
* Add extend_incomplete_failed_send_swaps() on first sync
* Find lockup txs
* Send Swaps: find refund txs
* Simplify recover_send_swap_tx_ids, add recover_receive_swap_tx_ids
* recover_receive_swap_tx_ids: batch tx lookups
* Move onchain-restore methods to own module
* Store restored data in own struct
* Fix CI: bump pubspec.lock dependencies
* LiquidChainService: add get_scripts_history_electrum()
* restore_onchain: rely on batch call to fetch histories of all known swaps
* Rename get_scripts_history_electrum
* Rename restore_onchain.rs, flatten onchain inner module
* Rename ImmutableDb to SwapsList
* Simplify logic in restore.rs
* restore.rs: Add chain swap support, simplify logic
* restore.rs: add logging when script retrieval fails
* restore.rs: remove unused field create_resp
* restore.rs: rename SwapCompositeData to SwapHistory
* restore.rs: allow unused fields in simulated immutable data
* restore.rs: cargo fmt
* Cargo fmt
* Fix failing test
* When fetching script history, also fetch if tx is confirmed or not
* Recover send swaps: fetch claim tx IDs
* Recover onchain data: persist reconstructed swaps
* Simplify recover_from_onchain: store swap txs per swap ID
* Receive swaps: do not treat lockup/claim txs as pair
* Clarify meaning of partial swap state
* Cargo clippy
* Receive Chain Swap: distinguish BTC lockup from claim/refund tx
* Send Chain Swap: distinguish BTC lockup/claim by vout, not by history order
* get_partial_state: default to Created when state is unclear
* Receive Chain Swaps: differentiate BTC refund from BTC claim txs
* Send Swaps: clarify reason for defaulting to TimedOut on no lockup
* Chain swaps: add docs for meaning of server, user txs
* Recover Receive swaps: cover the case when only the lockup is available
* HistoryTxId: store confirmation block height
* Receive swaps: differentiate claim tx from swapper refund tx
* recover_from_onchain: extract immutable DB (swaps list) as arg
* Rename get_partial_state to derive_partial_state
* Restore: remove validation steps
* Restore chain swaps: treat as Complete only when claim is confirmed
* Fix clippy warnings
* Remove restore call from sync call
* Generate Dart bindings
* flutter_rust_bridge has relative path issues with this new approach introduced in 2.0.0-dev.38, we'll be using the default rust_output path until it's addressed.
* 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>
* Rename global instance in bindings.rs
* Rename wallet to SDK or LiquidSdk
* Rename BindingWallet to BindingLiquidSdk
* Rename wallet to lwk_wollet, signer to lwk_signer
* Rename LsSdkError to LiquidSdkError
* Cargo fmt
* Rename LsSdkError in RN generator
---------
Co-authored-by: Ross Savage <hello@satimoto.com>