Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ac47fa4
move tests to remove circular dependency
vladjdk Sep 23, 2025
463ad28
remove ante2
vladjdk Sep 23, 2025
73f5395
Merge branch 'vlad/remove-evmd-dep' into vlad/config-refactor
vladjdk Sep 23, 2025
c3dc99e
wip: move all config files out of evmd
vladjdk Sep 23, 2025
9b9dd66
wip: add todos
vladjdk Sep 23, 2025
dc32dbb
reset config to fix test
vladjdk Sep 23, 2025
019f3d8
fix evmd tests by adding resets to the evmappoptions
vladjdk Sep 23, 2025
3aff36b
remove testutil/config constants
vladjdk Sep 24, 2025
567764f
fix eips test
vladjdk Sep 24, 2025
91d432c
remove all configs except for genesis from testutil/config and consol…
vladjdk Sep 24, 2025
2b13bcf
lints and merge main
vladjdk Sep 24, 2025
6bee431
Merge branch 'main' into vlad/config-refactor
vladjdk Sep 24, 2025
dda4aac
changelogchangelogchangelogchangelogchangelog
vladjdk Sep 24, 2025
e050fc1
Merge remote-tracking branch 'origin/vlad/config-refactor' into vlad/…
vladjdk Sep 24, 2025
94fc72a
lints
vladjdk Sep 24, 2025
fde47c0
wip: removing app options (tests failing)
vladjdk Sep 24, 2025
7e8c25f
begin storing coin info in the vm keeper storage
vladjdk Sep 24, 2025
87904e3
remove debugging artifact
vladjdk Sep 24, 2025
bedbd6d
artifact removal 2
vladjdk Sep 24, 2025
799db42
fix unit tests
vladjdk Sep 24, 2025
5bd1add
wip: fix ibc testing
vladjdk Sep 25, 2025
f16467c
delete all evmappoptions from tests
vladjdk Sep 25, 2025
b9fb2a7
fix ibc precompile integration test balance getters
vladjdk Sep 25, 2025
77a30c2
Merge remote-tracking branch 'origin/main' into vlad/remove-app-options
vladjdk Sep 26, 2025
71b7722
fix all evmd tests
vladjdk Sep 26, 2025
f8c0743
fix precisebank keeper test
vladjdk Sep 26, 2025
de569ea
fix smore tests
vladjdk Sep 26, 2025
0eeb6ec
lol
vladjdk Sep 26, 2025
0995962
add upgrade handler
vladjdk Sep 26, 2025
79d63fc
lints
vladjdk Sep 26, 2025
356d183
changelog
vladjdk Sep 26, 2025
c65a7cb
Fix imports, add upgrade for non-18-decimal chains, and add migration…
vladjdk Sep 27, 2025
6f9190d
Merge branch 'main' into vlad/remove-app-options
vladjdk Oct 7, 2025
20f33be
fix system test
vladjdk Oct 7, 2025
d4b0007
Merge remote-tracking branch 'origin/vlad/remove-app-options' into vl…
vladjdk Oct 7, 2025
dd59c63
Merge branch 'main' into vlad/remove-app-options
vladjdk Oct 7, 2025
47d2ec9
Update docs/migrations/v0.4.0_to_v0.5.0_UNRELEASED.md
vladjdk Oct 8, 2025
6ec0eea
fix monodecorator test
vladjdk Oct 8, 2025
6efae1b
Merge remote-tracking branch 'origin/vlad/remove-app-options' into vl…
vladjdk Oct 8, 2025
bb572eb
Remove test* denoms and replace with default*
vladjdk Oct 8, 2025
af5caaa
extract var
vladjdk Oct 8, 2025
e8ead26
match vars
vladjdk Oct 8, 2025
cc38dfb
remove chain config from configurator
vladjdk Oct 8, 2025
2d283fa
undo uint8 change
vladjdk Oct 8, 2025
97e8c38
comment fixes
vladjdk Oct 8, 2025
51e5e51
Merge remote-tracking branch 'origin/main' into vlad/remove-app-options
vladjdk Oct 8, 2025
0d932c0
Auto stash before merge of "vlad/remove-app-options" and "origin/main"
vladjdk Oct 8, 2025
a16bba8
set chain config in vm integ tests
vladjdk Oct 8, 2025
949698c
lint
vladjdk Oct 8, 2025
1a51a6f
fix error on test
vladjdk Oct 8, 2025
cbbaa44
fix denoms for ibc chain
vladjdk Oct 9, 2025
0ed773a
Revert "fix denoms for ibc chain"
vladjdk Oct 9, 2025
0b44e5b
use app options chain id instead of passing param
vladjdk Oct 9, 2025
e56e942
lints
vladjdk Oct 9, 2025
8d966ff
revert make race
vladjdk Oct 9, 2025
303f101
Merge branch 'main' into vlad/remove-app-options
vladjdk Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
- [\#477](https://github.com/cosmos/evm/pull/477) Refactor precompile constructors to accept keeper interfaces instead of concrete implementations, breaking the existing `NewPrecompile` function signatures.
- [\#594](https://github.com/cosmos/evm/pull/594) Remove all usage of x/params
- [\#577](https://github.com/cosmos/evm/pull/577) Changed the way to create a stateful precompile based on the cmn.Precompile, change `NewPrecompile` to not return error.
- [\#661](https://github.com/cosmos/evm/pull/661) Removes evmAppOptions from the repository and moves initialization to genesis. Chains must now have a display and denom metadata set for the defined EVM denom in the bank module's metadata.


## v0.4.1

Expand Down
19 changes: 17 additions & 2 deletions ante/evm/fee_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,24 @@ func TestSDKTxFeeChecker(t *testing.T) {
// without extension option
// london hardfork enableness
chainID := uint64(config.EighteenDecimalsChainID)
encodingConfig := encoding.MakeConfig(chainID)
err := config.EvmAppOptions(chainID)
encodingConfig := encoding.MakeConfig(chainID) //nolint:staticcheck // this is used

configurator := evmtypes.NewEVMConfigurator()
configurator.ResetTestConfig()
// set global chain config
ethCfg := evmtypes.DefaultChainConfig(chainID)
if err := evmtypes.SetChainConfig(ethCfg); err != nil {
panic(err)
}
err := configurator.
WithExtendedEips(evmtypes.DefaultCosmosEVMActivators).
// NOTE: we're using the 18 decimals default for the example chain
WithEVMCoinInfo(config.ChainsCoinInfo[chainID]).
Configure()
require.NoError(t, err)
if err != nil {
panic(err)
}

evmDenom := evmtypes.GetEVMCoinDenom()
minGasPrices := sdk.NewDecCoins(sdk.NewDecCoin(evmDenom, math.NewInt(10)))
Expand Down
5 changes: 4 additions & 1 deletion ante/evm/mono_decorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ func (md MonoDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
Time: uint64(ctx.BlockTime().Unix()), //nolint:gosec
Difficulty: big.NewInt(0),
}

chainConfig := evmtypes.GetEthChainConfig()

if err := txpool.ValidateTransaction(ethTx, &header, decUtils.Signer, &txpool.ValidationOptions{
Config: evmtypes.GetEthChainConfig(),
Config: chainConfig,
Accept: AcceptedTxType,
MaxSize: math.MaxUint64, // tx size is checked in cometbft
MinTip: new(big.Int),
Expand Down
18 changes: 17 additions & 1 deletion ante/evm/mono_decorator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ func toMsgSlice(msgs []*evmsdktypes.MsgEthereumTx) []sdk.Msg {

func TestMonoDecorator(t *testing.T) {
chainID := uint64(config.EighteenDecimalsChainID)
require.NoError(t, config.EvmAppOptions(chainID))
cfg := encoding.MakeConfig(chainID)

testCases := []struct {
Expand Down Expand Up @@ -197,6 +196,23 @@ func TestMonoDecorator(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
configurator := evmsdktypes.NewEVMConfigurator()
configurator.ResetTestConfig()
chainConfig := evmsdktypes.DefaultChainConfig(evmsdktypes.DefaultEVMChainID)
err := evmsdktypes.SetChainConfig(chainConfig)
require.NoError(t, err)
coinInfo := evmsdktypes.EvmCoinInfo{
Denom: evmsdktypes.DefaultEVMExtendedDenom,
ExtendedDenom: evmsdktypes.DefaultEVMExtendedDenom,
DisplayDenom: evmsdktypes.DefaultEVMDisplayDenom,
Decimals: 18,
}
err = configurator.
WithExtendedEips(evmsdktypes.DefaultCosmosEVMActivators).
// NOTE: we're using the 18 decimals default for the example chain
WithEVMCoinInfo(coinInfo).
Configure()
require.NoError(t, err)
privKey, _ := ethsecp256k1.GenerateKey()
keeper, cosmosAddr := setupFundedKeeper(t, privKey)
accountKeeper := MockAccountKeeper{FundedAddr: cosmosAddr}
Expand Down
Loading
Loading