{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "anyOf": [ { "description": "Get the config state", "type": "object", "required": [ "config" ], "properties": { "config": { "type": "object" } }, "additionalProperties": false }, { "description": "Combination lottery numbers and address", "type": "object", "required": [ "combination" ], "properties": { "combination": { "type": "object", "required": [ "address", "lottery_id" ], "properties": { "address": { "type": "string" }, "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Winner lottery rank and address", "type": "object", "required": [ "winner" ], "properties": { "winner": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get specific poll", "type": "object", "required": [ "get_poll" ], "properties": { "get_poll": { "type": "object", "required": [ "poll_id" ], "properties": { "poll_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Count players by lottery id", "type": "object", "required": [ "count_player" ], "properties": { "count_player": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Count ticket sold by lottery id", "type": "object", "required": [ "count_ticket" ], "properties": { "count_ticket": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Count winner by rank and lottery id", "type": "object", "required": [ "count_winner" ], "properties": { "count_winner": { "type": "object", "required": [ "lottery_id", "rank" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 }, "rank": { "type": "integer", "format": "uint8", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get winning combination by lottery id", "type": "object", "required": [ "winning_combination" ], "properties": { "winning_combination": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get the jackpot by lottery id", "type": "object", "required": [ "jackpot" ], "properties": { "jackpot": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all players by lottery id", "type": "object", "required": [ "players" ], "properties": { "players": { "type": "object", "required": [ "lottery_id" ], "properties": { "lottery_id": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get the needed round for workers adding randomness to Terrand", "type": "object", "required": [ "get_round" ], "properties": { "get_round": { "type": "object" } }, "additionalProperties": false }, { "description": "Query Terrand smart contract to get the needed randomness to play the lottery", "type": "object", "required": [ "get_randomness" ], "properties": { "get_randomness": { "type": "object", "required": [ "round" ], "properties": { "round": { "type": "integer", "format": "uint64", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Not used to be called directly Get specific holder, address and balance from loterra staking contract", "type": "object", "required": [ "holder" ], "properties": { "holder": { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "string" } } } }, "additionalProperties": false }, { "description": "Get all holders from loterra staking contract", "type": "object", "required": [ "holders" ], "properties": { "holders": { "type": "object" } }, "additionalProperties": false }, { "description": "Update balance of the staking contract with rewards", "type": "object", "required": [ "update_global_index" ], "properties": { "update_global_index": { "type": "object" } }, "additionalProperties": false } ] }