xmr-btc-swap/swap/tests
Daniel Karzel 818147a629
swap_setup instead of spot_price and execution_setup
Having `spot_price` and `execution_setup` as separate protocols did not bring any advantages, but was problematic because we had to ensure that `execution_setup` would be triggered after `spot_price`. Because of this dependency it is better to combine the protocols into one.

Combining the protocols also allows a refactoring to get rid of the `libp2p-async-await` dependency.

Alice always listens for the `swap_setup` protocol. When Bob opens a substream on that protocol the spot price is communicated, and then all execution setup messages (swap-id and signature exchange).
2021-06-28 10:04:07 +10:00
..
harness swap_setup instead of spot_price and execution_setup 2021-06-28 10:04:07 +10:00
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired_force.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_and_bob_refund_using_cancel_and_refund_command.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_manually_punishes_after_bob_dead.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_manually_redeems_after_enc_sig_learned.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_punishes_after_restart_bob_dead.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
alice_refunds_after_restart_bob_refunded.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
concurrent_bobs_after_xmr_lock_proof_sent.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
concurrent_bobs_before_xmr_lock_proof_sent.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
ensure_same_swap_id.rs Don't stutter 2021-04-26 12:45:39 +10:00
happy_path_restart_alice_after_xmr_locked.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
happy_path_restart_bob_after_xmr_locked.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
happy_path_restart_bob_before_xmr_locked.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
happy_path.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00
punish.rs Log exchange rate at each state. 2021-05-11 15:27:49 +10:00