|
258 | 258 | },
|
259 | 259 | "delegationContract": {
|
260 | 260 | "type": "string",
|
261 |
| - "format": "evmAddress", |
262 | 261 | "title": "Contract address",
|
263 | 262 | "description": "The address of your delegation contract",
|
264 |
| - "examples": ["0x3901D0fDe202aF1427216b79f5243f8A022d68cf"] |
| 263 | + "examples": ["0x3901D0fDe202aF1427216b79f5243f8A022d68cf"], |
| 264 | + "anyOf": [ |
| 265 | + { "format": "evmAddress" }, |
| 266 | + { "format": "starknetAddress" } |
| 267 | + ] |
265 | 268 | },
|
266 | 269 | "delegationNetwork": {
|
267 | 270 | "type": "string",
|
268 |
| - "snapshotNetwork": true, |
269 | 271 | "title": "Delegation network",
|
270 |
| - "minLength": 1, |
271 |
| - "maxLength": 32, |
272 |
| - "description": "The network of your delegation contract" |
| 272 | + "description": "The network of your delegation contract", |
| 273 | + "anyOf": [ |
| 274 | + { "snapshotNetwork": true }, |
| 275 | + { "starknetNetwork": true } |
| 276 | + ] |
273 | 277 | },
|
274 | 278 | "delegationApi": {
|
275 | 279 | "type": "string",
|
|
281 | 285 | ]
|
282 | 286 | }
|
283 | 287 | },
|
284 |
| - "required": ["delegationType", "delegationApi", "delegationContract"], |
| 288 | + "required": ["delegationType", "delegationNetwork", "delegationApi", "delegationContract"], |
285 | 289 | "additionalProperties": false
|
286 | 290 | },
|
287 | 291 | "allowAlias": {
|
|
379 | 383 | },
|
380 | 384 | "network": {
|
381 | 385 | "type": "string",
|
382 |
| - "snapshotNetwork": true, |
383 | 386 | "title": "Network",
|
384 |
| - "maxLength": 12 |
| 387 | + "anyOf": [ |
| 388 | + { "snapshotNetwork": true }, |
| 389 | + { "starknetNetwork": true } |
| 390 | + ] |
385 | 391 | }
|
386 | 392 | },
|
387 | 393 | "required": ["name", "address", "network"],
|
|
0 commit comments