Skip to content

Commit

Permalink
chore: make format
Browse files Browse the repository at this point in the history
  • Loading branch information
loloicci committed Sep 11, 2023
1 parent 8b07189 commit 8617ed1
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 60 deletions.
5 changes: 3 additions & 2 deletions ante/ante.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package ante

import (
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"

sdk "github.com/Finschia/finschia-sdk/types"
sdkerrors "github.com/Finschia/finschia-sdk/types/errors"
"github.com/Finschia/finschia-sdk/x/auth/ante"
wasmkeeper "github.com/Finschia/wasmd/x/wasm/keeper"
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"
ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
)

// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
Expand Down
3 changes: 1 addition & 2 deletions ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

ocrand "github.com/Finschia/ostracon/libs/rand"

"github.com/Finschia/finschia-sdk/client"
"github.com/Finschia/finschia-sdk/client/tx"
cryptotypes "github.com/Finschia/finschia-sdk/crypto/types"
Expand All @@ -17,6 +15,7 @@ import (
sdk "github.com/Finschia/finschia-sdk/types"
"github.com/Finschia/finschia-sdk/types/tx/signing"
xauthsigning "github.com/Finschia/finschia-sdk/x/auth/signing"
ocrand "github.com/Finschia/ostracon/libs/rand"

linkapp "github.com/Finschia/finschia/app"
linkhelpers "github.com/Finschia/finschia/app/helpers"
Expand Down
39 changes: 18 additions & 21 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ import (
"os"
"path/filepath"

ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types"
"github.com/cosmos/ibc-go/v4/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v4/modules/core"
ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
ibcclientclient "github.com/cosmos/ibc-go/v4/modules/core/02-client/client"
ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"
"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"

ocabci "github.com/Finschia/ostracon/abci/types"
"github.com/Finschia/ostracon/libs/log"
ostos "github.com/Finschia/ostracon/libs/os"
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"
Expand Down Expand Up @@ -101,32 +112,18 @@ import (
upgradeclient "github.com/Finschia/finschia-sdk/x/upgrade/client"
upgradekeeper "github.com/Finschia/finschia-sdk/x/upgrade/keeper"
upgradetypes "github.com/Finschia/finschia-sdk/x/upgrade/types"
ocabci "github.com/Finschia/ostracon/abci/types"
"github.com/Finschia/ostracon/libs/log"
ostos "github.com/Finschia/ostracon/libs/os"
"github.com/Finschia/wasmd/x/wasm"
wasmclient "github.com/Finschia/wasmd/x/wasm/client"
wasmkeeper "github.com/Finschia/wasmd/x/wasm/keeper"
"github.com/Finschia/wasmd/x/wasmplus"
wasmpluskeeper "github.com/Finschia/wasmd/x/wasmplus/keeper"
wasmplustypes "github.com/Finschia/wasmd/x/wasmplus/types"
ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts"
icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host"
icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper"
icahosttypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/types"
"github.com/cosmos/ibc-go/v4/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v4/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v4/modules/core"
ibcclient "github.com/cosmos/ibc-go/v4/modules/core/02-client"
ibcclientclient "github.com/cosmos/ibc-go/v4/modules/core/02-client/client"
ibcclienttypes "github.com/cosmos/ibc-go/v4/modules/core/02-client/types"
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
ibchost "github.com/cosmos/ibc-go/v4/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper"

appante "github.com/Finschia/finschia/ante"
appparams "github.com/Finschia/finschia/app/params"

// unnamed import of statik for swagger UI support
_ "github.com/Finschia/finschia/client/docs/statik"
)

Expand Down
10 changes: 4 additions & 6 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"testing"

"github.com/cosmos/ibc-go/v4/modules/apps/transfer"
ibc "github.com/cosmos/ibc-go/v4/modules/core"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"

"github.com/Finschia/ostracon/libs/log"
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"
Expand All @@ -32,16 +32,14 @@ import (
foundationmodule "github.com/Finschia/finschia-sdk/x/foundation/module"
"github.com/Finschia/finschia-sdk/x/genutil"
"github.com/Finschia/finschia-sdk/x/gov"
"github.com/Finschia/wasmd/x/wasmplus"

"github.com/Finschia/finschia-sdk/x/mint"
"github.com/Finschia/finschia-sdk/x/params"
"github.com/Finschia/finschia-sdk/x/slashing"
"github.com/Finschia/finschia-sdk/x/staking"
tokenmodule "github.com/Finschia/finschia-sdk/x/token/module"
"github.com/Finschia/finschia-sdk/x/upgrade"
"github.com/cosmos/ibc-go/v4/modules/apps/transfer"
ibc "github.com/cosmos/ibc-go/v4/modules/core"
"github.com/Finschia/ostracon/libs/log"
"github.com/Finschia/wasmd/x/wasmplus"
)

func TestSimAppExportAndBlockedAddrs(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions app/genesis_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import (

"github.com/stretchr/testify/require"

"github.com/Finschia/ostracon/crypto"

"github.com/Finschia/finschia-sdk/crypto/keys/secp256k1"
"github.com/Finschia/finschia-sdk/simapp"
sdk "github.com/Finschia/finschia-sdk/types"
authtypes "github.com/Finschia/finschia-sdk/x/auth/types"
"github.com/Finschia/ostracon/crypto"
)

func TestSimGenesisAccountValidate(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions cli_test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ import (

"github.com/stretchr/testify/require"

osttypes "github.com/Finschia/ostracon/types"

"github.com/Finschia/finschia-sdk/client/flags"
"github.com/Finschia/finschia-sdk/crypto/keys/ed25519"
sdk "github.com/Finschia/finschia-sdk/types"
"github.com/Finschia/finschia-sdk/types/tx"
gov "github.com/Finschia/finschia-sdk/x/gov/types"
minttypes "github.com/Finschia/finschia-sdk/x/mint/types"
osttypes "github.com/Finschia/ostracon/types"

"github.com/Finschia/finschia/app"
)
Expand Down
4 changes: 1 addition & 3 deletions cli_test/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import (
"github.com/spf13/cobra"
"github.com/stretchr/testify/require"

wasmcli "github.com/Finschia/wasmd/x/wasm/client/cli"

"github.com/Finschia/finschia-sdk/baseapp"
"github.com/Finschia/finschia-sdk/client"
clientkeys "github.com/Finschia/finschia-sdk/client/keys"
Expand Down Expand Up @@ -54,13 +52,13 @@ import (
stakingcli "github.com/Finschia/finschia-sdk/x/staking/client/cli"
staking "github.com/Finschia/finschia-sdk/x/staking/types"
"github.com/Finschia/finschia-sdk/x/stakingplus"

ostcmd "github.com/Finschia/ostracon/cmd/ostracon/commands"
ostcfg "github.com/Finschia/ostracon/config"
"github.com/Finschia/ostracon/libs/log"
osthttp "github.com/Finschia/ostracon/rpc/client/http"
ostctypes "github.com/Finschia/ostracon/rpc/core/types"
osttypes "github.com/Finschia/ostracon/types"
wasmcli "github.com/Finschia/wasmd/x/wasm/client/cli"
wasmtypes "github.com/Finschia/wasmd/x/wasm/types"

"github.com/Finschia/finschia/app"
Expand Down
11 changes: 4 additions & 7 deletions cmd/fnsad/cmd/genaccounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@ package cmd_test
import (
"context"
"fmt"

"testing"

"github.com/Finschia/finschia-sdk/crypto/hd"
"github.com/Finschia/finschia-sdk/crypto/keyring"
sdk "github.com/Finschia/finschia-sdk/types"

"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/Finschia/ostracon/libs/log"

"github.com/Finschia/finschia-sdk/client"
"github.com/Finschia/finschia-sdk/client/flags"
"github.com/Finschia/finschia-sdk/crypto/hd"
"github.com/Finschia/finschia-sdk/crypto/keyring"
"github.com/Finschia/finschia-sdk/server"
"github.com/Finschia/finschia-sdk/simapp"
simcmd "github.com/Finschia/finschia-sdk/simapp/simd/cmd"
"github.com/Finschia/finschia-sdk/testutil/testdata"
sdk "github.com/Finschia/finschia-sdk/types"
"github.com/Finschia/finschia-sdk/types/module"
"github.com/Finschia/finschia-sdk/x/genutil"
genutiltest "github.com/Finschia/finschia-sdk/x/genutil/client/testutil"
"github.com/Finschia/ostracon/libs/log"
)

var testMbm = module.NewBasicManager(genutil.AppModuleBasic{})
Expand Down
9 changes: 4 additions & 5 deletions cmd/fnsad/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ import (
"github.com/spf13/viper"
dbm "github.com/tendermint/tm-db"

ostcli "github.com/Finschia/ostracon/libs/cli"
"github.com/Finschia/ostracon/libs/log"
"github.com/Finschia/wasmd/x/wasm"
wasmkeeper "github.com/Finschia/wasmd/x/wasm/keeper"

"github.com/Finschia/finschia-sdk/baseapp"
"github.com/Finschia/finschia-sdk/client"
"github.com/Finschia/finschia-sdk/client/config"
Expand All @@ -38,6 +33,10 @@ import (
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
"github.com/Finschia/finschia-sdk/x/crisis"
genutilcli "github.com/Finschia/finschia-sdk/x/genutil/client/cli"
ostcli "github.com/Finschia/ostracon/libs/cli"
"github.com/Finschia/ostracon/libs/log"
"github.com/Finschia/wasmd/x/wasm"
wasmkeeper "github.com/Finschia/wasmd/x/wasm/keeper"

"github.com/Finschia/finschia/app"
"github.com/Finschia/finschia/app/params"
Expand Down
3 changes: 1 addition & 2 deletions cmd/fnsad/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

"github.com/Finschia/ostracon/libs/log"

"github.com/Finschia/finschia-sdk/client/flags"
"github.com/Finschia/finschia-sdk/server"
"github.com/Finschia/finschia-sdk/store/types"
"github.com/Finschia/ostracon/libs/log"
)

func TestNewApp(t *testing.T) {
Expand Down
11 changes: 5 additions & 6 deletions cmd/fnsad/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ import (

"github.com/spf13/cobra"

ostconfig "github.com/Finschia/ostracon/config"
ostos "github.com/Finschia/ostracon/libs/os"
ostrand "github.com/Finschia/ostracon/libs/rand"
"github.com/Finschia/ostracon/types"
osttime "github.com/Finschia/ostracon/types/time"

"github.com/Finschia/finschia-sdk/client"
"github.com/Finschia/finschia-sdk/client/flags"
"github.com/Finschia/finschia-sdk/client/tx"
Expand All @@ -34,6 +28,11 @@ import (
"github.com/Finschia/finschia-sdk/x/genutil"
genutiltypes "github.com/Finschia/finschia-sdk/x/genutil/types"
stakingtypes "github.com/Finschia/finschia-sdk/x/staking/types"
ostconfig "github.com/Finschia/ostracon/config"
ostos "github.com/Finschia/ostracon/libs/os"
ostrand "github.com/Finschia/ostracon/libs/rand"
"github.com/Finschia/ostracon/types"
osttime "github.com/Finschia/ostracon/types/time"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions cmd/fnsad/cmd/testnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ import (
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/Finschia/ostracon/libs/log"

"github.com/Finschia/finschia-sdk/client"
"github.com/Finschia/finschia-sdk/client/flags"
"github.com/Finschia/finschia-sdk/server"
banktypes "github.com/Finschia/finschia-sdk/x/bank/types"
genutiltest "github.com/Finschia/finschia-sdk/x/genutil/client/testutil"
genutiltypes "github.com/Finschia/finschia-sdk/x/genutil/types"
"github.com/Finschia/ostracon/libs/log"

"github.com/Finschia/finschia/app"
)
Expand Down

0 comments on commit 8617ed1

Please sign in to comment.