2020-11-30 17:31:41 -05:00
|
|
|
# This file is automatically @generated by Cargo.
|
|
|
|
# It is not intended for manual editing.
|
2021-03-18 00:30:09 -04:00
|
|
|
version = 3
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "addr2line"
|
|
|
|
version = "0.21.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
|
|
|
|
dependencies = [
|
|
|
|
"gimli",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "adler"
|
|
|
|
version = "1.0.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
|
|
|
|
2021-03-01 01:34:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "adler32"
|
|
|
|
version = "1.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "aead"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.4.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "922b33332f54fc0ad13fa3e514601e8d30fb54e1f3eadc36643f6526db645621"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "aes"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.7.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "bbda1ffd586ec58bdbc3290f9243c1d05bec1abf49ec15e4bc3d60070b7d9d11"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-05-18 02:33:38 -04:00
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"cipher",
|
2021-09-03 03:09:52 -04:00
|
|
|
"cpufeatures 0.1.4",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "aes-gcm"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.9.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "1ee2263805ba4537ccbb19db28525a7b1ebc7284c228eb5634c3124ca63eb03f"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"aead",
|
|
|
|
"aes",
|
2021-05-18 02:33:38 -04:00
|
|
|
"cipher",
|
|
|
|
"ctr",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ghash",
|
2021-09-03 07:08:32 -04:00
|
|
|
"subtle",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "ahash"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.7.6"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2021-09-20 19:14:33 -04:00
|
|
|
"once_cell",
|
2021-10-06 21:26:51 -04:00
|
|
|
"version_check",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
2022-04-04 06:49:02 -04:00
|
|
|
[[package]]
|
|
|
|
name = "aho-corasick"
|
|
|
|
version = "0.7.18"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ansi_term"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
|
|
|
|
dependencies = [
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ansi_term"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
|
|
|
dependencies = [
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "anyhow"
|
2024-05-20 07:31:28 -04:00
|
|
|
version = "1.0.86"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-20 07:31:28 -04:00
|
|
|
checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "arrayref"
|
|
|
|
version = "0.3.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "arrayvec"
|
|
|
|
version = "0.7.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "asn1_der"
|
2021-04-15 03:44:21 -04:00
|
|
|
version = "0.7.4"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-04-15 03:44:21 -04:00
|
|
|
checksum = "9d6e24d2cce90c53b948c46271bfb053e4bdc2db9b5d3f65e20f8cf28a1b7fc3"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "assert-json-diff"
|
|
|
|
version = "2.0.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "async-compression"
|
2022-10-08 06:54:48 -04:00
|
|
|
version = "0.3.15"
|
2021-02-24 02:08:25 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-10-08 06:54:48 -04:00
|
|
|
checksum = "942c7cd7ae39e91bde4820d74132e9862e62c2f386c3aa90ccf55949f5bad63a"
|
2021-02-24 02:08:25 -05:00
|
|
|
dependencies = [
|
2021-06-07 03:33:17 -04:00
|
|
|
"bzip2",
|
2021-02-24 02:08:25 -05:00
|
|
|
"futures-core",
|
|
|
|
"memchr",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "async-lock"
|
|
|
|
version = "2.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7"
|
|
|
|
dependencies = [
|
|
|
|
"event-listener",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "async-trait"
|
2024-04-12 08:00:31 -04:00
|
|
|
version = "0.1.80"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-12 08:00:31 -04:00
|
|
|
checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "asynchronous-codec"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.6.0"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2021-01-15 00:58:16 -05:00
|
|
|
"futures-sink",
|
|
|
|
"futures-util",
|
|
|
|
"memchr",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "atoi"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "1.0.0"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "d7c57d12312ff59c811c0643f4d80830505833c9ffaebd193d819392b265be8e"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "atomic"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281"
|
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"autocfg",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "atty"
|
|
|
|
version = "0.2.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
|
|
|
dependencies = [
|
2023-04-13 08:05:47 -04:00
|
|
|
"hermit-abi 0.1.18",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "autocfg"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "backoff"
|
2022-03-12 06:05:36 -05:00
|
|
|
version = "0.4.0"
|
2021-02-18 20:33:59 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-03-12 06:05:36 -05:00
|
|
|
checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2020-11-30 17:31:41 -05:00
|
|
|
"instant",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand 0.8.3",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "backtrace"
|
|
|
|
version = "0.3.69"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837"
|
|
|
|
dependencies = [
|
|
|
|
"addr2line",
|
|
|
|
"cc",
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"libc",
|
|
|
|
"miniz_oxide 0.7.1",
|
|
|
|
"object",
|
|
|
|
"rustc-demangle",
|
|
|
|
]
|
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "base32"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "base58-monero"
|
2021-04-28 23:43:03 -04:00
|
|
|
version = "0.3.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-04-28 23:43:03 -04:00
|
|
|
checksum = "465ba1f408efdef4d9379bdfa7340899b63e472d50c7fb666480ccfd5a893e53"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-03-30 03:26:53 -04:00
|
|
|
"thiserror",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
2020-12-17 02:50:15 -05:00
|
|
|
version = "0.12.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-17 02:50:15 -05:00
|
|
|
checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
2022-10-21 09:24:34 -04:00
|
|
|
version = "0.13.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-10-21 09:24:34 -04:00
|
|
|
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2024-03-04 06:48:02 -05:00
|
|
|
[[package]]
|
|
|
|
name = "base64"
|
2024-05-01 07:36:56 -04:00
|
|
|
version = "0.22.1"
|
2024-03-04 06:48:02 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-01 07:36:56 -04:00
|
|
|
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
2024-03-04 06:48:02 -05:00
|
|
|
|
2021-02-01 18:39:34 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bdk"
|
2023-04-12 07:59:20 -04:00
|
|
|
version = "0.28.0"
|
2021-04-18 20:14:14 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-12 07:59:20 -04:00
|
|
|
checksum = "e9b650f45ae7dc8558544448253f3e1ae443433637ccd9f9d14d2089ff913480"
|
2021-02-01 18:39:34 -05:00
|
|
|
dependencies = [
|
|
|
|
"async-trait",
|
|
|
|
"bdk-macros",
|
|
|
|
"bitcoin",
|
2021-10-06 21:26:51 -04:00
|
|
|
"electrum-client",
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2021-02-01 18:39:34 -05:00
|
|
|
"js-sys",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-02-01 18:39:34 -05:00
|
|
|
"miniscript",
|
2022-11-22 08:39:42 -05:00
|
|
|
"rand 0.8.3",
|
2021-02-01 18:39:34 -05:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"sled",
|
2021-10-06 21:26:51 -04:00
|
|
|
"tokio",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bdk-macros"
|
2021-10-06 21:26:51 -04:00
|
|
|
version = "0.6.0"
|
2021-02-01 18:39:34 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-06 21:26:51 -04:00
|
|
|
checksum = "81c1980e50ae23bb6efa9283ae8679d6ea2c6fa6a99fe62533f65f4a25a1a56c"
|
2021-02-01 18:39:34 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bech32"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.9.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "beef"
|
|
|
|
version = "0.5.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1"
|
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2021-02-28 19:46:53 -05:00
|
|
|
[[package]]
|
|
|
|
name = "big-bytes"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4d73a8ae8ce52d09395e4cafc83b5b81c3deb70a97740e907669c8683c4dd50a"
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bimap"
|
|
|
|
version = "0.6.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "50ae17cabbc8a38a1e3e4c1a6a664e9a09672dc14d0896fa8d865d3a5a446b07"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
2021-02-17 21:33:50 -05:00
|
|
|
name = "bincode"
|
2022-08-27 06:26:55 -04:00
|
|
|
version = "1.3.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-08-27 06:26:55 -04:00
|
|
|
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
2021-02-17 21:33:50 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2024-05-27 05:03:20 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bincode"
|
|
|
|
version = "2.0.0-rc.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f11ea1a0346b94ef188834a65c068a03aec181c94896d481d7a0a40d85b0ce95"
|
|
|
|
dependencies = [
|
|
|
|
"bincode_derive",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bincode_derive"
|
|
|
|
version = "2.0.0-rc.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7e30759b3b99a1b802a7a3aa21c85c3ded5c28e1c83170d82d70f08bbf7f3e4c"
|
|
|
|
dependencies = [
|
|
|
|
"virtue",
|
|
|
|
]
|
|
|
|
|
2021-05-06 19:37:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bit-set"
|
|
|
|
version = "0.5.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de"
|
|
|
|
dependencies = [
|
|
|
|
"bit-vec",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bit-vec"
|
|
|
|
version = "0.6.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bitcoin"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.29.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "0694ea59225b0c5f3cb405ff3f670e4828358ed26aec49dc352f730f0cb1a8a3"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"base64 0.13.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
"bech32",
|
|
|
|
"bitcoin_hashes",
|
2024-05-27 05:03:20 -04:00
|
|
|
"secp256k1 0.24.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bitcoin-harness"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.2.1"
|
|
|
|
source = "git+https://github.com/delta1/bitcoin-harness-rs.git?rev=80cc8d05db2610d8531011be505b7bee2b5cdf9f#80cc8d05db2610d8531011be505b7bee2b5cdf9f"
|
2020-12-01 18:00:00 -05:00
|
|
|
dependencies = [
|
|
|
|
"base64 0.12.3",
|
|
|
|
"bitcoin",
|
|
|
|
"bitcoincore-rpc-json",
|
|
|
|
"futures",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2024-05-30 04:27:48 -04:00
|
|
|
"hmac 0.12.1",
|
2022-08-27 06:26:55 -04:00
|
|
|
"jsonrpc_client",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rand 0.8.3",
|
2020-12-01 18:00:00 -05:00
|
|
|
"reqwest",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2024-05-30 04:27:48 -04:00
|
|
|
"sha2 0.10.8",
|
2024-02-23 14:04:27 -05:00
|
|
|
"testcontainers",
|
2020-12-01 18:00:00 -05:00
|
|
|
"thiserror",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-12-01 18:00:00 -05:00
|
|
|
"tracing",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2020-12-01 18:00:00 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bitcoin_hashes"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.11.0"
|
2021-03-24 03:30:55 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4"
|
2021-03-24 03:30:55 -04:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bitcoincore-rpc-json"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.16.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "c231bea28e314879c5aef240f6052e8a72a369e3c9f9b20d9bfbb33ad18029b2"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"bitcoin",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
2022-03-12 06:05:36 -05:00
|
|
|
version = "1.3.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-03-12 06:05:36 -05:00
|
|
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bitflags"
|
|
|
|
version = "2.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "blake2"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.9.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"crypto-mac 0.8.0",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"block-padding",
|
|
|
|
"generic-array",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-04-04 06:49:02 -04:00
|
|
|
[[package]]
|
|
|
|
name = "block-buffer"
|
|
|
|
version = "0.10.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "block-padding"
|
2021-09-03 07:08:32 -04:00
|
|
|
version = "0.2.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 07:08:32 -04:00
|
|
|
checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-03-29 18:59:51 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bmrng"
|
2021-09-03 11:43:40 -04:00
|
|
|
version = "0.5.2"
|
2021-03-29 18:59:51 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 11:43:40 -04:00
|
|
|
checksum = "d54df9073108f1558f90ae6c5bf5ab9c917c4185f5527b280c87a993cbead0ac"
|
2021-03-29 18:59:51 -04:00
|
|
|
dependencies = [
|
2021-09-03 11:43:40 -04:00
|
|
|
"futures-core",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-03-29 18:59:51 -04:00
|
|
|
]
|
|
|
|
|
2022-08-27 06:26:55 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bollard-stubs"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "1.42.0-rc.3"
|
2022-08-27 06:26:55 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "ed59b5c00048f48d7af971b71f800fdf23e858844a6f9e4d32ca72e9399e7864"
|
2022-08-27 06:26:55 -04:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_with",
|
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "borsh"
|
2023-02-06 06:07:22 -05:00
|
|
|
version = "0.10.0"
|
2022-11-25 05:10:05 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-02-06 06:07:22 -05:00
|
|
|
checksum = "822462c1e7b17b31961798a6874b36daea6818e99e0cb7d3b7b0fa3c477751c3"
|
2022-11-25 05:10:05 -05:00
|
|
|
dependencies = [
|
|
|
|
"borsh-derive",
|
2023-09-02 19:17:42 -04:00
|
|
|
"hashbrown 0.12.3",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "borsh-derive"
|
2023-02-06 06:07:22 -05:00
|
|
|
version = "0.10.0"
|
2022-11-25 05:10:05 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-02-06 06:07:22 -05:00
|
|
|
checksum = "37626c9e941a687ee9abef6065b44c379478ae563b7483c613dd705ef1dff59e"
|
2022-11-25 05:10:05 -05:00
|
|
|
dependencies = [
|
|
|
|
"borsh-derive-internal",
|
|
|
|
"borsh-schema-derive-internal",
|
|
|
|
"proc-macro-crate 0.1.5",
|
|
|
|
"proc-macro2",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "borsh-derive-internal"
|
2023-02-06 06:07:22 -05:00
|
|
|
version = "0.10.0"
|
2022-11-25 05:10:05 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-02-06 06:07:22 -05:00
|
|
|
checksum = "61820b4c5693eafb998b1e67485423c923db4a75f72585c247bdee32bad81e7b"
|
2022-11-25 05:10:05 -05:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "borsh-schema-derive-internal"
|
2023-02-06 06:07:22 -05:00
|
|
|
version = "0.10.0"
|
2022-11-25 05:10:05 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-02-06 06:07:22 -05:00
|
|
|
checksum = "c76cdbfa13def20d1f8af3ae7b3c6771f06352a74221d8851262ac384c122b8e"
|
2022-11-25 05:10:05 -05:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bs58"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3"
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bstr"
|
|
|
|
version = "1.6.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bumpalo"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "3.6.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bytecheck"
|
|
|
|
version = "0.6.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d11cac2c12b5adc6570dad2ee1b87eff4955dac476fe12d81e5fdd352e52406f"
|
|
|
|
dependencies = [
|
|
|
|
"bytecheck_derive",
|
|
|
|
"ptr_meta",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bytecheck_derive"
|
|
|
|
version = "0.6.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "13e576ebe98e605500b3c8041bb888e966653577172df6dd97398714eb30b9bf"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
2021-05-30 07:53:43 -04:00
|
|
|
[[package]]
|
|
|
|
name = "bytemuck"
|
2023-12-15 06:21:20 -05:00
|
|
|
version = "1.14.0"
|
2021-05-30 07:53:43 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-15 06:21:20 -05:00
|
|
|
checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6"
|
2021-05-30 07:53:43 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "byteorder"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "1.4.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bytes"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "1.3.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "bzip2"
|
|
|
|
version = "0.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "abf8012c8a15d5df745fcf258d93e6149dcf102882c8d8702d9cff778eab43a8"
|
|
|
|
dependencies = [
|
|
|
|
"bzip2-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "bzip2-sys"
|
|
|
|
version = "0.1.10+1.0.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "17fa3d1ac1ca21c5c4e36a97f3c3eb25084576f6fc47bf0139c1123434216c6c"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "cc"
|
2023-12-14 06:39:54 -05:00
|
|
|
version = "1.0.83"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:39:54 -05:00
|
|
|
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
|
2021-07-07 03:44:49 -04:00
|
|
|
dependencies = [
|
|
|
|
"jobserver",
|
2023-12-14 06:39:54 -05:00
|
|
|
"libc",
|
2021-07-07 03:44:49 -04:00
|
|
|
]
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cfg-if"
|
|
|
|
version = "0.1.10"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "cfg-if"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chacha20"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.7.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "fee7ad89dc1128635074c268ee661f90c3f7e83d9fd12910608c36b47d6c3412"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-05-18 02:33:38 -04:00
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"cipher",
|
2024-05-30 04:27:48 -04:00
|
|
|
"cpufeatures 0.1.4",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "chacha20poly1305"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.8.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "1580317203210c517b6d44794abfbe600698276db18127e37ad3e69bf5e848e5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"aead",
|
|
|
|
"chacha20",
|
2021-05-18 02:33:38 -04:00
|
|
|
"cipher",
|
2020-11-30 17:31:41 -05:00
|
|
|
"poly1305",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-28 20:04:39 -05:00
|
|
|
[[package]]
|
|
|
|
name = "chrono"
|
|
|
|
version = "0.4.19"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"num-integer",
|
|
|
|
"num-traits",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-02-28 20:04:39 -05:00
|
|
|
]
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "cipher"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
2021-05-18 02:33:38 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "clap"
|
|
|
|
version = "2.33.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
|
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.11.0",
|
|
|
|
"atty",
|
2023-09-02 19:17:42 -04:00
|
|
|
"bitflags 1.3.2",
|
2021-06-28 02:45:40 -04:00
|
|
|
"strsim 0.8.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"textwrap",
|
|
|
|
"unicode-width",
|
|
|
|
"vec_map",
|
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "colored"
|
|
|
|
version = "2.0.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6"
|
|
|
|
dependencies = [
|
|
|
|
"is-terminal",
|
|
|
|
"lazy_static",
|
|
|
|
"windows-sys 0.48.0",
|
|
|
|
]
|
|
|
|
|
2021-07-06 00:19:15 -04:00
|
|
|
[[package]]
|
|
|
|
name = "comfy-table"
|
2024-04-08 07:42:05 -04:00
|
|
|
version = "7.1.1"
|
2021-07-06 00:19:15 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-08 07:42:05 -04:00
|
|
|
checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7"
|
2021-07-06 00:19:15 -04:00
|
|
|
dependencies = [
|
|
|
|
"crossterm",
|
2024-04-08 07:42:05 -04:00
|
|
|
"strum",
|
|
|
|
"strum_macros",
|
2021-08-19 22:37:37 -04:00
|
|
|
"unicode-width",
|
2021-07-06 00:19:15 -04:00
|
|
|
]
|
|
|
|
|
2021-01-26 21:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "config"
|
2024-02-01 06:32:59 -05:00
|
|
|
version = "0.14.0"
|
2021-01-26 21:33:32 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:32:59 -05:00
|
|
|
checksum = "7328b20597b53c2454f0b1919720c25c7339051c02b72b7e05409e00b14132be"
|
2021-01-26 21:33:32 -05:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
2022-12-03 13:47:42 -05:00
|
|
|
"nom",
|
|
|
|
"pathdiff",
|
2021-01-26 21:33:32 -05:00
|
|
|
"serde",
|
2024-05-16 07:18:16 -04:00
|
|
|
"toml 0.8.13",
|
2021-01-26 21:33:32 -05:00
|
|
|
]
|
|
|
|
|
2020-12-01 18:00:00 -05:00
|
|
|
[[package]]
|
|
|
|
name = "conquer-once"
|
2023-04-19 08:00:28 -04:00
|
|
|
version = "0.4.0"
|
2020-12-01 18:00:00 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-19 08:00:28 -04:00
|
|
|
checksum = "5d008a441c0f269f36ca13712528069a86a3e60dffee1d98b976eb3b0b2160b4"
|
2020-12-01 18:00:00 -05:00
|
|
|
dependencies = [
|
|
|
|
"conquer-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "conquer-util"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e763eef8846b13b380f37dfecda401770b0ca4e56e95170237bd7c25c7db3582"
|
|
|
|
|
2021-01-26 21:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "console"
|
2022-02-22 23:58:05 -05:00
|
|
|
version = "0.15.0"
|
2021-01-26 21:33:32 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-02-22 23:58:05 -05:00
|
|
|
checksum = "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31"
|
2021-01-26 21:33:32 -05:00
|
|
|
dependencies = [
|
|
|
|
"encode_unicode",
|
|
|
|
"libc",
|
2022-02-22 23:58:05 -05:00
|
|
|
"once_cell",
|
2021-01-26 21:33:32 -05:00
|
|
|
"regex",
|
|
|
|
"terminal_size",
|
|
|
|
"unicode-width",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-01-26 21:33:32 -05:00
|
|
|
]
|
|
|
|
|
2021-09-03 07:08:32 -04:00
|
|
|
[[package]]
|
|
|
|
name = "convert_case"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
|
|
|
|
|
2021-08-20 04:23:08 -04:00
|
|
|
[[package]]
|
|
|
|
name = "core-foundation"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62"
|
|
|
|
dependencies = [
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "core-foundation-sys"
|
|
|
|
version = "0.8.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b"
|
|
|
|
|
2021-05-06 03:42:22 -04:00
|
|
|
[[package]]
|
|
|
|
name = "cpufeatures"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.1.4"
|
2021-05-06 03:42:22 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "ed00c67cb5d0a7d64a44f6ad2668db7e7530311dd53ea79bcd4fb022c64911c8"
|
2021-05-12 02:09:19 -04:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
2021-05-06 03:42:22 -04:00
|
|
|
|
2021-09-03 03:09:52 -04:00
|
|
|
[[package]]
|
|
|
|
name = "cpufeatures"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "cpuid-bool"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "crc"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "3.0.0"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "53757d12b596c16c78b83458d732a5d1a17ab3f53f2f7412f6fb57cc8a140ab3"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"crc-catalog",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crc-catalog"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "2.1.0"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "2d0165d2900ae6778e36e80bbc4da3b5eefccee9ba939761f9c2882a5d9af3ff"
|
2021-09-20 19:14:33 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crc32fast"
|
|
|
|
version = "1.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
]
|
|
|
|
|
2021-04-02 03:22:51 -04:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-channel"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.5.9"
|
2021-04-02 03:22:51 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "14c3242926edf34aec4ac3a77108ad4854bffaa2e4ddc1824124ce59231302d5"
|
2021-04-02 03:22:51 -04:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-epoch"
|
2021-09-13 07:08:04 -04:00
|
|
|
version = "0.9.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-13 07:08:04 -04:00
|
|
|
checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
2020-12-17 02:50:15 -05:00
|
|
|
"crossbeam-utils",
|
2020-11-30 17:31:41 -05:00
|
|
|
"lazy_static",
|
|
|
|
"memoffset",
|
|
|
|
"scopeguard",
|
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-queue"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.3.8"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"crossbeam-utils",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crossbeam-utils"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.8.17"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "c06d96137f14f244c37f989d9fff8f95e6c18b918e71f36638f8c49112e4c78f"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
]
|
|
|
|
|
2021-07-06 00:19:15 -04:00
|
|
|
[[package]]
|
|
|
|
name = "crossterm"
|
2023-12-12 06:44:32 -05:00
|
|
|
version = "0.27.0"
|
2021-07-06 00:19:15 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-12 06:44:32 -05:00
|
|
|
checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df"
|
2021-07-06 00:19:15 -04:00
|
|
|
dependencies = [
|
2023-12-12 06:44:32 -05:00
|
|
|
"bitflags 2.4.0",
|
2021-07-06 00:19:15 -04:00
|
|
|
"crossterm_winapi",
|
|
|
|
"libc",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.12.0",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-07-06 00:19:15 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "crossterm_winapi"
|
2023-12-12 06:44:32 -05:00
|
|
|
version = "0.9.1"
|
2021-07-06 00:19:15 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-12 06:44:32 -05:00
|
|
|
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
2021-07-06 00:19:15 -04:00
|
|
|
dependencies = [
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-07-06 00:19:15 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crunchy"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
|
|
|
|
|
2022-04-04 06:49:02 -04:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-common"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8"
|
|
|
|
dependencies = [
|
|
|
|
"generic-array",
|
|
|
|
"typenum",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-mac"
|
2021-09-03 07:08:32 -04:00
|
|
|
version = "0.8.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 07:08:32 -04:00
|
|
|
checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
|
|
|
"subtle",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-16 01:09:09 -05:00
|
|
|
[[package]]
|
|
|
|
name = "crypto-mac"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.11.0"
|
2021-02-16 01:09:09 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e"
|
2021-02-16 01:09:09 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
|
|
|
"subtle",
|
2021-02-16 01:09:09 -05:00
|
|
|
]
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "ctr"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481"
|
|
|
|
dependencies = [
|
|
|
|
"cipher",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "curve25519-dalek"
|
2021-04-14 03:35:31 -04:00
|
|
|
version = "3.1.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-04-14 03:35:31 -04:00
|
|
|
checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand_core 0.5.1",
|
2021-09-03 07:08:32 -04:00
|
|
|
"subtle",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-05-25 01:27:57 -04:00
|
|
|
[[package]]
|
|
|
|
name = "curve25519-dalek-ng"
|
|
|
|
version = "4.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "574d8b2cd0bae5434fd50d53280f8299d95557a978686555880aaf5b8f4f81e9"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2021-05-25 01:27:57 -04:00
|
|
|
"rand_core 0.6.2",
|
|
|
|
"serde",
|
|
|
|
"subtle-ng",
|
|
|
|
"zeroize",
|
|
|
|
]
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "darling"
|
2022-04-25 07:09:59 -04:00
|
|
|
version = "0.13.4"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-25 07:09:59 -04:00
|
|
|
checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"darling_core",
|
|
|
|
"darling_macro",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "darling_core"
|
2022-04-25 07:09:59 -04:00
|
|
|
version = "0.13.4"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-25 07:09:59 -04:00
|
|
|
checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"fnv",
|
|
|
|
"ident_case",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2021-06-28 02:45:40 -04:00
|
|
|
"strsim 0.10.0",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-06-28 02:45:40 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "darling_macro"
|
2022-04-25 07:09:59 -04:00
|
|
|
version = "0.13.4"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-25 07:09:59 -04:00
|
|
|
checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"darling_core",
|
2021-09-03 07:08:32 -04:00
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-06-28 02:45:40 -04:00
|
|
|
]
|
|
|
|
|
2022-12-03 13:47:42 -05:00
|
|
|
[[package]]
|
|
|
|
name = "dashmap"
|
|
|
|
version = "5.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4c8858831f7781322e539ea39e72449c46b059638250c14344fec8d0aa6e539c"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"num_cpus",
|
|
|
|
"parking_lot 0.12.0",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "data-encoding"
|
2024-04-30 06:28:44 -04:00
|
|
|
version = "2.6.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-30 06:28:44 -04:00
|
|
|
checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-07-31 04:32:15 -04:00
|
|
|
[[package]]
|
|
|
|
name = "deranged"
|
2023-12-15 06:19:47 -05:00
|
|
|
version = "0.3.10"
|
2023-07-31 04:32:15 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-15 06:19:47 -05:00
|
|
|
checksum = "8eb30d70a07a3b04884d2677f06bec33509dc67ca60d92949e5535352d3191dc"
|
|
|
|
dependencies = [
|
|
|
|
"powerfmt",
|
|
|
|
]
|
2023-07-31 04:32:15 -04:00
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "derive_more"
|
2021-09-03 07:08:32 -04:00
|
|
|
version = "0.99.16"
|
2021-04-21 21:33:36 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 07:08:32 -04:00
|
|
|
checksum = "40eebddd2156ce1bb37b20bbe5151340a31828b1f2d22ba4141f3531710e38df"
|
2021-04-21 21:33:36 -04:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"convert_case",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"rustc_version",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-01-26 21:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "dialoguer"
|
2023-12-13 06:45:21 -05:00
|
|
|
version = "0.11.0"
|
2021-01-26 21:33:32 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-13 06:45:21 -05:00
|
|
|
checksum = "658bce805d770f407bc62102fca7c2c64ceef2fbcb2b8bd19d2765ce093980de"
|
2021-01-26 21:33:32 -05:00
|
|
|
dependencies = [
|
|
|
|
"console",
|
2023-01-16 06:04:38 -05:00
|
|
|
"shell-words",
|
2021-01-26 21:33:32 -05:00
|
|
|
"tempfile",
|
2023-12-13 06:45:21 -05:00
|
|
|
"thiserror",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2021-01-26 21:33:32 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-04-04 06:49:02 -04:00
|
|
|
[[package]]
|
|
|
|
name = "digest"
|
2023-12-12 06:42:48 -05:00
|
|
|
version = "0.10.7"
|
2022-04-04 06:49:02 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-12 06:42:48 -05:00
|
|
|
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
2022-04-04 06:49:02 -04:00
|
|
|
dependencies = [
|
|
|
|
"block-buffer 0.10.2",
|
|
|
|
"crypto-common",
|
2022-08-27 06:26:55 -04:00
|
|
|
"subtle",
|
2022-04-04 06:49:02 -04:00
|
|
|
]
|
|
|
|
|
2021-01-26 21:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "directories-next"
|
|
|
|
version = "2.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"dirs-sys-next",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "dirs-sys-next"
|
2021-02-01 00:10:43 -05:00
|
|
|
version = "0.1.2"
|
2021-01-26 21:33:32 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-01 00:10:43 -05:00
|
|
|
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
|
2021-01-26 21:33:32 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2021-07-06 00:19:15 -04:00
|
|
|
"redox_users",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-01-26 21:33:32 -05:00
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
2022-11-30 06:39:20 -05:00
|
|
|
name = "dotenvy"
|
|
|
|
version = "0.15.6"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "03d8c417d7a8cb362e0c37e5d815f5eb7c37f79ff93707329d5a194e42e54ca0"
|
2021-09-20 19:14:33 -04:00
|
|
|
|
2021-10-12 18:52:39 -04:00
|
|
|
[[package]]
|
|
|
|
name = "dtoa"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "1.0.2"
|
2021-10-12 18:52:39 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "5caaa75cbd2b960ff1e5392d2cfb1f44717fffe12fc1f32b7b5d1267f99732a6"
|
2021-10-12 18:52:39 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ecdsa_fun"
|
2024-05-27 05:03:20 -04:00
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6fd850b7ece4e4ddaa1478d5de36b6d4d599f2d521f73456ca706b4e2b32a4ec"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2024-05-27 05:03:20 -04:00
|
|
|
"bincode 1.3.3",
|
2021-06-17 07:06:16 -04:00
|
|
|
"rand_chacha 0.3.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
"secp256kfun",
|
2021-02-17 21:33:50 -05:00
|
|
|
"sigma_fun",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ed25519"
|
|
|
|
version = "1.0.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "37c66a534cbb46ab4ea03477eae19d5c22c01da8258030280b7bd9d8433fb6ef"
|
|
|
|
dependencies = [
|
|
|
|
"signature",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ed25519-dalek"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d"
|
|
|
|
dependencies = [
|
2021-02-17 21:33:50 -05:00
|
|
|
"curve25519-dalek",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ed25519",
|
|
|
|
"rand 0.7.3",
|
|
|
|
"serde",
|
2022-04-04 06:49:02 -04:00
|
|
|
"sha2 0.9.8",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "either"
|
|
|
|
version = "1.6.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-03-24 03:30:55 -04:00
|
|
|
[[package]]
|
|
|
|
name = "electrum-client"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.12.0"
|
2021-02-01 18:39:34 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "82a232d46710f8064b7bb2029d82819fc1f5fba053687e0e3bb47cc762af24f6"
|
2021-02-01 18:39:34 -05:00
|
|
|
dependencies = [
|
|
|
|
"bitcoin",
|
2022-08-27 06:26:55 -04:00
|
|
|
"byteorder",
|
|
|
|
"libc",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2022-08-27 06:26:55 -04:00
|
|
|
"rustls 0.20.2",
|
2021-02-01 18:39:34 -05:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2022-08-27 06:26:55 -04:00
|
|
|
"webpki 0.22.0",
|
|
|
|
"webpki-roots 0.22.2",
|
|
|
|
"winapi",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "encode_unicode"
|
|
|
|
version = "0.3.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "enum-as-inner"
|
|
|
|
version = "0.3.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595"
|
|
|
|
dependencies = [
|
2022-04-14 10:11:10 -04:00
|
|
|
"heck 0.3.2",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "equivalent"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
|
|
|
|
2023-03-01 07:10:49 -05:00
|
|
|
[[package]]
|
|
|
|
name = "errno"
|
2023-12-14 06:40:30 -05:00
|
|
|
version = "0.3.8"
|
2023-03-01 07:10:49 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:40:30 -05:00
|
|
|
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
|
2023-03-01 07:10:49 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2023-12-14 06:40:30 -05:00
|
|
|
"windows-sys 0.52.0",
|
2023-03-01 07:10:49 -05:00
|
|
|
]
|
|
|
|
|
2022-11-30 06:39:20 -05:00
|
|
|
[[package]]
|
|
|
|
name = "event-listener"
|
|
|
|
version = "2.5.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
|
|
|
|
|
2022-02-22 08:31:40 -05:00
|
|
|
[[package]]
|
|
|
|
name = "fastrand"
|
2023-12-13 06:44:49 -05:00
|
|
|
version = "2.0.1"
|
2022-02-22 08:31:40 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-13 06:44:49 -05:00
|
|
|
checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5"
|
2022-02-22 08:31:40 -05:00
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "filetime"
|
|
|
|
version = "0.2.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1d34cfa13a63ae058bfa601fe9e313bbdb3746427c1459185464ce0fcf62e1e8"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"libc",
|
2023-04-13 08:05:47 -04:00
|
|
|
"redox_syscall 0.2.10",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "fixed-hash"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "0.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2021-03-30 03:26:53 -04:00
|
|
|
"rand 0.8.3",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rustc-hex",
|
2021-03-30 03:26:53 -04:00
|
|
|
"static_assertions",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fixedbitset"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.4.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "279fb028e20b3c4c320317955b77c5e0c9701f05a1d309905d6fc702cdc5053e"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-03-01 01:34:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "flate2"
|
|
|
|
version = "1.0.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2cfff41391129e0a856d6d822600b8d71179d46879e310417eb9c762eb178b42"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 0.1.10",
|
|
|
|
"crc32fast",
|
|
|
|
"libc",
|
2021-04-07 20:02:13 -04:00
|
|
|
"libz-sys",
|
2023-09-02 19:17:42 -04:00
|
|
|
"miniz_oxide 0.3.7",
|
2021-03-01 01:34:25 -05:00
|
|
|
]
|
|
|
|
|
2022-11-30 06:39:20 -05:00
|
|
|
[[package]]
|
|
|
|
name = "flume"
|
|
|
|
version = "0.10.14"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"pin-project 1.0.5",
|
|
|
|
"spin 0.9.4",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "fnv"
|
|
|
|
version = "1.0.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "form_urlencoded"
|
2023-12-11 06:16:30 -05:00
|
|
|
version = "1.2.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:16:30 -05:00
|
|
|
checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-06 21:26:51 -04:00
|
|
|
"percent-encoding",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fs2"
|
|
|
|
version = "0.4.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-executor",
|
|
|
|
"futures-io",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-task",
|
|
|
|
"futures-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-channel"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-core"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-executor"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-task",
|
|
|
|
"futures-util",
|
|
|
|
"num_cpus",
|
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "futures-intrusive"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "62007592ac46aa7c2b6416f7deb9a8a8f63a01e0f1d6e1787d5630170db2b63e"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"lock_api",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "futures-io"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-macro"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "futures-rustls"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.22.1"
|
2021-04-07 20:02:13 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "e01fe9932a224b72b45336d96040aa86386d674a31d0af27d800ea7bc8ca97fe"
|
2021-04-07 20:02:13 -04:00
|
|
|
dependencies = [
|
|
|
|
"futures-io",
|
2022-04-04 06:49:02 -04:00
|
|
|
"rustls 0.20.2",
|
|
|
|
"webpki 0.22.0",
|
2021-04-07 20:02:13 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "futures-sink"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-task"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-timer"
|
|
|
|
version = "3.0.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "futures-util"
|
2023-12-25 06:55:47 -05:00
|
|
|
version = "0.3.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-25 06:55:47 -05:00
|
|
|
checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-io",
|
|
|
|
"futures-macro",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-task",
|
|
|
|
"memchr",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2020-11-30 17:31:41 -05:00
|
|
|
"pin-utils",
|
|
|
|
"slab",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "fxhash"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "generic-array"
|
|
|
|
version = "0.14.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
|
|
|
|
dependencies = [
|
2021-02-17 21:33:50 -05:00
|
|
|
"serde",
|
2020-11-30 17:31:41 -05:00
|
|
|
"typenum",
|
2021-10-06 21:26:51 -04:00
|
|
|
"version_check",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2020-12-17 19:54:13 -05:00
|
|
|
[[package]]
|
|
|
|
name = "get-port"
|
|
|
|
version = "3.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ac6c41a39c60ae1fc5bf0e220347ce90fa1e4bb0fcdac65b09bb5f4576bebc84"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
2021-01-15 00:58:16 -05:00
|
|
|
name = "getrandom"
|
2021-02-01 00:10:43 -05:00
|
|
|
version = "0.1.16"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-01 00:10:43 -05:00
|
|
|
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-02-01 00:10:43 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
2021-01-15 00:58:16 -05:00
|
|
|
"wasi 0.9.0+wasi-snapshot-preview1",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "getrandom"
|
2023-12-14 06:39:54 -05:00
|
|
|
version = "0.2.11"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:39:54 -05:00
|
|
|
checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-01-15 00:58:16 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
2023-12-14 06:39:54 -05:00
|
|
|
"wasi 0.11.0+wasi-snapshot-preview1",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ghash"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.4.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "5f6fb2a26dd2ebd268a68bc8e9acc9e67e487952f33384055a1cbe697514c64e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
"polyval",
|
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "gimli"
|
|
|
|
version = "0.28.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
|
|
|
|
|
2021-07-07 03:44:49 -04:00
|
|
|
[[package]]
|
|
|
|
name = "git2"
|
2024-02-04 01:43:59 -05:00
|
|
|
version = "0.18.1"
|
2021-07-07 03:44:49 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-04 01:43:59 -05:00
|
|
|
checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd"
|
2021-07-07 03:44:49 -04:00
|
|
|
dependencies = [
|
2024-02-04 01:43:59 -05:00
|
|
|
"bitflags 2.4.0",
|
2021-07-07 03:44:49 -04:00
|
|
|
"libc",
|
|
|
|
"libgit2-sys",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
|
|
|
"url",
|
2021-07-07 03:44:49 -04:00
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "globset"
|
|
|
|
version = "0.4.10"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc"
|
|
|
|
dependencies = [
|
|
|
|
"aho-corasick",
|
|
|
|
"bstr",
|
|
|
|
"fnv",
|
|
|
|
"log",
|
|
|
|
"regex",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "h2"
|
2023-04-18 07:58:35 -04:00
|
|
|
version = "0.3.18"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-18 07:58:35 -04:00
|
|
|
checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"fnv",
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-util",
|
2024-02-23 15:25:06 -05:00
|
|
|
"http 0.2.11",
|
2023-12-13 06:45:38 -05:00
|
|
|
"indexmap 1.7.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"slab",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2023-04-18 07:58:35 -04:00
|
|
|
"tokio-util",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2024-05-30 04:27:48 -04:00
|
|
|
[[package]]
|
|
|
|
name = "h2"
|
|
|
|
version = "0.4.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "51ee2dd2e4f378392eeff5d51618cd9a63166a2513846bbc55f21cfacd9199d4"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"fnv",
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"futures-util",
|
|
|
|
"http 1.0.0",
|
|
|
|
"indexmap 2.1.0",
|
|
|
|
"slab",
|
|
|
|
"tokio",
|
|
|
|
"tokio-util",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "half"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "1.7.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "62aca2aba2d62b4a7f5b33f3712cb1b0692779a56fb510499d5c0aa594daeaf3"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
|
|
|
version = "0.11.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
|
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"ahash",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
|
|
|
version = "0.12.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
|
|
|
dependencies = [
|
|
|
|
"ahash",
|
|
|
|
]
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hashbrown"
|
|
|
|
version = "0.14.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hashlink"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.8.1"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "69fe1fcf8b4278d860ad0548329f892a3631fb63f82574df68275f34cdbe0ffa"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
2022-11-30 06:39:20 -05:00
|
|
|
"hashbrown 0.12.3",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
2021-02-01 00:10:43 -05:00
|
|
|
version = "0.3.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-01 00:10:43 -05:00
|
|
|
checksum = "87cbf45460356b7deeb5e3415b5563308c0a9b057c85e12b06ad551f98d0a6ac"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"unicode-segmentation",
|
|
|
|
]
|
|
|
|
|
2022-04-14 10:11:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "heck"
|
2023-12-11 06:17:18 -05:00
|
|
|
version = "0.4.1"
|
2022-04-14 10:11:10 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:17:18 -05:00
|
|
|
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
2022-11-30 06:39:20 -05:00
|
|
|
dependencies = [
|
|
|
|
"unicode-segmentation",
|
|
|
|
]
|
2022-04-14 10:11:10 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hermit-abi"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.1.18"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hermit-abi"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
version = "0.3.8"
|
2023-04-13 08:05:47 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
checksum = "379dada1584ad501b383485dd706b8afb7a70fcbc7f4da7d780638a5a6124a60"
|
2023-04-13 08:05:47 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hex"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.4.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-03-30 03:26:53 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hex-literal"
|
2021-12-07 05:04:47 -05:00
|
|
|
version = "0.3.4"
|
2021-03-30 03:26:53 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-12-07 05:04:47 -05:00
|
|
|
checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0"
|
2021-03-30 03:26:53 -04:00
|
|
|
|
2023-04-18 07:58:22 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hex-literal"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
|
|
|
|
|
2021-09-03 07:08:32 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hmac"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b"
|
|
|
|
dependencies = [
|
2024-05-30 04:27:48 -04:00
|
|
|
"crypto-mac 0.11.0",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-08-27 06:26:55 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hmac"
|
|
|
|
version = "0.12.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
|
|
|
|
dependencies = [
|
2023-12-12 06:42:48 -05:00
|
|
|
"digest 0.10.7",
|
2022-08-27 06:26:55 -04:00
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "hostname"
|
|
|
|
version = "0.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"match_cfg",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "http"
|
2024-02-23 15:25:06 -05:00
|
|
|
version = "0.2.11"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-23 15:25:06 -05:00
|
|
|
checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"fnv",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-12-12 06:42:37 -05:00
|
|
|
[[package]]
|
|
|
|
name = "http"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b32afd38673a8016f7c9ae69e5af41a58f81b1d31689040f2f1959594ce194ea"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"fnv",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2023-12-12 06:42:37 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "http-body"
|
2021-01-15 00:58:16 -05:00
|
|
|
version = "0.4.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 00:58:16 -05:00
|
|
|
checksum = "2861bd27ee074e5ee891e8b539837a9430012e249d7f0ca2d795650f579c1994"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2024-02-23 15:25:06 -05:00
|
|
|
"http 0.2.11",
|
2023-12-12 06:42:37 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "http-body"
|
|
|
|
version = "1.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"http 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2024-05-30 04:27:48 -04:00
|
|
|
[[package]]
|
|
|
|
name = "http-body-util"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"futures-core",
|
|
|
|
"http 1.0.0",
|
|
|
|
"http-body 1.0.0",
|
|
|
|
"pin-project-lite 0.2.13",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "httparse"
|
2022-11-01 07:17:23 -04:00
|
|
|
version = "1.8.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-01 07:17:23 -04:00
|
|
|
checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "httpdate"
|
2021-04-23 03:32:40 -04:00
|
|
|
version = "1.0.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-04-23 03:32:40 -04:00
|
|
|
checksum = "05842d0d43232b23ccb7060ecb0f0626922c21f30012e97b767b30afd4a5d4b9"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "hyper"
|
2024-02-23 15:25:06 -05:00
|
|
|
version = "0.14.28"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-23 15:25:06 -05:00
|
|
|
checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
|
|
|
"futures-util",
|
2024-05-30 04:27:48 -04:00
|
|
|
"h2 0.3.18",
|
2024-02-23 15:25:06 -05:00
|
|
|
"http 0.2.11",
|
2023-12-12 06:42:37 -05:00
|
|
|
"http-body 0.4.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"httparse",
|
|
|
|
"httpdate",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tower-service",
|
|
|
|
"tracing",
|
|
|
|
"want",
|
|
|
|
]
|
|
|
|
|
2023-12-12 06:42:37 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hyper"
|
2024-04-17 07:50:10 -04:00
|
|
|
version = "1.3.1"
|
2023-12-12 06:42:37 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-17 07:50:10 -04:00
|
|
|
checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d"
|
2023-12-12 06:42:37 -05:00
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
2024-05-30 04:27:48 -04:00
|
|
|
"futures-channel",
|
|
|
|
"futures-util",
|
|
|
|
"h2 0.4.3",
|
2023-12-12 06:42:37 -05:00
|
|
|
"http 1.0.0",
|
|
|
|
"http-body 1.0.0",
|
2024-05-30 04:27:48 -04:00
|
|
|
"httparse",
|
|
|
|
"itoa",
|
|
|
|
"pin-project-lite 0.2.13",
|
|
|
|
"smallvec",
|
2023-12-12 06:42:37 -05:00
|
|
|
"tokio",
|
2024-05-30 04:27:48 -04:00
|
|
|
"want",
|
2023-12-12 06:42:37 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "hyper-rustls"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.26.0"
|
2021-02-24 02:08:25 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c"
|
2021-02-24 02:08:25 -05:00
|
|
|
dependencies = [
|
2024-05-30 04:27:48 -04:00
|
|
|
"futures-util",
|
|
|
|
"http 1.0.0",
|
|
|
|
"hyper 1.3.1",
|
|
|
|
"hyper-util",
|
|
|
|
"rustls 0.22.2",
|
|
|
|
"rustls-pki-types",
|
|
|
|
"tokio",
|
|
|
|
"tokio-rustls 0.25.0",
|
|
|
|
"tower-service",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "hyper-util"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa"
|
|
|
|
dependencies = [
|
|
|
|
"bytes",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-util",
|
|
|
|
"http 1.0.0",
|
|
|
|
"http-body 1.0.0",
|
|
|
|
"hyper 1.3.1",
|
|
|
|
"pin-project-lite 0.2.13",
|
|
|
|
"socket2 0.5.5",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2024-05-30 04:27:48 -04:00
|
|
|
"tower",
|
|
|
|
"tower-service",
|
|
|
|
"tracing",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "ident_case"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.2.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"matches",
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2022-09-12 17:03:31 -04:00
|
|
|
[[package]]
|
|
|
|
name = "idna"
|
2023-12-11 06:16:30 -05:00
|
|
|
version = "0.5.0"
|
2022-09-12 17:03:31 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:16:30 -05:00
|
|
|
checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
|
2022-09-12 17:03:31 -04:00
|
|
|
dependencies = [
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "if-addrs"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "cbc0fa01ffc752e9dbc72818cdb072cd028b86be5e09dd04c5a643704fe101a9"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-05-30 07:53:43 -04:00
|
|
|
[[package]]
|
|
|
|
name = "image"
|
2024-03-14 07:58:41 -04:00
|
|
|
version = "0.25.0"
|
2021-05-30 07:53:43 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-14 07:58:41 -04:00
|
|
|
checksum = "a9b4f005360d32e9325029b38ba47ebd7a56f3316df09249368939562d518645"
|
2021-05-30 07:53:43 -04:00
|
|
|
dependencies = [
|
|
|
|
"bytemuck",
|
|
|
|
"byteorder",
|
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "indexmap"
|
2021-10-07 22:10:11 -04:00
|
|
|
version = "1.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-07 22:10:11 -04:00
|
|
|
checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"autocfg",
|
2022-11-25 05:10:05 -05:00
|
|
|
"hashbrown 0.11.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "indexmap"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
|
|
|
|
dependencies = [
|
|
|
|
"equivalent",
|
|
|
|
"hashbrown 0.14.3",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "instant"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.1.12"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "ipconfig"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7"
|
|
|
|
dependencies = [
|
|
|
|
"socket2 0.3.19",
|
|
|
|
"widestring",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-03-18 00:30:09 -04:00
|
|
|
"winreg 0.6.2",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ipnet"
|
|
|
|
version = "2.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135"
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "is-terminal"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
version = "0.4.12"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
|
2023-09-02 19:17:42 -04:00
|
|
|
dependencies = [
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"hermit-abi 0.3.8",
|
|
|
|
"libc",
|
|
|
|
"windows-sys 0.52.0",
|
2023-09-02 19:17:42 -04:00
|
|
|
]
|
|
|
|
|
2021-03-26 00:16:19 -04:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
2022-09-21 07:12:13 -04:00
|
|
|
version = "0.10.5"
|
2021-03-26 00:16:19 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-09-21 07:12:13 -04:00
|
|
|
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
|
2021-03-26 00:16:19 -04:00
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2023-12-18 06:17:44 -05:00
|
|
|
[[package]]
|
|
|
|
name = "itertools"
|
2024-05-17 07:58:52 -04:00
|
|
|
version = "0.13.0"
|
2023-12-18 06:17:44 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-17 07:58:52 -04:00
|
|
|
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
2023-12-18 06:17:44 -05:00
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
]
|
|
|
|
|
2022-01-03 03:29:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "itoa"
|
|
|
|
version = "1.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
|
|
|
|
2021-07-07 03:44:49 -04:00
|
|
|
[[package]]
|
|
|
|
name = "jobserver"
|
|
|
|
version = "0.1.22"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "js-sys"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.3.67"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "9a1d36f1235bc969acba30b7f5990b864423a6068a10f7c90ae8f0112e3a59d1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"wasm-bindgen",
|
|
|
|
]
|
|
|
|
|
2021-04-15 04:39:59 -04:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc_client"
|
2021-09-03 10:22:16 -04:00
|
|
|
version = "0.7.1"
|
2024-05-30 04:27:48 -04:00
|
|
|
source = "git+https://github.com/delta1/rust-jsonrpc-client.git?rev=3b6081697cd616c952acb9c2f02d546357d35506#3b6081697cd616c952acb9c2f02d546357d35506"
|
2021-04-15 04:39:59 -04:00
|
|
|
dependencies = [
|
|
|
|
"async-trait",
|
2022-08-27 06:26:55 -04:00
|
|
|
"jsonrpc_client_macro",
|
2020-12-06 18:19:15 -05:00
|
|
|
"reqwest",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2020-12-06 18:19:15 -05:00
|
|
|
]
|
|
|
|
|
2021-04-15 04:39:59 -04:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpc_client_macro"
|
|
|
|
version = "0.3.0"
|
2024-05-30 04:27:48 -04:00
|
|
|
source = "git+https://github.com/delta1/rust-jsonrpc-client.git?rev=3b6081697cd616c952acb9c2f02d546357d35506#3b6081697cd616c952acb9c2f02d546357d35506"
|
2021-04-15 04:39:59 -04:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-04-15 04:39:59 -04:00
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7d291e3a5818a2384645fd9756362e6d89cf0541b0b916fa7702ea4a9833608e"
|
|
|
|
dependencies = [
|
|
|
|
"jsonrpsee-core",
|
|
|
|
"jsonrpsee-server",
|
|
|
|
"jsonrpsee-types",
|
|
|
|
"jsonrpsee-ws-client",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee-client-transport"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "965de52763f2004bc91ac5bcec504192440f0b568a5d621c59d9dbd6f886c3fb"
|
|
|
|
dependencies = [
|
|
|
|
"futures-util",
|
|
|
|
"http 0.2.11",
|
|
|
|
"jsonrpsee-core",
|
|
|
|
"jsonrpsee-types",
|
|
|
|
"pin-project 1.0.5",
|
|
|
|
"rustls-native-certs 0.6.3",
|
|
|
|
"soketto",
|
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tokio-rustls 0.23.1",
|
|
|
|
"tokio-util",
|
|
|
|
"tracing",
|
|
|
|
"webpki-roots 0.22.2",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee-core"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"arrayvec",
|
|
|
|
"async-lock",
|
|
|
|
"async-trait",
|
|
|
|
"beef",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-timer",
|
|
|
|
"futures-util",
|
|
|
|
"globset",
|
|
|
|
"hyper 0.14.28",
|
|
|
|
"jsonrpsee-types",
|
|
|
|
"parking_lot 0.12.0",
|
|
|
|
"rand 0.8.3",
|
|
|
|
"rustc-hash",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"soketto",
|
|
|
|
"thiserror",
|
|
|
|
"tokio",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee-server"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1fb69dad85df79527c019659a992498d03f8495390496da2f07e6c24c2b356fc"
|
|
|
|
dependencies = [
|
|
|
|
"futures-channel",
|
|
|
|
"futures-util",
|
|
|
|
"http 0.2.11",
|
|
|
|
"hyper 0.14.28",
|
|
|
|
"jsonrpsee-core",
|
|
|
|
"jsonrpsee-types",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"soketto",
|
|
|
|
"tokio",
|
|
|
|
"tokio-stream",
|
|
|
|
"tokio-util",
|
|
|
|
"tower",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee-types"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5bd522fe1ce3702fd94812965d7bb7a3364b1c9aba743944c5a00529aae80f8c"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"beef",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"thiserror",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "jsonrpsee-ws-client"
|
|
|
|
version = "0.16.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0b83daeecfc6517cfe210df24e570fb06213533dfb990318fae781f4c7119dd9"
|
|
|
|
dependencies = [
|
|
|
|
"http 0.2.11",
|
|
|
|
"jsonrpsee-client-transport",
|
|
|
|
"jsonrpsee-core",
|
|
|
|
"jsonrpsee-types",
|
|
|
|
]
|
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "keccak"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "keccak-hash"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "0.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "ae0386ec98c26dd721aaa3412bf3a817156ff3ee7cb6959503f8d1095f4ccc51"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"primitive-types",
|
|
|
|
"tiny-keccak",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "lazy_static"
|
|
|
|
version = "1.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libc"
|
2024-02-06 06:53:45 -05:00
|
|
|
version = "0.2.153"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-06 06:53:45 -05:00
|
|
|
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-07-07 03:44:49 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libgit2-sys"
|
2024-02-04 01:43:59 -05:00
|
|
|
version = "0.16.1+1.7.1"
|
2021-07-07 03:44:49 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-04 01:43:59 -05:00
|
|
|
checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
|
2021-07-07 03:44:49 -04:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"libz-sys",
|
|
|
|
"pkg-config",
|
|
|
|
]
|
|
|
|
|
2023-02-06 06:05:58 -05:00
|
|
|
[[package]]
|
|
|
|
name = "libm"
|
|
|
|
version = "0.2.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb"
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.42.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0f592f1b06f12a5686a5de7be9f289a161c96d5f89f12b04b7d14cf3d61d7381"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"atomic",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"futures-timer",
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2022-04-04 06:49:02 -04:00
|
|
|
"instant",
|
2020-11-30 17:31:41 -05:00
|
|
|
"lazy_static",
|
|
|
|
"libp2p-core",
|
|
|
|
"libp2p-dns",
|
2022-04-17 13:57:34 -04:00
|
|
|
"libp2p-identify",
|
2021-10-12 18:52:39 -04:00
|
|
|
"libp2p-metrics",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-mplex",
|
|
|
|
"libp2p-noise",
|
2021-05-25 21:40:55 -04:00
|
|
|
"libp2p-ping",
|
2021-06-28 02:45:40 -04:00
|
|
|
"libp2p-rendezvous",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-request-response",
|
|
|
|
"libp2p-swarm",
|
2021-03-18 00:30:09 -04:00
|
|
|
"libp2p-swarm-derive",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-tcp",
|
2021-04-07 20:02:13 -04:00
|
|
|
"libp2p-websocket",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-yamux",
|
2021-06-28 02:45:40 -04:00
|
|
|
"multiaddr",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project 1.0.5",
|
2022-04-04 06:49:02 -04:00
|
|
|
"rand 0.7.3",
|
2020-11-30 17:31:41 -05:00
|
|
|
"smallvec",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libp2p-core"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.31.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "77c4178afd65bf7c56744b4e0a6cfa6e9b694fe666efba596e03a46f79454d8d"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"asn1_der",
|
2021-01-15 00:58:16 -05:00
|
|
|
"bs58",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ed25519-dalek",
|
|
|
|
"either",
|
|
|
|
"fnv",
|
|
|
|
"futures",
|
|
|
|
"futures-timer",
|
2022-04-04 06:49:02 -04:00
|
|
|
"instant",
|
2020-11-30 17:31:41 -05:00
|
|
|
"lazy_static",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-06-28 02:45:40 -04:00
|
|
|
"multiaddr",
|
2020-11-30 17:31:41 -05:00
|
|
|
"multihash",
|
|
|
|
"multistream-select",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project 1.0.5",
|
2020-11-30 17:31:41 -05:00
|
|
|
"prost",
|
|
|
|
"prost-build",
|
2022-04-04 06:49:02 -04:00
|
|
|
"rand 0.8.3",
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rw-stream-sink",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2020-11-30 17:31:41 -05:00
|
|
|
"smallvec",
|
|
|
|
"thiserror",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2020-11-30 17:31:41 -05:00
|
|
|
"void",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libp2p-dns"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.31.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "39d4a2e7efe62c738833b6be6c0f158cf7ffccba462320f4b3bebe43e1050e7b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"smallvec",
|
|
|
|
"trust-dns-resolver",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-04-17 13:57:34 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-identify"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.33.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ae5d84b4e57cb66abb9dd28ea36f69620816e004a7479c0ad76f45002820f99b"
|
2022-04-17 13:57:34 -04:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"futures-timer",
|
2022-04-17 13:57:34 -04:00
|
|
|
"libp2p-core",
|
|
|
|
"libp2p-swarm",
|
|
|
|
"log",
|
2022-04-04 06:49:02 -04:00
|
|
|
"lru",
|
2022-04-17 13:57:34 -04:00
|
|
|
"prost",
|
|
|
|
"prost-build",
|
|
|
|
"smallvec",
|
|
|
|
]
|
|
|
|
|
2021-10-12 18:52:39 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-metrics"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0791098ddec13b0c2f9ed37a29175f7c712ce8804ebaba7cbd8bddbc83120190"
|
2021-10-12 18:52:39 -04:00
|
|
|
dependencies = [
|
|
|
|
"libp2p-core",
|
2022-04-17 13:57:34 -04:00
|
|
|
"libp2p-identify",
|
2021-10-12 18:52:39 -04:00
|
|
|
"libp2p-ping",
|
|
|
|
"libp2p-swarm",
|
|
|
|
"open-metrics-client",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-mplex"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.31.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "49d470ee73a74340e429fa278469ed274a648738e3fb8de2e8d113482441732f"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-01-15 00:58:16 -05:00
|
|
|
"asynchronous-codec",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"nohash-hasher",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand 0.7.3",
|
|
|
|
"smallvec",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libp2p-noise"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.34.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3676dc2df10a7f4f6a80fbeaf2ce4168a0ca6567273e3105b21fa4c877be9017"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2021-02-17 21:33:50 -05:00
|
|
|
"curve25519-dalek",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
|
|
|
"lazy_static",
|
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"prost",
|
|
|
|
"prost-build",
|
2021-05-18 02:33:38 -04:00
|
|
|
"rand 0.8.3",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2020-11-30 17:31:41 -05:00
|
|
|
"snow",
|
2021-03-30 03:26:53 -04:00
|
|
|
"static_assertions",
|
2020-11-30 17:31:41 -05:00
|
|
|
"x25519-dalek",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-05-25 21:40:55 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-ping"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.33.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d384b30135f122a59bf0d186647ad307da0878a9563232cb382d9dbded6a393e"
|
2021-05-25 21:40:55 -04:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"futures-timer",
|
|
|
|
"instant",
|
2021-05-25 21:40:55 -04:00
|
|
|
"libp2p-core",
|
|
|
|
"libp2p-swarm",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-05-25 21:40:55 -04:00
|
|
|
"rand 0.7.3",
|
|
|
|
"void",
|
|
|
|
]
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-rendezvous"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ec166a822f4167929c8e1673c05106f7c86a42b8e9e917b569e1d86f06b9d8b5"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"asynchronous-codec",
|
|
|
|
"bimap",
|
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"futures-timer",
|
|
|
|
"instant",
|
2021-06-28 02:45:40 -04:00
|
|
|
"libp2p-core",
|
|
|
|
"libp2p-swarm",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-06-28 02:45:40 -04:00
|
|
|
"prost",
|
|
|
|
"prost-build",
|
|
|
|
"rand 0.8.3",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2021-06-28 02:45:40 -04:00
|
|
|
"thiserror",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2021-06-28 02:45:40 -04:00
|
|
|
"void",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-request-response"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.15.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "36194499f5b03d66d56badbed430d93bf1bfd9cec80311e03280de130fbe3d5e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"async-trait",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"instant",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-core",
|
|
|
|
"libp2p-swarm",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand 0.7.3",
|
|
|
|
"smallvec",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "libp2p-swarm"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.33.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "db8ae0811c7a05b6edc6684eb5cc69b055cbb715ad780e6b97872d90308503c1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
"futures",
|
2022-04-04 06:49:02 -04:00
|
|
|
"futures-timer",
|
|
|
|
"instant",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand 0.7.3",
|
|
|
|
"smallvec",
|
|
|
|
"void",
|
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-swarm-derive"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.26.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "33b4d0acd47739fe0b570728d8d11bbb535050d84c0cf05d6477a4891fceae10"
|
2021-03-18 00:30:09 -04:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-tcp"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.31.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "52042e8796c5b58d0415bceb1bcb1bcca28b222339978e52b1a0305800bb5199"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
|
|
|
"futures-timer",
|
|
|
|
"if-addrs",
|
|
|
|
"ipnet",
|
2021-01-15 00:58:16 -05:00
|
|
|
"libc",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2022-11-08 06:04:47 -05:00
|
|
|
"socket2 0.4.7",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-websocket"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.33.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "83d788da0ab952632d6ead2486baf38a98db92907d4bc5d0f324af0d0fab803d"
|
2021-04-07 20:02:13 -04:00
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
"futures",
|
|
|
|
"futures-rustls",
|
|
|
|
"libp2p-core",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-04-07 20:02:13 -04:00
|
|
|
"quicksink",
|
|
|
|
"rw-stream-sink",
|
|
|
|
"soketto",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2022-04-04 06:49:02 -04:00
|
|
|
"webpki-roots 0.22.2",
|
2021-04-07 20:02:13 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "libp2p-yamux"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.35.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "053d13ce0670d29f9c5a974cf371e6cc4d2d864da1c72bf6870ac5d5e45e2036"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
|
|
|
"libp2p-core",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
"thiserror",
|
|
|
|
"yamux",
|
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libsqlite3-sys"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.24.2"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "898745e570c7d0453cc1fbc4a701eb6c662ed54e8fec8b7d14be137ebeeb9d14"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
|
|
|
]
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "libz-sys"
|
|
|
|
version = "1.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
"pkg-config",
|
|
|
|
"vcpkg",
|
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "linked-hash-map"
|
|
|
|
version = "0.5.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3"
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "linux-raw-sys"
|
2023-12-14 06:40:30 -05:00
|
|
|
version = "0.4.12"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:40:30 -05:00
|
|
|
checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456"
|
2023-09-02 19:17:42 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "lock_api"
|
2022-03-12 06:05:36 -05:00
|
|
|
version = "0.4.6"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-03-12 06:05:36 -05:00
|
|
|
checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"scopeguard",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "log"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.4.20"
|
2021-01-26 21:33:32 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
2021-01-26 21:33:32 -05:00
|
|
|
|
2022-04-17 13:57:34 -04:00
|
|
|
[[package]]
|
|
|
|
name = "lru"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.7.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "32613e41de4c47ab04970c348ca7ae7382cf116625755af070b008a15516a889"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-25 05:10:05 -05:00
|
|
|
"hashbrown 0.11.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "lru-cache"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c"
|
|
|
|
dependencies = [
|
|
|
|
"linked-hash-map",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "match_cfg"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "matchers"
|
|
|
|
version = "0.0.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1"
|
|
|
|
dependencies = [
|
|
|
|
"regex-automata",
|
|
|
|
]
|
|
|
|
|
2022-07-26 08:08:55 -04:00
|
|
|
[[package]]
|
|
|
|
name = "matchers"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"
|
|
|
|
dependencies = [
|
|
|
|
"regex-automata",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "matches"
|
|
|
|
version = "0.1.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "memchr"
|
2023-12-13 06:45:38 -05:00
|
|
|
version = "2.6.4"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-13 06:45:38 -05:00
|
|
|
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "memoffset"
|
2020-12-17 02:50:15 -05:00
|
|
|
version = "0.6.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-17 02:50:15 -05:00
|
|
|
checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"autocfg",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mime"
|
|
|
|
version = "0.3.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "minimal-lexical"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0c835948974f68e0bd58636fc6c5b1fbff7b297e3046f11b3b3c18bbac012c6d"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "miniscript"
|
2024-05-27 06:57:32 -04:00
|
|
|
version = "9.0.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-27 06:57:32 -04:00
|
|
|
checksum = "e5b106477a0709e2da253e5559ba4ab20a272f8577f1eefff72f3a905b5d35f5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"bitcoin",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2021-03-01 01:34:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "miniz_oxide"
|
|
|
|
version = "0.3.7"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "791daaae1ed6889560f8c4359194f56648355540573244a5448a83ba1ecc7435"
|
|
|
|
dependencies = [
|
|
|
|
"adler32",
|
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "miniz_oxide"
|
|
|
|
version = "0.7.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
|
|
|
|
dependencies = [
|
|
|
|
"adler",
|
|
|
|
]
|
|
|
|
|
2022-09-14 07:36:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "mio"
|
2023-12-14 06:39:26 -05:00
|
|
|
version = "0.8.10"
|
2022-09-14 07:36:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:39:26 -05:00
|
|
|
checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09"
|
2022-09-14 07:36:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"wasi 0.11.0+wasi-snapshot-preview1",
|
2023-09-02 19:17:42 -04:00
|
|
|
"windows-sys 0.48.0",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "mockito"
|
2024-02-23 15:25:06 -05:00
|
|
|
version = "1.3.0"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-23 15:25:06 -05:00
|
|
|
checksum = "a8c84fe1f1d8c56dc157f79942056fad4b9efceebba374a01b222428b553facb"
|
2023-09-02 19:17:42 -04:00
|
|
|
dependencies = [
|
|
|
|
"assert-json-diff",
|
|
|
|
"colored",
|
|
|
|
"futures",
|
2024-02-23 15:25:06 -05:00
|
|
|
"hyper 0.14.28",
|
2023-09-02 19:17:42 -04:00
|
|
|
"log",
|
|
|
|
"rand 0.8.3",
|
|
|
|
"regex",
|
|
|
|
"serde_json",
|
|
|
|
"serde_urlencoded",
|
|
|
|
"similar",
|
|
|
|
"tokio",
|
2022-09-14 07:36:33 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "monero"
|
2021-04-28 23:43:03 -04:00
|
|
|
version = "0.12.0"
|
2021-05-25 01:27:57 -04:00
|
|
|
source = "git+https://github.com/comit-network/monero-rs?rev=818f38b#818f38b043e2a9fa38d74fec5310a270f510844e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"base58-monero",
|
2021-05-25 01:27:57 -04:00
|
|
|
"curve25519-dalek-ng",
|
2021-03-30 03:26:53 -04:00
|
|
|
"fixed-hash",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2023-04-18 07:58:22 -04:00
|
|
|
"hex-literal 0.3.4",
|
2021-03-30 03:26:53 -04:00
|
|
|
"keccak-hash",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
"serde-big-array",
|
|
|
|
"thiserror",
|
|
|
|
]
|
|
|
|
|
2021-04-28 23:43:03 -04:00
|
|
|
[[package]]
|
|
|
|
name = "monero-epee-bin-serde"
|
2021-07-09 07:09:19 -04:00
|
|
|
version = "1.0.1"
|
2021-04-28 23:43:03 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-07-09 07:09:19 -04:00
|
|
|
checksum = "1f8a3f7f7ef5bb1fd6c953be9187e48df8cc1a0ffc7d94f9fbabd4a23e37321e"
|
2021-04-28 23:43:03 -04:00
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "monero-harness"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"futures",
|
2021-02-21 20:32:15 -05:00
|
|
|
"monero-rpc",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand 0.7.3",
|
2024-02-23 14:04:27 -05:00
|
|
|
"testcontainers",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing",
|
2022-07-26 08:08:55 -04:00
|
|
|
"tracing-subscriber 0.2.25",
|
2021-02-21 20:32:15 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "monero-rpc"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
2021-04-28 23:43:03 -04:00
|
|
|
"curve25519-dalek",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2023-04-18 07:58:22 -04:00
|
|
|
"hex-literal 0.4.1",
|
2022-08-27 06:26:55 -04:00
|
|
|
"jsonrpc_client",
|
2021-04-15 04:39:59 -04:00
|
|
|
"monero",
|
2021-04-28 23:43:03 -04:00
|
|
|
"monero-epee-bin-serde",
|
|
|
|
"rand 0.7.3",
|
2021-02-21 20:32:15 -05:00
|
|
|
"reqwest",
|
2022-11-07 02:52:34 -05:00
|
|
|
"rust_decimal",
|
2021-02-21 20:32:15 -05:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-02-21 20:32:15 -05:00
|
|
|
"tracing",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
2021-04-28 23:44:35 -04:00
|
|
|
name = "monero-wallet"
|
|
|
|
version = "0.1.0"
|
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"curve25519-dalek",
|
|
|
|
"monero",
|
|
|
|
"monero-harness",
|
|
|
|
"monero-rpc",
|
|
|
|
"rand 0.7.3",
|
2024-02-23 14:04:27 -05:00
|
|
|
"testcontainers",
|
2021-04-28 23:44:35 -04:00
|
|
|
"tokio",
|
2022-07-26 08:08:55 -04:00
|
|
|
"tracing-subscriber 0.2.25",
|
2021-04-28 23:44:35 -04:00
|
|
|
]
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "multiaddr"
|
2021-10-12 18:52:39 -04:00
|
|
|
version = "0.13.0"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-12 18:52:39 -04:00
|
|
|
checksum = "48ee4ea82141951ac6379f964f71b20876d43712bea8faf6dd1a375e08a46499"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"arrayref",
|
|
|
|
"bs58",
|
|
|
|
"byteorder",
|
|
|
|
"data-encoding",
|
|
|
|
"multihash",
|
2021-10-06 21:26:51 -04:00
|
|
|
"percent-encoding",
|
2021-06-28 02:45:40 -04:00
|
|
|
"serde",
|
|
|
|
"static_assertions",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2021-06-28 02:45:40 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "multihash"
|
2021-10-12 18:52:39 -04:00
|
|
|
version = "0.14.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-12 18:52:39 -04:00
|
|
|
checksum = "752a61cd890ff691b4411423d23816d5866dd5621e4d1c5687a53b94b5a979d8"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
2021-01-15 00:58:16 -05:00
|
|
|
"multihash-derive",
|
2022-04-04 06:49:02 -04:00
|
|
|
"sha2 0.9.8",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "multihash-derive"
|
2021-10-12 18:52:39 -04:00
|
|
|
version = "0.7.2"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-12 18:52:39 -04:00
|
|
|
checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
2022-11-25 05:10:05 -05:00
|
|
|
"proc-macro-crate 1.1.0",
|
2021-01-15 00:58:16 -05:00
|
|
|
"proc-macro-error",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-01-15 00:58:16 -05:00
|
|
|
"synstructure",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "multimap"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.8.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "multistream-select"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "363a84be6453a70e63513660f4894ef815daf88e3356bffcda9ca27d810ce83b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project 1.0.5",
|
2020-11-30 17:31:41 -05:00
|
|
|
"smallvec",
|
2021-10-12 18:52:39 -04:00
|
|
|
"unsigned-varint",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "nohash-hasher"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "nom"
|
|
|
|
version = "7.0.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7ffd9d26838a953b4af82cbeb9f1592c6798916983959be223a7124e992742c1"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
"minimal-lexical",
|
2021-10-06 21:26:51 -04:00
|
|
|
"version_check",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
2023-12-18 06:17:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "nu-ansi-term"
|
|
|
|
version = "0.46.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"
|
|
|
|
dependencies = [
|
|
|
|
"overload",
|
|
|
|
"winapi",
|
|
|
|
]
|
|
|
|
|
2024-02-01 06:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "num-conv"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "num-integer"
|
|
|
|
version = "0.1.44"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
|
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"autocfg",
|
2020-11-30 17:31:41 -05:00
|
|
|
"num-traits",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "num-traits"
|
2023-02-06 06:05:58 -05:00
|
|
|
version = "0.2.15"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-02-06 06:05:58 -05:00
|
|
|
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"autocfg",
|
2023-02-06 06:05:58 -05:00
|
|
|
"libm",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "num_cpus"
|
2022-12-03 13:47:42 -05:00
|
|
|
version = "1.14.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-12-03 13:47:42 -05:00
|
|
|
checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2023-04-13 08:05:47 -04:00
|
|
|
"hermit-abi 0.1.18",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2024-02-04 01:43:59 -05:00
|
|
|
[[package]]
|
|
|
|
name = "num_threads"
|
|
|
|
version = "0.1.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "object"
|
|
|
|
version = "0.32.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0"
|
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "once_cell"
|
2022-07-26 08:08:55 -04:00
|
|
|
version = "1.13.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-26 08:08:55 -04:00
|
|
|
checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "opaque-debug"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
|
|
|
|
|
2021-10-12 18:52:39 -04:00
|
|
|
[[package]]
|
|
|
|
name = "open-metrics-client"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.14.0"
|
2021-10-12 18:52:39 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "f85842b073145726190373213c63f852020fb884c841a3a1f390637267a2fb8c"
|
2021-10-12 18:52:39 -04:00
|
|
|
dependencies = [
|
|
|
|
"dtoa",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2021-10-12 18:52:39 -04:00
|
|
|
"open-metrics-client-derive-text-encode",
|
|
|
|
"owning_ref",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "open-metrics-client-derive-text-encode"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a15c83b586f00268c619c1cb3340ec1a6f59dd9ba1d9833a273a68e6d5cd8ffc"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-10-12 18:52:39 -04:00
|
|
|
]
|
|
|
|
|
2021-08-20 04:23:08 -04:00
|
|
|
[[package]]
|
|
|
|
name = "openssl-probe"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
|
|
|
|
|
2023-12-18 06:17:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "overload"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
|
|
|
|
2021-10-12 18:52:39 -04:00
|
|
|
[[package]]
|
|
|
|
name = "owning_ref"
|
|
|
|
version = "0.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6ff55baddef9e4ad00f88b6c743a2a8062d4c6ade126c2a528644b8e444d52ce"
|
|
|
|
dependencies = [
|
|
|
|
"stable_deref_trait",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
2021-09-13 07:08:04 -04:00
|
|
|
version = "0.11.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-13 07:08:04 -04:00
|
|
|
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"instant",
|
2021-10-06 21:26:51 -04:00
|
|
|
"lock_api",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot_core 0.8.5",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot"
|
|
|
|
version = "0.12.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"
|
|
|
|
dependencies = [
|
|
|
|
"lock_api",
|
|
|
|
"parking_lot_core 0.9.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
2021-09-13 07:08:04 -04:00
|
|
|
version = "0.8.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-13 07:08:04 -04:00
|
|
|
checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2020-12-17 02:50:15 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"instant",
|
|
|
|
"libc",
|
2023-04-13 08:05:47 -04:00
|
|
|
"redox_syscall 0.2.10",
|
2020-11-30 17:31:41 -05:00
|
|
|
"smallvec",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "parking_lot_core"
|
|
|
|
version = "0.9.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"libc",
|
2023-04-13 08:05:47 -04:00
|
|
|
"redox_syscall 0.2.10",
|
2022-03-12 06:05:36 -05:00
|
|
|
"smallvec",
|
2022-09-14 07:36:33 -04:00
|
|
|
"windows-sys 0.32.0",
|
2022-03-12 06:05:36 -05:00
|
|
|
]
|
|
|
|
|
2022-11-30 06:39:20 -05:00
|
|
|
[[package]]
|
|
|
|
name = "paste"
|
|
|
|
version = "1.0.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1"
|
|
|
|
|
2022-12-03 13:47:42 -05:00
|
|
|
[[package]]
|
|
|
|
name = "pathdiff"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"
|
|
|
|
|
2021-01-07 20:04:48 -05:00
|
|
|
[[package]]
|
|
|
|
name = "pem"
|
2024-04-09 07:55:30 -04:00
|
|
|
version = "3.0.4"
|
2021-01-07 20:04:48 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-09 07:55:30 -04:00
|
|
|
checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae"
|
2021-01-07 20:04:48 -05:00
|
|
|
dependencies = [
|
2024-05-01 07:36:56 -04:00
|
|
|
"base64 0.22.1",
|
2023-10-23 05:21:04 -04:00
|
|
|
"serde",
|
2021-01-07 20:04:48 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "percent-encoding"
|
2023-12-11 06:16:30 -05:00
|
|
|
version = "2.3.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:16:30 -05:00
|
|
|
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "pest"
|
|
|
|
version = "2.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53"
|
|
|
|
dependencies = [
|
|
|
|
"ucd-trie",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "petgraph"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.6.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"fixedbitset",
|
2023-12-13 06:45:38 -05:00
|
|
|
"indexmap 1.7.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pin-project"
|
2022-07-21 08:14:58 -04:00
|
|
|
version = "0.4.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-21 08:14:58 -04:00
|
|
|
checksum = "3ef0f924a5ee7ea9cbcea77529dba45f8a9ba9f622419fe3386ca581a3ae9d5a"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-07-21 08:14:58 -04:00
|
|
|
"pin-project-internal 0.4.30",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pin-project"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "1.0.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "96fa8ebb90271c4477f144354485b8068bd8f6b78b428b01ba892ca26caf0b63"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project-internal 1.0.5",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pin-project-internal"
|
2022-07-21 08:14:58 -04:00
|
|
|
version = "0.4.30"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-21 08:14:58 -04:00
|
|
|
checksum = "851c8d0ce9bebe43790dedfc86614c23494ac9f423dd618d3a61fc693eafe61e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "pin-project-internal"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "1.0.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "758669ae3558c6f74bd2a18b41f7ac0b5a195aea6639d6a9b5e5d1ad5ba24c0b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-03-30 03:26:53 -04:00
|
|
|
[[package]]
|
|
|
|
name = "pin-project-lite"
|
|
|
|
version = "0.1.12"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "pin-project-lite"
|
2023-09-02 19:17:42 -04:00
|
|
|
version = "0.2.13"
|
2020-12-17 02:50:15 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-02 19:17:42 -04:00
|
|
|
checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"
|
2020-12-17 02:50:15 -05:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "pin-utils"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
|
|
|
|
2021-02-23 22:00:17 -05:00
|
|
|
[[package]]
|
|
|
|
name = "pkg-config"
|
|
|
|
version = "0.3.19"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "poly1305"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "4fe800695325da85083cd23b56826fccb2e2dc29b218e7811a6f33bc93f414be"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 03:09:52 -04:00
|
|
|
"cpufeatures 0.1.4",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
"universal-hash",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "polyval"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.5.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "864231b0b86ce05168a8e6da0fea2e67275dacf25f75b00a62cfd341aab904a9"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 03:09:52 -04:00
|
|
|
"cpufeatures 0.1.4",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
"universal-hash",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "port_check"
|
2024-04-02 07:28:21 -04:00
|
|
|
version = "0.2.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-02 07:28:21 -04:00
|
|
|
checksum = "2110609fb863cdb367d4e69d6c43c81ba6a8c7d18e80082fe9f3ef16b23afeed"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-12-15 06:19:47 -05:00
|
|
|
[[package]]
|
|
|
|
name = "powerfmt"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ppv-lite86"
|
|
|
|
version = "0.2.10"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "primitive-types"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "2415937401cb030a2a0a4d922483f945fa068f52a7dbb22ce0fe5f2b6f6adace"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-03-30 03:26:53 -04:00
|
|
|
"fixed-hash",
|
|
|
|
"uint",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-crate"
|
|
|
|
version = "0.1.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
|
|
|
|
dependencies = [
|
2023-12-13 06:45:38 -05:00
|
|
|
"toml 0.5.11",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-crate"
|
2021-10-12 18:52:39 -04:00
|
|
|
version = "1.1.0"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-12 18:52:39 -04:00
|
|
|
checksum = "1ebace6889caf889b4d3f76becee12e90353f2b8c7d875534a71e5742f8f6f83"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"thiserror",
|
2023-12-13 06:45:38 -05:00
|
|
|
"toml 0.5.11",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-error"
|
|
|
|
version = "1.0.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
|
|
|
dependencies = [
|
2021-01-04 22:08:36 -05:00
|
|
|
"proc-macro-error-attr",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-10-06 21:26:51 -04:00
|
|
|
"version_check",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "proc-macro-error-attr"
|
|
|
|
version = "1.0.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2021-10-06 21:26:51 -04:00
|
|
|
"version_check",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "proc-macro2"
|
2024-01-02 06:44:56 -05:00
|
|
|
version = "1.0.74"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-01-02 06:44:56 -05:00
|
|
|
checksum = "2de98502f212cfcea8d0bb305bd0f49d7ebdd75b64ba0a68f937d888f4e0d6db"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-07-21 08:14:58 -04:00
|
|
|
"unicode-ident",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-05-06 19:37:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "proptest"
|
2023-12-12 06:42:14 -05:00
|
|
|
version = "1.4.0"
|
2021-05-06 19:37:10 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-12 06:42:14 -05:00
|
|
|
checksum = "31b476131c3c86cb68032fdc5cb6d5a1045e3e42d96b69fa599fd77701e1f5bf"
|
2021-05-06 19:37:10 -04:00
|
|
|
dependencies = [
|
|
|
|
"bit-set",
|
2023-12-12 06:42:14 -05:00
|
|
|
"bit-vec",
|
|
|
|
"bitflags 2.4.0",
|
2021-05-06 19:37:10 -04:00
|
|
|
"lazy_static",
|
|
|
|
"num-traits",
|
|
|
|
"rand 0.8.3",
|
2021-06-17 07:06:16 -04:00
|
|
|
"rand_chacha 0.3.1",
|
2022-11-22 08:39:42 -05:00
|
|
|
"rand_xorshift",
|
2023-12-12 06:42:14 -05:00
|
|
|
"regex-syntax 0.8.2",
|
2021-05-06 19:37:10 -04:00
|
|
|
"rusty-fork",
|
|
|
|
"tempfile",
|
2023-02-06 06:05:58 -05:00
|
|
|
"unarray",
|
2021-05-06 19:37:10 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "prost"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"prost-derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-build"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2022-04-14 10:11:10 -04:00
|
|
|
"heck 0.3.2",
|
2023-12-18 06:17:44 -05:00
|
|
|
"itertools 0.10.5",
|
2022-04-04 06:49:02 -04:00
|
|
|
"lazy_static",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"multimap",
|
|
|
|
"petgraph",
|
|
|
|
"prost",
|
|
|
|
"prost-types",
|
2022-04-04 06:49:02 -04:00
|
|
|
"regex",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tempfile",
|
|
|
|
"which",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-derive"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
2023-12-18 06:17:44 -05:00
|
|
|
"itertools 0.10.5",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "prost-types"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"prost",
|
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ptr_meta"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1"
|
|
|
|
dependencies = [
|
|
|
|
"ptr_meta_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ptr_meta_derive"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
2021-05-30 07:53:43 -04:00
|
|
|
[[package]]
|
|
|
|
name = "qrcode"
|
2024-03-14 07:58:41 -04:00
|
|
|
version = "0.14.0"
|
2021-05-30 07:53:43 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-14 07:58:41 -04:00
|
|
|
checksum = "23e719ca51966ff9f5a8436edb00d6115b3c606a0bb27c8f8ca74a38ff2b036d"
|
2021-05-30 07:53:43 -04:00
|
|
|
dependencies = [
|
|
|
|
"image",
|
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "quick-error"
|
|
|
|
version = "1.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "quicksink"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858"
|
|
|
|
dependencies = [
|
|
|
|
"futures-core",
|
|
|
|
"futures-sink",
|
|
|
|
"pin-project-lite 0.1.12",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "quote"
|
2024-01-02 06:44:56 -05:00
|
|
|
version = "1.0.35"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-01-02 06:44:56 -05:00
|
|
|
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand"
|
|
|
|
version = "0.7.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
|
|
|
dependencies = [
|
2021-02-01 00:10:43 -05:00
|
|
|
"getrandom 0.1.16",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
|
|
|
"rand_chacha 0.2.2",
|
|
|
|
"rand_core 0.5.1",
|
|
|
|
"rand_hc 0.2.0",
|
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rand"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.8.3"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2021-06-17 07:06:16 -04:00
|
|
|
"rand_chacha 0.3.1",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand_core 0.6.2",
|
2021-01-15 00:58:16 -05:00
|
|
|
"rand_hc 0.3.0",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
|
|
|
version = "0.2.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
|
|
|
dependencies = [
|
|
|
|
"ppv-lite86",
|
|
|
|
"rand_core 0.5.1",
|
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rand_chacha"
|
2021-06-17 07:06:16 -04:00
|
|
|
version = "0.3.1"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-06-17 07:06:16 -04:00
|
|
|
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
|
|
|
"ppv-lite86",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand_core 0.6.2",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
|
|
|
dependencies = [
|
2021-02-01 00:10:43 -05:00
|
|
|
"getrandom 0.1.16",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_core"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.6.2"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rand_hc"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
|
|
|
dependencies = [
|
|
|
|
"rand_core 0.5.1",
|
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rand_hc"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73"
|
|
|
|
dependencies = [
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand_core 0.6.2",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
2021-05-06 19:37:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rand_xorshift"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f"
|
|
|
|
dependencies = [
|
|
|
|
"rand_core 0.6.2",
|
|
|
|
]
|
|
|
|
|
2021-02-01 00:10:43 -05:00
|
|
|
[[package]]
|
|
|
|
name = "redox_syscall"
|
2021-09-13 07:08:04 -04:00
|
|
|
version = "0.2.10"
|
2021-02-01 00:10:43 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-13 07:08:04 -04:00
|
|
|
checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
|
2021-02-01 00:10:43 -05:00
|
|
|
dependencies = [
|
2023-09-02 19:17:42 -04:00
|
|
|
"bitflags 1.3.2",
|
2021-02-01 00:10:43 -05:00
|
|
|
]
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "redox_syscall"
|
|
|
|
version = "0.3.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
|
|
|
|
dependencies = [
|
2023-09-02 19:17:42 -04:00
|
|
|
"bitflags 1.3.2",
|
2023-04-13 08:05:47 -04:00
|
|
|
]
|
|
|
|
|
2021-02-01 00:10:43 -05:00
|
|
|
[[package]]
|
|
|
|
name = "redox_users"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
|
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2023-04-13 08:05:47 -04:00
|
|
|
"redox_syscall 0.2.10",
|
2021-02-01 00:10:43 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "regex"
|
2023-09-02 19:17:42 -04:00
|
|
|
version = "1.7.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-02 19:17:42 -04:00
|
|
|
checksum = "8b1f693b24f6ac912f4893ef08244d70b6067480d2f1a46e950c9691e6749d1d"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-04-04 06:49:02 -04:00
|
|
|
"aho-corasick",
|
|
|
|
"memchr",
|
2023-12-12 06:42:14 -05:00
|
|
|
"regex-syntax 0.6.29",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "regex-automata"
|
|
|
|
version = "0.1.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4"
|
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2023-12-12 06:42:14 -05:00
|
|
|
"regex-syntax 0.6.29",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "regex-syntax"
|
2023-09-02 19:17:42 -04:00
|
|
|
version = "0.6.29"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-09-02 19:17:42 -04:00
|
|
|
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-12-12 06:42:14 -05:00
|
|
|
[[package]]
|
|
|
|
name = "regex-syntax"
|
|
|
|
version = "0.8.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rend"
|
|
|
|
version = "0.3.6"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "79af64b4b6362ffba04eef3a4e10829718a4896dac19daa741851c86781edf95"
|
|
|
|
dependencies = [
|
|
|
|
"bytecheck",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "reqwest"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.12.4"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2024-05-30 04:27:48 -04:00
|
|
|
"base64 0.22.1",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures-core",
|
|
|
|
"futures-util",
|
2024-05-30 04:27:48 -04:00
|
|
|
"h2 0.4.3",
|
|
|
|
"http 1.0.0",
|
|
|
|
"http-body 1.0.0",
|
|
|
|
"http-body-util",
|
|
|
|
"hyper 1.3.1",
|
2021-02-24 02:08:25 -05:00
|
|
|
"hyper-rustls",
|
2024-05-30 04:27:48 -04:00
|
|
|
"hyper-util",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ipnet",
|
|
|
|
"js-sys",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
|
|
|
"mime",
|
2022-09-21 07:12:20 -04:00
|
|
|
"once_cell",
|
2021-10-06 21:26:51 -04:00
|
|
|
"percent-encoding",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls 0.22.2",
|
|
|
|
"rustls-pemfile 2.1.2",
|
|
|
|
"rustls-pki-types",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
|
|
|
"serde_urlencoded",
|
2024-02-01 06:34:26 -05:00
|
|
|
"sync_wrapper",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2024-05-30 04:27:48 -04:00
|
|
|
"tokio-rustls 0.25.0",
|
2021-04-21 21:33:36 -04:00
|
|
|
"tokio-socks",
|
2023-04-18 07:58:35 -04:00
|
|
|
"tokio-util",
|
2022-07-22 07:13:46 -04:00
|
|
|
"tower-service",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2020-11-30 17:31:41 -05:00
|
|
|
"wasm-bindgen",
|
|
|
|
"wasm-bindgen-futures",
|
2023-01-20 06:03:06 -05:00
|
|
|
"wasm-streams",
|
2020-11-30 17:31:41 -05:00
|
|
|
"web-sys",
|
2024-05-30 04:27:48 -04:00
|
|
|
"webpki-roots 0.26.1",
|
|
|
|
"winreg 0.52.0",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "resolv-conf"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00"
|
|
|
|
dependencies = [
|
|
|
|
"hostname",
|
2023-05-24 07:59:31 -04:00
|
|
|
"quick-error",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ring"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.16.20"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
2020-12-17 02:50:15 -05:00
|
|
|
"once_cell",
|
2022-11-30 06:39:20 -05:00
|
|
|
"spin 0.5.2",
|
2023-12-14 06:39:54 -05:00
|
|
|
"untrusted 0.7.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
"web-sys",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-12-14 06:39:54 -05:00
|
|
|
[[package]]
|
|
|
|
name = "ring"
|
|
|
|
version = "0.17.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9babe80d5c16becf6594aa32ad2be8fe08498e7ae60b77de8df700e67f191d7e"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"getrandom 0.2.11",
|
|
|
|
"libc",
|
|
|
|
"spin 0.9.4",
|
|
|
|
"untrusted 0.9.0",
|
|
|
|
"windows-sys 0.48.0",
|
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rkyv"
|
|
|
|
version = "0.7.39"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cec2b3485b07d96ddfd3134767b8a447b45ea4eb91448d0a35180ec0ffd5ed15"
|
|
|
|
dependencies = [
|
|
|
|
"bytecheck",
|
|
|
|
"hashbrown 0.12.3",
|
|
|
|
"ptr_meta",
|
|
|
|
"rend",
|
|
|
|
"rkyv_derive",
|
|
|
|
"seahash",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rkyv_derive"
|
|
|
|
version = "0.7.39"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6eaedadc88b53e36dd32d940ed21ae4d850d5916f2581526921f553a72ac34c4"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2022-11-25 05:10:05 -05:00
|
|
|
]
|
|
|
|
|
2020-12-04 00:27:17 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rust_decimal"
|
2023-07-31 04:32:15 -04:00
|
|
|
version = "1.30.0"
|
2020-12-04 00:27:17 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-07-31 04:32:15 -04:00
|
|
|
checksum = "d0446843641c69436765a35a5a77088e28c2e6a12da93e84aa3ab1cd4aa5a042"
|
2020-12-04 00:27:17 -05:00
|
|
|
dependencies = [
|
2022-12-03 13:47:42 -05:00
|
|
|
"arrayvec",
|
2022-11-25 05:10:05 -05:00
|
|
|
"borsh",
|
|
|
|
"bytecheck",
|
|
|
|
"byteorder",
|
|
|
|
"bytes",
|
2020-12-04 00:27:17 -05:00
|
|
|
"num-traits",
|
2022-11-25 05:10:05 -05:00
|
|
|
"rand 0.8.3",
|
|
|
|
"rkyv",
|
2020-12-04 00:27:17 -05:00
|
|
|
"serde",
|
2022-11-25 05:10:05 -05:00
|
|
|
"serde_json",
|
2020-12-04 00:27:17 -05:00
|
|
|
]
|
|
|
|
|
2021-05-07 00:44:15 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rust_decimal_macros"
|
2023-12-18 06:18:39 -05:00
|
|
|
version = "1.30.0"
|
2021-05-07 00:44:15 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:18:39 -05:00
|
|
|
checksum = "7ca5c398d85f83b9a44de754a2048625a8c5eafcf070da7b8f116b685e2f6608"
|
2021-05-07 00:44:15 -04:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"quote",
|
2021-05-07 00:44:15 -04:00
|
|
|
"rust_decimal",
|
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-demangle"
|
|
|
|
version = "0.1.23"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-hash"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rustc-hex"
|
|
|
|
version = "2.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6"
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustc_version"
|
|
|
|
version = "0.3.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"semver",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustix"
|
2024-02-06 06:53:45 -05:00
|
|
|
version = "0.38.31"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-06 06:53:45 -05:00
|
|
|
checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949"
|
2023-09-02 19:17:42 -04:00
|
|
|
dependencies = [
|
|
|
|
"bitflags 2.4.0",
|
|
|
|
"errno",
|
|
|
|
"libc",
|
2023-12-13 06:44:49 -05:00
|
|
|
"linux-raw-sys",
|
2023-12-14 06:40:30 -05:00
|
|
|
"windows-sys 0.52.0",
|
2023-03-01 07:10:49 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
|
|
|
version = "0.19.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "064fd21ff87c6e87ed4506e68beb42459caa4a0e2eb144932e6776768556980b"
|
|
|
|
dependencies = [
|
2022-10-21 09:24:34 -04:00
|
|
|
"base64 0.13.1",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
2021-12-01 06:13:27 -05:00
|
|
|
"sct 0.6.0",
|
|
|
|
"webpki 0.21.4",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
|
|
|
version = "0.20.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84"
|
|
|
|
dependencies = [
|
|
|
|
"log",
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
2021-12-01 06:13:27 -05:00
|
|
|
"sct 0.7.0",
|
|
|
|
"webpki 0.22.0",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2023-05-17 07:59:35 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustls"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.22.2"
|
2023-05-17 07:59:35 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "e87c9956bd9807afa1f77e0f7594af32566e830e088a5576d27c5b6f30f49d41"
|
2023-05-17 07:59:35 -04:00
|
|
|
dependencies = [
|
|
|
|
"log",
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.17.3",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls-pki-types",
|
2023-05-17 07:59:35 -04:00
|
|
|
"rustls-webpki",
|
2024-05-30 04:27:48 -04:00
|
|
|
"subtle",
|
|
|
|
"zeroize",
|
2023-05-17 07:59:35 -04:00
|
|
|
]
|
|
|
|
|
2021-08-20 04:23:08 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-native-certs"
|
|
|
|
version = "0.5.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092"
|
|
|
|
dependencies = [
|
|
|
|
"openssl-probe",
|
|
|
|
"rustls 0.19.0",
|
|
|
|
"schannel",
|
|
|
|
"security-framework",
|
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-native-certs"
|
|
|
|
version = "0.6.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00"
|
|
|
|
dependencies = [
|
|
|
|
"openssl-probe",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls-pemfile 1.0.0",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"schannel",
|
|
|
|
"security-framework",
|
|
|
|
]
|
|
|
|
|
2021-12-01 06:13:27 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-pemfile"
|
2022-07-22 07:13:46 -04:00
|
|
|
version = "1.0.0"
|
2021-12-01 06:13:27 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-22 07:13:46 -04:00
|
|
|
checksum = "e7522c9de787ff061458fe9a829dc790a3f5b22dc571694fc5883f448b94d9a9"
|
2021-12-01 06:13:27 -05:00
|
|
|
dependencies = [
|
2022-10-21 09:24:34 -04:00
|
|
|
"base64 0.13.1",
|
2021-12-01 06:13:27 -05:00
|
|
|
]
|
|
|
|
|
2024-05-30 04:27:48 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-pemfile"
|
|
|
|
version = "2.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d"
|
|
|
|
dependencies = [
|
|
|
|
"base64 0.22.1",
|
|
|
|
"rustls-pki-types",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "rustls-pki-types"
|
|
|
|
version = "1.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5ede67b28608b4c60685c7d54122d4400d90f62b40caee7700e700380a390fa8"
|
|
|
|
|
2023-05-17 07:59:35 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustls-webpki"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.102.2"
|
2023-05-17 07:59:35 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610"
|
2023-05-17 07:59:35 -04:00
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.17.3",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls-pki-types",
|
2023-12-14 06:39:54 -05:00
|
|
|
"untrusted 0.9.0",
|
2023-05-17 07:59:35 -04:00
|
|
|
]
|
|
|
|
|
2021-03-29 18:59:51 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rustversion"
|
2024-02-04 01:43:59 -05:00
|
|
|
version = "1.0.14"
|
2021-03-29 18:59:51 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-04 01:43:59 -05:00
|
|
|
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
|
2021-03-29 18:59:51 -04:00
|
|
|
|
2021-05-06 19:37:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "rusty-fork"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f"
|
|
|
|
dependencies = [
|
|
|
|
"fnv",
|
2023-05-24 07:59:31 -04:00
|
|
|
"quick-error",
|
2021-05-06 19:37:10 -04:00
|
|
|
"tempfile",
|
|
|
|
"wait-timeout",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "rw-stream-sink"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020"
|
|
|
|
dependencies = [
|
|
|
|
"futures",
|
2022-07-21 08:14:58 -04:00
|
|
|
"pin-project 0.4.30",
|
2021-03-30 03:26:53 -04:00
|
|
|
"static_assertions",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "ryu"
|
|
|
|
version = "1.0.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
|
|
|
|
2021-08-20 04:23:08 -04:00
|
|
|
[[package]]
|
|
|
|
name = "schannel"
|
|
|
|
version = "0.1.19"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
|
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-08-20 04:23:08 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "scopeguard"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
|
|
|
|
2021-02-01 18:39:34 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sct"
|
|
|
|
version = "0.6.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c"
|
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
|
|
|
"untrusted 0.7.1",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
2021-12-01 06:13:27 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sct"
|
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4"
|
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
|
|
|
"untrusted 0.7.1",
|
2021-12-01 06:13:27 -05:00
|
|
|
]
|
|
|
|
|
2022-11-25 05:10:05 -05:00
|
|
|
[[package]]
|
|
|
|
name = "seahash"
|
|
|
|
version = "4.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "secp256k1"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.24.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "ff55dc09d460954e9ef2fa8a7ced735a964be9981fd50e870b2b3b0705e14964"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-11-22 08:39:42 -05:00
|
|
|
"bitcoin_hashes",
|
|
|
|
"rand 0.8.3",
|
2024-05-27 05:03:20 -04:00
|
|
|
"secp256k1-sys 0.6.1",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "secp256k1"
|
|
|
|
version = "0.27.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f"
|
|
|
|
dependencies = [
|
|
|
|
"secp256k1-sys 0.8.1",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "secp256k1"
|
|
|
|
version = "0.28.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10"
|
|
|
|
dependencies = [
|
|
|
|
"secp256k1-sys 0.9.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "secp256k1-sys"
|
2022-11-22 08:39:42 -05:00
|
|
|
version = "0.6.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-22 08:39:42 -05:00
|
|
|
checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
2024-05-27 05:03:20 -04:00
|
|
|
[[package]]
|
|
|
|
name = "secp256k1-sys"
|
|
|
|
version = "0.8.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "secp256k1-sys"
|
|
|
|
version = "0.9.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "e5d1746aae42c19d583c3c1a8c646bfad910498e2051c551a7f2e3c0c9fbb7eb"
|
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "secp256kfun"
|
2024-05-27 05:03:20 -04:00
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9ecc2adce3ef929c5dc7dacdd612d65ab98002ee18119215ce25d8054ed53c1a"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2024-05-27 05:03:20 -04:00
|
|
|
"bincode 2.0.0-rc.3",
|
2023-12-12 06:42:48 -05:00
|
|
|
"digest 0.10.7",
|
2021-05-25 01:27:57 -04:00
|
|
|
"rand_core 0.6.2",
|
2024-05-27 05:03:20 -04:00
|
|
|
"secp256k1 0.27.0",
|
|
|
|
"secp256k1 0.28.2",
|
|
|
|
"secp256kfun_arithmetic_macros",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
2021-05-25 01:27:57 -04:00
|
|
|
"subtle-ng",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2024-05-27 05:03:20 -04:00
|
|
|
[[package]]
|
|
|
|
name = "secp256kfun_arithmetic_macros"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "91b7c385a72530ebfe6010ff476ad9e235743fb33408a360052bb706f1481e1e"
|
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
]
|
|
|
|
|
2021-08-20 04:23:08 -04:00
|
|
|
[[package]]
|
|
|
|
name = "security-framework"
|
|
|
|
version = "2.3.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "23a2ac85147a3a11d77ecf1bc7166ec0b92febfa4461c37944e180f319ece467"
|
|
|
|
dependencies = [
|
2023-09-02 19:17:42 -04:00
|
|
|
"bitflags 1.3.2",
|
2021-08-20 04:23:08 -04:00
|
|
|
"core-foundation",
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
"security-framework-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "security-framework-sys"
|
|
|
|
version = "2.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7e4effb91b4b8b6fb7732e670b6cee160278ff8e6bf485c7805d9e319d76e284"
|
|
|
|
dependencies = [
|
|
|
|
"core-foundation-sys",
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "semver"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"semver-parser",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-05-18 02:33:38 -04:00
|
|
|
[[package]]
|
|
|
|
name = "semver-parser"
|
|
|
|
version = "0.10.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7"
|
|
|
|
dependencies = [
|
|
|
|
"pest",
|
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "sequential-macro"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "eb5facc5f409a55d25bf271c853402a00e1187097d326757043f5dd711944d07"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sequential-test"
|
|
|
|
version = "0.2.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f0d9c0d773bc7e7733264f460e5dfa00b2510421ddd6284db0749eef8dfb79e9"
|
|
|
|
dependencies = [
|
|
|
|
"sequential-macro",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "serde"
|
2024-05-27 07:29:09 -04:00
|
|
|
version = "1.0.203"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-27 07:29:09 -04:00
|
|
|
checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde-big-array"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "0.3.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "18b20e7752957bbe9661cff4e0bb04d183d0948cdab2ea58cdb9df36a61dfe62"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_cbor"
|
2021-09-03 03:09:52 -04:00
|
|
|
version = "0.11.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 03:09:52 -04:00
|
|
|
checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"half",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_derive"
|
2024-05-27 07:29:09 -04:00
|
|
|
version = "1.0.203"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-27 07:29:09 -04:00
|
|
|
checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_json"
|
2024-05-08 07:58:50 -04:00
|
|
|
version = "1.0.117"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-08 07:58:50 -04:00
|
|
|
checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ryu",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "serde_spanned"
|
2024-05-16 07:18:16 -04:00
|
|
|
version = "0.6.6"
|
2023-12-13 06:45:38 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-16 07:18:16 -04:00
|
|
|
checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0"
|
2023-12-13 06:45:38 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "serde_urlencoded"
|
2022-04-14 10:11:10 -04:00
|
|
|
version = "0.7.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-14 10:11:10 -04:00
|
|
|
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2020-12-17 02:50:15 -05:00
|
|
|
"form_urlencoded",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2020-12-17 02:50:15 -05:00
|
|
|
"ryu",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "serde_with"
|
2022-07-28 12:30:59 -04:00
|
|
|
version = "1.14.0"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-28 12:30:59 -04:00
|
|
|
checksum = "678b5a069e50bf00ecd22d0cd8ddf7c236f68581b03db652061ed5eb13a312ff"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_with_macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serde_with_macros"
|
2022-04-25 07:09:59 -04:00
|
|
|
version = "1.5.2"
|
2021-06-28 02:45:40 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-25 07:09:59 -04:00
|
|
|
checksum = "e182d6ec6f05393cc0e5ed1bf81ad6db3a8feedf8ee515ecdd369809bcce8082"
|
2021-06-28 02:45:40 -04:00
|
|
|
dependencies = [
|
|
|
|
"darling",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-06-28 02:45:40 -04:00
|
|
|
]
|
|
|
|
|
2022-12-03 13:47:42 -05:00
|
|
|
[[package]]
|
|
|
|
name = "serial_test"
|
2024-01-08 06:27:04 -05:00
|
|
|
version = "3.0.0"
|
2022-12-03 13:47:42 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-01-08 06:27:04 -05:00
|
|
|
checksum = "953ad9342b3aaca7cb43c45c097dd008d4907070394bd0751a0aa8817e5a018d"
|
2022-12-03 13:47:42 -05:00
|
|
|
dependencies = [
|
|
|
|
"dashmap",
|
|
|
|
"futures",
|
|
|
|
"lazy_static",
|
|
|
|
"log",
|
|
|
|
"parking_lot 0.12.0",
|
|
|
|
"serial_test_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "serial_test_derive"
|
2024-01-08 06:27:04 -05:00
|
|
|
version = "3.0.0"
|
2022-12-03 13:47:42 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-01-08 06:27:04 -05:00
|
|
|
checksum = "b93fb4adc70021ac1b47f7d45e8cc4169baaa7ea58483bc5b721d19a26202212"
|
2022-12-03 13:47:42 -05:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2022-12-03 13:47:42 -05:00
|
|
|
]
|
|
|
|
|
2021-02-16 00:37:44 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sha-1"
|
|
|
|
version = "0.9.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dfebf75d25bd900fd1e7d11501efab59bc846dbc76196839663e6637bba9f25f"
|
|
|
|
dependencies = [
|
2022-04-04 06:49:02 -04:00
|
|
|
"block-buffer 0.9.0",
|
2021-02-16 00:37:44 -05:00
|
|
|
"cfg-if 1.0.0",
|
2021-05-18 02:33:38 -04:00
|
|
|
"cpuid-bool",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sha2"
|
2021-09-09 07:09:24 -04:00
|
|
|
version = "0.9.8"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-09 07:09:24 -04:00
|
|
|
checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-04-04 06:49:02 -04:00
|
|
|
"block-buffer 0.9.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"cfg-if 1.0.0",
|
2021-09-03 03:09:52 -04:00
|
|
|
"cpufeatures 0.2.1",
|
2022-04-04 06:49:02 -04:00
|
|
|
"digest 0.9.0",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2022-04-04 06:49:02 -04:00
|
|
|
[[package]]
|
|
|
|
name = "sha2"
|
2023-12-12 06:42:48 -05:00
|
|
|
version = "0.10.8"
|
2022-04-04 06:49:02 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-12 06:42:48 -05:00
|
|
|
checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"
|
2022-04-04 06:49:02 -04:00
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"cpufeatures 0.2.1",
|
2023-12-12 06:42:48 -05:00
|
|
|
"digest 0.10.7",
|
2022-04-04 06:49:02 -04:00
|
|
|
]
|
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "sha3"
|
2021-09-03 07:08:32 -04:00
|
|
|
version = "0.9.1"
|
2021-04-21 21:33:36 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-03 07:08:32 -04:00
|
|
|
checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809"
|
2021-04-21 21:33:36 -04:00
|
|
|
dependencies = [
|
2022-04-04 06:49:02 -04:00
|
|
|
"block-buffer 0.9.0",
|
|
|
|
"digest 0.9.0",
|
2021-04-21 21:33:36 -04:00
|
|
|
"keccak",
|
2021-09-03 07:08:32 -04:00
|
|
|
"opaque-debug",
|
2021-04-21 21:33:36 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sharded-slab"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.1.7"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
|
|
|
]
|
|
|
|
|
2023-01-16 06:04:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "shell-words"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
|
|
|
|
|
2021-02-17 21:33:50 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sigma_fun"
|
2024-05-27 05:03:20 -04:00
|
|
|
version = "0.7.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "0b8e9462de42c6f14c7e20154d18d8e9e8683750798885e76f06973317b1cb1d"
|
2021-02-17 21:33:50 -05:00
|
|
|
dependencies = [
|
2021-05-25 01:27:57 -04:00
|
|
|
"curve25519-dalek-ng",
|
2023-12-12 06:42:48 -05:00
|
|
|
"digest 0.10.7",
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
2021-05-25 01:27:57 -04:00
|
|
|
"rand_core 0.6.2",
|
2021-02-17 21:33:50 -05:00
|
|
|
"secp256kfun",
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "signal-hook-registry"
|
2021-07-06 00:19:15 -04:00
|
|
|
version = "1.4.0"
|
2021-02-24 02:08:25 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-07-06 00:19:15 -04:00
|
|
|
checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
|
2021-02-24 02:08:25 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "signature"
|
2021-02-01 00:10:43 -05:00
|
|
|
version = "1.3.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-01 00:10:43 -05:00
|
|
|
checksum = "0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "similar"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
version = "2.3.0"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
checksum = "2aeaf503862c419d66959f5d7ca015337d864e9c49485d771b732e2a20453597"
|
2023-09-02 19:17:42 -04:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "slab"
|
|
|
|
version = "0.4.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sled"
|
2021-09-13 07:08:04 -04:00
|
|
|
version = "0.34.7"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-09-13 07:08:04 -04:00
|
|
|
checksum = "7f96b4737c2ce5987354855aed3797279def4ebf734436c6aa4552cf8e169935"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"crc32fast",
|
|
|
|
"crossbeam-epoch",
|
2020-12-17 02:50:15 -05:00
|
|
|
"crossbeam-utils",
|
2020-11-30 17:31:41 -05:00
|
|
|
"fs2",
|
|
|
|
"fxhash",
|
|
|
|
"libc",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "smallvec"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "1.13.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "snow"
|
2021-05-18 02:33:38 -04:00
|
|
|
version = "0.8.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-05-18 02:33:38 -04:00
|
|
|
checksum = "6142f7c25e94f6fd25a32c3348ec230df9109b463f59c8c7acc4bd34936babb7"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"aes-gcm",
|
|
|
|
"blake2",
|
|
|
|
"chacha20poly1305",
|
2021-05-18 02:33:38 -04:00
|
|
|
"rand 0.8.3",
|
|
|
|
"rand_core 0.6.2",
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
2021-09-03 07:08:32 -04:00
|
|
|
"rustc_version",
|
2022-04-04 06:49:02 -04:00
|
|
|
"sha2 0.9.8",
|
2021-09-03 07:08:32 -04:00
|
|
|
"subtle",
|
2020-11-30 17:31:41 -05:00
|
|
|
"x25519-dalek",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2021-02-01 00:10:43 -05:00
|
|
|
version = "0.3.19"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-01 00:10:43 -05:00
|
|
|
checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2020-12-17 02:50:15 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2022-11-08 06:04:47 -05:00
|
|
|
version = "0.4.7"
|
2021-03-18 00:30:09 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-08 06:04:47 -05:00
|
|
|
checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd"
|
2021-03-18 00:30:09 -04:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-09-02 19:17:42 -04:00
|
|
|
[[package]]
|
|
|
|
name = "socket2"
|
2023-12-14 06:39:26 -05:00
|
|
|
version = "0.5.5"
|
2023-09-02 19:17:42 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:39:26 -05:00
|
|
|
checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9"
|
2023-09-02 19:17:42 -04:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"windows-sys 0.48.0",
|
|
|
|
]
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "soketto"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
version = "0.7.1"
|
2021-04-07 20:02:13 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2"
|
2021-04-07 20:02:13 -04:00
|
|
|
dependencies = [
|
2022-10-21 09:24:34 -04:00
|
|
|
"base64 0.13.1",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2021-04-07 20:02:13 -04:00
|
|
|
"flate2",
|
|
|
|
"futures",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"http 0.2.11",
|
2021-04-07 20:02:13 -04:00
|
|
|
"httparse",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-10-12 18:52:39 -04:00
|
|
|
"rand 0.8.3",
|
2021-04-07 20:02:13 -04:00
|
|
|
"sha-1",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "spin"
|
|
|
|
version = "0.5.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
|
|
|
|
|
2022-11-30 06:39:20 -05:00
|
|
|
[[package]]
|
|
|
|
name = "spin"
|
|
|
|
version = "0.9.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09"
|
|
|
|
dependencies = [
|
|
|
|
"lock_api",
|
|
|
|
]
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "sqlformat"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.2.0"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "f87e292b4291f154971a43c3774364e2cbcaec599d3f5bf6fa9d122885dbc38a"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
2023-12-18 06:17:44 -05:00
|
|
|
"itertools 0.10.5",
|
2022-12-03 13:47:42 -05:00
|
|
|
"nom",
|
2021-09-20 19:14:33 -04:00
|
|
|
"unicode_categories",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx"
|
2023-04-13 07:58:14 -04:00
|
|
|
version = "0.6.3"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 07:58:14 -04:00
|
|
|
checksum = "f8de3b03a925878ed54a954f621e64bf55a3c1bd29652d0d1a17830405350188"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"sqlx-core",
|
|
|
|
"sqlx-macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-core"
|
2023-04-13 07:58:14 -04:00
|
|
|
version = "0.6.3"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 07:58:14 -04:00
|
|
|
checksum = "fa8241483a83a3f33aa5fff7e7d9def398ff9990b2752b6c6112b83c6d246029"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"ahash",
|
2021-09-20 19:14:33 -04:00
|
|
|
"atoi",
|
2023-09-02 19:17:42 -04:00
|
|
|
"bitflags 1.3.2",
|
2021-09-20 19:14:33 -04:00
|
|
|
"byteorder",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2021-09-20 19:14:33 -04:00
|
|
|
"crc",
|
|
|
|
"crossbeam-queue",
|
2022-11-30 06:39:20 -05:00
|
|
|
"dotenvy",
|
2021-09-20 19:14:33 -04:00
|
|
|
"either",
|
2022-11-30 06:39:20 -05:00
|
|
|
"event-listener",
|
|
|
|
"flume",
|
2021-09-20 19:14:33 -04:00
|
|
|
"futures-channel",
|
|
|
|
"futures-core",
|
2022-11-30 06:39:20 -05:00
|
|
|
"futures-executor",
|
2021-09-20 19:14:33 -04:00
|
|
|
"futures-intrusive",
|
|
|
|
"futures-util",
|
|
|
|
"hashlink",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2023-12-13 06:45:38 -05:00
|
|
|
"indexmap 1.7.0",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2021-09-20 19:14:33 -04:00
|
|
|
"libc",
|
|
|
|
"libsqlite3-sys",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-09-20 19:14:33 -04:00
|
|
|
"memchr",
|
|
|
|
"once_cell",
|
2022-11-30 06:39:20 -05:00
|
|
|
"paste",
|
2021-10-06 21:26:51 -04:00
|
|
|
"percent-encoding",
|
2022-11-30 06:39:20 -05:00
|
|
|
"rustls 0.20.2",
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls-pemfile 1.0.0",
|
2021-09-20 19:14:33 -04:00
|
|
|
"serde",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2021-09-20 19:14:33 -04:00
|
|
|
"smallvec",
|
|
|
|
"sqlformat",
|
|
|
|
"sqlx-rt",
|
|
|
|
"stringprep",
|
|
|
|
"thiserror",
|
|
|
|
"tokio-stream",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2022-11-30 06:39:20 -05:00
|
|
|
"webpki-roots 0.22.2",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-macros"
|
2023-04-13 07:58:14 -04:00
|
|
|
version = "0.6.3"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 07:58:14 -04:00
|
|
|
checksum = "9966e64ae989e7e575b19d7265cb79d7fc3cbbdf179835cb0d716f294c2049c9"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
2022-11-30 06:39:20 -05:00
|
|
|
"dotenvy",
|
2021-09-20 19:14:33 -04:00
|
|
|
"either",
|
2023-12-11 06:17:18 -05:00
|
|
|
"heck 0.4.1",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2021-09-20 19:14:33 -04:00
|
|
|
"once_cell",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2021-09-20 19:14:33 -04:00
|
|
|
"sqlx-core",
|
|
|
|
"sqlx-rt",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "sqlx-rt"
|
2023-04-13 07:58:14 -04:00
|
|
|
version = "0.6.3"
|
2021-09-20 19:14:33 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 07:58:14 -04:00
|
|
|
checksum = "804d3f245f894e61b1e6263c84b23ca675d96753b5abfd5cc8597d86806e8024"
|
2021-09-20 19:14:33 -04:00
|
|
|
dependencies = [
|
|
|
|
"once_cell",
|
|
|
|
"tokio",
|
2022-11-30 06:39:20 -05:00
|
|
|
"tokio-rustls 0.23.1",
|
2021-09-20 19:14:33 -04:00
|
|
|
]
|
|
|
|
|
2021-10-12 18:52:39 -04:00
|
|
|
[[package]]
|
|
|
|
name = "stable_deref_trait"
|
|
|
|
version = "1.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "static_assertions"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "stringprep"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ee348cb74b87454fff4b551cbf727025810a004f88aeacae7f85b87f4e9a1c1"
|
|
|
|
dependencies = [
|
|
|
|
"unicode-bidi",
|
|
|
|
"unicode-normalization",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "strsim"
|
|
|
|
version = "0.8.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
|
|
|
|
2021-06-28 02:45:40 -04:00
|
|
|
[[package]]
|
|
|
|
name = "strsim"
|
|
|
|
version = "0.10.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "structopt"
|
2022-03-14 07:25:43 -04:00
|
|
|
version = "0.3.26"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-03-14 07:25:43 -04:00
|
|
|
checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"clap",
|
|
|
|
"lazy_static",
|
|
|
|
"structopt-derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "structopt-derive"
|
2021-10-18 07:08:35 -04:00
|
|
|
version = "0.4.18"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-18 07:08:35 -04:00
|
|
|
checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-04-14 10:11:10 -04:00
|
|
|
"heck 0.3.2",
|
2021-01-04 22:08:36 -05:00
|
|
|
"proc-macro-error",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2024-01-29 06:06:15 -05:00
|
|
|
[[package]]
|
|
|
|
name = "strum"
|
2024-03-11 07:54:07 -04:00
|
|
|
version = "0.26.2"
|
2024-01-29 06:06:15 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-11 07:54:07 -04:00
|
|
|
checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29"
|
2020-12-22 00:28:14 -05:00
|
|
|
dependencies = [
|
2024-04-08 07:42:05 -04:00
|
|
|
"strum_macros",
|
2023-12-11 06:17:18 -05:00
|
|
|
]
|
|
|
|
|
2024-01-29 06:06:15 -05:00
|
|
|
[[package]]
|
|
|
|
name = "strum_macros"
|
|
|
|
version = "0.26.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7a3417fc93d76740d974a01654a09777cb500428cc874ca9f45edfe0c4d4cd18"
|
|
|
|
dependencies = [
|
|
|
|
"heck 0.4.1",
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"rustversion",
|
|
|
|
"syn 2.0.46",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "subtle"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "2.5.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-05-25 01:27:57 -04:00
|
|
|
[[package]]
|
|
|
|
name = "subtle-ng"
|
|
|
|
version = "2.4.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8049cf85f0e715d6af38dde439cb0ccb91f67fb9f5f63c80f8b43e48356e1a3f"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "swap"
|
2024-05-29 10:00:17 -04:00
|
|
|
version = "0.13.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
2021-02-24 02:08:25 -05:00
|
|
|
"async-compression",
|
2020-11-30 17:31:41 -05:00
|
|
|
"async-trait",
|
|
|
|
"atty",
|
|
|
|
"backoff",
|
2024-05-01 07:36:56 -04:00
|
|
|
"base64 0.22.1",
|
2021-02-01 18:39:34 -05:00
|
|
|
"bdk",
|
2021-02-28 19:46:53 -05:00
|
|
|
"big-bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"bitcoin",
|
2020-12-03 01:28:23 -05:00
|
|
|
"bitcoin-harness",
|
2021-03-29 18:59:51 -04:00
|
|
|
"bmrng",
|
2021-07-06 00:19:15 -04:00
|
|
|
"comfy-table",
|
2021-01-26 21:33:32 -05:00
|
|
|
"config",
|
2020-12-01 18:00:00 -05:00
|
|
|
"conquer-once",
|
2021-05-25 01:27:57 -04:00
|
|
|
"curve25519-dalek-ng",
|
2021-04-21 21:33:36 -04:00
|
|
|
"data-encoding",
|
2021-01-26 21:33:32 -05:00
|
|
|
"dialoguer",
|
2024-03-22 05:18:40 -04:00
|
|
|
"digest 0.10.7",
|
2021-01-26 21:33:32 -05:00
|
|
|
"directories-next",
|
2020-11-30 17:31:41 -05:00
|
|
|
"ecdsa_fun",
|
2021-04-22 02:03:12 -04:00
|
|
|
"ed25519-dalek",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures",
|
2020-12-17 19:54:13 -05:00
|
|
|
"get-port",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2024-04-17 07:50:10 -04:00
|
|
|
"hyper 1.3.1",
|
2024-05-17 07:58:52 -04:00
|
|
|
"itertools 0.13.0",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"jsonrpsee",
|
|
|
|
"jsonrpsee-core",
|
2021-06-23 23:54:26 -04:00
|
|
|
"libp2p",
|
2023-09-02 19:17:42 -04:00
|
|
|
"mockito",
|
2020-11-30 17:31:41 -05:00
|
|
|
"monero",
|
|
|
|
"monero-harness",
|
2021-02-21 20:32:15 -05:00
|
|
|
"monero-rpc",
|
2021-01-07 20:04:48 -05:00
|
|
|
"pem",
|
2020-11-30 17:31:41 -05:00
|
|
|
"port_check",
|
2021-05-06 19:37:10 -04:00
|
|
|
"proptest",
|
2021-05-30 07:53:43 -04:00
|
|
|
"qrcode",
|
2021-05-25 01:27:57 -04:00
|
|
|
"rand 0.8.3",
|
2021-06-17 07:06:16 -04:00
|
|
|
"rand_chacha 0.3.1",
|
2020-11-30 17:31:41 -05:00
|
|
|
"reqwest",
|
2021-01-04 22:08:36 -05:00
|
|
|
"rust_decimal",
|
2021-05-07 00:44:15 -04:00
|
|
|
"rust_decimal_macros",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"sequential-test",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
"serde_cbor",
|
|
|
|
"serde_json",
|
2021-06-28 02:45:40 -04:00
|
|
|
"serde_with",
|
2022-12-03 13:47:42 -05:00
|
|
|
"serial_test",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2021-02-17 21:33:50 -05:00
|
|
|
"sigma_fun",
|
2021-09-20 19:14:33 -04:00
|
|
|
"sqlx",
|
2020-11-30 17:31:41 -05:00
|
|
|
"structopt",
|
2024-04-08 07:42:05 -04:00
|
|
|
"strum",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tempfile",
|
2024-02-23 14:04:27 -05:00
|
|
|
"testcontainers",
|
2021-01-04 22:08:36 -05:00
|
|
|
"thiserror",
|
2024-04-11 07:48:20 -04:00
|
|
|
"time 0.3.36",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-04-21 21:33:36 -04:00
|
|
|
"tokio-socks",
|
2021-02-24 02:08:25 -05:00
|
|
|
"tokio-tar",
|
2021-02-16 00:37:44 -05:00
|
|
|
"tokio-tungstenite",
|
2023-04-18 07:58:35 -04:00
|
|
|
"tokio-util",
|
2024-05-16 07:18:16 -04:00
|
|
|
"toml 0.8.13",
|
2021-04-21 21:33:36 -04:00
|
|
|
"torut",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing",
|
2021-04-02 03:22:51 -04:00
|
|
|
"tracing-appender",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing-futures",
|
2023-12-18 06:17:25 -05:00
|
|
|
"tracing-subscriber 0.3.18",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2020-11-30 17:31:41 -05:00
|
|
|
"uuid",
|
2021-07-07 03:44:49 -04:00
|
|
|
"vergen",
|
2020-11-30 17:31:41 -05:00
|
|
|
"void",
|
2021-03-01 01:34:25 -05:00
|
|
|
"zip",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
2023-04-13 07:58:14 -04:00
|
|
|
version = "1.0.109"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 07:58:14 -04:00
|
|
|
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2022-07-21 08:14:58 -04:00
|
|
|
"unicode-ident",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-03-20 07:59:25 -04:00
|
|
|
[[package]]
|
|
|
|
name = "syn"
|
2024-01-02 06:44:56 -05:00
|
|
|
version = "2.0.46"
|
2023-03-20 07:59:25 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-01-02 06:44:56 -05:00
|
|
|
checksum = "89456b690ff72fddcecf231caedbe615c59480c93358a93dfae7fc29e3ebbf0e"
|
2023-03-20 07:59:25 -04:00
|
|
|
dependencies = [
|
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
|
|
|
"unicode-ident",
|
|
|
|
]
|
|
|
|
|
2024-02-01 06:34:26 -05:00
|
|
|
[[package]]
|
|
|
|
name = "sync_wrapper"
|
|
|
|
version = "0.1.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "synstructure"
|
|
|
|
version = "0.12.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2023-04-13 07:58:14 -04:00
|
|
|
"syn 1.0.109",
|
2021-09-03 07:08:32 -04:00
|
|
|
"unicode-xid",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tempfile"
|
2024-02-27 06:36:17 -05:00
|
|
|
version = "3.10.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-27 06:36:17 -05:00
|
|
|
checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-02-01 00:10:43 -05:00
|
|
|
"cfg-if 1.0.0",
|
2022-02-22 08:31:40 -05:00
|
|
|
"fastrand",
|
2023-12-13 06:44:49 -05:00
|
|
|
"rustix",
|
2023-12-28 06:25:47 -05:00
|
|
|
"windows-sys 0.52.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-01-26 21:33:32 -05:00
|
|
|
[[package]]
|
|
|
|
name = "terminal_size"
|
|
|
|
version = "0.1.16"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "86ca8ced750734db02076f44132d802af0b33b09942331f4459dde8636fd2406"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-01-26 21:33:32 -05:00
|
|
|
]
|
|
|
|
|
2021-02-16 01:09:09 -05:00
|
|
|
[[package]]
|
|
|
|
name = "testcontainers"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.15.0"
|
2021-02-16 01:09:09 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "f83d2931d7f521af5bae989f716c3fa43a6af9af7ec7a5e21b59ae40878cec00"
|
2021-02-16 01:09:09 -05:00
|
|
|
dependencies = [
|
2022-08-27 06:26:55 -04:00
|
|
|
"bollard-stubs",
|
|
|
|
"futures",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2022-08-27 06:26:55 -04:00
|
|
|
"hmac 0.12.1",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand 0.8.3",
|
2021-02-16 01:09:09 -05:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2023-12-12 06:42:48 -05:00
|
|
|
"sha2 0.10.8",
|
2021-02-16 01:09:09 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "textwrap"
|
|
|
|
version = "0.11.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
|
|
|
dependencies = [
|
|
|
|
"unicode-width",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror"
|
2024-05-20 07:30:15 -04:00
|
|
|
version = "1.0.61"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-20 07:30:15 -04:00
|
|
|
checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"thiserror-impl",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thiserror-impl"
|
2024-05-20 07:30:15 -04:00
|
|
|
version = "1.0.61"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-20 07:30:15 -04:00
|
|
|
checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "thread_local"
|
2022-07-26 08:08:55 -04:00
|
|
|
version = "1.1.4"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-26 08:08:55 -04:00
|
|
|
checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-03-18 00:30:09 -04:00
|
|
|
"once_cell",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-03-01 01:34:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "time"
|
|
|
|
version = "0.1.43"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-03-01 01:34:25 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "time"
|
2024-04-11 07:48:20 -04:00
|
|
|
version = "0.3.36"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-11 07:48:20 -04:00
|
|
|
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2023-07-31 04:32:15 -04:00
|
|
|
"deranged",
|
2024-02-23 15:25:06 -05:00
|
|
|
"itoa",
|
2024-02-04 01:43:59 -05:00
|
|
|
"libc",
|
2024-02-01 06:33:32 -05:00
|
|
|
"num-conv",
|
2024-02-04 01:43:59 -05:00
|
|
|
"num_threads",
|
2023-12-15 06:19:47 -05:00
|
|
|
"powerfmt",
|
2022-10-24 07:10:44 -04:00
|
|
|
"serde",
|
|
|
|
"time-core",
|
|
|
|
"time-macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "time-core"
|
2023-12-15 06:19:47 -05:00
|
|
|
version = "0.1.2"
|
2022-10-24 07:10:44 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-15 06:19:47 -05:00
|
|
|
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
|
2022-10-24 07:10:44 -04:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "time-macros"
|
2024-04-11 07:48:20 -04:00
|
|
|
version = "0.2.18"
|
2022-10-24 07:10:44 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-04-11 07:48:20 -04:00
|
|
|
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
|
2022-10-24 07:10:44 -04:00
|
|
|
dependencies = [
|
2024-02-01 06:33:32 -05:00
|
|
|
"num-conv",
|
2022-10-24 07:10:44 -04:00
|
|
|
"time-core",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tiny-keccak"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "2.0.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-03-30 03:26:53 -04:00
|
|
|
"crunchy",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tinyvec"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "1.1.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"tinyvec_macros",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tinyvec_macros"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio"
|
2024-03-29 07:37:49 -04:00
|
|
|
version = "1.37.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-29 07:37:49 -04:00
|
|
|
checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2023-09-02 19:17:42 -04:00
|
|
|
"backtrace",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2021-01-15 00:58:16 -05:00
|
|
|
"libc",
|
2022-11-08 12:29:03 -05:00
|
|
|
"mio",
|
2020-11-30 17:31:41 -05:00
|
|
|
"num_cpus",
|
2022-11-08 12:29:03 -05:00
|
|
|
"parking_lot 0.12.0",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-02-24 02:08:25 -05:00
|
|
|
"signal-hook-registry",
|
2023-12-14 06:39:26 -05:00
|
|
|
"socket2 0.5.5",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tokio-macros",
|
2023-09-02 19:17:42 -04:00
|
|
|
"windows-sys 0.48.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-macros"
|
2023-12-14 06:39:26 -05:00
|
|
|
version = "2.2.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:39:26 -05:00
|
|
|
checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-rustls"
|
|
|
|
version = "0.22.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6"
|
|
|
|
dependencies = [
|
|
|
|
"rustls 0.19.0",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-12-01 06:13:27 -05:00
|
|
|
"webpki 0.21.4",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tokio-rustls"
|
|
|
|
version = "0.23.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4baa378e417d780beff82bf54ceb0d195193ea6a00c14e22359e7f39456b5689"
|
|
|
|
dependencies = [
|
|
|
|
"rustls 0.20.2",
|
|
|
|
"tokio",
|
|
|
|
"webpki 0.22.0",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2023-05-17 07:59:35 -04:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-rustls"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.25.0"
|
2023-05-17 07:59:35 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f"
|
2023-05-17 07:59:35 -04:00
|
|
|
dependencies = [
|
2024-05-30 04:27:48 -04:00
|
|
|
"rustls 0.22.2",
|
|
|
|
"rustls-pki-types",
|
2023-05-17 07:59:35 -04:00
|
|
|
"tokio",
|
|
|
|
]
|
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-socks"
|
|
|
|
version = "0.5.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0"
|
|
|
|
dependencies = [
|
|
|
|
"either",
|
|
|
|
"futures-util",
|
|
|
|
"thiserror",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-04-21 21:33:36 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
2021-01-15 00:58:16 -05:00
|
|
|
name = "tokio-stream"
|
2022-11-30 06:39:20 -05:00
|
|
|
version = "0.1.11"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-11-30 06:39:20 -05:00
|
|
|
checksum = "d660770404473ccd7bc9f8b28494a811bc18542b915c0855c51e8f419d5223ce"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-01-15 00:58:16 -05:00
|
|
|
"futures-core",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-tar"
|
2023-12-14 06:40:30 -05:00
|
|
|
version = "0.3.1"
|
2021-05-17 22:52:17 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:40:30 -05:00
|
|
|
checksum = "9d5714c010ca3e5c27114c1cdeb9d14641ace49874aa5626d7149e47aedace75"
|
2021-02-24 02:08:25 -05:00
|
|
|
dependencies = [
|
|
|
|
"filetime",
|
|
|
|
"futures-core",
|
|
|
|
"libc",
|
2023-12-14 06:40:30 -05:00
|
|
|
"redox_syscall 0.3.5",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-02-24 02:08:25 -05:00
|
|
|
"tokio-stream",
|
|
|
|
"xattr",
|
|
|
|
]
|
|
|
|
|
2021-02-16 00:37:44 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-tungstenite"
|
2021-08-20 04:23:08 -04:00
|
|
|
version = "0.15.0"
|
2021-02-16 00:37:44 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-08-20 04:23:08 -04:00
|
|
|
checksum = "511de3f85caf1c98983545490c3d09685fa8eb634e57eec22bb4db271f46cbd8"
|
2021-02-16 00:37:44 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-util",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project 1.0.5",
|
2021-03-14 22:59:14 -04:00
|
|
|
"rustls 0.19.0",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-12-01 06:13:27 -05:00
|
|
|
"tokio-rustls 0.22.0",
|
2021-02-16 00:37:44 -05:00
|
|
|
"tungstenite",
|
2021-12-01 06:13:27 -05:00
|
|
|
"webpki 0.21.4",
|
2021-03-14 22:59:14 -04:00
|
|
|
"webpki-roots 0.21.0",
|
2021-02-16 00:37:44 -05:00
|
|
|
]
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tokio-util"
|
2024-05-06 07:47:38 -04:00
|
|
|
version = "0.7.11"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-06 07:47:38 -04:00
|
|
|
checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures-core",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"futures-io",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures-sink",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-01-15 00:58:16 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "toml"
|
2023-01-20 06:03:20 -05:00
|
|
|
version = "0.5.11"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-01-20 06:03:20 -05:00
|
|
|
checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
|
2021-01-15 00:58:16 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "toml"
|
2024-05-16 07:18:16 -04:00
|
|
|
version = "0.8.13"
|
2023-12-13 06:45:38 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-16 07:18:16 -04:00
|
|
|
checksum = "a4e43f8cc456c9704c851ae29c67e17ef65d2c30017c17a9765b89c382dc8bba"
|
2023-12-13 06:45:38 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"serde_spanned",
|
|
|
|
"toml_datetime",
|
|
|
|
"toml_edit",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "toml_datetime"
|
2024-05-16 07:18:16 -04:00
|
|
|
version = "0.6.6"
|
2023-12-13 06:45:38 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-16 07:18:16 -04:00
|
|
|
checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf"
|
2023-12-13 06:45:38 -05:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "toml_edit"
|
2024-05-16 07:18:16 -04:00
|
|
|
version = "0.22.13"
|
2023-12-13 06:45:38 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-16 07:18:16 -04:00
|
|
|
checksum = "c127785850e8c20836d49732ae6abfa47616e60bf9d9f57c43c250361a9db96c"
|
2023-12-13 06:45:38 -05:00
|
|
|
dependencies = [
|
|
|
|
"indexmap 2.1.0",
|
|
|
|
"serde",
|
|
|
|
"serde_spanned",
|
|
|
|
"toml_datetime",
|
|
|
|
"winnow",
|
|
|
|
]
|
|
|
|
|
2021-04-21 21:33:36 -04:00
|
|
|
[[package]]
|
|
|
|
name = "torut"
|
2022-02-22 23:59:28 -05:00
|
|
|
version = "0.2.1"
|
2021-05-04 00:35:57 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-02-22 23:59:28 -05:00
|
|
|
checksum = "99febc413f26cf855b3a309c5872edff5c31e0ffe9c2fce5681868761df36f69"
|
2021-04-21 21:33:36 -04:00
|
|
|
dependencies = [
|
|
|
|
"base32",
|
2022-10-21 09:24:34 -04:00
|
|
|
"base64 0.13.1",
|
2021-04-21 21:33:36 -04:00
|
|
|
"derive_more",
|
|
|
|
"ed25519-dalek",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2021-09-03 07:08:32 -04:00
|
|
|
"hmac 0.11.0",
|
2021-04-21 21:33:36 -04:00
|
|
|
"rand 0.7.3",
|
2022-04-04 06:49:02 -04:00
|
|
|
"sha2 0.9.8",
|
2021-04-21 21:33:36 -04:00
|
|
|
"sha3",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-04-21 21:33:36 -04:00
|
|
|
]
|
|
|
|
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "tower"
|
|
|
|
version = "0.4.13"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
|
|
|
|
dependencies = [
|
2024-05-30 04:27:48 -04:00
|
|
|
"futures-core",
|
|
|
|
"futures-util",
|
|
|
|
"pin-project 1.0.5",
|
|
|
|
"pin-project-lite 0.2.13",
|
|
|
|
"tokio",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"tower-layer",
|
|
|
|
"tower-service",
|
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tower-layer"
|
|
|
|
version = "0.3.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tower-service"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.3.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing"
|
2023-12-11 06:17:40 -05:00
|
|
|
version = "0.1.40"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:17:40 -05:00
|
|
|
checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"log",
|
2023-09-02 19:17:42 -04:00
|
|
|
"pin-project-lite 0.2.13",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing-attributes",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2021-04-02 03:22:51 -04:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-appender"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.2.3"
|
2021-04-02 03:22:51 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf"
|
2021-04-02 03:22:51 -04:00
|
|
|
dependencies = [
|
|
|
|
"crossbeam-channel",
|
2023-12-18 06:17:25 -05:00
|
|
|
"thiserror",
|
2024-04-11 07:48:20 -04:00
|
|
|
"time 0.3.36",
|
2023-12-18 06:17:25 -05:00
|
|
|
"tracing-subscriber 0.3.18",
|
2021-04-02 03:22:51 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-attributes"
|
2023-12-11 06:17:40 -05:00
|
|
|
version = "0.1.27"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:17:40 -05:00
|
|
|
checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-01-02 06:44:56 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-core"
|
2023-12-11 06:17:40 -05:00
|
|
|
version = "0.1.32"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:17:40 -05:00
|
|
|
checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2022-07-26 08:08:55 -04:00
|
|
|
"once_cell",
|
2022-04-14 10:11:10 -04:00
|
|
|
"valuable",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-futures"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.2.5"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
|
|
|
"futures-task",
|
2021-03-18 00:30:09 -04:00
|
|
|
"pin-project 1.0.5",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-log"
|
2021-02-21 20:41:04 -05:00
|
|
|
version = "0.1.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-02-21 20:41:04 -05:00
|
|
|
checksum = "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"lazy_static",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2023-12-18 06:17:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-log"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
|
|
|
dependencies = [
|
|
|
|
"log",
|
|
|
|
"once_cell",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2021-05-09 22:03:43 -04:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-serde"
|
2022-07-26 08:08:55 -04:00
|
|
|
version = "0.1.3"
|
2021-05-09 22:03:43 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-07-26 08:08:55 -04:00
|
|
|
checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1"
|
2021-05-09 22:03:43 -04:00
|
|
|
dependencies = [
|
|
|
|
"serde",
|
|
|
|
"tracing-core",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tracing-subscriber"
|
2021-10-06 07:08:32 -04:00
|
|
|
version = "0.2.25"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-10-06 07:08:32 -04:00
|
|
|
checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"ansi_term 0.12.1",
|
2021-02-28 20:04:39 -05:00
|
|
|
"chrono",
|
2020-11-30 17:31:41 -05:00
|
|
|
"lazy_static",
|
2022-07-26 08:08:55 -04:00
|
|
|
"matchers 0.0.1",
|
|
|
|
"regex",
|
|
|
|
"sharded-slab",
|
|
|
|
"thread_local",
|
|
|
|
"tracing",
|
|
|
|
"tracing-core",
|
2023-12-18 06:17:25 -05:00
|
|
|
"tracing-log 0.1.2",
|
2022-07-26 08:08:55 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "tracing-subscriber"
|
2023-12-18 06:17:25 -05:00
|
|
|
version = "0.3.18"
|
2022-07-26 08:08:55 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-18 06:17:25 -05:00
|
|
|
checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
|
2022-07-26 08:08:55 -04:00
|
|
|
dependencies = [
|
|
|
|
"matchers 0.1.0",
|
2023-12-18 06:17:25 -05:00
|
|
|
"nu-ansi-term",
|
2022-07-26 08:08:55 -04:00
|
|
|
"once_cell",
|
2020-11-30 17:31:41 -05:00
|
|
|
"regex",
|
2021-05-09 22:03:43 -04:00
|
|
|
"serde",
|
|
|
|
"serde_json",
|
2020-11-30 17:31:41 -05:00
|
|
|
"sharded-slab",
|
|
|
|
"thread_local",
|
2024-04-11 07:48:20 -04:00
|
|
|
"time 0.3.36",
|
2020-11-30 17:31:41 -05:00
|
|
|
"tracing",
|
|
|
|
"tracing-core",
|
2023-12-18 06:17:25 -05:00
|
|
|
"tracing-log 0.2.0",
|
2021-05-09 22:03:43 -04:00
|
|
|
"tracing-serde",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "trust-dns-proto"
|
|
|
|
version = "0.20.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8d57e219ba600dd96c2f6d82eb79645068e14edbc5c7e27514af40436b88150c"
|
|
|
|
dependencies = [
|
|
|
|
"async-trait",
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"data-encoding",
|
|
|
|
"enum-as-inner",
|
|
|
|
"futures-channel",
|
|
|
|
"futures-io",
|
|
|
|
"futures-util",
|
2022-09-12 17:03:31 -04:00
|
|
|
"idna 0.2.2",
|
2021-03-18 00:30:09 -04:00
|
|
|
"ipnet",
|
|
|
|
"lazy_static",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand 0.8.3",
|
|
|
|
"smallvec",
|
|
|
|
"thiserror",
|
|
|
|
"tinyvec",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "trust-dns-resolver"
|
|
|
|
version = "0.20.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b0437eea3a6da51acc1e946545ff53d5b8fb2611ff1c3bed58522dde100536ae"
|
|
|
|
dependencies = [
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"futures-util",
|
|
|
|
"ipconfig",
|
|
|
|
"lazy_static",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"lru-cache",
|
2022-03-12 06:05:36 -05:00
|
|
|
"parking_lot 0.11.2",
|
2021-03-18 00:30:09 -04:00
|
|
|
"resolv-conf",
|
|
|
|
"smallvec",
|
|
|
|
"thiserror",
|
2021-04-28 23:43:03 -04:00
|
|
|
"tokio",
|
2021-03-18 00:30:09 -04:00
|
|
|
"trust-dns-proto",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "try-lock"
|
|
|
|
version = "0.2.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
|
|
|
|
|
2021-02-16 00:37:44 -05:00
|
|
|
[[package]]
|
|
|
|
name = "tungstenite"
|
2021-08-20 04:23:08 -04:00
|
|
|
version = "0.14.0"
|
2021-02-16 00:37:44 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-08-20 04:23:08 -04:00
|
|
|
checksum = "a0b2d8558abd2e276b0a8df5c05a2ec762609344191e5fd23e292c910e9165b5"
|
2021-02-16 00:37:44 -05:00
|
|
|
dependencies = [
|
2022-10-21 09:24:34 -04:00
|
|
|
"base64 0.13.1",
|
2021-02-16 00:37:44 -05:00
|
|
|
"byteorder",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2024-02-23 15:25:06 -05:00
|
|
|
"http 0.2.11",
|
2021-02-16 00:37:44 -05:00
|
|
|
"httparse",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2021-03-18 00:30:09 -04:00
|
|
|
"rand 0.8.3",
|
2021-03-14 22:59:14 -04:00
|
|
|
"rustls 0.19.0",
|
RPC server for API Interface (#1276)
* saving: implementing internal api shared by cli and rpc server
* writing async rpc methods and using arc for shared struct references
* cleaning up, renamed Init to Context
* saving: cleaning up and initial work for tests
* Respond with bitcoin withdraw txid
* Print RPC server address
* Cleanup, formatting, add `get_seller`, `get_swap_start_date` RPC endpoints
* fixing tests in cli module
* uncommenting and fixing more tests
* split api module and propagate errors with rpc server
* moving methods to api and validating addresses for rpc
* add broadcast channel to handle shutdowns gracefully and prepare for RPC server test
* added files
* Update rpc.rs
* adding new unfinished RPC tests
* updating rpc-server tests
* fixing warnings
* fixing formatting and cargo clippy warnings
* fix missing import in test
* fix: add data_dir to config to make config command work
* set server listen address manually and return file locations in JSON on Config
* Add called api method and swap_id to tracing for context, reduced boilerplate
* Pass server_address properly to RpcServer
* Update Cargo.lock
* dprint fmt
* Add cancel_refund RPC endpoint
* Combine Cmd and Params
* Disallow concurrent swaps
* Use RwLock instead of Mutex to allow for parallel reads and add get_current_swap endpoint
* Return wallet descriptor to RPC API caller
* Append all cli logs to single log file
After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
* Add get_swap_expired_timelock timelock, other small refactoring
- Add get_swap_expired_timelock endpoint to return expired timelock if one exists. Fails if bitcoin lock tx has not yet published or if swap is already finished.
- Rename current_epoch to expired_timelock to enforce consistent method names
- Add blocks left until current expired timelock expires (next timelock expires) to ExpiredTimelock struct
- Change .expect() to .unwrap() in rpc server method register because those will only fail if we register the same method twice which will never happen
* initiating swaps in a separate task and handling shutdown signals with broadcast queues
* Replace get_swap_start_date, get_seller, get_expired_timelock with one get_swap_info rpc method
* WIP: Struct for concurrent swaps manager
* Ensure correct tracing spans
* Add note regarding Request, Method structs
* Update request.rs
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Remove notes
* Add tracing span attribute log_reference_id to logs caused by rpc call
* Sync bitcoin wallet before initial max_giveable call
* use Span::current() to pass down to tracing span to spawned tasks
* Remove unused shutdown channel
* Add `get_monero_recovery_info` RPC endpoint
- Add `get_monero_recovery_info` RPC endpoint
- format PrivateViewKey using Display
* Rename `Method::RawHistory` to `Method::GetRawStates`
* Wait for swap to be suspended after sending signal
* Return additonal info on GetSwapInfo
* Update wallet.rs
* fix compile issues for tests and use serial_test crate
* fix rpc tests, only check for RPC errors and not returned values
* Rename `get_raw_history` tp `get_raw_states`
* Fix typo in rpc server stopped tracing log
* Remove unnecessary success property on suspend_current_swap response
* fixing test_cli_arguments and other tests
* WIP: RPC server integration tests
* WIP: Integration tests for RPC server
* Update rpc tests
* fix compile and warnings in tests/rpc.rs
* test: fix assert
* clippy --fix
* remove otp file
* cargo clippy fixes
* move resume swap initialization code out of spawned task
* Use `in_current_span` to pass down tracing span to spawned tasks
* moving buy_xmr initialization code out of spawned tasks
* cargo fmt
* Moving swap initialization code inside tokio select block to handle swap lock release logic
* Remove unnecessary swap suspension listener from determine_btc_to_swap call in BuyXmr
* Spawn event loop before requesting quote
* Release swap lock after receiving shutdown signal
* Remove inner tokio::select in BuyXmr and Resume
* Improve debug text for swap resume
* Return error to API caller if bid quote request fails
* Print error if one occurs during process invoked by API call
* Return bid quote to API caller
* Use type safe query! macro for database retrieval of states
* Return tx_lock_fee to API caller on GetSwapInfo call
Update request.rs
* Allow API caller to retrieve last synced bitcoin balane and avoid costly sync
* Return restore height on MoneroRecovery command to API Caller
* Include entire error cause-chain in API response
* Add span to bitcoin wallet logs
* Log event loop connection properties as tracing fields
* Wait for background tasks to complete before exiting CLI
* clippy
* specify sqlx patch version explicitly
* remove mem::forget and replace with _guard
* ci: add rpc test job
* test: wrap rpc test in #[cfg(test)]
* add missing tokio::test attribute
* fix and merge rpc tests, parse uuuid and multiaddr from serde_json value
* default Tor socks port to 9050, Cargo fmt
* Update swap/sqlite_dev_setup.sh: add version
Co-authored-by: Byron Hambly <byron@hambly.dev>
* ci: free up space on ubuntu test job
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
* fmt
---------
Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
Co-authored-by: Byron Hambly <byron@hambly.dev>
2024-05-22 09:12:58 -04:00
|
|
|
"rustls-native-certs 0.5.0",
|
2021-02-16 00:37:44 -05:00
|
|
|
"sha-1",
|
2021-03-14 22:59:14 -04:00
|
|
|
"thiserror",
|
2021-10-06 21:26:51 -04:00
|
|
|
"url",
|
2021-02-16 00:37:44 -05:00
|
|
|
"utf-8",
|
2021-12-01 06:13:27 -05:00
|
|
|
"webpki 0.21.4",
|
2021-02-16 00:37:44 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "typenum"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "1.15.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
2021-05-18 02:33:38 -04:00
|
|
|
name = "ucd-trie"
|
|
|
|
version = "0.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c"
|
|
|
|
|
|
|
|
[[package]]
|
2020-11-30 17:31:41 -05:00
|
|
|
name = "uint"
|
2021-03-30 03:26:53 -04:00
|
|
|
version = "0.9.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-30 03:26:53 -04:00
|
|
|
checksum = "e11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382e"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2021-03-30 03:26:53 -04:00
|
|
|
"crunchy",
|
2021-10-06 21:26:51 -04:00
|
|
|
"hex",
|
2021-03-30 03:26:53 -04:00
|
|
|
"static_assertions",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2023-02-06 06:05:58 -05:00
|
|
|
[[package]]
|
|
|
|
name = "unarray"
|
|
|
|
version = "0.1.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-bidi"
|
2023-06-05 07:58:39 -04:00
|
|
|
version = "0.3.13"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-06-05 07:58:39 -04:00
|
|
|
checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2022-07-21 08:14:58 -04:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-ident"
|
|
|
|
version = "1.0.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "unicode-normalization"
|
2023-06-05 07:58:39 -04:00
|
|
|
version = "0.1.22"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-06-05 07:58:39 -04:00
|
|
|
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"tinyvec",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-segmentation"
|
2020-12-17 02:50:15 -05:00
|
|
|
version = "1.7.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2020-12-17 02:50:15 -05:00
|
|
|
checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-width"
|
|
|
|
version = "0.1.8"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "unicode-xid"
|
|
|
|
version = "0.2.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
|
|
|
|
2021-09-20 19:14:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "unicode_categories"
|
|
|
|
version = "0.1.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "universal-hash"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402"
|
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"generic-array",
|
|
|
|
"subtle",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-01-15 00:58:16 -05:00
|
|
|
[[package]]
|
|
|
|
name = "unsigned-varint"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.7.1"
|
2021-01-15 00:58:16 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "d86a8dc7f45e4c1b0d30e43038c38f274e77af056aa5f74b93c2cf9eb3c1c836"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-01-15 00:58:16 -05:00
|
|
|
"asynchronous-codec",
|
2021-10-12 18:52:39 -04:00
|
|
|
"bytes",
|
2020-11-30 17:31:41 -05:00
|
|
|
"futures-io",
|
|
|
|
"futures-util",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "untrusted"
|
|
|
|
version = "0.7.1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
|
|
|
|
|
2023-12-14 06:39:54 -05:00
|
|
|
[[package]]
|
|
|
|
name = "untrusted"
|
|
|
|
version = "0.9.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "url"
|
2023-12-11 06:16:30 -05:00
|
|
|
version = "2.5.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-11 06:16:30 -05:00
|
|
|
checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"form_urlencoded",
|
2023-12-11 06:16:30 -05:00
|
|
|
"idna 0.5.0",
|
2021-10-06 21:26:51 -04:00
|
|
|
"percent-encoding",
|
2021-01-26 21:33:32 -05:00
|
|
|
"serde",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-16 00:37:44 -05:00
|
|
|
[[package]]
|
|
|
|
name = "utf-8"
|
|
|
|
version = "0.7.5"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "05e42f7c18b8f902290b009cde6d651262f956c98bc51bca4cd1d511c9cd85c7"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "uuid"
|
2024-03-19 07:22:48 -04:00
|
|
|
version = "1.8.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-19 07:22:48 -04:00
|
|
|
checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"getrandom 0.2.11",
|
2020-11-30 17:31:41 -05:00
|
|
|
"serde",
|
|
|
|
]
|
|
|
|
|
2022-04-14 10:11:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "valuable"
|
|
|
|
version = "0.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
|
|
|
|
|
2021-04-07 20:02:13 -04:00
|
|
|
[[package]]
|
|
|
|
name = "vcpkg"
|
|
|
|
version = "0.2.11"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "vec_map"
|
|
|
|
version = "0.8.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
|
|
|
|
2021-07-07 03:44:49 -04:00
|
|
|
[[package]]
|
|
|
|
name = "vergen"
|
2024-02-04 01:43:59 -05:00
|
|
|
version = "8.3.1"
|
2021-07-07 03:44:49 -04:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-04 01:43:59 -05:00
|
|
|
checksum = "e27d6bdd219887a9eadd19e1c34f32e47fa332301184935c6d9bca26f3cca525"
|
2021-07-07 03:44:49 -04:00
|
|
|
dependencies = [
|
|
|
|
"anyhow",
|
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"git2",
|
|
|
|
"rustversion",
|
2024-04-11 07:48:20 -04:00
|
|
|
"time 0.3.36",
|
2021-07-07 03:44:49 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "version_check"
|
2021-03-18 00:30:09 -04:00
|
|
|
version = "0.9.3"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-03-18 00:30:09 -04:00
|
|
|
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2024-05-27 05:03:20 -04:00
|
|
|
[[package]]
|
|
|
|
name = "virtue"
|
|
|
|
version = "0.0.13"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9dcc60c0624df774c82a0ef104151231d37da4962957d691c011c852b2473314"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "void"
|
|
|
|
version = "1.0.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
|
|
|
|
|
2021-05-06 19:37:10 -04:00
|
|
|
[[package]]
|
|
|
|
name = "wait-timeout"
|
|
|
|
version = "0.2.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "want"
|
|
|
|
version = "0.3.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
|
|
|
|
dependencies = [
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"try-lock",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasi"
|
|
|
|
version = "0.9.0+wasi-snapshot-preview1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
|
|
|
|
2022-09-14 07:36:33 -04:00
|
|
|
[[package]]
|
|
|
|
name = "wasi"
|
|
|
|
version = "0.11.0+wasi-snapshot-preview1"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.2.90"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "b1223296a201415c7fad14792dbefaace9bd52b62d33453ade1c5b5f07555406"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2020-12-17 02:50:15 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"wasm-bindgen-macro",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-backend"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.2.90"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"bumpalo",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2023-01-20 06:03:06 -05:00
|
|
|
"once_cell",
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-02-01 06:34:26 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
"wasm-bindgen-shared",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-futures"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.4.40"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "bde2032aeb86bdfaecc8b261eef3cba735cc426c1f3a3416d1e0791be95fc461"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2020-12-17 02:50:15 -05:00
|
|
|
"cfg-if 1.0.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"web-sys",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-macro"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.2.90"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"quote",
|
2020-11-30 17:31:41 -05:00
|
|
|
"wasm-bindgen-macro-support",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-macro-support"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.2.90"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-02-01 06:34:26 -05:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
"wasm-bindgen-backend",
|
|
|
|
"wasm-bindgen-shared",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-bindgen-shared"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.2.90"
|
2023-01-20 06:03:06 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b"
|
2023-01-20 06:03:06 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "wasm-streams"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.4.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129"
|
2023-01-20 06:03:06 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures-util",
|
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"wasm-bindgen-futures",
|
|
|
|
"web-sys",
|
|
|
|
]
|
2020-11-30 17:31:41 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "web-sys"
|
2024-02-01 06:34:26 -05:00
|
|
|
version = "0.3.67"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-02-01 06:34:26 -05:00
|
|
|
checksum = "58cd2333b6e0be7a39605f0e255892fd7418a682d8da8fe042fe25128794d2ed"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
]
|
|
|
|
|
2021-02-01 18:39:34 -05:00
|
|
|
[[package]]
|
|
|
|
name = "webpki"
|
|
|
|
version = "0.21.4"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea"
|
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
|
|
|
"untrusted 0.7.1",
|
2021-02-01 18:39:34 -05:00
|
|
|
]
|
|
|
|
|
2021-12-01 06:13:27 -05:00
|
|
|
[[package]]
|
|
|
|
name = "webpki"
|
|
|
|
version = "0.22.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd"
|
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"ring 0.16.20",
|
|
|
|
"untrusted 0.7.1",
|
2021-12-01 06:13:27 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "webpki-roots"
|
|
|
|
version = "0.21.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376"
|
|
|
|
dependencies = [
|
2021-12-01 06:13:27 -05:00
|
|
|
"webpki 0.21.4",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2022-02-23 00:16:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "webpki-roots"
|
|
|
|
version = "0.22.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "552ceb903e957524388c4d3475725ff2c8b7960922063af6ce53c9a43da07449"
|
|
|
|
dependencies = [
|
|
|
|
"webpki 0.22.0",
|
|
|
|
]
|
|
|
|
|
2023-12-14 06:39:54 -05:00
|
|
|
[[package]]
|
|
|
|
name = "webpki-roots"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.26.1"
|
2023-12-14 06:39:54 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "b3de34ae270483955a94f4b21bdaaeb83d508bb84a01435f393818edb0012009"
|
|
|
|
dependencies = [
|
|
|
|
"rustls-pki-types",
|
|
|
|
]
|
2023-12-14 06:39:54 -05:00
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
2021-01-15 00:58:16 -05:00
|
|
|
name = "which"
|
|
|
|
version = "4.0.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-01-15 00:58:16 -05:00
|
|
|
checksum = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef"
|
|
|
|
dependencies = [
|
|
|
|
"libc",
|
|
|
|
"thiserror",
|
|
|
|
]
|
2020-11-30 17:31:41 -05:00
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "widestring"
|
|
|
|
version = "0.4.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c"
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "winapi"
|
|
|
|
version = "0.3.9"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
|
|
dependencies = [
|
|
|
|
"winapi-i686-pc-windows-gnu",
|
|
|
|
"winapi-x86_64-pc-windows-gnu",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "winapi-i686-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
|
|
version = "0.4.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows-sys"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6"
|
|
|
|
dependencies = [
|
2022-09-14 07:36:33 -04:00
|
|
|
"windows_aarch64_msvc 0.32.0",
|
|
|
|
"windows_i686_gnu 0.32.0",
|
|
|
|
"windows_i686_msvc 0.32.0",
|
|
|
|
"windows_x86_64_gnu 0.32.0",
|
|
|
|
"windows_x86_64_msvc 0.32.0",
|
|
|
|
]
|
|
|
|
|
2023-03-01 07:10:49 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows-sys"
|
2023-04-13 08:05:47 -04:00
|
|
|
version = "0.48.0"
|
2023-03-01 07:10:49 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-04-13 08:05:47 -04:00
|
|
|
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
2023-03-01 07:10:49 -05:00
|
|
|
dependencies = [
|
2023-12-14 06:40:30 -05:00
|
|
|
"windows-targets 0.48.0",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "windows-sys"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
|
|
|
dependencies = [
|
|
|
|
"windows-targets 0.52.0",
|
2023-03-01 07:10:49 -05:00
|
|
|
]
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows-targets"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
|
|
|
|
dependencies = [
|
2023-12-14 06:40:30 -05:00
|
|
|
"windows_aarch64_gnullvm 0.48.0",
|
2023-04-13 08:05:47 -04:00
|
|
|
"windows_aarch64_msvc 0.48.0",
|
|
|
|
"windows_i686_gnu 0.48.0",
|
|
|
|
"windows_i686_msvc 0.48.0",
|
|
|
|
"windows_x86_64_gnu 0.48.0",
|
2023-12-14 06:40:30 -05:00
|
|
|
"windows_x86_64_gnullvm 0.48.0",
|
2023-04-13 08:05:47 -04:00
|
|
|
"windows_x86_64_msvc 0.48.0",
|
|
|
|
]
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows-targets"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd"
|
|
|
|
dependencies = [
|
|
|
|
"windows_aarch64_gnullvm 0.52.0",
|
|
|
|
"windows_aarch64_msvc 0.52.0",
|
|
|
|
"windows_i686_gnu 0.52.0",
|
|
|
|
"windows_i686_msvc 0.52.0",
|
|
|
|
"windows_x86_64_gnu 0.52.0",
|
|
|
|
"windows_x86_64_gnullvm 0.52.0",
|
|
|
|
"windows_x86_64_msvc 0.52.0",
|
|
|
|
]
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_gnullvm"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_gnullvm"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_msvc"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_msvc"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_aarch64_msvc"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnu"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnu"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_gnu"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_msvc"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_msvc"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_i686_msvc"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnu"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnu"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnu"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnullvm"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_gnullvm"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e"
|
|
|
|
|
2022-03-12 06:05:36 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_msvc"
|
|
|
|
version = "0.32.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316"
|
|
|
|
|
2023-04-13 08:05:47 -04:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_msvc"
|
|
|
|
version = "0.48.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
|
|
|
|
|
2023-12-14 06:40:30 -05:00
|
|
|
[[package]]
|
|
|
|
name = "windows_x86_64_msvc"
|
|
|
|
version = "0.52.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
|
|
|
|
|
2023-12-13 06:45:38 -05:00
|
|
|
[[package]]
|
|
|
|
name = "winnow"
|
2024-03-12 09:11:35 -04:00
|
|
|
version = "0.6.5"
|
2023-12-13 06:45:38 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-03-12 09:11:35 -04:00
|
|
|
checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8"
|
2023-12-13 06:45:38 -05:00
|
|
|
dependencies = [
|
|
|
|
"memchr",
|
|
|
|
]
|
|
|
|
|
2021-03-18 00:30:09 -04:00
|
|
|
[[package]]
|
|
|
|
name = "winreg"
|
|
|
|
version = "0.6.2"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9"
|
|
|
|
dependencies = [
|
2022-08-27 06:26:55 -04:00
|
|
|
"winapi",
|
2021-03-18 00:30:09 -04:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "winreg"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "0.52.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2023-12-14 06:39:54 -05:00
|
|
|
"cfg-if 1.0.0",
|
|
|
|
"windows-sys 0.48.0",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "x25519-dalek"
|
|
|
|
version = "1.1.0"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
checksum = "bc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088"
|
|
|
|
dependencies = [
|
2021-02-17 21:33:50 -05:00
|
|
|
"curve25519-dalek",
|
2020-11-30 17:31:41 -05:00
|
|
|
"rand_core 0.5.1",
|
2021-03-17 03:53:12 -04:00
|
|
|
"zeroize",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
2021-02-24 02:08:25 -05:00
|
|
|
[[package]]
|
|
|
|
name = "xattr"
|
2023-12-14 06:40:30 -05:00
|
|
|
version = "1.1.3"
|
2021-02-24 02:08:25 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-12-14 06:40:30 -05:00
|
|
|
checksum = "a7dae5072fe1f8db8f8d29059189ac175196e410e40ba42d5d4684ae2f750995"
|
2021-02-24 02:08:25 -05:00
|
|
|
dependencies = [
|
|
|
|
"libc",
|
2023-12-14 06:40:30 -05:00
|
|
|
"linux-raw-sys",
|
|
|
|
"rustix",
|
2021-02-24 02:08:25 -05:00
|
|
|
]
|
|
|
|
|
2020-11-30 17:31:41 -05:00
|
|
|
[[package]]
|
|
|
|
name = "yamux"
|
2022-04-04 06:49:02 -04:00
|
|
|
version = "0.10.1"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-04-04 06:49:02 -04:00
|
|
|
checksum = "0c0608f53c1dc0bad505d03a34bbd49fbf2ad7b51eb036123e896365532745a1"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"futures",
|
2021-10-06 21:26:51 -04:00
|
|
|
"log",
|
2020-11-30 17:31:41 -05:00
|
|
|
"nohash-hasher",
|
2022-04-04 06:49:02 -04:00
|
|
|
"parking_lot 0.12.0",
|
2021-04-15 03:44:21 -04:00
|
|
|
"rand 0.8.3",
|
2021-03-30 03:26:53 -04:00
|
|
|
"static_assertions",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "zeroize"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "1.7.0"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
|
|
|
"zeroize_derive",
|
|
|
|
]
|
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "zeroize_derive"
|
2024-05-30 04:27:48 -04:00
|
|
|
version = "1.4.2"
|
2020-11-30 17:31:41 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2024-05-30 04:27:48 -04:00
|
|
|
checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69"
|
2020-11-30 17:31:41 -05:00
|
|
|
dependencies = [
|
2021-09-03 07:08:32 -04:00
|
|
|
"proc-macro2",
|
|
|
|
"quote",
|
2024-05-30 04:27:48 -04:00
|
|
|
"syn 2.0.46",
|
2020-11-30 17:31:41 -05:00
|
|
|
]
|
2021-03-01 01:34:25 -05:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
name = "zip"
|
2021-06-07 03:33:17 -04:00
|
|
|
version = "0.5.13"
|
2021-03-01 01:34:25 -05:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2021-06-07 03:33:17 -04:00
|
|
|
checksum = "93ab48844d61251bb3835145c521d88aa4031d7139e8485990f60ca911fa0815"
|
2021-03-01 01:34:25 -05:00
|
|
|
dependencies = [
|
|
|
|
"byteorder",
|
2021-06-07 03:33:17 -04:00
|
|
|
"bzip2",
|
2021-03-01 01:34:25 -05:00
|
|
|
"crc32fast",
|
|
|
|
"flate2",
|
|
|
|
"thiserror",
|
|
|
|
"time 0.1.43",
|
|
|
|
]
|