Versions in this module Expand all Collapse all v8 v8.0.1 Jun 10, 2022 v8.0.0 Apr 22, 2022 Changes in this version + const DealMaxLabelSize + const DealUpdatesInterval + const EpochUndefined + const ProposalsAmtBitwidth + const StatesAmtBitwidth + var DealMaxDuration = abi.ChainEpoch(540 * builtin.EpochsInDay) + var DealMinDuration = abi.ChainEpoch(180 * builtin.EpochsInDay) + var EmptyDealLabel = DealLabel + var PieceCIDPrefix = market0.PieceCIDPrefix + var ProviderCollateralSupplyTarget = builtin.BigFrac + func CollateralPenaltyForDealActivationMissed(providerCollateral abi.TokenAmount) abi.TokenAmount + 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 GenRandNextEpoch(startEpoch abi.ChainEpoch, dealID abi.DealID) abi.ChainEpoch + 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 = market0.ActivateDealsParams + type Actor struct + func (a Actor) ActivateDeals(rt Runtime, params *ActivateDealsParams) *abi.EmptyValue + func (a Actor) AddBalance(rt Runtime, providerOrClientAddress *addr.Address) *abi.EmptyValue + func (a Actor) Code() cid.Cid + func (a Actor) ComputeDataCommitment(rt Runtime, params *ComputeDataCommitmentParams) *ComputeDataCommitmentReturn + func (a Actor) Constructor(rt Runtime, _ *abi.EmptyValue) *abi.EmptyValue + func (a Actor) CronTick(rt Runtime, _ *abi.EmptyValue) *abi.EmptyValue + func (a Actor) Exports() []interface{} + func (a Actor) IsSingleton() bool + func (a Actor) OnMinerSectorsTerminate(rt Runtime, params *OnMinerSectorsTerminateParams) *abi.EmptyValue + func (a Actor) PublishStorageDeals(rt Runtime, params *PublishStorageDealsParams) *PublishStorageDealsReturn + func (a Actor) State() cbor.Er + func (a Actor) VerifyDealsForActivation(rt Runtime, params *VerifyDealsForActivationParams) *VerifyDealsForActivationReturn + func (a Actor) WithdrawBalance(rt Runtime, params *WithdrawBalanceParams) *abi.TokenAmount + type BalanceLockingReason int + const ClientCollateral + const ClientStorageFee + const ProviderCollateral + 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 = market5.ComputeDataCommitmentParams + type ComputeDataCommitmentReturn = market5.ComputeDataCommitmentReturn + type DealArray struct + func AsDealProposalArray(s 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) MarshalJSON() ([]byte, 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) ToBytes() ([]byte, error) + func (label DealLabel) ToString() (string, error) + type DealMetaArray struct + func AsDealStateArray(s Store, r cid.Cid) (*DealMetaArray, error) + func (t *DealMetaArray) Delete(id abi.DealID) error + func (t *DealMetaArray) Get(id abi.DealID) (*DealState, bool, error) + func (t *DealMetaArray) Root() (cid.Cid, error) + func (t *DealMetaArray) Set(k abi.DealID, value *DealState) 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 DealState struct + LastUpdatedEpoch abi.ChainEpoch + SectorStartEpoch abi.ChainEpoch + SlashEpoch abi.ChainEpoch + 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 + Provider address.Address + SectorStartEpoch abi.ChainEpoch + SlashEpoch abi.ChainEpoch + StartEpoch abi.ChainEpoch + type MarketStateMutationPermission int + const Invalid + const ReadOnlyPermission + const WritePermission + type OnMinerSectorsTerminateParams = market0.OnMinerSectorsTerminateParams + type PublishStorageDealsParams struct + Deals []ClientDealProposal + func (t *PublishStorageDealsParams) MarshalCBOR(w io.Writer) error + func (t *PublishStorageDealsParams) UnmarshalCBOR(r io.Reader) error + type PublishStorageDealsReturn = market6.PublishStorageDealsReturn + type Runtime = runtime.Runtime + type SectorDataSpec = market5.SectorDataSpec + type SectorDeals = market3.SectorDeals + type SectorWeights = market3.SectorWeights + 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) Put(epoch abi.ChainEpoch, v abi.DealID) error + func (mm *SetMultimap) PutMany(epoch abi.ChainEpoch, vs []abi.DealID) error + func (mm *SetMultimap) RemoveAll(key abi.ChainEpoch) 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 + 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 (t *State) MarshalCBOR(w io.Writer) error + func (t *State) UnmarshalCBOR(r io.Reader) error + type StateSummary struct + DealOpCount uint64 + DealOpEpochCount uint64 + DealStateCount uint64 + Deals map[abi.DealID]*DealSummary + LockTableCount uint64 + PendingProposalCount uint64 + func CheckStateInvariants(st *State, store adt.Store, balance abi.TokenAmount, currEpoch abi.ChainEpoch) (*StateSummary, *builtin.MessageAccumulator) + type VerifyDealsForActivationParams = market3.VerifyDealsForActivationParams + type VerifyDealsForActivationReturn = market3.VerifyDealsForActivationReturn + type WithdrawBalanceParams = market0.WithdrawBalanceParams Other modules containing this package github.com/filecoin-project/specs-actors github.com/filecoin-project/specs-actors/v2 github.com/filecoin-project/specs-actors/v3 github.com/filecoin-project/specs-actors/v4 github.com/filecoin-project/specs-actors/v5 github.com/filecoin-project/specs-actors/v6 github.com/filecoin-project/specs-actors/v7