forked from cardano-foundation/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcip-136.common.schema.json
158 lines (158 loc) · 5.47 KB
/
cip-136.common.schema.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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"title": "CIP-136 Common",
"description": "Metadata document for Cardano Constitutional Committee vote rationales, extending CIP-100",
"type": "object",
"required": ["hashAlgorithm", "authors", "body"],
"properties": {
"hashAlgorithm": {
"$ref": "#/definitions/hashAlgorithm"
},
"authors": {
"$ref": "#/definitions/authors"
},
"body": {
"$ref": "#/definitions/body"
}
},
"definitions": {
"hashAlgorithm": {
"type": "string",
"enum": ["blake2b-256"],
"title": "Hash Algorithm",
"description": "The algorithm used to authenticate this document externally (CIP-100)"
},
"authors": {
"title": "Authors",
"description": "The authors of this governance metadata (CIP-100)",
"type": "array",
"items": {
"$ref": "#/definitions/author"
}
},
"author": {
"title": "Author",
"description": "An author endorsing the content of a metadata document (CIP-100)",
"type": "object",
"required": ["name", "witness"],
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"witness": {
"$ref": "#/definitions/witness"
}
}
},
"Witness": {
"title": "Witness",
"description": "A witness proving that the author endorses the content of the metadata",
"type": "object",
"properties": {
"witnessAlgorithm": {
"title": "WitnessAlgorithm",
"type": "string",
"enum": [
"ed25519"
]
},
"publicKey": {
"title": "PublicKey",
"type": "string"
},
"signature": {
"title": "Signature",
"type": "string"
}
}
},
"body": {
"title": "Body",
"description": "The body of the metadata document that is hashed to produce a signature (CIP-100)",
"type": "object",
"required": ["summary", "rationaleStatement"],
"properties": {
"references": {
"title": "References",
"type": "array",
"items": {
"$ref": "#/definitions/Reference"
}
},
"summary": {
"type": "string",
"title": "Summary",
"description": "The summary of the voting rationale"
},
"rationaleStatement": {
"type": "string",
"title": "Rationale Statement",
"description": "The summary of the voting rationale"
},
"precedentDiscussion": {
"type": "string",
"title": "Precedent Discussion",
"description": "Discussion of existing precedent"
},
"counterargumentDiscussion": {
"type": "string",
"title": "Counterargument Discussion",
"description": "Discussion of counter points to the rationale"
},
"conclusion": {
"type": "string",
"title": "conclusion",
"description": "Closing conclusion of the rationale"
}
}
},
"reference": {
"title": "Reference",
"description": "A reference to a document",
"type": "object",
"required": ["type", "label", "uri"],
"properties": {
"type": {
"type": "string",
"enum": ["GovernanceMetadata", "Other", "RelevantArticles"],
"title": "Type"
},
"label": {
"type": "string",
"title": "Label"
},
"uri": {
"type": "string",
"title": "URI"
}
}
},
"internalVote": {
"title": "Internal Vote",
"description": "Used to reflect voting intents of individuals within the committee member",
"type": "object",
"properties": {
"constitutional": {
"type": "integer",
"title": "Constitutional Internal Vote Total"
},
"unconstitutional": {
"type": "integer",
"title": "Unconstitutional Internal Vote Total"
},
"abstain": {
"type": "integer",
"title": "Abstain Internal Vote Total"
},
"didNotVote": {
"type": "integer",
"title": "Total of individuals who did not vote"
},
"againstVote": {
"type": "integer",
"title": "Total of individuals who did not want the member to vote"
}
}
}
}
}