Skip to content

Commit efad545

Browse files
authored
feat: DealIDList with cbor-gen for market.ProviderSectors decoding (#378)
1 parent 94616d0 commit efad545

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

abi/cbor_gen.go

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

abi/deal.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import "github.com/filecoin-project/go-state-types/big"
44

55
type DealID uint64
66

7+
type DealIDList []DealID
8+
79
// BigInt types are aliases rather than new types because the latter introduce incredible amounts of noise
810
// converting to and from types in order to manipulate values.
911
// We give up some type safety for ergonomics.

gen/gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ func main() {
1313
abi.PieceInfo{},
1414
abi.SectorID{},
1515
abi.AddrPairKey{},
16+
abi.DealIDList{},
1617
); err != nil {
1718
panic(err)
1819
}

0 commit comments

Comments
 (0)