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

feat(erc721): add ERC721Enumerable extension (#67) #83

Merged
merged 15 commits into from
Jun 3, 2024

Conversation

bidzyyys
Copy link
Collaborator

@bidzyyys bidzyyys commented May 28, 2024

Resolves #67

PR Checklist

  • Tests
  • Documentation

@bidzyyys bidzyyys linked an issue May 28, 2024 that may be closed by this pull request
Copy link

netlify bot commented May 28, 2024

👷 Deploy request for contracts-stylus pending review.

A Netlify team Owner will need to approve the deploy before you can run your build.

Are you a team Owner? Visit the deploys page to approve it

Need more help? Learn more in the Netlify docs

Name Link
🔨 Latest commit 5d3b35e

@bidzyyys bidzyyys self-assigned this May 28, 2024
Copy link

codecov bot commented May 28, 2024

The author of this PR, bidzyyys, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at [email protected] with any questions.

@bidzyyys bidzyyys force-pushed the feature/erc721-enumerable branch from da4f10c to 3afa579 Compare May 29, 2024 09:29
@bidzyyys bidzyyys requested review from alexfertel and qalisander and removed request for alexfertel May 29, 2024 09:30
@bidzyyys bidzyyys marked this pull request as ready for review May 29, 2024 09:30
Copy link
Member

@qalisander qalisander left a comment

Choose a reason for hiding this comment

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

Great job @bidzyyys !

contracts/src/erc721/mod.rs Show resolved Hide resolved
examples/erc721/src/lib.rs Outdated Show resolved Hide resolved
&mut self,
from: Address,
token_id: U256,
erc721: &impl IERC721,
Copy link
Member

Choose a reason for hiding this comment

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

Pass it by interface seems as a good trade off. Cool!

alexfertel
alexfertel previously approved these changes May 31, 2024
Copy link
Contributor

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

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

Beautiful! 💯

Left a few comments that are mostly polish. Good job!

sol_storage! {
/// State of an Enumerable extension.
pub struct ERC721Enumerable {
/// TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

contracts/src/erc721/extensions/enumerable.rs Outdated Show resolved Hide resolved
contracts/src/erc721/extensions/enumerable.rs Outdated Show resolved Hide resolved
contracts/src/erc721/extensions/enumerable.rs Outdated Show resolved Hide resolved
contracts/src/erc721/extensions/enumerable.rs Outdated Show resolved Hide resolved
examples/erc721/Cargo.toml Outdated Show resolved Hide resolved
examples/erc721/src/lib.rs Show resolved Hide resolved
examples/erc721/src/lib.rs Outdated Show resolved Hide resolved
examples/erc721/src/lib.rs Outdated Show resolved Hide resolved
examples/erc721/src/lib.rs Outdated Show resolved Hide resolved
@bidzyyys bidzyyys requested a review from qalisander June 3, 2024 08:01
@bidzyyys bidzyyys requested a review from alexfertel June 3, 2024 08:01
Copy link
Contributor

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

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

🚀 🚀 🚀

@bidzyyys bidzyyys merged commit 2b4ed79 into main Jun 3, 2024
16 checks passed
@bidzyyys bidzyyys deleted the feature/erc721-enumerable branch June 3, 2024 09:00
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.

ERC-721 Enumerable
3 participants