Skip to content

Commit

Permalink
update to tm v0.32.2 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bluele committed Aug 2, 2019
1 parent 2070ab1 commit 3468376
Show file tree
Hide file tree
Showing 27 changed files with 73 additions and 48 deletions.
2 changes: 1 addition & 1 deletion cmd/hmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/spf13/viper"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/cli"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/types"
db "github.com/tendermint/tm-db"

"github.com/bluele/hypermint/pkg/app"
"github.com/bluele/hypermint/pkg/app/cmd"
Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.12

replace (
github.com/go-interpreter/wagon v0.0.0 => github.com/perlin-network/wagon v0.3.1-0.20180825141017-f8cb99b55a39
github.com/tendermint/tendermint v0.32.2-rc1 => github.com/bluele/tendermint v0.32.2-rc1
github.com/tendermint/tendermint v0.32.2-rc2 => github.com/bluele/tendermint v0.32.2-rc2
)

require (
Expand All @@ -17,26 +17,25 @@ require (
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/ethereum/go-ethereum v1.8.21
github.com/fortytw2/leaktest v1.3.0 // indirect
github.com/golang/protobuf v1.3.0
github.com/golang/protobuf v1.3.2
github.com/google/uuid v1.0.0 // indirect
github.com/kr/pretty v0.1.0
github.com/mattn/go-isatty v0.0.4
github.com/mattn/go-shellwords v1.0.5
github.com/pborman/uuid v0.0.0-20180906182336-adf5a7427709 // indirect
github.com/perlin-network/life v0.0.0-20181106205055-98065d82a6ee
github.com/pkg/errors v0.8.0
github.com/pkg/errors v0.8.1
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/spf13/cobra v0.0.1
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.0.0
github.com/stretchr/testify v1.3.0
github.com/tendermint/go-amino v0.14.1
github.com/tendermint/iavl v0.12.3-0.20190712145259-c834d3192b52
github.com/tendermint/tendermint v0.32.2-rc1
github.com/tendermint/iavl v0.12.4
github.com/tendermint/tendermint v0.32.2-rc2
github.com/tendermint/tm-db v0.1.1
github.com/tyler-smith/go-bip39 v0.3.6
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f
golang.org/x/net v0.0.0-20190514140710-3ec191127204 // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
golang.org/x/sys v0.0.0-20190516110030-61b9204099cb // indirect
golang.org/x/text v0.3.2 // indirect
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
Expand Down
56 changes: 41 additions & 15 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/abci/baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/tmhash"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"

"github.com/bluele/hypermint/pkg/abci/codec"
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/require"

abci "github.com/tendermint/tendermint/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"

"github.com/bluele/hypermint/pkg/abci/codec"
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/bluele/hypermint/pkg/abci/store"
sdk "github.com/bluele/hypermint/pkg/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

// File for storing in-package BaseApp optional functions,
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/cachekvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/require"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

func newCacheKVStore() CacheKVStore {
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/dbstoreadapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"

sdk "github.com/bluele/hypermint/pkg/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

// Wrapper type for dbm.Db with implementation of KVStore
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/gaskvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package store
import (
"testing"

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

sdk "github.com/bluele/hypermint/pkg/abci/types"

Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/iavlstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/merkle"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"

sdk "github.com/bluele/hypermint/pkg/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/iavlstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/tendermint/iavl"
abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"

sdk "github.com/bluele/hypermint/pkg/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/memiterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"

cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

// Iterates over iterKVCache items.
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/multistoreproof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/bluele/hypermint/pkg/abci/types"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

func TestVerifyIAVLStoreQueryProof(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/abci/store/prefixstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (iter *prefixIterator) Close() {
iter.iter.Close()
}

// copied from github.com/tendermint/tendermint/libs/db/prefix_db.go
// copied from github.com/tendermint/tm-db/prefix_db.go
func stripPrefix(key []byte, prefix []byte) []byte {
if len(key) < len(prefix) || !bytes.Equal(key[:len(prefix)], prefix) {
panic("should not happen")
Expand All @@ -189,7 +189,7 @@ func cpIncr(bz []byte) []byte {
return sdk.PrefixEndBytes(bz)
}

// copied from github.com/tendermint/tendermint/libs/db/util.go
// copied from github.com/tendermint/tm-db/util.go
func cpDecr(bz []byte) (ret []byte) {
if len(bz) == 0 {
panic("cpDecr expects non-zero bz length")
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/prefixstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/tendermint/iavl"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"

sdk "github.com/bluele/hypermint/pkg/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/rootmultistore.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/merkle"
"github.com/tendermint/tendermint/crypto/tmhash"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"

sdk "github.com/bluele/hypermint/pkg/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/rootmultistore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/merkle"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"

sdk "github.com/bluele/hypermint/pkg/abci/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/tracekvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/require"

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

var kvPairs = []KVPair{
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/store/transientstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package store

import (
sdk "github.com/bluele/hypermint/pkg/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

var _ KVStore = (*transientStore)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/types/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"

"github.com/bluele/hypermint/pkg/abci/store"
Expand Down
2 changes: 1 addition & 1 deletion pkg/abci/types/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

abci "github.com/tendermint/tendermint/abci/types"
cmn "github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

// NOTE: These are implemented in cosmos-sdk/store.
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
amino "github.com/tendermint/go-amino"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/types"
tmtypes "github.com/tendermint/tendermint/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/cmd/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
abci "github.com/tendermint/tendermint/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"

abci "github.com/tendermint/tendermint/abci/types"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"
tmtypes "github.com/tendermint/tendermint/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package testutil
import (
"github.com/bluele/hypermint/pkg/abci/store"
"github.com/bluele/hypermint/pkg/abci/types"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tm-db"
)

func GetTestCommitMultiStore(key types.StoreKey) (types.CommitMultiStore, error) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/contract/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/stretchr/testify/suite"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/common"
dbm "github.com/tendermint/tendermint/libs/db"
dbm "github.com/tendermint/tm-db"
bip39 "github.com/tyler-smith/go-bip39"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/helper/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/tendermint/tendermint/crypto/secp256k1"
tmcli "github.com/tendermint/tendermint/libs/cli"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/db"
"github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/node"
"github.com/tendermint/tendermint/rpc/client"
Expand Down

0 comments on commit 3468376

Please sign in to comment.