From fb00479a3d006350750f48d791497c4d14d6a26d Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 25 Mar 2020 14:43:03 +0000 Subject: [PATCH] Release v0.5.0 (#80) * Update README.md * Update to alpha.5 substrate packages * Add identity storage hasher * Bump version * Add CHANGELOG.md * Update crate metadata for publishing * Update url crate --- CHANGELOG.md | 4 ++++ Cargo.toml | 29 ++++++++++++++++------------- README.md | 10 ++++++---- src/metadata.rs | 1 + 4 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000000000..85408ef4b3a1b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# Version 0.5.0 (2020-03-25) + +- First release +- All substrate dependencies upgraded to `alpha.5` diff --git a/Cargo.toml b/Cargo.toml index bfee038c37920..a5af6e74e3fdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,14 @@ [package] name = "substrate-subxt" -version = "0.4.0" +version = "0.5.0" authors = ["Parity Technologies "] edition = "2018" license = "GPL-3.0" readme = "README.md" +repository = "https://github.com/paritytech/substrate-subxt" +documentation = "https://docs.rs/substrate-subxt" +homepage = "https://www.parity.io/" description = "Submit extrinsics (transactions) to a substrate node via RPC" keywords = ["parity", "substrate", "blockchain"] include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] @@ -18,23 +21,23 @@ jsonrpsee = { version = "0.1", features = ["ws"] } num-traits = { version = "0.2", default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -url = "1.7" +url = "2.1" codec = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive", "full"] } -frame-metadata = { version = "11.0.0-alpha.3", package = "frame-metadata" } -frame-support = { version = "2.0.0-alpha.3", package = "frame-support" } -sp-runtime = { version = "2.0.0-alpha.3", package = "sp-runtime" } -sp-version = { version = "2.0.0-alpha.3", package = "sp-version" } -pallet-indices = { version = "2.0.0-alpha.3", package = "pallet-indices" } +frame-metadata = { version = "11.0.0-alpha.5", package = "frame-metadata" } +frame-support = { version = "2.0.0-alpha.5", package = "frame-support" } +sp-runtime = { version = "2.0.0-alpha.5", package = "sp-runtime" } +sp-version = { version = "2.0.0-alpha.5", package = "sp-version" } +pallet-indices = { version = "2.0.0-alpha.5", package = "pallet-indices" } hex = "0.4.0" -sp-rpc = { version = "2.0.0-alpha.3", package = "sp-rpc" } -sp-core = { version = "2.0.0-alpha.3", package = "sp-core" } -sp-transaction-pool = { version = "2.0.0-alpha.3", package = "sp-transaction-pool" } +sp-rpc = { version = "2.0.0-alpha.5", package = "sp-rpc" } +sp-core = { version = "2.0.0-alpha.5", package = "sp-core" } +sp-transaction-pool = { version = "2.0.0-alpha.5", package = "sp-transaction-pool" } [dev-dependencies] async-std = "1.2.0" env_logger = "0.7" wabt = "0.9" -frame-system = { version = "2.0.0-alpha.3", package = "frame-system" } -pallet-balances = { version = "2.0.0-alpha.3", package = "pallet-balances" } -sp-keyring = { version = "2.0.0-alpha.3", package = "sp-keyring" } +frame-system = { version = "2.0.0-alpha.5", package = "frame-system" } +pallet-balances = { version = "2.0.0-alpha.5", package = "pallet-balances" } +sp-keyring = { version = "2.0.0-alpha.5", package = "sp-keyring" } diff --git a/README.md b/README.md index 1ff64413e0a91..65941d6959f56 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -# subxt · ![build](https://github.com/paritytech/substrate-subxt/workflows/Rust/badge.svg) +# subxt · ![build](https://github.com/paritytech/substrate-subxt/workflows/Rust/badge.svg) [![Latest Version](https://img.shields.io/crates/v/substrate-subxt.svg)](https://crates.io/crates/substrate-subxt) A library to **sub**mit e**xt**rinsics to a [substrate](https://github.com/paritytech/substrate) node via RPC. -**IMPORTANT NOTE:** WORK IN PROGRESS! Do not expect this to be working (or supported). +**Alternatives** -**Alternatively**: https://github.com/scs/substrate-api-client provides similar functionality. +[substrate-api-client](https://github.com/scs/substrate-api-client) provides similar functionality. -## License +#### License + The entire code within this repository is licensed under the [GPLv3](LICENSE). Please [contact us](https://www.parity.io/contact/) if you have questions about the licensing of our products. + diff --git a/src/metadata.rs b/src/metadata.rs index f71a1112abb5e..ac60b97a89ddf 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -238,6 +238,7 @@ impl StorageMap { bytes.extend(&sp_core::twox_128(&self.storage_prefix)[..]); let encoded_key = key.encode(); let hash = match self.hasher { + StorageHasher::Identity => encoded_key.to_vec(), StorageHasher::Blake2_128 => sp_core::blake2_128(&encoded_key).to_vec(), StorageHasher::Blake2_128Concat => { // copied from substrate Blake2_128Concat::hash since StorageHasher is not public