forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(wip) Cherry-pick: Problem: evm transfer is not efficient (crypto-org…
…-chain#448) Reason for Cherry-pick: - Required patch for migrating Block STM (Parallel Transaction Execution) - Avoid common conflict problem when transfer eth Notes - (bug) While cherry-picking necessary one, I'm trying to implement native state revert using only SDK's store functions, but some error occurs. Need to fix it. - (refactor) Refactored test codes by referencing Cronos because it is more clean and maintainable Original Commit Message: * Problem: evm transfer is not efficient Solution: - override the Transfer callback in block context. Update CHANGELOG.md Signed-off-by: yihuang <[email protected]> * test reverted sdk * update deps --------- Signed-off-by: yihuang <[email protected]> Cherry-picked-by: zsystm <[email protected]>
- Loading branch information
Showing
19 changed files
with
951 additions
and
517 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
"github.com/cosmos/cosmos-sdk/x/auth" | ||
"github.com/cosmos/cosmos-sdk/x/bank" | ||
distr "github.com/cosmos/cosmos-sdk/x/distribution" | ||
"github.com/cosmos/cosmos-sdk/x/gov" | ||
govclient "github.com/cosmos/cosmos-sdk/x/gov/client" | ||
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" | ||
"github.com/cosmos/cosmos-sdk/x/staking" | ||
"github.com/evmos/ethermint/encoding" | ||
"github.com/evmos/ethermint/types" | ||
"github.com/evmos/ethermint/x/evm" | ||
"github.com/evmos/ethermint/x/feemarket" | ||
) | ||
|
||
func MakeConfigForTest(moduleManager module.BasicManager) types.EncodingConfig { | ||
config := encoding.MakeConfig() | ||
if moduleManager == nil { | ||
moduleManager = module.NewBasicManager( | ||
auth.AppModuleBasic{}, | ||
bank.AppModuleBasic{}, | ||
distr.AppModuleBasic{}, | ||
gov.NewAppModuleBasic([]govclient.ProposalHandler{paramsclient.ProposalHandler}), | ||
staking.AppModuleBasic{}, | ||
// Ethermint modules | ||
evm.AppModuleBasic{}, | ||
feemarket.AppModuleBasic{}, | ||
) | ||
} | ||
moduleManager.RegisterLegacyAminoCodec(config.Amino) | ||
moduleManager.RegisterInterfaces(config.InterfaceRegistry) | ||
return config | ||
} |
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
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
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
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
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
Oops, something went wrong.