Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarketDealProposal ¶
type MarketDealProposal struct { // Epoch at which this deal proposal was added or changed. Height int64 `pg:",pk,notnull,use_zero"` // Identifier for the deal. DealID uint64 `pg:",pk,use_zero"` // CID of the parent state root for this deal. StateRoot string `pg:",notnull"` // The piece size in bytes with padding. PaddedPieceSize uint64 `pg:",use_zero"` // The piece size in bytes without padding. UnpaddedPieceSize uint64 `pg:",use_zero"` // The epoch at which this deal with begin. Storage deal must appear in a sealed (proven) sector no later than start_epoch, otherwise it is invalid. StartEpoch int64 `pg:",use_zero"` // The epoch at which this deal with end. EndEpoch int64 `pg:",use_zero"` // Address of the actor proposing the deal. ClientID string `pg:",notnull"` // Address of the actor providing the services. ProviderID string `pg:",notnull"` // The amount of FIL (in attoFIL) the client has pledged as collateral. ClientCollateral string `pg:",notnull"` // The amount of FIL (in attoFIL) the provider has pledged as collateral. The Provider deal collateral is only slashed when a sector is terminated before the deal expires. ProviderCollateral string `pg:",notnull"` // The amount of FIL (in attoFIL) that will be transferred from the client to the provider every epoch this deal is active for. StoragePricePerEpoch string `pg:",notnull"` // CID of a sector piece. A Piece is an object that represents a whole or part of a File. PieceCID string `pg:",notnull"` // Deal is with a verified provider. IsVerified bool `pg:",notnull,use_zero"` // An arbitrary client chosen label to apply to the deal. The value is base64 encoded before persisting. Label string // When true Label contains a valid UTF-8 string encoded in base64. When false Label contains raw bytes encoded in base64. Related to FIP: https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0027.md IsString bool }
MarketDealProposal contains all storage deal states with latest values applied to end_epoch when updates are detected on-chain.
func (*MarketDealProposal) Persist ¶
func (dp *MarketDealProposal) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type MarketDealProposals ¶
type MarketDealProposals []*MarketDealProposal
func (MarketDealProposals) Persist ¶
func (dps MarketDealProposals) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type MarketDealState ¶
type MarketDealState struct { Height int64 `pg:",pk,notnull,use_zero"` DealID uint64 `pg:",pk,use_zero"` SectorStartEpoch int64 `pg:",pk,use_zero"` LastUpdateEpoch int64 `pg:",pk,use_zero"` SlashEpoch int64 `pg:",pk,use_zero"` StateRoot string `pg:",notnull"` }
func (*MarketDealState) Persist ¶
func (ds *MarketDealState) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type MarketDealStates ¶
type MarketDealStates []*MarketDealState
func (MarketDealStates) Persist ¶
func (dss MarketDealStates) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
type MarketTaskResult ¶
type MarketTaskResult struct { Proposals MarketDealProposals States MarketDealStates }
func (*MarketTaskResult) Persist ¶
func (mtr *MarketTaskResult) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error
Click to show internal directories.
Click to hide internal directories.