Skip to content

Commit

Permalink
fix: added agreement selector and fixed API in reputation example
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzy-golem authored Mar 13, 2024
1 parent 36af5ee commit 3902384
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"web": "node ./web/app.mjs",
"server": "tsx ./express/server.ts",
"proxy": "tsx ./proxy/proxy.ts",
"reputation-basic": "tsx ./reputation/basic.ts",
"lint:ts": "tsc --project tsconfig.json --noEmit"
},
"author": "GolemFactory <[email protected]>",
Expand Down
3 changes: 2 additions & 1 deletion examples/reputation/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import { sleep } from "@golem-sdk/golem-js";
paymentNetwork: "polygon",
});

console.log("Listed providers:", reputation.getData().providers.length);
console.log("Listed providers:", reputation.getData().testedProviders.length);

const executor = await TaskExecutor.create({
payment: { network: "polygon" },
package: "golem/alpine:latest",
proposalFilter: reputation.proposalFilter(),
agreementSelector: reputation.agreementSelector(),
});

try {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"node": ">=18.0.0"
},
"dependencies": {
"@golem-sdk/golem-js": "^2.3.2",
"@golem-sdk/golem-js": "^2.4.0",
"eventemitter3": "^5.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit 3902384

Please sign in to comment.