Documentation
¶
Overview ¶
establish connection to a 'FullNode' filecoin API with cli configuration. Mostly with an eye towards ease of use for lotus users.
Index ¶
- Variables
- func GetAPI(c *cli.Context) (api.FullNode, error)
- func GetBlockstore(c *cli.Context) (api.FullNode, statediff.StateRootFunc, blockstore.Blockstore, error)
- func GetCar(c *cli.Context) (statediff.StateRootFunc, blockstore.Blockstore, error)
- func GetHead(client api.FullNode) statediff.StateRootFunc
- func GetVector(c *cli.Context) (statediff.StateRootFunc, blockstore.Blockstore, error)
- type Postconditions
- type Preconditions
- type StateTree
- type TestVector
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiFlag = cli.StringFlag{ Name: "api", Usage: "api endpoint, formatted as token:multiaddr", Value: "", EnvVars: []string{"FULLNODE_API_INFO"}, }
View Source
var CarFlag = cli.StringFlag{
Name: "car",
Usage: "car file location for data source",
Value: "",
}
View Source
var VectorFlag = cli.StringFlag{
Name: "vector",
Usage: "test-vector.json file location for data source",
Value: "",
}
Functions ¶
func GetBlockstore ¶ added in v0.0.6
func GetBlockstore(c *cli.Context) (api.FullNode, statediff.StateRootFunc, blockstore.Blockstore, error)
func GetCar ¶ added in v0.0.6
func GetCar(c *cli.Context) (statediff.StateRootFunc, blockstore.Blockstore, error)
func GetVector ¶ added in v0.0.6
func GetVector(c *cli.Context) (statediff.StateRootFunc, blockstore.Blockstore, error)
Types ¶
type Postconditions ¶ added in v0.0.6
type Postconditions struct {
StateTree *StateTree `json:"state_tree"`
}
Postconditions contain a representation of VM state at th end of the test
type Preconditions ¶ added in v0.0.6
type Preconditions struct {
StateTree *StateTree `json:"state_tree"`
}
type TestVector ¶ added in v0.0.6
type TestVector struct {
CAR string `json:"car"`
Pre *Preconditions `json:"preconditions"`
Post *Postconditions `json:"postconditions"`
}
Click to show internal directories.
Click to hide internal directories.