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

Migrate ERC20 to component #780

Merged
merged 83 commits into from
Nov 2, 2023

Conversation

andrew-fleming
Copy link
Collaborator

@andrew-fleming andrew-fleming commented Oct 9, 2023

Fixes #779. Doc update forthcoming.

This PR also proposes to include pop_log_comp_indexed to extract event args in component events with indexed params.

PR Checklist

  • Tests
  • Tried the feature on a public network
  • Documentation

src/token/erc20/interface.cairo Show resolved Hide resolved
docs/modules/ROOT/pages/guides/erc20-supply.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/guides/erc20-supply.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/erc20.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/api/erc20.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/erc20.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@martriay martriay left a comment

Choose a reason for hiding this comment

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

We're very close! We're just missing:

  • update README example
  • update v0.7.0 references to v0.8.0-beta.0

docs/modules/ROOT/pages/api/erc20.adoc Outdated Show resolved Hide resolved
Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

Looks ready to me!

Copy link
Contributor

@martriay martriay left a comment

Choose a reason for hiding this comment

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

good to go! left a final suggestion for the readme. it makes me wonder whether we should also update the overview section to use ERC20 as it is simpler, and probably more used than the current Account example. edit: #805

README.md Outdated Show resolved Hide resolved
@andrew-fleming
Copy link
Collaborator Author

I added the Component suffix and changed Functions => Implementations in the erc20 API. I can move the changes into a separate PR if preferred @martriay @ericnordelo

Copy link
Member

@ericnordelo ericnordelo left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@martriay martriay left a comment

Choose a reason for hiding this comment

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

LGTM, let's fix conflicts and merge 🚀

@martriay martriay merged commit 841a073 into OpenZeppelin:main Nov 2, 2023
1 check passed
@andrew-fleming andrew-fleming deleted the component-erc20 branch November 7, 2023 22:32
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.

Migrate ERC20 to component
3 participants