-
Notifications
You must be signed in to change notification settings - Fork 983
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
core refactor #2503
core refactor #2503
Conversation
249a0e4
to
8e8ebf2
Compare
4634fc3
to
1572a8a
Compare
* tomas/refactor-testing-addrs: changelog: add #2507 core: prevent from using addresses for testing in non-test code changelog: add #2506 gov: replace namada_state dep with namada_storage changelog: add #2503 update all core types usages core: flatten types mod update replay_protection usage core: factor out the ledger::replay_protection mod into a new crate core: refactor out ledger::eth_bridge mod changelog: add #2493 benches: fix the shell to update conversions on new epochs move shielded params from core into shielded_token move inflation from core to trans_token replace namada_state usage with namada_storage in token crates changelog: add #2482 refactor finalize_block PoS updates refactor finalize_block governance updates refactor finalize_block token updates
1572a8a
to
94d1a0b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2503 +/- ##
=======================================
Coverage 53.38% 53.38%
=======================================
Files 302 305 +3
Lines 103403 103356 -47
=======================================
- Hits 55198 55176 -22
+ Misses 48205 48180 -25 ☔ View full report in Codecov by Sentry. |
* tomas/core-refactor: changelog: add #2503 update all core types usages core: flatten types mod update replay_protection usage core: factor out the ledger::replay_protection mod into a new crate core: refactor out ledger::eth_bridge mod
* tomas/core-refactor: changelog: add #2503 update all core types usages core: flatten types mod update replay_protection usage core: factor out the ledger::replay_protection mod into a new crate core: refactor out ledger::eth_bridge mod
@@ -572,13 +573,27 @@ macro_rules! impl_storage_traits { | |||
impl_storage_traits!(WlStorage<D, H>); | |||
impl_storage_traits!(TempWlStorage<'_, D, H>); | |||
|
|||
impl<D, H> WithConversionState for WlStorage<D, H> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really need a separate trait?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so - it is used to replace the state
dep in shielded_token
with storage
, which restricts what the crate can access. The idea is to use a similar approach (with mocking when needed) to remove inter-sub-system dependencies
Describe your changes
closes #2483
Indicate on which release or other PRs this topic is based on
#2493 - diff https://github.com/anoma/namada/pull/2503/files/00cddd4c2585829d7e1b4e9bbded892b3b80d2d2..94d1a0b2048bb33fd2043aa27a69d388d965163a
Checklist before merging to
draft