Commit Graph

89 Commits (c0070f8fa7c0e94692b07d27f7dc95024a0a13b2)

Author SHA1 Message Date
Daniel Karzel c0070f8fa7
Move files from `protocol` to appropriate module
3 years ago
Daniel Karzel 529de8d5fd
ASB aborts if CLI does not lock BTC
3 years ago
Daniel Karzel 01af9a5676
Bitcoin transaction published state
3 years ago
Philipp Hoenisch 316f95c65b
Always log whole causality chain for errors.
3 years ago
Philipp Hoenisch c011e95062
Improve logging by adding details as fields instead of into the msg.
3 years ago
Philipp Hoenisch 1706b36800
Log exchange rate at each state.
3 years ago
Daniel Karzel daa572e5bf
Move recovery commands in dedicated module
3 years ago
Daniel Karzel 4deb96a3c5
ASB manual recovery commands
3 years ago
Thomas Eizinger 5b515d6fb2
Don't qualify with `alice::` if we are within a module of Alice
3 years ago
Thomas Eizinger 6d06db3259
Use macro-based JSON-RPC client
3 years ago
bors[bot] 19766b9759
Merge #405
3 years ago
Daniel Karzel c976358c37
Multiple swaps with the same peer
3 years ago
Daniel Karzel 489696ee08
Swap-id as file name for generated Monero wallet
3 years ago
Thomas Eizinger 24f444b9f7
Race sending transfer proof against cancel timelock
3 years ago
Thomas Eizinger 958e5b12bc
Don't match on expired_timelocks and race it in a select in parallel
3 years ago
Daniel Karzel e6dd194f77
next_state loop always exits in final state
3 years ago
Daniel Karzel bc442bcad3
Await 10 confirmations of lock tx in refund
3 years ago
Daniel Karzel 183e8f02de
Wait for lock tx and send transfer proof in separate state
3 years ago
Daniel Karzel dfd69c9c80
Alice aborts if any timelock expired before locking XMR
3 years ago
Thomas Eizinger e130448200
Make as many fields of Alice's states private as possible
3 years ago
rishflab 86f312e143 Safely abort swap if TxLock is not confirmed in a reasonable time
3 years ago
Thomas Eizinger 01739eddb1
Introduce a more flexible transaction subscription system
3 years ago
Thomas Eizinger c5827f84ca
Refactor recursive function to loop
3 years ago
Daniel Karzel 62079fc342 Punish scenario falls back to refund or fails
3 years ago
Daniel Karzel 396c4177a6 Alice sweeps refunded funds into default wallet
3 years ago
Thomas Eizinger 776a50137d
Use tokio::select macro instead of function
3 years ago
Thomas Eizinger b1affe3ecf
Insert latest state and call run_until only once
3 years ago
Thomas Eizinger 0d8962762a
Use early return to reduce one level of indentation
3 years ago
Thomas Eizinger 05849505b1
Inline `wait_for_bitcoin_refund`
3 years ago
Thomas Eizinger 8c9285f1f9
Inline step function because it has been reduced to a single statement
3 years ago
Thomas Eizinger 75aec95b0c
Introduce monero::TransferRequest
3 years ago
Thomas Eizinger e77f1729b4
Move `extract_monero_private_key` onto TxRefund
3 years ago
Thomas Eizinger a1e065b4e7
Simplify racing cancel timelock against learning enc-sig
3 years ago
bors[bot] 2c385ee7d9
Merge #321
3 years ago
Thomas Eizinger a57f88d1b4
Properly handle concurrent messages to and from peers
3 years ago
Thomas Eizinger 09c41f89c4
Rename ExecutionParams to EnvironmentConfig
3 years ago
Thomas Eizinger bc43ed6ebd
Pass execution params directly into wallet for initialization
3 years ago
Thomas Eizinger 273cf15631
Introduce `Watchable` abstraction for Bitcoin wallet
3 years ago
Thomas Eizinger a0830f099f
Pass relevant execution params into wallet instead of via functions
3 years ago
Thomas Eizinger 84ea092a1b
Remove unnecessary state variables by constructing TXs on demand
3 years ago
rishflab e5c0158597
Greatly reduce load onto the Electrum backend
3 years ago
Thomas Eizinger 6beb732e35
Eliminate `build_bitcoin_punish_transaction`
3 years ago
Thomas Eizinger dd6c66a594
Move completing of Bitcoin redeem tx onto RedeemTx
3 years ago
rishflab 21429f24b2
Inline wait_for_locked_bitcoin() that is only called once
3 years ago
Thomas Eizinger 6d9b21cb47
Change `imports_granularity` to module
3 years ago
Daniel Karzel 2e3c2d8edf Remove Arcs in favour of references
3 years ago
Daniel Karzel d63790c2a6 Remove unnecessary monero wallet trait abstractions
3 years ago
Daniel Karzel 1041212a60 Work in review comments
3 years ago
Daniel Karzel 9f53dab3c6 Harmonize names to make more sense
3 years ago
Thomas Eizinger 8c9b087e39
Unify logging of broadcasted transactions
3 years ago