lotusclient

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DealProtocolv110 is the deal protocol version name for the legacy
	// deal proposal protocol.
	DealProtocolv110 = "/fil/storage/mk/1.1.0"
	// DealProtocolv120 is the deal protocol version name for Boost.
	DealProtocolv120 = "/fil/storage/mk/1.2.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides access to Lotus for importing deal data.

func New

func New(maddr string, authToken string, marketMaddr string, marketAuthToken string,
	connRetries int, fakeMode bool, finalizeEarly bool) (*Client, error)

New returns a new *LotusClient.

func (*Client) Close

func (c *Client) Close() error

Close the client.

func (*Client) CurrentSealingSectors added in v0.0.5

func (c *Client) CurrentSealingSectors() (int, error)

CurrentSealingSectors returns the total number of sectors considered to be in sealing.

func (*Client) HealthCheck

func (c *Client) HealthCheck() error

HealthCheck checks if the lotus client is healthy enough so bidbot can participate in bidding.

func (*Client) ImportData

func (c *Client) ImportData(pcid cid.Cid, file string) error

ImportData imports deal data into Lotus.

type LotusClient

type LotusClient interface {
	io.Closer
	HealthCheck() error
	CurrentSealingSectors() (int, error)
	ImportData(pcid cid.Cid, file string) error
}

LotusClient provides access to Lotus for importing deal data.

Jump to

Keyboard shortcuts

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