Skip to content

Commit

Permalink
Dependency updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
kukabi committed Feb 22, 2024
1 parent b7be5e3 commit d45d6c3
Show file tree
Hide file tree
Showing 11 changed files with 389 additions and 214 deletions.
559 changes: 367 additions & 192 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion subvt-network-status-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bus = "2.3"
chrono = "0.4"
env_logger = "0.11"
futures-util = "0.3"
jsonrpsee = { version = "0.21", features = ["full"] }
jsonrpsee = { version = "0.22", features = ["full"] }
lazy_static = { workspace = true }
log = { workspace = true }
once_cell = "1"
Expand Down
6 changes: 3 additions & 3 deletions subvt-persistence/src/postgres/app/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ impl PostgreSQLAppStorage {
)
.bind(user_notification_rule_id)
.bind(*user_validator_id as i32)
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
// insert channel ids
Expand All @@ -623,7 +623,7 @@ impl PostgreSQLAppStorage {
)
.bind(user_notification_rule_id)
.bind(*user_notification_channel_id as i32)
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
// insert params
Expand All @@ -637,7 +637,7 @@ impl PostgreSQLAppStorage {
.bind(user_notification_rule_id)
.bind(param.parameter_type_id as i32)
.bind(&param.value)
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
Expand Down
4 changes: 2 additions & 2 deletions subvt-persistence/src/postgres/network/onekv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl PostgreSQLNetworkStorage {
.bind(validity.is_valid)
.bind(&validity.ty)
.bind(validity.updated_at as i64)
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
Expand Down Expand Up @@ -254,7 +254,7 @@ impl PostgreSQLNetworkStorage {
.bind(nominator_save_result.0)
.bind(stash_account_id.to_string())
.bind(&nominee.name)
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
Expand Down
14 changes: 7 additions & 7 deletions subvt-persistence/src/postgres/network/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl PostgreSQLNetworkStorage {
"#,
)
.bind(validator_account_id.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
// create controller account id (if not exists)
let maybe_controller_account_id = bonded_account_id_map.get(validator_account_id);
Expand All @@ -152,7 +152,7 @@ impl PostgreSQLNetworkStorage {
"#,
)
.bind(controller_account_id.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
let maybe_active_validator_index = active_validator_account_ids
Expand Down Expand Up @@ -181,7 +181,7 @@ impl PostgreSQLNetworkStorage {
.bind(maybe_validator_stake.map(|validator_stake| validator_stake.self_stake.to_string()))
.bind(maybe_validator_stake.map(|validator_stake| validator_stake.total_stake.to_string()))
.bind(maybe_validator_stake.map(|validator_stake| validator_stake.nominators.len() as i32))
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
Expand All @@ -199,7 +199,7 @@ impl PostgreSQLNetworkStorage {
"#,
)
.bind(validator_stake.account.id.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
for nominator_stake in &validator_stake.nominators {
// create nominator account (if not exists)
Expand All @@ -211,7 +211,7 @@ impl PostgreSQLNetworkStorage {
"#,
)
.bind(nominator_stake.account.id.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
sqlx::query(
r#"
Expand All @@ -224,7 +224,7 @@ impl PostgreSQLNetworkStorage {
.bind(validator_stake.account.id.to_string())
.bind(nominator_stake.account.id.to_string())
.bind(nominator_stake.stake.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
}
Expand Down Expand Up @@ -325,7 +325,7 @@ impl PostgreSQLNetworkStorage {
.bind(reward_points as i64)
.bind(era_index as i64)
.bind(validator_account_id.to_string())
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
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 @@ -177,7 +177,7 @@ impl PostgreSQLNetworkStorage {
.bind(node_id as i64)
.bind(data.1[i])
.bind(data.0[i])
.execute(&mut transaction)
.execute(&mut *transaction)
.await?;
}
transaction.commit().await?;
Expand Down
6 changes: 3 additions & 3 deletions subvt-substrate-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ byteorder = { version = "1.5", default-features = false }
chrono = "0.4"
frame-metadata = { version = "15.0", features = ["std", "v14"] }
hex = "0.4"
jsonrpsee = { version = "0.21", features = ["full"] }
jsonrpsee-core = "0.21"
jsonrpsee-types = "0.21"
jsonrpsee = { version = "0.22", features = ["full"] }
jsonrpsee-core = "0.22"
jsonrpsee-types = "0.22"
log = { workspace = true }
parity-scale-codec = { version = "3.6", default-features = false, features = ["derive", "full"] }
rustc-hash = "1.1"
Expand Down
2 changes: 1 addition & 1 deletion subvt-telemetry-processor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rust-version = "1.67.0"
anyhow = { workspace = true }
async-lock = "3.3"
async-trait = "0.1"
async-tungstenite = { version = "0.24", features = ["tokio-runtime", "tokio-native-tls"] }
async-tungstenite = { version = "0.25", features = ["tokio-runtime", "tokio-native-tls"] }
futures = "0.3"
lazy_static = { workspace = true }
log = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion subvt-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ sp-staking = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "po
sqlx = { git = "https://github.com/helikon-labs/sqlx.git", branch = "helikon-increased-field-count", features = ["postgres", "runtime-tokio-rustls", "chrono"] }
subvt-proc-macro = { path = "../subvt-proc-macro" }
subvt-utility = { path = "../subvt-utility" }
scale-bits = "0.4"
scale-bits = "0.5"
thiserror = { workspace = true }
4 changes: 2 additions & 2 deletions subvt-validator-details-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ anyhow = { workspace = true }
async-trait = "0.1"
bus = "2.4"
futures-util = "0.3"
jsonrpsee = { version = "0.21", features = ["full"] }
jsonrpsee-core = "0.21"
jsonrpsee = { version = "0.22", features = ["full"] }
jsonrpsee-core = "0.22"
lazy_static = { workspace = true }
log = { workspace = true }
once_cell = "1"
Expand Down
2 changes: 1 addition & 1 deletion subvt-validator-list-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ chrono = "0.4"
clap = "4.4"
env_logger = "0.11"
futures-util = "0.3"
jsonrpsee = { version = "0.21", features = ["full"] }
jsonrpsee = { version = "0.22", features = ["full"] }
lazy_static = { workspace = true }
log = { workspace = true }
once_cell = "1"
Expand Down

0 comments on commit d45d6c3

Please sign in to comment.