From 30c0db154bab2e6a306601cfe2ca2601c622a01b Mon Sep 17 00:00:00 2001 From: stringhandler Date: Tue, 14 Feb 2023 18:35:50 +0200 Subject: [PATCH] v0.45.0 --- Cargo.lock | 46 +++++++++---------- applications/tari_app_grpc/Cargo.toml | 4 +- applications/tari_app_utilities/Cargo.toml | 2 +- applications/tari_base_node/Cargo.toml | 2 +- applications/tari_console_wallet/Cargo.toml | 2 +- .../tari_merge_mining_proxy/Cargo.toml | 2 +- applications/tari_miner/Cargo.toml | 2 +- base_layer/common_types/Cargo.toml | 4 +- base_layer/core/Cargo.toml | 30 ++++++------ base_layer/key_manager/Cargo.toml | 4 +- base_layer/mmr/Cargo.toml | 2 +- base_layer/p2p/Cargo.toml | 18 ++++---- base_layer/service_framework/Cargo.toml | 6 +-- base_layer/tari_mining_helper_ffi/Cargo.toml | 4 +- base_layer/wallet/Cargo.toml | 26 +++++------ base_layer/wallet_ffi/Cargo.toml | 22 ++++----- changelog.md | 38 +++++++++++++++ common/Cargo.toml | 4 +- common_sqlite/Cargo.toml | 2 +- comms/core/Cargo.toml | 10 ++-- comms/dht/Cargo.toml | 14 +++--- comms/rpc_macros/Cargo.toml | 6 +-- infrastructure/derive/Cargo.toml | 2 +- infrastructure/libtor/Cargo.toml | 2 +- infrastructure/shutdown/Cargo.toml | 2 +- infrastructure/storage/Cargo.toml | 2 +- infrastructure/test_utils/Cargo.toml | 2 +- integration_tests/.husky/_/husky.sh | 30 ++++++++++++ package-lock.json | 2 +- 29 files changed, 180 insertions(+), 112 deletions(-) create mode 100644 integration_tests/.husky/_/husky.sh diff --git a/Cargo.lock b/Cargo.lock index c82e291fa6..93e6b1e018 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4978,7 +4978,7 @@ dependencies = [ [[package]] name = "tari_app_grpc" -version = "0.44.1" +version = "0.45.0" dependencies = [ "argon2", "base64 0.13.1", @@ -5002,7 +5002,7 @@ dependencies = [ [[package]] name = "tari_app_utilities" -version = "0.44.1" +version = "0.45.0" dependencies = [ "clap 3.2.23", "futures 0.3.26", @@ -5020,7 +5020,7 @@ dependencies = [ [[package]] name = "tari_base_node" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "async-trait", @@ -5112,7 +5112,7 @@ dependencies = [ [[package]] name = "tari_common" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "blake2 0.9.2", @@ -5137,7 +5137,7 @@ dependencies = [ [[package]] name = "tari_common_sqlite" -version = "0.44.1" +version = "0.45.0" dependencies = [ "diesel", "log", @@ -5146,7 +5146,7 @@ dependencies = [ [[package]] name = "tari_common_types" -version = "0.44.1" +version = "0.45.0" dependencies = [ "borsh", "digest 0.9.0", @@ -5163,7 +5163,7 @@ dependencies = [ [[package]] name = "tari_comms" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "async-trait", @@ -5212,7 +5212,7 @@ dependencies = [ [[package]] name = "tari_comms_dht" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -5256,7 +5256,7 @@ dependencies = [ [[package]] name = "tari_comms_rpc_macros" -version = "0.44.1" +version = "0.45.0" dependencies = [ "futures 0.3.26", "proc-macro2", @@ -5271,7 +5271,7 @@ dependencies = [ [[package]] name = "tari_console_wallet" -version = "0.44.1" +version = "0.45.0" dependencies = [ "bitflags 1.3.2", "chrono", @@ -5318,7 +5318,7 @@ dependencies = [ [[package]] name = "tari_core" -version = "0.44.1" +version = "0.45.0" dependencies = [ "bincode", "bitflags 1.3.2", @@ -5456,7 +5456,7 @@ dependencies = [ [[package]] name = "tari_key_manager" -version = "0.44.1" +version = "0.45.0" dependencies = [ "argon2", "blake2 0.9.2", @@ -5499,7 +5499,7 @@ dependencies = [ [[package]] name = "tari_merge_mining_proxy" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "bincode", @@ -5548,7 +5548,7 @@ dependencies = [ [[package]] name = "tari_miner" -version = "0.44.1" +version = "0.45.0" dependencies = [ "base64 0.13.1", "borsh", @@ -5583,7 +5583,7 @@ dependencies = [ [[package]] name = "tari_mining_helper_ffi" -version = "0.44.1" +version = "0.45.0" dependencies = [ "borsh", "hex", @@ -5599,7 +5599,7 @@ dependencies = [ [[package]] name = "tari_mmr" -version = "0.44.1" +version = "0.45.0" dependencies = [ "bincode", "blake2 0.9.2", @@ -5618,7 +5618,7 @@ dependencies = [ [[package]] name = "tari_p2p" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "clap 2.34.0", @@ -5672,7 +5672,7 @@ dependencies = [ [[package]] name = "tari_service_framework" -version = "0.44.1" +version = "0.45.0" dependencies = [ "anyhow", "async-trait", @@ -5689,7 +5689,7 @@ dependencies = [ [[package]] name = "tari_shutdown" -version = "0.44.1" +version = "0.45.0" dependencies = [ "futures 0.3.26", "tokio", @@ -5697,7 +5697,7 @@ dependencies = [ [[package]] name = "tari_storage" -version = "0.44.1" +version = "0.45.0" dependencies = [ "bincode", "lmdb-zero", @@ -5710,7 +5710,7 @@ dependencies = [ [[package]] name = "tari_test_utils" -version = "0.44.1" +version = "0.45.0" dependencies = [ "futures 0.3.26", "futures-test", @@ -5740,7 +5740,7 @@ dependencies = [ [[package]] name = "tari_wallet" -version = "0.44.1" +version = "0.45.0" dependencies = [ "argon2", "async-trait", @@ -5789,7 +5789,7 @@ dependencies = [ [[package]] name = "tari_wallet_ffi" -version = "0.44.1" +version = "0.45.0" dependencies = [ "borsh", "cbindgen 0.24.3", diff --git a/applications/tari_app_grpc/Cargo.toml b/applications/tari_app_grpc/Cargo.toml index 79384b9c1b..362221e73b 100644 --- a/applications/tari_app_grpc/Cargo.toml +++ b/applications/tari_app_grpc/Cargo.toml @@ -4,11 +4,11 @@ authors = ["The Tari Development Community"] description = "This crate is to provide a single source for all cross application grpc files and conversions to and from tari::core" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] -tari_common_types = { version = "^0.44", path = "../../base_layer/common_types" } +tari_common_types = { version = "^0.45", path = "../../base_layer/common_types" } tari_comms = { path = "../../comms/core" } tari_core = { path = "../../base_layer/core" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } diff --git a/applications/tari_app_utilities/Cargo.toml b/applications/tari_app_utilities/Cargo.toml index 9979f8846a..faf44c39cb 100644 --- a/applications/tari_app_utilities/Cargo.toml +++ b/applications/tari_app_utilities/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tari_app_utilities" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development Community"] edition = "2018" license = "BSD-3-Clause" diff --git a/applications/tari_base_node/Cargo.toml b/applications/tari_base_node/Cargo.toml index 740276c15d..d3550bf26d 100644 --- a/applications/tari_base_node/Cargo.toml +++ b/applications/tari_base_node/Cargo.toml @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"] description = "The tari full base node implementation" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] diff --git a/applications/tari_console_wallet/Cargo.toml b/applications/tari_console_wallet/Cargo.toml index c59be2c859..9eb9a54007 100644 --- a/applications/tari_console_wallet/Cargo.toml +++ b/applications/tari_console_wallet/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tari_console_wallet" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development Community"] edition = "2018" license = "BSD-3-Clause" diff --git a/applications/tari_merge_mining_proxy/Cargo.toml b/applications/tari_merge_mining_proxy/Cargo.toml index 5a74ae1911..288e0c77e7 100644 --- a/applications/tari_merge_mining_proxy/Cargo.toml +++ b/applications/tari_merge_mining_proxy/Cargo.toml @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"] description = "The Tari merge mining proxy for xmrig" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [features] diff --git a/applications/tari_miner/Cargo.toml b/applications/tari_miner/Cargo.toml index 5e3fe6e42e..e37a67d7ac 100644 --- a/applications/tari_miner/Cargo.toml +++ b/applications/tari_miner/Cargo.toml @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"] description = "The tari miner implementation" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] diff --git a/base_layer/common_types/Cargo.toml b/base_layer/common_types/Cargo.toml index 444fd20540..9e9804f9d4 100644 --- a/base_layer/common_types/Cargo.toml +++ b/base_layer/common_types/Cargo.toml @@ -3,14 +3,14 @@ name = "tari_common_types" authors = ["The Tari Development Community"] description = "Tari cryptocurrency common types" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } # TODO: remove this dependency and move Network into tari_common_types -tari_common = { version = "^0.44", path = "../../common" } +tari_common = { version = "^0.45", path = "../../common" } borsh = "0.9.3" diff --git a/base_layer/core/Cargo.toml b/base_layer/core/Cargo.toml index 240bf6362e..79a1aaf12a 100644 --- a/base_layer/core/Cargo.toml +++ b/base_layer/core/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [features] @@ -19,20 +19,20 @@ avx2 = ["tari_crypto/simd_backend"] benches = ["base_node", "criterion"] [dependencies] -tari_common = { version = "^0.44", path = "../../common" } -tari_common_types = { version = "^0.44", path = "../../base_layer/common_types" } -tari_comms = { version = "^0.44", path = "../../comms/core" } -tari_comms_dht = { version = "^0.44", path = "../../comms/dht" } -tari_comms_rpc_macros = { version = "^0.44", path = "../../comms/rpc_macros" } +tari_common = { version = "^0.45", path = "../../common" } +tari_common_types = { version = "^0.45", path = "../../base_layer/common_types" } +tari_comms = { version = "^0.45", path = "../../comms/core" } +tari_comms_dht = { version = "^0.45", path = "../../comms/dht" } +tari_comms_rpc_macros = { version = "^0.45", path = "../../comms/rpc_macros" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6", features = ["borsh"] } tari_metrics = { path = "../../infrastructure/metrics" } -tari_mmr = { version = "^0.44", path = "../../base_layer/mmr", optional = true, features = ["native_bitmap"] } -tari_p2p = { version = "^0.44", path = "../../base_layer/p2p" } +tari_mmr = { version = "^0.45", path = "../../base_layer/mmr", optional = true, features = ["native_bitmap"] } +tari_p2p = { version = "^0.45", path = "../../base_layer/p2p" } tari_script = { path = "../../infrastructure/tari_script" } -tari_service_framework = { version = "^0.44", path = "../service_framework" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } -tari_storage = { version = "^0.44", path = "../../infrastructure/storage" } -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_service_framework = { version = "^0.45", path = "../service_framework" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } +tari_storage = { version = "^0.45", path = "../../infrastructure/storage" } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag = "v0.4.10", features = ["borsh"] } bincode = "1.1.4" @@ -76,15 +76,15 @@ uint = { version = "0.9", default-features = false } zeroize = "1" [dev-dependencies] -tari_p2p = { version = "^0.44", path = "../../base_layer/p2p", features = ["test-mocks"] } -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_p2p = { version = "^0.45", path = "../../base_layer/p2p", features = ["test-mocks"] } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } config = { version = "0.13.0" } env_logger = "0.7.0" tempfile = "3.1.0" [build-dependencies] -tari_common = { version = "^0.44", path = "../../common", features = ["build"] } +tari_common = { version = "^0.45", path = "../../common", features = ["build"] } [[bench]] name = "mempool" diff --git a/base_layer/key_manager/Cargo.toml b/base_layer/key_manager/Cargo.toml index 35a09951aa..d68506afae 100644 --- a/base_layer/key_manager/Cargo.toml +++ b/base_layer/key_manager/Cargo.toml @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"] description = "Tari cryptocurrency wallet key management" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2021" [lib] @@ -12,7 +12,7 @@ crate-type = ["lib", "cdylib"] # NB: All dependencies must support or be gated for the WASM target. [dependencies] -tari_common_types = { version = "^0.44", path = "../../base_layer/common_types", optional = true } +tari_common_types = { version = "^0.45", path = "../../base_layer/common_types", optional = true } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } diff --git a/base_layer/mmr/Cargo.toml b/base_layer/mmr/Cargo.toml index 54c609975b..30e592ecca 100644 --- a/base_layer/mmr/Cargo.toml +++ b/base_layer/mmr/Cargo.toml @@ -4,7 +4,7 @@ authors = ["The Tari Development Community"] description = "A Merkle Mountain Range implementation" repository = "https://github.com/tari-project/tari" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [features] diff --git a/base_layer/p2p/Cargo.toml b/base_layer/p2p/Cargo.toml index 712241636c..94f5304964 100644 --- a/base_layer/p2p/Cargo.toml +++ b/base_layer/p2p/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tari_p2p" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development community"] description = "Tari base layer-specific peer-to-peer communication features" repository = "https://github.com/tari-project/tari" @@ -10,13 +10,13 @@ license = "BSD-3-Clause" edition = "2018" [dependencies] -tari_comms = { version = "^0.44", path = "../../comms/core" } -tari_comms_dht = { version = "^0.44", path = "../../comms/dht" } -tari_common = { version = "^0.44", path = "../../common" } +tari_comms = { version = "^0.45", path = "../../comms/core" } +tari_comms_dht = { version = "^0.45", path = "../../comms/dht" } +tari_common = { version = "^0.45", path = "../../common" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } -tari_service_framework = { version = "^0.44", path = "../service_framework" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } -tari_storage = { version = "^0.44", path = "../../infrastructure/storage" } +tari_service_framework = { version = "^0.45", path = "../service_framework" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } +tari_storage = { version = "^0.45", path = "../../infrastructure/storage" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } anyhow = "1.0.53" @@ -39,7 +39,7 @@ trust-dns-client = { version = "=0.21.0-alpha.5", features = ["dns-over-rustls"] webpki = "0.21" [dev-dependencies] -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } config = "0.13.0" clap = "2.33.0" @@ -47,7 +47,7 @@ lazy_static = "1.3.0" tempfile = "3.1.0" [build-dependencies] -tari_common = { version = "^0.44", path = "../../common", features = ["build"] } +tari_common = { version = "^0.45", path = "../../common", features = ["build"] } [features] test-mocks = [] diff --git a/base_layer/service_framework/Cargo.toml b/base_layer/service_framework/Cargo.toml index 174806951a..3bfd939aa4 100644 --- a/base_layer/service_framework/Cargo.toml +++ b/base_layer/service_framework/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tari_service_framework" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development Community"] description = "The Tari communication stack service framework" repository = "https://github.com/tari-project/tari" @@ -10,7 +10,7 @@ license = "BSD-3-Clause" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } anyhow = "1.0.53" async-trait = "0.1.50" @@ -21,7 +21,7 @@ tokio = { version = "1.23", features = ["rt"] } tower-service = { version = "0.3" } [dev-dependencies] -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } tokio = { version = "1.23", features = ["rt-multi-thread", "macros", "time"] } futures-test = { version = "0.3.3" } diff --git a/base_layer/tari_mining_helper_ffi/Cargo.toml b/base_layer/tari_mining_helper_ffi/Cargo.toml index 511e0faf2c..887cc6019a 100644 --- a/base_layer/tari_mining_helper_ffi/Cargo.toml +++ b/base_layer/tari_mining_helper_ffi/Cargo.toml @@ -3,11 +3,11 @@ name = "tari_mining_helper_ffi" authors = ["The Tari Development Community"] description = "Tari cryptocurrency miningcore C FFI bindings" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] -tari_comms = { version = "^0.44", path = "../../comms/core" } +tari_comms = { version = "^0.45", path = "../../comms/core" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6"} tari_common = { path = "../../common" } tari_core = { path = "../core", default-features = false, features = ["transactions"]} diff --git a/base_layer/wallet/Cargo.toml b/base_layer/wallet/Cargo.toml index aa5d5ec90c..e53f7a20cd 100644 --- a/base_layer/wallet/Cargo.toml +++ b/base_layer/wallet/Cargo.toml @@ -3,21 +3,21 @@ name = "tari_wallet" authors = ["The Tari Development Community"] description = "Tari cryptocurrency wallet library" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] -tari_core = { path = "../../base_layer/core", version = "^0.44", default-features = false, features = ["transactions", "mempool_proto", "base_node_proto"] } +tari_core = { path = "../../base_layer/core", version = "^0.45", default-features = false, features = ["transactions", "mempool_proto", "base_node_proto"] } tari_common = { path = "../../common" } -tari_common_types = { version = "^0.44", path = "../../base_layer/common_types" } -tari_comms = { version = "^0.44", path = "../../comms/core" } -tari_comms_dht = { version = "^0.44", path = "../../comms/dht" } +tari_common_types = { version = "^0.45", path = "../../base_layer/common_types" } +tari_comms = { version = "^0.45", path = "../../comms/core" } +tari_comms_dht = { version = "^0.45", path = "../../comms/dht" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } -tari_key_manager = { version = "^0.44", path = "../key_manager" } -tari_p2p = { version = "^0.44", path = "../p2p", features = ["auto-update"] } +tari_key_manager = { version = "^0.45", path = "../key_manager" } +tari_p2p = { version = "^0.45", path = "../p2p", features = ["auto-update"] } tari_script = { path = "../../infrastructure/tari_script" } -tari_service_framework = { version = "^0.44", path = "../service_framework" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } +tari_service_framework = { version = "^0.45", path = "../service_framework" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } tari_common_sqlite = { path = "../../common_sqlite" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } @@ -56,10 +56,10 @@ chacha20poly1305 = "0.10.1" zeroize = "1" [dev-dependencies] -tari_p2p = { version = "^0.44", path = "../p2p", features = ["test-mocks"] } -tari_comms_dht = { version = "^0.44", path = "../../comms/dht", features = ["test-mocks"] } -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } -tari_core = { path = "../../base_layer/core", version = "^0.44", default-features = false, features = ["transactions", "mempool_proto", "base_node_proto", "base_node"] } +tari_p2p = { version = "^0.45", path = "../p2p", features = ["test-mocks"] } +tari_comms_dht = { version = "^0.45", path = "../../comms/dht", features = ["test-mocks"] } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } +tari_core = { path = "../../base_layer/core", version = "^0.45", default-features = false, features = ["transactions", "mempool_proto", "base_node_proto", "base_node"] } env_logger = "0.7.1" prost = "0.9.0" diff --git a/base_layer/wallet_ffi/Cargo.toml b/base_layer/wallet_ffi/Cargo.toml index 18e4549117..cedaa6cf0d 100644 --- a/base_layer/wallet_ffi/Cargo.toml +++ b/base_layer/wallet_ffi/Cargo.toml @@ -3,22 +3,22 @@ name = "tari_wallet_ffi" authors = ["The Tari Development Community"] description = "Tari cryptocurrency wallet C FFI bindings" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] -tari_core = { version = "^0.44", path = "../../base_layer/core", default-features = false, features = ["tari_mmr", "transactions"] } +tari_core = { version = "^0.45", path = "../../base_layer/core", default-features = false, features = ["tari_mmr", "transactions"] } tari_common = { path="../../common" } tari_common_types = { path="../common_types" } -tari_comms = { version = "^0.44", path = "../../comms/core", features = ["c_integration"]} -tari_comms_dht = { version = "^0.44", path = "../../comms/dht", default-features = false } +tari_comms = { version = "^0.45", path = "../../comms/core", features = ["c_integration"]} +tari_comms_dht = { version = "^0.45", path = "../../comms/dht", default-features = false } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } -tari_key_manager = { version = "^0.44", path = "../key_manager" } -tari_p2p = { version = "^0.44", path = "../p2p" } +tari_key_manager = { version = "^0.45", path = "../key_manager" } +tari_p2p = { version = "^0.45", path = "../p2p" } tari_script = { path = "../../infrastructure/tari_script" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } -tari_wallet = { version = "^0.44", path = "../wallet", features = ["c_integration"]} +tari_wallet = { version = "^0.45", path = "../wallet", features = ["c_integration"]} chacha20poly1305 = "0.10.1" chrono = { version = "0.4.19", default-features = false, features = ["serde"] } @@ -43,9 +43,9 @@ crate-type = ["staticlib","cdylib"] [dev-dependencies] tempfile = "3.1.0" lazy_static = "1.3.0" -tari_key_manager = { version = "^0.44", path = "../key_manager" } -tari_common_types = { version = "^0.44", path = "../../base_layer/common_types"} -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils"} +tari_key_manager = { version = "^0.45", path = "../key_manager" } +tari_common_types = { version = "^0.45", path = "../../base_layer/common_types"} +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils"} tari_service_framework = { path = "../../base_layer/service_framework" } borsh = "0.9.3" diff --git a/changelog.md b/changelog.md index 4cb82736b5..9707d7d6d6 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,44 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [0.45.0](https://github.com/tari-project/tari/compare/v0.44.1...v0.45.0) (2023-02-14) + + +### ⚠ BREAKING CHANGES + +* refactor database encryption (#5154) +* update `Argon2` parameters (#5140) + +### Features + +* add `node {word} is in state {word}` ([33360cd](https://github.com/tari-project/tari/commit/33360cd1e9c8ad1dec1bd8193ca6cae1b79c81f4)) +* add get tari address to wallet ([1b0ed0b](https://github.com/tari-project/tari/commit/1b0ed0b99f8f36d7f04215b0ef846fdb13c095e7)) +* add graceful shutdown of base node ([c9797c5](https://github.com/tari-project/tari/commit/c9797c51e996fc043a6e4fd94ae1baebcd39d115)) +* add kill signal to cucumber nodes ([4cb21dc](https://github.com/tari-project/tari/commit/4cb21dc9148a32fbefae0017e984c634388f1543)) +* add shutdown clone ([ac956c9](https://github.com/tari-project/tari/commit/ac956c90d9ac3f78d7437ee24360c80204870341)) +* consolidate stealth payment code ([#5171](https://github.com/tari-project/tari/issues/5171)) ([b7747a2](https://github.com/tari-project/tari/commit/b7747a29c7032278b3ed88e13823d6e4fe7de45e)) +* fix miner ([7283eb2](https://github.com/tari-project/tari/commit/7283eb2c61e9e13313e256a1cc5ab191bb4f4b58)) +* gracefully shutdown grpc server ([947faf6](https://github.com/tari-project/tari/commit/947faf6559e6c16acdfe342c11c8c1ee99752d36)) +* refactor database encryption ([#5154](https://github.com/tari-project/tari/issues/5154)) ([41413fc](https://github.com/tari-project/tari/commit/41413fca3c66bf567777373d2b102c9d7ac0ea57)) +* refactor key-related field operations to be atomic ([#5178](https://github.com/tari-project/tari/issues/5178)) ([1ad79c9](https://github.com/tari-project/tari/commit/1ad79c946b3c67a3724f87d15ce55f29966d1e8b)) +* remove unused dependencies ([#5144](https://github.com/tari-project/tari/issues/5144)) ([a9d0f37](https://github.com/tari-project/tari/commit/a9d0f3711108ddb27599dc3e91834bb6cd02f821)) +* stagenet network ([#5173](https://github.com/tari-project/tari/issues/5173)) ([d2717a1](https://github.com/tari-project/tari/commit/d2717a1147e714f3978aaffb1e5af46986974335)) +* update `Argon2` parameters ([#5140](https://github.com/tari-project/tari/issues/5140)) ([4c4a056](https://github.com/tari-project/tari/commit/4c4a056f1f6623f6566b691a96c850ff905c0587)) +* wallet FFI cucumber ([795e717](https://github.com/tari-project/tari/commit/795e7178020b41bbda0510563e0ac0c2448eb359)) +* wallet password change ([#5175](https://github.com/tari-project/tari/issues/5175)) ([7f13fa5](https://github.com/tari-project/tari/commit/7f13fa5e64144c11b67201ab38bb55bdbb494680)) + + +### Bug Fixes + +* couple fixes for cucumber ([ad92e11](https://github.com/tari-project/tari/commit/ad92e1172682e602664ff512f9ce1495a566e473)) +* **dht/test:** ban peers who send empty encrypted messages ([#5130](https://github.com/tari-project/tari/issues/5130)) ([86a9eaf](https://github.com/tari-project/tari/commit/86a9eaf700323a2794d2b71797ebf811ba3679b5)) +* do not propagate unsigned encrypted messages ([#5129](https://github.com/tari-project/tari/issues/5129)) ([d4fe7de](https://github.com/tari-project/tari/commit/d4fe7de1088aa986bf00d6ff4c31dd92659b4d95)) +* feature flag separation for validation ([#5137](https://github.com/tari-project/tari/issues/5137)) ([0e83463](https://github.com/tari-project/tari/commit/0e83463718001ef14564068f2087fb6dc50b0fa3)) +* panic on overflow in release mode ([#5150](https://github.com/tari-project/tari/issues/5150)) ([5f5808b](https://github.com/tari-project/tari/commit/5f5808b309cbf2416541652c7e2a4a923ef46e35)) +* potential ban ([#5146](https://github.com/tari-project/tari/issues/5146)) ([9892da6](https://github.com/tari-project/tari/commit/9892da6345468b798b0b669f010322f343fd9f4f)) +* **test:** broken address test ([#5134](https://github.com/tari-project/tari/issues/5134)) ([6b125af](https://github.com/tari-project/tari/commit/6b125af57570d48d5864158693f3ab935d23f6a9)) +* **wallet-grpc:** return correct available balance and add timelocked_balance ([#5181](https://github.com/tari-project/tari/issues/5181)) ([e001125](https://github.com/tari-project/tari/commit/e0011254ddbf4556a8b0ac2576869615c6549ccc)) + ### [0.44.1](https://github.com/tari-project/tari/compare/v0.44.0...v0.44.1) (2023-01-19) ## [0.44.0](https://github.com/tari-project/tari/compare/v0.43.3...v0.44.0) (2023-01-18) diff --git a/common/Cargo.toml b/common/Cargo.toml index 8f41f1038e..d844aa195e 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [features] @@ -35,5 +35,5 @@ toml = { version = "0.5", optional = true } blake2 = "0.9.1" [dev-dependencies] -tari_test_utils = { version = "^0.44", path = "../infrastructure/test_utils"} +tari_test_utils = { version = "^0.45", path = "../infrastructure/test_utils"} toml = "0.5.8" diff --git a/common_sqlite/Cargo.toml b/common_sqlite/Cargo.toml index cb51573e0f..186083add1 100644 --- a/common_sqlite/Cargo.toml +++ b/common_sqlite/Cargo.toml @@ -3,7 +3,7 @@ name = "tari_common_sqlite" authors = ["The Tari Development Community"] description = "Tari cryptocurrency wallet library" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/comms/core/Cargo.toml b/comms/core/Cargo.toml index 183b36934e..c805e7a67b 100644 --- a/comms/core/Cargo.toml +++ b/comms/core/Cargo.toml @@ -6,14 +6,14 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } tari_metrics = { path = "../../infrastructure/metrics" } -tari_storage = { version = "^0.44", path = "../../infrastructure/storage" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } +tari_storage = { version = "^0.45", path = "../../infrastructure/storage" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag = "v0.4.10" } anyhow = "1.0.53" @@ -50,7 +50,7 @@ yamux = "=0.10.2" zeroize = "1" [dev-dependencies] -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } tari_comms_rpc_macros = { version = "*", path = "../rpc_macros" } env_logger = "0.7.0" @@ -58,7 +58,7 @@ serde_json = "1.0.39" tempfile = "3.1.0" [build-dependencies] -tari_common = { version = "^0.44", path = "../../common", features = ["build"] } +tari_common = { version = "^0.45", path = "../../common", features = ["build"] } [features] c_integration = [] diff --git a/comms/dht/Cargo.toml b/comms/dht/Cargo.toml index dc2ad4930d..64fc23226c 100644 --- a/comms/dht/Cargo.toml +++ b/comms/dht/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tari_comms_dht" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development Community"] description = "Tari comms DHT module" repository = "https://github.com/tari-project/tari" @@ -10,13 +10,13 @@ license = "BSD-3-Clause" edition = "2018" [dependencies] -tari_comms = { version = "^0.44", path = "../core", features = ["rpc"] } +tari_comms = { version = "^0.45", path = "../core", features = ["rpc"] } tari_common = { path = "../../common" } -tari_comms_rpc_macros = { version = "^0.44", path = "../rpc_macros" } +tari_comms_rpc_macros = { version = "^0.45", path = "../rpc_macros" } tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", tag = "v0.16.6" } tari_utilities = { git = "https://github.com/tari-project/tari_utilities.git", tag="v0.4.10" } -tari_shutdown = { version = "^0.44", path = "../../infrastructure/shutdown" } -tari_storage = { version = "^0.44", path = "../../infrastructure/storage" } +tari_shutdown = { version = "^0.45", path = "../../infrastructure/shutdown" } +tari_storage = { version = "^0.45", path = "../../infrastructure/storage" } tari_common_sqlite = { path = "../../common_sqlite" } anyhow = "1.0.53" @@ -48,7 +48,7 @@ tokio = { version = "1.23", features = ["rt", "macros"] } pin-project = "0.4" [dev-dependencies] -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } env_logger = "0.7.0" futures-test = { version = "0.3.5" } @@ -62,7 +62,7 @@ clap = "2.33.0" [build-dependencies] -tari_common = { version = "^0.44", path = "../../common" } +tari_common = { version = "^0.45", path = "../../common" } [features] test-mocks = [] diff --git a/comms/rpc_macros/Cargo.toml b/comms/rpc_macros/Cargo.toml index 97da4c7556..3662db1fd3 100644 --- a/comms/rpc_macros/Cargo.toml +++ b/comms/rpc_macros/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [lib] @@ -19,8 +19,8 @@ quote = "1.0.7" syn = { version = "1.0.38", features = ["fold"] } [dev-dependencies] -tari_comms = { version = "^0.44", path = "../core", features = ["rpc"] } -tari_test_utils = { version = "^0.44", path = "../../infrastructure/test_utils" } +tari_comms = { version = "^0.45", path = "../core", features = ["rpc"] } +tari_test_utils = { version = "^0.45", path = "../../infrastructure/test_utils" } futures = "0.3.5" prost = "0.9.0" diff --git a/infrastructure/derive/Cargo.toml b/infrastructure/derive/Cargo.toml index 2f2caa12f5..6bf2e2ff8b 100644 --- a/infrastructure/derive/Cargo.toml +++ b/infrastructure/derive/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [lib] diff --git a/infrastructure/libtor/Cargo.toml b/infrastructure/libtor/Cargo.toml index 40127252a0..19586462ff 100644 --- a/infrastructure/libtor/Cargo.toml +++ b/infrastructure/libtor/Cargo.toml @@ -7,7 +7,7 @@ license = "BSD-3-Clause" [dependencies] tari_common = { path = "../../common" } tari_p2p = { path = "../../base_layer/p2p" } -tari_shutdown = { version = "^0.44", path = "../shutdown"} +tari_shutdown = { version = "^0.45", path = "../shutdown"} derivative = "2.2.0" log = "0.4.8" diff --git a/infrastructure/shutdown/Cargo.toml b/infrastructure/shutdown/Cargo.toml index d1d0b0edd8..869843c3c6 100644 --- a/infrastructure/shutdown/Cargo.toml +++ b/infrastructure/shutdown/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/infrastructure/storage/Cargo.toml b/infrastructure/storage/Cargo.toml index afafd67bd6..24dbeee4f7 100644 --- a/infrastructure/storage/Cargo.toml +++ b/infrastructure/storage/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/tari-project/tari" homepage = "https://tari.com" readme = "README.md" license = "BSD-3-Clause" -version = "0.44.1" +version = "0.45.0" edition = "2018" [dependencies] diff --git a/infrastructure/test_utils/Cargo.toml b/infrastructure/test_utils/Cargo.toml index 27feb97ae9..1b2f067771 100644 --- a/infrastructure/test_utils/Cargo.toml +++ b/infrastructure/test_utils/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tari_test_utils" description = "Utility functions used in Tari test functions" -version = "0.44.1" +version = "0.45.0" authors = ["The Tari Development Community"] edition = "2018" license = "BSD-3-Clause" diff --git a/integration_tests/.husky/_/husky.sh b/integration_tests/.husky/_/husky.sh new file mode 100644 index 0000000000..ca2720e08a --- /dev/null +++ b/integration_tests/.husky/_/husky.sh @@ -0,0 +1,30 @@ +#!/bin/sh +if [ -z "$husky_skip_init" ]; then + debug () { + [ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1" + } + + readonly hook_name="$(basename "$0")" + debug "starting $hook_name..." + + if [ "$HUSKY" = "0" ]; then + debug "HUSKY env variable is set to 0, skipping hook" + exit 0 + fi + + if [ -f ~/.huskyrc ]; then + debug "sourcing ~/.huskyrc" + . ~/.huskyrc + fi + + export readonly husky_skip_init=1 + sh -e "$0" "$@" + exitCode="$?" + + if [ $exitCode != 0 ]; then + echo "husky - $hook_name hook exited with code $exitCode (error)" + exit $exitCode + fi + + exit 0 +fi diff --git a/package-lock.json b/package-lock.json index 8cfd9247e9..6584507c53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tari", - "version": "0.44.1", + "version": "0.45.0", "lockfileVersion": 2, "requires": true, "packages": {}