From 98296d8fa65393665651b2a535185a442b752d70 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Sat, 3 Dec 2022 20:47:42 +0200 Subject: [PATCH 01/12] feat(asb): allow config overrides from env vars - upgrades config crate to 0.13.2 #1087 - adds environment source for config overrides --- Cargo.lock | 90 +++++++++++++++++------------ swap/Cargo.toml | 5 +- swap/src/asb/config.rs | 127 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 177 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3b1f24a2..bc5691cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,12 +93,6 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - [[package]] name = "arrayvec" version = "0.7.2" @@ -643,12 +637,14 @@ dependencies = [ [[package]] name = "config" -version = "0.11.0" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1b9d958c2b1368a663f05538fc1b5975adce1e19f435acceae987aceeeb369" +checksum = "11f1667b8320afa80d69d8bbe40830df2c8a06003d86f73d8e003b2c48df416d" dependencies = [ + "async-trait", "lazy_static", - "nom 5.1.2", + "nom", + "pathdiff", "serde", "toml", ] @@ -938,6 +934,17 @@ dependencies = [ "syn", ] +[[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", +] + [[package]] name = "data-encoding" version = "2.3.2" @@ -1805,19 +1812,6 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -[[package]] -name = "lexical-core" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21f866863575d0e1d654fbeeabdc927292fdf862873dc3c96c6f753357e13374" -dependencies = [ - "arrayvec 0.5.2", - "bitflags", - "cfg-if 1.0.0", - "ryu", - "static_assertions", -] - [[package]] name = "libc" version = "0.2.137" @@ -2418,17 +2412,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" -[[package]] -name = "nom" -version = "5.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af" -dependencies = [ - "lexical-core", - "memchr", - "version_check", -] - [[package]] name = "nom" version = "7.0.0" @@ -2531,9 +2514,9 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.13.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" +checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5" dependencies = [ "hermit-abi", "libc", @@ -2643,6 +2626,12 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" +[[package]] +name = "pathdiff" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" + [[package]] name = "pem" version = "1.1.0" @@ -3260,7 +3249,7 @@ version = "1.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33c321ee4e17d2b7abe12b5d20c1231db708dd36185c8a21e9de5fed6da4dbe9" dependencies = [ - "arrayvec 0.7.2", + "arrayvec", "borsh", "bytecheck", "byteorder", @@ -3585,6 +3574,32 @@ dependencies = [ "syn", ] +[[package]] +name = "serial_test" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92761393ee4dc3ff8f4af487bd58f4307c9329bbedea02cac0089ad9c411e153" +dependencies = [ + "dashmap", + "futures", + "lazy_static", + "log", + "parking_lot 0.12.0", + "serial_test_derive", +] + +[[package]] +name = "serial_test_derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b6f5d1c3087fb119617cff2966fe3808a80e5eb59a8c1601d5994d66f4346a5" +dependencies = [ + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sha-1" version = "0.9.4" @@ -3806,7 +3821,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f87e292b4291f154971a43c3774364e2cbcaec599d3f5bf6fa9d122885dbc38a" dependencies = [ "itertools", - "nom 7.0.0", + "nom", "unicode_categories", ] @@ -4038,6 +4053,7 @@ dependencies = [ "serde_cbor", "serde_json", "serde_with", + "serial_test", "sha2 0.10.6", "sigma_fun", "spectral", diff --git a/swap/Cargo.toml b/swap/Cargo.toml index 7e23ef24..316bbe92 100644 --- a/swap/Cargo.toml +++ b/swap/Cargo.toml @@ -20,7 +20,7 @@ big-bytes = "1" bitcoin = { version = "0.29", features = [ "rand", "serde" ] } bmrng = "0.5" comfy-table = "6.1" -config = { version = "0.11", default-features = false, features = [ "toml" ] } +config = { version = "0.13", default-features = false, features = [ "toml" ] } conquer-once = "0.3" curve25519-dalek = { package = "curve25519-dalek-ng", version = "4" } data-encoding = "2.3" @@ -81,10 +81,11 @@ monero-harness = { path = "../monero-harness" } port_check = "0.1" proptest = "1" serde_cbor = "0.11" +serial_test = "0.9" spectral = "0.6" tempfile = "3" testcontainers = "0.12" [build-dependencies] -vergen = { version = "7", default-features = false, features = [ "git", "build" ] } anyhow = "1" +vergen = { version = "7", default-features = false, features = [ "git", "build" ] } diff --git a/swap/src/asb/config.rs b/swap/src/asb/config.rs index 17c94691..9c2052bd 100644 --- a/swap/src/asb/config.rs +++ b/swap/src/asb/config.rs @@ -102,12 +102,27 @@ impl Config { { let config_file = Path::new(&config_file); - let mut config = config::Config::new(); - config.merge(config::File::from(config_file))?; + let config = config::Config::builder() + .add_source(config::File::from(config_file)) + .add_source( + config::Environment::with_prefix("ASB") + .separator("__") + .list_separator(","), + ) + .build()?; + config.try_into() } } +impl TryFrom for Config { + type Error = config::ConfigError; + + fn try_from(value: config::Config) -> Result { + value.try_deserialize() + } +} + #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] #[serde(deny_unknown_fields)] pub struct Data { @@ -117,13 +132,55 @@ pub struct Data { #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] #[serde(deny_unknown_fields)] pub struct Network { + #[serde(deserialize_with = "addr_list::deserialize")] pub listen: Vec, #[serde(default)] pub rendezvous_point: Option, - #[serde(default)] + #[serde(default, deserialize_with = "addr_list::deserialize")] pub external_addresses: Vec, } +mod addr_list { + use libp2p::Multiaddr; + use serde::de::Unexpected; + use serde::{de, Deserialize, Deserializer}; + use serde_json::Value; + + pub fn deserialize<'de, D>(deserializer: D) -> Result, D::Error> + where + D: Deserializer<'de>, + { + let s = Value::deserialize(deserializer)?; + return match s { + Value::String(s) => { + let list: Result, _> = s + .split(',') + .filter(|s| !s.is_empty()) + .map(|s| s.parse().map_err(de::Error::custom)) + .collect(); + Ok(list?) + } + Value::Array(a) => { + let list: Result, _> = a + .iter() + .map(|v| { + if let Value::String(s) = v { + s.parse().map_err(de::Error::custom) + } else { + Err(de::Error::custom("expected a string")) + } + }) + .collect(); + Ok(list?) + } + value => Err(de::Error::invalid_type( + Unexpected::Other(&value.to_string()), + &"a string or array", + )), + }; + } +} + #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] #[serde(deny_unknown_fields)] pub struct Bitcoin { @@ -172,7 +229,7 @@ impl Default for TorConf { #[derive(thiserror::Error, Debug, Clone, Copy)] #[error("config not initialized")] -pub struct ConfigNotInitialized {} +pub struct ConfigNotInitialized; pub fn read_config(config_path: PathBuf) -> Result> { if config_path.exists() { @@ -334,9 +391,12 @@ pub fn query_user_for_initial_config(testnet: bool) -> Result { #[cfg(test)] mod tests { use super::*; + use serial_test::serial; use tempfile::tempdir; + // these tests are run serially since env vars affect the whole process #[test] + #[serial] fn config_roundtrip_testnet() { let temp_dir = tempdir().unwrap().path().to_path_buf(); let config_path = Path::join(&temp_dir, "config.toml"); @@ -358,7 +418,6 @@ mod tests { rendezvous_point: None, external_addresses: vec![], }, - monero: Monero { wallet_rpc_url: defaults.monero_wallet_rpc_url, finality_confirmations: None, @@ -380,6 +439,7 @@ mod tests { } #[test] + #[serial] fn config_roundtrip_mainnet() { let temp_dir = tempdir().unwrap().path().to_path_buf(); let config_path = Path::join(&temp_dir, "config.toml"); @@ -401,7 +461,6 @@ mod tests { rendezvous_point: None, external_addresses: vec![], }, - monero: Monero { wallet_rpc_url: defaults.monero_wallet_rpc_url, finality_confirmations: None, @@ -421,4 +480,60 @@ mod tests { assert_eq!(expected, actual); } + + #[test] + #[serial] + fn env_override() { + let temp_dir = tempfile::tempdir().unwrap().path().to_path_buf(); + let config_path = Path::join(&temp_dir, "config.toml"); + + let defaults = Mainnet::getConfigFileDefaults().unwrap(); + + let dir = PathBuf::from("/tmp/dir"); + std::env::set_var("ASB__DATA__DIR", dir.clone()); + let addr1 = "/dns4/example.com/tcp/9939"; + let addr2 = "/ip4/1.2.3.4/tcp/9940"; + let external_addresses = vec![addr1.parse().unwrap(), addr2.parse().unwrap()]; + let listen = external_addresses.clone(); + std::env::set_var( + "ASB__NETWORK__EXTERNAL_ADDRESSES", + format!("{},{}", addr1, addr2), + ); + std::env::set_var("ASB__NETWORK__LISTEN", format!("{},{}", addr1, addr2)); + + let expected = Config { + data: Data { dir }, + bitcoin: Bitcoin { + electrum_rpc_url: defaults.electrum_rpc_url, + target_block: defaults.bitcoin_confirmation_target, + finality_confirmations: None, + network: bitcoin::Network::Bitcoin, + }, + network: Network { + listen, + rendezvous_point: None, + external_addresses, + }, + monero: Monero { + wallet_rpc_url: defaults.monero_wallet_rpc_url, + finality_confirmations: None, + network: monero::Network::Mainnet, + }, + tor: Default::default(), + maker: Maker { + min_buy_btc: bitcoin::Amount::from_btc(DEFAULT_MIN_BUY_AMOUNT).unwrap(), + max_buy_btc: bitcoin::Amount::from_btc(DEFAULT_MAX_BUY_AMOUNT).unwrap(), + ask_spread: Decimal::from_f64(DEFAULT_SPREAD).unwrap(), + price_ticker_ws_url: defaults.price_ticker_ws_url, + }, + }; + + initial_setup(config_path.clone(), expected.clone()).unwrap(); + let actual = read_config(config_path).unwrap().unwrap(); + + assert_eq!(expected, actual); + std::env::remove_var("ASB__DATA__DIR"); + std::env::remove_var("ASB__NETWORK__EXTERNAL_ADDRESSES"); + std::env::remove_var("ASB__NETWORK__LISTEN"); + } } From 6f8f3815008b4a2374d3897091208bcd74516acb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Dec 2022 11:04:15 +0000 Subject: [PATCH 02/12] build(deps): bump serde from 1.0.148 to 1.0.149 Bumps [serde](https://github.com/serde-rs/serde) from 1.0.148 to 1.0.149. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.149) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3b1f24a2..a179ed80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3502,9 +3502,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.148" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e53f64bb4ba0191d6d0676e1b141ca55047d83b74f5607e6d8eb88126c52c2dc" +checksum = "256b9932320c590e707b94576e3cc1f7c9024d0ee6612dfbcf1cb106cbe8e055" dependencies = [ "serde_derive", ] @@ -3531,9 +3531,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.148" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55492425aa53521babf6137309e7d34c20bbfbbfcfe2c7f3a047fd1f6b92c0c" +checksum = "b4eae9b04cbffdfd550eb462ed33bc6a1b68c935127d008b27444d08380f94e4" dependencies = [ "proc-macro2", "quote", From 6848f643858553ee834dbb18aad17c380857faa1 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 5 Dec 2022 14:31:55 +0200 Subject: [PATCH 03/12] build(deps): bump config to 0.13.3 --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bc5691cf..d3592d18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -637,9 +637,9 @@ dependencies = [ [[package]] name = "config" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11f1667b8320afa80d69d8bbe40830df2c8a06003d86f73d8e003b2c48df416d" +checksum = "d379af7f68bfc21714c6c7dea883544201741d2ce8274bb12fa54f89507f52a7" dependencies = [ "async-trait", "lazy_static", From 2401c2f38fe01623b4bcfd2d975a9fdaaea9c9e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:03:41 +0000 Subject: [PATCH 04/12] build(deps): bump bdk from 0.24.0 to 0.25.0 Bumps [bdk](https://github.com/bitcoindevkit/bdk) from 0.24.0 to 0.25.0. - [Release notes](https://github.com/bitcoindevkit/bdk/releases) - [Changelog](https://github.com/bitcoindevkit/bdk/blob/master/CHANGELOG.md) - [Commits](https://github.com/bitcoindevkit/bdk/compare/v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: bdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- swap/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a179ed80..267612b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -226,9 +226,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "bdk" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50e3f08fbcd7eb34f11e066a1353986d583f1f87af70f7cd50bff9fce97c817" +checksum = "c1e7eb54c6288eca1b698e6e33dd82ebe6c08a93ec1a96bb6926ddceed22c703" dependencies = [ "async-trait", "bdk-macros", diff --git a/swap/Cargo.toml b/swap/Cargo.toml index 7e23ef24..f33f6ac0 100644 --- a/swap/Cargo.toml +++ b/swap/Cargo.toml @@ -15,7 +15,7 @@ async-trait = "0.1" atty = "0.2" backoff = { version = "0.4", features = [ "tokio" ] } base64 = "0.13" -bdk = "0.24" +bdk = "0.25" big-bytes = "1" bitcoin = { version = "0.29", features = [ "rand", "serde" ] } bmrng = "0.5" From 1198cd7fcd7b92e1570f4026f01f88703089e8c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:03:54 +0000 Subject: [PATCH 05/12] build(deps): bump data-encoding from 2.3.2 to 2.3.3 Bumps [data-encoding](https://github.com/ia0/data-encoding) from 2.3.2 to 2.3.3. - [Release notes](https://github.com/ia0/data-encoding/releases) - [Commits](https://github.com/ia0/data-encoding/commits) --- updated-dependencies: - dependency-name: data-encoding dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a179ed80..b0e8fea3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -940,9 +940,9 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.3.2" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" +checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" [[package]] name = "derive_more" From f72e41e8bc4990d8b8b106a7f43043eb069d6a34 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:03:54 +0000 Subject: [PATCH 06/12] build(deps): bump thomaseizinger/create-pull-request from 1.2.2 to 1.3.0 Bumps [thomaseizinger/create-pull-request](https://github.com/thomaseizinger/create-pull-request) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/thomaseizinger/create-pull-request/releases) - [Changelog](https://github.com/thomaseizinger/create-pull-request/blob/master/CHANGELOG.md) - [Commits](https://github.com/thomaseizinger/create-pull-request/compare/1.2.2...1.3.0) --- updated-dependencies: - dependency-name: thomaseizinger/create-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/draft-new-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index 9c64c127..a15059df 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -54,7 +54,7 @@ jobs: run: git push origin release/${{ github.event.inputs.version }} --force - name: Create pull request - uses: thomaseizinger/create-pull-request@1.2.2 + uses: thomaseizinger/create-pull-request@1.3.0 with: GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }} head: release/${{ github.event.inputs.version }} From 79cf2fa2d0554cdd39bf50f60f446070219e8653 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:05:14 +0000 Subject: [PATCH 07/12] build(deps): bump serde from 1.0.149 to 1.0.150 Bumps [serde](https://github.com/serde-rs/serde) from 1.0.149 to 1.0.150. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.149...v1.0.150) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c191720e..7fe5938b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3491,9 +3491,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256b9932320c590e707b94576e3cc1f7c9024d0ee6612dfbcf1cb106cbe8e055" +checksum = "e326c9ec8042f1b5da33252c8a37e9ffbd2c9bef0155215b6e6c80c790e05f91" dependencies = [ "serde_derive", ] @@ -3520,9 +3520,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4eae9b04cbffdfd550eb462ed33bc6a1b68c935127d008b27444d08380f94e4" +checksum = "42a3df25b0713732468deadad63ab9da1f1fd75a48a15024b50363f128db627e" dependencies = [ "proc-macro2", "quote", From 29696d2d577b06fba2a48e8759b7ad080cad6e43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:05:30 +0000 Subject: [PATCH 08/12] build(deps): bump ecdsa_fun from `da6ffd2` to `9657d8c` Bumps [ecdsa_fun](https://github.com/LLFourn/secp256kfun) from `da6ffd2` to `9657d8c`. - [Release notes](https://github.com/LLFourn/secp256kfun/releases) - [Commits](https://github.com/LLFourn/secp256kfun/compare/da6ffd2ef4d58c84d508428356c92d92d5f11ac4...9657d8c12fd26df5e57254a0063eaf41082a38ca) --- updated-dependencies: - dependency-name: ecdsa_fun dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c191720e..61fc3f88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1031,7 +1031,7 @@ checksum = "5caaa75cbd2b960ff1e5392d2cfb1f44717fffe12fc1f32b7b5d1267f99732a6" [[package]] name = "ecdsa_fun" version = "0.7.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "bincode", "rand_chacha 0.3.1", @@ -3439,7 +3439,7 @@ dependencies = [ [[package]] name = "secp256kfun" version = "0.7.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "digest 0.10.5", "rand_core 0.6.2", @@ -3661,7 +3661,7 @@ dependencies = [ [[package]] name = "sigma_fun" version = "0.4.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "curve25519-dalek-ng", "digest 0.10.5", From c13b47451a7490b8eac2b8c8e38759c56fb8ab10 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:05:52 +0000 Subject: [PATCH 09/12] build(deps): bump sigma_fun from `da6ffd2` to `9657d8c` Bumps [sigma_fun](https://github.com/LLFourn/secp256kfun) from `da6ffd2` to `9657d8c`. - [Release notes](https://github.com/LLFourn/secp256kfun/releases) - [Commits](https://github.com/LLFourn/secp256kfun/compare/da6ffd2ef4d58c84d508428356c92d92d5f11ac4...9657d8c12fd26df5e57254a0063eaf41082a38ca) --- updated-dependencies: - dependency-name: sigma_fun dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c191720e..61fc3f88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1031,7 +1031,7 @@ checksum = "5caaa75cbd2b960ff1e5392d2cfb1f44717fffe12fc1f32b7b5d1267f99732a6" [[package]] name = "ecdsa_fun" version = "0.7.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "bincode", "rand_chacha 0.3.1", @@ -3439,7 +3439,7 @@ dependencies = [ [[package]] name = "secp256kfun" version = "0.7.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "digest 0.10.5", "rand_core 0.6.2", @@ -3661,7 +3661,7 @@ dependencies = [ [[package]] name = "sigma_fun" version = "0.4.1" -source = "git+https://github.com/LLFourn/secp256kfun#da6ffd2ef4d58c84d508428356c92d92d5f11ac4" +source = "git+https://github.com/LLFourn/secp256kfun#9657d8c12fd26df5e57254a0063eaf41082a38ca" dependencies = [ "curve25519-dalek-ng", "digest 0.10.5", From 6e619a1ae163f365f71671297443d49f5eaa506d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Dec 2022 11:06:02 +0000 Subject: [PATCH 10/12] build(deps): bump base64 from 0.13.1 to 0.20.0 Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.13.1 to 0.20.0. - [Release notes](https://github.com/marshallpierce/rust-base64/releases) - [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md) - [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.1...v0.20.0) --- updated-dependencies: - dependency-name: base64 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 8 +++++++- swap/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c191720e..c2d38af8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -218,6 +218,12 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +[[package]] +name = "base64" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea22880d78093b0cbe17c89f64a7d457941e65759157ec6cb31a31d652b05e5" + [[package]] name = "bdk" version = "0.25.0" @@ -4016,7 +4022,7 @@ dependencies = [ "async-trait", "atty", "backoff", - "base64 0.13.1", + "base64 0.20.0", "bdk", "big-bytes", "bitcoin", diff --git a/swap/Cargo.toml b/swap/Cargo.toml index 8e780ca5..b6baa8dc 100644 --- a/swap/Cargo.toml +++ b/swap/Cargo.toml @@ -14,7 +14,7 @@ async-compression = { version = "0.3", features = [ "bzip2", "tokio" ] } async-trait = "0.1" atty = "0.2" backoff = { version = "0.4", features = [ "tokio" ] } -base64 = "0.13" +base64 = "0.20" bdk = "0.25" big-bytes = "1" bitcoin = { version = "0.29", features = [ "rand", "serde" ] } From c528756fb17d92820211a9337087823c9819fc2c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 13 Dec 2022 11:02:01 +0000 Subject: [PATCH 11/12] build(deps): bump actions/checkout from 3.1.0 to 3.2.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/build-release-binaries.yml | 2 +- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/create-release.yml | 2 +- .github/workflows/draft-new-release.yml | 2 +- .github/workflows/preview-release.yml | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index 267b3173..9e303e5d 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -45,7 +45,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout tagged commit - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 with: ref: ${{ github.event.release.target_commitish }} token: ${{ secrets.BOTTY_GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d606e81..1e470729 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.2.0 @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.0.2 @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.0.2 @@ -71,7 +71,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.2.0 @@ -116,7 +116,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.2.0 @@ -152,7 +152,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3.1.0 + uses: actions/checkout@v3.2.0 - uses: Swatinem/rust-cache@v2.2.0 diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 42bc50f3..f8d8d3ba 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -11,7 +11,7 @@ jobs: if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - uses: actions/checkout@v3.2.0 - name: Extract version from branch name id: extract-version diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index a15059df..448caa33 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -12,7 +12,7 @@ jobs: name: "Draft a new release" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - uses: actions/checkout@v3.2.0 with: token: ${{ secrets.BOTTY_GITHUB_TOKEN }} diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 5d5ffe63..d261fa7a 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -10,7 +10,7 @@ jobs: name: Create preview release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - uses: actions/checkout@v3.2.0 - name: Delete 'preview' release uses: larryjoelane/delete-release-action@v1.0.24 From f74d785dca961d6e9dfb5991cbd6cf43b2910645 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Dec 2022 11:02:35 +0000 Subject: [PATCH 12/12] build(deps): bump toml from 0.5.9 to 0.5.10 Bumps [toml](https://github.com/toml-rs/toml) from 0.5.9 to 0.5.10. - [Release notes](https://github.com/toml-rs/toml/releases) - [Commits](https://github.com/toml-rs/toml/commits/toml-v0.5.10) --- updated-dependencies: - dependency-name: toml dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 50e8564c..fe3b6c2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4404,9 +4404,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" +checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" dependencies = [ "serde", ]