"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
- generateInstPath = "/src/github.com/vapor/equity/instance/"
+ generateInstPath = "/src/github.com/bytom/vapor/equity/instance/"
)
func main() {
"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)
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 "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"
}
if strFlag {
- imports = append(imports, "github.com/vapor/encoding/json")
+ imports = append(imports, "github.com/bytom/vapor/encoding/json")
}
return strings.Join(strs, ", "), imports
}