mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 17:41:08 +00:00
Release v0.27.0 (#824)
* Bump substrate deps * Bump to 0.27.0 * update changelog * Clone and Debug on TxPayload types * move item to Changed * remove chore entirely
This commit is contained in:
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.27.0] - 2022-02-13
|
||||
|
||||
This is a fairly small release, primarily to bump substrate dependencies to their latest versions.
|
||||
|
||||
The main breaking change is fairly small: [#804](https://github.com/paritytech/subxt/pull/804). Here, the `BlockNumber` associated type has been removed from `Config` entirely, since it wasn't actually needed anywhere in Subxt. Additionally, the constraints on each of those associated types in `Config` were made more precise, primarily to tidy things up (but this should result in types more easily being able to meet the requirements here). If you use custom `Config`, the fix is simply to remove the `BlockNumber` type. If you also use the `Config` trait in your own functions and depend on those constraints, you may be able to define a custom `MyConfig` type which builds off `Config` and adds back any additional bounds that you want.
|
||||
|
||||
Note worthy PRs merged since the last release:
|
||||
|
||||
## Added
|
||||
|
||||
- Add find last function ([#821](https://github.com/paritytech/subxt/pull/821))
|
||||
- Doc: first item is current version comment ([#817](https://github.com/paritytech/subxt/pull/817))
|
||||
|
||||
## Changed
|
||||
|
||||
- Remove unneeded Config bounds and BlockNumber associated type ([#804](https://github.com/paritytech/subxt/pull/804))
|
||||
|
||||
## [0.26.0] - 2022-01-24
|
||||
|
||||
This release adds a number of improvements, most notably:
|
||||
|
||||
Generated
+288
-230
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt-cli"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = true
|
||||
@@ -17,9 +17,9 @@ path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
# perform subxt codegen
|
||||
subxt-codegen = { version = "0.26.0", path = "../codegen" }
|
||||
subxt-codegen = { version = "0.27.0", path = "../codegen" }
|
||||
# perform node compatibility
|
||||
subxt-metadata = { version = "0.26.0", path = "../metadata" }
|
||||
subxt-metadata = { version = "0.27.0", path = "../metadata" }
|
||||
# parse command line args
|
||||
clap = { version = "4.1.4", features = ["derive", "cargo"] }
|
||||
# colourful error reports
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt-codegen"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = true
|
||||
@@ -21,7 +21,7 @@ proc-macro-error = "1.0.4"
|
||||
quote = "1.0.8"
|
||||
syn = "1.0.58"
|
||||
scale-info = "2.0.0"
|
||||
subxt-metadata = { version = "0.26.0", path = "../metadata" }
|
||||
subxt-metadata = { version = "0.27.0", path = "../metadata" }
|
||||
jsonrpsee = { version = "0.16.0", features = ["async-client", "client-ws-transport", "http-client"] }
|
||||
hex = "0.4.3"
|
||||
tokio = { version = "1.25", features = ["macros", "rt-multi-thread"] }
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt-examples"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = false
|
||||
@@ -14,10 +14,10 @@ description = "Subxt example usage"
|
||||
[dev-dependencies]
|
||||
subxt = { path = "../subxt" }
|
||||
tokio = { version = "1.25", features = ["rt-multi-thread", "macros", "time"] }
|
||||
sp-keyring = "12.0.0"
|
||||
sp-keyring = "18.0.0"
|
||||
futures = "0.3.26"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
||||
hex = "0.4.3"
|
||||
tracing-subscriber = "0.3.11"
|
||||
sp-core = { version = "11.0.0", default-features = false }
|
||||
sp-runtime = { version = "12.0.0" }
|
||||
sp-core = { version = "16.0.0", default-features = false }
|
||||
sp-runtime = "18.0.0"
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt-macro"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = true
|
||||
@@ -20,4 +20,4 @@ darling = "0.14.3"
|
||||
proc-macro-error = "1.0.4"
|
||||
syn = "1.0.58"
|
||||
|
||||
subxt-codegen = { path = "../codegen", version = "0.26.0" }
|
||||
subxt-codegen = { path = "../codegen", version = "0.27.0" }
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt-metadata"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = true
|
||||
|
||||
+9
-9
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "subxt"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = true
|
||||
@@ -50,8 +50,8 @@ parking_lot = "0.12.0"
|
||||
frame-metadata = "15.0.0"
|
||||
derivative = "2.2.0"
|
||||
|
||||
subxt-macro = { version = "0.26.0", path = "../macro" }
|
||||
subxt-metadata = { version = "0.26.0", path = "../metadata" }
|
||||
subxt-macro = { version = "0.27.0", path = "../macro" }
|
||||
subxt-metadata = { version = "0.27.0", path = "../metadata" }
|
||||
|
||||
# Provides some deserialization, types like U256/H256 and hashing impls like twox/blake256:
|
||||
impl-serde = { version = "0.4.0" }
|
||||
@@ -63,8 +63,8 @@ base58 = { version = "0.2.0" }
|
||||
blake2 = { version = "0.10.4", default-features = false }
|
||||
|
||||
# These are only included is "substrate-compat" is enabled.
|
||||
sp-core = { version = "11.0.0", default-features = false, optional = true }
|
||||
sp-runtime = { version = "12.0.0", optional = true }
|
||||
sp-core = { version = "16.0.0", default-features = false, optional = true }
|
||||
sp-runtime = { version = "18.0.0", optional = true }
|
||||
|
||||
[target.wasm32-unknown-unknown.dependencies]
|
||||
getrandom = { version = "0.2", features = ["js"] }
|
||||
@@ -74,7 +74,7 @@ bitvec = "1"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
||||
scale-info = { version = "2.0.0", features = ["bit-vec"] }
|
||||
tokio = { version = "1.25", features = ["macros", "time", "rt-multi-thread"] }
|
||||
sp-core = { version = "11.0.0", default-features = false }
|
||||
sp-runtime = { version = "12.0.0" }
|
||||
sp-keyring = "12.0.0"
|
||||
sp-version = "10.0.0"
|
||||
sp-core = { version = "16.0.0", default-features = false }
|
||||
sp-runtime = "18.0.0"
|
||||
sp-keyring = "18.0.0"
|
||||
sp-version = "16.0.0"
|
||||
|
||||
@@ -58,6 +58,7 @@ pub struct ValidationDetails<'a> {
|
||||
}
|
||||
|
||||
/// This represents a statically generated transaction payload.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct StaticTxPayload<CallData> {
|
||||
pallet_name: &'static str,
|
||||
call_name: &'static str,
|
||||
@@ -123,6 +124,7 @@ impl<CallData: Encode> TxPayload for StaticTxPayload<CallData> {
|
||||
}
|
||||
|
||||
/// This represents a dynamically generated transaction payload.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct DynamicTxPayload<'a> {
|
||||
pallet_name: Cow<'a, str>,
|
||||
call_name: Cow<'a, str>,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "integration-tests"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
publish = false
|
||||
@@ -23,12 +23,12 @@ futures = "0.3.26"
|
||||
hex = "0.4.3"
|
||||
regex = "1.5.0"
|
||||
scale-info = { version = "2.0.0", features = ["bit-vec"] }
|
||||
sp-core = { version = "11.0.0", default-features = false }
|
||||
sp-keyring = "12.0.0"
|
||||
sp-runtime = "12.0.0"
|
||||
sp-core = { version = "16.0.0", default-features = false }
|
||||
sp-keyring = "18.0.0"
|
||||
sp-runtime = "18.0.0"
|
||||
syn = "1.0.0"
|
||||
subxt = { version = "0.26.0", path = "../../subxt" }
|
||||
subxt-codegen = { version = "0.26.0", path = "../../codegen" }
|
||||
subxt = { version = "0.27.0", path = "../../subxt" }
|
||||
subxt-codegen = { version = "0.27.0", path = "../../codegen" }
|
||||
test-runtime = { path = "../test-runtime" }
|
||||
tokio = { version = "1.25", features = ["macros", "time"] }
|
||||
tracing = "0.1.34"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[package]
|
||||
name = "test-runtime"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
subxt = { path = "../../subxt" }
|
||||
sp-runtime = "12.0.0"
|
||||
sp-runtime = "18.0.0"
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] }
|
||||
|
||||
[build-dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ui-tests"
|
||||
version = "0.26.0"
|
||||
version = "0.27.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user