Documentation ¶
Index ¶
- Variables
- func GetDealFees(deal market8.DealProposal, height abi.ChainEpoch) (abi.TokenAmount, abi.TokenAmount)
- type BalanceTable
- type DealIDState
- type DealProposal
- type DealProposalChanges
- type DealProposals
- type DealState
- type DealStateChange
- type DealStateChanges
- type DealStates
- type ProposalIDState
- type PublishStorageDealsReturn
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = builtin8.StorageMarketActorAddr Methods = builtin8.MethodsMarket )
Functions ¶
func GetDealFees ¶ added in v1.16.0
func GetDealFees(deal market8.DealProposal, height abi.ChainEpoch) (abi.TokenAmount, abi.TokenAmount)
returns the earned fees and pending fees for a given deal
Types ¶
type BalanceTable ¶
type BalanceTable interface { ForEach(cb func(address.Address, abi.TokenAmount) error) error Get(key address.Address) (abi.TokenAmount, error) }
type DealIDState ¶
type DealProposal ¶
type DealProposal = market8.DealProposal
type DealProposalChanges ¶
type DealProposalChanges struct { Added []ProposalIDState Removed []ProposalIDState }
func DiffDealProposals ¶
func DiffDealProposals(pre, cur DealProposals) (*DealProposalChanges, error)
type DealProposals ¶
type DealState ¶
func EmptyDealState ¶
func EmptyDealState() *DealState
type DealStateChange ¶
DealStateChange is a change in deal state from -> to
type DealStateChanges ¶
type DealStateChanges struct { Added []DealIDState Modified []DealStateChange Removed []DealIDState }
func DiffDealStates ¶
func DiffDealStates(pre, cur DealStates) (*DealStateChanges, error)
type DealStates ¶
type ProposalIDState ¶
type ProposalIDState struct { ID abi.DealID Proposal market8.DealProposal }
type PublishStorageDealsReturn ¶
type PublishStorageDealsReturn interface { DealIDs() ([]abi.DealID, error) // Note that this index is based on the batch of deals that were published, NOT the DealID IsDealValid(index uint64) (bool, int, error) }
func DecodePublishStorageDealsReturn ¶ added in v1.12.0
func DecodePublishStorageDealsReturn(b []byte, nv network.Version) (PublishStorageDealsReturn, error)
type State ¶
type State interface { cbor.Marshaler BalancesChanged(State) (bool, error) EscrowTable() (BalanceTable, error) LockedTable() (BalanceTable, error) TotalLocked() (abi.TokenAmount, error) StatesChanged(State) (bool, error) States() (DealStates, error) ProposalsChanged(State) (bool, error) Proposals() (DealProposals, error) VerifyDealsForActivation( minerAddr address.Address, deals []abi.DealID, currEpoch, sectorExpiry abi.ChainEpoch, ) (weight, verifiedWeight abi.DealWeight, err error) NextID() (abi.DealID, error) GetState() interface{} }
Click to show internal directories.
Click to hide internal directories.