parent
574562ca0e
commit
8681298dbc
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -6,6 +6,7 @@ import (
|
||||
|
||||
"cosmossdk.io/math"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/block/utils"
|
||||
)
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ package block
|
||||
|
||||
import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/block/proposals"
|
||||
)
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/skip-mev/block-sdk/x/auction/types"
|
||||
)
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user