node

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT, Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyNodeClient = &NodeClient{}

Functions

func NewEventBus added in v1.2.1

func NewEventBus() EventBus.Bus

Types

type Actor

type Actor struct {
	// Identifies the type of actor (string coded as a CID), see `chain/actors/actors.go`.
	Code    core.Cid
	Head    core.Cid
	Nonce   uint64
	Balance big.Int
}

type NodeClient

type NodeClient struct {
	// NOTE:
	StateGetActor func(ctx context.Context, actor core.Address, tsk TipSetKey) (*Actor, error)
	Cancel        func()
}

NodeClient connect Lotus or Venus node and call json RPC API

func NewNodeClient

func NewNodeClient(cnf *config.StrategyConfig) (*NodeClient, error)

type TipSetKey

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

func (TipSetKey) Cids

func (k TipSetKey) Cids() []core.Cid

func (TipSetKey) MarshalJSON

func (k TipSetKey) MarshalJSON() ([]byte, error)

func (*TipSetKey) UnmarshalJSON

func (k *TipSetKey) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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