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

De-duplicate event names and contract function names #247

Merged
merged 1 commit into from
Apr 24, 2019
Merged

Conversation

leoyvens
Copy link
Collaborator

The fix in this PR is sufficient to fix the name duplication issues for event classes and contract methods observed in the decentraland subgraph, by using a numbering scheme for events and methods with the same name.

To fully address #168 there is still the issue of having event SetPermission and event SetPermissionParams, which is a total edge case. There I'm reluctant of going for a numbering scheme, which I think would over complicate the situation. Since ...Params types are not usually imported into mappings, it would be mostly backwards compatible to rename them. So can I fix this by just changing the suffix to ...EventParams?

@leoyvens leoyvens requested review from Jannis and davekaj April 24, 2019 00:41
@leoyvens leoyvens self-assigned this Apr 24, 2019
@ghost ghost added the pending review label Apr 24, 2019
@Jannis
Copy link
Contributor

Jannis commented Apr 24, 2019

@leodasvacas Yes, SetPermissionEventParams sounds fine to me.

@Jannis
Copy link
Contributor

Jannis commented Apr 24, 2019

Could even do SetPermission__Params like we do with return types of function calls.

Copy link
Contributor

@Jannis Jannis 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!

@leoyvens leoyvens merged commit 992562e into master Apr 24, 2019
@ghost ghost removed the pending review label Apr 24, 2019
@leoyvens leoyvens deleted the leo/dedup branch April 24, 2019 12:15
@razgraf razgraf mentioned this pull request Nov 24, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants