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

Bring CW721 pointer contract up to spec #1668

Closed

Conversation

dvli2007
Copy link
Contributor

Describe your changes and provide context

  • Switched CwERC721 contract to have all queries that exist on CW721 Base contract
  • Add support for royalties standard (ERC2981 / CW2981)

Testing performed to validate your change

  • Added unit tests to x/evm/client/wasm/query_test.go to test out two new EVM queries ("TotalSupply" and "RoyaltyInfo")
  • Added tests to contracts/test/CW721toERC721PointerTest.js that tests out new query responses

@codecov-commenter
Copy link

codecov-commenter commented May 15, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 60.72%. Comparing base (045251b) to head (dd0a0c1).
Report is 1 commits behind head on main.

❗ Current head dd0a0c1 differs from pull request most recent head ad7e70b. Consider uploading reports for the commit ad7e70b to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1668      +/-   ##
==========================================
+ Coverage   60.70%   60.72%   +0.02%     
==========================================
  Files         367      367              
  Lines       26784    26809      +25     
==========================================
+ Hits        16258    16280      +22     
+ Misses       9429     9420       -9     
- Partials     1097     1109      +12     
Files Coverage Δ
x/evm/client/wasm/query.go 39.16% <33.33%> (+3.23%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Contributor

@stevenlanders stevenlanders left a comment

Choose a reason for hiding this comment

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

one tweak for a lib.js, lgtm

philipsu522 pushed a commit that referenced this pull request May 16, 2024
* POC - bring CW721 pointer contract up to spec

* fixes to cw721 bindings

* uses cw2981 ExecuteMsg/QueryMsg and implements extensions

* attempt fix royalty info response

* Update dummy ERC721.sol

* Update EVM bindings for 721 queries

* Fix bigInt handling

* Fix up typing

* Tidy up cwerc721 queries

* Add more tests

* Bug fixes

* Update cwerc721.wasm builds

* Fix contract syntax

* Fix query_test for EVM query handlers

* minor fixes

* Update cwerc721 build

* Add more cwerc721 pointer tests

* Implement check_royalties

* syncs up events with whats emitted by current cw nfts

* adds evm_address extension query

* no op query_all_operators

* Update build

* Update pointer contract api/bin/wasm files

* Fix typo in contract test ABI

* rebase

---------

Co-authored-by: davyli <[email protected]>
Co-authored-by: shab <[email protected]>
@dvli2007
Copy link
Contributor Author

Closing. #1673 is a copy and was merged in.

@dvli2007 dvli2007 closed this May 16, 2024
@dvli2007 dvli2007 deleted the improved-cw721-pointer branch July 2, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants