Documentation ¶
Overview ¶
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Code generated by: `make actors-gen`. DO NOT EDIT.
Index ¶
- Variables
- func AllCodes() []cid.Cid
- func NewMarketProposalsDiffContainer(pre, cur DealProposals) *marketProposalsDiffContainer
- func NewMarketStatesDiffContainer(pre, cur DealStates) *marketStatesDiffContainer
- type BalanceTable
- type ClientDealProposal
- type DealIDState
- type DealProposal
- type DealProposalChanges
- type DealProposals
- type DealState
- type DealStateChange
- type DealStateChanges
- type DealStates
- type ProposalIDState
- type PublishStorageDealsParams
- type PublishStorageDealsReturn
- type State
- type VerifyDealsForActivationParams
- type WithdrawBalanceParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = builtin6.StorageMarketActorAddr Methods = builtin6.MethodsMarket )
Functions ¶
func NewMarketProposalsDiffContainer ¶
func NewMarketProposalsDiffContainer(pre, cur DealProposals) *marketProposalsDiffContainer
func NewMarketStatesDiffContainer ¶
func NewMarketStatesDiffContainer(pre, cur DealStates) *marketStatesDiffContainer
Types ¶
type BalanceTable ¶
type BalanceTable interface { ForEach(cb func(address.Address, abi.TokenAmount) error) error Get(key address.Address) (abi.TokenAmount, error) }
type ClientDealProposal ¶
type ClientDealProposal = market0.ClientDealProposal
type DealIDState ¶
type DealProposal ¶
type DealProposal struct { PieceCID cid.Cid PieceSize abi.PaddedPieceSize VerifiedDeal bool Client address.Address Provider address.Address Label string StartEpoch abi.ChainEpoch EndEpoch abi.ChainEpoch StoragePricePerEpoch abi.TokenAmount ProviderCollateral abi.TokenAmount ClientCollateral abi.TokenAmount }
func (DealProposal) GetDealFees ¶
func (deal DealProposal) GetDealFees(height abi.ChainEpoch) (abi.TokenAmount, abi.TokenAmount)
returns the earned fees and pending fees for a given deal
type DealProposalChanges ¶
type DealProposalChanges struct { Added []ProposalIDState Removed []ProposalIDState }
func DiffDealProposals ¶
type DealProposals ¶
type DealProposals interface { ForEach(cb func(id abi.DealID, dp DealProposal) error) error Get(id abi.DealID) (*DealProposal, bool, error) // contains filtered or unexported methods }
type DealState ¶
type DealState struct { SectorStartEpoch abi.ChainEpoch // -1 if not yet included in proven sector LastUpdatedEpoch abi.ChainEpoch // -1 if deal state never updated SlashEpoch abi.ChainEpoch // -1 if deal never slashed }
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 ¶
type DealStates ¶
type ProposalIDState ¶
type ProposalIDState struct { ID abi.DealID Proposal DealProposal }
type PublishStorageDealsParams ¶
type PublishStorageDealsParams = market0.PublishStorageDealsParams
type PublishStorageDealsReturn ¶
type PublishStorageDealsReturn = market0.PublishStorageDealsReturn
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid 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) DealProposalsAmtBitwidth() int DealStatesAmtBitwidth() int }
type VerifyDealsForActivationParams ¶
type VerifyDealsForActivationParams = market0.VerifyDealsForActivationParams
type WithdrawBalanceParams ¶
type WithdrawBalanceParams = market0.WithdrawBalanceParams
Click to show internal directories.
Click to hide internal directories.