lotus/tvx/scripts/paych/main.go
2020-08-14 19:40:26 +01:00

46 lines
827 B
Go

package main
import (
. "github.com/filecoin-project/oni/tvx/builders"
"github.com/filecoin-project/oni/tvx/schema"
"github.com/filecoin-project/specs-actors/actors/abi"
)
var (
initialBal = abi.NewTokenAmount(200_000_000_000)
toSend = abi.NewTokenAmount(10_000)
)
func main() {
g := NewGenerator()
g.MessageVectorGroup("paych",
&MessageVectorGenItem{
Metadata: &schema.Metadata{
ID: "create-ok",
Version: "v1",
Desc: "",
},
Func: happyPathCreate,
},
&MessageVectorGenItem{
Metadata: &schema.Metadata{
ID: "update-ok",
Version: "v1",
Desc: "",
},
Func: happyPathUpdate,
},
&MessageVectorGenItem{
Metadata: &schema.Metadata{
ID: "collect-ok",
Version: "v1",
Desc: "",
},
Func: happyPathCollect,
},
)
g.Wait()
}