Skip to content

Commit

Permalink
feat(retrievalmarkets): expose GetDynamicAsk
Browse files Browse the repository at this point in the history
expose the GetDynamicAsk method on the provider interface
  • Loading branch information
hannahhoward committed Sep 1, 2022
1 parent 10e86a0 commit b1b44b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions retrievalmarket/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package retrievalmarket
import (
"context"

"github.com/filecoin-project/go-state-types/abi"

"github.com/filecoin-project/go-fil-markets/shared"
)

Expand All @@ -27,6 +29,10 @@ type RetrievalProvider interface {
// GetAsk returns the retrieval providers pricing information
GetAsk() *Ask

// GetDynamicAsk quotes a dynamic price for the retrieval deal by calling the user configured
// dynamic pricing function. It passes the static price parameters set in the Ask Store to the pricing function.
GetDynamicAsk(ctx context.Context, input PricingInput, storageDeals []abi.DealID) (Ask, error)

// SubscribeToEvents listens for events that happen related to client retrievals
SubscribeToEvents(subscriber ProviderSubscriber) Unsubscribe

Expand Down

0 comments on commit b1b44b2

Please sign in to comment.