fil

package
v0.0.0-...-6be4821 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0, MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const FilGenesisUnix = 1598306400 //nolint:revive

Variables

View Source
var (
	PropagationDelaySecs = uint64(10) // PropagationDelaySecs corresponds to https://github.com/filecoin-project/lotus/blob/v1.25.2/build/params_mainnet.go#L113
	APIMaxTipsetsBehind  = uint64(4)  // APIMaxTipsetsBehind should not be set too low: a nul tipset is indistinguishable from loss of sync
)

Functions

func GetTipset

func GetTipset(ctx context.Context, lapi LotusDaemonAPIClientV0, lookback filabi.ChainEpoch) (*lotustypes.TipSet, error)

func MainnetTime

func MainnetTime(e filabi.ChainEpoch) time.Time

func WallTimeEpoch

func WallTimeEpoch(t time.Time) filabi.ChainEpoch

Types

type ActorID

type ActorID uint64 //nolint:revive

func MustParseActorString

func MustParseActorString(s string) ActorID

func ParseActorString

func ParseActorString(s string) (ActorID, error)

func (ActorID) AsFilAddr

func (a ActorID) AsFilAddr() filaddr.Address

func (ActorID) String

func (a ActorID) String() string

type LotusBeaconEntry

type LotusBeaconEntry = lotustypes.BeaconEntry

type LotusDaemonAPIClientV0

type LotusDaemonAPIClientV0 = v0api.FullNode

func NewLotusDaemonAPIClientV0

func NewLotusDaemonAPIClientV0(ctx context.Context, url string, timeoutSecs int, bearerToken string) (LotusDaemonAPIClientV0, jsonrpc.ClientCloser, error)

type LotusMinerAPIClientV0

type LotusMinerAPIClientV0 = v0api.StorageMiner

func NewLotusMinerAPIClientV0

func NewLotusMinerAPIClientV0(ctx context.Context, url string, timeoutSecs int, bearerToken string) (LotusMinerAPIClientV0, jsonrpc.ClientCloser, error)

type LotusTS

type LotusTS = lotustypes.TipSet

type LotusTSK

type LotusTSK = lotustypes.TipSetKey

Jump to

Keyboard shortcuts

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