Skip to content

Commit

Permalink
feat: update to umeed v3 (#362)
Browse files Browse the repository at this point in the history
- release v1
  • Loading branch information
RafilxTenfen authored Sep 20, 2022
1 parent 4e2a6be commit 9e61be6
Show file tree
Hide file tree
Showing 15 changed files with 260 additions and 206 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,35 @@ jobs:

test-e2e:
runs-on: ubuntu-latest
timeout-minutes: 25
timeout-minutes: 30
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/setup-go@v3
if: env.GIT_DIFF
with:
go-version: 1.18
cache: true

# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- name: cache docker layer
uses: satackey/[email protected]
if: env.GIT_DIFF
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true

- name: Build Docker Image
run: |
make docker-build-debug
if: env.GIT_DIFF
run: |
DOCKER_BUILDKIT=1 make docker-build-debug
- name: Test E2E
if: env.GIT_DIFF
run: |
make test-e2e
if: env.GIT_DIFF
27 changes: 13 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
run:
tests: false
skip-dirs:
- test
- diagrams
go: '1.19'
- test/e2e
- tests/simulation

govet:
# Enable analyzers by name (in addition to default).
Expand All @@ -14,37 +13,39 @@ run:

linters:
enable:
# - dupl
# - nestif
# - rowserrcheck -- enable when it will support generics
# - whitespace
# - wsl
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- exportloopref
- goconst
- gocritic
- gofmt
- goimports
- revive
- gosec
- gosimple
- govet
- grouper
- ineffassign
- lll
- misspell
- nakedret
- nolintlint
- prealloc
- exportloopref
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- nolintlint
- asciicheck
# - whitespace
# - wsl
- usestdlibvars

issues:
exclude-rules:
Expand All @@ -68,7 +69,5 @@ linters-settings:
locale: US
nolintlint:
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space. Default is true.
allow-leading-space: true
require-explanation: false
require-specific: false
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Improvements

[#362](https://github.com/umee-network/peggo/pull/362) Update umeed to v3.
[#343](https://github.com/umee-network/peggo/pull/343) Upgrade to cosmos-sdk v0.46.1.
[#341](https://github.com/umee-network/peggo/pull/341) Fix linter.
[#334](https://github.com/umee-network/peggo/pull/334) Update to go 1.18.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN make install

# Fetch umeed binary
FROM base-builder AS umeed-builder
ARG UMEE_VERSION=main
ARG UMEE_VERSION=v3.0.0-beta1
ENV PACKAGES curl eudev-dev
RUN apk add --no-cache $PACKAGES
WORKDIR /downloads/
Expand Down
2 changes: 1 addition & 1 deletion cmd/peggo/client/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/pkg/errors"

umeeapp "github.com/umee-network/umee/v2/app"
umeeapp "github.com/umee-network/umee/v3/app"
)

// NewClientContext creates a new Cosmos Client context, where chainID
Expand Down
4 changes: 2 additions & 2 deletions cmd/peggo/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/rs/zerolog"
"github.com/spf13/pflag"

umeeapp "github.com/umee-network/umee/v2/app"
umeeparams "github.com/umee-network/umee/v3/app/params"
)

const (
Expand Down Expand Up @@ -65,7 +65,7 @@ func cosmosFlagSet() *pflag.FlagSet {
fs.String(flagTendermintRPC, "http://localhost:26657", "The Tendermint RPC endpoint of a Cosmos node")
fs.String(
flagCosmosGasPrices,
fmt.Sprintf("0.001%s", umeeapp.BondDenom),
fmt.Sprintf("0.05%s", umeeparams.BondDenom),
"The gas prices to use for Cosmos transaction fees",
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/peggo/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/umee-network/peggo/orchestrator/ethereum/keystore"
"golang.org/x/term"

umeeapp "github.com/umee-network/umee/v2/app"
umeeapp "github.com/umee-network/umee/v3/app"
)

const defaultKeyringKeyName = "validator"
Expand Down
35 changes: 17 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ module github.com/umee-network/peggo
go 1.18

require (
cosmossdk.io/math v1.0.0-beta.3
github.com/Gravity-Bridge/Gravity-Bridge/module v1.5.3
github.com/avast/retry-go v3.0.0+incompatible
github.com/cosmos/cosmos-sdk v0.46.1
github.com/cosmos/go-bip39 v1.0.0
github.com/ethereum/go-ethereum v1.10.23
github.com/ethereum/go-ethereum v1.10.25
github.com/golang/mock v1.6.0
github.com/golangci/golangci-lint v1.49.0
github.com/hashicorp/go-multierror v1.1.1
Expand All @@ -19,11 +20,11 @@ require (
github.com/shopspring/decimal v1.3.1
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.12.0
github.com/spf13/viper v1.13.0
github.com/stretchr/testify v1.8.0
github.com/tendermint/tendermint v0.34.21
github.com/umee-network/umee/price-feeder v0.0.0-20220825153408-0ce3e20c310c
github.com/umee-network/umee/v2 v2.0.0-20220825153408-0ce3e20c310c
github.com/umee-network/umee/price-feeder v1.0.1-0.20220919160536-0c0db8c7c112
github.com/umee-network/umee/v3 v3.0.0-rc1
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035
google.golang.org/grpc v1.49.0
Expand All @@ -37,7 +38,6 @@ require (
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/storage v1.14.0 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
cosmossdk.io/math v1.0.0-beta.3 // indirect
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
Expand All @@ -56,7 +56,7 @@ require (
github.com/Workiva/go-datastructures v1.0.53 // indirect
github.com/alexkohler/prealloc v1.0.0 // indirect
github.com/alingse/asasalint v0.0.11 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-metrics v0.4.1 // indirect
github.com/ashanbrown/forbidigo v1.3.0 // indirect
github.com/ashanbrown/makezero v1.1.1 // indirect
github.com/aws/aws-sdk-go v1.40.45 // indirect
Expand Down Expand Up @@ -84,7 +84,7 @@ require (
github.com/cosmos/cosmos-proto v1.0.0-alpha7 // indirect
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v0.19.1 // indirect
github.com/cosmos/ibc-go/v3 v3.1.0 // indirect
github.com/cosmos/ibc-go/v5 v5.0.0-rc2 // indirect
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
github.com/cosmos/ledger-go v0.9.2 // indirect
github.com/creachadair/taskgroup v0.3.2 // indirect
Expand Down Expand Up @@ -120,7 +120,7 @@ require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/validator/v10 v10.11.0 // indirect
github.com/go-playground/validator/v10 v10.11.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/go-toolsmith/astcast v1.0.0 // indirect
github.com/go-toolsmith/astcopy v1.0.1 // indirect
Expand Down Expand Up @@ -177,7 +177,7 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
github.com/hexops/gotextdiff v1.0.3 // indirect
github.com/ignite/cli v0.23.0 // indirect
github.com/ignite/cli v0.24.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/improbable-eng/grpc-web v0.15.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
Expand Down Expand Up @@ -229,7 +229,7 @@ require (
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
github.com/opencontainers/runc v1.1.3 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand Down Expand Up @@ -269,7 +269,7 @@ require (
github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect
github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/sylvia7788/contextcheck v1.0.6 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tdakkota/asciicheck v0.1.1 // indirect
Expand Down Expand Up @@ -309,12 +309,12 @@ require (
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.12 // indirect
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
google.golang.org/api v0.81.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220728213248-dd149ef739b9 // indirect
google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
honnef.co/go/tools v0.3.3 // indirect
Expand All @@ -327,10 +327,9 @@ require (
)

replace (
github.com/Gravity-Bridge/Gravity-Bridge/module => github.com/umee-network/Gravity-Bridge/module v1.4.2-0.20220805205452-2445605a0377
github.com/cosmos/cosmos-sdk => github.com/umee-network/cosmos-sdk v0.46.0-umee.0.20220812010629-4d5bb2e3f73c
github.com/cosmos/ibc-go/v3 => github.com/umee-network/ibc-go/v3 v3.1.1-0.20220805152159-67d4d37d2d84
github.com/Gravity-Bridge/Gravity-Bridge/module => github.com/umee-network/Gravity-Bridge/module v1.5.3-umee-1
github.com/cosmos/cosmos-sdk => github.com/umee-network/cosmos-sdk v0.46.1-umee
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.8.1
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
github.com/osmosis-labs/bech32-ibc => github.com/umee-network/bech32-ibc v0.3.0-rc1.0.20220726223124-958071525f39
github.com/osmosis-labs/bech32-ibc => github.com/umee-network/bech32-ibc v0.3.0-rc1.0.20220831212913-42baad053f6e
)
Loading

0 comments on commit 9e61be6

Please sign in to comment.