-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Market scan #972
Market scan #972
Conversation
src/market/scan/scanned-proposal.ts
Outdated
}; | ||
} | ||
|
||
getProviderInfo() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should replace getProviderInfo()
with get provider
, for consistency.
|
||
public scan(spec: ScanSpecification): Observable<ScannedOffer> { | ||
const ac = new AbortController(); | ||
return new Observable((observer) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about moving this part to YagnaAPI, we have a very similar implementation when fetching batch results here:
golem-js/src/shared/yagna/yagnaApi.ts
Line 120 in d2c5d56
this.activity = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBF I think observeBatchExecResults
should be moved to activity api, it's probably a relic from the time before we had api adapters. I'll leave it for now
Requires yagna 0.15.2-rc1Requires yagna 0.15.2 (lastest stable release)
feel free to modify
examples/advanced/scan.ts
to see what's possible