Skip to content

Commit

Permalink
fix: use new MaxSectorExpirationExtension (#1788)
Browse files Browse the repository at this point in the history
* use new MaxSectorExpirationExtension

* go mod tidy
  • Loading branch information
LexLuthr authored Oct 31, 2023
1 parent 5e75e4e commit a317b92
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
github.com/filecoin-project/go-paramfetch v0.0.4
github.com/filecoin-project/go-state-types v0.12.5
github.com/filecoin-project/go-statestore v0.2.0
github.com/filecoin-project/specs-actors v0.9.15
github.com/filecoin-project/specs-actors v0.9.15 // indirect
github.com/gbrlsnchs/jwt/v3 v3.0.1
github.com/golang/mock v1.6.0
github.com/google/uuid v1.3.0
Expand Down Expand Up @@ -160,7 +160,7 @@ require (
github.com/filecoin-project/specs-actors/v3 v3.1.2 // indirect
github.com/filecoin-project/specs-actors/v4 v4.0.2 // indirect
github.com/filecoin-project/specs-actors/v5 v5.0.6 // indirect
github.com/filecoin-project/specs-actors/v6 v6.0.2
github.com/filecoin-project/specs-actors/v6 v6.0.2 // indirect
github.com/filecoin-project/specs-actors/v7 v7.0.1 // indirect
github.com/filecoin-project/specs-actors/v8 v8.0.1 // indirect
github.com/flynn/noise v1.0.0 // indirect
Expand Down
9 changes: 4 additions & 5 deletions markets/storageadapter/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ import (

"github.com/filecoin-project/boost-gfm/shared"
"github.com/filecoin-project/boost-gfm/storagemarket"
"github.com/filecoin-project/boost/markets/utils"
"github.com/filecoin-project/go-address"
cborutil "github.com/filecoin-project/go-cbor-util"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/builtin"
markettypes "github.com/filecoin-project/go-state-types/builtin/v9/market"
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/go-state-types/exitcode"
builtin6 "github.com/filecoin-project/specs-actors/v6/actors/builtin"

"github.com/filecoin-project/boost/markets/utils"
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/build"
marketactor "github.com/filecoin-project/lotus/chain/actors/builtin/market"
Expand Down Expand Up @@ -110,7 +109,7 @@ func (c *ClientNodeAdapter) AddFunds(ctx context.Context, addr address.Address,
To: marketactor.Address,
From: addr,
Value: amount,
Method: builtin6.MethodsMarket.AddBalance,
Method: builtin.MethodsMarket.AddBalance,
}, nil)
if err != nil {
return cid.Undef, err
Expand Down Expand Up @@ -179,7 +178,7 @@ func (c *ClientNodeAdapter) ValidatePublishedDeal(ctx context.Context, deal stor
return 0, xerrors.Errorf("deal publish message wasn't set to StorageMarket actor (to=%s)", pubmsg.To)
}

if pubmsg.Method != builtin6.MethodsMarket.PublishStorageDeals {
if pubmsg.Method != builtin.MethodsMarket.PublishStorageDeals {
return 0, xerrors.Errorf("deal publish message called incorrect method (method=%s)", pubmsg.Method)
}

Expand Down
2 changes: 1 addition & 1 deletion storagemarket/deal_acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/builtin/v12/market"
"github.com/filecoin-project/specs-actors/actors/builtin/miner"
"github.com/filecoin-project/go-state-types/builtin/v12/miner"
)

const DealMaxLabelSize = 256
Expand Down
2 changes: 1 addition & 1 deletion storagemarket/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/builtin"
"github.com/filecoin-project/go-state-types/builtin/v12/miner"
"github.com/filecoin-project/go-state-types/builtin/v9/market"
"github.com/filecoin-project/go-state-types/crypto"
acrypto "github.com/filecoin-project/go-state-types/crypto"
Expand All @@ -48,7 +49,6 @@ import (
"github.com/filecoin-project/lotus/node/repo"
sealing "github.com/filecoin-project/lotus/storage/pipeline"
"github.com/filecoin-project/lotus/storage/sealer/storiface"
"github.com/filecoin-project/specs-actors/actors/builtin/miner"
"github.com/golang/mock/gomock"
"github.com/google/uuid"
"github.com/ipfs/go-cid"
Expand Down

0 comments on commit a317b92

Please sign in to comment.