{ "contract_name": "cw-admin-factory", "contract_version": "2.6.0", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", "properties": { "admin": { "description": "The account allowed to execute this contract. If no admin, anyone can execute it.", "type": [ "string", "null" ] } }, "additionalProperties": false }, "execute": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "oneOf": [ { "description": "Instantiates the target contract with the provided instantiate message, code ID, and label and updates the contract's admin to be itself.", "type": "object", "required": [ "instantiate_contract_with_self_admin" ], "properties": { "instantiate_contract_with_self_admin": { "type": "object", "required": [ "code_id", "instantiate_msg", "label" ], "properties": { "code_id": { "type": "integer", "format": "uint64", "minimum": 0.0 }, "instantiate_msg": { "$ref": "#/definitions/Binary" }, "label": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, { "description": "Instantiates the target contract with the provided instantiate message, code ID, label, and salt, via instantiate2 to give a predictable address, and updates the contract's admin to be itself.", "type": "object", "required": [ "instantiate2_contract_with_self_admin" ], "properties": { "instantiate2_contract_with_self_admin": { "type": "object", "required": [ "code_id", "instantiate_msg", "label", "salt" ], "properties": { "code_id": { "type": "integer", "format": "uint64", "minimum": 0.0 }, "expect": { "description": "Optionally specify the expected address and fail if it doesn't match the instantiated contract. This makes it easy for a consumer to validate that they are using the correct address elsewhere.", "type": [ "string", "null" ] }, "instantiate_msg": { "$ref": "#/definitions/Binary" }, "label": { "type": "string" }, "salt": { "$ref": "#/definitions/Binary" } }, "additionalProperties": false } }, "additionalProperties": false } ], "definitions": { "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" } } }, "query": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ { "type": "object", "required": [ "admin" ], "properties": { "admin": { "type": "object", "additionalProperties": false } }, "additionalProperties": false } ] }, "migrate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "MigrateMsg", "type": "object", "additionalProperties": false }, "sudo": null, "responses": { "admin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "AdminResponse", "type": "object", "properties": { "admin": { "anyOf": [ { "$ref": "#/definitions/Addr" }, { "type": "null" } ] } }, "additionalProperties": false, "definitions": { "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" } } } } }