Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Rename ModuleToIndex to PalletRuntimeSetup #7148

Merged
5 commits merged into from
Sep 22, 2020
Merged

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Sep 18, 2020

Besides the renaming it also adds support getting the name of a pallet
as configured in the runtime.

Migrating changes

For anyone coming here to migrate its old to the new code:

  1. Replace all occurrences of ModuleToIndex to PalletRuntimeSetup.
  2. Replace any usage of module_to_index with index.

polkadot companion: paritytech/polkadot#1743

Besides the renaming it also adds support getting the name of a pallet
as configured in the runtime.
@bkchr bkchr added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. labels Sep 18, 2020
@bkchr
Copy link
Member Author

bkchr commented Sep 18, 2020

I hate my naming. @shawntabrizi or anyone else has a better idea, please say it

@shawntabrizi
Copy link
Member

shawntabrizi commented Sep 20, 2020

I would call this "PalletInfo"? Or "PalletIdentity"/"PalletId"

Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

Looks good to me,
I like the name PalletRuntimeSetup as it contains the information given by the setup of the runtime. But I'm ok with PalletInfo. Maybe PalletSetup is better ?
I feel "PalletIdentity"/"PalletId" is too vague somehow :-) but anyway fine.

@kianenigma
Copy link
Contributor

PalletId

@bkchr
Copy link
Member Author

bkchr commented Sep 22, 2020

Renamed it to PalletInfo

@bkchr
Copy link
Member Author

bkchr commented Sep 22, 2020

@kianenigma and @shawntabrizi please review :D

@gnunicorn
Copy link
Contributor

bot merge

@ghost
Copy link

ghost commented Sep 22, 2020

Trying merge.

@ghost ghost merged commit 5ca3777 into master Sep 22, 2020
@ghost ghost deleted the bkchr-pallet-runtime-setup branch September 22, 2020 13:39
sorpaas pushed a commit that referenced this pull request Nov 20, 2020
* Rename `ModuleToIndex` to `PalletRuntimeSetup`

Besides the renaming it also adds support getting the name of a pallet
as configured in the runtime.

* Rename it to `PalletInfo`

* Remove accidentally added files
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants