{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TerraMsgWrapper", "description": "TerraMsgWrapper is an override of CosmosMsg::Custom to show this works and can be extended in the contract", "type": "object", "required": [ "msg_data", "route" ], "properties": { "msg_data": { "$ref": "#/definitions/TerraMsg" }, "route": { "type": "string" } }, "definitions": { "Coin": { "type": "object", "required": [ "amount", "denom" ], "properties": { "amount": { "$ref": "#/definitions/Uint128" }, "denom": { "type": "string" } } }, "HumanAddr": { "type": "string" }, "TerraMsg": { "anyOf": [ { "type": "object", "required": [ "swap" ], "properties": { "swap": { "type": "object", "required": [ "ask_denom", "offer_coin", "trader" ], "properties": { "ask_denom": { "type": "string" }, "offer_coin": { "$ref": "#/definitions/Coin" }, "trader": { "$ref": "#/definitions/HumanAddr" } } } } }, { "type": "object", "required": [ "swap_send" ], "properties": { "swap_send": { "type": "object", "required": [ "ask_denom", "from_address", "offer_coin", "to_address" ], "properties": { "ask_denom": { "type": "string" }, "from_address": { "$ref": "#/definitions/HumanAddr" }, "offer_coin": { "$ref": "#/definitions/Coin" }, "to_address": { "$ref": "#/definitions/HumanAddr" } } } } } ] }, "Uint128": { "type": "string" } } }