Skip to content

Commit

Permalink
Dependency updates and runtime upgrade fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kukabi committed Apr 19, 2024
1 parent b110e2d commit 768bc9f
Show file tree
Hide file tree
Showing 38 changed files with 1,086 additions and 1,171 deletions.
1,993 changes: 921 additions & 1,072 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _docker/compose/.env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.17.23
VERSION=0.17.24
ENV=production
LOG_LEVEL=debug

Expand Down
2 changes: 1 addition & 1 deletion subvt-app-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-app-service"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-block-processor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-block-processor"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
4 changes: 2 additions & 2 deletions subvt-block-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl BlockProcessor {
.await?;
if last_epoch_index != current_epoch.index || last_era_index != active_era.index {
let era_stakers = substrate_client
.get_era_stakers(&active_era, true, &block_hash)
.get_era_stakers(&active_era, &block_hash)
.await?;
if last_epoch_index != current_epoch.index {
log::info!("New epoch. Persist epoch, and persist era if it doesn't exist.");
Expand Down Expand Up @@ -215,7 +215,7 @@ impl BlockProcessor {
}
if last_era_index != active_era.index {
let era_stakers = substrate_client
.get_era_stakers(&active_era, true, &block_hash)
.get_era_stakers(&active_era, &block_hash)
.await?;
self.persist_era_validators_and_stakers(
substrate_client,
Expand Down
2 changes: 1 addition & 1 deletion subvt-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-config"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-governance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-governance"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-logging/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-logging"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-metrics"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-network-status-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-network-status-server"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-network-status-updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-network-status-updater"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-network-status-updater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl NetworkStatusUpdater {
.context("Error while getting last era's total validator reward.")?;
// era stakers
let era_stakers = client
.get_era_stakers(&era, true, best_block_hash.as_str())
.get_era_stakers(&era, best_block_hash.as_str())
.await
.context("Error while getting last era's active stakers.")?;
let total_stake = era_stakers.total_stake();
Expand Down
2 changes: 1 addition & 1 deletion subvt-nft/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-nft"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-notification-generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-notification-generator"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-notification-processor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-notification-processor"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
1 change: 1 addition & 0 deletions subvt-notification-processor/src/sender/telegram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl TelegramSender {
reply_parameters: None,
reply_markup: None,
message_thread_id: None,
business_connection_id: None,
};
match self.telegram_client.send_message(&params).await {
Ok(response) => {
Expand Down
2 changes: 1 addition & 1 deletion subvt-onekv-updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-onekv-updater"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-persistence/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-persistence"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-persistence/src/postgres/network/onekv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl PostgreSQLNetworkStorage {
.get_onekv_candidate_validity_items(summary.0 as u32)
.await?,
location: summary.9,
record_created_at: summary.10.timestamp_millis() as u64,
record_created_at: summary.10.and_utc().timestamp_millis() as u64,
}))
} else {
Ok(None)
Expand Down
2 changes: 1 addition & 1 deletion subvt-persistence/src/postgres/network/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl PostgreSQLNetworkStorage {
) -> anyhow::Result<()> {
let mut transaction = self.connection_pool.begin().await?;
for i in 0..data.0.len() {
let date_time = match chrono::NaiveDateTime::from_timestamp_opt(
let date_time = match chrono::DateTime::from_timestamp(
data.2[i] as i64 / 1000,
(data.2[i] as i64 % 1000) as u32,
) {
Expand Down
2 changes: 1 addition & 1 deletion subvt-plotter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-plotter"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-proc-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ proc-macro = true

[package]
name = "subvt-proc-macro"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-referendum-updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-referendum-updater"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-report-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-report-service"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand Down
4 changes: 2 additions & 2 deletions subvt-service-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-service-common"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand All @@ -10,7 +10,7 @@ anyhow = { workspace = true }
async-trait = "0.1"
log = { workspace = true }
serde_json = "1.0"
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.8.0" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.10.0" }
subvt-config = { path = "../subvt-config" }
subvt-logging = { path = "../subvt-logging" }
subvt-metrics = { path = "../subvt-metrics" }
Expand Down
4 changes: 2 additions & 2 deletions subvt-substrate-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-substrate-client"
version = "0.17.23"
version = "0.17.24"
edition = "2021"
rust-version = "1.67.0"

Expand All @@ -21,7 +21,7 @@ parity-scale-codec = { version = "3.6", default-features = false, features = ["d
rustc-hash = "1.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.8.0" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.10.0" }
subvt-config = { path = "../subvt-config" }
subvt-types = { path = "../subvt-types" }
subvt-utility = { path = "../subvt-utility" }
Expand Down
Loading

0 comments on commit 768bc9f

Please sign in to comment.