Commit Graph

35 Commits (af0c7c5df81053b52ab41f8c2a2ec6cbb5b6ee1b)

Author SHA1 Message Date
wowario af0c7c5df8
wowify
3 years ago
Daniel Karzel c0070f8fa7
Move files from `protocol` to appropriate module
3 years ago
Philipp Hoenisch 1706b36800
Log exchange rate at each state.
3 years ago
Thomas Eizinger e266fb07ef
Don't stutter
3 years ago
Daniel Karzel c976358c37
Multiple swaps with the same peer
3 years ago
Thomas Eizinger b9d8cbeaa2
Rename testutils to harness
3 years ago
Daniel Karzel d85c0ce57c Re-introduce punish test
3 years ago
Franck Royer 15eb9a2fe4
Remove punish test
3 years ago
Daniel Karzel c9adbde5d5 Add test for Bob's manual cancel and refund
3 years ago
Franck Royer c316ea5244
Upgrade toolchain
3 years ago
Franck Royer 108cc1e6cc
Use trait instead of passing struct
3 years ago
Franck Royer b8a9356d1b
Change expiries depending on the test goal
3 years ago
rishflab 1597f5336b
Restart event loop in tests
3 years ago
Daniel Karzel 33a9057b1f Move run_until is_target_state comparison functions into testutils
3 years ago
Daniel Karzel 433704e48c Top to bottom `pub mod` then `mod` then `pub use` then `use` (incl. `use crate` and `use self`)
3 years ago
Franck Royer b21dc03ed0
`alice::SwapFactory` should be consumed once a swap is returned
3 years ago
Daniel Karzel acfd43ee79 Rename Test to TestContext and argument to ctx
3 years ago
Daniel Karzel 3398ef8236 Use Alice swap factory in production
3 years ago
Daniel Karzel 8bf467b550 Make the factory code usable in production
3 years ago
Daniel Karzel 8615aaed6e Make lock-tx id available in redeem/punish state to be able to assert exact fees
3 years ago
Daniel Karzel 55024572ae Refactor punish test and punish assertions
3 years ago
Daniel Karzel 664958939d Create network::Seed from swap::Seed instead of abstracting over byte array
3 years ago
Daniel Karzel 0a21040e08 Deterministic peer id from seed for alice
3 years ago
rishflab dcea54dbf1 Move protocol parent states into appropriate module
3 years ago
rishflab c900d12593 Merge xmr_btc crate
3 years ago
Daniel Karzel 487b880371 Cleanup unused config param that was accidentally introduced
3 years ago
Daniel Karzel e031681369 Add minimum monero confirmations to config use it for Bob
3 years ago
Franck Royer a31db63e54
Improve state names and display
3 years ago
Franck Royer e366d3a73b
Join all futures to avoid hanging tests
3 years ago
Franck Royer 1a4bd0e2b4
Bob refunds swap after restart that requires communication
3 years ago
Franck Royer 638143a10d
Replace hard coded port by dynamic available one
3 years ago
Daniel Karzel 7cae6a9e4d
Add Bob restart test
3 years ago
Daniel Karzel 91d4d5da25
Cleanup swap execution to not return EventLoopHandle, refactor both_refund test
3 years ago
Daniel Karzel 8c929564ef
Refactor container initialization
3 years ago
Daniel Karzel 4143394767
Add recovery function for Alice
3 years ago