-
Notifications
You must be signed in to change notification settings - Fork 744
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
Improve file structure #590
Comments
i want to work on this issue can you assign me |
We should wait with large refactors until the monorepo migration finishes on 28th. |
👍 |
@GauravDhak should be ready to work on this kind of stuff now. @the-right-joyce this should be marked easy and good first issue |
I am interested in working on this issue. That's great! |
* automated weights * associated WeightInfo type * update weights using wasmtime * disable clippy for autogenerated weight.rs * fix
Is this still Available ? Looks like it hasnt been touched since |
@Krayt78 yes for sure! Can you please tell us which crates you want to work on, and wait for us to give a thumbs up so there is no wasted effort. |
Thx :) And then once thats done i will ask for more pallets :) |
can I start on the auction pallet ? @shawntabrizi |
Go for it! |
Hi @shawntabrizi, i have opened a PR regarding the file structure for the auction pallet here : #6746 |
Seems like both claims.rs and purchase.rs are also 1k+ lines, i can make a PR for each once the previous passes if thats ok |
@Krayt78 acknowledged. sounds good |
@shawntabrizi i made 2 PR for both claims.rs and purchase.rs here #6780 #6779 I also noticed that other pallets in polkadot-runtime-common have been refactored but not fully (tests are still in mod.rs, resulting in huge file sizes) example : Can i also refactor those ? |
@Krayt78 yes, go for it. thank you |
Linked to issue #590. I moved the mod, tests, mock and benchmarking to their own seperate file to reduce the bloat inside claims.rs --------- Co-authored-by: Guillaume Thiolliere <[email protected]>
Linked to issue #590 I moved the mod, tests, mock and benchmarking to their own seperate file to reduce the bloat inside purchase.rs --------- Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
# Description Linked to issue #590. I moved the tests and benchmarking to their own seperate file to reduce the bloat inside auctions.rs Co-authored-by: Shawn Tabrizi <[email protected]>
Linked to issue #590 Extracted code from mod.rs to new tests, mock and benchmarking files
We have too many files are more than 1000 lines of code, which is a bad code smell.
For example, https://github.com/paritytech/polkadot/blob/master/runtime/common/src/auctions.rs
the tests should be its own file as well as benchmarks.
The text was updated successfully, but these errors were encountered: