{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "PairInfo", "type": "object", "required": [ "asset_infos", "contract_addr", "liquidity_token" ], "properties": { "asset_infos": { "type": "array", "items": { "$ref": "#/definitions/AssetInfo" }, "maxItems": 2, "minItems": 2 }, "contract_addr": { "type": "string" }, "liquidity_token": { "type": "string" } }, "definitions": { "AssetInfo": { "description": "AssetInfo contract_addr is usually passed from the cw20 hook so we can trust the contract_addr is properly validated.", "anyOf": [ { "type": "object", "required": [ "token" ], "properties": { "token": { "type": "object", "required": [ "contract_addr" ], "properties": { "contract_addr": { "type": "string" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "native_token" ], "properties": { "native_token": { "type": "object", "required": [ "denom" ], "properties": { "denom": { "type": "string" } } } }, "additionalProperties": false } ] } } }