Commit Graph

561 Commits (ab4c98678cdd77d1abc4f9539fec40e7563e1852)

Author SHA1 Message Date
rishflab 00e2b257c4 Remove misplaced sync wallet call
3 years ago
Thomas Eizinger 8c83f7e2e1
Upgrade to testcontainers v0.12
3 years ago
Daniel Karzel 2ced9ddba4 Prevent future from being stopped by calling forget on handle
3 years ago
Daniel Karzel 77ec7e502f Distinguish permanent and transient error when watching tx
3 years ago
rishflab b66bb00c77 Remove stale code
3 years ago
rishflab bc1d2bda54 Test URL creation for default electrum HTTP API
3 years ago
rishflab d296c22ecf Log bitcoin deposit address on startup
3 years ago
rishflab 4768c79070 Derive bitcoin private key from seed
3 years ago
Thomas Eizinger a51194b9fa Instantiate electrum client with custom config with 2 retries
3 years ago
rishflab 180e778df9 Allow blockchain calls to fail
3 years ago
rishflab a0ef1f96ec Replace bitcoind wallet with bdk wallet
3 years ago
bors[bot] 4d8e801c1e
Merge #190
3 years ago
bors[bot] 5d215caf35
Merge #188
3 years ago
Franck Royer f36f5acaf1
Remove unnecessary async block
3 years ago
Franck Royer 73c52ffb61
Remove unused structs
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 fb3b2aa546
Remove unnecessary pub qualifier
3 years ago
Franck Royer b4e2e11dde
Remove unnecessary fields
3 years ago
Franck Royer d6effb7d39
Remove unnecessary pub qualifiers
3 years ago
Franck Royer b8a84aa34b
Avoid possible mix up between timelocks
3 years ago
Franck Royer 9a321a4f09
Move transaction types in dedicated modules
3 years ago
Franck Royer 65e0e5b731
Use Remote handle to access ongoing swaps on Alice
3 years ago
bors[bot] a0753e24dc
Merge #189
3 years ago
Franck Royer 5d78556665
Give a more specific name to the CLI binary: `swap-cli`
3 years ago
Franck Royer 8fada42074
Make `config` argument global
3 years ago
Franck Royer 83dcf4ba3c
Add `nectar` binary
3 years ago
Daniel Karzel c166232daf Remove unnecessary mention of Tor in comment
3 years ago
Franck Royer 9ded728879
The first message is actually a quote or rate request
3 years ago
Franck Royer ee43125bdd
Add `nectar` binary
3 years ago
Franck Royer fac5b59d17
Remove unnecessary specification of the types
3 years ago
Franck Royer 7805a6d684
Move cli specific modules under cli folder
3 years ago
Franck Royer 901c9e89c9
No evident added value of having separate `Seed` structs
3 years ago
Franck Royer 7d392c3086
This files contains `Command` and `Arguments` structs
3 years ago
Franck Royer 45dccb8be2
Rename the config struct `Config`
3 years ago
Franck Royer eb39add5ff
Fix typo
3 years ago
Franck Royer 6e6dc320b4
Alice event loop now handles the creation of new swaps
3 years ago
Franck Royer 15eb9a2fe4
Remove punish test
3 years ago
Franck Royer 3bc8b58b6a
Remove Bob restart tests after communication
3 years ago
Franck Royer fd9f633a77
Remove Alice restarts tests
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 60e0b9382c
Introduced from float API for Monero quantities
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
Franck Royer 530b9b2ea8
Remove possible mix up of timelocks when using `State0::new`
3 years ago
Franck Royer f35ed436ce
Allow `EventLoop` to hold a database ready to pass to `alice::Buider`
3 years ago
Franck Royer 39a46baa2c
Preemptively box cancel tx to avoid size difference in enum
3 years ago
Franck Royer 69363e43a3
Preemptively box encrypted signature to avoid size difference in enum
3 years ago
Franck Royer fd084b764d
Move generation of keys inside `State0::new`
3 years ago
Franck Royer 788445964a
Move main.rs to cli.rs to prepare for nectar binary
3 years ago
Franck Royer 311ba74cd6
Remove sell-xmr from CLI
3 years ago
Daniel Karzel 0a0bce1552 Rename temporary wallet to blockchain monitoring wallet
3 years ago
Daniel Karzel 1e29433bd2 Open or create temporary Monero wallet upon wallet initialization
3 years ago
Daniel Karzel dac4443bbd Add functionality to open monero wallet through rpc
3 years ago
Daniel Karzel 62605a318a Add CreateWallet trait to expose create_wallet
3 years ago
Daniel Karzel 53fcd9224c Give finding the refund tx priority over waiting for the punish transaction to be finalized.
3 years ago
Daniel Karzel 86290649e7 work in review comments
3 years ago
Daniel Karzel c930ad84a4 Add --force flag for cancel and refund
3 years ago
Daniel Karzel 02f8eb7f18 Add test for cancel/refund before timelock expired
3 years ago
Daniel Karzel 2d5d70d856 Timeout for Alice waiting for ack for sending transfer proof
3 years ago
Daniel Karzel c9adbde5d5 Add test for Bob's manual cancel and refund
3 years ago
Daniel Karzel ad2aefc2a5 Refund Command
3 years ago
Daniel Karzel 0600a7048e Cancel command
3 years ago
Franck Royer dee8c1e335
Remove scopes
3 years ago
Franck Royer a48823a665
Re-organise Alice state to be more coherent with the msg sequence
3 years ago
Franck Royer eefb1b3b16
Use event_process = false for Bob
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 5a5a1c05f7
Set appropriate name to codec
3 years ago
Franck Royer a11e894b31
Prepend all libp2p protocols with "comit"
3 years ago
Franck Royer cfc5cb5206
Remove dead code and combine swap request & one shot codecs
3 years ago
Franck Royer fc2d8d3861
Rename alice::Message0 to Message0
3 years ago
Franck Royer 88bf080dc0
rename alice::Message0 to Message1
3 years ago
Franck Royer 18f326ddd1
Rename bob::Message1 to Message2
3 years ago
Franck Royer 0d1be52966
Rename alice::Message1 to Message3
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 ecb54958ee
Preemptively Box few messages
3 years ago
Franck Royer 3fa4ffa82c
Implement new behaviour for execution setup
3 years ago
Franck Royer 9ae050abf8
Use correct variable name
3 years ago
Franck Royer c316ea5244
Upgrade toolchain
3 years ago
Franck Royer e82383bcf6
Avoid carrying rng
3 years ago
Philipp Hoenisch 25bf5df122
Merge pull request #172 from comit-network/dead-code
3 years ago
Philipp Hoenisch 8743527df9
Remove dead code
3 years ago
Daniel Karzel b27363e386 Use correct default data directory
3 years ago
Daniel Karzel 5cb4f3c99d rename configuration to config
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 f1c07fbb6d
Remove incorrect todo
3 years ago
Franck Royer c25d5ff07e
Improve network logging
3 years ago
Franck Royer f9f17b0e23
Do not consider transfer proof sent until it's ack'd
3 years ago
Franck Royer b968c98805
remove unnecessary logs
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
Franck Royer 108cc1e6cc
Use trait instead of passing struct
3 years ago
Franck Royer 704a8e7b01
Add swap id to tracing context
3 years ago
Franck Royer b8a9356d1b
Change expiries depending on the test goal
3 years ago
Franck Royer 49b8d19e41
test: Log state on failure
3 years ago
rishflab 0b69573129
Run tests on one thread, increase T1
3 years ago
rishflab 1597f5336b
Restart event loop in tests
3 years ago
rishflab 77fc5743a2
Upgrade tokio to 1.0
3 years ago
Franck Royer 2073e88683
Remove wrapping if `ReadOneError` when unnecessary
3 years ago
Franck Royer 2929a8f101
Use the correct protocol support
3 years ago
Franck Royer b62ef9c2d9
Harmonizing naming
3 years ago
Franck Royer 8fd2620b83
Improve names for messages 4 and 5
3 years ago
Franck Royer 33db688e3a
Bob peer id can be retrieved from the DB
4 years ago
Franck Royer a910bc2046
Box all messages in enum
4 years ago
Franck Royer d2a1937f51
Use `Message4`
4 years ago
Franck Royer 124d6f1ebb
Introduced Message 4 sent by Alice to replace message 2 response
4 years ago
Franck Royer edb93624f3
Introduce one shot code
4 years ago
Franck Royer 9a5e35c1bd
Rename `bob::Message2` to `Message5`
4 years ago
Franck Royer 10eeecfe54
Remove dependency of main.rs on lib.rs
4 years ago
Franck Royer f2a25ee49b
Move definitions out of lib.rs
4 years ago
Franck Royer b88a777bae
Remove dead code
4 years ago
Daniel Karzel 33a9057b1f Move run_until is_target_state comparison functions into testutils
4 years ago
Daniel Karzel 3593f5323a Bob saves lock proof after received so he can resume swap
4 years ago
Daniel Karzel 433704e48c Top to bottom `pub mod` then `mod` then `pub use` then `use` (incl. `use crate` and `use self`)
4 years ago
Daniel Karzel 44c4b5dcea Remove newlines from import statements to avoid problems
4 years ago
bors[bot] 4e858197c9
Merge #149
4 years ago
Franck Royer 8c76abcd37
Remove TODO
4 years ago
Franck Royer 898b8bf8b0
Remove dead code
4 years ago
Franck Royer ae8134f04e
Replace amounts messages with swap res/req
4 years ago
Daniel Karzel 6a75c840b5 Fix Alice redeem scenario
4 years ago
Daniel Karzel 8a7d746e96 Wait for Bob's refund finality
4 years ago
Franck Royer 94045b9a69
Use builder in tests
4 years ago
Franck Royer c44b867d01
Delay the wrapping in Arc
4 years ago
Franck Royer 83b72c0a45
Make `make_init_state` and `init_loop` associated to `alice::SwapFactory`
4 years ago
Franck Royer c11042ff0d
Use `builder` terminology instead of `factory`
4 years ago
Franck Royer 9148af2dbe
`bob::SwapFactory` should be consumed once a swap is returned
4 years ago
Franck Royer 652bfa14a9
Remove unnecessary `pub` qualifiers
4 years ago
Franck Royer b21dc03ed0
`alice::SwapFactory` should be consumed once a swap is returned
4 years ago
Franck Royer 9b32409b8d
Remove unnecessary `allow(clippy)`
4 years ago
Franck Royer 9e3ef7ea24
Remove `StartingBalances` from release code
4 years ago
Franck Royer 181999e04f
Remove unnecessary `alice` qualifiers in `alice::SwapFactor`
4 years ago
Franck Royer 3bc76a91c6
Make `init_state` associated to `bob::SwapFactory`
4 years ago
Franck Royer f0e6e45d56
Remove unecessary `bob` qualifier
4 years ago
Franck Royer dbc633ea06
Remove unecessary `connect` qualifier
4 years ago
Franck Royer e26629b593
Remove unecessary fields from `bob::SwapFactory`
4 years ago
Franck Royer 3c68026cfe
Move init event loop in `bob::SwapFactory`
4 years ago
Franck Royer 96b1b18037
Keep terminology consistent
4 years ago
Daniel Karzel 28429fa9fe Revert log statement
4 years ago
Daniel Karzel 37f619dbfc Move StartingBalances into protocol module
4 years ago
Daniel Karzel 41e335fc2d Error messages instead of unreachable
4 years ago
Daniel Karzel 2dceab28a4 Derive Default
4 years ago
Daniel Karzel acfd43ee79 Rename Test to TestContext and argument to ctx
4 years ago
Daniel Karzel e91987e23f Fix rand import
4 years ago