github.com/filecoin-project/specs-actors/v4@v4.0.2/actors/builtin/market/deal.go (about) 1 package market 2 3 import ( 4 market0 "github.com/filecoin-project/specs-actors/actors/builtin/market" 5 ) 6 7 //var PieceCIDPrefix = cid.Prefix{ 8 // Version: 1, 9 // Codec: cid.FilCommitmentUnsealed, 10 // MhType: mh.SHA2_256_TRUNC254_PADDED, 11 // MhLength: 32, 12 //} 13 var PieceCIDPrefix = market0.PieceCIDPrefix 14 15 // Note: Deal Collateral is only released and returned to clients and miners 16 // when the storage deal stops counting towards power. In the current iteration, 17 // it will be released when the sector containing the storage deals expires, 18 // even though some storage deals can expire earlier than the sector does. 19 // Collaterals are denominated in PerEpoch to incur a cost for self dealing or 20 // minimal deals that last for a long time. 21 // Note: ClientCollateralPerEpoch may not be needed and removed pending future confirmation. 22 // There will be a Minimum value for both client and provider deal collateral. 23 //type DealProposal struct { 24 // PieceCID cid.Cid `checked:"true"` // Checked in validateDeal, CommP 25 // PieceSize abi.PaddedPieceSize 26 // VerifiedDeal bool 27 // Client addr.Address 28 // Provider addr.Address 29 // 30 // // Label is an arbitrary client chosen label to apply to the deal 31 // // TODO: Limit the size of this: https://github.com/filecoin-project/specs-actors/issues/897 32 // Label string 33 // 34 // // Nominal start epoch. Deal payment is linear between StartEpoch and EndEpoch, 35 // // with total amount StoragePricePerEpoch * (EndEpoch - StartEpoch). 36 // // Storage deal must appear in a sealed (proven) sector no later than StartEpoch, 37 // // otherwise it is invalid. 38 // StartEpoch abi.ChainEpoch 39 // EndEpoch abi.ChainEpoch 40 // StoragePricePerEpoch abi.TokenAmount 41 // 42 // ProviderCollateral abi.TokenAmount 43 // ClientCollateral abi.TokenAmount 44 //} 45 type DealProposal = market0.DealProposal 46 47 // ClientDealProposal is a DealProposal signed by a client 48 //type ClientDealProposal struct { 49 // Proposal DealProposal 50 // ClientSignature crypto.Signature 51 //} 52 type ClientDealProposal = market0.ClientDealProposal