From 7874011b76e1db21678343dccf0f84b5643d575e Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Fri, 2 Aug 2024 00:01:21 -0400 Subject: [PATCH] updated schema --- .../dao-pre-propose-approval-single.json | 124 +++++++++--------- .../schema/dao-pre-propose-approver.json | 92 +++++++------ .../schema/dao-pre-propose-multiple.json | 124 +++++++++--------- .../schema/dao-pre-propose-single.json | 124 +++++++++--------- 4 files changed, 224 insertions(+), 240 deletions(-) diff --git a/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json b/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json index 060a12f52..25303c6bd 100644 --- a/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json +++ b/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json @@ -41,6 +41,10 @@ }, "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" + }, "DepositRefundPolicy": { "oneOf": [ { @@ -139,15 +143,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -166,17 +170,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -185,12 +188,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -531,6 +531,10 @@ } ], "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" + }, "BankMsg": { "description": "The message types of the bank module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto", "oneOf": [ @@ -1204,15 +1208,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1231,17 +1235,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -1250,12 +1253,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2328,6 +2328,10 @@ } ], "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" + }, "Empty": { "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" @@ -2344,15 +2348,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2371,17 +2375,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2390,12 +2393,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2553,15 +2553,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2580,17 +2580,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2599,12 +2598,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, diff --git a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json index 82f095399..8dc9a227c 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json +++ b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json @@ -266,6 +266,10 @@ } ], "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" + }, "ApproverProposeMessage": { "oneOf": [ { @@ -451,15 +455,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -478,17 +482,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -497,12 +500,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -942,6 +942,10 @@ } ], "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" + }, "Empty": { "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" @@ -958,15 +962,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -985,17 +989,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -1004,12 +1007,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1167,15 +1167,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1194,17 +1194,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -1213,12 +1212,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, diff --git a/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json b/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json index a39977ce6..a23f2cc06 100644 --- a/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json +++ b/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json @@ -41,6 +41,10 @@ }, "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" + }, "DepositRefundPolicy": { "oneOf": [ { @@ -131,15 +135,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -158,17 +162,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -177,12 +180,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -523,6 +523,10 @@ } ], "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" + }, "BankMsg": { "description": "The message types of the bank module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto", "oneOf": [ @@ -1201,15 +1205,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1228,17 +1232,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -1247,12 +1250,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2013,6 +2013,10 @@ } ], "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" + }, "Empty": { "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" @@ -2029,15 +2033,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2056,17 +2060,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2075,12 +2078,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2238,15 +2238,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2265,17 +2265,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2284,12 +2283,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, diff --git a/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json b/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json index 83c0fac71..d91d61190 100644 --- a/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json +++ b/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json @@ -41,6 +41,10 @@ }, "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" + }, "DepositRefundPolicy": { "oneOf": [ { @@ -131,15 +135,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -158,17 +162,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -177,12 +180,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -523,6 +523,10 @@ } ], "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" + }, "BankMsg": { "description": "The message types of the bank module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto", "oneOf": [ @@ -1122,15 +1126,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1149,17 +1153,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -1168,12 +1171,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -1987,6 +1987,10 @@ } ], "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" + }, "Empty": { "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" @@ -2003,15 +2007,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2030,17 +2034,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2049,12 +2052,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2212,15 +2212,15 @@ "properties": { "anyone": { "type": "object", + "required": [ + "denylist" + ], "properties": { "denylist": { "description": "Addresses that may not create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } }, @@ -2239,17 +2239,16 @@ "specific": { "type": "object", "required": [ - "dao_members" + "allowlist", + "dao_members", + "denylist" ], "properties": { "allowlist": { "description": "Addresses that may create proposals.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } }, "dao_members": { @@ -2258,12 +2257,9 @@ }, "denylist": { "description": "Addresses that may not create proposals, overriding other settings.", - "type": [ - "array", - "null" - ], + "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/Addr" } } },