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

Getting interface of the contract and guessing main contract #63

Open
minhhn2910 opened this issue Mar 9, 2023 · 0 comments
Open

Getting interface of the contract and guessing main contract #63

minhhn2910 opened this issue Mar 9, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@minhhn2910
Copy link
Collaborator

Interface is useful for summarizing the contract (functions list with the body removed). Later we can try to craft contracts that imitate the target contract's input/output format.

Guessing main contract is useful for user interface suggestion when they load the contract, we auto select the main contract. It is also useful for testing where we focus on the main contract.

I think of this rule: the main contract is the one that is not abstract and does not have children. In case we have multiple contracts with the same property, we guess it's the longest contract.

@minhhn2910 minhhn2910 added the help wanted Extra attention is needed label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant