@kleros/kleros-sdk 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/src/dataMappings/index.d.ts +1 -0
- package/lib/src/dataMappings/index.js +17 -0
- package/lib/src/dataMappings/utils/index.d.ts +3 -0
- package/lib/src/dataMappings/utils/index.js +19 -0
- package/lib/src/index.d.ts +3 -2
- package/lib/src/index.js +3 -2
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +17 -0
- package/package.json +1 -2
- package/lib/src/dataMappings/disputeDetails.d.ts +0 -35
- package/lib/src/dataMappings/disputeDetails.js +0 -11
package/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./executeActions";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./executeActions"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./populateTemplate"), exports);
|
|
18
|
+
__exportStar(require("./retrieveVariables"), exports);
|
|
19
|
+
__exportStar(require("./disputeDetailsTypes"), exports);
|
package/lib/src/index.d.ts
CHANGED
package/lib/src/index.js
CHANGED
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./sdk"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
-
__exportStar(require("./utils
|
|
20
|
-
__exportStar(require("./dataMappings
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
20
|
+
__exportStar(require("./dataMappings"), exports);
|
|
21
|
+
__exportStar(require("./dataMappings/utils"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./getDispute";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./getDispute"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kleros/kleros-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "SDK for Kleros version 2",
|
|
5
5
|
"repository": "git@github.com:kleros/kleros-v2.git",
|
|
6
6
|
"author": "Kleros",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"vitest": "^1.1.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@kleros/kleros-v2-contracts": "^0.4.1",
|
|
50
49
|
"@reality.eth/reality-eth-lib": "^3.2.30",
|
|
51
50
|
"graphql-request": "^7.1.0",
|
|
52
51
|
"mustache": "^4.2.0",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type DisputeDetails = {
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
question: string;
|
|
5
|
-
type: QuestionType;
|
|
6
|
-
answers: Answer[];
|
|
7
|
-
policyURI: string;
|
|
8
|
-
attachment: Attachment;
|
|
9
|
-
frontendUrl: string;
|
|
10
|
-
arbitrableChainID: string;
|
|
11
|
-
arbitrableAddress: `0x${string}`;
|
|
12
|
-
arbitratorChainID: string;
|
|
13
|
-
arbitratorAddress: `0x${string}`;
|
|
14
|
-
category: string;
|
|
15
|
-
lang: string;
|
|
16
|
-
specification: string;
|
|
17
|
-
version: string;
|
|
18
|
-
};
|
|
19
|
-
export declare enum QuestionType {
|
|
20
|
-
Bool = "bool",
|
|
21
|
-
Datetime = "datetime",
|
|
22
|
-
MultipleSelect = "multiple-select",
|
|
23
|
-
SingleSelect = "single-select",
|
|
24
|
-
Uint = "uint"
|
|
25
|
-
}
|
|
26
|
-
export type Answer = {
|
|
27
|
-
title: string;
|
|
28
|
-
description: string;
|
|
29
|
-
id: `0x${string}`;
|
|
30
|
-
reserved: boolean;
|
|
31
|
-
};
|
|
32
|
-
export type Attachment = {
|
|
33
|
-
label: string;
|
|
34
|
-
uri: string;
|
|
35
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuestionType = void 0;
|
|
4
|
-
var QuestionType;
|
|
5
|
-
(function (QuestionType) {
|
|
6
|
-
QuestionType["Bool"] = "bool";
|
|
7
|
-
QuestionType["Datetime"] = "datetime";
|
|
8
|
-
QuestionType["MultipleSelect"] = "multiple-select";
|
|
9
|
-
QuestionType["SingleSelect"] = "single-select";
|
|
10
|
-
QuestionType["Uint"] = "uint";
|
|
11
|
-
})(QuestionType || (exports.QuestionType = QuestionType = {}));
|