Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
run make format
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 14, 2023
1 parent a24c7c7 commit 3ac4f0e
Show file tree
Hide file tree
Showing 39 changed files with 55 additions and 16 deletions.
1 change: 1 addition & 0 deletions abci/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
)
Expand Down
3 changes: 2 additions & 1 deletion abci/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"

"github.com/skip-mev/block-sdk/abci"
"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/stretchr/testify/suite"
)

type ProposalsTestSuite struct {
Expand Down
1 change: 1 addition & 0 deletions abci/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"

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

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
"github.com/skip-mev/block-sdk/block/proposals/types"
Expand Down
1 change: 1 addition & 0 deletions abci/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"

tmprototypes "github.com/cometbft/cometbft/proto/tendermint/types"

"github.com/skip-mev/block-sdk/abci"
signeradaptors "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter"
"github.com/skip-mev/block-sdk/block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
"github.com/cosmos/cosmos-sdk/client"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/stretchr/testify/suite"

signer_extraction "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter"
testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/stretchr/testify/suite"
)

type SignerExtractionAdapterTestSuite struct {
Expand Down
1 change: 1 addition & 0 deletions block/base/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package base

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

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
"github.com/skip-mev/block-sdk/block/utils"
Expand Down
1 change: 1 addition & 0 deletions block/base/lane.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"cosmossdk.io/math"
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/block"
)

Expand Down
1 change: 1 addition & 0 deletions block/base/priority_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

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

signer_extraction "github.com/skip-mev/block-sdk/adapters/signer_extraction_adapter"
)

Expand Down
1 change: 1 addition & 0 deletions block/lane.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool"

"github.com/skip-mev/block-sdk/block/proposals"
)

Expand Down
3 changes: 2 additions & 1 deletion block/mocks/lane.go

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

3 changes: 2 additions & 1 deletion block/mocks/lane_mempool.go

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

1 change: 1 addition & 0 deletions block/proposals/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"cosmossdk.io/math"
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/block/proposals/types"
)

Expand Down
3 changes: 2 additions & 1 deletion block/proposals/proposals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (
"cosmossdk.io/math"
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

"github.com/skip-mev/block-sdk/block/mocks"
"github.com/skip-mev/block-sdk/block/proposals"
"github.com/skip-mev/block-sdk/block/proposals/types"
"github.com/skip-mev/block-sdk/block/utils"
"github.com/skip-mev/block-sdk/testutils"
"github.com/stretchr/testify/require"
)

func TestUpdateProposal(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions block/proposals/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/block/utils"
)

Expand Down
1 change: 1 addition & 0 deletions block/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package block

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

"github.com/skip-mev/block-sdk/block/proposals"
)

Expand Down
3 changes: 2 additions & 1 deletion lanes/base/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"

testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/auction/types"
"github.com/stretchr/testify/suite"
)

type BaseTestSuite struct {
Expand Down
1 change: 1 addition & 0 deletions lanes/free/lane.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package free
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/staking/types"

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/base"
)
Expand Down
1 change: 1 addition & 0 deletions lanes/mev/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

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

"github.com/skip-mev/block-sdk/block/base"
"github.com/skip-mev/block-sdk/block/proposals"
"github.com/skip-mev/block-sdk/block/utils"
Expand Down
1 change: 1 addition & 0 deletions lanes/mev/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"cosmossdk.io/math"
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
"github.com/skip-mev/block-sdk/block/utils"
Expand Down
1 change: 1 addition & 0 deletions lanes/mev/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"

testutils "github.com/skip-mev/block-sdk/testutils"
)

Expand Down
1 change: 1 addition & 0 deletions lanes/mev/lane.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

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

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/base"
)
Expand Down
1 change: 1 addition & 0 deletions lanes/mev/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

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

"github.com/skip-mev/block-sdk/block/base"
)

Expand Down
3 changes: 2 additions & 1 deletion lanes/mev/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"testing"

banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/stretchr/testify/require"

"github.com/skip-mev/block-sdk/lanes/mev"
testutils "github.com/skip-mev/block-sdk/testutils"
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
"github.com/stretchr/testify/require"
)

func TestGetMsgAuctionBidFromTx_Valid(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions lanes/terminator/lane.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/cometbft/cometbft/libs/log"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool"

"github.com/skip-mev/block-sdk/block"
"github.com/skip-mev/block-sdk/block/proposals"
)
Expand Down
1 change: 1 addition & 0 deletions tests/app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/ante"

"github.com/skip-mev/block-sdk/block"
auctionante "github.com/skip-mev/block-sdk/x/auction/ante"
auctionkeeper "github.com/skip-mev/block-sdk/x/auction/keeper"
Expand Down
1 change: 1 addition & 0 deletions tests/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
"google.golang.org/protobuf/types/known/durationpb"

upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

auctionmodulev1 "github.com/skip-mev/block-sdk/api/sdk/auction/module/v1"
auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
)
Expand Down
5 changes: 3 additions & 2 deletions tests/app/testappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
"github.com/skip-mev/block-sdk/tests/app"
"github.com/skip-mev/block-sdk/tests/app/params"
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/skip-mev/block-sdk/tests/app"
"github.com/skip-mev/block-sdk/tests/app/params"
)

func NewRootCmd() *cobra.Command {
Expand Down
1 change: 1 addition & 0 deletions tests/app/testappd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/skip-mev/block-sdk/tests/app"
"github.com/skip-mev/block-sdk/tests/app/testappd/cmd"
)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/block_sdk_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"testing"

testutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/skip-mev/block-sdk/tests/integration"
"github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
ictestutil "github.com/strangelove-ventures/interchaintest/v7/testutil"
"github.com/stretchr/testify/suite"

"github.com/skip-mev/block-sdk/tests/integration"

auctiontypes "github.com/skip-mev/block-sdk/x/auction/types"
)

Expand Down
1 change: 1 addition & 0 deletions x/auction/ante/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

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

"github.com/skip-mev/block-sdk/x/auction/types"
)

Expand Down
3 changes: 2 additions & 1 deletion x/auction/keeper/auction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
mock "github.com/stretchr/testify/mock"

testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/auction/keeper"
"github.com/skip-mev/block-sdk/x/auction/types"
"github.com/skip-mev/block-sdk/x/auction/types/mocks"
mock "github.com/stretchr/testify/mock"
)

func (s *KeeperTestSuite) TestValidateAuctionBid() {
Expand Down
1 change: 1 addition & 0 deletions x/auction/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/skip-mev/block-sdk/x/auction/rewards"
"github.com/skip-mev/block-sdk/x/auction/types"
)
Expand Down
1 change: 1 addition & 0 deletions x/auction/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"

testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/auction/keeper"
"github.com/skip-mev/block-sdk/x/auction/types"
Expand Down
1 change: 1 addition & 0 deletions x/auction/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

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

testutils "github.com/skip-mev/block-sdk/testutils"
"github.com/skip-mev/block-sdk/x/auction/types"
)
Expand Down
3 changes: 2 additions & 1 deletion x/auction/types/mocks/account_keeper.go

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

3 changes: 2 additions & 1 deletion x/auction/types/mocks/bank_keeper.go

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

3 changes: 2 additions & 1 deletion x/auction/types/mocks/distribution_keeper.go

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

3 changes: 2 additions & 1 deletion x/auction/types/mocks/rewards_address_provider.go

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

3 changes: 2 additions & 1 deletion x/auction/types/mocks/staking_keeper.go

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

0 comments on commit 3ac4f0e

Please sign in to comment.