Skip to content

Commit

Permalink
refactor: rename scanned-proposal to scanned-offer to match class name
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha87 committed Jul 31, 2024
1 parent 0e853ee commit c34d40c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/market/scan/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./types";
export * from "./scan-director";
export * from "./scanned-proposal";
export * from "./scanned-offer";
Original file line number Diff line number Diff line change
Expand Up @@ -51,33 +51,43 @@ export class ScannedOffer {
name: this.properties["golem.node.id.name"] || "<unknown>",
};
}

get transferProtocol() {
return this.properties["golem.activity.caps.transfer.protocol"];
}

get cpuBrand() {
return this.properties["golem.inf.cpu.brand"];
}

get cpuCapabilities() {
return this.properties["golem.inf.cpu.capabilities"];
}

get cpuCores() {
return this.properties["golem.inf.cpu.cores"];
}

get cpuThreads() {
return this.properties["golem.inf.cpu.threads"];
}

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

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

get publicNet() {
return this.properties["golem.node.net.is-public"];
}

get runtimeCapabilities() {
return this.properties["golem.runtime.capabilities"];
}

get runtimeName() {
return this.properties["golem.runtime.name"];
}
Expand Down

0 comments on commit c34d40c

Please sign in to comment.