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 021a248
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions retrievalmarket/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

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

// ProviderSubscriber is a callback that is registered to listen for retrieval events on a provider
Expand All @@ -27,6 +28,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 021a248

Please sign in to comment.