forked from ensdao/spp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprograms.schema.json
More file actions
116 lines (116 loc) · 3.01 KB
/
programs.schema.json
File metadata and controls
116 lines (116 loc) · 3.01 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SPP Programs",
"description": "Program definitions and governance history for the ENS Service Provider Program.",
"type": "object",
"required": ["programs"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"programs": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Program"
},
"description": "Map of program keys to program definitions."
}
},
"$defs": {
"Quarter": {
"type": "string",
"pattern": "^\\d{4}/Q[1-4]$"
},
"Url": {
"type": "string",
"pattern": "^https?://"
},
"Proposal": {
"type": "object",
"required": ["id", "title", "date", "forumUrl", "snapshotUrl"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^EP \\d+\\.\\d+",
"description": "ENS governance proposal ID (e.g., EP 4.7)."
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string"
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date the vote concluded (YYYY-MM-DD)."
},
"forumUrl": {
"$ref": "#/$defs/Url",
"description": "ENS forum discussion."
},
"snapshotUrl": {
"$ref": "#/$defs/Url",
"description": "Snapshot vote."
},
"docsUrl": {
"$ref": "#/$defs/Url",
"description": "ENS docs page."
}
}
},
"Program": {
"type": "object",
"required": [
"name",
"year1Quarters",
"budget",
"startDate",
"discussionUrl",
"budgetProposal",
"selectionProposal"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"year1Quarters": {
"type": "array",
"items": { "$ref": "#/$defs/Quarter" },
"minItems": 1
},
"year2Quarters": {
"type": "array",
"items": { "$ref": "#/$defs/Quarter" }
},
"budget": {
"type": "integer",
"minimum": 0,
"description": "Total annual budget in USD."
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date streams commenced."
},
"discussionUrl": {
"$ref": "#/$defs/Url",
"description": "Initial forum discussion for this program."
},
"budgetProposal": {
"$ref": "#/$defs/Proposal",
"description": "Proposal that defined the program budget."
},
"selectionProposal": {
"$ref": "#/$defs/Proposal",
"description": "Proposal that selected the service providers."
}
}
}
}
}