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

Detect interfaces and common contract mixins #21

Open
shazow opened this issue Mar 1, 2023 · 0 comments
Open

Detect interfaces and common contract mixins #21

shazow opened this issue Mar 1, 2023 · 0 comments
Labels
someday Good idea but not planned yet

Comments

@shazow
Copy link
Owner

shazow commented Mar 1, 2023

A convenient way to describe what a contract could be doing (especially if it's unverified) is by summarizing which interfaces it complies with.

We can do this either by using ERC-165 and looking for hardcoded interface IDs, or by comparing against known hashes of selectors in interfaces (https://github.com/shazow/eip-sighashes could be helpful for this).

Some common interfaces/functionality we want to look for:

@shazow shazow added the someday Good idea but not planned yet label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
someday Good idea but not planned yet
Projects
None yet
Development

No branches or pull requests

1 participant