mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
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
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Version 0.5.0 (2020-03-25)
|
||||
|
||||
- First release
|
||||
- All substrate dependencies upgraded to `alpha.5`
|
||||
+16
-13
@@ -1,11 +1,14 @@
|
||||
[package]
|
||||
name = "substrate-subxt"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
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" }
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
# subxt · 
|
||||
# subxt ·  [](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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user