diff --git a/chains/schema.json b/chains/schema.json index 50ee47a8b..d853318e0 100644 --- a/chains/schema.json +++ b/chains/schema.json @@ -4,6 +4,55 @@ "hyperlaneChainMetadata": { "type": "object", "properties": { + "availability": { + "anyOf": [ + { + "type": "object", + "properties": { + "status": { + "type": "string", + "const": "disabled", + "description": "The status that represents the chain availability. See ChainStatus for valid values." + }, + "reasons": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "badrpc", + "deprecated", + "private", + "unavailable", + "other" + ] + }, + "minItems": 1, + "description": "List of reasons explaining why the chain is disabled." + } + }, + "required": [ + "status", + "reasons" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "status": { + "type": "string", + "const": "live", + "description": "The status that represents the chain availability. See ChainStatus for valid values." + } + }, + "required": [ + "status" + ], + "additionalProperties": false + } + ], + "description": "Specifies if the chain is available and the reasons why it is disabled." + }, "bech32Prefix": { "type": "string", "description": "The human readable address prefix for the chains using bech32."