Skip to content

Commit e317649

Browse files
committed
Merge branch 'dev' into feat/chainlink-vrf-as-rng2
2 parents 83c4367 + e8e48f4 commit e317649

File tree

139 files changed

+2717
-1949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2717
-1949
lines changed

kleros-sdk/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kleros/kleros-sdk",
3-
"version": "2.1.8",
3+
"version": "2.1.10",
44
"description": "SDK for Kleros version 2",
55
"repository": "[email protected]:kleros/kleros-v2.git",
66
"homepage": "https://github.com/kleros/kleros-v2/tree/master/kleros-sdk#readme",
@@ -39,13 +39,16 @@
3939
"rimraf": "^6.0.1",
4040
"ts-node": "^10.9.2",
4141
"typescript": "^5.6.3",
42+
"viem": "^2.21.48",
4243
"vitest": "^1.6.0"
4344
},
4445
"dependencies": {
4546
"@reality.eth/reality-eth-lib": "^3.2.44",
4647
"@urql/core": "^5.0.8",
4748
"mustache": "^4.2.0",
48-
"viem": "^2.21.48",
4949
"zod": "^3.23.8"
50+
},
51+
"peerDependencies": {
52+
"viem": "^2.21.48"
5053
}
5154
}

kleros-sdk/src/dataMappings/retrieveRealityData.ts

-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export const retrieveRealityData = async (realityQuestionID: string, arbitrable?
5050
};
5151

5252
const questionData = await executeAction(questionMapping);
53-
console.log("questionData", questionData);
5453

5554
const templateMapping: AbiEventMapping = {
5655
type: "abi/event",
@@ -66,7 +65,6 @@ export const retrieveRealityData = async (realityQuestionID: string, arbitrable?
6665
};
6766

6867
const templateData = await executeAction(templateMapping);
69-
console.log("templateData", templateData);
7068

7169
if (!templateData) {
7270
throw new NotFoundError("Template Data", "Failed to retrieve template data");
@@ -82,8 +80,6 @@ export const retrieveRealityData = async (realityQuestionID: string, arbitrable?
8280
questionData.realityQuestion
8381
);
8482

85-
console.log("populatedTemplate", populatedTemplate);
86-
8783
let answers: RealityAnswer[] = [];
8884
if (populatedTemplate.type === "bool") {
8985
answers = [

kleros-sdk/src/dataMappings/utils/populateTemplate.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ export const populateTemplate = (mustacheTemplate: string, data: any): DisputeDe
99

1010
const validation = DisputeDetailsSchema.safeParse(dispute);
1111
if (!validation.success) {
12-
console.error("Validation errors:", validation.error.errors, "\n\nDispute details:", `${JSON.stringify(dispute)}`);
13-
throw new InvalidFormatError("Invalid dispute details format");
12+
throw validation.error;
1413
}
15-
console.log(dispute);
1614

1715
return dispute;
1816
};

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"web-devtools",
2626
"eslint-config",
2727
"prettier-config",
28-
"tsconfig",
29-
"kleros-app"
28+
"tsconfig"
3029
],
3130
"packageManager": "[email protected]",
3231
"volta": {
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)