Versions in this module Expand all Collapse all v1 v1.0.0 Jun 28, 2023 Changes in this version + const EndOfLifeClaimDropPeriod + const MaximumVerifiedAllocationExpiration + const MaximumVerifiedAllocationTerm + const MinimumVerifiedAllocationSize + const MinimumVerifiedAllocationTerm + const NoAllocationID + const SignatureDomainSeparation_RemoveDataCap + var DataCapGranularity = builtin.TokenPrecision + var Methods = map[abi.MethodNum]builtin.MethodMeta + var MinVerifiedDealSize = abi.NewStoragePower(1 << 20) + type AddVerifiedClientParams struct + Address addr.Address + Allowance DataCap + func (t *AddVerifiedClientParams) MarshalCBOR(w io.Writer) error + func (t *AddVerifiedClientParams) UnmarshalCBOR(r io.Reader) error + type AddVerifierParams struct + Address addr.Address + Allowance DataCap + func (t *AddVerifierParams) MarshalCBOR(w io.Writer) error + func (t *AddVerifierParams) UnmarshalCBOR(r io.Reader) error + type Allocation struct + Client abi.ActorID + Data cid.Cid + Expiration abi.ChainEpoch + Provider abi.ActorID + Size abi.PaddedPieceSize + TermMax abi.ChainEpoch + TermMin abi.ChainEpoch + func (t *Allocation) MarshalCBOR(w io.Writer) error + func (t *Allocation) UnmarshalCBOR(r io.Reader) error + type AllocationId uint64 + func (a AllocationId) Key() string + type AllocationRequest struct + Data cid.Cid + Expiration abi.ChainEpoch + Provider abi.ActorID + Size abi.PaddedPieceSize + TermMax abi.ChainEpoch + TermMin abi.ChainEpoch + type AllocationRequests struct + Allocations []AllocationRequest + Extensions []ClaimExtensionRequest + type AllocationsResponse struct + AllocationResults BatchReturn + ExtensionResults BatchReturn + NewAllocations []AllocationId + func (t *AllocationsResponse) MarshalCBOR(w io.Writer) error + func (t *AllocationsResponse) UnmarshalCBOR(r io.Reader) error + type BatchReturn struct + FailCodes []FailCode + SuccessCount uint64 + func (t *BatchReturn) MarshalCBOR(w io.Writer) error + func (t *BatchReturn) UnmarshalCBOR(r io.Reader) error + type Claim struct + Client abi.ActorID + Data cid.Cid + Provider abi.ActorID + Sector abi.SectorNumber + Size abi.PaddedPieceSize + TermMax abi.ChainEpoch + TermMin abi.ChainEpoch + TermStart abi.ChainEpoch + func (t *Claim) MarshalCBOR(w io.Writer) error + func (t *Claim) UnmarshalCBOR(r io.Reader) error + type ClaimAllocationsParams struct + AllOrNothing bool + Sectors []SectorAllocationClaim + func (t *ClaimAllocationsParams) MarshalCBOR(w io.Writer) error + func (t *ClaimAllocationsParams) UnmarshalCBOR(r io.Reader) error + type ClaimAllocationsReturn struct + BatchInfo BatchReturn + ClaimedSpace big.Int + func (t *ClaimAllocationsReturn) MarshalCBOR(w io.Writer) error + func (t *ClaimAllocationsReturn) UnmarshalCBOR(r io.Reader) error + type ClaimExtensionRequest struct + Claim ClaimId + Provider addr.Address + TermMax abi.ChainEpoch + type ClaimId uint64 + func (a ClaimId) Key() string + type ClaimTerm struct + ClaimId ClaimId + Provider abi.ActorID + TermMax abi.ChainEpoch + func (t *ClaimTerm) MarshalCBOR(w io.Writer) error + func (t *ClaimTerm) UnmarshalCBOR(r io.Reader) error + type DataCap = abi.StoragePower + type ExtendClaimTermsParams struct + Terms []ClaimTerm + func (t *ExtendClaimTermsParams) MarshalCBOR(w io.Writer) error + func (t *ExtendClaimTermsParams) UnmarshalCBOR(r io.Reader) error + type ExtendClaimTermsReturn BatchReturn + func (t *ExtendClaimTermsReturn) MarshalCBOR(w io.Writer) error + func (t *ExtendClaimTermsReturn) UnmarshalCBOR(r io.Reader) error + type FailCode struct + Code exitcode.ExitCode + Idx uint64 + func (t *FailCode) MarshalCBOR(w io.Writer) error + func (t *FailCode) UnmarshalCBOR(r io.Reader) error + type GetClaimsParams struct + ClaimIds []ClaimId + Provider abi.ActorID + func (t *GetClaimsParams) MarshalCBOR(w io.Writer) error + func (t *GetClaimsParams) UnmarshalCBOR(r io.Reader) error + type GetClaimsReturn struct + BatchInfo BatchReturn + Claims []Claim + func (t *GetClaimsReturn) MarshalCBOR(w io.Writer) error + func (t *GetClaimsReturn) UnmarshalCBOR(r io.Reader) error + type ReceiverType uint64 + type RemoveDataCapParams struct + DataCapAmountToRemove DataCap + VerifiedClientToRemove addr.Address + VerifierRequest1 RemoveDataCapRequest + VerifierRequest2 RemoveDataCapRequest + func (t *RemoveDataCapParams) MarshalCBOR(w io.Writer) error + func (t *RemoveDataCapParams) UnmarshalCBOR(r io.Reader) error + type RemoveDataCapProposal struct + DataCapAmount DataCap + RemovalProposalID RmDcProposalID + VerifiedClient addr.Address + func (t *RemoveDataCapProposal) MarshalCBOR(w io.Writer) error + func (t *RemoveDataCapProposal) UnmarshalCBOR(r io.Reader) error + type RemoveDataCapRequest struct + Verifier addr.Address + VerifierSignature crypto.Signature + func (t *RemoveDataCapRequest) MarshalCBOR(w io.Writer) error + func (t *RemoveDataCapRequest) UnmarshalCBOR(r io.Reader) error + type RemoveDataCapReturn struct + DataCapRemoved DataCap + VerifiedClient addr.Address + func (t *RemoveDataCapReturn) MarshalCBOR(w io.Writer) error + func (t *RemoveDataCapReturn) UnmarshalCBOR(r io.Reader) error + type RemoveExpiredAllocationsParams struct + AllocationIds []AllocationId + Client abi.ActorID + func (t *RemoveExpiredAllocationsParams) MarshalCBOR(w io.Writer) error + func (t *RemoveExpiredAllocationsParams) UnmarshalCBOR(r io.Reader) error + type RemoveExpiredAllocationsReturn struct + Considered []AllocationId + DataCapRecovered DataCap + Results BatchReturn + func (t *RemoveExpiredAllocationsReturn) MarshalCBOR(w io.Writer) error + func (t *RemoveExpiredAllocationsReturn) UnmarshalCBOR(r io.Reader) error + type RemoveExpiredClaimsParams struct + ClaimIds []ClaimId + Provider abi.ActorID + func (t *RemoveExpiredClaimsParams) MarshalCBOR(w io.Writer) error + func (t *RemoveExpiredClaimsParams) UnmarshalCBOR(r io.Reader) error + type RemoveExpiredClaimsReturn struct + Considered []AllocationId + Results BatchReturn + func (t *RemoveExpiredClaimsReturn) MarshalCBOR(w io.Writer) error + func (t *RemoveExpiredClaimsReturn) UnmarshalCBOR(r io.Reader) error + type RestoreBytesParams struct + Address addr.Address + DealSize abi.StoragePower + func (t *RestoreBytesParams) MarshalCBOR(w io.Writer) error + func (t *RestoreBytesParams) UnmarshalCBOR(r io.Reader) error + type RmDcProposalID struct + ProposalID uint64 + func (t *RmDcProposalID) MarshalCBOR(w io.Writer) error + func (t *RmDcProposalID) UnmarshalCBOR(r io.Reader) error + type SectorAllocationClaim struct + AllocationId AllocationId + Client abi.ActorID + Data cid.Cid + Sector abi.SectorNumber + SectorExpiry abi.ChainEpoch + Size abi.PaddedPieceSize + func (t *SectorAllocationClaim) MarshalCBOR(w io.Writer) error + func (t *SectorAllocationClaim) UnmarshalCBOR(r io.Reader) error + type State struct + Allocations cid.Cid + Claims cid.Cid + NextAllocationId AllocationId + RemoveDataCapProposalIDs cid.Cid + RootKey address.Address + Verifiers cid.Cid + func ConstructState(store adt.Store, rootKeyAddress address.Address) (*State, error) + func (st *State) FindAllocation(store adt.Store, clientIdAddr address.Address, allocationId AllocationId) (*Allocation, bool, error) + func (st *State) FindClaim(store adt.Store, providerIdAddr address.Address, claimId ClaimId) (*Claim, bool, error) + func (st *State) GetAllAllocations(store adt.Store) (map[AllocationId]Allocation, error) + func (st *State) GetAllClaims(store adt.Store) (map[ClaimId]Claim, error) + func (st *State) LoadAllocationsToMap(store adt.Store, clientIdAddr address.Address) (map[AllocationId]Allocation, error) + func (st *State) LoadClaimsToMap(store adt.Store, providerIdAddr address.Address) (map[ClaimId]Claim, error) + func (t *State) MarshalCBOR(w io.Writer) error + func (t *State) UnmarshalCBOR(r io.Reader) error + type StateSummary struct + Allocations map[AllocationId]Allocation + Claims map[ClaimId]Claim + Verifiers map[addr.Address]DataCap + func CheckStateInvariants(st *State, store adt.Store, priorEpoch abi.ChainEpoch) (*StateSummary, *builtin.MessageAccumulator) + type UniversalReceiverParams struct + Payload []byte + Type_ ReceiverType + func (t *UniversalReceiverParams) MarshalCBOR(w io.Writer) error + func (t *UniversalReceiverParams) UnmarshalCBOR(r io.Reader) error + type UseBytesParams struct + Address addr.Address + DealSize abi.StoragePower + func (t *UseBytesParams) MarshalCBOR(w io.Writer) error + func (t *UseBytesParams) UnmarshalCBOR(r io.Reader) error