Skip to content
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

Merged
merged 12 commits into from
Jul 1, 2024
Merged

Market scan #972

merged 12 commits into from
Jul 1, 2024

Conversation

SewerynKras
Copy link
Contributor

@SewerynKras SewerynKras commented Jun 11, 2024

Requires yagna 0.15.2-rc1
Requires yagna 0.15.2 (lastest stable release)

git checkout feature/JST-902/market-scan
npm install
npm run build
cd examples
YAGNA_APPKEY=<your-appkey> npm run advanced-scan

feel free to modify examples/advanced/scan.ts to see what's possible

@SewerynKras SewerynKras requested a review from mgordel June 11, 2024 11:53
};
}

getProviderInfo() {
Copy link
Contributor

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) => {
Copy link
Contributor

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:

this.activity = {

Copy link
Contributor Author

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

@SewerynKras SewerynKras requested a review from mgordel June 13, 2024 12:07
@SewerynKras SewerynKras marked this pull request as ready for review July 1, 2024 11:59
@SewerynKras SewerynKras requested a review from grisha87 July 1, 2024 12:00
examples/advanced/scan.ts Show resolved Hide resolved
@SewerynKras SewerynKras merged commit 526c1c2 into beta Jul 1, 2024
8 checks passed
@SewerynKras SewerynKras deleted the feature/JST-902/market-scan branch July 1, 2024 12:25
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