Commit Graph

1027 Commits (master)

Author SHA1 Message Date
Thomas Eizinger 51316d8183
Make it easier to create a bitcoin::Wallet for testing
3 years ago
Thomas Eizinger 229d840990
Introduce dedicated `ParseResult` to simplify error handling in main
3 years ago
Thomas Eizinger d43ba33e15
Lift out `Ok` wrapping from match expression
3 years ago
Daniel Karzel 766ac706de
Application arg tests
3 years ago
bors[bot] baf5a0896e
Merge #536
3 years ago
Daniel Karzel 202f6d1fa0
Bitcoin network check when building PSBT
3 years ago
Daniel Karzel c9064d5a37
Add ping protocol to ensure connection is alive
3 years ago
Thomas Eizinger 8f9d612af2
Change to stable Rust 1.52
3 years ago
Thomas Eizinger b8cb9e1b8b
Update secp256kfun and rand to latest version
3 years ago
Thomas Eizinger e79ac4563b
Delete unused code
3 years ago
TDevD 5da075f533 fix typo
3 years ago
COMIT Botty McBotface 3f2d094f65
Prepare release 0.6.0
3 years ago
Daniel Karzel 1de907b176
Change default Monero mainnet node to xmr.to
3 years ago
bors[bot] ded9ea1b79
Merge #525
3 years ago
bors[bot] 284733d359
Merge #522
3 years ago
Daniel Karzel 01af9a5676
Bitcoin transaction published state
3 years ago
bors[bot] db319d0a90
Merge #520
3 years ago
Philipp Hoenisch 21babf9678
Support armv7 architecture for monero-wallet-rpc.
3 years ago
Philipp Hoenisch a445ddd2bd
Print download URL while downloading.
3 years ago
Philipp Hoenisch f6c7410457
Upgrade monero-wallet-rpc to version 2.0
3 years ago
bors[bot] ba33e1acc1
Merge #519
3 years ago
Daniel Karzel fb9fb21c2b
CLI log statements to be more JSON friendly
3 years ago
Daniel Karzel 0187d9ef4f
Introduce `--json` flag for the CLI
3 years ago
bors[bot] 0032e820af
Merge #512
3 years ago
Daniel Karzel 9ff29ae491
CLI `--help` and `--version` are handled correctly
3 years ago
Daniel Karzel 22bf48c287
Fix bug that breaks swap ID for logging
3 years ago
bors[bot] bdb88f89cb
Merge #490
3 years ago
Daniel Karzel 2db470f099
Bitcoin=2 Monero=10 default finality confirmations
3 years ago
Daniel Karzel 6694e4f4e0
Ensure that output of lock script is at tx-output index `0`
3 years ago
Daniel Karzel bae38a712f
Sync on interval instead of ping
3 years ago
Daniel Karzel efb51820b1
Poll block headers for latest block on each iteration
3 years ago
Daniel Karzel f2e43ea565
Let testnet setup reflect mainnet
3 years ago
Daniel Karzel 4dd696ebe1
Fix `monero-wallet-rpc` startup for mainnet CLI
3 years ago
Daniel Karzel 1aaffb09f9
Refactor ASB test-/mainnet default dir init
3 years ago
Daniel Karzel cfa85e0bad
Simplify ASB initial setup signature
3 years ago
Daniel Karzel 7f8af7926d
ASB config may specify finality confirmations
3 years ago
Daniel Karzel af60d3bb54
Network check upon spot price request
3 years ago
Daniel Karzel 02974811ad
Activate mainnet for the ASB
3 years ago
Daniel Karzel 9ac5b635d7
Introduce own de-/serializable `monero::Network`
3 years ago
Daniel Karzel 69cf12620d
Activate mainnet for the CLI
3 years ago
dependabot[bot] 6c206c7067
Bump libp2p from 0.37.1 to 0.38.0
3 years ago
Thomas Eizinger a3f436104f
Use tokio-tar from crates.io
3 years ago
Thomas Eizinger 75c5db53b2
Remove tokio-tar from workspace in favor of git dependency
3 years ago
Daniel Karzel 1cdc23de32
Explicitly specify `monero-wallet-rpc` deamon port
3 years ago
Daniel Karzel 343badbb4b
Remove duplication and cleanup
3 years ago
Daniel Karzel 4e1f3f82bd
Remove `param` from names
3 years ago
Daniel Karzel 657ac1e2e4
Bitcoin parameters that can be reused
3 years ago
Daniel Karzel a489564857
Remove unused Electrum HTTP default URL
3 years ago
Philipp Hoenisch 493545d07f
Improve logging for Swap Cli.
3 years ago
Philipp Hoenisch 4f45a26a83
Move check for max_giveable into the function.
3 years ago
Philipp Hoenisch 7fc5a47619
Add checks to max_giveable amount.
3 years ago
Philipp Hoenisch 26e0383e17
Apply suggestions from code review
3 years ago
Philipp Hoenisch fc0cceb180
Toggle json logs using commandline flag.
3 years ago
Philipp Hoenisch 316f95c65b
Always log whole causality chain for errors.
3 years ago
Philipp Hoenisch c011e95062
Improve logging by adding details as fields instead of into the msg.
3 years ago
Philipp Hoenisch 1706b36800
Log exchange rate at each state.
3 years ago
bors[bot] 227c383d76
Merge #481
3 years ago
Daniel Karzel 652aae9590
Introduce a minimum buy amount
3 years ago
Daniel Karzel 6d3cf0af91
Include too low balance into Alice's error
3 years ago
Daniel Karzel 1d62f4916c
Move `max_buy` and `ask_spread` into config
3 years ago
Philipp Hoenisch 330269a1e9
Update assert_weight test to account for a range up to 8 bytes.
3 years ago
Daniel Karzel 538b25a6dd
Only create config-directory on init success
3 years ago
bors[bot] d96e20a5b0
Merge #479
3 years ago
Philipp Hoenisch b5073e3052
Use rust_decimal in estimate_fee function.
3 years ago
Daniel Karzel 23d9637a4b
Work in review comments
3 years ago
Daniel Karzel daa572e5bf
Move recovery commands in dedicated module
3 years ago
Daniel Karzel 4deb96a3c5
ASB manual recovery commands
3 years ago
Daniel Karzel efcd39eeef
Add info messages to each subcommand
3 years ago
Daniel Karzel 0c616c7437
Move loading the state into the function
3 years ago
Daniel Karzel 89b3d07eba
Network protocol tests for spot_price behaviour
3 years ago
Daniel Karzel 03a0dc73cd
Alice's spot_price Behaviour reports back Error
3 years ago
Daniel Karzel 5aac76598d
Decouple ASB/CLI Errors from Error sent over wire
3 years ago
Daniel Karzel 52f648e1de
Alice's spot price logic into dedicated behaviour
3 years ago
Daniel Karzel ea76ae5821
Return proper error to CLI for all expected scenarios
3 years ago
Daniel Karzel f6497778ed
Add resume-only mode for the ASB
3 years ago
Philipp Hoenisch 0090e3b48e
Typo
3 years ago
Philipp Hoenisch 59a55dcbdd
Remove todo for cleanup note.
3 years ago
Philipp Hoenisch e93eeb81a2
Added some proptests.
3 years ago
Philipp Hoenisch 040cce1eb6
Format all the files
3 years ago
Philipp Hoenisch 68ae47edf4
Log error message.
3 years ago
Philipp Hoenisch aebdb063f1
Remove TODO
3 years ago
Philipp Hoenisch 9fb1a43f29
Rename variable.
3 years ago
Philipp Hoenisch cfdbacfbb5
Add comment.
3 years ago
Philipp Hoenisch e69a2c9111
Apply suggestions from code review
3 years ago
Philipp Hoenisch dc8dd5af28
Add relative and absolute max transaction fee.
3 years ago
Philipp Hoenisch dc6ab0fa52
Ensure that constant weights do not go out of sync with code.
3 years ago
Philipp Hoenisch 7fe9087bc2
Pull trait-bounds up one level for easier testing.
3 years ago
Philipp Hoenisch 77f6f11a7f
Pass address/fees into State0 instead of passing in the wallet.
3 years ago
Philipp Hoenisch 14c5a4f025
Add upper bound for bitcoin fees of 100,000 satoshi.
3 years ago
Philipp Hoenisch 46e0449b8e
Add config/argument to swap/asb to configure bitcoin tx fees.
3 years ago
Philipp Hoenisch 9e8b788aa9
Rename weight constants.
3 years ago
Philipp Hoenisch ee90c228b4
Dynamically calculate fees using electrum's estimate_fee.
3 years ago
Philipp Hoenisch 38540b4de5
Dynamically chose fee for TxCancel.
3 years ago
Philipp Hoenisch 1012e39527
Dynamically chose fee for TxRefund and TxPunish.
3 years ago
Philipp Hoenisch d5c1b6693e
Dynamically chose fee for TxRedeem.
3 years ago
Philipp Hoenisch 002e7b38c3
Define TX_FEE within test files only.
3 years ago
Philipp Hoenisch 1db7586632
Increase timeout sending/receiving protocol messages.
3 years ago
bors[bot] e7785d2c83
Merge #434
3 years ago
bors[bot] cf1c448b7c
Merge #460
3 years ago
bors[bot] 1244b30094
Merge #459
3 years ago
Daniel Karzel 69f7565746
!fixup Different default directories for CLI and ASB
3 years ago
Thomas Eizinger dd6bfd3bf4
Extend RPC client for monerod with binary requests
3 years ago
Daniel Karzel b0ffeeab1d
Different default directories for CLI and ASB
3 years ago
Daniel Karzel 08fecb8fe3
Peer check for incoming transfer proofs
3 years ago
Daniel Karzel 3c2dfa830a
Peer check for incoming encrypted signatures
3 years ago
Thomas Eizinger 1820139786
Use dprint for formatting Cargo.toml files
3 years ago
Philipp Hoenisch ea6e2f8f09
Simplify `to_address_string` by implying more context on the structure.
3 years ago
Philipp Hoenisch c8e6db24f8
Derive Tor secret key from seed.
3 years ago
Philipp Hoenisch 3a5395d7a5
Optimize torut features.
3 years ago
Philipp Hoenisch 632293cf91
Add support for swapping through Tor.
3 years ago
bors[bot] e262345b4f
Merge #442
3 years ago
Thomas Eizinger 8d76607343
Refactor monero-harness containers
3 years ago
Thomas Eizinger 0970c2bc72
Initialize reqwest clients with verbose logging
3 years ago
Daniel Karzel 0f11ab051e
Print peer ID on debog when starting CLI
3 years ago
Thomas Eizinger dc840e1562
Take wallet names by reference
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 5b515d6fb2
Don't qualify with `alice::` if we are within a module of Alice
3 years ago
Thomas Eizinger a31d6febca
We don't need to import ourselves
3 years ago
Thomas Eizinger 881913ad9c
Re-order content of harness/mod.rs in a sane way
3 years ago
Thomas Eizinger 6d06db3259
Use macro-based JSON-RPC client
3 years ago
dependabot[bot] 19483c5ead
Bump libp2p from 0.36.0 to 0.37.1
3 years ago
Thomas Eizinger 39eea61538
Upgrade to bdk 0.6
3 years ago
COMIT Botty McBotface 43dc74cd9d Prepare release 0.5.0
3 years ago
Daniel Karzel c1e993deb2
Json codec for quote protocol
3 years ago
Daniel Karzel f70e2aa8d6
Listen on tcp and websocket transports
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 d4c10a1292
Introduce swarm::{alice,bob} function to construct a Swarm instance
3 years ago
bors[bot] 19766b9759
Merge #405
3 years ago
Daniel Karzel c976358c37
Multiple swaps with the same peer
3 years ago
Daniel Karzel 46f144ac67
Switch monero-rpc to debug in tests
3 years ago
bors[bot] 2f19222948
Merge #397
3 years ago
Daniel Karzel 489696ee08
Swap-id as file name for generated Monero wallet
3 years ago
Daniel Karzel 548f057726
Try to open wallet in case generate_from_keys fails
3 years ago
Daniel Karzel b60790a32c
Allow buffering multiple transfer proofs per peer
3 years ago
rishflab 8805002f96 Remove redundant noun from tracing initialiser functions
3 years ago
rishflab 9745d150e7 Log at debug level to file
3 years ago
rishflab e517c5934e Move asb tracing initializer to asb module
3 years ago
COMIT Botty McBotface 1687f84aa1 Prepare release 0.4.0
3 years ago
bors[bot] 32912ebd4a
Merge #394
3 years ago
bors[bot] f0a8be6835
Merge #396
3 years ago
rishflab 9b0467d43a Remove default connection details from CLI
3 years ago
bors[bot] e0b859bb1e
Merge #387
3 years ago
Thomas Eizinger a99d12b9df
Add a configurable spread to the ASB
3 years ago
Thomas Eizinger 3e0301a9d4
Move `FixedRate` into event_loop module
3 years ago
Thomas Eizinger 654cfff2a8
Make `kraken` module emit `PriceUpdate`s instead of `Rate`s
3 years ago