Refactor to move common libraries out of project

This commit is contained in:
Jae Kwon
2015-10-22 17:39:06 -07:00
parent 7c12c5aee3
commit c4ed55d801
277 changed files with 406 additions and 11304 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"time"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/merkle"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-merkle"
"github.com/tendermint/go-wire"
)
type Block struct {
+1 -1
View File
@@ -1,7 +1,7 @@
package types
import (
cfg "github.com/tendermint/tendermint/config"
cfg "github.com/tendermint/go-config"
)
var config cfg.Config = nil
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"time"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
)
// Functions to generate eventId strings
+1 -1
View File
@@ -1,7 +1,7 @@
package types
import (
"github.com/tendermint/tendermint/logger"
"github.com/tendermint/go-logger"
)
var log = logger.New("module", "types")
+4 -4
View File
@@ -7,11 +7,11 @@ import (
"io"
"sync"
"github.com/tendermint/tendermint/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160"
"code.google.com/p/go.crypto/ripemd160"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/merkle"
"github.com/tendermint/go-wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-merkle"
)
const (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
)
func TestBasicPartSet(t *testing.T) {
+4 -3
View File
@@ -1,3 +1,4 @@
package types
import (
@@ -10,10 +11,10 @@ import (
"sync"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
"github.com/tendermint/tendermint/Godeps/_workspace/src/github.com/tendermint/ed25519"
"github.com/tendermint/ed25519"
)
const (
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"io"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
)
var (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
_ "github.com/tendermint/tendermint/config/tendermint_test"
)
+3 -3
View File
@@ -5,12 +5,12 @@ import (
"errors"
"io"
"github.com/tendermint/tendermint/Godeps/_workspace/src/golang.org/x/crypto/ripemd160"
"golang.org/x/crypto/ripemd160"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
ptypes "github.com/tendermint/tendermint/permission/types"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
)
var (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
_ "github.com/tendermint/tendermint/config/tendermint_test"
ptypes "github.com/tendermint/tendermint/permission/types"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"io"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
)
// Persistent (mostly) static data for each Validator
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"strings"
"github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/merkle"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-merkle"
)
// ValidatorSet represent a set of *Validator at a given height.
+1 -1
View File
@@ -2,7 +2,7 @@ package types
import (
"github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
"bytes"
"strings"
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"io"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
)
var (
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"sync"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
"github.com/tendermint/go-wire"
)
// VoteSet helps collect signatures from validators at each height+round
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"bytes"
"sort"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/tendermint/common/test"
. "github.com/tendermint/go-common"
. "github.com/tendermint/go-common/test"
_ "github.com/tendermint/tendermint/config/tendermint_test"
"testing"