-
Notifications
You must be signed in to change notification settings - Fork 47
feat: add block number for CTypes #440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d215bea
Update toolchain versions
ntn-x2 96eacc9
Address new clippy warnings
ntn-x2 479a782
Remove +nightly from CI jobs
ntn-x2 89089cd
Remove debug rustup show command
ntn-x2 8875d86
Replace versioned nightly with just nightly
ntn-x2 805d193
Revert "Replace versioned nightly with just nightly"
ntn-x2 de04e4b
Use same version as polkadot 0.9.31 release
ntn-x2 d1b9eff
Address clippy warning
ntn-x2 b4644f3
Add block number to stored info for CType
ntn-x2 427d02d
Add CType migration
ntn-x2 59a5f99
Merge develop into current branch
ntn-x2 d0706eb
Add new origin and set_block_number function + tests
ntn-x2 e213ce9
Fix ctype benchmarking
ntn-x2 1146e6d
Fix all compilation issues
ntn-x2 137b0db
Add default weights for new extrinsic
ntn-x2 caf9b24
Final chores
ntn-x2 25772b5
Fix ctype migration logic
ntn-x2 ae3b2b3
Fix ctype migration
ntn-x2 504b386
Final comments
ntn-x2 713ec9d
Merge branch origin/develop into aa/ctype-block-number
ntn-x2 ffc79c2
Rename ctype property
ntn-x2 147536f
Remove unnecessary return type from closure
ntn-x2 4d92056
Update migration to use new try-runtime features
ntn-x2 8b4c9dc
Decode all values after migration
ntn-x2 85f83f4
Merge develop into branch
ntn-x2 d1e2def
Replace technical committee with democracy
ntn-x2 0308d38
Merge branch 'develop' into aa/ctype-block-number
weichweich ec518eb
fix: ctype call index
weichweich 7f4aec3
Merge branch 'develop' into aa/ctype-block-number
weichweich 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| use codec::{Decode, Encode, MaxEncodedLen}; | ||
| use frame_support::RuntimeDebug; | ||
| use scale_info::TypeInfo; | ||
|
|
||
| /// Creation details of a CType. | ||
| #[derive(Encode, Decode, RuntimeDebug, MaxEncodedLen, Eq, PartialEq, TypeInfo)] | ||
| pub struct CtypeEntry<Creator, BlockNumber> { | ||
| /// Identifier of the creator. | ||
| pub creator: Creator, | ||
| /// Block number in which the creation tx was dispatched. | ||
| pub created_at: BlockNumber, | ||
| } |
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.