Skip to content

Commit

Permalink
fix: make ClaimExtensionRequest provider type match builtin-actors (#254
Browse files Browse the repository at this point in the history
)

FIP says Address, builtin-actors says ActorID for both ClaimExtensionRequest
and AllocationRequest. This mismatch has been in place since v10.

Ref: filecoin-project/builtin-actors@686a2f2
  • Loading branch information
rvagg authored Mar 15, 2024
1 parent c07c5f9 commit 0a34ea1
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 32 deletions.
16 changes: 11 additions & 5 deletions builtin/v10/verifreg/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions builtin/v10/verifreg/verifreg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@ type AllocationRequest struct {
}

type ClaimExtensionRequest struct {
Provider addr.Address
Claim ClaimId
TermMax abi.ChainEpoch
// The provider (miner actor) which may claim the allocation.
Provider abi.ActorID
// Identifier of the claim to be extended.
Claim ClaimId
// The new maximum period for which a provider can earn quality-adjusted power
// for the piece (epochs).
TermMax abi.ChainEpoch
}

type AllocationRequests struct {
Expand Down
16 changes: 11 additions & 5 deletions builtin/v11/verifreg/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions builtin/v11/verifreg/verifreg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,13 @@ type AllocationRequest struct {
}

type ClaimExtensionRequest struct {
Provider addr.Address
Claim ClaimId
TermMax abi.ChainEpoch
// The provider (miner actor) which may claim the allocation.
Provider abi.ActorID
// Identifier of the claim to be extended.
Claim ClaimId
// The new maximum period for which a provider can earn quality-adjusted power
// for the piece (epochs).
TermMax abi.ChainEpoch
}

type AllocationRequests struct {
Expand Down
16 changes: 11 additions & 5 deletions builtin/v12/verifreg/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions builtin/v12/verifreg/verifreg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,13 @@ type AllocationRequest struct {
}

type ClaimExtensionRequest struct {
Provider addr.Address
Claim ClaimId
TermMax abi.ChainEpoch
// The provider (miner actor) which may claim the allocation.
Provider abi.ActorID
// Identifier of the claim to be extended.
Claim ClaimId
// The new maximum period for which a provider can earn quality-adjusted power
// for the piece (epochs).
TermMax abi.ChainEpoch
}

type AllocationRequests struct {
Expand Down
16 changes: 11 additions & 5 deletions builtin/v13/verifreg/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions builtin/v13/verifreg/verifreg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,13 @@ type AllocationRequest struct {
}

type ClaimExtensionRequest struct {
Provider addr.Address
Claim ClaimId
TermMax abi.ChainEpoch
// The provider (miner actor) which may claim the allocation.
Provider abi.ActorID
// Identifier of the claim to be extended.
Claim ClaimId
// The new maximum period for which a provider can earn quality-adjusted power
// for the piece (epochs).
TermMax abi.ChainEpoch
}

type AllocationRequests struct {
Expand Down

0 comments on commit 0a34ea1

Please sign in to comment.