Skip to content

Commit

Permalink
use sample
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Dec 5, 2023
1 parent 76229f7 commit 55e22f0
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 243 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require (
github.com/golang/protobuf v1.5.3
github.com/golangci/golangci-lint v1.55.3-0.20231203192459-84442f26446b
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/skip-mev/chaintestutil v0.0.0-00010101000000-000000000000
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.17.0
github.com/stretchr/testify v1.8.4
Expand All @@ -26,6 +27,7 @@ require (
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.31.0
mvdan.cc/gofumpt v0.5.0
pgregory.net/rapid v1.1.0
)

require (
Expand Down Expand Up @@ -316,7 +318,6 @@ require (
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect
nhooyr.io/websocket v1.8.6 // indirect
pgregory.net/rapid v1.1.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

Expand All @@ -328,3 +329,5 @@ replace (
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
golang.org/x/exp => golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2
)

replace github.com/skip-mev/chaintestutil => ../chaintestutil
3 changes: 1 addition & 2 deletions tests/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
"testing"
"time"

"github.com/skip-mev/feemarket/testutils/sample"

rpctypes "github.com/cometbft/cometbft/rpc/core/types"
comettypes "github.com/cometbft/cometbft/types"
"github.com/cosmos/cosmos-sdk/client"
Expand All @@ -27,6 +25,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/skip-mev/chaintestutil/sample"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
Expand Down
13 changes: 10 additions & 3 deletions testutils/encoding/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@ package encoding

import (
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/std"
"github.com/cosmos/cosmos-sdk/x/auth/tx"
"github.com/skip-mev/chaintestutil/sample"

appparams "github.com/skip-mev/feemarket/tests/app/params"
"github.com/skip-mev/feemarket/testutils/sample"
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
)

// MakeTestEncodingConfig creates a test EncodingConfig for a test configuration.
// MakeTestEncodingConfig creates a test EncodingConfig for a test configuration.
func MakeTestEncodingConfig() appparams.EncodingConfig {
amino := codec.NewLegacyAmino()
interfaceRegistry := sample.InterfaceRegistry()

addFeeMarket := func(ir codectypes.InterfaceRegistry) {
feemarkettypes.RegisterInterfaces(ir)
}

interfaceRegistry := sample.InterfaceRegistry(addFeeMarket)
cdc := codec.NewProtoCodec(interfaceRegistry)
txCfg := tx.NewTxConfig(cdc, tx.DefaultSignModes)

Expand Down
2 changes: 1 addition & 1 deletion testutils/keeper/bank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/skip-mev/chaintestutil/sample"
"github.com/stretchr/testify/require"

testkeeper "github.com/skip-mev/feemarket/testutils/keeper"
"github.com/skip-mev/feemarket/testutils/sample"
)

func TestTestKeepers_MintToAccount(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion testutils/keeper/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/skip-mev/chaintestutil/sample"

"github.com/skip-mev/feemarket/testutils/sample"
feemarketkeeper "github.com/skip-mev/feemarket/x/feemarket/keeper"
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
)
Expand Down
2 changes: 1 addition & 1 deletion testutils/networksuite/networksuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

"github.com/skip-mev/chaintestutil/sample"
"github.com/skip-mev/feemarket/testutils/network"
"github.com/skip-mev/feemarket/testutils/sample"
feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types"
)

Expand Down
234 changes: 0 additions & 234 deletions testutils/sample/sample.go

This file was deleted.

0 comments on commit 55e22f0

Please sign in to comment.