{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "anyOf": [ { "description": "Implements CW20. Returns the current balance of the given address, 0 if unset.", "type": "object", "required": [ "balance" ], "properties": { "balance": { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "string" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "info" ], "properties": { "info": { "type": "object" } }, "additionalProperties": false }, { "type": "object", "required": [ "token1_for_token2_price" ], "properties": { "token1_for_token2_price": { "type": "object", "required": [ "token1_amount" ], "properties": { "token1_amount": { "$ref": "#/definitions/Uint128" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "token2_for_token1_price" ], "properties": { "token2_for_token1_price": { "type": "object", "required": [ "token2_amount" ], "properties": { "token2_amount": { "$ref": "#/definitions/Uint128" } } } }, "additionalProperties": false } ], "definitions": { "Uint128": { "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", "type": "string" } } }