Skip to content

Commit 8b67cc4

Browse files
ZenGround0arajasek
authored andcommitted
Update to new label type in v8 actors
1 parent 126c9c3 commit 8b67cc4

File tree

24 files changed

+42
-50
lines changed

24 files changed

+42
-50
lines changed

discovery/impl/local_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/stretchr/testify/require"
1414

1515
"github.com/filecoin-project/go-address"
16-
specst "github.com/filecoin-project/specs-actors/v7/support/testing"
16+
specst "github.com/filecoin-project/specs-actors/v8/support/testing"
1717

1818
discoveryimpl "github.com/filecoin-project/go-fil-markets/discovery/impl"
1919
"github.com/filecoin-project/go-fil-markets/discovery/migrations"

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ require (
1616
github.com/filecoin-project/go-fil-commp-hashhash v0.1.0
1717
github.com/filecoin-project/go-padreader v0.0.1
1818
github.com/filecoin-project/go-state-types v0.1.3
19-
github.com/filecoin-project/go-statemachine v1.0.1
19+
github.com/filecoin-project/go-statemachine v1.0.2-0.20220322104818-27f8fbb86dfd
2020
github.com/filecoin-project/go-statestore v0.2.0
2121
github.com/filecoin-project/index-provider v0.5.0
2222
github.com/filecoin-project/specs-actors v0.9.13
2323
github.com/filecoin-project/specs-actors/v2 v2.3.6 // indirect
24-
github.com/filecoin-project/specs-actors/v7 v7.0.1-0.20220312191006-c755c0402f62
24+
github.com/filecoin-project/specs-actors/v7 v7.0.0
25+
github.com/filecoin-project/specs-actors/v8 v8.0.0-20220407202104-e375a8763a1c
2526
github.com/filecoin-project/storetheindex v0.3.5
2627
github.com/hannahhoward/cbor-gen-for v0.0.0-20200817222906-ea96cece81f1
2728
github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e

go.sum

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ github.com/filecoin-project/go-state-types v0.1.1-0.20210810190654-139e0e79e69e/
259259
github.com/filecoin-project/go-state-types v0.1.3 h1:rzIJyQo5HO2ptc8Jcu8P0qTutnI7NWwTle54eAHoNO0=
260260
github.com/filecoin-project/go-state-types v0.1.3/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g=
261261
github.com/filecoin-project/go-statemachine v0.0.0-20200925024713-05bd7c71fbfe/go.mod h1:FGwQgZAt2Gh5mjlwJUlVB62JeYdo+if0xWxSEfBD9ig=
262-
github.com/filecoin-project/go-statemachine v1.0.1 h1:LQ60+JDVjMdLxXmVFM2jjontzOYnfVE7u02CXV3WKSw=
263-
github.com/filecoin-project/go-statemachine v1.0.1/go.mod h1:jZdXXiHa61n4NmgWFG4w8tnqgvZVHYbJ3yW7+y8bF54=
262+
github.com/filecoin-project/go-statemachine v1.0.2-0.20220322104818-27f8fbb86dfd h1:Ykxbz+LvSCUIl2zFaaPGmF8KHXTJu9T/PymgHr7IHjs=
263+
github.com/filecoin-project/go-statemachine v1.0.2-0.20220322104818-27f8fbb86dfd/go.mod h1:jZdXXiHa61n4NmgWFG4w8tnqgvZVHYbJ3yW7+y8bF54=
264264
github.com/filecoin-project/go-statestore v0.1.0/go.mod h1:LFc9hD+fRxPqiHiaqUEZOinUJB4WARkRfNl10O7kTnI=
265265
github.com/filecoin-project/go-statestore v0.2.0 h1:cRRO0aPLrxKQCZ2UOQbzFGn4WDNdofHZoGPjfNaAo5Q=
266266
github.com/filecoin-project/go-statestore v0.2.0/go.mod h1:8sjBYbS35HwPzct7iT4lIXjLlYyPor80aU7t7a/Kspo=
@@ -278,8 +278,12 @@ github.com/filecoin-project/specs-actors/v4 v4.0.0/go.mod h1:TkHXf/l7Wyw4ZejyXIP
278278
github.com/filecoin-project/specs-actors/v5 v5.0.4 h1:OY7BdxJWlUfUFXWV/kpNBYGXNPasDIedf42T3sGx08s=
279279
github.com/filecoin-project/specs-actors/v5 v5.0.4/go.mod h1:5BAKRAMsOOlD8+qCw4UvT/lTLInCJ3JwOWZbX8Ipwq4=
280280
github.com/filecoin-project/specs-actors/v6 v6.0.0/go.mod h1:V1AYfi5GkHXipx1mnVivoICZh3wtwPxDVuds+fbfQtk=
281-
github.com/filecoin-project/specs-actors/v7 v7.0.1-0.20220312191006-c755c0402f62 h1:3JJG6X+EepoVqrxDtYkYUjEz3CHFr4Y6Qd3SBlOYaC0=
282-
github.com/filecoin-project/specs-actors/v7 v7.0.1-0.20220312191006-c755c0402f62/go.mod h1:TA5FwCna+Yi36POaT7SLKXsgEDvJwc0V/L6ZsO19B9M=
281+
github.com/filecoin-project/specs-actors/v6 v6.0.1 h1:laxvHNsvrq83Y9n+W7znVCePi3oLyRf0Rkl4jFO8Wew=
282+
github.com/filecoin-project/specs-actors/v6 v6.0.1/go.mod h1:V1AYfi5GkHXipx1mnVivoICZh3wtwPxDVuds+fbfQtk=
283+
github.com/filecoin-project/specs-actors/v7 v7.0.0 h1:FQN7tjt3o68hfb3qLFSJBoLMuOFY0REkFVLO/zXj8RU=
284+
github.com/filecoin-project/specs-actors/v7 v7.0.0/go.mod h1:TA5FwCna+Yi36POaT7SLKXsgEDvJwc0V/L6ZsO19B9M=
285+
github.com/filecoin-project/specs-actors/v8 v8.0.0-20220407202104-e375a8763a1c h1:WdAk1RfDBOhypv+tFzdonzk3jjQIfk2FJBZdRyFrLN4=
286+
github.com/filecoin-project/specs-actors/v8 v8.0.0-20220407202104-e375a8763a1c/go.mod h1:UYIPg65iPWoFw5NEftREdJwv9b/5yaLKdCgTvNI/2FA=
283287
github.com/filecoin-project/storetheindex v0.3.5 h1:KoS9TvjPm6zIZfUH8atAHJbVHOO7GTP1MdTG+v0eE+Q=
284288
github.com/filecoin-project/storetheindex v0.3.5/go.mod h1:0r3d0kSpK63O6AvLr1CjAINLi+nWD49clzcnKV+GLpI=
285289
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=

retrievalmarket/impl/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
datatransfer "github.com/filecoin-project/go-data-transfer"
2424
"github.com/filecoin-project/go-state-types/abi"
2525
"github.com/filecoin-project/go-state-types/big"
26-
spect "github.com/filecoin-project/specs-actors/v7/support/testing"
26+
spect "github.com/filecoin-project/specs-actors/v8/support/testing"
2727

2828
"github.com/filecoin-project/go-fil-markets/piecestore"
2929
piecemigrations "github.com/filecoin-project/go-fil-markets/piecestore/migrations"

retrievalmarket/migrations/migrations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/filecoin-project/go-state-types/abi"
1616
"github.com/filecoin-project/go-state-types/big"
1717
"github.com/filecoin-project/go-statemachine/fsm"
18-
tutils "github.com/filecoin-project/specs-actors/v7/support/testing"
18+
tutils "github.com/filecoin-project/specs-actors/v8/support/testing"
1919

2020
"github.com/filecoin-project/go-fil-markets/piecestore/migrations"
2121
"github.com/filecoin-project/go-fil-markets/retrievalmarket"

shared_testutil/generators.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/filecoin-project/go-state-types/big"
1818
"github.com/filecoin-project/go-state-types/crypto"
1919
"github.com/filecoin-project/specs-actors/actors/builtin/paych"
20-
"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
20+
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
2121

2222
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
2323
"github.com/filecoin-project/go-fil-markets/storagemarket"
@@ -104,13 +104,15 @@ func MakeTestChannelID() datatransfer.ChannelID {
104104
func MakeTestUnsignedDealProposal() market.DealProposal {
105105
start := uint64(rand.Int31())
106106
end := start + uint64(rand.Int31())
107+
l, _ := market.NewLabelFromString("")
107108

108109
return market.DealProposal{
109110
PieceCID: GenerateCids(1)[0],
110111
PieceSize: abi.PaddedPieceSize(rand.Int63()),
111112

112113
Client: address.TestAddress,
113114
Provider: address.TestAddress2,
115+
Label: l,
114116

115117
StartEpoch: abi.ChainEpoch(start),
116118
EndEpoch: abi.ChainEpoch(end),

storagemarket/impl/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/filecoin-project/go-state-types/big"
2222
"github.com/filecoin-project/go-state-types/exitcode"
2323
"github.com/filecoin-project/go-statemachine/fsm"
24-
"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
24+
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
2525

2626
discoveryimpl "github.com/filecoin-project/go-fil-markets/discovery/impl"
2727
"github.com/filecoin-project/go-fil-markets/retrievalmarket"

storagemarket/impl/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
cborutil "github.com/filecoin-project/go-cbor-util"
2020
"github.com/filecoin-project/go-state-types/abi"
2121
"github.com/filecoin-project/go-state-types/big"
22-
"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
22+
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
2323

2424
"github.com/filecoin-project/go-fil-markets/shared_testutil"
2525
"github.com/filecoin-project/go-fil-markets/storagemarket"

storagemarket/impl/clientstates/client_states_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/filecoin-project/go-state-types/exitcode"
2020
"github.com/filecoin-project/go-statemachine/fsm"
2121
fsmtest "github.com/filecoin-project/go-statemachine/fsm/testutil"
22-
"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
22+
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
2323

2424
tut "github.com/filecoin-project/go-fil-markets/shared_testutil"
2525
"github.com/filecoin-project/go-fil-markets/storagemarket"

storagemarket/impl/clientutils/clientutils.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package clientutils
33

44
import (
55
"context"
6-
"github.com/filecoin-project/specs-actors/v7/actors/builtin/market"
76

87
"github.com/ipfs/go-cid"
98
bstore "github.com/ipfs/go-ipfs-blockstore"
@@ -17,6 +16,7 @@ import (
1716
"github.com/filecoin-project/go-commp-utils/writer"
1817
"github.com/filecoin-project/go-state-types/abi"
1918
"github.com/filecoin-project/go-state-types/crypto"
19+
"github.com/filecoin-project/specs-actors/v8/actors/builtin/market"
2020

2121
"github.com/filecoin-project/go-fil-markets/shared"
2222
"github.com/filecoin-project/go-fil-markets/storagemarket"
@@ -104,10 +104,9 @@ func LabelField(payloadCID cid.Cid) (market.DealLabel, error) {
104104
} else {
105105
cidStr, err = payloadCID.StringOfBase(multibase.Base64)
106106
}
107-
108107
if err != nil {
109108
return market.EmptyDealLabel, err
110109
}
111110

112-
return market.NewDealLabelFromString(cidStr)
111+
return market.NewLabelFromString(cidStr)
113112
}

0 commit comments

Comments
 (0)