@snapshot-labs/snapshot.js 0.12.20 → 0.12.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -367,9 +367,9 @@ declare const _default: {
367
367
  type: string;
368
368
  title: string;
369
369
  examples: string[];
370
- pattern: string;
371
- minLength: number;
372
- maxLength: number;
370
+ anyOf: {
371
+ format: string;
372
+ }[];
373
373
  };
374
374
  network: {
375
375
  type: string;
@@ -363,9 +363,9 @@ declare const _default: {
363
363
  type: string;
364
364
  title: string;
365
365
  examples: string[];
366
- pattern: string;
367
- minLength: number;
368
- maxLength: number;
366
+ anyOf: {
367
+ format: string;
368
+ }[];
369
369
  };
370
370
  network: {
371
371
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.20",
3
+ "version": "0.12.21",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -378,9 +378,10 @@
378
378
  "type": "string",
379
379
  "title": "Contract address",
380
380
  "examples": ["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],
381
- "pattern": "^0x[a-fA-F0-9]{40}$",
382
- "minLength": 42,
383
- "maxLength": 42
381
+ "anyOf": [
382
+ { "format": "address" },
383
+ { "format": "starknetAddress" }
384
+ ]
384
385
  },
385
386
  "network": {
386
387
  "type": "string",