Commit Graph

64 Commits (cde3f0f74ad7b500db607057238d68b182d69a04)

Author SHA1 Message Date
Thomas Eizinger cde3f0f74a
Remove connection handling from swap execution
3 years ago
Thomas Eizinger 804b34f6b0
Listen on all swarm events instead of just behaviour events
3 years ago
Thomas Eizinger 2200fce3f3
Pass Swarm into EventLoop
3 years ago
Thomas Eizinger 1de0b39b32
Unify encrypted-signature protocol to a single one
3 years ago
Thomas Eizinger 9979cc9f1f
Unify transfer-proof protocol to a single one
3 years ago
Thomas Eizinger 9d0b9abde0
Introduce helper function for mapping RequestResponseEvent
3 years ago
Thomas Eizinger d682433ec9
Move `EventLoopHandle` next to its impl block
3 years ago
Thomas Eizinger 575893fb51
Use domain types in fn signature instead of messages
3 years ago
bors[bot] 2c385ee7d9
Merge #321
3 years ago
Thomas Eizinger e54d26b26c
Improve log messages by including PeerId
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
Daniel Karzel ea05c306e0 Alice spawns swaps outside the event loop
3 years ago
Thomas Eizinger b178e95f95
Redo layout of eventloop module
3 years ago
Thomas Eizinger 1822886cd0
Provide stronger isolation of kraken module
3 years ago
Thomas Eizinger 601bf07255
Introduce `quote` protocol and display it to the user before they fund
3 years ago
Thomas Eizinger bc176bc4fb
Minor import optimizations
3 years ago
Thomas Eizinger 6d9b21cb47
Change `imports_granularity` to module
3 years ago
Thomas Eizinger 7042ed9441
Replace quote with spot-price protocol
3 years ago
Thomas Eizinger 2440964385
Allow ASB to be configured with max BTC buy amount
3 years ago
Thomas Eizinger 54bc91581f
Don't unnecessarily create async blocks
3 years ago
Thomas Eizinger a4c25080b6
Merge network::Seed into crate::Seed
3 years ago
Daniel Karzel 1b167f3eb6 Cleanup swap initialization for Alice and Bob
3 years ago
Daniel Karzel 8c40ee1da4 Change anyhow! to bail! in error scenarios
3 years ago
Daniel Karzel 019d6c725a Maximum sell amount for ASB that defaults to 0.5 XMR
3 years ago
Daniel Karzel cad6a1c3a7 ABS only sends quote response if sufficient XMR balance
3 years ago
Thomas Eizinger a8bfc1d686 Make LatestRate::Error require std::error::Error trait bound
3 years ago
Franck Royer 519d1a5701 Log rate and amounts for Alice when doing execution setup
3 years ago
Franck Royer 644f4c1732 Bubble up ws error to consumer
3 years ago
Franck Royer 92b3df4158 Introduce dynamic rates
3 years ago
Daniel Karzel 2ced9ddba4 Prevent future from being stopped by calling forget on handle
3 years ago
bors[bot] 4d8e801c1e
Merge #190
3 years ago
Franck Royer f36f5acaf1
Remove unnecessary async block
3 years ago
Franck Royer 2dbd43e2c0
Only pass btc amount to CLI
3 years ago
Franck Royer 144da75270
Remove redundant data
3 years ago
Franck Royer 65e0e5b731
Use Remote handle to access ongoing swaps on Alice
3 years ago
Franck Royer 9ded728879
The first message is actually a quote or rate request
3 years ago
Franck Royer 6e6dc320b4
Alice event loop now handles the creation of new swaps
3 years ago
Franck Royer bfc19d5628
Remove acknowledgements processing
3 years ago
Franck Royer cc8b855117
Make it possible to clone a handle
3 years ago
Franck Royer 1b2be804ed
Remove unnecessary channels
3 years ago
Franck Royer f5ca5faabf
Process execution setup failure similarly to other failures
3 years ago
Franck Royer 4ade5df0e5
Remove unnecessary impl block
3 years ago
Franck Royer b5b990257a
Move `Behaviour` in dedicated module
3 years ago
Franck Royer 87be9aeb2a
Prepare separation of event loop initialisation to swap initialisation
3 years ago
Daniel Karzel 2d5d70d856 Timeout for Alice waiting for ack for sending transfer proof
3 years ago
Franck Royer a7b89e2fe4
Use event_process = false for Alice
3 years ago
Franck Royer 554ae6c00e
Remove Request Response types
3 years ago
Franck Royer cfc5cb5206
Remove dead code and combine swap request & one shot codecs
3 years ago