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 -2
View File
@@ -1,3 +1,4 @@
package main
import (
@@ -10,9 +11,9 @@ import (
"sync"
"time"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
. "github.com/tendermint/tendermint/cmd/barak/types"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
pcm "github.com/tendermint/tendermint/process"
"github.com/tendermint/tendermint/rpc/server"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"github.com/tendermint/tendermint/logger"
"github.com/tendermint/go-logger"
)
var log = logger.New("module", "main")
+3 -3
View File
@@ -17,11 +17,11 @@ import (
"time"
. "github.com/tendermint/tendermint/cmd/barak/types"
. "github.com/tendermint/tendermint/common"
cfg "github.com/tendermint/tendermint/config"
. "github.com/tendermint/go-common"
cfg "github.com/tendermint/go-config"
pcm "github.com/tendermint/tendermint/process"
"github.com/tendermint/tendermint/rpc/server"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
)
const BarakVersion = "0.0.1"
+2 -1
View File
@@ -1,8 +1,9 @@
package types
import (
acm "github.com/tendermint/tendermint/account"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
)
type AuthCommand struct {
+2 -2
View File
@@ -7,9 +7,9 @@ import (
"os"
acm "github.com/tendermint/tendermint/account"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
btypes "github.com/tendermint/tendermint/cmd/barak/types"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
"github.com/tendermint/tendermint/rpc/client"
"net/http"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"github.com/tendermint/tendermint/logger"
"github.com/tendermint/go-logger"
)
var log = logger.New("module", "main")
+5 -4
View File
@@ -1,8 +1,9 @@
package main
import (
"fmt"
"github.com/tendermint/tendermint/Godeps/_workspace/src/github.com/codegangsta/cli"
"github.com/codegangsta/cli"
"io/ioutil"
"net/url"
"os"
@@ -12,9 +13,9 @@ import (
acm "github.com/tendermint/tendermint/account"
btypes "github.com/tendermint/tendermint/cmd/barak/types"
. "github.com/tendermint/tendermint/common"
cfg "github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/wire"
. "github.com/tendermint/go-common"
cfg "github.com/tendermint/go-config"
"github.com/tendermint/go-wire"
)
func remoteNick(remote string) string {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
"time"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
)
const Version = "0.0.1"
+2 -1
View File
@@ -1,3 +1,4 @@
package main
import (
@@ -6,7 +7,7 @@ import (
"fmt"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
"github.com/tendermint/tendermint/rpc/client"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
cclient "github.com/tendermint/tendermint/rpc/core_client"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"io"
"os"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
)
const Version = "0.0.1"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
cfg "github.com/tendermint/tendermint/config"
cfg "github.com/tendermint/go-config"
)
var config cfg.Config = nil
+3 -2
View File
@@ -1,10 +1,11 @@
package main
import (
flag "github.com/tendermint/tendermint/Godeps/_workspace/src/github.com/spf13/pflag"
flag "github.com/spf13/pflag"
"os"
cfg "github.com/tendermint/tendermint/config"
cfg "github.com/tendermint/go-config"
)
func parseFlags(config cfg.Config, args []string) {
+3 -2
View File
@@ -1,11 +1,12 @@
package main
import (
"fmt"
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"
)
func gen_account() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
)
func gen_validator() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"fmt"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
cclient "github.com/tendermint/tendermint/rpc/core_client"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"github.com/tendermint/tendermint/logger"
"github.com/tendermint/go-logger"
)
var log = logger.New("module", "main")
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"os"
. "github.com/tendermint/tendermint/common"
cfg "github.com/tendermint/tendermint/config"
. "github.com/tendermint/go-common"
cfg "github.com/tendermint/go-config"
tmcfg "github.com/tendermint/tendermint/config/tendermint"
"github.com/tendermint/tendermint/node"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/tendermint/tendermint/p2p/upnp"
"github.com/tendermint/go-p2p/upnp"
)
func probe_upnp() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strconv"
acm "github.com/tendermint/tendermint/account"
. "github.com/tendermint/tendermint/common"
. "github.com/tendermint/go-common"
cclient "github.com/tendermint/tendermint/rpc/core_client"
"github.com/tendermint/tendermint/types"
)
+2 -1
View File
@@ -1,10 +1,11 @@
package main
import (
"fmt"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/wire"
"github.com/tendermint/go-wire"
)
func show_validator() {