Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/cometbft/co…
Browse files Browse the repository at this point in the history
…metbft-db-0.12.0
  • Loading branch information
robert-zaremba committed Apr 16, 2024
2 parents 3b46439 + 571d7c6 commit 7d15dfe
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: true

- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
id: govulncheck
if: env.GIT_DIFF
with:
go-version-input: 1.21
go-version-input: 1.22
go-package: ./...
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true

- name: golangci-lint main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-umee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: true

- name: Set Env
run: echo "TM_VERSION=$(go list -m github.com/cometbft/cometbft | sed 's:.* ::')" >> $GITHUB_ENV

# useful to test builds. However will require to add "push" rule to the "on" section
- name: generate and update swagger docs
- name: generate and update swagger docs
run: |
make proto-swagger-gen
make proto-update-swagger-docs
- name: goreleaser test-build
uses: goreleaser/goreleaser-action@v5
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Enable:ReleaseBuild')
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/simulations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Install runsim
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected]
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true
- name: Test application non-determinism
if: env.GIT_DIFF
Expand All @@ -65,7 +65,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true
- uses: actions/cache@v4
if: env.GIT_DIFF
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
- uses: actions/cache@v4
id: cache-go-tparse
with:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
if: steps.cache-binaries.outputs.cache-hit != 'true' && env.GIT_DIFF
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: true
env:
GOOS: ${{ matrix.targetos }}
Expand All @@ -78,7 +78,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true
- name: Test and Create Coverage Report
if: env.GIT_DIFF
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "1.21"
go-version: "1.22"
cache: true

- name: Test E2E
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Improvements

- [2474](https://github.com/umee-network/umee/pull/2474) (proto) add `gogo.messagename_all` option to all messages.
- [2494](https://github.com/umee-network/umee/pull/2494) Use go 1.22

### Bug Fixes

Expand Down
4 changes: 2 additions & 2 deletions contrib/images/umee.e2e-static.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Creates static binaries, by building from the latest version of:
# umeed, price-feeder.

FROM golang:1.21-alpine3.18 AS builder
FROM golang:1.22-alpine3.19 AS builder
ENV PACKAGES make git gcc linux-headers build-base curl
RUN apk add --no-cache $PACKAGES

Expand All @@ -25,7 +25,7 @@ RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make install && \


## Prepare the final clear binary
FROM alpine:3.18
FROM alpine:3.19
EXPOSE 26656 26657 1317 9090 7171
ENTRYPOINT ["umeed", "start"]

Expand Down
2 changes: 1 addition & 1 deletion contrib/images/umee.e2e.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker for e2e testing
# Creates dynamic binaries, by building from the latest version of umeed

FROM golang:1.21-bookworm AS builder
FROM golang:1.22-bookworm AS builder
ARG EXPERIMENTAL=true

## Download go module dependencies for umeed
Expand Down
2 changes: 1 addition & 1 deletion contrib/images/umeed.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stage-1: build
# We use Debian Bullseye rather then Alpine because Alpine has problem building libwasmvm
# - requires to download libwasmvm_muslc from external source. Build with glibc is straightforward.
FROM golang:1.21-bookworm AS builder
FROM golang:1.22-bookworm AS builder

WORKDIR /src/
# optimization: if go.sum didn't change, docker will use cached image
Expand Down
4 changes: 2 additions & 2 deletions contrib/scripts/go-mod-tidy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -euo pipefail

for modfile in $(find . -name go.mod); do
echo "Updating $modfile"
DIR=$(dirname $modfile)
(cd $DIR; go mod tidy --compat=1.21)
DIR=$(dirname "$modfile")
(cd "$DIR"; go mod tidy --compat=1.22)
done
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/umee-network/umee/v6

go 1.21
go 1.22

require (
cosmossdk.io/api v0.3.1
cosmossdk.io/errors v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions util/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func SetBinValue[T BinMarshalable](store sdk.KVStore, key []byte, value T, errFi
// instead of GetValue.
// Returns a boolean indicating whether any data was found. If the return is false, the object
// is not changed by this function.
func GetValueCdc(store sdk.KVStore, cdc codec.Codec, key []byte, object codec.ProtoMarshaler, errField string) bool {
func GetValueCdc(store sdk.KVStore, cdc codec.BinaryCodec, key []byte, object codec.ProtoMarshaler, errField string) bool {
if bz := store.Get(key); len(bz) > 0 {
err := cdc.Unmarshal(bz, object)
if err != nil {
Expand All @@ -88,7 +88,7 @@ func GetValueCdc(store sdk.KVStore, cdc codec.Codec, key []byte, object codec.Pr
// SetValueCdc is similar to the SetValue, but uses codec for marshaling. For Protobuf objects the
// result is the same, unless codec.Any is used. In the latter case this function MUST be used,
// instead of SetValue.
func SetValueCdc(store sdk.KVStore, cdc codec.Codec, key []byte, object codec.ProtoMarshaler, errField string) error {
func SetValueCdc(store sdk.KVStore, cdc codec.BinaryCodec, key []byte, object codec.ProtoMarshaler, errField string) error {
bz, err := cdc.Marshal(object)
if err != nil {
return fmt.Errorf("failed to encode %s, %s", errField, err.Error())
Expand Down
9 changes: 4 additions & 5 deletions x/auction/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
// "github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

// Amino codecs
Expand Down Expand Up @@ -33,10 +33,9 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
// &MsgGovSetRewardsParams{},
// &MsgRewardsBid{},
&MsgGovSetRewardsParams{},
&MsgRewardsBid{},
)

// TODO
// msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
4 changes: 2 additions & 2 deletions x/incentive/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import (
)

type Keeper struct {
cdc codec.Codec
cdc codec.BinaryCodec
storeKey storetypes.StoreKey
bankKeeper incentive.BankKeeper
leverageKeeper incentive.LeverageKeeper
}

func NewKeeper(
cdc codec.Codec,
cdc codec.BinaryCodec,
storeKey storetypes.StoreKey,
bk incentive.BankKeeper,
lk incentive.LeverageKeeper,
Expand Down
4 changes: 2 additions & 2 deletions x/leverage/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

type Keeper struct {
cdc codec.Codec
cdc codec.BinaryCodec
storeKey storetypes.StoreKey
bankKeeper types.BankKeeper
oracleKeeper types.OracleKeeper
Expand All @@ -28,7 +28,7 @@ type Keeper struct {
}

func NewKeeper(
cdc codec.Codec,
cdc codec.BinaryCodec,
storeKey storetypes.StoreKey,
b types.BankKeeper,
o types.OracleKeeper,
Expand Down
6 changes: 3 additions & 3 deletions x/metoken/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// Builder constructs Keeper by preparing all related dependencies (notably the store).
type Builder struct {
cdc codec.Codec
cdc codec.BinaryCodec
storeKey storetypes.StoreKey
bankKeeper metoken.BankKeeper
leverageKeeper metoken.LeverageKeeper
Expand All @@ -22,7 +22,7 @@ type Builder struct {

// NewBuilder returns Builder object.
func NewBuilder(
cdc codec.Codec,
cdc codec.BinaryCodec,
storeKey storetypes.StoreKey,
bankKeeper metoken.BankKeeper,
leverageKeeper metoken.LeverageKeeper,
Expand All @@ -40,7 +40,7 @@ func NewBuilder(
}

type Keeper struct {
cdc codec.Codec
cdc codec.BinaryCodec
store sdk.KVStore
bankKeeper metoken.BankKeeper
leverageKeeper metoken.LeverageKeeper
Expand Down

0 comments on commit 7d15dfe

Please sign in to comment.