Skip to content

Commit

Permalink
running gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Jan 19, 2021
1 parent 4423dbb commit 3235a74
Show file tree
Hide file tree
Showing 161 changed files with 176 additions and 178 deletions.
2 changes: 1 addition & 1 deletion baseapp/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/require"
abci "github.com/lazyledger/lazyledger-core/abci/types"
tmprototypes "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion baseapp/grpcrouter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"testing"

"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/libs/log"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down
2 changes: 1 addition & 1 deletion baseapp/msg_service_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"os"
"testing"

"github.com/stretchr/testify/require"
abci "github.com/lazyledger/lazyledger-core/abci/types"
"github.com/lazyledger/lazyledger-core/libs/log"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down
2 changes: 1 addition & 1 deletion baseapp/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package baseapp_test
import (
"testing"

"github.com/stretchr/testify/require"
abci "github.com/lazyledger/lazyledger-core/abci/types"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/baseapp"
)
Expand Down
2 changes: 1 addition & 1 deletion client/broadcast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/crypto/tmhash"
"github.com/lazyledger/lazyledger-core/mempool"
"github.com/lazyledger/lazyledger-core/rpc/client/mock"
ctypes "github.com/lazyledger/lazyledger-core/rpc/core/types"
tmtypes "github.com/lazyledger/lazyledger-core/types"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/client/flags"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand Down
4 changes: 2 additions & 2 deletions client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"
"strings"

"github.com/lazyledger/lazyledger-core/libs/cli"
rpchttp "github.com/lazyledger/lazyledger-core/rpc/client/http"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/lazyledger/lazyledger-core/libs/cli"
rpchttp "github.com/lazyledger/lazyledger-core/rpc/client/http"

"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
Expand Down
2 changes: 1 addition & 1 deletion client/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"gopkg.in/yaml.v2"

"github.com/gogo/protobuf/proto"
"github.com/pkg/errors"
rpcclient "github.com/lazyledger/lazyledger-core/rpc/client"
"github.com/pkg/errors"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand Down
6 changes: 2 additions & 4 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strconv"

"github.com/spf13/cobra"
tmcli "github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/crypto/keyring"
)
Expand Down
2 changes: 1 addition & 1 deletion client/grpc/reflection/reflection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/stretchr/testify/suite"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/stretchr/testify/suite"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/grpc/reflection"
Expand Down
2 changes: 1 addition & 1 deletion client/keys/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sort"

bip39 "github.com/cosmos/go-bip39"
"github.com/spf13/cobra"
"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion client/keys/list.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keys

import (
"github.com/spf13/cobra"
"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
)
Expand Down
2 changes: 1 addition & 1 deletion client/keys/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"testing"

"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/otiai10/copy"
"github.com/stretchr/testify/assert"
"github.com/lazyledger/lazyledger-core/libs/cli"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion client/keys/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"io"
"strings"

"github.com/spf13/cobra"
"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"
yaml "gopkg.in/yaml.v2"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion client/keys/root.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package keys

import (
"github.com/spf13/cobra"
"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client/flags"
)
Expand Down
2 changes: 1 addition & 1 deletion client/keys/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/spf13/cobra"
"github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
Expand Down
2 changes: 1 addition & 1 deletion client/rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/stretchr/testify/suite"
ctypes "github.com/lazyledger/lazyledger-core/rpc/core/types"
"github.com/stretchr/testify/suite"

"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/codec/legacy"
Expand Down
2 changes: 1 addition & 1 deletion codec/amino.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"io"

amino "github.com/tendermint/go-amino"
tmtypes "github.com/lazyledger/lazyledger-core/types"
amino "github.com/tendermint/go-amino"

"github.com/cosmos/cosmos-sdk/codec/types"
)
Expand Down
2 changes: 1 addition & 1 deletion crypto/armor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"encoding/hex"
"fmt"

"github.com/tendermint/crypto/bcrypt"
"github.com/lazyledger/lazyledger-core/crypto"
"github.com/lazyledger/lazyledger-core/crypto/armor"
"github.com/lazyledger/lazyledger-core/crypto/xsalsa20symmetric"
"github.com/tendermint/crypto/bcrypt"

"github.com/cosmos/cosmos-sdk/codec/legacy"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down
4 changes: 2 additions & 2 deletions crypto/armor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"io"
"testing"

"github.com/stretchr/testify/require"
"github.com/tendermint/crypto/bcrypt"
tmcrypto "github.com/lazyledger/lazyledger-core/crypto"
"github.com/lazyledger/lazyledger-core/crypto/armor"
"github.com/lazyledger/lazyledger-core/crypto/xsalsa20symmetric"
"github.com/stretchr/testify/require"
"github.com/tendermint/crypto/bcrypt"

