mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-09 01:26:19 +00:00
Refactor to move common libraries out of project
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package vm
|
||||
|
||||
import (
|
||||
"github.com/tendermint/tendermint/logger"
|
||||
"github.com/tendermint/go-logger"
|
||||
)
|
||||
|
||||
var log = logger.New("module", "vm")
|
||||
|
||||
+3
-2
@@ -1,9 +1,10 @@
|
||||
|
||||
package vm
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"github.com/tendermint/tendermint/Godeps/_workspace/src/code.google.com/p/go.crypto/ripemd160"
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
"code.google.com/p/go.crypto/ripemd160"
|
||||
. "github.com/tendermint/go-common"
|
||||
)
|
||||
|
||||
var registeredNativeContracts = make(map[Word256]NativeContract)
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package vm
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/tendermint/tendermint/Godeps/_workspace/src/gopkg.in/fatih/set.v0"
|
||||
"gopkg.in/fatih/set.v0"
|
||||
)
|
||||
|
||||
type OpCode byte
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package vm
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
ptypes "github.com/tendermint/tendermint/permission/types"
|
||||
)
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package vm
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
)
|
||||
|
||||
// Not goroutine safe
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package vm
|
||||
|
||||
import (
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
. "github.com/tendermint/tendermint/vm"
|
||||
"github.com/tendermint/tendermint/vm/sha3"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
"github.com/tendermint/tendermint/events"
|
||||
"github.com/tendermint/tendermint/types"
|
||||
. "github.com/tendermint/tendermint/vm"
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
"github.com/tendermint/tendermint/events"
|
||||
ptypes "github.com/tendermint/tendermint/permission/types"
|
||||
"github.com/tendermint/tendermint/types"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package vm
|
||||
|
||||
import (
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
. "github.com/tendermint/go-common"
|
||||
ptypes "github.com/tendermint/tendermint/permission/types"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user