-
Notifications
You must be signed in to change notification settings - Fork 29
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
refactor!: remove supportsInterface #352
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #352 +/- ##
===========================================
- Coverage 83.71% 83.51% -0.21%
===========================================
Files 18 17 -1
Lines 1130 1122 -8
Branches 255 258 +3
===========================================
- Hits 946 937 -9
+ Misses 98 94 -4
- Partials 86 91 +5
|
This could be duplicate with #317 |
Oh you are right. Did not check if there already was a PR open for that. 😅 Has there been an outcome yet? @frozeman |
From my side, I would go ahead with this PR so that we focus this library purely on the encoding / decoding side. |
Nice that the other repos were updated. If this is a breaking change, don't forget to add
|
What kind of change does this PR introduce?
Braking Feature Change: This PR removes the
this.supportsInterface(...)
andERC725.supportsInterface(...)
functions, as well as their tests and documentation.What is the current behavior?
Currently, erc725.js can be used to resolve and detect whitelisted ERC165-based interface IDs of a given contract based on their standardized string inputs:
While this is a convenient way to check interfaces without further redo, resolving and manually updating IDs can be cumbersome.
What is the new behavior?
The decision was made to completely remove this functionality and keep it completely separated from contract libraries (like lsp-smart-contracts), that feature additional information like ABIs and schemas on top of being up-to-date with the latest standardization changes.
If you are affected by this breaking feature change, please use the following method to read ERC165-based interface IDs:
Other information:
The following repositories have been checked:
✅ erc725-inspect
✅ my.universalprofile.cloud
✅ wallet.universalprofile.cloud
None of them is using ERC725's
supportsInterface
function anymore.