Documentation
¶
Index ¶
- type ChainGenesis
- type ChainHead
- type Claim
- type Option
- type StateDealProviderCollateralBounds
- type StateMarketStorageDeal
- type StateMinerPower
- type Telefil
- func (f *Telefil) ChainGetGenesis(ctx context.Context) (*ChainGenesis, error)
- func (f *Telefil) ChainHead(ctx context.Context) (*ChainHead, error)
- func (f *Telefil) StateDealProviderCollateralBounds(ctx context.Context, pieceSize abi.PaddedPieceSize, verified bool) (*StateDealProviderCollateralBounds, error)
- func (f *Telefil) StateListMiners(ctx context.Context) ([]address.Address, error)
- func (f *Telefil) StateMarketStorageDeal(ctx context.Context, id abi.DealID) (*StateMarketStorageDeal, error)
- func (f *Telefil) StateMinerInfo(ctx context.Context, sp address.Address) (*peer.AddrInfo, error)
- func (f *Telefil) StateMinerPower(ctx context.Context, sp address.Address) (*StateMinerPower, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainGenesis ¶
type ChainGenesis struct { Blocks []struct { Timestamp int64 `json:"Timestamp"` } `json:"Blocks"` }
type ChainHead ¶
type ChainHead struct {
Height abi.ChainEpoch `json:"Height"`
}
type Option ¶
type Option func(*options) error
func WithFilecoinAPI ¶
WithFilecoinAPI sets the Filecoin API endpoint. Defaults to https://api.node.glif.io
type StateMarketStorageDeal ¶
type StateMarketStorageDeal struct { Proposal market.DealProposal `json:"Proposal"` State market.DealState `json:"State"` }
type StateMinerPower ¶
type Telefil ¶
type Telefil struct {
// contains filtered or unexported fields
}
func (*Telefil) ChainGetGenesis ¶
func (f *Telefil) ChainGetGenesis(ctx context.Context) (*ChainGenesis, error)
func (*Telefil) StateDealProviderCollateralBounds ¶
func (f *Telefil) StateDealProviderCollateralBounds(ctx context.Context, pieceSize abi.PaddedPieceSize, verified bool) (*StateDealProviderCollateralBounds, error)
func (*Telefil) StateListMiners ¶
func (*Telefil) StateMarketStorageDeal ¶
func (*Telefil) StateMinerInfo ¶
func (*Telefil) StateMinerPower ¶
func (f *Telefil) StateMinerPower(ctx context.Context, sp address.Address) (*StateMinerPower, error)
Click to show internal directories.
Click to hide internal directories.