"github.com/cosmos/cosmos-sdk/codec/legacy"
"github.com/cosmos/cosmos-sdk/crypto"
Expand Down
2 changes: 1 addition & 1 deletion crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (

"github.com/99designs/keyring"
bip39 "github.com/cosmos/go-bip39"
tmcrypto "github.com/lazyledger/lazyledger-core/crypto"
"github.com/pkg/errors"
"github.com/tendermint/crypto/bcrypt"
tmcrypto "github.com/lazyledger/lazyledger-core/crypto"

"github.com/cosmos/cosmos-sdk/client/input"
"github.com/cosmos/cosmos-sdk/codec/legacy"
Expand Down
2 changes: 1 addition & 1 deletion crypto/keyring/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"strings"

"github.com/pkg/errors"
tmos "github.com/lazyledger/lazyledger-core/libs/os"
"github.com/pkg/errors"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/crypto"
Expand Down
4 changes: 2 additions & 2 deletions crypto/keys/ed25519/ed25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"encoding/base64"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/crypto"
tmed25519 "github.com/lazyledger/lazyledger-core/crypto/ed25519"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/codec"
ed25519 "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
Expand Down
4 changes: 2 additions & 2 deletions crypto/keys/secp256k1/secp256k1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

btcSecp256k1 "github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcutil/base58"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/crypto"
tmsecp256k1 "github.com/lazyledger/lazyledger-core/crypto/secp256k1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
Expand Down
2 changes: 1 addition & 1 deletion crypto/ledger/ledger_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/btcsuite/btcd/btcec"
"github.com/pkg/errors"

secp256k1 "github.com/tendermint/btcd/btcec"
"github.com/lazyledger/lazyledger-core/crypto"
secp256k1 "github.com/tendermint/btcd/btcec"

"github.com/cosmos/go-bip39"

Expand Down
4 changes: 2 additions & 2 deletions server/cmd/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package cmd
import (
"context"

"github.com/rs/zerolog"
"github.com/spf13/cobra"
tmcfg "github.com/lazyledger/lazyledger-core/config"
tmcli "github.com/lazyledger/lazyledger-core/libs/cli"
"github.com/rs/zerolog"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion server/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"io/ioutil"
"os"

"github.com/spf13/cobra"
tmjson "github.com/lazyledger/lazyledger-core/libs/json"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
tmtypes "github.com/lazyledger/lazyledger-core/types"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server/types"
Expand Down
2 changes: 1 addition & 1 deletion server/logger.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package server

import (
"github.com/rs/zerolog"
tmlog "github.com/lazyledger/lazyledger-core/libs/log"
"github.com/rs/zerolog"
)

var _ tmlog.Logger = (*ZeroLogWrapper)(nil)
Expand Down
2 changes: 1 addition & 1 deletion server/mock/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package mock
import (
"testing"

"github.com/stretchr/testify/require"
abci "github.com/lazyledger/lazyledger-core/abci/types"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/lazyledger/lazyledger-core/types"
"github.com/stretchr/testify/require"
)

// TestInitApp makes sure we can initialize this thing without an error
Expand Down
2 changes: 1 addition & 1 deletion server/types/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"io"

"github.com/gogo/protobuf/grpc"
"github.com/spf13/cobra"
abci "github.com/lazyledger/lazyledger-core/abci/types"
"github.com/lazyledger/lazyledger-core/libs/log"
tmtypes "github.com/lazyledger/lazyledger-core/types"
"github.com/spf13/cobra"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
4 changes: 2 additions & 2 deletions server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"syscall"
"time"

tmcfg "github.com/lazyledger/lazyledger-core/config"
tmlog "github.com/lazyledger/lazyledger-core/libs/log"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
tmcfg "github.com/lazyledger/lazyledger-core/config"
tmlog "github.com/lazyledger/lazyledger-core/libs/log"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
4 changes: 2 additions & 2 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"path/filepath"

"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"
"github.com/spf13/cast"
abci "github.com/lazyledger/lazyledger-core/abci/types"
tmjson "github.com/lazyledger/lazyledger-core/libs/json"
"github.com/lazyledger/lazyledger-core/libs/log"
tmos "github.com/lazyledger/lazyledger-core/libs/os"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/rakyll/statik/fs"
"github.com/spf13/cast"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down
2 changes: 1 addition & 1 deletion simapp/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"testing"

"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/libs/log"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

abci "github.com/lazyledger/lazyledger-core/abci/types"
Expand Down
2 changes: 1 addition & 1 deletion simapp/genesis_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/crypto"
"github.com/stretchr/testify/require"
)

func TestSimGenesisAccountValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion simapp/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"os"
"testing"

"github.com/stretchr/testify/require"
abci "github.com/lazyledger/lazyledger-core/abci/types"
"github.com/lazyledger/lazyledger-core/libs/log"
tmproto "github.com/lazyledger/lazyledger-core/proto/tendermint/types"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down
2 changes: 1 addition & 1 deletion simapp/simd/cmd/genaccounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"testing"

"github.com/lazyledger/lazyledger-core/libs/log"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"
"github.com/lazyledger/lazyledger-core/libs/log"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
Loading

0 comments on commit 3235a74

Please sign in to comment.