Skip to content
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

feat!: genesis history pallet #202

Merged
merged 6 commits into from
Apr 8, 2021
Merged

feat!: genesis history pallet #202

merged 6 commits into from
Apr 8, 2021

Conversation

mrq1911
Copy link
Member

@mrq1911 mrq1911 commented Apr 7, 2021

Pallet provides simple storage linking to the previous chain genesis and last block hash.

required by #191 #192

TODO

  • basic pallet with storage
  • sort out defaults issue (fix build)
  • tests
  • docs

Note

feel free to change PR target, this targets master for workflow to run (also is based on master)

Types are generic bytes for maximal compatibility, alternatively, it could be Hash type. Also PreviousChain could be posibly unwrapped into two storage values in pallet.

@auto-add-label auto-add-label bot added the type/enhancement New feature or request label Apr 7, 2021
@mrq1911 mrq1911 marked this pull request as ready for review April 8, 2021 04:46
@jak-pan jak-pan changed the base branch from master to shedding April 8, 2021 15:22
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}

#[pallet::call]
impl<T:Config> Pallet<T> {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually required? (I can see it could be.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, macro requires it, same as hooks, but it isn't actually used in runtime. interestingly, events are not required.

@mrq1911 mrq1911 merged commit 3bd0bb6 into shedding Apr 8, 2021
@jak-pan jak-pan changed the title feat: genesis history pallet feat!: genesis history pallet Apr 15, 2021
@auto-add-label auto-add-label bot added 00-breaking-change and removed type/enhancement New feature or request labels Apr 15, 2021
@jak-pan jak-pan deleted the genesis-history-pallet branch May 9, 2021 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants