Skip to content

Commit

Permalink
Use type aliases instead of duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored Sep 20, 2023
1 parent eb95739 commit d00ad77
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions w3-filecoin.md
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,7 @@ type PieceAccept struct {
nb PieceAcceptDetail
}
type PieceAcceptDetail struct {
# Piece as Filecoin Piece with padding
piece PieceLink
# Grouping for joining segments into an aggregate (subset of space)
group string
}
type PieceAcceptDetail = PieceOfferDetail
```

### `aggregate/offer` schema
Expand All @@ -809,12 +804,7 @@ type AggregateAccept struct {
nb AggregateAcceptDetail
}
type AggregateAcceptDetail struct {
# Contains each individual piece within Aggregate piece
pieces &AggregatePieces
# Piece as Aggregate of CARs with padding
aggregate PieceLink
}
type AggregateAcceptDetail = AggregateOfferDetail
```

### `deal/info` schema
Expand Down

0 comments on commit d00ad77

Please sign in to comment.