Skip to content

Commit

Permalink
Release v0.5.0 (paritytech#80)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ascjones authored Mar 25, 2020
1 parent f5eecd7 commit fb00479
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Version 0.5.0 (2020-03-25)

- First release
- All substrate dependencies upgraded to `alpha.5`
29 changes: 16 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[package]
name = "substrate-subxt"
version = "0.4.0"
version = "0.5.0"
authors = ["Parity Technologies <[email protected]>"]
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"]
Expand All @@ -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" }
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# subxt &middot; ![build](https://github.com/paritytech/substrate-subxt/workflows/Rust/badge.svg)
# subxt &middot; ![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

<sup>
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.
</sup>
1 change: 1 addition & 0 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl<K: Encode, V: Decode + Clone> StorageMap<K, V> {
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
Expand Down

0 comments on commit fb00479

Please sign in to comment.