Struct forest_actor::market::State
source · [−]pub struct State {
pub proposals: Cid,
pub states: Cid,
pub pending_proposals: Cid,
pub escrow_table: Cid,
pub locked_table: Cid,
pub next_id: DealID,
pub deal_ops_by_epoch: Cid,
pub last_cron: ChainEpoch,
pub total_client_locked_colateral: TokenAmount,
pub total_provider_locked_colateral: TokenAmount,
pub total_client_storage_fee: TokenAmount,
}
Expand description
Market actor state
Fields
proposals: Cid
Proposals are deals that have been proposed and not yet cleaned up after expiry or termination. Amt<DealID, DealProposal>
states: Cid
Amt<DealID, DealState>
pending_proposals: Cid
PendingProposals tracks dealProposals that have not yet reached their deal start date. We track them here to ensure that miners can’t publish the same deal proposal twice
escrow_table: Cid
Total amount held in escrow, indexed by actor address (including both locked and unlocked amounts).
locked_table: Cid
Amount locked, indexed by actor address. Note: the amounts in this table do not affect the overall amount in escrow: only the portion of the total escrow amount that is locked.
next_id: DealID
Deal id state sequential incrementer
deal_ops_by_epoch: Cid
Metadata cached for efficient iteration over deals. SetMultimap
last_cron: ChainEpoch
total_client_locked_colateral: TokenAmount
Total Client Collateral that is locked -> unlocked when deal is terminated
total_provider_locked_colateral: TokenAmount
Total Provider Collateral that is locked -> unlocked when deal is terminated
total_client_storage_fee: TokenAmount
Total storage fee that is locked in escrow -> unlocked when payments are made
Implementations
Trait Implementations
Marshalls cbor encodable object into cbor bytes
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for State
impl UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more