Skip to content

Commit 469960c

Browse files
cleanup: Lotus client: remove markets and deal-making from Lotus Client (#11999)
* remove client CLI * remove markets CLI from miner * remove markets from all CLI * remove client API * update go mod * changes as per review
1 parent c9c0707 commit 469960c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+491
-18068
lines changed

api/api_full.go

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/google/uuid"
1010
blocks "github.com/ipfs/go-block-format"
1111
"github.com/ipfs/go-cid"
12-
"github.com/libp2p/go-libp2p/core/peer"
1312

1413
"github.com/filecoin-project/go-address"
1514
"github.com/filecoin-project/go-bitfield"
@@ -348,74 +347,6 @@ type FullNode interface {
348347

349348
// Other
350349

351-
// MethodGroup: Client
352-
// The Client methods all have to do with interacting with the storage and
353-
// retrieval markets as a client
354-
355-
// ClientImport imports file under the specified path into filestore.
356-
ClientImport(ctx context.Context, ref FileRef) (*ImportRes, error) //perm:admin
357-
// ClientRemoveImport removes file import
358-
ClientRemoveImport(ctx context.Context, importID imports.ID) error //perm:admin
359-
// ClientStartDeal proposes a deal with a miner.
360-
ClientStartDeal(ctx context.Context, params *StartDealParams) (*cid.Cid, error) //perm:admin
361-
// ClientStatelessDeal fire-and-forget-proposes an offline deal to a miner without subsequent tracking.
362-
ClientStatelessDeal(ctx context.Context, params *StartDealParams) (*cid.Cid, error) //perm:write
363-
// ClientGetDealInfo returns the latest information about a given deal.
364-
ClientGetDealInfo(context.Context, cid.Cid) (*DealInfo, error) //perm:read
365-
// ClientListDeals returns information about the deals made by the local client.
366-
ClientListDeals(ctx context.Context) ([]DealInfo, error) //perm:write
367-
// ClientGetDealUpdates returns the status of updated deals
368-
ClientGetDealUpdates(ctx context.Context) (<-chan DealInfo, error) //perm:write
369-
// ClientGetDealStatus returns status given a code
370-
ClientGetDealStatus(ctx context.Context, statusCode uint64) (string, error) //perm:read
371-
// ClientHasLocal indicates whether a certain CID is locally stored.
372-
ClientHasLocal(ctx context.Context, root cid.Cid) (bool, error) //perm:write
373-
// ClientFindData identifies peers that have a certain file, and returns QueryOffers (one per peer).
374-
ClientFindData(ctx context.Context, root cid.Cid, piece *cid.Cid) ([]QueryOffer, error) //perm:read
375-
// ClientMinerQueryOffer returns a QueryOffer for the specific miner and file.
376-
ClientMinerQueryOffer(ctx context.Context, miner address.Address, root cid.Cid, piece *cid.Cid) (QueryOffer, error) //perm:read
377-
// ClientRetrieve initiates the retrieval of a file, as specified in the order.
378-
ClientRetrieve(ctx context.Context, params RetrievalOrder) (*RestrievalRes, error) //perm:admin
379-
// ClientRetrieveWait waits for retrieval to be complete
380-
ClientRetrieveWait(ctx context.Context, deal retrievalmarket.DealID) error //perm:admin
381-
// ClientExport exports a file stored in the local filestore to a system file
382-
ClientExport(ctx context.Context, exportRef ExportRef, fileRef FileRef) error //perm:admin
383-
// ClientListRetrievals returns information about retrievals made by the local client
384-
ClientListRetrievals(ctx context.Context) ([]RetrievalInfo, error) //perm:write
385-
// ClientGetRetrievalUpdates returns status of updated retrieval deals
386-
ClientGetRetrievalUpdates(ctx context.Context) (<-chan RetrievalInfo, error) //perm:write
387-
// ClientQueryAsk returns a signed StorageAsk from the specified miner.
388-
ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*StorageAsk, error) //perm:read
389-
// ClientCalcCommP calculates the CommP and data size of the specified CID
390-
ClientDealPieceCID(ctx context.Context, root cid.Cid) (DataCIDSize, error) //perm:read
391-
// ClientCalcCommP calculates the CommP for a specified file
392-
ClientCalcCommP(ctx context.Context, inpath string) (*CommPRet, error) //perm:write
393-
// ClientGenCar generates a CAR file for the specified file.
394-
ClientGenCar(ctx context.Context, ref FileRef, outpath string) error //perm:write
395-
// ClientDealSize calculates real deal data size
396-
ClientDealSize(ctx context.Context, root cid.Cid) (DataSize, error) //perm:read
397-
// ClientListTransfers returns the status of all ongoing transfers of data
398-
ClientListDataTransfers(ctx context.Context) ([]DataTransferChannel, error) //perm:write
399-
ClientDataTransferUpdates(ctx context.Context) (<-chan DataTransferChannel, error) //perm:write
400-
// ClientRestartDataTransfer attempts to restart a data transfer with the given transfer ID and other peer
401-
ClientRestartDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error //perm:write
402-
// ClientCancelDataTransfer cancels a data transfer with the given transfer ID and other peer
403-
ClientCancelDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error //perm:write
404-
// ClientRetrieveTryRestartInsufficientFunds attempts to restart stalled retrievals on a given payment channel
405-
// which are stuck due to insufficient funds
406-
ClientRetrieveTryRestartInsufficientFunds(ctx context.Context, paymentChannel address.Address) error //perm:write
407-
408-
// ClientCancelRetrievalDeal cancels an ongoing retrieval deal based on DealID
409-
ClientCancelRetrievalDeal(ctx context.Context, dealid retrievalmarket.DealID) error //perm:write
410-
411-
// ClientUnimport removes references to the specified file from filestore
412-
// ClientUnimport(path string)
413-
414-
// ClientListImports lists imported files and their root CIDs
415-
ClientListImports(ctx context.Context) ([]Import, error) //perm:write
416-
417-
// ClientListAsks() []Ask
418-
419350
// MethodGroup: State
420351
// The State methods are used to query, inspect, and interact with chain state.
421352
// Most methods take a TipSetKey as a parameter. The state looked up is the parent state of the tipset.

0 commit comments

Comments
 (0)