{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "CosmosMsg", "anyOf": [ { "type": "object", "required": [ "send" ], "properties": { "send": { "type": "object", "required": [ "amount", "from_address", "to_address" ], "properties": { "amount": { "type": "array", "items": { "$ref": "#/definitions/Coin" } }, "from_address": { "$ref": "#/definitions/HumanAddr" }, "to_address": { "$ref": "#/definitions/HumanAddr" } } } } }, { "type": "object", "required": [ "contract" ], "properties": { "contract": { "type": "object", "required": [ "contract_addr", "msg", "send" ], "properties": { "contract_addr": { "$ref": "#/definitions/HumanAddr" }, "msg": { "$ref": "#/definitions/Binary" }, "send": { "type": [ "array", "null" ], "items": { "$ref": "#/definitions/Coin" } } } } } }, { "type": "object", "required": [ "opaque" ], "properties": { "opaque": { "type": "object", "required": [ "data" ], "properties": { "data": { "$ref": "#/definitions/Binary" } } } } } ], "definitions": { "Binary": { "type": "string" }, "Coin": { "type": "object", "required": [ "amount", "denom" ], "properties": { "amount": { "type": "string" }, "denom": { "type": "string" } } }, "HumanAddr": { "type": "string" } } }