Skip to content

Commit

Permalink
Fix a multisig extrinsic decode issue. Update dependencies. Bump vers…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
kukabi committed May 16, 2024
1 parent f7048b7 commit 1c322c2
Show file tree
Hide file tree
Showing 30 changed files with 152 additions and 158 deletions.
242 changes: 121 additions & 121 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.35
VERSION=0.17.36
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

Expand Down
3 changes: 1 addition & 2 deletions subvt-block-processor/src/extrinsic/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ impl BlockProcessor {
other_signatories,
maybe_timepoint: _,
call,
// store_call: _,
// max_weight: _,
..
} => {
let signature = if let Some(signature) = signature {
signature
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion 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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion 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.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

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

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

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

Expand Down
11 changes: 3 additions & 8 deletions subvt-types/src/substrate/extrinsic/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::substrate::error::DecodeError;
use crate::substrate::extrinsic::{Signature, SubstrateExtrinsic};
use crate::substrate::{BlockNumber, Chain};
use frame_metadata::RuntimeMetadataV14;
use frame_support::weights::Weight;
use pallet_multisig::Timepoint;
use parity_scale_codec::Decode;

Expand All @@ -17,12 +18,7 @@ pub enum MultisigExtrinsic {
other_signatories: Vec<AccountId>,
maybe_timepoint: Option<Timepoint<BlockNumber>>,
call: Box<SubstrateExtrinsic>,
/*
Ignore the following - first one only exists on the older runtimes,
causing issues while decoding.
*/
// store_call: bool,
// max_weight: Weight,
max_weight: Weight,
},
AsMultiThreshold1 {
maybe_signature: Option<Signature>,
Expand Down Expand Up @@ -53,8 +49,7 @@ impl MultisigExtrinsic {
maybe_signature,
bytes,
)?),
// store_call: Decode::decode(bytes)?,
// max_weight: decode_weight(runtime_version, bytes)?,
max_weight: Decode::decode(bytes)?,
})),
AS_MULTI_THRESHOLD_1 => Some(SubstrateExtrinsic::Multisig(
MultisigExtrinsic::AsMultiThreshold1 {
Expand Down
2 changes: 1 addition & 1 deletion subvt-utility/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-utility"
version = "0.17.35"
version = "0.17.36"
edition = "2021"
rust-version = "1.67.0"

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

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

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

Expand Down

0 comments on commit 1c322c2

Please sign in to comment.