filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.83k stars 1.25k forks source link

DDO - add API StateMarketSectorDeal API #11239

Open jennijuju opened 1 year ago

jennijuju commented 1 year ago

DDO FIP proposes,"Adds a sector→deal mapping in the built-in market actor"

map looks like

/// HAMT[Address]HAMT[SectorNumber]SectorDealIDs
    pub provider_sectors: Cid,

add an api `StateMarketSectorDeals to allow user to get deals in a given sector of a miner actor .

arajasek commented 1 year ago

Or just StateMinerDeals that returns all sector-deals of a particular miner?