Skip to content

Commit 6e29c6c

Browse files
authored
FIP-0076 Add Market::GetDealSector method (#852)
1 parent 200c368 commit 6e29c6c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

FIPS/fip-0076.md

+19
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,25 @@ struct OnMinerSectorsTerminateParams {
542542
The sector is removed from the `ProviderSectors` mapping, if present.
543543
Any deals mapped to that sector are marked as terminated, and subsequent processing deferred to cron.
544544

545+
#### GetDealSector
546+
547+
A new FRC-0042 exported method "GetDealSector" (method 2611213344) returns the sector number in which
548+
a deal's data is stored, while a deal is active.
549+
If a deal is published but not yet activated, aborts with `EX_DEAL_NOT_ACTIVATED = 33`.
550+
If a deal is not found, aborts with the same exit codes as "GetDealActivation".
551+
552+
```
553+
// "Transparent" CBOR-encoding, the singleton field is encoeded directly.
554+
struct GetDealSectorParams {
555+
DealID: DealID,
556+
}
557+
558+
// "Transparent" CBOR-encoding, the singleton field is encoeded directly.
559+
struct GetDealSectorReturn {
560+
SectorNumber: SectorNumber,
561+
}
562+
```
563+
545564
### Migration
546565

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

0 commit comments

Comments
 (0)