Commit Graph

256 Commits (daa572e5bf7fd1f42c26adaecff08e0b4989a32a)

Author SHA1 Message Date
Daniel Karzel ea05c306e0 Alice spawns swaps outside the event loop
3 years ago
rishflab 752e5be8f3
Cleanup test logging
3 years ago
rishflab 7cb198aea1 Remove pointless todo
3 years ago
rishflab 9f534996ee Remove unused capability to configure bitcoind docker version tag
3 years ago
rishflab 7b1d901ea0 Fix incorrectly formatted tag
3 years ago
Daniel Karzel be52892e65
Monero wallet should not know about all execution params
3 years ago
Thomas Eizinger 82738b111e
Refactor `monero::Wallet::watch_for_transfer` to not use `backoff`
3 years ago
Thomas Eizinger 37f97ac471
Shorten function name
3 years ago
Thomas Eizinger 4f66269887
Move error message on sync _into_ the function
3 years ago
Thomas Eizinger 5953037b81
Don't repeat the module name within the type
3 years ago
Thomas Eizinger 1822886cd0
Provide stronger isolation of kraken module
3 years ago
Thomas Eizinger 6d9b21cb47
Change `imports_granularity` to module
3 years ago
bors[bot] cba9f119b6
Merge #261
3 years ago
Daniel Karzel d63790c2a6 Remove unnecessary monero wallet trait abstractions
3 years ago
Daniel Karzel 66c8401c95 Sweep all from generated wallet to user wallet
3 years ago
Daniel Karzel 5111a12706 Wallet name constants for the e2e test setup
3 years ago
Daniel Karzel 2bb1c1e177 No prefix for wallets in monero harness
3 years ago
Thomas Eizinger 2440964385
Allow ASB to be configured with max BTC buy amount
3 years ago
Thomas Eizinger ce077a3ff5
Decouple Bob's EventLoop from the builder
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
rishflab a41b255dab Upgrade bitcoin wallet to use BIP84 derivation scheme
3 years ago
bors[bot] 7251588e79
Merge #233
3 years ago
Daniel Karzel bb1537d6f2 Error feedback for the user upon communication errors
3 years ago
Daniel Karzel 019d6c725a Maximum sell amount for ASB that defaults to 0.5 XMR
3 years ago
Daniel Karzel 0945cee459 Remove traits in favour of public functions
3 years ago
Daniel Karzel 578d23d7fc Proper encapsulation of wallet boundaries through private fields
3 years ago
Daniel Karzel 947bcb6192 ASB reloads the default wallet after generate_from_keys atomically
3 years ago
Daniel Karzel 9f1deb9fdc Wrap the Monero wallet client in a Mutex
3 years ago
Thomas Eizinger 729f4f09a8
Remove unnecessary tracing_core dependency
3 years ago
Thomas Eizinger b47b06aa23 Import anyhow::Result across the codebase
3 years ago
Franck Royer b20c16df78 Improving logging on failure
3 years ago
Franck Royer 92b3df4158 Introduce dynamic rates
3 years ago
bors[bot] 0359f8fbc0
Merge #216
3 years ago
Daniel Karzel bdb35c310d To avoid CI failure wait for the balance instead of sleep
3 years ago
Thomas Eizinger 84bc2c82b7
Upgrade to bdk 4.0
3 years ago
Thomas Eizinger 8c83f7e2e1
Upgrade to testcontainers v0.12
3 years ago
rishflab 4768c79070 Derive bitcoin private key from seed
3 years ago
rishflab 180e778df9 Allow blockchain calls to fail
3 years ago
rishflab a0ef1f96ec Replace bitcoind wallet with bdk wallet
3 years ago
Franck Royer 2dbd43e2c0
Only pass btc amount to CLI
3 years ago
Franck Royer b8a84aa34b
Avoid possible mix up between timelocks
3 years ago
Franck Royer 65e0e5b731
Use Remote handle to access ongoing swaps on Alice
3 years ago
Franck Royer 8fada42074
Make `config` argument global
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
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
Franck Royer c316ea5244
Upgrade toolchain
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 108cc1e6cc
Use trait instead of passing struct
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 1597f5336b
Restart event loop in tests
3 years ago
rishflab 77fc5743a2
Upgrade tokio to 1.0
3 years ago
Franck Royer f2a25ee49b
Move definitions out of lib.rs
3 years ago
Daniel Karzel 33a9057b1f Move run_until is_target_state comparison functions into testutils
3 years ago
Daniel Karzel 3593f5323a Bob saves lock proof after received so he can resume swap
3 years ago
Daniel Karzel 433704e48c Top to bottom `pub mod` then `mod` then `pub use` then `use` (incl. `use crate` and `use self`)
3 years ago
Daniel Karzel 6a75c840b5 Fix Alice redeem scenario
3 years ago
Daniel Karzel 8a7d746e96 Wait for Bob's refund finality
3 years ago
Franck Royer 94045b9a69
Use builder in tests
3 years ago
Franck Royer c11042ff0d
Use `builder` terminology instead of `factory`
3 years ago
Franck Royer 9148af2dbe
`bob::SwapFactory` should be consumed once a swap is returned
3 years ago
Franck Royer b21dc03ed0
`alice::SwapFactory` should be consumed once a swap is returned
3 years ago
Franck Royer 9e3ef7ea24
Remove `StartingBalances` from release code
3 years ago
Franck Royer 181999e04f
Remove unnecessary `alice` qualifiers in `alice::SwapFactor`
3 years ago
Franck Royer f0e6e45d56
Remove unecessary `bob` qualifier
3 years ago
Franck Royer e26629b593
Remove unecessary fields from `bob::SwapFactory`
3 years ago
Franck Royer 96b1b18037
Keep terminology consistent
3 years ago
Daniel Karzel 37f619dbfc Move StartingBalances into protocol module
3 years ago
Daniel Karzel acfd43ee79 Rename Test to TestContext and argument to ctx
3 years ago
Daniel Karzel 82974412b2 Remove roles from SwapFactory name as implied by module and cleanup
3 years ago
Daniel Karzel 75f89f3b25 Use Bob swap factory in production
3 years ago
Daniel Karzel 3398ef8236 Use Alice swap factory in production
3 years ago
Daniel Karzel 67e925fe1f Refactor Bob's peer-id and identity to be handled on the outside
3 years ago
Daniel Karzel 0c19af9090 Refactor Alice's peer-id and identity to be handled on the outside
3 years ago
Daniel Karzel 8bf467b550 Make the factory code usable in production
3 years ago
Franck Royer 9a823dca4c
Do not introduced State6
3 years ago
Daniel Karzel 8615aaed6e Make lock-tx id available in redeem/punish state to be able to assert exact fees
3 years ago
Daniel Karzel 317b251302 Re-arrange order of structs/functions in testutils
3 years ago
Daniel Karzel 7832ee94f3 Remove unused code and only expose necessary functionality
3 years ago
Daniel Karzel 8ef8240771 Refactor refund test
3 years ago
Daniel Karzel 55024572ae Refactor punish test and punish assertions
3 years ago
Daniel Karzel 73a2841ec5 Refactor happy path bob restart tests
3 years ago
Daniel Karzel 8a2eb07928 Harmonize names and structure
3 years ago
Daniel Karzel bede1c13dd Refactor Bob's side (happy path + alice restart)
3 years ago
Daniel Karzel 59f9a1c286 Fix usage of StartingBalance in Alice and Bob
3 years ago
Daniel Karzel 87edec0d50 Rename Alice's factory to harness and include redeem assertions
3 years ago
Daniel Karzel 152c8d7eba Refactor Alice restart test by introducing factory for creating Alices
3 years ago
rishflab 537d05e01e Add reusable test function
3 years ago
rishflab f5cfe014be Fix imports
3 years ago
Daniel Karzel 664958939d Create network::Seed from swap::Seed instead of abstracting over byte array
3 years ago