Skip to content

Commit

Permalink
Switch to using version/author/edition from the workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jan 13, 2023
1 parent 0c94c3c commit 996b6d9
Show file tree
Hide file tree
Showing 11 changed files with 443 additions and 357 deletions.
686 changes: 380 additions & 306 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[workspace]
resolver = "2"
[workspace.package]
version = "1.0.0-alpha5"
authors = ["chevdor <chevdor@gmail.com>", "Wilfried Kopp <wilfried@parity.io>"]
edition = "2021"

[workspace]
members = [
"cli",
"lib",
Expand Down
18 changes: 9 additions & 9 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
authors = ["Chevdor <chevdor@gmail.com>", "Wilfried Kopp <wilfried@parity.io>"]
name = "subwasm-cli"
version.workspace = true
edition.workspace = true
authors.workspace = true
description = "subwasm is a utility that works on WASM Runtime of Substrate based chains"
edition = "2021"
homepage = "https://github.com/chevdor/subwasm"
keywords = [
"wasm",
Expand All @@ -13,10 +15,8 @@ keywords = [
"kusama",
]
license = "MIT"
name = "subwasm"
readme = "README.md"
repository = "https://github.com/chevdor/subwasm"
version = "1.0.0-alpha3"

[dependencies]
assert_cmd = "2.0"
Expand All @@ -32,12 +32,12 @@ clap = { version = "4.0", features = [
"suggestions",
] }
color-eyre = "0.6"
env_logger = "0.9"
env_logger = "0.10"
log = "0.4"
substrate-runtime-proposal-hash = { version = "0.18.0", path = "../libs/substrate-runtime-proposal-hash", optional = true }
subwasmlib = { version = "0.18.0", path = "../lib" }
wasm-loader = { version = "0.18.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.18.0", path = "../libs/wasm-testbed" }
substrate-runtime-proposal-hash = { version = "1.0.0-alpha5", path = "../libs/substrate-runtime-proposal-hash", optional = true }
subwasmlib = { version = "1.0.0-alpha5", path = "../lib" }
wasm-loader = { version = "1.0.0-alpha5", path = "../libs/wasm-loader" }
wasm-testbed = { version = "1.0.0-alpha5", path = "../libs/wasm-testbed" }
serde_json = "1.0"
text-style = { version = "0.3", features = ["termion"] }
sp-runtime = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
Expand Down
17 changes: 9 additions & 8 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[package]
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2021"
name = "subwasmlib"
version.workspace = true
edition.workspace = true
authors.workspace = true

homepage = "https://github.com/chevdor/subwasm"
keywords = [
"wasm",
Expand All @@ -12,10 +15,8 @@ keywords = [
"kusama",
]
license = "MIT"
name = "subwasmlib"
readme = "README.md"
repository = "https://github.com/chevdor/subwasm"
version = "0.18.0"

[dependencies]
calm_io = "0.1"
Expand All @@ -26,7 +27,7 @@ frame-metadata = { version = "15", package = "frame-metadata", features = [
"v14",
"std",
] }
ipfs-hasher = { version = "0.18.0", path = "../libs/ipfs-hasher" }
ipfs-hasher = { version = "1.0.0-alpha5", path = "../libs/ipfs-hasher" }
log = "0.4"
num-format = "0.4"
rand = "0.8"
Expand All @@ -35,7 +36,7 @@ scale-info = { version = "2.1", default-features = false, features = [
] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
substrate-differ = { version = "1.0.0-alpha3", path = "../libs/substrate-differ" }
wasm-loader = { version = "0.18.0", path = "../libs/wasm-loader" }
wasm-testbed = { version = "0.18.0", path = "../libs/wasm-testbed" }
substrate-differ = { version = "1.0.0-alpha5", path = "../libs/substrate-differ" }
wasm-loader = { version = "1.0.0-alpha5", path = "../libs/wasm-loader" }
wasm-testbed = { version = "1.0.0-alpha5", path = "../libs/wasm-testbed" }
sp-version = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
9 changes: 5 additions & 4 deletions libs/ipfs-hasher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
authors = ["Wilfried Kopp <wilfried@parity.io>"]
edition = "2021"
version.workspace = true
edition.workspace = true
authors.workspace = true

license = "MIT"
name = "ipfs-hasher"
version = "0.18.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ipfs-unixfs = "0.2"

[dev-dependencies]
wasm-loader = { version = "0.18", path = "../wasm-loader" }
wasm-loader = { version = "1.0.0-alpha5", path = "../wasm-loader" }
11 changes: 6 additions & 5 deletions libs/substrate-differ/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
edition = "2021"
license = "MIT"
name = "substrate-differ"
version = "1.0.0-alpha3"
version.workspace = true
edition.workspace = true
authors.workspace = true
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -21,7 +22,7 @@ treediff = { version = "4.0", features = [
"with-serde-json",
"with-rustc-serialize",
] }
wasm-testbed = { version = "0.18.0", path = "../wasm-testbed" }
wasm-testbed = { version = "1.0.0-alpha5", path = "../wasm-testbed" }
scale-info = { version = "2.1.2", default-features = false, features = [
"derive",
"std",
Expand All @@ -31,7 +32,7 @@ document-features = { version = "0.2" }
comparable = { version = ">=0.5.3", features = ["derive", "serde"] }

[dev-dependencies]
wasm-loader = { version = "0.18", path = "../wasm-loader" }
wasm-loader = { version = "1.0.0-alpha5", path = "../wasm-loader" }

[features]
## The default feature currently hides feature that are deprecated
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use super::calls::{prelude::PalletId, *};
use comparable::Comparable;
use frame_metadata::PalletMetadata;
use scale_info::form::PortableForm;
use serde::Serialize;
use std::{collections::BTreeMap, fmt::Display};
// use super::calls::{prelude::PalletId, *};
// use frame_metadata::PalletMetadata;
// use scale_info::form::PortableForm;
// use std::{collections::BTreeMap, fmt::Display};

/// A [ReducedPallet] could be a `Vec` or [PalletItem] but it ends
/// but providing a much more useful output after diffing when using
Expand Down
4 changes: 2 additions & 2 deletions libs/substrate-differ/src/differs/reduced/reduced_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ impl ReducedRuntime {
let registry = &v14.types;

// TODO: deal with extrinsic as well
let _extrinsics = &v14.extrinsic;
// let extrinsics = &v14.extrinsic;

println!("_extrinsics = {:#?}", _extrinsics);
// println!("extrinsics = {:#?}", extrinsics);

let pallets = &v14.pallets;
let reduced_pallets: HashMap<PalletId, ReducedPallet> = pallets
Expand Down
15 changes: 10 additions & 5 deletions libs/substrate-runtime-proposal-hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[package]
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2021"
name = "substrate-runtime-proposal-hash"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage = "https://github.com/chevdor/subwasm"
keywords = [
"wasm",
Expand All @@ -12,13 +14,16 @@ keywords = [
"kusama",
]
license = "MIT"
name = "substrate-runtime-proposal-hash"
readme = "README.md"
repository = "https://github.com/chevdor/subwasm"
version = "0.18.0"

[dependencies]
frame-metadata = {package = "frame-metadata", git = "https://github.com/paritytech/frame-metadata", branch = "main", features = ["v12", "v13", "v14", "std"] }
frame-metadata = { package = "frame-metadata", git = "https://github.com/paritytech/frame-metadata", branch = "main", features = [
"v12",
"v13",
"v14",
"std",
] }
blake2 = "0.10"
codec = { version = "3.1", package = "parity-scale-codec" }
sp-core = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
Expand Down
13 changes: 7 additions & 6 deletions libs/wasm-loader/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[package]
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2021"
name = "wasm-loader"
version.workspace = true
edition.workspace = true
authors.workspace = true

homepage = "https://github.com/chevdor/subwasm"
keywords = [
"wasm",
Expand All @@ -12,19 +15,17 @@ keywords = [
"kusama",
]
license = "MIT"
name = "wasm-loader"
readme = "README.md"
repository = "https://github.com/chevdor/subwasm"
version = "0.18.0"

[dependencies]
hex = "0.4"
jsonrpsee = { version = "0.15", git = "https://github.com/paritytech/jsonrpsee", features = [
jsonrpsee = { version = "0.16", git = "https://github.com/paritytech/jsonrpsee", features = [
"client",
] }
log = "0.4"
multibase = "0.9"
multihash = "0.16"
multihash = "0.18"
serde = { version = "1.0", features = ["derive"] }
sp-maybe-compressed-blob = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate/" }
tokio = { version = "1.19", features = ["full"] }
12 changes: 6 additions & 6 deletions libs/wasm-testbed/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[package]
authors = ["chevdor <chevdor@gmail.com>"]
edition = "2021"
name = "wasm-testbed"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage = "https://github.com/chevdor/subwasm"
keywords = [
"wasm",
Expand All @@ -12,10 +14,8 @@ keywords = [
"kusama",
]
license = "MIT"
name = "wasm-testbed"
readme = "README.md"
repository = "https://github.com/chevdor/subwasm"
version = "0.18.0"

[dependencies]
scale-info = { version = "2.1", default-features = false, features = [
Expand All @@ -37,6 +37,6 @@ sp-io = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrat
sp-runtime = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
sp-state-machine = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
sp-wasm-interface = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }
substrate-runtime-proposal-hash = { version = "0.18.0", path = "../substrate-runtime-proposal-hash" }
wasm-loader = { version = "0.18.0", path = "../wasm-loader" }
substrate-runtime-proposal-hash = { version = "1.0.0-alpha5", path = "../substrate-runtime-proposal-hash" }
wasm-loader = { version = "1.0.0-alpha5", path = "../wasm-loader" }
sp-version = { tag = "monthly-2022-07", git = "https://github.com/paritytech/substrate" }

0 comments on commit 996b6d9

Please sign in to comment.