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

Feat/tests for atomic swap #72

Merged
merged 23 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fe4b1ca
feat: add tests for atomic swap
DhananjayPurohit Jul 5, 2024
cdf45f3
fix: assertion for coin lock error
DhananjayPurohit Jul 9, 2024
a3a6412
fix: test for atomic swap with timeout
DhananjayPurohit Jul 9, 2024
f206c1f
feat: add test for stealing coin
DhananjayPurohit Jul 15, 2024
77d729b
fix: merge conflicts
DhananjayPurohit Jul 15, 2024
18728e4
fix: assert errors
DhananjayPurohit Jul 15, 2024
1888cfc
fix: typo error
DhananjayPurohit Jul 15, 2024
7a0c426
fix: assertion in swap timeout test
DhananjayPurohit Jul 16, 2024
731ed99
fix: batch lock assertion
DhananjayPurohit Jul 16, 2024
dedf07d
fix: assert values for batch lock
DhananjayPurohit Jul 16, 2024
379969f
fix: batch timeout expired assertion
DhananjayPurohit Jul 16, 2024
5c343fd
debug: transferReceive with batch true
DhananjayPurohit Jul 16, 2024
7e1100c
debug: atomic swap
DhananjayPurohit Jul 16, 2024
8ba7bfe
Add lightning latch functions to nodeJS client
ssantos21 Jul 16, 2024
af387e1
debug: batch timeout
DhananjayPurohit Jul 16, 2024
535d4e4
Merge branch 'dev' of https://github.com/commerceblock/mercurylayer i…
DhananjayPurohit Jul 16, 2024
6ceb51b
fix: increase sleep for batch timeout expiry
DhananjayPurohit Jul 16, 2024
1894e7f
fix: merge conflicts
DhananjayPurohit Jul 16, 2024
7da53c0
fix: batch timeout expiry assertion
DhananjayPurohit Jul 17, 2024
202feb6
chore: refactor atomic swap tests
DhananjayPurohit Jul 17, 2024
0a457fe
fix: export error
DhananjayPurohit Jul 17, 2024
a9818f4
fix: import errors
DhananjayPurohit Jul 17, 2024
7fb88eb
fix: sqlite import error
DhananjayPurohit Jul 17, 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
9 changes: 2 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ jobs:
echo "Container ID: $container_id"
docker logs $container_id
docker exec $container_id \
curl -X POST http://0.0.0.0:8000/deposit/init/pod \
-H "Content-Type: application/json" \
-d '{
"auth_key": "f461775606ffc86e3f6e3115ff425d371b0f68cc59ad8cf71375c0e08c2ee8e9",
"token_id": "616f505d-b94c-45cf-b251-833e4fa14fa1",
"signed_token_id": "7401ac1f792f56d5357997f9846b5045656758f4afece4c51b73472bd338e97da3d167733502cf62d77c1169bd89bfaa0c9c5fcc26d75190e7a3a3fd2f83ae0a"
}'
curl http://0.0.0.0:8000/info/config
- name: Get Public Key
run: |
docker exec $(docker ps -qf "name=enclave") \
Expand Down Expand Up @@ -112,6 +106,7 @@ jobs:
run: |
cd clients/apps/nodejs
node test_basic_workflow2.js
node test_atomic_swap.js
- name: Tear Down
run: |
docker-compose -f docker-compose-test.yml down
Loading
Loading