Skip to content

post-audit: batch 3 #389

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

Merged
merged 64 commits into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
f8810a1
apply 3eb2135b9103175e3e46c1933f21c88bc334add6
vladjdk Jun 2, 2025
210d749
apply 4f9b8c209314217a1dc8e6d5ff0674c87ed38768
Eric-Warehime Jun 3, 2025
acfb4ea
apply 0e7fd50f71c5f0179cb98a37fe358dd8c18a6e56
aljo242 Jun 10, 2025
09a866d
apply 5cfe96dfd361a81c0b9027fe30cf27a36466a145
AdityaSripal Jun 10, 2025
5fe8287
apply 0e7fd50f71c5f0179cb98a37fe358dd8c18a6e56: fix lint workflow
almk-dev Jul 30, 2025
11d76ab
apply 679305dc8ea3cdba1ec127bb872f23a07b6dd898
cloudgray Jun 12, 2025
7e7a8db
Fix middleware test
Eric-Warehime Jul 30, 2025
69a557b
Format
Eric-Warehime Jul 30, 2025
fda31ee
fix ibc middleware test
almk-dev Jul 31, 2025
22f3486
apply 9fae984e86fb54cd2cd7895abd467cd8da3c16ec: fix conflicts
zsystm Jun 12, 2025
f52e203
consolidate diverging test suite structures
almk-dev Aug 1, 2025
6587606
apply 9fae984e86fb54cd2cd7895abd467cd8da3c16ec: fix conflicts
zsystm Jun 12, 2025
b7b19ec
consolidate diverging test suite structures
almk-dev Aug 1, 2025
5d7e5c8
Merge branch 'post-audit-batch-2' of github.com:cosmos/evm into post-…
almk-dev Aug 1, 2025
a3e0fd3
apply b9a4d418af0dbc614ed0b606ff5880790f408509
almk-dev Aug 1, 2025
8a60e09
apply 96ad38f57b8f2a0e73094c0fc16fb91b6e1c5a06
almk-dev Aug 1, 2025
3ac00b4
fix lint
almk-dev Aug 1, 2025
400c922
apply b9a4d418af0dbc614ed0b606ff5880790f408509
almk-dev Aug 1, 2025
9d86847
apply 96ad38f57b8f2a0e73094c0fc16fb91b6e1c5a06
almk-dev Aug 1, 2025
5843bc5
Merge branch 'post-audit-batch-3' of github.com:cosmos/evm into post-…
almk-dev Aug 1, 2025
869cf3e
apply 578b3468a80b8cea764fb39290115cdece374a7d
almk-dev Aug 1, 2025
e572a8c
apply fd7badca04f77b003ae8d69929095fdd34bbe742
almk-dev Aug 1, 2025
e426e28
apply f7a39221339f503c9b28b3033b4ead0d24512797
almk-dev Aug 1, 2025
9700df7
apply 0e511d32206b1ac709a0eb0ddb1aa21d29e833b8
almk-dev Aug 1, 2025
7f71e64
apply 09e1895d05af2dda8bd759811f85c592612d03df
almk-dev Aug 1, 2025
0f9b034
apply fb7e4078df20782b989b551a3e6b3084cd7a441f
almk-dev Aug 1, 2025
0f85102
apply 8cd184fb190b6d7f45918b088c79b952203eab88
almk-dev Aug 1, 2025
a7ce0e9
apply 9b96d1fcb0d8fa7c1741963115d616f380ecc15f
almk-dev Aug 1, 2025
8e81a6b
apply 029ed3b60088ca698de6714e9615971a85f606fb
almk-dev Aug 1, 2025
a425452
apply e6fe094b61c5cc4770defe0b1a7eb543abbe17cb
almk-dev Aug 1, 2025
3fbcc36
apply 76d8d108b9847f45aa77a36392d3a6b2bad13fd0
almk-dev Aug 1, 2025
79c38be
apply 0517dcf0d1975a486d1d8b3c2be107e56d35acff
almk-dev Aug 1, 2025
1fca9b6
apply af6f8d436a410a76a14f414729abc8302ad9ff46
almk-dev Aug 1, 2025
68a49d1
apply 17cb0d53ff0e20232bd11188e710654305cc6fda
almk-dev Aug 1, 2025
febd0cf
apply cb64292ba805ce3c1c46c3f9a1ab0741574c045f
almk-dev Aug 1, 2025
5d27b1e
apply cbae6131d6650d1e20039af66befbefea2121c7a
almk-dev Aug 1, 2025
aa1a8a1
apply e57a44e9d63b8dc9c94629fbd2525184169a2287
almk-dev Aug 1, 2025
5acdb11
apply 66dd661d1c5166fe25613a744006d25a4f15b27c
almk-dev Aug 1, 2025
7eb5774
add-test-chain-id
aljo242 Aug 1, 2025
c02529e
Merge branch 'post-audit-batch-1' into post-audit-batch-2
almk-dev Aug 1, 2025
c5773c3
Merge branch 'post-audit-batch-2' into post-audit-batch-3
almk-dev Aug 1, 2025
398f062
pointer to precise bank keeper
aljo242 Aug 1, 2025
bb740c9
Merge branch 'post-audit-batch-2' into post-audit-batch-3
aljo242 Aug 1, 2025
6934978
Merge branch 'main' into post-audit-batch-2
almk-dev Aug 1, 2025
4d9a641
cover all
aljo242 Aug 1, 2025
e32c380
Merge branch 'post-audit-batch-2' into post-audit-batch-3
almk-dev Aug 1, 2025
f042ee3
Merge branch 'main' into post-audit-batch-3
almk-dev Aug 1, 2025
9aeae7d
apply balance handler patch
vladjdk Aug 1, 2025
eb62d9e
fix lint
almk-dev Aug 4, 2025
3fc2b3b
fix solidity test
almk-dev Aug 4, 2025
dbe08e1
add evmd tests fix
almk-dev Aug 4, 2025
1ea70f3
add omitted fractional balance clear
almk-dev Aug 4, 2025
0a0f67a
fix lint
almk-dev Aug 4, 2025
5366b78
clean up panic message
almk-dev Aug 4, 2025
d992e5c
try 16 core depot
almk-dev Aug 4, 2025
9675110
try 8 core
almk-dev Aug 4, 2025
c7147d0
Add debug flags to init-node.sh
Eric-Warehime Aug 4, 2025
c50753a
More logging
Eric-Warehime Aug 4, 2025
749a58b
Fix denom
Eric-Warehime Aug 4, 2025
2fc71e2
Remove logging additions
Eric-Warehime Aug 4, 2025
609929a
default runner
almk-dev Aug 4, 2025
83924dd
Merge branch 'post-audit-batch-3' of github.com:cosmos/evm into post-…
almk-dev Aug 4, 2025
d160b48
update hardhat config
almk-dev Aug 4, 2025
041e127
fix
aljo242 Aug 4, 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
51 changes: 40 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
#!/usr/bin/make -f

PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
###############################################################################
### Module & Versioning ###
###############################################################################

VERSION ?= $(shell echo $(shell git describe --tags --always) | sed 's/^v//')
TMVERSION := $(shell go list -m github.com/cometbft/cometbft | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')

###############################################################################
### Directories & Binaries ###
###############################################################################

BINDIR ?= $(GOPATH)/bin
EXAMPLE_BINARY = evmd
BUILDDIR ?= $(CURDIR)/build
EXAMPLE_BINARY := evmd

###############################################################################
### Repo Info ###
###############################################################################

HTTPS_GIT := https://github.com/cosmos/evm.git
DOCKER := $(shell which docker)

export GO111MODULE = on

# Default target executed when no arguments are given to make.
default_target: all
###############################################################################
### Submodule Settings ###
###############################################################################

.PHONY: build default_target
# evmd is a separate module under ./evmd
EVMD_DIR := evmd
EVMD_MAIN_PKG := ./cmd/evmd

###############################################################################
### evmd Build & Install ###
### Build & Install evmd ###
###############################################################################

# process build tags
Expand Down Expand Up @@ -71,19 +87,29 @@ ifneq (,$(findstring nooptimization,$(COSMOS_BUILD_OPTIONS)))
BUILD_FLAGS += -gcflags "all=-N -l"
endif

# Build into $(BUILDDIR)
build: go.sum $(BUILDDIR)/
@echo "🏗️ Building evmd to $(BUILDDIR)/$(EXAMPLE_BINARY) ..."
@cd $(EVMD_DIR) && CGO_ENABLED="1" \
go build $(BUILD_FLAGS) -o $(BUILDDIR)/$(EXAMPLE_BINARY) $(EVMD_MAIN_PKG)

BUILD_TARGETS := build install

build: BUILD_ARGS=-o $(BUILDDIR)/
# Cross-compile for Linux AMD64
build-linux:
GOOS=linux GOARCH=amd64 $(MAKE) build

$(BUILD_TARGETS): go.sum $(BUILDDIR)/
CGO_ENABLED="1" go $@ $(BUILD_FLAGS) $(BUILD_ARGS) ./...
# Install into $(BINDIR)
install: go.sum
@echo "🚚 Installing evmd to $(BINDIR) ..."
@cd $(EVMD_DIR) && CGO_ENABLED="1" \
go install $(BUILD_FLAGS) $(EVMD_MAIN_PKG)

$(BUILDDIR)/:
mkdir -p $(BUILDDIR)/

# Default & all target
.PHONY: all build build-linux install
all: build

###############################################################################
### Tools & Dependencies ###
###############################################################################
Expand All @@ -101,6 +127,7 @@ vulncheck:
### Tests & Simulation ###
###############################################################################

PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
PACKAGES_UNIT := $(shell go list ./... | grep -v '/tests/e2e$$' | grep -v '/simulation')
PACKAGES_EVMD := $(shell cd evmd && go list ./... | grep -v '/simulation')
COVERPKG_EVM := $(shell go list ./... | grep -v '/tests/e2e$$' | grep -v '/simulation' | paste -sd, -)
Expand Down Expand Up @@ -131,6 +158,8 @@ test-unit-cover: run-tests
@cd evmd && go test -tags=test $(COMMON_COVER_ARGS) -coverpkg=$(COVERPKG_ALL) -coverprofile=coverage_evmd.txt ./...
@echo "🔀 Merging evmd coverage into root coverage..."
@tail -n +2 evmd/coverage_evmd.txt >> coverage.txt && rm evmd/coverage_evmd.txt
@echo "🧹 Filtering ignored files from coverage.txt..."
@grep -v -E '/cmd/|/client/|/proto/|/testutil/|/mocks/|/test_.*\.go:|\.pb\.go:|\.pb\.gw\.go:|/x/[^/]+/module\.go:|/scripts/|/ibc/testing/|/version/|\.md:|\.pulsar\.go:' coverage.txt > tmp_coverage.txt && mv tmp_coverage.txt coverage.txt
@echo "📊 Coverage summary:"
@go tool cover -func=coverage.txt

Expand Down
7 changes: 3 additions & 4 deletions ante/evm/fee_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import (

"github.com/cosmos/evm/ante/evm"
anteinterfaces "github.com/cosmos/evm/ante/interfaces"
evmdconfig "github.com/cosmos/evm/cmd/evmd/config"
"github.com/cosmos/evm/encoding"
"github.com/cosmos/evm/evmd"
"github.com/cosmos/evm/testutil/config"
testconstants "github.com/cosmos/evm/testutil/constants"
"github.com/cosmos/evm/types"
feemarkettypes "github.com/cosmos/evm/x/feemarket/types"
Expand Down Expand Up @@ -58,9 +57,9 @@ func TestSDKTxFeeChecker(t *testing.T) {
// with extension option
// without extension option
// london hardfork enableness
chainID := uint64(evmdconfig.EighteenDecimalsChainID)
chainID := uint64(config.EighteenDecimalsChainID)
encodingConfig := encoding.MakeConfig(chainID)
err := evmd.EvmAppOptions(chainID)
err := config.EvmAppOptions(chainID)
require.NoError(t, err)

evmDenom := evmtypes.GetEVMCoinDenom()
Expand Down
16 changes: 8 additions & 8 deletions api/cosmos/evm/erc20/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api/cosmos/evm/feemarket/v1/genesis.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions api/cosmos/evm/feemarket/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions api/cosmos/evm/feemarket/v1/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions api/cosmos/evm/precisebank/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading