lib

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Overview

establish connection to a 'FullNode' filecoin API with cli configuration. Mostly with an eye towards ease of use for lotus users.

Index

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 GetAPI

func GetAPI(c *cli.Context) (api.FullNode, error)

func GetBlockstore added in v0.0.6

func GetCar added in v0.0.6

func GetHead added in v0.0.6

func GetHead(client api.FullNode) statediff.StateRootFunc

func GetVector added in v0.0.6

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 StateTree added in v0.0.6

type StateTree struct {
	RootCID cid.Cid `json:"root_cid"`
}

type TestVector added in v0.0.6

type TestVector struct {
	CAR string `json:"car"`

	Pre  *Preconditions  `json:"preconditions"`
	Post *Postconditions `json:"postconditions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL