Skip to content

Tool for automatic generation of isomorphic structs in solidity

License

Notifications You must be signed in to change notification settings

0xVolosnikov/solidity-isomorphic-structs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solidity-isomorphic-structs

!!Work in progress!!

npm

Tool for automatic generation of isomorphic structs in solidity. Here isomorphic structures are structures that fit into 256 bits and therefore can be placed both in memory and on the stack.

Using special types for structures generated by this tool allows to place them on the stack and avoid unnecessary use of memory.

Also, packing multiple variables into such a struct on the stack can help avoid issues with solidity "stack too deep" error.

TODO: add a mode for generating structures that can be packed in storage with other variables.

About

Tool for automatic generation of isomorphic structs in solidity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published