2020-04-07 00:29:52 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
gen "github.com/whyrusleeping/cbor-gen"
|
|
|
|
|
|
|
|
sealing "github.com/filecoin-project/storage-fsm"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
err := gen.WriteMapEncodersToFile("./cbor_gen.go", "sealing",
|
2020-04-08 14:52:20 +00:00
|
|
|
sealing.Piece{},
|
2020-04-07 21:44:33 +00:00
|
|
|
sealing.DealInfo{},
|
|
|
|
sealing.DealSchedule{},
|
2020-04-07 00:29:52 +00:00
|
|
|
sealing.SectorInfo{},
|
|
|
|
sealing.Log{},
|
|
|
|
)
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
}
|