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

add queryable extension to ERC721Base #560

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

WhiteOakKong
Copy link
Contributor

No description provided.

* @title ERC721A Queryable
* @dev ERC721A subclass with convenience query functions.
*/
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
Copy link
Member

Choose a reason for hiding this comment

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

don't we already have this file somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't we already have this file somewhere?

There isn't a non-upgradable version currently.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha

@WhiteOakKong WhiteOakKong marked this pull request as ready for review October 27, 2023 22:58
Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

How's the contract sizes? Bases should have a bit of wiggle room to add custom fns

@WhiteOakKong
Copy link
Contributor Author

How's the contract sizes? Bases should have a bit of wiggle room to add custom fns

ERC721Base has 13kb in left over space. The queryable adds ~1kb.

@joaquim-verges
Copy link
Member

Should be plenty. Ship it

Signed-off-by: WhiteOakKong <92236155+WhiteOakKong@users.noreply.github.com>
@joaquim-verges
Copy link
Member

@nkrishang @kumaryash90 can you review?

contracts/eip/queryable/ERC721AQueryable.sol Dismissed Show dismissed Hide dismissed
contracts/eip/queryable/ERC721AQueryable.sol Dismissed Show dismissed Hide dismissed
contracts/eip/queryable/ERC721AQueryable.sol Dismissed Show dismissed Hide dismissed
contracts/eip/queryable/ERC721AQueryable.sol Dismissed Show dismissed Hide dismissed
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ade8109) 62.34% compared to head (125c8c0) 57.43%.
Report is 1 commits behind head on main.

❗ Current head 125c8c0 differs from pull request most recent head 105e734. Consider uploading reports for the commit 105e734 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #560      +/-   ##
==========================================
- Coverage   62.34%   57.43%   -4.91%     
==========================================
  Files         216      215       -1     
  Lines        6647     6614      -33     
==========================================
- Hits         4144     3799     -345     
- Misses       2503     2815     +312     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nkrishang nkrishang enabled auto-merge (squash) November 20, 2023 17:49
@nkrishang nkrishang merged commit 8da4090 into thirdweb-dev:main Nov 20, 2023
7 checks passed
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.

3 participants