Commit Graph

1027 Commits (master)

Author SHA1 Message Date
Thomas Eizinger c01cccb288
Use `tracing-log` feature flag instead of manual initialization
3 years ago
Thomas Eizinger c5827f84ca
Refactor recursive function to loop
3 years ago
Thomas Eizinger fc175a3f53
De-couple state from Monero wallet
3 years ago
Thomas Eizinger 42b6368298
Use full-qualified path for tracing macros
3 years ago
Thomas Eizinger 5616683d7d
Monero confirmations are a u64
3 years ago
Thomas Eizinger 1b63d5486d
Move tick to the beginning of the loop
3 years ago
Thomas Eizinger 393ed45b9e
Say who we are in the `--help` message
3 years ago
Thomas Eizinger 39b27e37d8
Delete empty file
3 years ago
rishflab a3e85526c6 Specify LANG env variable for monero wallet rpc for unix systems
3 years ago
rishflab bc902ea63a Use language agnostic heuristic to check if monero_wallet_rpc is ready
3 years ago
bors[bot] 7397cb5990
Merge #359
3 years ago
bors[bot] 9c9b1e4f0c
Merge #370
3 years ago
Thomas Eizinger 1057d115d1
Re-order bob::event_loop based on importance
3 years ago
Thomas Eizinger 638a169a04
Buffer transfer proof if we are not connected to Bob
3 years ago
Thomas Eizinger cde3f0f74a
Remove connection handling from swap execution
3 years ago
Daniel Karzel 1e2a3c2d32 No Bitcoin deposit for Alice
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 2c9ab4f6eb
Improve code structure and error messages for running swaps
3 years ago
Thomas Eizinger 0c0a322a8f
Rename module to better represent what it contains
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 73f30320a6
Seed should neither be Clone nor Copy
3 years ago
Thomas Eizinger 96b2a76971
Take advantage of upgraded electrum-client dependency
3 years ago
dependabot[bot] 7f6299075c
Bump bdk from 0.4.0 to 0.5.0
3 years ago
bors[bot] 968502827a
Merge #339
3 years ago
bors[bot] 097197783c
Merge #351
3 years ago
bors[bot] 189a13c063
Merge #319
3 years ago
Daniel Karzel 62079fc342 Punish scenario falls back to refund or fails
3 years ago
Thomas Eizinger a228349d8b
Bump dependency versions
3 years ago
Daniel Karzel 668d34080d Show the actual BTC amount and fee to be swapped
3 years ago
Thomas Eizinger f49f8977d3
Remove dead code
3 years ago
Daniel Karzel 396c4177a6 Alice sweeps refunded funds into default wallet
3 years ago
Thomas Eizinger 16dfea035b
Simplify code within BobState::XmrLockProofReceived
3 years ago
Thomas Eizinger 338f4b82e5
Introduce dedicated bob::State6 for cancelling
3 years ago
Thomas Eizinger c32ef92cf5
Simplify code within BobState::EncSigSent
3 years ago
Thomas Eizinger 09e2d5b5d7
Simplify code within BobState::XmrLocked
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 afb7e816a1
Don't wait for confirmations again
3 years ago
Thomas Eizinger c92f2dbc77
Move more domain knowledge onto the `TxCancel` type
3 years ago
Thomas Eizinger 75aec95b0c
Introduce monero::TransferRequest
3 years ago
Thomas Eizinger d682433ec9
Move `EventLoopHandle` next to its impl block
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
Thomas Eizinger 575893fb51
Use domain types in fn signature instead of messages
3 years ago
Thomas Eizinger 64b71d0b16
Remove unnecessary pinning
3 years ago
Daniel Karzel 105e291e67 Update the application name for `--version` print
3 years ago
Daniel Karzel 07542d75ac prepare 0.3 release
3 years ago
bors[bot] d487aa3c5b
Merge #327 #330 #331
3 years ago
dependabot[bot] 47544764d9
Bump tokio from 1.0.2 to 1.3.0
3 years ago
bors[bot] 7f6f2408a3
Merge #332
3 years ago
bors[bot] 2c385ee7d9
Merge #321
3 years ago
dependabot[bot] e6fda4a787
Bump base64 from 0.12.3 to 0.13.0
3 years ago
dependabot[bot] 64351a29b5
Bump dialoguer from 0.7.1 to 0.8.0
3 years ago
bors[bot] 113f2fa385
Merge #322
3 years ago
bors[bot] fc28609a96
Merge #323 #324
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 ce78075932
Make Monero and Bitcoin wallet use a generalized sync interval
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 7213907a79
Group bitcoin and monero fields together
3 years ago
bors[bot] 95acbc6277
Merge #307
3 years ago
rishflab 8675d88727 Don't wait for tx lock confirmed after broadcast
3 years ago
rishflab f5e6ba18e0 Use different address for redeem and punish
3 years ago
bors[bot] 345bc5b316
Merge #320
3 years ago
bors[bot] 9ed5ca9a04
Merge #317
3 years ago
Thomas Eizinger 9e3a104b42
Disable timestamp if we log to a non-interactive terminal
3 years ago
Thomas Eizinger edb8851ce2
Fix env filter for asb
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 e17cbadccb
Don't add signatures to transaction unless necessary
3 years ago
Thomas Eizinger 6beb732e35
Eliminate `build_bitcoin_punish_transaction`
3 years ago
Daniel Karzel d85c0ce57c Re-introduce punish test
3 years ago
Daniel Karzel ea05c306e0 Alice spawns swaps outside the event loop
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
rishflab 6a3e4802f1
Remove redundant reference
3 years ago
rishflab 458a8d594a
Rename fn param to correctly reflect underlying type
3 years ago
rishflab 752e5be8f3
Cleanup test logging
3 years ago
Thomas Eizinger 2704245ed5
Fix monero refresh interval
3 years ago
bors[bot] a02389f8bd
Merge #314
3 years ago
bors[bot] 8505d76561
Merge #311
3 years ago
Daniel Karzel 0091b6cdaf Remove CLI config file in favour of parameters
3 years ago
Daniel Karzel 442c377490 Remove openssl dependency
3 years ago
Daniel Karzel 58c33f8468 Add asb to release including ARM build
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
bors[bot] 009597ac49
Merge #306
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 7e0c44ad1d
Add avg monero block time to execution params
3 years ago
Thomas Eizinger d560e69203
Make durations more readable by using extension methods from `time`
3 years ago
Thomas Eizinger ecff1d1cbe
Remove indirection of constants
3 years ago
Thomas Eizinger bac0f11898
Disable `backoff`s `max_elapsed_time` functionality
3 years ago
Thomas Eizinger 9ad2160c69
Refactor the kraken module to automatically re-connect on errors
3 years ago
Thomas Eizinger c560b3b21a
Introduce `RateUpdate` type alias to reduce duplication
3 years ago
Thomas Eizinger fd5b38739a
Remove constant in favor of inlining string
3 years ago
Thomas Eizinger 142e5e2d3a
Use tracing macros by fully-qualifying them
3 years ago
bors[bot] cc131ecf60
Merge #293
3 years ago
Thomas Eizinger 08923a14f3
Simplify GET request for block tip height
3 years ago
Thomas Eizinger e9d7d9299c
Simplify the GET request to the tx status URL
3 years ago
Thomas Eizinger 418ad7089d
Make tests more readable by following arrange-act-assert
3 years ago
Thomas Eizinger c2329b19a2
Tell the user more about the monero lock transaction
3 years ago
Thomas Eizinger 13c4d29d40
Tell the user immediately how many confirmations we expect
3 years ago
Thomas Eizinger 4883e23dd8
Tell the user for how many confirmations we are waiting
3 years ago
Thomas Eizinger 5d4cf40831
Fix comparison of Monero confirmations
3 years ago
rishflab f92a8ac300 Improve CLI help comments and "type" hints
3 years ago
Daniel Karzel 196557b377 Rename binary to swap
3 years ago
Daniel Karzel f8b61e2e0e Make monero daemon host configurable
3 years ago
Daniel Karzel f091402c7a Remove parameter duplication by introducing structs
3 years ago
Thomas Eizinger c826a28911
Add context if we fail to compute extended private key
3 years ago
Thomas Eizinger 1aa6d177bf
Improve error messages when determining BTC amount to be swapped
3 years ago
Thomas Eizinger 4138039ea0
Make sure all error messages start with an uppercase letter
3 years ago
Thomas Eizinger 816e8b9b96
Add more context to fallible functions inside bitcoin::Wallet
3 years ago
Thomas Eizinger 5c24a46298
Improve error message if stuff fails directly in main
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 87f928f56c
Move const to function where it is used
3 years ago
Thomas Eizinger 4642e6c0e3
Simplify arguments to `init_XYZ_wallet` functions
3 years ago
Thomas Eizinger d0db6cba10
Favour individual logs over one in main
3 years ago
bors[bot] 2041f367c6
Merge #288
3 years ago
rishflab 754159c9f8 Switch to public stagenet node that works
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 f6ed4d65b5
Properly deal with additional messages sent from kraken
3 years ago
Thomas Eizinger 7575d412b8
Add kraken_ticker CLI for local testing of the client
3 years ago
Thomas Eizinger 60d6d50246
Extract kraken websocket client into dedicated module
3 years ago
Thomas Eizinger 25c4639689
Prepare for next release
3 years ago
bors[bot] 20f2e56e2d
Merge #271
3 years ago
Daniel Karzel 47a31760c0 Bob can verify the Monero txs by tx-hash
3 years ago
Thomas Eizinger 14dcd150af
Extract `determine_btc_to_swap` function and test it
3 years ago
Thomas Eizinger 601bf07255
Introduce `quote` protocol and display it to the user before they fund
3 years ago
Thomas Eizinger 3da01ea44a
Rename local variables according to new protocol name
3 years ago
Thomas Eizinger ead5db3f45
Re-order fields to group them semantically
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 7504c6ceee Context for monero address parsing errors
3 years ago
Daniel Karzel 35d0e246d8 Monero address network check
3 years ago
bors[bot] cba9f119b6
Merge #261
3 years ago
Daniel Karzel 2e3c2d8edf Remove Arcs in favour of references
3 years ago
Daniel Karzel 5d807e9647 Reorder: Move utility functionality to bottom
3 years ago
Daniel Karzel 862c29f1a8 Reorder: Move sweep_all after transfer
3 years ago
Daniel Karzel 5a43b3453e Reorder: Move create after open
3 years ago
Daniel Karzel b17e6cbd94 Reorder: Move open to top
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 66c8401c95 Sweep all from generated wallet to user wallet
3 years ago
Thomas Eizinger 7042ed9441
Replace quote with spot-price protocol
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
Daniel Karzel 9f53dab3c6 Harmonize names to make more sense
3 years ago
Daniel Karzel 70494fcb4f Create means creating the current wallet
3 years ago
Daniel Karzel 5b798217bc Open means opening the current wallet
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
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
bors[bot] a8ebd4d16e
Merge #259
3 years ago
rishflab a41b255dab Upgrade bitcoin wallet to use BIP84 derivation scheme
3 years ago
rishflab bcdde021eb Add windows support to monero rpc installer
3 years ago
rishflab 27df9128be Bail if monero wallet rpc is not found in downloaded archive
3 years ago
Thomas Eizinger 3ad9516188
Reduce logging when signing transactions
3 years ago
Thomas Eizinger 8c9b087e39
Unify logging of broadcasted transactions
3 years ago
Thomas Eizinger 3a503bf95f
Shorten function name
3 years ago
Thomas Eizinger 45cff81ea5
Remove traits in favor of using the wallet struct directly
3 years ago
Thomas Eizinger 8c0df23647
Only show _log_ output if the user passes `--debug`
3 years ago
Thomas Eizinger cb4e2c041b
Rename `opt` to `args`
3 years ago
Thomas Eizinger f4827e3fa4
Improve time formatting of log output
3 years ago
Thomas Eizinger a82e82edd5
Tell the user about the monero-wallet-rpc download
3 years ago
Thomas Eizinger 06e3bccaa6
Don't print PeerId when requesting quote
3 years ago
Thomas Eizinger cbef577e2d
Inform user that we are going to swap the remainder of the balance
3 years ago
Thomas Eizinger b7c3524b4f
Abort the eventloop if the dialling fails
3 years ago
Thomas Eizinger 4e9e186462
Don't log things the user doesn't care about
3 years ago
Thomas Eizinger 6b74761e34
Remove tracing context
3 years ago
Thomas Eizinger 3d2d447fba
Improve error message
3 years ago
Thomas Eizinger bbbe5f7ae8
Demote / promote log messages to their appropriate level
3 years ago
Thomas Eizinger 7387884e6d
Move log messages to the appropriate abstraction layer
3 years ago
Thomas Eizinger b8df4a3145
Inline tracing configuration for swap_cli
3 years ago
Thomas Eizinger a0e7c6ecf7
Don't Arc the AtomicU32
3 years ago
Thomas Eizinger 40dcf0355a
Simplify `Transfer::transfer` return type
3 years ago
bors[bot] 1de3fa486e
Merge #247
3 years ago
Thomas Eizinger 9f0b1c5cbe
Calculate max_giveable based on spending script size
3 years ago
Daniel Karzel 8c40ee1da4 Change anyhow! to bail! in error scenarios
3 years ago
bors[bot] 7251588e79
Merge #233
3 years ago
bors[bot] 5ddf41721e
Merge #238
3 years ago
rishflab 975d604405 Test to ensure default alice peer id and multi addr is valid
3 years ago
rishflab 9a82b572ec Default to buy xmr using default trait
3 years ago
rishflab d6d67f62f1 Swap cli executes BuyXmr path if subcommand is not given
3 years ago
rishflab 60de6a9219 Remove intermediate structs in cli arguments
3 years ago
bors[bot] 9a32f7d405
Merge #236
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
bors[bot] bb0377c6c7
Merge #232
3 years ago
Daniel Karzel e66e84085b Rename Bob's Behavior Failure to CommunicationError
3 years ago
Thomas Eizinger f472070546
Remove `--send-btc` in favor of swapping the available balance
3 years ago
Thomas Eizinger 32cb0eb896
Rename `build_tx_lock_psbt` to `send_to_address`
3 years ago
Thomas Eizinger 67fe01a2ef
Remove `BuildTxLockPsbt` and `GetNetwork` traits
3 years ago
Thomas Eizinger 6c38d66864
Remove `Tx` arguments from `add_signatures` functions
3 years ago
Thomas Eizinger 0f8fbd087f
Make all fields of `bitcoin::Wallet` private
3 years ago
Thomas Eizinger 1876d17ba4
Remove `map_err` in favor of `?`
3 years ago
Thomas Eizinger 7d324d966a
Remove `syncing` wallet log
3 years ago
bors[bot] 93d59398af
Merge #231
3 years ago
Daniel Karzel 1f1b3a95bc Logging for different scenarios when reading from rate stream
3 years ago
rishflab abc9aaa327 Use default alice peer id and multiaddr if not specified in cli args
3 years ago
Daniel Karzel cad6a1c3a7 ABS only sends quote response if sufficient XMR balance
3 years ago
rishflab f52567155a Use default testnet config if config file path not specified
3 years ago
Daniel Karzel fc2c08c7c9 Error only on close message when fetching the rate
3 years ago
rishflab 51c16f23d8
Download and run monero wallet rpc on swap cli startup
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 684cbe4d0b Remember monero wallet-height for Alice's refund scenario
3 years ago
Daniel Karzel fa04775188 Rename function explicit to cancellation to cancel
3 years ago
Daniel Karzel 1404057dbe Remove misleading TODO
3 years ago
Daniel Karzel 9f1deb9fdc Wrap the Monero wallet client in a Mutex
3 years ago
Daniel Karzel aed8358fb7 Remove dead code
3 years ago
bors[bot] 2654879ff3
Merge #218
3 years ago
bors[bot] fb2057453a
Merge #219 #221
3 years ago
Thomas Eizinger 66db8e1851
Remove unnecessary log dependency
3 years ago
Thomas Eizinger 03078f328c
Split monero-harness into harness and rpc
3 years ago
Thomas Eizinger 2a3db9bd80
Remove unnecessary derivative dependency
3 years ago
Thomas Eizinger f0ba80794c
Remove unnecessary serde_derive dependency declaration
3 years ago
Thomas Eizinger d54fac6fd9
Remove unnecessary tempfile prod dependency
3 years ago
Thomas Eizinger 729f4f09a8
Remove unnecessary tracing_core dependency
3 years ago
Thomas Eizinger 418aa02191
Remove unnecessary ed25519-dalek dependency
3 years ago
rishflab 8280072400 Fix/improve comment explaining TxRefund encsigning
3 years ago
Daniel Karzel 151f33ba10 Rename variables to add to understanding the code
3 years ago
bors[bot] 61a8282be1
Merge #203
3 years ago
Daniel Karzel b4ceee49df Change monitoring to default wallet
3 years ago
Daniel Karzel 9496dce917 Skip heartbeat messages
3 years ago
Thomas Eizinger a8bfc1d686 Make LatestRate::Error require std::error::Error trait bound
3 years ago
Thomas Eizinger b47b06aa23 Import anyhow::Result across the codebase
3 years ago
Franck Royer 519d1a5701 Log rate and amounts for Alice when doing execution setup
3 years ago
Franck Royer b20c16df78 Improving logging on failure
3 years ago
Franck Royer 644f4c1732 Bubble up ws error to consumer
3 years ago
Franck Royer 92b3df4158 Introduce dynamic rates
3 years ago
bors[bot] 0359f8fbc0
Merge #216
3 years ago
bors[bot] a6724f29af
Merge #214
3 years ago
Daniel Karzel bdb35c310d To avoid CI failure wait for the balance instead of sleep
3 years ago
bors[bot] 81228c9d5b
Merge #209
3 years ago
Daniel Karzel fe3d6f1fef Rename nectar to asb (automated swap backend)
3 years ago
Daniel Karzel 164de3c524 Properly calculate the confirmations for Bitcoin tx
3 years ago
Thomas Eizinger 2d8ede80e1
Use released version of backoff
3 years ago
Thomas Eizinger cabf0efb8c
Only construct proof system once
3 years ago
Thomas Eizinger 84bc2c82b7
Upgrade to bdk 4.0
3 years ago
bors[bot] b3f49cf83e
Merge #200
3 years ago
bors[bot] 8537b88a68
Merge #201
3 years ago
bors[bot] 48635156ad
Merge #206
3 years ago
Daniel Karzel babd1d7b60
Wait for refund if insufficient Monero is locked up
3 years ago
Daniel Karzel ebb869e6f4 Distinguish transient and permanent Electrum errors
3 years ago
Daniel Karzel 9b93cabfdf Use context instead of map_error
3 years ago
rishflab fe362d765b Add sync wallet on nectar's startup
3 years ago
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