This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Moves Block
to frame_system
instead of construct_runtime
and removes Header
and BlockNumber
#14437
Merged
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
e0f4cc7
Initial setup
gupnik 5d688f8
Adds node block
gupnik 1681e65
Uses UncheckedExtrinsic and removes Where section
gupnik 3e461f1
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik a69a911
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik a5e7cb6
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 2590f43
Updates frame_system to use Block
gupnik f4e772a
Adds deprecation warning
gupnik 2eb58e8
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik b6ca21e
Fixes pallet-timestamp
gupnik 1333eb3
Removes Header and BlockNumber
gupnik 373af30
Addresses review comments
gupnik 55a698c
Addresses review comments
gupnik c1db41a
Adds comment about compiler bug
gupnik a36245c
Removes where clause
gupnik d4e113f
Refactors code
gupnik 6e3ae77
Fixes errors in cargo check
gupnik d9e6ce8
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 4de134c
Fixes errors in cargo check
gupnik 884ceaf
Fixes warnings in cargo check
gupnik 211138e
Formatting
gupnik eaa8b29
Fixes construct_runtime tests
gupnik f8c6153
Uses import instead of full path for BlockNumber
gupnik 3df4b15
Uses import instead of full path for Header
gupnik cb55082
Formatting
gupnik 6d9286f
Fixes construct_runtime tests
gupnik 09f50ef
Fixes imports in benchmarks
gupnik 67223f4
Formatting
gupnik 3f05c25
Fixes construct_runtime tests
gupnik 03cffab
Formatting
gupnik fe4e9cc
Minor updates
gupnik 85d992e
Fixes construct_runtime ui tests
gupnik bae2306
Fixes construct_runtime ui tests with 1.70
gupnik 27b47ba
Fixes docs
gupnik 09fe084
Fixes docs
gupnik 827f7e0
Adds u128 mock block type
gupnik f70e152
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik ded2d97
Fixes split example
gupnik 2715d40
fixes for cumulus
gupnik 3226bcb
".git/.scripts/commands/fmt/fmt.sh"
fef6829
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 2454cfa
Updates new tests
gupnik 87742a3
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 61842c6
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik e7ddf9f
Fixes fully-qualified path in few places
gupnik c93f9d5
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 89e66de
Formatting
gupnik 64bb577
Update frame/examples/default-config/src/lib.rs
gupnik e8c14b0
Update frame/support/procedural/src/construct_runtime/mod.rs
gupnik 2f1a514
".git/.scripts/commands/fmt/fmt.sh"
16f10af
Addresses some review comments
gupnik 5754b72
Fixes build
gupnik 4775cc1
".git/.scripts/commands/fmt/fmt.sh"
1571503
Update frame/democracy/src/lib.rs
gupnik ab86af2
Update frame/democracy/src/lib.rs
gupnik b443c40
Update frame/support/procedural/src/construct_runtime/mod.rs
gupnik 0f3cee1
Update frame/support/procedural/src/construct_runtime/mod.rs
gupnik 8bb8fb9
Addresses review comments
gupnik 83f7841
Updates trait bounds
gupnik 644b5be
Minor fix
gupnik 2d219d5
".git/.scripts/commands/fmt/fmt.sh"
a09d3c9
Removes unnecessary bound
gupnik f624f25
".git/.scripts/commands/fmt/fmt.sh"
c87594c
Updates test
gupnik 3dcc6b6
Merge branch 'gupnik/cr-try2' of github.com:paritytech/substrate into…
gupnik 90c0a21
Fixes build
gupnik e595d28
Adds a bound for header
gupnik a25532f
Merge branch 'master' of github.com:paritytech/substrate into gupnik/…
gupnik 5e96a39
".git/.scripts/commands/fmt/fmt.sh"
b14d234
Removes where block
gupnik ef9ca39
Minor fix
gupnik a65653c
Minor fix
gupnik c559e51
Fixes tests
gupnik d1a6169
".git/.scripts/commands/update-ui/update-ui.sh" 1.70
e89e93e
Updates test
gupnik 277300f
Update primitives/runtime/src/traits.rs
gupnik c3be2e0
Update primitives/runtime/src/traits.rs
gupnik 5c823a5
Updates doc
gupnik 3e41fa2
Updates doc
gupnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,7 +102,7 @@ pub mod pallet { | |
|
||
#[pallet::hooks] | ||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> { | ||
fn on_initialize(_: T::BlockNumber) -> Weight { | ||
fn on_initialize(_: BlockNumberFor<T>) -> Weight { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good example for what I suggested above, because we already have |
||
if let Some(new_slot) = Self::current_slot_from_digests() { | ||
let current_slot = CurrentSlot::<T>::get(); | ||
|
||
|
@@ -134,7 +134,7 @@ pub mod pallet { | |
} | ||
|
||
#[cfg(feature = "try-runtime")] | ||
fn try_state(_: T::BlockNumber) -> Result<(), sp_runtime::TryRuntimeError> { | ||
fn try_state(_: BlockNumberFor<T>) -> Result<(), sp_runtime::TryRuntimeError> { | ||
Self::do_try_state() | ||
} | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make this be the standard:
All pallets must contain these lines:
This can probably simplify a lot of imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(story for another day, of course)