forked from evmos/chain-token-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.chain.json
231 lines (231 loc) · 6.52 KB
/
schema.chain.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
"$id": "https://evmos.org/schema.token.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Chain Registry via Evmos Governance",
"type": "object",
"properties": {
"required": [
"gasPriceStep",
"prefix",
"bip44"
],
"prefix": {
"type": "string",
"description": "Chain prefix i.e. evmos"
},
"gasPriceStep": {
"type": "object",
"required": [
"low",
"average",
"high"
],
"properties": {
"low": {
"type": "string",
"description": "Amount of gas for Low"
},
"average": {
"type": "string",
"description": "Amount of gas for Average"
},
"high": {
"type": "string",
"description": "Amount of gas for High"
},
"required": [
"low",
"medium",
"high"
]
}
},
"feeMarket": {
"type": "object",
"description": "Only applicable to EVMOS",
"required": [
"gas",
"amount",
"convert"
],
"properties": {
"gas": {
"type": "string",
"description": "Enter appropriate gas cost"
},
"amount": {
"type": "string",
"description": "Enter appropriate amount cost"
},
"convert": {
"type": "string",
"description": "Enter appropriate convert cost"
}
}
},
"bip44": {
"type": "object",
"required": [
"coinType"
],
"properties": {
"coinType": {
"type": "string",
"description": "Cosmos-based chains should be 118 while EVM-based chains are coin type 60"
}
}
},
"configurations": {
"type": "array",
"items": {
"type": "object",
"required": [
"chainId",
"identifier",
"chainName",
"clientId",
"rest",
"rpc",
"currencies",
"source",
"configurationType"
],
"properties": {
"chainId": {
"type": "string",
"description": "Chain ID should specific to the environment, i.e. Testnet and Mainnet are different"
},
"identifier": {
"type": "string",
"description": "Global identifier to be used by both client and backend as default reference for the chain"
},
"chainName": {
"type": "string",
"description": "Name of the chain specific to the environment, i.e. Evmos Testnet"
},
"clientId": {
"type": "string",
"description": "Query the 'evmosd query ibc channel client-state [port-id] [channel-id] [flags]' and copy over the client-id field"
},
"rpc": {
"type": "array",
"items": {
"type": "string"
},
"description": "RPC endpoint link, usually port 1317"
},
"rest": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 3,
"uniqueItems": true
},
"jrpc": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 3,
"uniqueItems": true
},
"web3": {
"type": "array",
"items": {
"type": "string"
}
},
"currencies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"coinDenom": {
"type": "string",
"description": "Unit of the coin or symbol, i.e. EVMOS"
},
"coinMinDenom": {
"type": "string",
"description": "Smallest unit of the coin, i.e. aevmos"
},
"coinDecimals": {
"type": "string",
"description": "Chain minimum coin denomination, i.e. aevmos"
}
}
}
},
"source": {
"type": "object",
"required": [
"sourceChannel",
"sourceIBCDenomToEvmos",
"destinationChannel",
"jsonRPC"
],
"properties": {
"sourceChannel": {
"type": "string",
"description": "Source channel represents the third-party, i.e. Cosmos Hub side"
},
"sourceIBCDenomToEvmos": {
"type": "string",
"description": "The value is ibc/[sha256 of 'transfer/${sourceChannel}/aevmos' phrase]. This value is required to pull in EVMOS from source chain to Evmos chain."
},
"destinationChannel": {
"type": "string",
"description": "Destination channel represents the main network side, i.e. EVMOS side"
},
"jsonRPC": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "Tendermint endpoint link or using port 26657"
}
}
},
"explorer": {
"type": "array",
"description": "Explorer is only necessary for EVMOS network. All other Cosmos chains do not require this array object to be filled out",
"items": {
"type": "object",
"required": [
"link",
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"evm",
"cosmos"
],
"description": "Add the correct explorer data type"
},
"link": {
"type": "string",
"description": "Link to explorer"
}
}
}
},
"configurationType": {
"type": "string",
"enum": [
"mainnet",
"testnet"
],
"description": "Must select either mainnet or testnet"
},
"explorerTxUrl": {
"type": "string",
"description": "Explorer tx URL for the chain, i.e https://www.mintscan.io/evmos/txs."
}
}
}
}
}
}