Skip to content

Commit

Permalink
chore: run fmt (#272)
Browse files Browse the repository at this point in the history
* reformat imports

* lint
  • Loading branch information
puneet2019 authored Jan 4, 2024
1 parent ac484fb commit 33d65bc
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 43 deletions.
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
reflectionv1 "cosmossdk.io/api/cosmos/reflection/v1"
"github.com/spf13/cast"

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
Expand Down Expand Up @@ -54,6 +52,7 @@ import (
"github.com/rakyll/statik/fs"
pobabci "github.com/skip-mev/pob/abci"
"github.com/skip-mev/pob/mempool"
"github.com/spf13/cast"

"github.com/persistenceOne/persistenceCore/v11/app/keepers"
"github.com/persistenceOne/persistenceCore/v11/app/upgrades"
Expand Down
1 change: 0 additions & 1 deletion app/fee_denom_whitelist_decorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"strings"

errorsmod "cosmossdk.io/errors"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down
3 changes: 1 addition & 2 deletions app/fee_denom_whitelist_decorator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"testing"

"cosmossdk.io/math"
"github.com/stretchr/testify/require"

"github.com/cometbft/cometbft/libs/log"
tmtypes "github.com/cometbft/cometbft/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
)

func TestFeeDenomWhiltelistDecorator(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package keepers
import (
"fmt"

"github.com/spf13/cast"

"github.com/CosmWasm/wasmd/x/wasm"
tmos "github.com/cometbft/cometbft/libs/os"
"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -92,6 +90,7 @@ import (
ratesynctypes "github.com/persistenceOne/pstake-native/v2/x/ratesync/types"
builderkeeper "github.com/skip-mev/pob/x/builder/keeper"
buildertypes "github.com/skip-mev/pob/x/builder/types"
"github.com/spf13/cast"

"github.com/persistenceOne/persistenceCore/v11/wasmbindings"

Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v11.1.0/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"

"github.com/persistenceOne/persistenceCore/v11/app/upgrades"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
)

func CreateUpgradeHandler(args upgrades.UpgradeHandlerArgs) upgradetypes.UpgradeHandler {
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/v11/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package v11

import (
store "github.com/cosmos/cosmos-sdk/store/types"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"

"github.com/persistenceOne/persistenceCore/v11/app/upgrades"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions app/upgrades/v9.2.0/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ func Fork(ctx sdk.Context, keepers *stakingkeeper.Keeper) {
ctx.Logger().Info(fmt.Sprintf("Validator %s is ok", val.OperatorAddress))
}
}
ctx.Logger().Info(fmt.Sprintf("Fork Successful"))

ctx.Logger().Info("Fork Successful")
}

func fixPower(ctx sdk.Context, k *stakingkeeper.Keeper, oldval, newval stakingtypes.Validator, maxValidators uint32) {
Expand Down Expand Up @@ -115,6 +114,6 @@ func fixPower(ctx sdk.Context, k *stakingkeeper.Keeper, oldval, newval stakingty
}

func RemoveMainnetV9_2Prop(ctx sdk.Context, keeper *upgradekeeper.Keeper) {
ctx.Logger().Info(fmt.Sprintf("Removing v9.2 upgrade plan for mainnet"))
ctx.Logger().Info("Removing v9.2 upgrade plan for mainnet")
keeper.ClearUpgradePlan(ctx)
}
6 changes: 2 additions & 4 deletions app/upgrades/v9.2.0/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import (
"os"
"testing"

v9_2_0 "github.com/persistenceOne/persistenceCore/v11/app/upgrades/v9.2.0"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/CosmWasm/wasmd/x/wasm"
dbm "github.com/cometbft/cometbft-db"
abci "github.com/cometbft/cometbft/abci/types"
Expand All @@ -23,11 +19,13 @@ import (
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
oracletypes "github.com/persistenceOne/persistence-sdk/v2/x/oracle/types"
"github.com/stretchr/testify/suite"

"github.com/persistenceOne/persistenceCore/v11/app"
v9_2_0 "github.com/persistenceOne/persistenceCore/v11/app/upgrades/v9.2.0"
)

type KeeperTestHelper struct {
Expand Down
8 changes: 3 additions & 5 deletions cmd/persistenceCore/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ import (
"os"
"path/filepath"

"cosmossdk.io/math"
tmconfig "github.com/cometbft/cometbft/config"
tmrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/types"
tmtime "github.com/cometbft/cometbft/types/time"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"cosmossdk.io/math"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand All @@ -39,6 +35,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"github.com/persistenceOne/persistenceCore/v11/app"
)
Expand Down
5 changes: 2 additions & 3 deletions cmd/persistenceCore/cmd/testnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import (
"testing"

"github.com/cometbft/cometbft/libs/log"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
Expand All @@ -18,6 +15,8 @@ import (
genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/app"
)
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/liquidstake_stkxprt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/strangelove-ventures/interchaintest/v7/testutil"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
)

// TestLiquidStakeStkXPRT runs the flow of liquid XPRT staking using
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/liquidstake_unstake_stkxprt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/testutil"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
)

// TestLiquidStakeUnstakeStkXPRT runs the flow of stkXPRT unstaking.
Expand Down
5 changes: 2 additions & 3 deletions interchaintest/lsm_bond_tokenize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"context"
"testing"

"github.com/strangelove-ventures/interchaintest/v7"
"github.com/stretchr/testify/require"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
)
Expand Down
5 changes: 2 additions & 3 deletions interchaintest/lsm_tokenize_send_vote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import (
"testing"

"cosmossdk.io/math"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/stretchr/testify/require"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
)
Expand Down
5 changes: 2 additions & 3 deletions interchaintest/module_pob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import (
"testing"

"cosmossdk.io/math"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
)
Expand Down
7 changes: 3 additions & 4 deletions interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
testutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
ibclocalhost "github.com/cosmos/ibc-go/v7/modules/light-clients/09-localhost"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/strangelove-ventures/interchaintest/v7/testreporter"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
liquidstaketypes "github.com/persistenceOne/pstake-native/v2/x/liquidstake/types"
)

var (
Expand Down
7 changes: 3 additions & 4 deletions starship/v7v8/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ import (
"strconv"
"time"

"github.com/stretchr/testify/suite"
"go.uber.org/zap"
"gopkg.in/yaml.v3"

coretypes "github.com/cometbft/cometbft/rpc/core/types"
starship "github.com/cosmology-tech/starship/clients/go/client"
sdk "github.com/cosmos/cosmos-sdk/types"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
lscosmos "github.com/persistenceOne/pstake-native/v2/x/lscosmos"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
"gopkg.in/yaml.v3"
)

var configFile = "./config.yaml"
Expand Down

0 comments on commit 33d65bc

Please sign in to comment.