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: ChainEpochtotal_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

Unmarshals cbor encoded bytes to object

Returns the content identifier of the raw block of data Default is Blake2b256 hash Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.