|
6 | 6 | "$schema": "http://json-schema.org/draft-07/schema#", |
7 | 7 | "title": "InstantiateMsg", |
8 | 8 | "type": "object", |
9 | | - "required": [ |
10 | | - "beneficiary", |
11 | | - "verifier" |
12 | | - ], |
| 9 | + "required": ["beneficiary", "verifier"], |
13 | 10 | "properties": { |
14 | 11 | "beneficiary": { |
15 | 12 | "type": "string" |
|
27 | 24 | { |
28 | 25 | "description": "Releasing all funds of the given denom in the contract to the beneficiary. This is the only \"proper\" action of this demo contract.", |
29 | 26 | "type": "object", |
30 | | - "required": [ |
31 | | - "release" |
32 | | - ], |
| 27 | + "required": ["release"], |
33 | 28 | "properties": { |
34 | 29 | "release": { |
35 | 30 | "type": "object", |
36 | | - "required": [ |
37 | | - "denom" |
38 | | - ], |
| 31 | + "required": ["denom"], |
39 | 32 | "properties": { |
40 | 33 | "denom": { |
41 | 34 | "type": "string" |
|
49 | 42 | { |
50 | 43 | "description": "Infinite loop to burn cpu cycles (only run when metering is enabled)", |
51 | 44 | "type": "object", |
52 | | - "required": [ |
53 | | - "cpu_loop" |
54 | | - ], |
| 45 | + "required": ["cpu_loop"], |
55 | 46 | "properties": { |
56 | 47 | "cpu_loop": { |
57 | 48 | "type": "object", |
|
63 | 54 | { |
64 | 55 | "description": "Infinite loop making storage calls (to test when their limit hits)", |
65 | 56 | "type": "object", |
66 | | - "required": [ |
67 | | - "storage_loop" |
68 | | - ], |
| 57 | + "required": ["storage_loop"], |
69 | 58 | "properties": { |
70 | 59 | "storage_loop": { |
71 | 60 | "type": "object", |
|
77 | 66 | { |
78 | 67 | "description": "Infinite loop reading and writing memory", |
79 | 68 | "type": "object", |
80 | | - "required": [ |
81 | | - "memory_loop" |
82 | | - ], |
| 69 | + "required": ["memory_loop"], |
83 | 70 | "properties": { |
84 | 71 | "memory_loop": { |
85 | 72 | "type": "object", |
|
91 | 78 | { |
92 | 79 | "description": "Infinite loop sending message to itself", |
93 | 80 | "type": "object", |
94 | | - "required": [ |
95 | | - "message_loop" |
96 | | - ], |
| 81 | + "required": ["message_loop"], |
97 | 82 | "properties": { |
98 | 83 | "message_loop": { |
99 | 84 | "type": "object", |
|
105 | 90 | { |
106 | 91 | "description": "Allocate large amounts of memory without consuming much gas", |
107 | 92 | "type": "object", |
108 | | - "required": [ |
109 | | - "allocate_large_memory" |
110 | | - ], |
| 93 | + "required": ["allocate_large_memory"], |
111 | 94 | "properties": { |
112 | 95 | "allocate_large_memory": { |
113 | 96 | "type": "object", |
114 | | - "required": [ |
115 | | - "pages" |
116 | | - ], |
| 97 | + "required": ["pages"], |
117 | 98 | "properties": { |
118 | 99 | "pages": { |
119 | 100 | "type": "integer", |
|
129 | 110 | { |
130 | 111 | "description": "Trigger a panic to ensure framework handles gracefully", |
131 | 112 | "type": "object", |
132 | | - "required": [ |
133 | | - "panic" |
134 | | - ], |
| 113 | + "required": ["panic"], |
135 | 114 | "properties": { |
136 | 115 | "panic": { |
137 | 116 | "type": "object", |
|
143 | 122 | { |
144 | 123 | "description": "Starting with CosmWasm 0.10, some API calls return user errors back to the contract. This triggers such user errors, ensuring the transaction does not fail in the backend.", |
145 | 124 | "type": "object", |
146 | | - "required": [ |
147 | | - "user_errors_in_api_calls" |
148 | | - ], |
| 125 | + "required": ["user_errors_in_api_calls"], |
149 | 126 | "properties": { |
150 | 127 | "user_errors_in_api_calls": { |
151 | 128 | "type": "object", |
|
163 | 140 | { |
164 | 141 | "description": "returns a human-readable representation of the verifier use to ensure query path works in integration tests", |
165 | 142 | "type": "object", |
166 | | - "required": [ |
167 | | - "verifier" |
168 | | - ], |
| 143 | + "required": ["verifier"], |
169 | 144 | "properties": { |
170 | 145 | "verifier": { |
171 | 146 | "type": "object", |
|
177 | 152 | { |
178 | 153 | "description": "Recurse will execute a query into itself up to depth-times and return Each step of the recursion may perform some extra work to test gas metering (`work` rounds of sha256 on contract). Now that we have Env, we can auto-calculate the address to recurse into", |
179 | 154 | "type": "object", |
180 | | - "required": [ |
181 | | - "recurse" |
182 | | - ], |
| 155 | + "required": ["recurse"], |
183 | 156 | "properties": { |
184 | 157 | "recurse": { |
185 | 158 | "type": "object", |
186 | | - "required": [ |
187 | | - "depth", |
188 | | - "work" |
189 | | - ], |
| 159 | + "required": ["depth", "work"], |
190 | 160 | "properties": { |
191 | 161 | "depth": { |
192 | 162 | "type": "integer", |
|
207 | 177 | { |
208 | 178 | "description": "GetInt returns a hardcoded u32 value", |
209 | 179 | "type": "object", |
210 | | - "required": [ |
211 | | - "get_int" |
212 | | - ], |
| 180 | + "required": ["get_int"], |
213 | 181 | "properties": { |
214 | 182 | "get_int": { |
215 | 183 | "type": "object", |
|
225 | 193 | "title": "MigrateMsg", |
226 | 194 | "description": "MigrateMsg allows a privileged contract administrator to run a migration on the contract. In this (demo) case it is just migrating from one hackatom code to the same code, but taking advantage of the migration step to set a new validator.\n\nNote that the contract doesn't enforce permissions here, this is done by blockchain logic (in the future by blockchain governance)", |
227 | 195 | "type": "object", |
228 | | - "required": [ |
229 | | - "verifier" |
230 | | - ], |
| 196 | + "required": ["verifier"], |
231 | 197 | "properties": { |
232 | 198 | "verifier": { |
233 | 199 | "type": "string" |
|
242 | 208 | "oneOf": [ |
243 | 209 | { |
244 | 210 | "type": "object", |
245 | | - "required": [ |
246 | | - "steal_funds" |
247 | | - ], |
| 211 | + "required": ["steal_funds"], |
248 | 212 | "properties": { |
249 | 213 | "steal_funds": { |
250 | 214 | "type": "object", |
251 | | - "required": [ |
252 | | - "amount", |
253 | | - "recipient" |
254 | | - ], |
| 215 | + "required": ["amount", "recipient"], |
255 | 216 | "properties": { |
256 | 217 | "amount": { |
257 | 218 | "type": "array", |
|
272 | 233 | "definitions": { |
273 | 234 | "Coin": { |
274 | 235 | "type": "object", |
275 | | - "required": [ |
276 | | - "amount", |
277 | | - "denom" |
278 | | - ], |
| 236 | + "required": ["amount", "denom"], |
279 | 237 | "properties": { |
280 | 238 | "amount": { |
281 | | - "$ref": "#/definitions/Uint128" |
| 239 | + "$ref": "#/definitions/Uint256" |
282 | 240 | }, |
283 | 241 | "denom": { |
284 | 242 | "type": "string" |
285 | 243 | } |
286 | 244 | }, |
287 | 245 | "additionalProperties": false |
288 | 246 | }, |
289 | | - "Uint128": { |
290 | | - "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); ```", |
| 247 | + "Uint256": { |
| 248 | + "description": "An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `new` to create instances out of u128, `from` for other primitive uint types or `from_be_bytes` to provide big endian bytes:\n\n``` # use cosmwasm_std::Uint256; let a = Uint256::new(258u128); let b = Uint256::from(258u16); let c = Uint256::from_be_bytes([ 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 1u8, 2u8, ]); assert_eq!(a, b); assert_eq!(a, c); ```", |
291 | 249 | "type": "string" |
292 | 250 | } |
293 | 251 | } |
|
297 | 255 | "$schema": "http://json-schema.org/draft-07/schema#", |
298 | 256 | "title": "IntResponse", |
299 | 257 | "type": "object", |
300 | | - "required": [ |
301 | | - "int" |
302 | | - ], |
| 258 | + "required": ["int"], |
303 | 259 | "properties": { |
304 | 260 | "int": { |
305 | 261 | "type": "integer", |
|
313 | 269 | "$schema": "http://json-schema.org/draft-07/schema#", |
314 | 270 | "title": "RecurseResponse", |
315 | 271 | "type": "object", |
316 | | - "required": [ |
317 | | - "hashed" |
318 | | - ], |
| 272 | + "required": ["hashed"], |
319 | 273 | "properties": { |
320 | 274 | "hashed": { |
321 | 275 | "description": "hashed is the result of running sha256 \"work+1\" times on the contract's human address", |
|
338 | 292 | "$schema": "http://json-schema.org/draft-07/schema#", |
339 | 293 | "title": "VerifierResponse", |
340 | 294 | "type": "object", |
341 | | - "required": [ |
342 | | - "verifier" |
343 | | - ], |
| 295 | + "required": ["verifier"], |
344 | 296 | "properties": { |
345 | 297 | "verifier": { |
346 | 298 | "type": "string" |
|
0 commit comments