-
Notifications
You must be signed in to change notification settings - Fork 10
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
refactor(dogfood): prepare for app
addition
#29
Merged
MaxMustermann2
merged 11 commits into
imua-xyz:develop
from
MaxMustermann2:refactor/dogfood-compat
Apr 11, 2024
Merged
refactor(dogfood): prepare for app
addition
#29
MaxMustermann2
merged 11 commits into
imua-xyz:develop
from
MaxMustermann2:refactor/dogfood-compat
Apr 11, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unfortunately, our prior work around of storing a subset of the header fields for HistoricalInfo can only work for the IBC usage. The EVM module requires the full header to be stored so that it can calculate its hash and that of older blocks to respond to the `blockhash` calls within Solidity.
bwhour
approved these changes
Apr 10, 2024
TimmyExogenous
approved these changes
Apr 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Key additions include:
7e48c12 feat(dogfood): implement export validators: A function to
ExportValidators
of thetmtypes.GenesisValidator
variety, for use inapp/export.go
afb785c fix(dogfood): implement erc20 interface:
x/erc20
requires theBondDenom
interface to decide whether a token's denomination is the native token. If so, theerc20
module does not handle it.77b7e84 fix(dogfood): move hooks to types: Now that all of the hooks are defined in their respective modules, remove the definitions from
expected_keepers.go
a97ee28 fix(dogfood): implement panicky gov interface: The
gov
module for our network could potentially be different from other networks, since we want holders of our tokens to participate in governance and not just validator operators. This PR implements an interface required by the governance module, panicking on each call.cc1413b refactor(dogfood): store full header not subset: Unfortunately, our prior planning of reducing the storage required by this module by using a validator set ID (and height to ID mapping) to create the
HistoricalInfo
is not good enough. This is because thex/evm
module pulls the past headers hash from the staking keeper (to respond to theblockhash
call), which requires the full header and not just a subset.acbcd3c fix(dogfood): implement the evm expected interface: Allow fetching of proposer's
AccAddress
to determine the coinbase.