refactor!: migrate Cosmos SDK to CometBFT (#14897)

This commit is contained in:
Julien Robert
2023-02-05 14:51:33 +01:00
committed by GitHub
parent 6978710699
commit 41a3dfeced
391 changed files with 3405 additions and 2984 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package types
import (
abci "github.com/tendermint/tendermint/abci/types"
abci "github.com/cometbft/cometbft/abci/types"
)
// InitChainer initializes application state at genesis
+1 -1
View File
@@ -5,10 +5,10 @@ package types
import (
fmt "fmt"
types1 "github.com/cometbft/cometbft/abci/types"
types "github.com/cosmos/cosmos-sdk/codec/types"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
types1 "github.com/tendermint/tendermint/abci/types"
io "io"
math "math"
math_bits "math/bits"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"sort"
"github.com/tendermint/tendermint/crypto"
"github.com/cometbft/cometbft/crypto"
"github.com/cosmos/cosmos-sdk/internal/conv"
"github.com/cosmos/cosmos-sdk/types/errors"
+1 -1
View File
@@ -4,9 +4,9 @@ import (
"crypto/sha256"
"testing"
"github.com/cometbft/cometbft/crypto/tmhash"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"github.com/tendermint/tendermint/crypto/tmhash"
)
func TestAddressSuite(t *testing.T) {
+4 -4
View File
@@ -4,11 +4,11 @@ import (
"context"
"time"
abci "github.com/cometbft/cometbft/abci/types"
tmbytes "github.com/cometbft/cometbft/libs/bytes"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/cosmos/gogoproto/proto"
abci "github.com/tendermint/tendermint/abci/types"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"cosmossdk.io/store/gaskv"
storetypes "cosmossdk.io/store/types"
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"testing"
"time"
abci "github.com/cometbft/cometbft/abci/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/suite"
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
storetypes "cosmossdk.io/store/types"
+1 -1
View File
@@ -1,7 +1,7 @@
package errors
import (
abci "github.com/tendermint/tendermint/abci/types"
abci "github.com/cometbft/cometbft/abci/types"
)
// ResponseCheckTxWithEvents returns an ABCI ResponseCheckTx object with fields filled in
+1 -1
View File
@@ -9,9 +9,9 @@ import (
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cosmos/gogoproto/jsonpb"
proto "github.com/cosmos/gogoproto/proto"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/cosmos/cosmos-sdk/codec"
)
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/stretchr/testify/suite"
abci "github.com/tendermint/tendermint/abci/types"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
testdata "github.com/cosmos/cosmos-sdk/testutil/testdata"
+2 -2
View File
@@ -5,10 +5,10 @@ import (
"math/rand"
"testing"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
+2 -2
View File
@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/mempool"
+2 -2
View File
@@ -5,13 +5,13 @@ import (
"pgregory.net/rapid"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
mempool "github.com/cosmos/cosmos-sdk/types/mempool"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
)
var (
+2 -2
View File
@@ -5,9 +5,9 @@ import (
"math/rand"
"testing"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/mempool"
+1 -1
View File
@@ -5,9 +5,9 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/genesis"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
abci "github.com/tendermint/tendermint/abci/types"
storetypes "cosmossdk.io/store/types"
+1 -1
View File
@@ -36,9 +36,9 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/genesis"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
abci "github.com/tendermint/tendermint/abci/types"
"golang.org/x/exp/maps"
storetypes "cosmossdk.io/store/types"
+3 -3
View File
@@ -8,12 +8,12 @@ import (
"testing"
"cosmossdk.io/core/appmodule"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/golang/mock/gomock"
"github.com/spf13/cobra"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
+1 -1
View File
@@ -6,8 +6,8 @@ import (
"testing"
"cosmossdk.io/math"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/suite"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
"cosmossdk.io/store/prefix"
+2 -2
View File
@@ -6,9 +6,9 @@ import (
"math"
"strings"
abci "github.com/cometbft/cometbft/abci/types"
coretypes "github.com/cometbft/cometbft/rpc/core/types"
"github.com/cosmos/gogoproto/proto"
abci "github.com/tendermint/tendermint/abci/types"
coretypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
+3 -3
View File
@@ -6,12 +6,12 @@ import (
"strings"
"testing"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/bytes"
coretypes "github.com/cometbft/cometbft/rpc/core/types"
"github.com/golang/protobuf/proto" //nolint:staticcheck // grpc-gateway uses deprecated golang/protobuf
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/bytes"
coretypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
+1 -1
View File
@@ -6,11 +6,11 @@ package tx
import (
context "context"
fmt "fmt"
types1 "github.com/cometbft/cometbft/proto/tendermint/types"
types "github.com/cosmos/cosmos-sdk/types"
query "github.com/cosmos/cosmos-sdk/types/query"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
types1 "github.com/tendermint/tendermint/proto/tendermint/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
log "github.com/tendermint/tendermint/libs/log"
log "github.com/cometbft/cometbft/libs/log"
"github.com/cosmos/cosmos-sdk/types/kv"
)