Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hanna committed Sep 10, 2024
1 parent 91d4555 commit f7ce303
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 21 deletions.
2 changes: 1 addition & 1 deletion client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func ReadPersistentCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Cont
})))
}

grpcClient, err := grpc.Dial(grpcURI, dialOpts...) //nolint: staticcheck
grpcClient, err := grpc.Dial(grpcURI, dialOpts...)
if err != nil {
return Context{}, err
}
Expand Down
6 changes: 4 additions & 2 deletions client/v2/autocli/flag/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ package flag
import (
"context"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
cosmos_proto "github.com/cosmos/cosmos-proto"
"github.com/spf13/pflag"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

cosmos_proto "github.com/cosmos/cosmos-proto"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"

"github.com/atomone-hub/atomone/client/v2/internal/util"
)

Expand Down
3 changes: 2 additions & 1 deletion client/v2/autocli/flag/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package flag
import (
"context"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
"github.com/spf13/pflag"
"google.golang.org/protobuf/reflect/protoreflect"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"

"github.com/atomone-hub/atomone/client/v2/internal/util"
)

Expand Down
3 changes: 2 additions & 1 deletion client/v2/autocli/flag/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"fmt"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"google.golang.org/protobuf/reflect/protoreflect"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
)

func (b *Builder) AddMessageFlags(ctx context.Context, flagSet *pflag.FlagSet, messageType protoreflect.MessageType, commandOptions *autocliv1.RpcCommandOptions) (*MessageBinder, error) {
Expand Down
3 changes: 2 additions & 1 deletion client/v2/autocli/interface.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package autocli

import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
"github.com/spf13/cobra"

autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"

"github.com/atomone-hub/atomone/core/appmodule"
)

Expand Down
1 change: 1 addition & 0 deletions client/v2/internal/testpb/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions cmd/atomoned/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ import (
"github.com/cometbft/cometbft/libs/log"
tmtypes "github.com/cometbft/cometbft/types"

rosettaCmd "github.com/atomone-hub/atomone/tools/rosetta/cmd"
"github.com/cosmos/cosmos-sdk/snapshots"
snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"

atomone "github.com/atomone-hub/atomone/app"
"github.com/atomone-hub/atomone/app/params"
"github.com/atomone-hub/atomone/baseapp"
"github.com/atomone-hub/atomone/client"
"github.com/atomone-hub/atomone/client/config"
Expand All @@ -31,17 +34,13 @@ import (
serverconfig "github.com/atomone-hub/atomone/server/config"
servertypes "github.com/atomone-hub/atomone/server/types"
"github.com/atomone-hub/atomone/store"
rosettaCmd "github.com/atomone-hub/atomone/tools/rosetta/cmd"
sdk "github.com/atomone-hub/atomone/types"
authcmd "github.com/atomone-hub/atomone/x/auth/client/cli"
"github.com/atomone-hub/atomone/x/auth/types"
banktypes "github.com/atomone-hub/atomone/x/bank/types"
"github.com/atomone-hub/atomone/x/crisis"
genutilcli "github.com/atomone-hub/atomone/x/genutil/client/cli"
"github.com/cosmos/cosmos-sdk/snapshots"
snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"

atomone "github.com/atomone-hub/atomone/app"
"github.com/atomone-hub/atomone/app/params"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand Down
2 changes: 1 addition & 1 deletion cmd/atomoned/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
tmtime "github.com/cometbft/cometbft/types/time"

"cosmossdk.io/math"
"github.com/atomone-hub/atomone/simapp"

"github.com/atomone-hub/atomone/client"
"github.com/atomone-hub/atomone/client/flags"
Expand All @@ -27,6 +26,7 @@ import (
cryptotypes "github.com/atomone-hub/atomone/crypto/types"
"github.com/atomone-hub/atomone/server"
srvconfig "github.com/atomone-hub/atomone/server/config"
"github.com/atomone-hub/atomone/simapp"
"github.com/atomone-hub/atomone/testutil"
"github.com/atomone-hub/atomone/testutil/network"
sdk "github.com/atomone-hub/atomone/types"
Expand Down
5 changes: 2 additions & 3 deletions cmd/atomoned/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package main
import (
"os"

"github.com/atomone-hub/atomone/server"
svrcmd "github.com/atomone-hub/atomone/server/cmd"

app "github.com/atomone-hub/atomone/app"
"github.com/atomone-hub/atomone/cmd/atomoned/cmd"
"github.com/atomone-hub/atomone/server"
svrcmd "github.com/atomone-hub/atomone/server/cmd"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion codec/amino.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"fmt"
"io"

tmtypes "github.com/cometbft/cometbft/types"
amino "github.com/tendermint/go-amino"

tmtypes "github.com/cometbft/cometbft/types"

"github.com/atomone-hub/atomone/codec/types"
)

Expand Down
3 changes: 2 additions & 1 deletion codec/codec.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package codec

import (
"github.com/cosmos/gogoproto/proto"
"google.golang.org/grpc/encoding"

"github.com/cosmos/gogoproto/proto"

"github.com/atomone-hub/atomone/codec/types"
)

Expand Down
4 changes: 2 additions & 2 deletions codec/types/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"reflect"
"runtime/debug"

amino "github.com/tendermint/go-amino"

"github.com/cosmos/gogoproto/jsonpb"
"github.com/cosmos/gogoproto/proto"

amino "github.com/tendermint/go-amino"
)

type anyCompat struct {
Expand Down
3 changes: 2 additions & 1 deletion codec/yaml.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package codec

import (
"github.com/cosmos/gogoproto/proto"
"sigs.k8s.io/yaml"

"github.com/cosmos/gogoproto/proto"
)

// MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods
Expand Down
1 change: 1 addition & 0 deletions core/internal/testpb/test.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f7ce303

Please sign in to comment.