bigbikesheddingenhancementgood first issuelib: std
Repository metrics
- Stars
- (61,702 stars)
- PR merge metrics
- (Avg merge 22h 6m) (16 merged PRs in 30d)
Description
Description
Type: Improvement
What does your feature accomplish?
It makes it easier to navigate the standard library depending on the context. Furthermore, it makes it easier to scale the size of the library.
How does your feature accomplishes your goal?
It accomplishes this by looking at the context of what each file achieves and groups them together under directories e.g. ecr.sw and hash.sw can be grouped under hashing or cryptography.
Draft implementation
- We have a
chain.swwhich only has adepdecleration inside. We also have a chain directory. This should be reorganized. - We have
context.swand also acontextdirectory, this too should be fixed. assert.swandrequire.swshould probably be grouped together if not placed in the same fileoption.swandresult.swshould also be together, perhaps withlogging.sw?ecr.swandhash.swshould be together, keep in mind that we have avmdirectory which is specifically for EVM equivalentecrintrinsics.sw,storage.sw,block.sw,context.swandchain.swcould be together?address.sw,contract_id.sw,b512.swandu128.swcan be together?
cc @nfurfaro @adlerjohn @sezna @otrho