Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
- name: filter out DONTCOVER
if: github.event_name == 'pull_request'
run: |
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER' || true)"
excludelist+=" $(find ./ -type f -name '*.pb.go')"
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
excludelist+=" $(find ./ -type f -path './tests/*.go')"
excludelist+=" $(find ./ -type f -path './x/interchainquery/*')"
excludelist+=" $(find ./ -type f -path './x/oracle/*')"
excludelist+=" $(find ./ -type f -path './x/lsm/*')"
excludelist+=" $(find ./ -type f -path './x/pob/*')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^.\///g')
echo "Excluding ${filename} from coverage report..."
Expand Down
44 changes: 0 additions & 44 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,50 +17,6 @@ all: lint test
# The below include contains the tools and runsim targets.
include contrib/devtools/Makefile

###############################################################################
### Build ###
###############################################################################

BUILD_TARGETS := build install

build: BUILD_ARGS=-o $(BUILDDIR)/
build-linux:
GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false $(MAKE) build

$(BUILD_TARGETS): go.sum $(BUILDDIR)/
go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...

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

build-simd-all: go.sum
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64 darwin/amd64 linux/arm64 windows/amd64' \
--env APP=simd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--env LEDGER_ENABLED=$(LEDGER_ENABLED) \
--name latest-build cosmossdk/rbuilder:latest
$(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/

build-simd-linux: go.sum $(BUILDDIR)/
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64' \
--env APP=simd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--env LEDGER_ENABLED=false \
--name latest-build cosmossdk/rbuilder:latest
$(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/
cp artifacts/simd-*-linux-amd64 $(BUILDDIR)/simd

cosmovisor:
$(MAKE) -C cosmovisor cosmovisor

.PHONY: build build-linux build-simd-all build-simd-linux cosmovisor

distclean: clean tools-clean
clean:
rm -rf \
Expand Down
3 changes: 0 additions & 3 deletions x/halving/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ func (AppModule) Name() string {
return types.ModuleName
}

// RegisterInvariants registers the halving module invariants.
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}

// ConsensusVersion returns the halving module's consensus version number.
func (am AppModule) ConsensusVersion() uint64 {
return 1
Expand Down
2 changes: 1 addition & 1 deletion x/halving/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
//
// The actual codec used for serialization should be provided to x/halving and
// defined at the application level.
ModuleCdc = codec.NewAminoCodec(amino)
ModuleCdc = amino
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion x/interchainquery/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var (
amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewAminoCodec(amino)
ModuleCdc = amino
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
//
// The actual codec used for serialization should be provided to x/staking and
// defined at the application level.
ModuleCdc = codec.NewAminoCodec(amino)
ModuleCdc = amino
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion x/pob/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewAminoCodec(amino)
ModuleCdc = amino
)

func init() {
Expand Down
Loading