Skip to content

Commit 03b5aa3

Browse files
committed
Update schema files
1 parent 7183233 commit 03b5aa3

55 files changed

Lines changed: 1251 additions & 361 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

contracts/factories/base-factory/schema/base-factory.json

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"contract_name": "base-factory",
3-
"contract_version": "3.15.0",
3+
"contract_version": "3.16.0",
44
"idl_version": "1.0.0",
55
"instantiate": {
66
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -29,11 +29,13 @@
2929
"denom": {
3030
"type": "string"
3131
}
32-
}
32+
},
33+
"additionalProperties": false
3334
},
3435
"Empty": {
35-
"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)",
36-
"type": "object"
36+
"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 expressible 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)",
37+
"type": "object",
38+
"additionalProperties": false
3739
},
3840
"MinterParams_for_Nullable_Empty": {
3941
"description": "Common params for all minters used for storage",
@@ -118,17 +120,17 @@
118120
}
119121
],
120122
"definitions": {
121-
"CollectionInfo_for_RoyaltyInfoResponse": {
123+
"Addr": {
124+
"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.",
125+
"type": "string"
126+
},
127+
"CollectionExtension_for_RoyaltyInfo": {
122128
"type": "object",
123129
"required": [
124-
"creator",
125130
"description",
126131
"image"
127132
],
128133
"properties": {
129-
"creator": {
130-
"type": "string"
131-
},
132134
"description": {
133135
"type": "string"
134136
},
@@ -150,7 +152,7 @@
150152
"royalty_info": {
151153
"anyOf": [
152154
{
153-
"$ref": "#/definitions/RoyaltyInfoResponse"
155+
"$ref": "#/definitions/RoyaltyInfo"
154156
},
155157
{
156158
"type": "null"
@@ -174,6 +176,7 @@
174176
"type": "object",
175177
"required": [
176178
"code_id",
179+
"creator",
177180
"info",
178181
"name",
179182
"symbol"
@@ -185,8 +188,17 @@
185188
"format": "uint64",
186189
"minimum": 0.0
187190
},
191+
"creator": {
192+
"description": "Collection creator address",
193+
"type": "string"
194+
},
188195
"info": {
189-
"$ref": "#/definitions/CollectionInfo_for_RoyaltyInfoResponse"
196+
"description": "Collection info extension",
197+
"allOf": [
198+
{
199+
"$ref": "#/definitions/CollectionExtension_for_RoyaltyInfo"
200+
}
201+
]
190202
},
191203
"name": {
192204
"type": "string"
@@ -224,18 +236,19 @@
224236
"type": "string"
225237
},
226238
"Empty": {
227-
"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)",
228-
"type": "object"
239+
"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 expressible 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)",
240+
"type": "object",
241+
"additionalProperties": false
229242
},
230-
"RoyaltyInfoResponse": {
243+
"RoyaltyInfo": {
231244
"type": "object",
232245
"required": [
233246
"payment_address",
234247
"share"
235248
],
236249
"properties": {
237250
"payment_address": {
238-
"type": "string"
251+
"$ref": "#/definitions/Addr"
239252
},
240253
"share": {
241254
"$ref": "#/definitions/Decimal"

contracts/factories/open-edition-factory/schema/instantiate_msg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"denom": {
2626
"type": "string"
2727
}
28-
}
28+
},
29+
"additionalProperties": false
2930
},
3031
"MinterParams_for_ParamsExtension": {
3132
"description": "Common params for all minters used for storage",

contracts/factories/token-merge-factory/schema/instantiate_msg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"denom": {
2626
"type": "string"
2727
}
28-
}
28+
},
29+
"additionalProperties": false
2930
},
3031
"TokenMergeFactoryParams": {
3132
"type": "object",

contracts/factories/vending-factory/schema/instantiate_msg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"denom": {
2626
"type": "string"
2727
}
28-
}
28+
},
29+
"additionalProperties": false
2930
},
3031
"MinterParams_for_ParamsExtension": {
3132
"description": "Common params for all minters used for storage",

contracts/minters/base-minter/schema/base-minter.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"contract_name": "base-minter",
3-
"contract_version": "3.15.0",
3+
"contract_version": "3.16.0",
44
"idl_version": "1.0.0",
55
"instantiate": {
66
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -20,6 +20,10 @@
2020
},
2121
"additionalProperties": false,
2222
"definitions": {
23+
"Addr": {
24+
"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.",
25+
"type": "string"
26+
},
2327
"Coin": {
2428
"type": "object",
2529
"required": [
@@ -33,19 +37,16 @@
3337
"denom": {
3438
"type": "string"
3539
}
36-
}
40+
},
41+
"additionalProperties": false
3742
},
38-
"CollectionInfo_for_RoyaltyInfoResponse": {
43+
"CollectionExtension_for_RoyaltyInfo": {
3944
"type": "object",
4045
"required": [
41-
"creator",
4246
"description",
4347
"image"
4448
],
4549
"properties": {
46-
"creator": {
47-
"type": "string"
48-
},
4950
"description": {
5051
"type": "string"
5152
},
@@ -67,7 +68,7 @@
6768
"royalty_info": {
6869
"anyOf": [
6970
{
70-
"$ref": "#/definitions/RoyaltyInfoResponse"
71+
"$ref": "#/definitions/RoyaltyInfo"
7172
},
7273
{
7374
"type": "null"
@@ -91,6 +92,7 @@
9192
"type": "object",
9293
"required": [
9394
"code_id",
95+
"creator",
9496
"info",
9597
"name",
9698
"symbol"
@@ -102,8 +104,17 @@
102104
"format": "uint64",
103105
"minimum": 0.0
104106
},
107+
"creator": {
108+
"description": "Collection creator address",
109+
"type": "string"
110+
},
105111
"info": {
106-
"$ref": "#/definitions/CollectionInfo_for_RoyaltyInfoResponse"
112+
"description": "Collection info extension",
113+
"allOf": [
114+
{
115+
"$ref": "#/definitions/CollectionExtension_for_RoyaltyInfo"
116+
}
117+
]
107118
},
108119
"name": {
109120
"type": "string"
@@ -141,8 +152,9 @@
141152
"type": "string"
142153
},
143154
"Empty": {
144-
"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)",
145-
"type": "object"
155+
"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 expressible 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)",
156+
"type": "object",
157+
"additionalProperties": false
146158
},
147159
"MinterParams_for_Nullable_Empty": {
148160
"description": "Common params for all minters used for storage",
@@ -203,15 +215,15 @@
203215
},
204216
"additionalProperties": false
205217
},
206-
"RoyaltyInfoResponse": {
218+
"RoyaltyInfo": {
207219
"type": "object",
208220
"required": [
209221
"payment_address",
210222
"share"
211223
],
212224
"properties": {
213225
"payment_address": {
214-
"type": "string"
226+
"$ref": "#/definitions/Addr"
215227
},
216228
"share": {
217229
"$ref": "#/definitions/Decimal"

contracts/minters/open-edition-minter-merkle-wl/schema/config_response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
"denom": {
9696
"type": "string"
9797
}
98-
}
98+
},
99+
"additionalProperties": false
99100
},
100101
"Metadata": {
101102
"description": "OpenSea metadata standard, used by Stargaze marketplace. See [this link](https://docs.opensea.io/docs/metadata-standards) for details.",

contracts/minters/open-edition-minter-merkle-wl/schema/instantiate_msg.json

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
},
1717
"additionalProperties": false,
1818
"definitions": {
19+
"Addr": {
20+
"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.",
21+
"type": "string"
22+
},
1923
"Coin": {
2024
"type": "object",
2125
"required": [
@@ -29,19 +33,16 @@
2933
"denom": {
3034
"type": "string"
3135
}
32-
}
36+
},
37+
"additionalProperties": false
3338
},
34-
"CollectionInfo_for_RoyaltyInfoResponse": {
39+
"CollectionExtension_for_RoyaltyInfo": {
3540
"type": "object",
3641
"required": [
37-
"creator",
3842
"description",
3943
"image"
4044
],
4145
"properties": {
42-
"creator": {
43-
"type": "string"
44-
},
4546
"description": {
4647
"type": "string"
4748
},
@@ -63,7 +64,7 @@
6364
"royalty_info": {
6465
"anyOf": [
6566
{
66-
"$ref": "#/definitions/RoyaltyInfoResponse"
67+
"$ref": "#/definitions/RoyaltyInfo"
6768
},
6869
{
6970
"type": "null"
@@ -87,6 +88,7 @@
8788
"type": "object",
8889
"required": [
8990
"code_id",
91+
"creator",
9092
"info",
9193
"name",
9294
"symbol"
@@ -98,8 +100,17 @@
98100
"format": "uint64",
99101
"minimum": 0.0
100102
},
103+
"creator": {
104+
"description": "Collection creator address",
105+
"type": "string"
106+
},
101107
"info": {
102-
"$ref": "#/definitions/CollectionInfo_for_RoyaltyInfoResponse"
108+
"description": "Collection info extension",
109+
"allOf": [
110+
{
111+
"$ref": "#/definitions/CollectionExtension_for_RoyaltyInfo"
112+
}
113+
]
103114
},
104115
"name": {
105116
"type": "string"
@@ -381,15 +392,15 @@
381392
},
382393
"additionalProperties": false
383394
},
384-
"RoyaltyInfoResponse": {
395+
"RoyaltyInfo": {
385396
"type": "object",
386397
"required": [
387398
"payment_address",
388399
"share"
389400
],
390401
"properties": {
391402
"payment_address": {
392-
"type": "string"
403+
"$ref": "#/definitions/Addr"
393404
},
394405
"share": {
395406
"$ref": "#/definitions/Decimal"

contracts/minters/open-edition-minter-merkle-wl/schema/mint_price_response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"denom": {
4444
"type": "string"
4545
}
46-
}
46+
},
47+
"additionalProperties": false
4748
},
4849
"Uint128": {
4950
"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); ```",

contracts/minters/open-edition-minter-merkle-wl/schema/minter_config_for__config_extension.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"denom": {
4545
"type": "string"
4646
}
47-
}
47+
},
48+
"additionalProperties": false
4849
},
4950
"ConfigExtension": {
5051
"type": "object",

contracts/minters/open-edition-minter-wl-flex/schema/config_response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
"denom": {
9696
"type": "string"
9797
}
98-
}
98+
},
99+
"additionalProperties": false
99100
},
100101
"Metadata": {
101102
"description": "OpenSea metadata standard, used by Stargaze marketplace. See [this link](https://docs.opensea.io/docs/metadata-standards) for details.",

0 commit comments

Comments
 (0)