Commit Graph

79 Commits (ac0b0150e6a33f4213920c036e70f642f666ed8b)

Author SHA1 Message Date
Daniel Karzel 89b3d07eba
Network protocol tests for spot_price behaviour
3 years ago
Daniel Karzel 5aac76598d
Decouple ASB/CLI Errors from Error sent over wire
3 years ago
Thomas Eizinger 22bdc08c83
Get rid of Bob's swap Builder
3 years ago
Thomas Eizinger e266fb07ef
Don't stutter
3 years ago
Thomas Eizinger 7adeaae12d
Be smart about how we import Config
3 years ago
Thomas Eizinger be5bf01ed4
Don't overqualify types that are already imported
3 years ago
Thomas Eizinger 325fcbdb8c
Introduce protocol::bob::behaviour to mimic structure from alice module
3 years ago
Thomas Eizinger b417950f99
Improve error reporting of failed protocols
3 years ago
Thomas Eizinger f0f7288bb6
Introduce a `redial::Behaviour`
3 years ago
Thomas Eizinger 1c47b32681
Use bmrng to model communicaton of Bob's EventLoop with the handle
3 years ago
Thomas Eizinger 0ef9d97679
Remove delegation functions in favor of public fields
3 years ago
Thomas Eizinger b1d0ae8db7
Remove dead code
3 years ago
Thomas Eizinger 11b45cd8c0
Move messages into `protocol` module
3 years ago
Thomas Eizinger cde3f0f74a
Remove connection handling from swap execution
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 09c41f89c4
Rename ExecutionParams to EnvironmentConfig
3 years ago
Thomas Eizinger bc43ed6ebd
Pass execution params directly into wallet for initialization
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 2c8200621d
Move `pub use` into pub use block
3 years ago
bors[bot] d1363d130c
Merge #265
3 years ago
Daniel Karzel 66c8401c95 Sweep all from generated wallet to user wallet
3 years ago
Thomas Eizinger 7042ed9441
Replace quote with spot-price protocol
3 years ago
Thomas Eizinger ce077a3ff5
Decouple Bob's EventLoop from the builder
3 years ago
Thomas Eizinger a4c25080b6
Merge network::Seed into crate::Seed
3 years ago
Thomas Eizinger 089ac0806e
Simplify constructor of Bob's EventLoop
3 years ago
Daniel Karzel 1b167f3eb6 Cleanup swap initialization for Alice and Bob
3 years ago
Thomas Eizinger 7387884e6d
Move log messages to the appropriate abstraction layer
3 years ago
Daniel Karzel bb1537d6f2 Error feedback for the user upon communication errors
3 years ago
Daniel Karzel e66e84085b Rename Bob's Behavior Failure to CommunicationError
3 years ago
Franck Royer 2dbd43e2c0
Only pass btc amount to CLI
3 years ago
bors[bot] a0753e24dc
Merge #189
3 years ago
Franck Royer 8fada42074
Make `config` argument global
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
Daniel Karzel ad2aefc2a5 Refund Command
3 years ago
Daniel Karzel 0600a7048e Cancel command
3 years ago
Franck Royer eefb1b3b16
Use event_process = false for Bob
3 years ago
Franck Royer 18f326ddd1
Rename bob::Message1 to Message2
3 years ago
Franck Royer e74efd38b5
Rename bob::Message2 to Message4
3 years ago
Franck Royer 081237bb6f
Remove unused behaviours
3 years ago
Franck Royer 3fa4ffa82c
Implement new behaviour for execution setup
3 years ago
Daniel Karzel 89b3775e05 Rename config to execution_params
3 years ago
Daniel Karzel 802dc61e7e Configuration for RPC urls and Bitcoin wallet name
3 years ago
Franck Royer cc76b201b5
Do not consider encrypted signature sent until it's ack'd
3 years ago
Franck Royer 5af3532cbf
Fix log messages
3 years ago
rishflab 77fc5743a2
Upgrade tokio to 1.0
3 years ago