Skip to content

Commit

Permalink
Merge pull request #72 from filecoin-project/feat/fix_retrieval_merge…
Browse files Browse the repository at this point in the history
…_retrievalcmd

Feat/fix retrieval merge retrievalcmd
  • Loading branch information
diwufeiwen authored Dec 23, 2021
2 parents 9adf61a + 3faaa31 commit 0c69915
Show file tree
Hide file tree
Showing 16 changed files with 528 additions and 462 deletions.
10 changes: 5 additions & 5 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/filecoin-project/venus-market/client"
"github.com/filecoin-project/venus-market/imports"
"github.com/filecoin-project/venus-market/types"
"github.com/filecoin-project/venus-market/utils"
)

//mock for gen
Expand Down Expand Up @@ -180,10 +179,11 @@ type MarketClientNode interface {
// ClientMinerQueryOffer returns a QueryOffer for the specific miner and file.
ClientMinerQueryOffer(ctx context.Context, miner address.Address, root cid.Cid, piece *cid.Cid) (client.QueryOffer, error) //perm:read
// ClientRetrieve initiates the retrieval of a file, as specified in the order.
ClientRetrieve(ctx context.Context, order client.RetrievalOrder, ref *client.FileRef) error //perm:admin
// ClientRetrieveWithEvents initiates the retrieval of a file, as specified in the order, and provides a channel
// of status updates.
ClientRetrieveWithEvents(ctx context.Context, order client.RetrievalOrder, ref *client.FileRef) (<-chan utils.RetrievalEvent, error) //perm:admin
ClientRetrieve(ctx context.Context, params client.RetrievalOrder) (*client.RestrievalRes, error) //perm:admin
// ClientRetrieveWait waits for retrieval to be complete
ClientRetrieveWait(ctx context.Context, deal retrievalmarket.DealID) error //perm:admin
// ClientExport exports a file stored in the local filestore to a system file
ClientExport(ctx context.Context, exportRef client.ExportRef, fileRef client.FileRef) error //perm:admin
// ClientListRetrievals returns information about retrievals made by the local client
ClientListRetrievals(ctx context.Context) ([]client.RetrievalInfo, error) //perm:write
// ClientGetRetrievalUpdates returns status of updated retrieval deals
Expand Down
3 changes: 3 additions & 0 deletions api/impl/market_clent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package impl

import (
"context"
"github.com/filecoin-project/venus-market/api"
clients2 "github.com/filecoin-project/venus-market/api/clients"
"github.com/filecoin-project/venus-market/client"
mTypes "github.com/filecoin-project/venus-messager/types"
Expand All @@ -11,6 +12,8 @@ import (
"github.com/ipfs/go-cid"
)

var _ api.MarketClientNode = (*MarketClientNodeImpl)(nil)

type MarketClientNodeImpl struct {
client.API
FundAPI
Expand Down
34 changes: 21 additions & 13 deletions api/proxy_gen.go

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

Loading

0 comments on commit 0c69915

Please sign in to comment.