{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "anyOf": [ { "type": "object", "required": [ "cast_vote" ], "properties": { "cast_vote": { "type": "object", "required": [ "poll_id", "vote", "weight" ], "properties": { "poll_id": { "type": "integer", "format": "uint64", "minimum": 0.0 }, "vote": { "type": "string" }, "weight": { "$ref": "#/definitions/Uint128" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "stake_voting_tokens" ], "properties": { "stake_voting_tokens": { "type": "object" } }, "additionalProperties": false }, { "type": "object", "required": [ "withdraw_voting_tokens" ], "properties": { "withdraw_voting_tokens": { "type": "object", "properties": { "amount": { "anyOf": [ { "$ref": "#/definitions/Uint128" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "type": "object", "required": [ "create_poll" ], "properties": { "create_poll": { "type": "object", "required": [ "description" ], "properties": { "description": { "type": "string" }, "end_height": { "type": [ "integer", "null" ], "format": "uint64", "minimum": 0.0 }, "quorum_percentage": { "type": [ "integer", "null" ], "format": "uint8", "minimum": 0.0 }, "start_height": { "type": [ "integer", "null" ], "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "type": "object", "required": [ "end_poll" ], "properties": { "end_poll": { "type": "object", "required": [ "poll_id" ], "properties": { "poll_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "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" } } }