Skip to content

Commit

Permalink
run make lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Oct 30, 2023
1 parent 7694f31 commit fbe2047
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 37 deletions.
4 changes: 2 additions & 2 deletions ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"fmt"
"testing"

tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand All @@ -13,8 +15,6 @@ import (
"github.com/cosmos/cosmos-sdk/types/tx/signing"
xauthsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
"github.com/stretchr/testify/suite"
tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"

umeeapp "github.com/umee-network/umee/v6/app"
)
Expand Down
2 changes: 1 addition & 1 deletion app/upgradev3/min_commission_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package upgradev3
import (
"testing"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/staking/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"gotest.tools/v3/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion app/wasm/query/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"

wasmvmtypes "github.com/CosmWasm/wasmvm/types"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/cometbft/cometbft/abci/types"

// stargate client
"github.com/umee-network/umee/v6/client"
Expand Down
8 changes: 4 additions & 4 deletions app/wasm/test/cw20_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import (
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
wasmvmtypes "github.com/CosmWasm/wasmvm/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"gotest.tools/v3/assert"

umeeapp "github.com/umee-network/umee/v6/app"
Expand Down
6 changes: 3 additions & 3 deletions cmd/umeed/cmd/app_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
dbm "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"
cmttypes "github.com/cometbft/cometbft/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
Expand All @@ -19,9 +22,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
dbm "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"
cmttypes "github.com/cometbft/cometbft/types"
"github.com/prometheus/client_golang/prometheus"
"github.com/spf13/cast"

Expand Down
2 changes: 1 addition & 1 deletion sdkclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

rpcclient "github.com/cometbft/cometbft/rpc/client"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/rs/zerolog"
"github.com/umee-network/umee/v6/sdkclient/query"
"github.com/umee-network/umee/v6/sdkclient/tx"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
)

// Client provides basic capabilities to connect to a Cosmos SDK based chain and execute
Expand Down
4 changes: 2 additions & 2 deletions sdkclient/tx/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"log"
"os"

rpchttp "github.com/cometbft/cometbft/rpc/client/http"
tmjsonclient "github.com/cometbft/cometbft/rpc/jsonrpc/client"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand All @@ -12,8 +14,6 @@ import (
"github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
tmjsonclient "github.com/cometbft/cometbft/rpc/jsonrpc/client"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"
"testing"

tmcli "github.com/cometbft/cometbft/libs/cli"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/testutil"
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
"github.com/cosmos/cosmos-sdk/testutil/network"
sdk "github.com/cosmos/cosmos-sdk/types"
tmcli "github.com/cometbft/cometbft/libs/cli"
"gotest.tools/v3/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/e2e_leverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func (s *E2ETest) TestLeverageBasics() {
},
)

valAddr, err := s.Chain.Validators[0].KeyInfo.GetAddress()
s.Require().NoError(err)
// valAddr, err := s.Chain.Validators[0].KeyInfo.GetAddress()
// s.Require().NoError(err)

s.Run(
"initial leverage supply", func() {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/setup/gaia.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"path/filepath"
"time"

rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
Expand Down
12 changes: 6 additions & 6 deletions tests/e2e/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ import (
"strings"
"time"

dbm "github.com/cometbft/cometbft-db"
tmconfig "github.com/cometbft/cometbft/config"
tmjson "github.com/cometbft/cometbft/libs/json"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/server"
srvconfig "github.com/cosmos/cosmos-sdk/server/config"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
tmconfig "github.com/cometbft/cometbft/config"
tmjson "github.com/cometbft/cometbft/libs/json"
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"github.com/spf13/viper"
"github.com/stretchr/testify/suite"
dbm "github.com/cometbft/cometbft-db"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"

"github.com/umee-network/umee/v6/app"
appparams "github.com/umee-network/umee/v6/app/params"
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/setup/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ func (s *E2ETestSuite) BroadcastTxWithRetry(msg sdk.Msg, cli client.Client) erro
// if we were told an expected account sequence, we should use it next time
re := regexp.MustCompile(`expected [\d]+`)
n, err := strconv.Atoi(strings.TrimPrefix(re.FindString(err.Error()), "expected "))

if err != nil {
return err
}
Expand Down
16 changes: 8 additions & 8 deletions tests/simulation/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import (
"strings"
"testing"

dbm "github.com/cometbft/cometbft-db"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/baseapp"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand All @@ -21,18 +28,11 @@ import (
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/cosmos/cosmos-sdk/x/simulation"
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
dbm "github.com/cometbft/cometbft-db"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
tmrand "github.com/cometbft/cometbft/libs/rand"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
"github.com/cosmos/cosmos-sdk/baseapp"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
"gotest.tools/v3/assert"

umeeapp "github.com/umee-network/umee/v6/app"
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/simulations/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
OpWeightMsgAggregateExchangeRateVote = "op_weight_msg_exchange_rate_aggregate_vote" //nolint: gosec
OpWeightMsgDelegateFeedConsent = "op_weight_msg_exchange_feed_consent" //nolint: gosec

salt = "89b8164ca0b4b8703ae9ab25962f3dd6d1de5d656f5442971a93b2ca7893f654" //nolint: gosec
salt = "89b8164ca0b4b8703ae9ab25962f3dd6d1de5d656f5442971a93b2ca7893f654"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions x/oracle/types/vote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ func TestParseExchangeRateTuples(t *testing.T) {
}

func TestDenomExchangeRateString(t *testing.T) {
t1 := time.Date(2022, 9, 18, 15, 55, 01, 0, time.UTC)
t1 := time.Date(2022, 9, 18, 15, 55, 0o1, 0, time.UTC)
er := DenomExchangeRate{Denom: "ABCD", Rate: sdk.MustNewDecFromStr("1.5"), Timestamp: t1}
assert.Equal(t, `{"denom":"ABCD","rate":"1.500000000000000000","timestamp":"2022-09-18T15:55:01Z"}`, er.String())
}

func TestExchangeRateString(t *testing.T) {
t1 := time.Date(2022, 9, 18, 15, 55, 01, 0, time.UTC)
t1 := time.Date(2022, 9, 18, 15, 55, 0o1, 0, time.UTC)
er := ExchangeRate{Rate: sdk.MustNewDecFromStr("1.5"), Timestamp: t1}
assert.Equal(t, `{"rate":"1.500000000000000000","timestamp":"2022-09-18T15:55:01Z"}`, er.String())
}
2 changes: 1 addition & 1 deletion x/ugov/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"encoding/json"
"fmt"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

Expand Down

0 comments on commit fbe2047

Please sign in to comment.