mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Convert timestamp to unit type wrapper (#8333)
The timestamp inherent type was up to now just a simple `u64`. This worked, but doesn't give you that much guarantees at compile time about the type. This pr changes that by converting this type to a unit type wrapper, similar to what we have done for `Slot`. This is required for some future pr that touches quite a lot of the inherents stuff :) Besides this unit wrapper type, this pr also moves the `OnTimestampSet` trait to `frame_support::traits`.
This commit is contained in:
Generated
-3
@@ -4546,7 +4546,6 @@ dependencies = [
|
||||
"sp-io",
|
||||
"sp-runtime",
|
||||
"sp-std",
|
||||
"sp-timestamp",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4611,7 +4610,6 @@ dependencies = [
|
||||
"sp-session",
|
||||
"sp-staking",
|
||||
"sp-std",
|
||||
"sp-timestamp",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -9042,7 +9040,6 @@ dependencies = [
|
||||
name = "sp-timestamp"
|
||||
version = "3.0.0"
|
||||
dependencies = [
|
||||
"impl-trait-for-tuples",
|
||||
"parity-scale-codec",
|
||||
"sp-api",
|
||||
"sp-inherents",
|
||||
|
||||
Reference in New Issue
Block a user