Commit 9d8a3222 authored by protolambda's avatar protolambda

mipsevm: mv go mod, create cannon command

parent 9539e336
package cmd
import "github.com/urfave/cli/v2"
func GenProof(ctx *cli.Context) error {
// TODO
return nil
}
var GenProofCommand = &cli.Command{
Name: "gen-proof",
Usage: "",
Description: "",
Action: GenProof,
Flags: nil,
}
package cmd
import "github.com/urfave/cli/v2"
func LoadELF(ctx *cli.Context) error {
// TODO
return nil
}
var LoadELFCommand = &cli.Command{
Name: "load-elf",
Usage: "",
Description: "",
Action: LoadELF,
Flags: nil,
}
package cmd
import "github.com/urfave/cli/v2"
func RunSteps(ctx *cli.Context) error {
// TODO
return nil
}
var RunStepsCommand = &cli.Command{
Name: "run-steps",
Usage: "",
Description: "",
Action: RunSteps,
Flags: nil,
}
module mipsevm
module cannon
go 1.20
......@@ -60,7 +60,7 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace github.com/ethereum-optimism/cannon/preimage v0.0.0 => ../preimage
replace github.com/ethereum-optimism/cannon/preimage v0.0.0 => ./preimage
// We need to point to our local Unicorn clone for the shared object to be located correctly in all our Go commands.
// See https://github.com/unicorn-engine/unicorn/blob/7b8c63dfe650b5d4d2bf684526161971925e6350/bindings/go/unicorn/unicorn.go#L11
......@@ -70,4 +70,4 @@ replace github.com/ethereum-optimism/cannon/preimage v0.0.0 => ../preimage
// If you are importing Cannon as a library you will need to also point it to a unicorn clone with a `replace`
// in your `go.mod` (or `go.work`), or use `go build -ldflags="-L../path/to/my/unicorn/build -lunicorn`,
// or simply have it installed globally so Go can find it. The `replace` here will be ignored as library-user.
replace github.com/unicorn-engine/unicorn v0.0.0-20230207094436-7b8c63dfe650 => ../unicorn
replace github.com/unicorn-engine/unicorn v0.0.0-20230207094436-7b8c63dfe650 => ./unicorn
package main
import (
"github.com/urfave/cli/v2"
"cannon/cmd"
)
func main() {
app := cli.NewApp()
app.Name = "cannon"
app.Usage = "MIPS Fault Proof tool"
app.Description = "MIPS Fault Proof tool"
app.Commands = []*cli.Command{
cmd.LoadELFCommand,
cmd.RunStepsCommand,
cmd.GenProofCommand,
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment