Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-time Sync: Add base methods and traits #509

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0d36a43
feat: add tonic and prost
hydra-yse Sep 28, 2024
4f8cfca
feat: add basic interface and trait
hydra-yse Sep 28, 2024
1d271ba
feat: add necessary fields to sync data
hydra-yse Sep 28, 2024
44a7717
feat: add build step to CI
hydra-yse Sep 28, 2024
3f0a51c
fix: generated proto formatting
hydra-yse Sep 28, 2024
759133e
fix: reflect changes from breez/data-sync@9557187
hydra-yse Sep 29, 2024
c21003d
feat: add connect and disconnect methods
hydra-yse Sep 30, 2024
c785664
feat: add persister and first method definitions
hydra-yse Sep 30, 2024
6236efd
feat: add encryption/decryption logic
hydra-yse Sep 30, 2024
e0db1af
feat: add real-time stream and listen
hydra-yse Oct 2, 2024
8b4f1fd
feat: add `apply_record`
hydra-yse Oct 4, 2024
6073d10
fix: remove `ClaimDetails` and `LockupDetails`
hydra-yse Oct 1, 2024
be5ce58
fix: switch from boltz `SwapTree` to `InternalSwapTree`
hydra-yse Oct 1, 2024
7fcf9f3
feat: add `collect_records` method
hydra-yse Oct 12, 2024
f6d3af7
feat: complete `apply_record` method
hydra-yse Oct 13, 2024
66121c9
feat: integrate signer changes
hydra-yse Oct 13, 2024
7283d3a
fix: rename `to_swap` to `into_swap` (fix clippy)
hydra-yse Oct 13, 2024
86cec0f
fix: remove Clone derive from SyncData
hydra-yse Oct 13, 2024
8acd569
feat: add `cleanup` method
hydra-yse Oct 13, 2024
df04c5c
fix: rename `SyncModule` to `SyncService`
hydra-yse Oct 13, 2024
d30beea
feat: integrate with SDK
hydra-yse Oct 13, 2024
e051b11
feat: add trait impls for SyncData and Swaps
hydra-yse Oct 14, 2024
62f20eb
feat: add service hook for send swaps
hydra-yse Oct 14, 2024
68d3e1d
fix (signer): use pubkey bytes for encryption
hydra-yse Oct 17, 2024
52fe06c
fix (persister): initialize `latestRecordId` to 0 when it's not present
hydra-yse Oct 17, 2024
c0912b2
fix (sync): add better debugging
hydra-yse Oct 17, 2024
3175bfc
fix (sync): resolve listener deadlock and ensure client is cloned
hydra-yse Oct 17, 2024
adf30df
fix (sync): ensure `get_changes_since` updates local tip
hydra-yse Oct 17, 2024
9063fef
feat: reflect changes from breez/data-sync@fcc1c0a144944e33fe1c54d94a…
hydra-yse Oct 17, 2024
6761cbf
fix (sync): revert changes from `Change` stream
hydra-yse Oct 17, 2024
cf426bb
feat (sync): add `sent` field to avoid record re-insertion
hydra-yse Oct 19, 2024
1c8a909
fix: add `payment_hash` field to sync data
hydra-yse Oct 21, 2024
c520aba
fix: reflect changes from breez/data-sync@c358836ec6cf
hydra-yse Oct 21, 2024
ecb04da
fix: address review changes
hydra-yse Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,41 @@ jobs:
cd ../cli
cargo clippy -- -D warnings

build:
name: Cargo Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
workspaces: |
lib -> target
cache-on-failure: "true"

- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- run: cargo build
working-directory: lib

- name: Check git status
env:
GIT_PAGER: cat
run: |
status=$(git status --porcelain)
if [[ -n "$status" ]]; then
echo "Git status has changes"
echo "$status"
git diff
exit 1
else
echo "No changes in git status"
fi

tests:
name: Test sdk-core
runs-on: ubuntu-latest
Expand Down Expand Up @@ -341,4 +376,4 @@ jobs:
rm Cargo.lock
cargo update --package secp256k1-zkp

cargo clippy -- -D warnings
cargo clippy -- -D warnings
Loading
Loading