Versions in this module Expand all Collapse all v1 v1.0.0 Jun 28, 2023 Changes in this version + const DealMaxLabelSize + const EpochUndefined + const ProposalsAmtBitwidth + const StatesAmtBitwidth + var DealMaxDuration = abi.ChainEpoch(540 * builtin.EpochsInDay) + var DealMinDuration = abi.ChainEpoch(180 * builtin.EpochsInDay) + var EmptyDealLabel = DealLabel + var MarketDefaultAllocationTermBuffer = abi.ChainEpoch(90 * builtin.EpochsInDay) + var Methods = map[abi.MethodNum]builtin.MethodMeta + var PieceCIDPrefix = cid.Prefix + var ProviderCollateralSupplyTarget = builtin.BigFrac + func DealClientCollateralBounds(_ abi.PaddedPieceSize, _ abi.ChainEpoch) (min abi.TokenAmount, max abi.TokenAmount) + func DealDurationBounds(_ abi.PaddedPieceSize) (min abi.ChainEpoch, max abi.ChainEpoch) + func DealPricePerEpochBounds(_ abi.PaddedPieceSize, _ abi.ChainEpoch) (min abi.TokenAmount, max abi.TokenAmount) + func DealProviderCollateralBounds(pieceSize abi.PaddedPieceSize, verified bool, ...) (min, max abi.TokenAmount) + func DealWeight(proposal *DealProposal) abi.DealWeight + func StoreEmptySetMultimap(s adt.Store, bitwidth int) (cid.Cid, error) + func ValidateDealsForActivation(st *State, store adt.Store, dealIDs []abi.DealID, minerAddr addr.Address, ...) (big.Int, big.Int, uint64, error) + type ActivateDealsParams struct + DealIDs []abi.DealID + SectorExpiry abi.ChainEpoch + func (t *ActivateDealsParams) MarshalCBOR(w io.Writer) error + func (t *ActivateDealsParams) UnmarshalCBOR(r io.Reader) error + type ActivateDealsResult struct + NonVerifiedDealSpace big.Int + VerifiedInfos []VerifiedDealInfo + func (t *ActivateDealsResult) MarshalCBOR(w io.Writer) error + func (t *ActivateDealsResult) UnmarshalCBOR(r io.Reader) error + type ClientDealProposal struct + ClientSignature acrypto.Signature + Proposal DealProposal + func (t *ClientDealProposal) MarshalCBOR(w io.Writer) error + func (t *ClientDealProposal) UnmarshalCBOR(r io.Reader) error + type ComputeDataCommitmentParams struct + Inputs []*SectorDataSpec + func (t *ComputeDataCommitmentParams) MarshalCBOR(w io.Writer) error + func (t *ComputeDataCommitmentParams) UnmarshalCBOR(r io.Reader) error + type ComputeDataCommitmentReturn struct + CommDs []cbg.CborCid + func (t *ComputeDataCommitmentReturn) MarshalCBOR(w io.Writer) error + func (t *ComputeDataCommitmentReturn) UnmarshalCBOR(r io.Reader) error + type DealArray struct + func AsDealProposalArray(s adt.Store, r cid.Cid) (*DealArray, error) + func (t *DealArray) Delete(id abi.DealID) error + func (t *DealArray) Get(id abi.DealID) (*DealProposal, bool, error) + func (t *DealArray) Root() (cid.Cid, error) + func (t *DealArray) Set(k abi.DealID, value *DealProposal) error + type DealLabel struct + func NewLabelFromBytes(b []byte) (DealLabel, error) + func NewLabelFromString(s string) (DealLabel, error) + func (l DealLabel) Equals(o DealLabel) bool + func (label *DealLabel) MarshalCBOR(w io.Writer) error + func (label *DealLabel) UnmarshalCBOR(br io.Reader) error + func (label *DealLabel) UnmarshalJSON(b []byte) error + func (label DealLabel) IsBytes() bool + func (label DealLabel) IsString() bool + func (label DealLabel) Length() int + func (label DealLabel) MarshalJSON() ([]byte, error) + func (label DealLabel) ToBytes() ([]byte, error) + func (label DealLabel) ToString() (string, error) + type DealProposal struct + Client addr.Address + ClientCollateral abi.TokenAmount + EndEpoch abi.ChainEpoch + Label DealLabel + PieceCID cid.Cid + PieceSize abi.PaddedPieceSize + Provider addr.Address + ProviderCollateral abi.TokenAmount + StartEpoch abi.ChainEpoch + StoragePricePerEpoch abi.TokenAmount + VerifiedDeal bool + func (p *DealProposal) Cid() (cid.Cid, error) + func (p *DealProposal) ClientBalanceRequirement() abi.TokenAmount + func (p *DealProposal) Duration() abi.ChainEpoch + func (p *DealProposal) ProviderBalanceRequirement() abi.TokenAmount + func (p *DealProposal) TotalStorageFee() abi.TokenAmount + func (t *DealProposal) MarshalCBOR(w io.Writer) error + func (t *DealProposal) UnmarshalCBOR(r io.Reader) error + type DealSpaces struct + DealSpace abi.DealWeight + VerifiedDealSpace abi.DealWeight + func (t *DealSpaces) MarshalCBOR(w io.Writer) error + func (t *DealSpaces) UnmarshalCBOR(r io.Reader) error + type DealState struct + LastUpdatedEpoch abi.ChainEpoch + SectorStartEpoch abi.ChainEpoch + SlashEpoch abi.ChainEpoch + VerifiedClaim verifreg.AllocationId + func (t *DealState) MarshalCBOR(w io.Writer) error + func (t *DealState) UnmarshalCBOR(r io.Reader) error + type DealSummary struct + EndEpoch abi.ChainEpoch + LastUpdatedEpoch abi.ChainEpoch + PieceCid cid.Cid + Provider address.Address + SectorStartEpoch abi.ChainEpoch + SlashEpoch abi.ChainEpoch + StartEpoch abi.ChainEpoch + type OnMinerSectorsTerminateParams struct + DealIDs []abi.DealID + Epoch abi.ChainEpoch + func (t *OnMinerSectorsTerminateParams) MarshalCBOR(w io.Writer) error + func (t *OnMinerSectorsTerminateParams) UnmarshalCBOR(r io.Reader) error + type PublishStorageDealsParams struct + Deals []ClientDealProposal + func (t *PublishStorageDealsParams) MarshalCBOR(w io.Writer) error + func (t *PublishStorageDealsParams) UnmarshalCBOR(r io.Reader) error + type PublishStorageDealsReturn struct + IDs []abi.DealID + ValidDeals bitfield.BitField + func (t *PublishStorageDealsReturn) MarshalCBOR(w io.Writer) error + func (t *PublishStorageDealsReturn) UnmarshalCBOR(r io.Reader) error + type SectorDataSpec struct + DealIDs []abi.DealID + SectorType abi.RegisteredSealProof + func (t *SectorDataSpec) MarshalCBOR(w io.Writer) error + func (t *SectorDataSpec) UnmarshalCBOR(r io.Reader) error + type SectorDealData struct + CommD *cid.Cid + func (t *SectorDealData) MarshalCBOR(w io.Writer) error + func (t *SectorDealData) UnmarshalCBOR(r io.Reader) error + type SectorDeals struct + DealIDs []abi.DealID + SectorExpiry abi.ChainEpoch + SectorType abi.RegisteredSealProof + func (t *SectorDeals) MarshalCBOR(w io.Writer) error + func (t *SectorDeals) UnmarshalCBOR(r io.Reader) error + type SetMultimap struct + func AsSetMultimap(s adt.Store, r cid.Cid, outerBitwidth, innerBitwidth int) (*SetMultimap, error) + func MakeEmptySetMultimap(s adt.Store, bitwidth int) (*SetMultimap, error) + func (mm *SetMultimap) ForEach(epoch abi.ChainEpoch, fn func(id abi.DealID) error) error + func (mm *SetMultimap) Root() (cid.Cid, error) + type State struct + DealOpsByEpoch cid.Cid + EscrowTable cid.Cid + LastCron abi.ChainEpoch + LockedTable cid.Cid + NextID abi.DealID + PendingDealAllocationIds cid.Cid + PendingProposals cid.Cid + Proposals cid.Cid + States cid.Cid + TotalClientLockedCollateral abi.TokenAmount + TotalClientStorageFee abi.TokenAmount + TotalProviderLockedCollateral abi.TokenAmount + func ConstructState(store adt.Store) (*State, error) + func (st *State) GetPendingDealAllocationIds(store adt.Store) (map[abi.DealID]verifreg.AllocationId, error) + func (t *State) MarshalCBOR(w io.Writer) error + func (t *State) UnmarshalCBOR(r io.Reader) error + type StateSummary struct + AllocIdToDealId map[verifreg.AllocationId]abi.DealID + ClaimIdToDealId map[verifreg.ClaimId]abi.DealID + DealOpCount uint64 + DealOpEpochCount uint64 + DealStateCount uint64 + Deals map[abi.DealID]*DealSummary + LockTableCount uint64 + PendingDealAllocationIds map[abi.DealID]verifreg.AllocationId + PendingProposalCount uint64 + func CheckStateInvariants(st *State, store adt.Store, balance abi.TokenAmount, currEpoch abi.ChainEpoch) (*StateSummary, *builtin.MessageAccumulator) + type VerifiedDealInfo struct + AllocationId verifreg.AllocationId + Client abi.ActorID + Data cid.Cid + Size abi.PaddedPieceSize + func (t *VerifiedDealInfo) MarshalCBOR(w io.Writer) error + func (t *VerifiedDealInfo) UnmarshalCBOR(r io.Reader) error + type VerifyDealsForActivationParams struct + Sectors []SectorDeals + func (t *VerifyDealsForActivationParams) MarshalCBOR(w io.Writer) error + func (t *VerifyDealsForActivationParams) UnmarshalCBOR(r io.Reader) error + type VerifyDealsForActivationReturn struct + Sectors []SectorDealData + func (t *VerifyDealsForActivationReturn) MarshalCBOR(w io.Writer) error + func (t *VerifyDealsForActivationReturn) UnmarshalCBOR(r io.Reader) error + type WithdrawBalanceParams struct + Amount abi.TokenAmount + ProviderOrClientAddress addr.Address + func (t *WithdrawBalanceParams) MarshalCBOR(w io.Writer) error + func (t *WithdrawBalanceParams) UnmarshalCBOR(r io.Reader) error