-
Notifications
You must be signed in to change notification settings - Fork 1
/
initia.chain.schema.json
112 lines (112 loc) · 3.24 KB
/
initia.chain.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
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Chain",
"type": "object",
"required": [
"chain_id",
"is_testnet",
"chain_name",
"chain_type"
],
"properties": {
"$schema": {
"type": "string",
"minLength": 1,
"pattern": "^(\\.\\./)+initia.chain\\.schema\\.json$"
},
"chain_id": {
"type": "string",
"minLength": 1,
"pattern": "[a-z0-9]-+",
"examples": [
"initiation-1"
]
},
"is_testnet": {
"type": "boolean",
"default": false
},
"chain_name": {
"type": "string",
"minLength": 1,
"pattern": "[a-z0-9]+",
"examples": [
"minimove"
]
},
"chain_type": {
"const": "initia"
},
"apis": {
"type": "object",
"properties": {
"required": [
"cosmos_sdk_grpc_endpoint",
"tendermint_rpc_endpoint"
],
"lcd_rest_endpoint": {
"$ref": "#/$defs/endpoint",
"description": "Only required for initia-1."
},
"tendermint_rpc_endpoint": {
"$ref": "#/$defs/endpoint"
},
"cosmos_sdk_grpc_endpoint": {
"$ref": "#/$defs/grpc_endpoint"
}
},
"additionalProperties": false
}
},
"$defs": {
"endpoint": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"format": "uri"
},
"provider": {
"type": "string"
},
"archive": {
"type": "boolean",
"default": false
},
"backoff_delay": {
"type": "integer",
"description": "Delay in milliseconds between request retires."
},
"basic_auth_required": {
"type": "boolean",
"default": false,
"description": "If basic HTTP authentication (username + password) is required to access this endpoint."
},
"index_for_skip": {
"type": "number",
"description": "The index for the basic auth salt generation."
}
}
},
"grpc_endpoint": {
"allOf": [
{
"$ref": "#/$defs/endpoint"
},
{
"type": "object",
"properties": {
"tls": {
"type": "boolean",
"description": "If TLS is required to access this GRPC endpoint.",
"default": false
}
}
}
]
}
}
}