var (
// generateInstPath is the directory (need to combine with GOPATH) for store generated contract instance
- generateInstPath = "/src/github.com/bytom/equity/instance/"
+ generateInstPath = "/src/github.com/bytom/bytom/equity/instance/"
)
func main() {
fmt.Fprintf(header, "package instance\n\n")
imports := map[string]bool{
- "bytes": true,
- "encoding/hex": true,
- "fmt": true,
- "github.com/bytom/equity/compiler": true,
- "github.com/bytom/protocol/vm": true,
+ "bytes": true,
+ "encoding/hex": true,
+ "fmt": true,
+ "github.com/bytom/bytom/equity/compiler": true,
+ "github.com/bytom/bytom/protocol/vm": true,
}
buf := new(bytes.Buffer)
typ = "uint64"
case "Asset":
typ = "bc.AssetID"
- imports = append(imports, "github.com/bytom/protocol/bc")
+ imports = append(imports, "github.com/bytom/bytom/protocol/bc")
strFlag = true
case "Boolean":
typ = "bool"
strFlag = true
case "PublicKey":
typ = "ed25519.PublicKey"
- imports = append(imports, "github.com/bytom/crypto/ed25519")
+ imports = append(imports, "github.com/bytom/bytom/crypto/ed25519")
strFlag = true
case "Signature":
typ = "[]byte"
}
if strFlag {
- imports = append(imports, "github.com/bytom/encoding/json")
+ imports = append(imports, "github.com/bytom/bytom/encoding/json")
}
return strings.Join(strs, ", "), imports
}