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

Rename ModuleToIndex to PalletRuntimeSetup - #7148

Merged
5 commits merged into
masterfrom
bkchr-pallet-runtime-setup
Sep 22, 2020
Merged

5 commits merged into
masterfrom
bkchr-pallet-runtime-setup

Conversation

@bkchr

@bkchr bkchr commented Sep 18, 2020 •

Copy link
Copy Markdown
Member

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

bkchr commented Sep 18, 2020

Copy link
Copy Markdown
Member Author

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

@shawntabrizi

shawntabrizi commented Sep 20, 2020 •

Copy link
Copy Markdown
Member

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

@gui1117 gui1117 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

➕ PalletId

@bkchr

bkchr commented Sep 22, 2020

Copy link
Copy Markdown
Member Author

Renamed it to PalletInfo

@bkchr

bkchr commented Sep 22, 2020

Copy link
Copy Markdown
Member Author

@kianenigma and @shawntabrizi please review :D

@gnunicorn

Copy link
Copy Markdown
Contributor

bot merge

@ghost

ghost commented Sep 22, 2020

Copy link
Copy Markdown

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