Commit graph

1319 commits

Author SHA1 Message Date
Lorenzo Tucci
20a32b1dac
add missing tokio::test attribute 2024-01-13 21:23:56 +02:00
Byron Hambly
32adfa55ec
test: wrap rpc test in #[cfg(test)] 2023-12-15 20:48:01 +02:00
Byron Hambly
b43401ea21
Merge remote-tracking branch 'upstream/master' into rpc-server 2023-12-15 20:18:52 +02:00
Byron Hambly
f5c2d63527
Merge pull request #1493 from comit-network/dependabot/cargo/mockito-1.2.0
build(deps): bump mockito from 1.1.0 to 1.2.0
2023-12-15 19:25:56 +02:00
dependabot[bot]
55f95c970e
build(deps): bump mockito from 1.1.0 to 1.2.0
Bumps [mockito](https://github.com/lipanski/mockito) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/lipanski/mockito/releases)
- [Commits](https://github.com/lipanski/mockito/compare/1.1.0...1.2.0)

---
updated-dependencies:
- dependency-name: mockito
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 11:22:38 +00:00
dependabot[bot]
e44134c96d
build(deps): bump qrcode from 0.12.0 to 0.13.0
Bumps [qrcode](https://github.com/kennytm/qrcode-rust) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/kennytm/qrcode-rust/releases)
- [Commits](https://github.com/kennytm/qrcode-rust/commits)

---
updated-dependencies:
- dependency-name: qrcode
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 11:21:20 +00:00
Byron Hambly
b23f6c1b30
remove mem::forget and replace with _guard 2023-12-14 20:46:52 +02:00
Byron Hambly
9688082c70
specify sqlx patch version explicitly 2023-12-14 20:46:17 +02:00
Byron Hambly
fa6e1f02f5
clippy 2023-12-14 20:45:20 +02:00
Byron Hambly
edf519605d
Merge remote-tracking branch 'upstream/master' into rpc-server 2023-12-14 20:24:23 +02:00
dependabot[bot]
641c107012
build(deps): bump toml from 0.5.11 to 0.7.6
Bumps [toml](https://github.com/toml-rs/toml) from 0.5.11 to 0.7.6.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.5.11...toml-v0.7.6)

---
updated-dependencies:
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 11:45:38 +00:00
Byron Hambly
66283194e5
Merge pull request #1474 from comit-network/dependabot/cargo/comfy-table-7.1.0
build(deps): bump comfy-table from 6.1.4 to 7.1.0
2023-12-12 20:11:36 +02:00
Byron Hambly
8a3eed18b0
Merge pull request #1468 from comit-network/dependabot/cargo/uuid-1.6.1
build(deps): bump uuid from 1.4.1 to 1.6.1
2023-12-12 20:11:15 +02:00
Byron Hambly
38e248ce3a
Merge pull request #1472 from comit-network/dependabot/cargo/hyper-1.0.1
build(deps): bump hyper from 0.14.26 to 1.0.1
2023-12-12 15:51:56 +02:00
dependabot[bot]
0ea8ce71b6
build(deps): bump comfy-table from 6.1.4 to 7.1.0
Bumps [comfy-table](https://github.com/nukesor/comfy-table) from 6.1.4 to 7.1.0.
- [Release notes](https://github.com/nukesor/comfy-table/releases)
- [Changelog](https://github.com/Nukesor/comfy-table/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nukesor/comfy-table/compare/v6.1.4...v7.1.0)

---
updated-dependencies:
- dependency-name: comfy-table
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 11:44:32 +00:00
dependabot[bot]
81ea313d4e
build(deps): bump hyper from 0.14.26 to 1.0.1
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.26 to 1.0.1.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.26...v1.0.1)

---
updated-dependencies:
- dependency-name: hyper
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 11:42:37 +00:00
dependabot[bot]
c7bf84d936
build(deps): bump data-encoding from 2.4.0 to 2.5.0
Bumps [data-encoding](https://github.com/ia0/data-encoding) from 2.4.0 to 2.5.0.
- [Commits](https://github.com/ia0/data-encoding/commits)

---
updated-dependencies:
- dependency-name: data-encoding
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 11:42:04 +00:00
dependabot[bot]
f602bec096
build(deps): bump uuid from 1.4.1 to 1.6.1
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.4.1 to 1.6.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.4.1...1.6.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-12 11:41:50 +00:00
dependabot[bot]
73162adcd7
build(deps): bump strum from 0.24.1 to 0.25.0
Bumps [strum](https://github.com/Peternator7/strum) from 0.24.1 to 0.25.0.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 11:17:18 +00:00
binarybaron
9d52a8b7f1 Merge branch 'rpc-server' of https://github.com/yamabiiko/xmr-btc-swap into rpc-server 2023-12-05 16:02:31 +01:00
binarybaron
ba6d9a774a Wait for background tasks to complete before exiting CLI 2023-12-05 16:02:29 +01:00
Byron Hambly
df75cd95c5
Merge branch 'master' into rpc-server 2023-12-05 13:09:09 +02:00
binarybaron
e7cd255587 Log event loop connection properties as tracing fields 2023-12-02 01:27:08 +01:00
binarybaron
692b2ec20d Add span to bitcoin wallet logs 2023-12-02 01:23:43 +01:00
binarybaron
f9dcac07fd Include entire error cause-chain in API response 2023-11-27 19:46:29 +01:00
binarybaron
4098ca848d Return restore height on MoneroRecovery command to API Caller 2023-11-27 19:40:38 +01:00
binarybaron
98d8685a8e Allow API caller to retrieve last synced bitcoin balane and avoid costly sync 2023-11-26 22:38:23 +01:00
binarybaron
8bd242c825 Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
2023-11-23 20:20:20 +01:00
binarybaron
6c75f59ba1 Use type safe query! macro for database retrieval of states 2023-11-12 14:50:00 +01:00
binarybaron
6f2ec2e373 Return bid quote to API caller 2023-11-09 14:32:30 +01:00
binarybaron
ca149d2faa Print error if one occurs during process invoked by API call 2023-11-09 14:32:16 +01:00
binarybaron
b51b0e02d6 Return error to API caller if bid quote request fails 2023-11-08 22:41:30 +01:00
Lorenzo Tucci
f9912b66da
Improve debug text for swap resume 2023-11-06 22:18:06 +02:00
Lorenzo Tucci
28b0e06f78
Remove inner tokio::select in BuyXmr and Resume 2023-11-06 22:14:53 +02:00
binarybaron
2634b55fc1 Release swap lock after receiving shutdown signal 2023-11-06 20:24:50 +01:00
binarybaron
2c6c7b964c Spawn event loop before requesting quote 2023-11-06 19:24:59 +01:00
binarybaron
a53a420794 Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr 2023-11-06 16:05:32 +01:00
Lorenzo Tucci
c7f411c8c9
Moving swap initialization code inside tokio select block to handle swap lock release logic 2023-11-03 19:13:17 +02:00
Byron Hambly
dcf9f24b77
build(deps): bump pem to 3.0
replaces #1415

also fixes the `seed_from_pem_fails_for_long_seed` unit test, which was
"passing" but not actually testing what it meant to.
2023-10-23 11:21:04 +02:00
Lorenzo Tucci
4e631759b2
cargo fmt 2023-10-07 19:02:11 +03:00
Lorenzo Tucci
c0e759e9f2
moving buy_xmr initialization code out of spawned tasks 2023-10-04 21:14:14 +03:00
binarybaron
18311f74c4 Use in_current_span to pass down tracing span to spawned tasks 2023-10-03 18:30:03 +02:00
Lorenzo Tucci
bb374fe7ba
Merge branch 'rpc-server' of github.com:yamabiiko/xmr-btc-swap into rpc-server 2023-10-01 14:44:21 +03:00
Lorenzo Tucci
d2d778f2ca
move resume swap initialization code out of spawned task 2023-10-01 14:43:53 +03:00
yamabiiko
c531034f36
Merge branch 'master' into rpc-server 2023-10-01 14:04:44 +03:00
Lorenzo Tucci
8a3dc61525
cargo clippy fixes 2023-10-01 14:03:42 +03:00
Lorenzo Tucci
9c79738e69
merge with master 2023-10-01 13:39:43 +03:00
Byron Hambly
28c2530385
clippy --fix 2023-09-29 15:14:16 +02:00
Byron Hambly
4396c7db8b
test: fix assert 2023-09-29 15:13:52 +02:00
pokkst
5182b4f53a
Update lock timeout to 10 min 2023-09-29 08:08:25 -05:00