Skip to content

Commit

Permalink
FIP-0076 Add Market::GetDealSector method (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth authored Nov 8, 2023
1 parent 200c368 commit 6e29c6c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions FIPS/fip-0076.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,25 @@ struct OnMinerSectorsTerminateParams {
The sector is removed from the `ProviderSectors` mapping, if present.
Any deals mapped to that sector are marked as terminated, and subsequent processing deferred to cron.

#### GetDealSector

A new FRC-0042 exported method "GetDealSector" (method 2611213344) returns the sector number in which
a deal's data is stored, while a deal is active.
If a deal is published but not yet activated, aborts with `EX_DEAL_NOT_ACTIVATED = 33`.
If a deal is not found, aborts with the same exit codes as "GetDealActivation".

```
// "Transparent" CBOR-encoding, the singleton field is encoeded directly.
struct GetDealSectorParams {
DealID: DealID,
}
// "Transparent" CBOR-encoding, the singleton field is encoeded directly.
struct GetDealSectorReturn {
SectorNumber: SectorNumber,
}
```

### Migration

The built-in market actor's `ProviderSectors` mapping is initialised from the existing deal state
Expand Down

0 comments on commit 6e29c6c

Please sign in to comment.