Versions in this module Expand all Collapse all v5 v5.0.6 Sep 27, 2021 Changes in this version + const DealMaxLabelSize + const DealUpdatesInterval + const ProposalsAmtBitwidth + const StatesAmtBitwidth + var DealMaxDuration = abi.ChainEpoch(540 * builtin.EpochsInDay) + var DealMinDuration = abi.ChainEpoch(180 * builtin.EpochsInDay) + 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.EmptyValue + type BalanceLockingReason int + const ClientCollateral + const ClientStorageFee + const ProviderCollateral + type ClientDealProposal = market0.ClientDealProposal + 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 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 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 = market0.DealProposal + 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 = market0.PublishStorageDealsParams + type PublishStorageDealsReturn = market0.PublishStorageDealsReturn + type Runtime = runtime.Runtime + 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 SectorDeals struct + DealIDs []abi.DealID + SectorExpiry abi.ChainEpoch + func (t *SectorDeals) MarshalCBOR(w io.Writer) error + func (t *SectorDeals) UnmarshalCBOR(r io.Reader) error + type SectorWeights struct + DealSpace uint64 + DealWeight abi.DealWeight + VerifiedDealWeight abi.DealWeight + func (t *SectorWeights) MarshalCBOR(w io.Writer) error + func (t *SectorWeights) 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) 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 struct + Sectors []SectorDeals + func (t *VerifyDealsForActivationParams) MarshalCBOR(w io.Writer) error + func (t *VerifyDealsForActivationParams) UnmarshalCBOR(r io.Reader) error + type VerifyDealsForActivationReturn struct + Sectors []SectorWeights + func (t *VerifyDealsForActivationReturn) MarshalCBOR(w io.Writer) error + func (t *VerifyDealsForActivationReturn) UnmarshalCBOR(r io.Reader) error + type WithdrawBalanceParams = market0.WithdrawBalanceParams