|
6 | 6 | "$schema": "http://json-schema.org/draft-07/schema#", |
7 | 7 | "title": "InstantiateMsg", |
8 | 8 | "type": "object", |
9 | | - "required": ["beneficiary", "verifier"], |
| 9 | + "required": [ |
| 10 | + "beneficiary", |
| 11 | + "verifier" |
| 12 | + ], |
10 | 13 | "properties": { |
11 | 14 | "beneficiary": { |
12 | 15 | "type": "string" |
|
24 | 27 | { |
25 | 28 | "description": "Releasing all funds of the given denom in the contract to the beneficiary. This is the only \"proper\" action of this demo contract.", |
26 | 29 | "type": "object", |
27 | | - "required": ["release"], |
| 30 | + "required": [ |
| 31 | + "release" |
| 32 | + ], |
28 | 33 | "properties": { |
29 | 34 | "release": { |
30 | 35 | "type": "object", |
31 | | - "required": ["denom"], |
| 36 | + "required": [ |
| 37 | + "denom" |
| 38 | + ], |
32 | 39 | "properties": { |
33 | 40 | "denom": { |
34 | 41 | "type": "string" |
|
42 | 49 | { |
43 | 50 | "description": "Infinite loop to burn cpu cycles (only run when metering is enabled)", |
44 | 51 | "type": "object", |
45 | | - "required": ["cpu_loop"], |
| 52 | + "required": [ |
| 53 | + "cpu_loop" |
| 54 | + ], |
46 | 55 | "properties": { |
47 | 56 | "cpu_loop": { |
48 | 57 | "type": "object", |
|
54 | 63 | { |
55 | 64 | "description": "Infinite loop making storage calls (to test when their limit hits)", |
56 | 65 | "type": "object", |
57 | | - "required": ["storage_loop"], |
| 66 | + "required": [ |
| 67 | + "storage_loop" |
| 68 | + ], |
58 | 69 | "properties": { |
59 | 70 | "storage_loop": { |
60 | 71 | "type": "object", |
|
66 | 77 | { |
67 | 78 | "description": "Infinite loop reading and writing memory", |
68 | 79 | "type": "object", |
69 | | - "required": ["memory_loop"], |
| 80 | + "required": [ |
| 81 | + "memory_loop" |
| 82 | + ], |
70 | 83 | "properties": { |
71 | 84 | "memory_loop": { |
72 | 85 | "type": "object", |
|
78 | 91 | { |
79 | 92 | "description": "Infinite loop sending message to itself", |
80 | 93 | "type": "object", |
81 | | - "required": ["message_loop"], |
| 94 | + "required": [ |
| 95 | + "message_loop" |
| 96 | + ], |
82 | 97 | "properties": { |
83 | 98 | "message_loop": { |
84 | 99 | "type": "object", |
|
90 | 105 | { |
91 | 106 | "description": "Allocate large amounts of memory without consuming much gas", |
92 | 107 | "type": "object", |
93 | | - "required": ["allocate_large_memory"], |
| 108 | + "required": [ |
| 109 | + "allocate_large_memory" |
| 110 | + ], |
94 | 111 | "properties": { |
95 | 112 | "allocate_large_memory": { |
96 | 113 | "type": "object", |
97 | | - "required": ["pages"], |
| 114 | + "required": [ |
| 115 | + "pages" |
| 116 | + ], |
98 | 117 | "properties": { |
99 | 118 | "pages": { |
100 | 119 | "type": "integer", |
|
110 | 129 | { |
111 | 130 | "description": "Trigger a panic to ensure framework handles gracefully", |
112 | 131 | "type": "object", |
113 | | - "required": ["panic"], |
| 132 | + "required": [ |
| 133 | + "panic" |
| 134 | + ], |
114 | 135 | "properties": { |
115 | 136 | "panic": { |
116 | 137 | "type": "object", |
|
122 | 143 | { |
123 | 144 | "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.", |
124 | 145 | "type": "object", |
125 | | - "required": ["user_errors_in_api_calls"], |
| 146 | + "required": [ |
| 147 | + "user_errors_in_api_calls" |
| 148 | + ], |
126 | 149 | "properties": { |
127 | 150 | "user_errors_in_api_calls": { |
128 | 151 | "type": "object", |
|
140 | 163 | { |
141 | 164 | "description": "returns a human-readable representation of the verifier use to ensure query path works in integration tests", |
142 | 165 | "type": "object", |
143 | | - "required": ["verifier"], |
| 166 | + "required": [ |
| 167 | + "verifier" |
| 168 | + ], |
144 | 169 | "properties": { |
145 | 170 | "verifier": { |
146 | 171 | "type": "object", |
|
152 | 177 | { |
153 | 178 | "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", |
154 | 179 | "type": "object", |
155 | | - "required": ["recurse"], |
| 180 | + "required": [ |
| 181 | + "recurse" |
| 182 | + ], |
156 | 183 | "properties": { |
157 | 184 | "recurse": { |
158 | 185 | "type": "object", |
159 | | - "required": ["depth", "work"], |
| 186 | + "required": [ |
| 187 | + "depth", |
| 188 | + "work" |
| 189 | + ], |
160 | 190 | "properties": { |
161 | 191 | "depth": { |
162 | 192 | "type": "integer", |
|
177 | 207 | { |
178 | 208 | "description": "GetInt returns a hardcoded u32 value", |
179 | 209 | "type": "object", |
180 | | - "required": ["get_int"], |
| 210 | + "required": [ |
| 211 | + "get_int" |
| 212 | + ], |
181 | 213 | "properties": { |
182 | 214 | "get_int": { |
183 | 215 | "type": "object", |
|
193 | 225 | "title": "MigrateMsg", |
194 | 226 | "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)", |
195 | 227 | "type": "object", |
196 | | - "required": ["verifier"], |
| 228 | + "required": [ |
| 229 | + "verifier" |
| 230 | + ], |
197 | 231 | "properties": { |
198 | 232 | "verifier": { |
199 | 233 | "type": "string" |
|
208 | 242 | "oneOf": [ |
209 | 243 | { |
210 | 244 | "type": "object", |
211 | | - "required": ["steal_funds"], |
| 245 | + "required": [ |
| 246 | + "steal_funds" |
| 247 | + ], |
212 | 248 | "properties": { |
213 | 249 | "steal_funds": { |
214 | 250 | "type": "object", |
215 | | - "required": ["amount", "recipient"], |
| 251 | + "required": [ |
| 252 | + "amount", |
| 253 | + "recipient" |
| 254 | + ], |
216 | 255 | "properties": { |
217 | 256 | "amount": { |
218 | 257 | "type": "array", |
|
233 | 272 | "definitions": { |
234 | 273 | "Coin": { |
235 | 274 | "type": "object", |
236 | | - "required": ["amount", "denom"], |
| 275 | + "required": [ |
| 276 | + "amount", |
| 277 | + "denom" |
| 278 | + ], |
237 | 279 | "properties": { |
238 | 280 | "amount": { |
239 | 281 | "$ref": "#/definitions/Uint256" |
|
255 | 297 | "$schema": "http://json-schema.org/draft-07/schema#", |
256 | 298 | "title": "IntResponse", |
257 | 299 | "type": "object", |
258 | | - "required": ["int"], |
| 300 | + "required": [ |
| 301 | + "int" |
| 302 | + ], |
259 | 303 | "properties": { |
260 | 304 | "int": { |
261 | 305 | "type": "integer", |
|
269 | 313 | "$schema": "http://json-schema.org/draft-07/schema#", |
270 | 314 | "title": "RecurseResponse", |
271 | 315 | "type": "object", |
272 | | - "required": ["hashed"], |
| 316 | + "required": [ |
| 317 | + "hashed" |
| 318 | + ], |
273 | 319 | "properties": { |
274 | 320 | "hashed": { |
275 | 321 | "description": "hashed is the result of running sha256 \"work+1\" times on the contract's human address", |
|
292 | 338 | "$schema": "http://json-schema.org/draft-07/schema#", |
293 | 339 | "title": "VerifierResponse", |
294 | 340 | "type": "object", |
295 | | - "required": ["verifier"], |
| 341 | + "required": [ |
| 342 | + "verifier" |
| 343 | + ], |
296 | 344 | "properties": { |
297 | 345 | "verifier": { |
298 | 346 | "type": "string" |
|
0 commit comments