@snapshot-labs/snapshot.js 0.12.19 → 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.
- package/dist/snapshot.cjs.js +26 -0
- package/dist/snapshot.esm.js +26 -0
- package/dist/snapshot.min.js +1 -1
- package/dist/src/index.d.ts +24 -0
- package/dist/src/schemas/index.d.ts +24 -0
- package/dist/src/sign/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/schemas/proposal.json +12 -0
- package/src/schemas/update-proposal.json +12 -0
- package/src/sign/hashedTypes.json +3 -1
- package/src/sign/types.ts +4 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -480,6 +480,18 @@ declare const _default: {
|
|
|
480
480
|
turbo: number;
|
|
481
481
|
};
|
|
482
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
|
+
};
|
|
483
495
|
type: {
|
|
484
496
|
type: string;
|
|
485
497
|
enum: string[];
|
|
@@ -551,6 +563,18 @@ declare const _default: {
|
|
|
551
563
|
turbo: number;
|
|
552
564
|
};
|
|
553
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
|
+
};
|
|
554
578
|
type: {
|
|
555
579
|
enum: string[];
|
|
556
580
|
};
|
|
@@ -476,6 +476,18 @@ declare const _default: {
|
|
|
476
476
|
turbo: number;
|
|
477
477
|
};
|
|
478
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
|
+
};
|
|
479
491
|
type: {
|
|
480
492
|
type: string;
|
|
481
493
|
enum: string[];
|
|
@@ -547,6 +559,18 @@ declare const _default: {
|
|
|
547
559
|
turbo: number;
|
|
548
560
|
};
|
|
549
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
|
+
};
|
|
550
574
|
type: {
|
|
551
575
|
enum: string[];
|
|
552
576
|
};
|
package/dist/src/sign/types.d.ts
CHANGED
|
@@ -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
|
@@ -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": [
|
|
@@ -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
|
};
|