@snapshot-labs/snapshot.js 0.12.3 → 0.12.4
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 +10 -3
- package/dist/snapshot.esm.js +10 -3
- package/dist/snapshot.min.js +2 -2
- package/dist/src/index.d.ts +9 -2
- package/dist/src/schemas/index.d.ts +8 -2
- package/dist/src/utils/delegation.d.ts +1 -0
- package/dist/src/utils.d.ts +1 -0
- package/package.json +1 -1
- package/src/delegationSubgraphs.json +1 -0
- package/src/schemas/proposal.json +4 -1
- package/src/schemas/update-proposal.json +4 -1
- package/src/utils.ts +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -423,7 +423,10 @@ declare const _default: {
|
|
|
423
423
|
type: string;
|
|
424
424
|
title: string;
|
|
425
425
|
minItems: number;
|
|
426
|
-
|
|
426
|
+
maxLengthWithSpaceType: {
|
|
427
|
+
default: number;
|
|
428
|
+
turbo: number;
|
|
429
|
+
};
|
|
427
430
|
};
|
|
428
431
|
type: {
|
|
429
432
|
type: string;
|
|
@@ -491,7 +494,10 @@ declare const _default: {
|
|
|
491
494
|
type: string;
|
|
492
495
|
title: string;
|
|
493
496
|
minItems: number;
|
|
494
|
-
|
|
497
|
+
maxLengthWithSpaceType: {
|
|
498
|
+
default: number;
|
|
499
|
+
turbo: number;
|
|
500
|
+
};
|
|
495
501
|
};
|
|
496
502
|
type: {
|
|
497
503
|
enum: string[];
|
|
@@ -717,6 +723,7 @@ declare const _default: {
|
|
|
717
723
|
"100": string;
|
|
718
724
|
"137": string;
|
|
719
725
|
"250": string;
|
|
726
|
+
"8453": string;
|
|
720
727
|
"42161": string;
|
|
721
728
|
"11155111": string;
|
|
722
729
|
};
|
|
@@ -419,7 +419,10 @@ declare const _default: {
|
|
|
419
419
|
type: string;
|
|
420
420
|
title: string;
|
|
421
421
|
minItems: number;
|
|
422
|
-
|
|
422
|
+
maxLengthWithSpaceType: {
|
|
423
|
+
default: number;
|
|
424
|
+
turbo: number;
|
|
425
|
+
};
|
|
423
426
|
};
|
|
424
427
|
type: {
|
|
425
428
|
type: string;
|
|
@@ -487,7 +490,10 @@ declare const _default: {
|
|
|
487
490
|
type: string;
|
|
488
491
|
title: string;
|
|
489
492
|
minItems: number;
|
|
490
|
-
|
|
493
|
+
maxLengthWithSpaceType: {
|
|
494
|
+
default: number;
|
|
495
|
+
turbo: number;
|
|
496
|
+
};
|
|
491
497
|
};
|
|
492
498
|
type: {
|
|
493
499
|
enum: string[];
|
package/dist/src/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"100": "https://subgrapher.snapshot.org/delegation/100",
|
|
6
6
|
"137": "https://subgrapher.snapshot.org/delegation/137",
|
|
7
7
|
"250": "https://subgrapher.snapshot.org/delegation/250",
|
|
8
|
+
"8453": "https://subgrapher.snapshot.org/delegation/8453",
|
|
8
9
|
"42161": "https://subgrapher.snapshot.org/delegation/42161",
|
|
9
10
|
"11155111": "https://subgrapher.snapshot.org/delegation/11155111"
|
|
10
11
|
}
|
package/src/utils.ts
CHANGED
|
@@ -155,7 +155,7 @@ ajv.addKeyword({
|
|
|
155
155
|
validate.errors = [
|
|
156
156
|
{
|
|
157
157
|
keyword: 'maxLengthWithSpaceType',
|
|
158
|
-
message: `must
|
|
158
|
+
message: `must not have more than ${schema[spaceType]}`,
|
|
159
159
|
params: { limit: schema[spaceType] }
|
|
160
160
|
}
|
|
161
161
|
];
|