-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Voucher refactor integration (#707) * refactor(storagemarket): update storagemarket * refactor(retrievalmarket): use new voucher system refactor for predictability and correctness using new voucher system * chore(deps): update go-data-transfer v2 * style(lint): prep for pr * docs(retrievalmarket): add comments * chore(deps): update go-statemachine * style(imports): fix imports chore(retrievalmarket): remove old types (#712) feat(ipld): bindnode support for all voucher types (#713) * feat(ipld): new data-transfer ipld vouchers + bindnode * feat(ipld): simplify ipldutils API * feat(ipld): use new bindnode registry in go-ipld-prime Ref: ipld/go-ipld-prime#437 feat(deps): update data transfer 61f0756c feat(deps): update data transfer and other deps update to master data transfer with libp2p v0.22.0 plus associated other deps
- Loading branch information
1 parent
165eeb4
commit 319fef7
Showing
104 changed files
with
2,793 additions
and
5,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,8 @@ | ||
package migrations | ||
|
||
import ( | ||
versioning "github.com/filecoin-project/go-ds-versioning/pkg" | ||
"github.com/filecoin-project/go-ds-versioning/pkg/versioned" | ||
|
||
"github.com/filecoin-project/go-fil-markets/discovery" | ||
"github.com/filecoin-project/go-fil-markets/retrievalmarket" | ||
"github.com/filecoin-project/go-fil-markets/retrievalmarket/migrations" | ||
) | ||
|
||
//go:generate cbor-gen-for RetrievalPeers0 | ||
|
||
// RetrievalPeers0 is version 0 of RetrievalPeers | ||
type RetrievalPeers0 struct { | ||
Peers []migrations.RetrievalPeer0 | ||
} | ||
|
||
// MigrateRetrievalPeers0To1 migrates a tuple encoded list of retrieval peers to a map encoded list | ||
func MigrateRetrievalPeers0To1(oldRps *RetrievalPeers0) (*discovery.RetrievalPeers, error) { | ||
peers := make([]retrievalmarket.RetrievalPeer, 0, len(oldRps.Peers)) | ||
for _, oldRp := range oldRps.Peers { | ||
peers = append(peers, retrievalmarket.RetrievalPeer{ | ||
Address: oldRp.Address, | ||
ID: oldRp.ID, | ||
PieceCID: oldRp.PieceCID, | ||
}) | ||
} | ||
return &discovery.RetrievalPeers{ | ||
Peers: peers, | ||
}, nil | ||
} | ||
|
||
// RetrievalPeersMigrations are migrations for the store local discovery list of peers we can retrieve from | ||
var RetrievalPeersMigrations = versioned.BuilderList{ | ||
versioned.NewVersionedBuilder(MigrateRetrievalPeers0To1, versioning.VersionKey("1")), | ||
} | ||
var RetrievalPeersMigrations = versioned.BuilderList{} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule filecoin-ffi
updated
72 files
Oops, something went wrong.