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

✨ Implement a struct repacker scanner #13

Open
5 tasks
0xpanoramix opened this issue Aug 1, 2023 · 0 comments · May be fixed by #14
Open
5 tasks

✨ Implement a struct repacker scanner #13

0xpanoramix opened this issue Aug 1, 2023 · 0 comments · May be fixed by #14
Assignees
Labels
enhancement New feature or request

Comments

@0xpanoramix
Copy link
Contributor

0xpanoramix commented Aug 1, 2023

🎯 Target

This feature will have an impact on the user.

📝 Description

This feature consists of adding a new scanner, the struct repacker, able to compute the slots consumption for a structure and find a more efficient way to define it.

🧪 Consequence

This feature will improve the project as this is a very powerful way to potentially save gas in smart contracts.

⚠️ DoD

Below are the steps required to complete this feature.

  • Add a new StructRepacker scanner.
  • Implement the First Fit Decreasing strategy.
  • Implement the K-Permutations strategy.
  • Print the suggestion to the user.
  • Support remote reference (if a struct contains a struct / enum / UDT).
@0xpanoramix 0xpanoramix added the enhancement New feature or request label Aug 1, 2023
@0xpanoramix 0xpanoramix self-assigned this Aug 1, 2023
@0xpanoramix 0xpanoramix linked a pull request Aug 1, 2023 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant