forked from fluencelabs/fRPC-Substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deals.yaml.json
58 lines (58 loc) · 1.4 KB
/
deals.yaml.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"$id": "https://fluence.dev/schemas/deals.yaml",
"title": "deals.yaml",
"description": "Defines deal configuration for each worker you wanna deploy",
"type": "object",
"properties": {
"deals": {
"description": "Array of objects, each object defines a worker and a list of peer IDs to host it on",
"type": "array",
"items": {
"type": "object",
"properties": {
"workerName": {
"type": "string",
"description": "Name of the worker. The same as in workers.yaml"
},
"minWorkers": {
"type": "number",
"description": "Required workers to activate the deal",
"default": 1,
"nullable": true,
"minimum": 1
},
"targetWorkers": {
"type": "number",
"description": "Max workers in the deal",
"default": 3,
"nullable": true,
"minimum": 1
}
},
"required": [
"workerName"
]
}
},
"network": {
"type": "string",
"description": "The network in which the transactions will be carried out",
"enum": [
"local",
"testnet"
],
"default": "testnet",
"nullable": true
},
"version": {
"type": "number",
"enum": [
0
]
}
},
"required": [
"version",
"deals"
]
}