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

Add field names to pallet Event variants #9993

Conversation

Wizdave97
Copy link
Contributor

@Wizdave97 Wizdave97 commented Oct 11, 2021

Description

This PR changes the pallet events variants from tuples to structs with named fields

Part implementation for #9903

Pallets updated

Sorted alphabetically in the frame folder assets - proxy

polkadot companion: paritytech/polkadot#4262
cumulus companion: paritytech/cumulus#749

Polkadot address: 1xazYr2XULzE3kjWCbuzKNcykfbjdgJGeSD6n3RvhdSikJf

@Wizdave97 Wizdave97 changed the title Wiz field names to pallet events Add field names to pallet Event variants Oct 11, 2021
@shawntabrizi shawntabrizi added A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. B0-silent Changes should not be mentioned in any release notes D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Oct 11, 2021
@shawntabrizi
Copy link
Member

Looking good wizdave.

Feel free to scope PRs to a few pallets at a time, so that it is easier to review, give fedback, and get merged.

You can do multiple PRs here to migrate them all over time.

@Wizdave97 Wizdave97 force-pushed the wiz-field-names-to-pallet-events branch from 92c01e0 to 98b3178 Compare October 26, 2021 08:31
@Wizdave97 Wizdave97 marked this pull request as ready for review October 26, 2021 08:31
@Wizdave97
Copy link
Contributor Author

Looking good wizdave.

Feel free to scope PRs to a few pallets at a time, so that it is easier to review, give fedback, and get merged.

You can do multiple PRs here to migrate them all over time.

Pallets updated
Sorted alphabetically in the frame folder assets - proxy

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Did you run cargo +nightly fmt?

@Wizdave97
Copy link
Contributor Author

Did you run cargo +nightly fmt?

Just did that

frame/balances/src/lib.rs Outdated Show resolved Hide resolved
frame/balances/src/lib.rs Outdated Show resolved Hide resolved
@KiChjang
Copy link
Contributor

@Wizdave97 I've added them to your PR description. The CI bots will only read that to determine where the companion PRs are, instead of new github comments.

@Wizdave97
Copy link
Contributor Author

@Wizdave97 I've added them to your PR description. The CI bots will only read that to determine where the companion PRs are, instead of new github comments.

@KiChjang Do i need to rerun the CI jobs again after this?

@KiChjang
Copy link
Contributor

@Wizdave97 Shouldn't need to; if I'm not mistaken, there is a github hook on every edit of the PR description box, and the CI bots pick up on that.

@Wizdave97
Copy link
Contributor Author

@Wizdave97 Shouldn't need to; if I'm not mistaken, there is a github hook on every edit of the PR description box, and the CI bots pick up on that.

@KiChjang All done

@Wizdave97
Copy link
Contributor Author

@shawntabrizi @kianenigma Could you please review this and it's companon PRs

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

@gui1117
Copy link
Contributor

gui1117 commented Nov 16, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit c087bbe into paritytech:master Nov 16, 2021
@Wizdave97 Wizdave97 deleted the wiz-field-names-to-pallet-events branch November 16, 2021 08:37
@athei
Copy link
Member

athei commented Nov 16, 2021

/tip large

@substrate-tip-bot
Copy link

A large tip was successfully submitted for Wizdave97 (1xazYr2XULzE3kjWCbuzKNcykfbjdgJGeSD6n3RvhdSikJf on polkadot).

https://polkadot.js.org/apps/#/treasury/tips

@Wizdave97
Copy link
Contributor Author

/tip large

Thank you.

grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* convert pallet-assets events to struct types

* updated events of a couple pallets

* updated pallet event field names

* update pallet event field names

* updated events in test files

* cargo fmt

* minorfixes

* fix assertion error

* minor fix

* formatting fix

* fmt
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* convert pallet-assets events to struct types

* updated events of a couple pallets

* updated pallet event field names

* update pallet event field names

* updated events in test files

* cargo fmt

* minorfixes

* fix assertion error

* minor fix

* formatting fix

* fmt
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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants