@snapshot-labs/snapshot.js 0.12.18 → 0.12.20

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.
@@ -404,7 +404,6 @@ declare const _default: {
404
404
  description: {
405
405
  type: string;
406
406
  title: string;
407
- minLength: number;
408
407
  maxLength: number;
409
408
  };
410
409
  color: {
@@ -481,6 +480,18 @@ declare const _default: {
481
480
  turbo: number;
482
481
  };
483
482
  };
483
+ labels: {
484
+ type: string;
485
+ title: string;
486
+ maxItems: number;
487
+ uniqueItems: boolean;
488
+ items: {
489
+ type: string;
490
+ minLength: number;
491
+ maxLength: number;
492
+ pattern: string;
493
+ };
494
+ };
484
495
  type: {
485
496
  type: string;
486
497
  enum: string[];
@@ -552,6 +563,18 @@ declare const _default: {
552
563
  turbo: number;
553
564
  };
554
565
  };
566
+ labels: {
567
+ type: string;
568
+ title: string;
569
+ maxItems: number;
570
+ uniqueItems: boolean;
571
+ items: {
572
+ type: string;
573
+ minLength: number;
574
+ maxLength: number;
575
+ pattern: string;
576
+ };
577
+ };
555
578
  type: {
556
579
  enum: string[];
557
580
  };
@@ -400,7 +400,6 @@ declare const _default: {
400
400
  description: {
401
401
  type: string;
402
402
  title: string;
403
- minLength: number;
404
403
  maxLength: number;
405
404
  };
406
405
  color: {
@@ -477,6 +476,18 @@ declare const _default: {
477
476
  turbo: number;
478
477
  };
479
478
  };
479
+ labels: {
480
+ type: string;
481
+ title: string;
482
+ maxItems: number;
483
+ uniqueItems: boolean;
484
+ items: {
485
+ type: string;
486
+ minLength: number;
487
+ maxLength: number;
488
+ pattern: string;
489
+ };
490
+ };
480
491
  type: {
481
492
  type: string;
482
493
  enum: string[];
@@ -548,6 +559,18 @@ declare const _default: {
548
559
  turbo: number;
549
560
  };
550
561
  };
562
+ labels: {
563
+ type: string;
564
+ title: string;
565
+ maxItems: number;
566
+ uniqueItems: boolean;
567
+ items: {
568
+ type: string;
569
+ minLength: number;
570
+ maxLength: number;
571
+ pattern: string;
572
+ };
573
+ };
551
574
  type: {
552
575
  enum: string[];
553
576
  };
@@ -14,6 +14,7 @@ export interface Proposal {
14
14
  body: string;
15
15
  discussion: string;
16
16
  choices: string[];
17
+ labels?: string[];
17
18
  start: number;
18
19
  end: number;
19
20
  snapshot: number;
@@ -30,6 +31,7 @@ export interface UpdateProposal {
30
31
  body: string;
31
32
  discussion: string;
32
33
  choices: string[];
34
+ labels?: string[];
33
35
  plugins: string;
34
36
  }
35
37
  export interface FlagProposal {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.18",
3
+ "version": "0.12.20",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -36,6 +36,18 @@
36
36
  "turbo": 1000
37
37
  }
38
38
  },
39
+ "labels": {
40
+ "type": "array",
41
+ "title": "labels",
42
+ "maxItems": 10,
43
+ "uniqueItems": true,
44
+ "items": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "maxLength": 8,
48
+ "pattern": "^[a-zA-Z0-9]+$"
49
+ }
50
+ },
39
51
  "type": {
40
52
  "type": "string",
41
53
  "enum": [
@@ -415,7 +415,6 @@
415
415
  "description": {
416
416
  "type": "string",
417
417
  "title": "Description",
418
- "minLength": 1,
419
418
  "maxLength": 100
420
419
  },
421
420
  "color": {
@@ -424,7 +423,7 @@
424
423
  "format": "color"
425
424
  }
426
425
  },
427
- "required": ["id", "name", "description", "color"],
426
+ "required": ["id", "name", "color"],
428
427
  "additionalProperties": false
429
428
  }
430
429
  },
@@ -40,6 +40,18 @@
40
40
  "turbo": 1000
41
41
  }
42
42
  },
43
+ "labels": {
44
+ "type": "array",
45
+ "title": "labels",
46
+ "maxItems": 10,
47
+ "uniqueItems": true,
48
+ "items": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "maxLength": 8,
52
+ "pattern": "^[a-zA-Z0-9]+$"
53
+ }
54
+ },
43
55
  "type": {
44
56
  "enum": [
45
57
  "single-choice",
@@ -60,5 +60,7 @@
60
60
  "42f8858a21d4aa232721cb97074851e729829ea362b88bb21f3879899663b586": "follow",
61
61
  "2bb75450e28b06f259ea764cd669de6bde0ba70ce729b0ff05ab9df56e0ff21d": "unfollow",
62
62
  "2ffbebcbd22ef48fd2f4a1182ff1feda7795b57689bd6f0dd73c89e925e7fefb": "profile",
63
- "4288d50b713081aae77d60d596d75864bff7acf7791a00183401e58658ee9da5": "statement"
63
+ "4288d50b713081aae77d60d596d75864bff7acf7791a00183401e58658ee9da5": "statement",
64
+ "d56782e3b50ac86c25ae292923da8c367e3c9e8e7ea9d8baa435051fe2f430fa": "proposal",
65
+ "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal"
64
66
  }
package/src/sign/types.ts CHANGED
@@ -22,6 +22,7 @@ export interface Proposal {
22
22
  body: string;
23
23
  discussion: string;
24
24
  choices: string[];
25
+ labels?: string[];
25
26
  start: number;
26
27
  end: number;
27
28
  snapshot: number;
@@ -39,6 +40,7 @@ export interface UpdateProposal {
39
40
  body: string;
40
41
  discussion: string;
41
42
  choices: string[];
43
+ labels?: string[];
42
44
  plugins: string;
43
45
  }
44
46
 
@@ -143,6 +145,7 @@ export const proposalTypes = {
143
145
  { name: 'body', type: 'string' },
144
146
  { name: 'discussion', type: 'string' },
145
147
  { name: 'choices', type: 'string[]' },
148
+ { name: 'labels', type: 'string[]' },
146
149
  { name: 'start', type: 'uint64' },
147
150
  { name: 'end', type: 'uint64' },
148
151
  { name: 'snapshot', type: 'uint64' },
@@ -162,6 +165,7 @@ export const updateProposalTypes = {
162
165
  { name: 'body', type: 'string' },
163
166
  { name: 'discussion', type: 'string' },
164
167
  { name: 'choices', type: 'string[]' },
168
+ { name: 'labels', type: 'string[]' },
165
169
  { name: 'plugins', type: 'string' }
166
170
  ]
167
171
  };