-
Notifications
You must be signed in to change notification settings - Fork 863
Composite State Store part 1: EVM config and type definitions #2754
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2754 +/- ##
==========================================
- Coverage 43.81% 43.81% -0.01%
==========================================
Files 1991 1992 +1
Lines 163571 163596 +25
==========================================
+ Hits 71672 71680 +8
- Misses 85378 85400 +22
+ Partials 6521 6516 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
630fbf3 to
ac83d2f
Compare
Adds configuration and type definitions for EVM state stores: - EVMStateStoreConfig in config/config.go for enabling EVM SS - EVMStoreType alias to EVMKeyKind from common/evm - AllEVMStoreTypes() for iteration over store types - StoreTypeName() for DB directory naming Also renames common/evm/memiavl_keys.go to keys.go and ParseMemIAVLEVMKey to ParseEVMKey for broader applicability.
ac83d2f to
0935d03
Compare
| type EVMStoreType = commonevm.EVMKeyKind | ||
|
|
||
| // Re-export EVMKeyKind constants for convenience | ||
| const ( |
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.
Not sure if this belongs to config, maybe we should move the store types to another file?
| StoreNonce = commonevm.EVMKeyNonce | ||
| StoreCodeHash = commonevm.EVMKeyCodeHash | ||
| StoreCode = commonevm.EVMKeyCode | ||
| StoreCodeSize = commonevm.EVMKeyCodeSize |
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 don't think we wanna store code size in the new EVM state any more, that's not part of the standard EVM state
|
|
||
| // Re-export EVMKeyKind constants for convenience | ||
| const ( | ||
| StoreUnknown = commonevm.EVMKeyUnknown |
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.
we don't need a key for Balance because we're using tendermint store for balances right?
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.
We should still add it though I think, but won't be used until migration happens
Describe your changes and provide context
Testing performed to validate your change