forked from eosrio/bp-info-standard
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.json
181 lines (181 loc) · 5.08 KB
/
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"title": "BlockProducer",
"description": "Information about a block producer on the EOS blockchain",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"location": {
"type": "object",
"required": [
"name",
"country"
],
"properties": {
"name": {
"description": "Location in human readable format [City, State]",
"type": "string"
},
"country": {
"description": "Country code [XX]",
"type": "string"
},
"latitude": {
"description": "Latitude in decimal degrees",
"type": "number"
},
"longitude": {
"description": "Longitude in decimal degrees",
"type": "number"
}
}
}
},
"type": "object",
"required": [
"producer_account_name",
"producer_public_key",
"org",
"nodes"
],
"additionalProperties": false,
"properties": {
"producer_account_name": {
"$id": "/properties/producer_account_name",
"description": "Producer account name",
"type": "string",
"maxLength": 12,
"minLength": 1
},
"producer_public_key": {
"$id": "/properties/producer_public_key",
"description": "Public key starting with EOS",
"type": "string",
"maxLength": 53,
"minLength": 53
},
"org": {
"type": "object",
"properties/location": {
"location": {
"$ref": "#/definitions/location",
"description": "Organization location",
"type": "location"
},
"candidate_name": {
"$id": "/properties/org/properties/candidate_name",
"description": "Producer/organization name",
"type": "string"
},
"website": {
"$id": "/properties/org/properties/website",
"description": "Organization website",
"type": "string"
},
"code_of_conduct": {
"$id": "/properties/org/properties/code_of_conduct",
"description": "Link to Code of Conduct",
"type": "string"
},
"email": {
"$id": "/properties/org/properties/email",
"description": "Organization email",
"type": "string"
},
"branding": {
"type": "object",
"properties":{
"logo_256": {
"$id": "/properties/org/properties/branding/properties/logo_256",
"description": "Link to Organization logo [PNG format, 256x256]",
"type": "string"
},
"logo_1024": {
"$id": "/properties/org/properties/branding/properties/logo_1024",
"description": "Link to Organization logo [PNG format, 1024x1024]",
"type": "string"
},
"logo_svg": {
"$id": "/properties/org/properties/branding/properties/logo_svg",
"description": "Link to Organization logo [SVG format]",
"type": "string"
}
}
},
"social": {
"type": "object",
"properties": {
"facebook": {
"description": "group/page address only, not the entire url",
"type": "String"
},
"github": {
"description": "username only",
"type": "String"
},
"keybase": {
"description": "username only",
"type": "String"
},
"reddit": {
"description": "username only",
"type": "String"
},
"steemit": {
"description": "username only, WITHOUT @",
"type": "String"
},
"telegram": {
"description": "username only",
"type": "String"
},
"twitter": {
"description": "username only",
"type": "String"
},
"wechat": {
"description": "username only",
"type": "String"
},
"youtube": {
"description": "channel address only",
"type": "String"
}
}
}
},
"required": [
"location",
"candidate_name",
"website"
]
},
"nodes": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"location": {
"$ref": "#/definitions/location",
"description": "Node location"
},
"is_producer": {
"description": "Is this node a producer?",
"type": "boolean"
},
"p2p_endpoint": {
"description": "EOSIO P2P endpoint (host:port)",
"type": "string"
},
"api_endpoint": {
"description": "EOSIO HTTP endpoint (http://host:port)",
"type": "string"
},
"ssl_endpoint": {
"description": "EOSIO HTTPS endpoint (https://host:port)",
"type": "string"
}
}
}
}
}
}