OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename (#465)
[bytom/vapor.git]
/
equity
/
compiler
/
cmd
/
equitycmd
/
equitycmd.go
diff --git
a/equity/compiler/cmd/equitycmd/equitycmd.go
b/equity/compiler/cmd/equitycmd/equitycmd.go
index
2a2a470
..
38d2f3a
100644
(file)
--- a/
equity/compiler/cmd/equitycmd/equitycmd.go
+++ b/
equity/compiler/cmd/equitycmd/equitycmd.go
@@
-8,12
+8,12
@@
import (
"os"
"strings"
"os"
"strings"
- "github.com/vapor/equity/compiler"
+ "github.com/
bytom/
vapor/equity/compiler"
)
var (
// generateInstPath is the directory (need to combine with GOPATH) for store generated contract instance
)
var (
// generateInstPath is the directory (need to combine with GOPATH) for store generated contract instance
- generateInstPath = "/src/github.com/vapor/equity/instance/"
+ generateInstPath = "/src/github.com/
bytom/
vapor/equity/instance/"
)
func main() {
)
func main() {
@@
-66,8
+66,8
@@
func main() {
"bytes": true,
"encoding/hex": true,
"fmt": true,
"bytes": true,
"encoding/hex": true,
"fmt": true,
- "github.com/vapor/equity/compiler": true,
- "github.com/vapor/protocol/vm": true,
+ "github.com/
bytom/
vapor/equity/compiler": true,
+ "github.com/
bytom/
vapor/protocol/vm": true,
}
buf := new(bytes.Buffer)
}
buf := new(bytes.Buffer)
@@
-254,7
+254,7
@@
func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
typ = "uint64"
case "Asset":
typ = "bc.AssetID"
typ = "uint64"
case "Asset":
typ = "bc.AssetID"
- imports = append(imports, "github.com/vapor/protocol/bc")
+ imports = append(imports, "github.com/
bytom/
vapor/protocol/bc")
strFlag = true
case "Boolean":
typ = "bool"
strFlag = true
case "Boolean":
typ = "bool"
@@
-268,7
+268,7
@@
func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
strFlag = true
case "PublicKey":
typ = "ed25519.PublicKey"
strFlag = true
case "PublicKey":
typ = "ed25519.PublicKey"
- imports = append(imports, "github.com/vapor/crypto/ed25519")
+ imports = append(imports, "github.com/
bytom/
vapor/crypto/ed25519")
strFlag = true
case "Signature":
typ = "[]byte"
strFlag = true
case "Signature":
typ = "[]byte"
@@
-281,7
+281,7
@@
func asGoParams(params []*compiler.Param) (goParams string, imports []string) {
}
if strFlag {
}
if strFlag {
- imports = append(imports, "github.com/vapor/encoding/json")
+ imports = append(imports, "github.com/
bytom/
vapor/encoding/json")
}
return strings.Join(strs, ", "), imports
}
}
return strings.Join(strs, ", "), imports
}