forked from osmosis-labs/assetlists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zone.schema.json
189 lines (189 loc) · 5.35 KB
/
zone.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
182
183
184
185
186
187
188
189
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Osmosis Zone List",
"description": "Osmosis Zone List is a basic list of assets, in order as shown on the Osmosis Zone.",
"type": "object",
"required": [
"chain_name",
"assets"
],
"properties": {
"$schema": {
"type": "string",
"pattern": "^\\.\\./zone\\.schema\\.json$"
},
"chain_name": {
"type": "string"
},
"assets": {
"type": "array",
"items": {
"$ref": "#/$defs/asset"
}
}
},
"additionalPropserties": false,
"$defs": {
"asset": {
"type": "object",
"required": [
"chain_name",
"base_denom"
],
"properties": {
"chain_name": {
"type": "string",
"description": "Chain name as used in the Cosmos Chain Registry"
},
"base_denom": {
"type": "string",
"description": "Base denomination as used for the asset in the Cosmos Chain Registry"
},
"path": {
"type": "string",
"description": "The entire IBC path, with the port and channel data for each hop"
},
"pools": {
"type": "object",
"description": "[OPTIONAL] A list of primary Osmosis liquidity pools paired with various popular tokens.",
"properties": {
"OSMO": {
"type": "number",
"description": "The ID number of the primary Osmosis liquidity pool containing this token paired with the OSMO token."
},
"ATOM": {
"type": "number"
},
"USDC.axl": {
"type": "number"
},
"SCRT": {
"type": "number"
},
"JUNO": {
"type": "number"
},
"STARS": {
"type": "number"
},
"LUNA": {
"type": "number"
},
"EVMOS": {
"type": "number"
},
"REGEN": {
"type": "number"
},
"USDT.axl": {
"type": "number"
}
},
"additionalProperties": false,
"minProperties": 1
},
"osmosis_main": {
"type": "boolean",
"description": "Whether the asset appears on Osmosis Main. The asset should have been approved by Osmosis governance."
},
"osmosis_frontier": {
"type": "boolean",
"description": "Whether the asset appears on Osmosis Frontier. The asset should have at least 1 pool defined."
},
"osmosis_info": {
"type": "boolean",
"description": "Whether the asset appears on the Osmosis Info site. The asset should have at least $1000 USD worth of liquidity on Osmosis and be listed on Frontier."
},
"override_properties": {
"type": "object",
"description": "Properties that should not follow the Chain Registry, and behave or appear differently on Osmosis Zone.",
"properties": {
"symbol": {
"type": "string",
"description": "The symbol of an asset. For example BTC."
},
"logo_URIs": {
"type": "object",
"properties": {
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/chain-registry/master/(|testnets/|_non-cosmos/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/chain-registry/master/(|testnets/|_non-cosmos/)[a-z0-9]+/images/.+\\.svg$"
}
}
},
"coingecko_id": {
"type": "string",
"description": "[OPTIONAL] The coingecko id to fetch asset data from coingecko v3 api. See https://api.coingecko.com/api/v3/coins/list"
}
},
"additionalProperties": true
}
},
"additionalProperties": false,
"if": {
"required": [
"osmosis_main"
],
"properties": {
"osmosis_main": {
"enum": [
true
]
}
}
},
"then": {
"required": [
"osmosis_frontier"
],
"properties": {
"osmosis_frontier": {
"enum": [
true
]
}
}
},
"if": {
"required": [
"osmosis_info"
],
"properties": {
"osmosis_info": {
"enum": [
true
]
}
}
},
"then": {
"required": [
"pools"
]
},
"if": {
"required": [
"osmosis_frontier"
],
"properties": {
"osmosis_frontier": {
"enum": [
true
]
}
}
},
"then": {
"required": [
"pools"
]
}
}
}
}