Struct forest_actor::market::State [−][src]
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
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
impl State
[src]
impl State
[src]pub fn new<BS: BlockStore>(store: &BS) -> Result<Self, Box<dyn StdError>>
[src]
pub fn total_locked(&self) -> TokenAmount
[src]
Trait Implementations
impl Cbor for State
[src]
impl Cbor for State
[src]impl<'de> Deserialize<'de> for State
[src]
impl<'de> Deserialize<'de> for State
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,