{ "contract_name": "sg-splits", "contract_version": "3.14.0", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", "required": [ "group" ], "properties": { "admin": { "type": [ "string", "null" ] }, "group": { "$ref": "#/definitions/Group" } }, "additionalProperties": false, "definitions": { "Admin": { "oneOf": [ { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "object", "required": [ "addr" ], "properties": { "addr": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, { "type": "object", "required": [ "creator" ], "properties": { "creator": { "type": "object", "additionalProperties": false } }, "additionalProperties": false } ] }, "Binary": { "description": "Binary is a wrapper around Vec to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec. See also .", "type": "string" }, "ContractInstantiateMsg": { "type": "object", "required": [ "code_id", "label", "msg" ], "properties": { "admin": { "anyOf": [ { "$ref": "#/definitions/Admin" }, { "type": "null" } ] }, "code_id": { "type": "integer", "format": "uint64", "minimum": 0.0 }, "label": { "type": "string" }, "msg": { "$ref": "#/definitions/Binary" } }, "additionalProperties": false }, "Group": { "oneOf": [ { "type": "object", "required": [ "cw4_instantiate" ], "properties": { "cw4_instantiate": { "$ref": "#/definitions/ContractInstantiateMsg" } }, "additionalProperties": false }, { "type": "object", "required": [ "cw4_address" ], "properties": { "cw4_address": { "type": "string" } }, "additionalProperties": false } ] } } }, "execute": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ { "type": "object", "required": [ "update_admin" ], "properties": { "update_admin": { "type": "object", "properties": { "admin": { "type": [ "string", "null" ] } }, "additionalProperties": false } }, "additionalProperties": false }, { "type": "object", "required": [ "distribute" ], "properties": { "distribute": { "type": "object", "properties": { "denom_list": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "additionalProperties": false } }, "additionalProperties": false } ] }, "query": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ { "type": "object", "required": [ "admin" ], "properties": { "admin": { "type": "object", "additionalProperties": false } }, "additionalProperties": false }, { "type": "object", "required": [ "group" ], "properties": { "group": { "type": "object", "additionalProperties": false } }, "additionalProperties": false }, { "type": "object", "required": [ "member" ], "properties": { "member": { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, { "type": "object", "required": [ "list_members" ], "properties": { "list_members": { "type": "object", "properties": { "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "type": [ "string", "null" ] } }, "additionalProperties": false } }, "additionalProperties": false } ] }, "migrate": null, "sudo": null, "responses": { "admin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "AdminResponse", "description": "Returned from Admin.query_admin()", "type": "object", "properties": { "admin": { "type": [ "string", "null" ] } }, "additionalProperties": false }, "group": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Addr", "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" }, "list_members": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "MemberListResponse", "type": "object", "required": [ "members" ], "properties": { "members": { "type": "array", "items": { "$ref": "#/definitions/Member" } } }, "additionalProperties": false, "definitions": { "Member": { "description": "A group member has a weight associated with them. This may all be equal, or may have meaning in the app that makes use of the group (eg. voting power)", "type": "object", "required": [ "addr", "weight" ], "properties": { "addr": { "type": "string" }, "weight": { "type": "integer", "format": "uint64", "minimum": 0.0 } }, "additionalProperties": false } } }, "member": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "MemberResponse", "type": "object", "properties": { "weight": { "type": [ "integer", "null" ], "format": "uint64", "minimum": 0.0 } }, "additionalProperties": false } } }