Skip to content

Commit

Permalink
fix(market): exposed memoryGib and storageGib from ScannedOffer, depr…
Browse files Browse the repository at this point in the history
…ecating old methods
  • Loading branch information
grisha87 committed Jul 31, 2024
1 parent c34d40c commit c3682bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/market/scan/scanned-offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,21 @@ export class ScannedOffer {
return this.properties["golem.inf.cpu.threads"];
}

/** @deprecated Use {@link memoryGib} instead */
get memory() {
return this.memoryGib;
}

get memoryGib() {
return this.properties["golem.inf.mem.gib"];
}

/** @deprecated Use {@link storageGib} instead */
get storage() {
return this.storageGib;
}

get storageGib() {
return this.properties["golem.inf.storage.gib"];
}

Expand Down

0 comments on commit c3682bd

Please sign in to comment.