chore: format (#182)

* format abci

* fmt all
This commit is contained in:
Alex Johnson 2023-11-02 14:14:22 -04:00 committed by GitHub
parent 574562ca0e
commit 8681298dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 30 additions and 10 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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 {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -214,7 +214,8 @@ func (_m *Lane) SetIgnoreList(ignoreList []block.Lane) {
func NewLane(t interface {
mock.TestingT
Cleanup(func())
}) *Lane {
},
) *Lane {
mock := &Lane{}
mock.Mock.Test(t)

View File

@ -107,7 +107,8 @@ func (_m *LaneMempool) Select(_a0 context.Context, _a1 [][]byte) mempool.Iterato
func NewLaneMempool(t interface {
mock.TestingT
Cleanup(func())
}) *LaneMempool {
},
) *LaneMempool {
mock := &LaneMempool{}
mock.Mock.Test(t)

View File

@ -4,6 +4,7 @@ import (
"cosmossdk.io/log"
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/skip-mev/block-sdk/block/proposals/types"
)

View File

@ -7,12 +7,13 @@ import (
"cosmossdk.io/log"
"cosmossdk.io/math"
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) {

View File

@ -6,6 +6,7 @@ import (
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/skip-mev/block-sdk/block/utils"
)

View File

@ -2,6 +2,7 @@ package block
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/skip-mev/block-sdk/block/proposals"
)

View File

@ -4,6 +4,7 @@ import (
log "cosmossdk.io/log"
"cosmossdk.io/math"
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"

View File

@ -14,6 +14,7 @@ import (
"cosmossdk.io/depinject"
"cosmossdk.io/log"
confixcmd "cosmossdk.io/tools/confix/cmd"
"github.com/skip-mev/block-sdk/tests/app"
"github.com/cosmos/cosmos-sdk/client"

View File

@ -5,6 +5,7 @@ import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/skip-mev/block-sdk/x/auction/types"
)

View File

@ -8,11 +8,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() {

View File

@ -33,7 +33,8 @@ func (_m *AccountKeeper) GetModuleAddress(moduleName string) types.AccAddress {
func NewAccountKeeper(t interface {
mock.TestingT
Cleanup(func())
}) *AccountKeeper {
},
) *AccountKeeper {
mock := &AccountKeeper{}
mock.Mock.Test(t)

View File

@ -47,7 +47,8 @@ func (_m *BankKeeper) SendCoins(ctx context.Context, fromAddr types.AccAddress,
func NewBankKeeper(t interface {
mock.TestingT
Cleanup(func())
}) *BankKeeper {
},
) *BankKeeper {
mock := &BankKeeper{}
mock.Mock.Test(t)

View File

@ -45,7 +45,8 @@ func (_m *DistributionKeeper) GetPreviousProposerConsAddr(ctx context.Context) (
func NewDistributionKeeper(t interface {
mock.TestingT
Cleanup(func())
}) *DistributionKeeper {
},
) *DistributionKeeper {
mock := &DistributionKeeper{}
mock.Mock.Test(t)

View File

@ -43,7 +43,8 @@ func (_m *RewardsAddressProvider) GetRewardsAddress(context types.Context) (type
func NewRewardsAddressProvider(t interface {
mock.TestingT
Cleanup(func())
}) *RewardsAddressProvider {
},
) *RewardsAddressProvider {
mock := &RewardsAddressProvider{}
mock.Mock.Test(t)

View File

@ -45,7 +45,8 @@ func (_m *StakingKeeper) GetValidatorByConsAddr(_a0 context.Context, _a1 types.C
func NewStakingKeeper(t interface {
mock.TestingT
Cleanup(func())
}) *StakingKeeper {
},
) *StakingKeeper {
mock := &StakingKeeper{}
mock.Mock.Test(t)