-
Notifications
You must be signed in to change notification settings - Fork 189
/
providerlist.schema.json
176 lines (176 loc) · 5.01 KB
/
providerlist.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/TowoLabs/ftso-signal-providers/blob/master/providerlist.schema.json",
"title": "Bifrost Wallet FTSO Provider List",
"description": "Schema for lists of FTSO providers compatible with Bifrost Wallet",
"definitions": {
"Version": {
"type": "object",
"description": "The version of the list, used in change detection",
"examples": [
{
"major": 2,
"minor": 3,
"patch": 0
}
],
"additionalProperties": false,
"properties": {
"major": {
"type": "integer",
"description": "The major version of the list. Must be incremented when FTSO providers are removed from the list or FTSO provider addresses are changed.",
"minimum": 0,
"examples": [
1,
2
]
},
"minor": {
"type": "integer",
"description": "The minor version of the list. Must be incremented when FTSO providers are added to the list.",
"minimum": 0,
"examples": [
0,
1
]
},
"patch": {
"type": "integer",
"description": "The patch version of the list. Must be incremented for any changes to the list.",
"minimum": 0,
"examples": [
0,
1
]
}
},
"required": [
"major",
"minor",
"patch"
]
},
"ProviderInfo": {
"type": "object",
"description": "Metadata for a single FTSO provider in a provider list",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "integer",
"description": "The chain ID of either Coston, Coston2, Flare or Songbird where this FTSO provider is submitting prices",
"enum": [
19,
114,
16,
14
],
"examples": [
19,
114,
16,
14
]
},
"name": {
"type": "string",
"description": "The name of the FTSO provider",
"minLength": 2,
"maxLength": 32,
"pattern": "^[ \\w.'+\\-%/À-ÖØ-öø-ÿ:&\\[\\]\\(\\)]+$",
"examples": [
"Bifrost Wallet"
]
},
"description": {
"type": "string",
"description": "The description of the FTSO provider",
"minLength": 10,
"maxLength": 350,
"pattern": "^[ \\w.'+\\-%/À-ÖØ-öø-ÿ:&\\[\\]\\(\\)]+",
"examples": [
"Bifrost Wallet"
]
},
"url": {
"type": "string",
"description": "A URI to the FTSO provider website. Must use HTTPS",
"format": "uri",
"maxLength": 100,
"pattern": "^https://[A-Za-z0-9\/#.-]*[^/]$",
"examples": [
"https://bifrostwallet.com"
]
},
"address": {
"type": "string",
"description": "The checksummed address of the FTSO provider on the specified chain ID",
"pattern": "^0x[a-fA-F0-9]{40}$",
"examples": [
"0x69141E890F3a79cd2CFf552c0B71508bE23712dC"
]
},
"logoURI": {
"type": "string",
"description": "A content URL for this repository to the FTSO provider logo asset",
"pattern": "^https:\\/\\/raw\\.githubusercontent\\.com\\/TowoLabs\\/ftso-signal-providers\\/master\\/assets\\/0x[a-fA-F0-9]{40}\\.png$",
"examples": [
"https://raw.githubusercontent.com/TowoLabs/ftso-signal-providers/master/assets/0x69141E890F3a79cd2CFf552c0B71508bE23712dC.png"
]
},
"listed": {
"type": "boolean",
"description": "Specifices whether the provider meets the extended requirements to be listed in Bifrost Wallet",
"examples": [
"true"
]
}
},
"required": [
"chainId",
"name",
"description",
"url",
"address",
"logoURI"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "The name of the FTSO provider list",
"minLength": 1,
"maxLength": 48,
"pattern": "^[A-Za-z ]+$",
"examples": [
"My Provider List"
]
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of this list version; i.e. when this immutable version of the list was created"
},
"version": {
"$ref": "#/definitions/Version"
},
"providers": {
"type": "array",
"description": "The list of providers included in the list",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/ProviderInfo"
},
"minItems": 1,
"maxItems": 10000
}
},
"required": [
"name",
"timestamp",
"version",
"providers"
]
}