Skip to content

Commit

Permalink
feat(market): added offerId to ScannedOffer
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha87 committed Jul 31, 2024
1 parent c3682bd commit 9416359
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/market/scan/scanned-offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,15 @@ export class ScannedOffer {
get runtimeName() {
return this.properties["golem.runtime.name"];
}

/**
* Get the ID of the offer published by the Provider
*
* Note:
* - this ID will change after the provider refreshes the offer (usually after 1h)
* - this ID will remain unchanged for the same published offer between different scans
*/
get offerId() {
return this.model.offerId;
}
}

0 comments on commit 9416359

Please sign in to comment.