-
Notifications
You must be signed in to change notification settings - Fork 294
/
zone_chains.schema.json
149 lines (149 loc) · 4.49 KB
/
zone_chains.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
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Osmosis Zone List",
"description": "Chain Zone List is a list of chains integrated with Osmosis, in alphabetical order.",
"type": "object",
"required": [
"chains"
],
"properties": {
"$schema": {
"type": "string",
"pattern": "^\\.\\./zone_chains\\.schema\\.json$"
},
"chains": {
"type": "array",
"description": "The chains with one or more assets on Osmosis Zone.",
"items": {
"$ref": "#/$defs/chain"
}
}
},
"additionalPropserties": false,
"$defs": {
"chain": {
"type": "object",
"required": [
"chain_name",
"rpc",
"rest",
"explorer_tx_url",
"keplr_features"
],
"properties": {
"chain_name": {
"type": "string"
},
"rpc": {
"type": "string",
"description": "The rpc node to use for connecting with the chain."
},
"rest": {
"type": "string",
"description": "The rest node to use for connecting with the chain"
},
"explorer_tx_url": {
"type": "string",
"description": "The chain's block explorer Transaction URL",
"pattern": "^https:\/\/.*{txHash}.*"
},
"keplr_features": {
"type": "array",
"items": {
"type": "string",
"enum": [
"ibc-transfer",
"ibc-go",
"cosmwasm",
"wasmd_0.24+",
"eth-address-gen",
"eth-key-sign",
"secretwasm",
"osmosis-txfees",
"terra-classic-fee",
"axelar-evm-bridge"
]
}
},
"override_properties": {
"type": "object",
"description": "Properties that should not follow the Chain Registry, and behave or appear differently on Osmosis Zone.",
"additionalProperties": true,
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"image_sync": {
"$ref": "#/$defs/pointer"
},
"png": {
"type": "string",
"minLength": 1,
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/chain-registry/master/(|testnets/|_non-cosmos/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"minLength": 1,
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/chain-registry/master/(|testnets/|_non-cosmos/)[a-z0-9]+/images/.+\\.svg$"
},
"theme": {
"type": "object",
"properties": {
"primary_color_hex": {
"type": "string",
"minLength": 1,
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"background_color_hex": {
"type": "string",
"minLength": 1,
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|none)$"
},
"circle": {
"type": "boolean"
},
"dark_mode": {
"type": "boolean"
},
"monochrome": {
"type": "boolean"
}
},
"minProperties": 1,
"additionalProperties": false
}
},
"anyOf": [
{
"required": ["png"]
},
{
"required": ["svg"]
}
],
"additionalProperties": false
}
}
}
},
"outage": {
"type": "object",
"properties": {
"block_height": {
"type": "number"
},
"message": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}