Skip to content

✨ Implement a struct repacker scanner #13

@0xpanoramix

Description

@0xpanoramix

🎯 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).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions