Skip to content

Commit

Permalink
Replace tendermint with cometbft
Browse files Browse the repository at this point in the history
  • Loading branch information
iKapitonau committed Feb 29, 2024
1 parent e585fe0 commit ce8841e
Show file tree
Hide file tree
Showing 62 changed files with 82 additions and 787 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ import (
"github.com/scrtlabs/SecretNetwork/x/compute"
reg "github.com/scrtlabs/SecretNetwork/x/registration"
"github.com/spf13/cast"
abci "github.com/tendermint/tendermint/abci/types"
tmjson "github.com/tendermint/tendermint/libs/json"
abci "github.com/cometbft/cometbft/abci/types"
tmjson "github.com/cometbft/cometbft/libs/json"
"cosmossdk.io/log"
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"
tmos "github.com/cometbft/cometbft/libs/os"
dbm "github.com/cometbft/cometbft-db"

// unnamed import of statik for swagger UI support
_ "github.com/scrtlabs/SecretNetwork/client/docs/statik"
Expand Down
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
)

func (app *SecretNetworkApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string,
Expand Down
4 changes: 2 additions & 2 deletions app/migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"
tmjson "github.com/tendermint/tendermint/libs/json"
tmtypes "github.com/tendermint/tendermint/types"
tmjson "github.com/cometbft/cometbft/libs/json"
tmtypes "github.com/cometbft/cometbft/types"

ibcxfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
host "github.com/cosmos/ibc-go/v8/modules/core/24-host"
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/scrtlabs/SecretNetwork/app/keepers"
abci "github.com/tendermint/tendermint/abci/types"
abci "github.com/cometbft/cometbft/abci/types"
)

// BaseAppParamManager defines an interrace that BaseApp is expected to fullfil
Expand Down
10 changes: 5 additions & 5 deletions cmd/secretd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"github.com/cosmos/go-bip39"
"github.com/pkg/errors"
"github.com/spf13/cobra"
tmconfig "github.com/tendermint/tendermint/config"
tmconfig "github.com/cometbft/cometbft/config"

Check failure on line 15 in cmd/secretd/init.go

View workflow job for this annotation

GitHub Actions / MacOS-ARM64-CLI

github.com/cometbft/cometbft@v0.38.4: replacement directory /home/ilya/secret/tendermint does not exist

"github.com/tendermint/tendermint/libs/cli"
tmos "github.com/tendermint/tendermint/libs/os"
tmrand "github.com/tendermint/tendermint/libs/rand"
"github.com/tendermint/tendermint/types"
"github.com/cometbft/cometbft/libs/cli"

Check failure on line 17 in cmd/secretd/init.go

View workflow job for this annotation

GitHub Actions / MacOS-ARM64-CLI

github.com/cometbft/cometbft@v0.38.4: replacement directory /home/ilya/secret/tendermint does not exist
tmos "github.com/cometbft/cometbft/libs/os"

Check failure on line 18 in cmd/secretd/init.go

View workflow job for this annotation

GitHub Actions / MacOS-ARM64-CLI

github.com/cometbft/cometbft@v0.38.4: replacement directory /home/ilya/secret/tendermint does not exist
tmrand "github.com/cometbft/cometbft/libs/rand"

Check failure on line 19 in cmd/secretd/init.go

View workflow job for this annotation

GitHub Actions / MacOS-ARM64-CLI

github.com/cometbft/cometbft@v0.38.4: replacement directory /home/ilya/secret/tendermint does not exist
"github.com/cometbft/cometbft/types"

Check failure on line 20 in cmd/secretd/init.go

View workflow job for this annotation

GitHub Actions / MacOS-ARM64-CLI

github.com/cometbft/cometbft@v0.38.4: replacement directory /home/ilya/secret/tendermint does not exist

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
8 changes: 4 additions & 4 deletions cmd/secretd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/viper"

//"github.com/tendermint/tendermint/libs/cli"
//"github.com/cometbft/cometbft/libs/cli"

"cosmossdk.io/store/snapshots"
"github.com/scrtlabs/SecretNetwork/app"

"github.com/spf13/cast"
"github.com/spf13/cobra"
tmcfg "github.com/tendermint/tendermint/config"
tmcli "github.com/tendermint/tendermint/libs/cli"
tmcfg "github.com/cometbft/cometbft/config"
tmcli "github.com/cometbft/cometbft/libs/cli"
"cosmossdk.io/log"
dbm "github.com/tendermint/tm-db"
dbm "github.com/cometbft/cometbft-db"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down
6 changes: 3 additions & 3 deletions go-cosmwasm/Cargo.lock

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

2 changes: 1 addition & 1 deletion go-cosmwasm/api/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"reflect"
"unsafe"

dbm "github.com/tendermint/tm-db"
dbm "github.com/cometbft/cometbft-db"

"github.com/scrtlabs/SecretNetwork/go-cosmwasm/types"
)
Expand Down
2 changes: 1 addition & 1 deletion go-cosmwasm/api/callbacks_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package api
// "reflect"
// "unsafe"
//
// dbm "github.com/tendermint/tm-db"
// dbm "github.com/cometbft/cometbft-db"
//
// "github.com/scrtlabs/SecretNetwork/go-cosmwasm/types"
//
Expand Down
2 changes: 1 addition & 1 deletion go-cosmwasm/api/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"sync"

dbm "github.com/tendermint/tm-db"
dbm "github.com/cometbft/cometbft-db"
)

// frame stores all Iterators for one contract
Expand Down
11 changes: 3 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ replace (
)

require (
// github.com/tendermint/tendermint v0.34.27
github.com/cometbft/cometbft v0.38.4 // indirect
github.com/cometbft/cometbft v0.38.4
github.com/cosmos/cosmos-sdk v0.50.3
github.com/cosmos/go-bip39 v1.0.0
// PFM: v4.1.0 + this fix https://github.com/cosmos/ibc-apps/pull/105
Expand All @@ -35,7 +34,6 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.1
github.com/stretchr/testify v1.8.4
// github.com/tendermint/tm-db v0.6.7
golang.org/x/crypto v0.18.0
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
gonum.org/v1/gonum v0.14.0
Expand All @@ -53,12 +51,12 @@ require (
cosmossdk.io/x/feegrant v0.1.0
cosmossdk.io/x/upgrade v0.1.1
github.com/cosmos/ibc-go/modules/capability v1.0.0
github.com/tendermint/tendermint v0.35.9
github.com/tendermint/tm-db v0.6.7
golang.org/x/text v0.14.0
google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f
)

require github.com/cometbft/cometbft-db v0.9.1

require (
cloud.google.com/go v0.110.10 // indirect
cloud.google.com/go/compute v1.23.3 // indirect
Expand All @@ -82,7 +80,6 @@ require (
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/bits-and-blooms/bitset v1.8.0 // indirect
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
Expand All @@ -94,13 +91,11 @@ require (
github.com/cockroachdb/pebble v0.0.0-20231102162011-844f0582c2eb // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/cometbft/cometbft-db v0.9.1 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-db v1.0.0 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/gogoproto v1.4.11 // indirect
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v1.0.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect
Expand Down
Loading

0 comments on commit ce8841e

Please sign in to comment.