Documentation ¶
Index ¶
- type APIVersion
- type ChainEpoch
- type Claim
- type Client
- type DagSpec
- type DataCIDSize
- type DataRef
- type DealInfo
- type ExportRef
- type FIL
- type FileRef
- type ID
- type Import
- type ImportRes
- type MinerInfo
- type MinerPower
- type NetworkParams
- type Selector
- type StartDealParams
- type StorageAsk
- type TipSetKey
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIVersion ¶
type ChainEpoch ¶
type ChainEpoch int64
type Claim ¶
type Claim struct { // Sum of raw byte power for a miner's sectors. RawBytePower abi2.StoragePower // Sum of quality adjusted power for a miner's sectors. QualityAdjPower abi2.StoragePower }
type Client ¶
type Client interface { ClientDealPieceCID(context.Context, cid.Cid) (DataCIDSize, error) ClientExport(context.Context, ExportRef, FileRef) error ClientGetDealUpdates(ctx context.Context) (<-chan DealInfo, error) ClientListImports(context.Context) ([]Import, error) ClientImport(context.Context, FileRef) (*ImportRes, error) ClientQueryAsk(context.Context, peer.ID, address.Address) (*StorageAsk, error) ClientStartDeal(context.Context, *StartDealParams) (*cid.Cid, error) StateGetNetworkParams(context.Context) (*NetworkParams, error) StateListMiners(context.Context, TipSetKey) ([]address.Address, error) StateMinerInfo(context.Context, address.Address, TipSetKey) (MinerInfo, error) StateMinerPower(context.Context, address.Address, TipSetKey) (*MinerPower, error) Version(context.Context) (APIVersion, error) WalletDefaultAddress(context.Context) (address.Address, error) Close() error }
type DataCIDSize ¶
type DataCIDSize struct { PayloadSize int64 PieceSize abi2.PaddedPieceSize PieceCID cid.Cid }
type DataRef ¶
type DataRef struct { TransferType string Root cid.Cid PieceCid *cid.Cid // Optional for non-manual transfer, will be recomputed from the data if not given PieceSize abi2.UnpaddedPieceSize // Optional for non-manual transfer, will be recomputed from the data if not given RawBlockSize uint64 // Optional: used as the denominator when calculating transfer % }
type DealInfo ¶
type DealInfo struct { ProposalCid cid.Cid State storagemarket.StorageDealStatus Message string // more information about deal state, particularly errors Provider address.Address DataRef *storagemarket.DataRef PieceCID cid.Cid Size uint64 PricePerEpoch big2.Int Duration uint64 DealID abi2.DealID CreationTime time.Time Verified bool }
type ExportRef ¶
type ExportRef struct { Root cid.Cid DAGs []DagSpec FromLocalCAR string DealID retrievalmarket.DealID }
type MinerInfo ¶
type MinerInfo struct { Owner address.Address // Must be an ID-address. Worker address.Address // Must be an ID-address. NewWorker address.Address // Must be an ID-address. ControlAddresses []address.Address // Must be an ID-addresses. WorkerChangeEpoch int64 PeerId *peer.ID Multiaddrs [][]byte WindowPoStProofType int64 SectorSize uint64 WindowPoStPartitionSectors uint64 ConsensusFaultElapsed int64 Beneficiary address.Address BeneficiaryTerm *miner.BeneficiaryTerm PendingBeneficiaryTerm *miner.PendingBeneficiaryChange }
type MinerPower ¶
type NetworkParams ¶
type StartDealParams ¶
type StorageAsk ¶
type StorageAsk struct { Response *storagemarket.StorageAsk DealProtocols []string }
type TipSetKey ¶
type TipSetKey struct {
// contains filtered or unexported fields
}
func (TipSetKey) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.