Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain interface { ChainHead(ctx context.Context) (TipSetToken, abi.ChainEpoch, error) StateNetworkVersion(ctx context.Context, tok TipSetToken) (network.Version, error) }
Chain a interface used to get chain head and net version
type DealInfo ¶
type DealInfo struct { PublishCid *cid.Cid DealID abi.DealID DealSchedule DealSchedule KeepUnsealed bool }
DealInfo is a tuple of deal identity and its schedule
type DealSchedule ¶
type DealSchedule struct { StartEpoch abi.ChainEpoch EndEpoch abi.ChainEpoch }
DealSchedule communicates the time interval of a storage deal. The deal must appear in a sealed (proven) sector no later than StartEpoch, otherwise it is invalid.
type Events ¶
type Events interface {
ChainAt(hnd HeightHandler, rev RevertHandler, confidence int, h abi.ChainEpoch) error
}
type HeightHandler ¶
type HeightHandler func(ctx context.Context, tok TipSetToken, curH abi.ChainEpoch) error
`curH`-`ts.Height` = `confidence`
type MessageReceipt ¶
func (*MessageReceipt) Equals ¶
func (mr *MessageReceipt) Equals(o *MessageReceipt) bool
type MsgLookup ¶
type MsgLookup struct { Receipt MessageReceipt TipSetTok TipSetToken Height abi.ChainEpoch }
type Piece ¶
type Piece struct { Piece abi.PieceInfo DealInfo *DealInfo // nil for pieces which do not appear in deals (e.g. filler pieces) }
Piece is a tuple of piece info and optional deal
type PieceWithDealInfo ¶
Piece is a tuple of piece and deal info
type ReturnState ¶
type ReturnState string
type RevertHandler ¶
type RevertHandler func(ctx context.Context, tok TipSetToken) error
`curH`-`ts.Height` = `confidence`
type TipSetToken ¶
type TipSetToken []byte
Click to show internal directories.
Click to hide internal directories.