Skip to content

Conversation

aarshkshah1992
Copy link
Collaborator

@aarshkshah1992 aarshkshah1992 commented Oct 27, 2021

TODO

  • Ask Store Impl.
  • SQL integration.
  • GraphQL magic.
  • Deal Acceptance Filter.
  • Fund Manager.
  • Storage space manager.
  • Deal cancellation implementation using the DealHandler.
  • Watch deal on chain after AddPiece to track deal state & progress.
  • Integration with Lotus/Miner.

// ...
//
// TransferEvent (Started, Progress, Finished) ?
PercentComplete int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest that instead of percent complete, we have two fields in in this event:

  • bytes received
  • total bytes

Then the UX can decide how it wants to display that information.

// ProviderDealRejectionInfo is the information sent by the Storage Provider to the Client when it rejects a valid deal.
type ProviderDealRejectionInfo struct {
Reason string
Backoff time.Duration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave out the backoff time for now as I think we'll probably follow the askv2 protocol (which has a different mechanism)

// InboundCARPath is the file-path where the storage provider will persist the CAR file sent by the client.
InboundCARPath string
// TransferURL is the URL sent by the client where the Storage Provider can fetch the CAR file from.
TransferURL string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we define a TransferType struct and use it here, something like

TransferType {
    id string
    data []byte
}

ClientPeerID peer.ID

// DealDataRoot is the root of the IPLD DAG that the client wants to store.
DealDataRoot cid.Cid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DealDataRoot would be part of the TransferType struct

@aarshkshah1992 aarshkshah1992 changed the title Interfaces and types Boost SM 0.1 Oct 27, 2021
@nonsense nonsense changed the title Boost SM 0.1 1/ Boost SM 0.1 Oct 28, 2021
* integrate storagemarket.Provider into boost

* add SectorBlocks; add DealPublisher; add OnDealSectorCommitted; add ProviderNodeAdapter

* boost: add api client for cli interaction (#15)
@nonsense nonsense merged commit 2dfc695 into main Oct 28, 2021
@nonsense nonsense deleted the feat/interfaces-types branch October 28, 2021 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants