Skip to content

Commit 2866a74

Browse files
fix: replace ActivateDeals with BatchActivateDeals and update params (#414)
1 parent dae5e9e commit 2866a74

File tree

24 files changed

+372
-372
lines changed

24 files changed

+372
-372
lines changed

builtin/v12/gen/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func main() {
117117
market.WithdrawBalanceParams{},
118118
market.PublishStorageDealsParams{},
119119
market.PublishStorageDealsReturn{},
120-
market.ActivateDealsParams{},
120+
market.BatchActivateDealsParams{},
121121
market.ActivateDealsResult{},
122122
market.VerifyDealsForActivationParams{},
123123
market.VerifyDealsForActivationReturn{},

builtin/v12/market/cbor_gen.go

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

builtin/v12/market/market_types.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type VerifyDealsForActivationParams struct {
3232
}
3333

3434
type SectorDeals struct {
35+
SectorNumber abi.SectorNumber
3536
SectorType abi.RegisteredSealProof
3637
SectorExpiry abi.ChainEpoch
3738
DealIDs []abi.DealID
@@ -42,9 +43,9 @@ type VerifyDealsForActivationReturn struct {
4243
UnsealedCIDs []*cid.Cid
4344
}
4445

45-
type ActivateDealsParams struct {
46-
DealIDs []abi.DealID
47-
SectorExpiry abi.ChainEpoch
46+
type BatchActivateDealsParams struct {
47+
Sectors []SectorDeals
48+
ComputeCid bool
4849
}
4950

5051
type ActivateDealsResult struct {

builtin/v12/market/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Methods = map[abi.MethodNum]builtin.MethodMeta{
1515
4: builtin.NewMethodMeta("PublishStorageDeals", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDeals
1616
builtin.MustGenerateFRCMethodNum("PublishStorageDeals"): builtin.NewMethodMeta("PublishStorageDealsExported", *new(func(*PublishStorageDealsParams) *PublishStorageDealsReturn)), // PublishStorageDealsExported
1717
5: builtin.NewMethodMeta("VerifyDealsForActivation", *new(func(*VerifyDealsForActivationParams) *VerifyDealsForActivationReturn)), // VerifyDealsForActivation
18-
6: builtin.NewMethodMeta("ActivateDeals", *new(func(*ActivateDealsParams) *abi.EmptyValue)), // ActivateDeals
18+
6: builtin.NewMethodMeta("BatchActivateDeals", *new(func(*BatchActivateDealsParams) *abi.EmptyValue)), // BatchActivateDeals
1919
7: builtin.NewMethodMeta("OnMinerSectorsTerminate", *new(func(*OnMinerSectorsTerminateParams) *abi.EmptyValue)), // OnMinerSectorsTerminate
2020
8: builtin.NewMethodMeta("ComputeDataCommitment", nil), // deprecated
2121
9: builtin.NewMethodMeta("CronTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)), // CronTick

builtin/v13/gen/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func main() {
118118
market.WithdrawBalanceParams{},
119119
market.PublishStorageDealsParams{},
120120
market.PublishStorageDealsReturn{},
121-
market.ActivateDealsParams{},
121+
market.BatchActivateDealsParams{},
122122
market.ActivateDealsResult{},
123123
market.VerifyDealsForActivationParams{},
124124
market.VerifyDealsForActivationReturn{},

0 commit comments

Comments
 (0)