Struct forest_actor::market::DealProposal
source · [−]pub struct DealProposal {
pub piece_cid: Cid,
pub piece_size: PaddedPieceSize,
pub verified_deal: bool,
pub client: Address,
pub provider: Address,
pub label: String,
pub start_epoch: ChainEpoch,
pub end_epoch: ChainEpoch,
pub storage_price_per_epoch: TokenAmount,
pub provider_collateral: TokenAmount,
pub client_collateral: TokenAmount,
}
Expand description
Note: Deal Collateral is only released and returned to clients and miners when the storage deal stops counting towards power. In the current iteration, it will be released when the sector containing the storage deals expires, even though some storage deals can expire earlier than the sector does. Collaterals are denominated in PerEpoch to incur a cost for self dealing or minimal deals that last for a long time. Note: ClientCollateralPerEpoch may not be needed and removed pending future confirmation. There will be a Minimum value for both client and provider deal collateral.
Fields
piece_cid: Cid
piece_size: PaddedPieceSize
verified_deal: bool
client: Address
provider: Address
label: String
Arbitrary client chosen label to apply to the deal
start_epoch: ChainEpoch
end_epoch: ChainEpoch
storage_price_per_epoch: TokenAmount
provider_collateral: TokenAmount
client_collateral: TokenAmount
Implementations
Computes weight for a deal proposal, which is a function of its size and duration.
Trait Implementations
Marshalls cbor encodable object into cbor bytes
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DealProposal
impl Send for DealProposal
impl Sync for DealProposal
impl Unpin for DealProposal
impl UnwindSafe for DealProposal
Blanket Implementations
Mutably borrows from an owned value. Read more