@snapshot-labs/snapshot.js 0.12.28 → 0.12.30

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.
@@ -528,6 +528,10 @@ declare const _default: {
528
528
  title: string;
529
529
  maxLength: number;
530
530
  };
531
+ privacy: {
532
+ type: string;
533
+ enum: string[];
534
+ };
531
535
  };
532
536
  required: string[];
533
537
  additionalProperties: boolean;
@@ -589,6 +593,10 @@ declare const _default: {
589
593
  type: string;
590
594
  title: string;
591
595
  };
596
+ privacy: {
597
+ type: string;
598
+ enum: string[];
599
+ };
592
600
  };
593
601
  required: string[];
594
602
  additionalProperties: boolean;
@@ -810,6 +818,7 @@ declare const _default: {
810
818
  "42161": string;
811
819
  "59144": string;
812
820
  "81457": string;
821
+ "84532": string;
813
822
  "11155111": string;
814
823
  };
815
824
  };
@@ -524,6 +524,10 @@ declare const _default: {
524
524
  title: string;
525
525
  maxLength: number;
526
526
  };
527
+ privacy: {
528
+ type: string;
529
+ enum: string[];
530
+ };
527
531
  };
528
532
  required: string[];
529
533
  additionalProperties: boolean;
@@ -585,6 +589,10 @@ declare const _default: {
585
589
  type: string;
586
590
  title: string;
587
591
  };
592
+ privacy: {
593
+ type: string;
594
+ enum: string[];
595
+ };
588
596
  };
589
597
  required: string[];
590
598
  additionalProperties: boolean;
@@ -9,6 +9,7 @@ export declare const SNAPSHOT_SUBGRAPH_URL: {
9
9
  "42161": string;
10
10
  "59144": string;
11
11
  "81457": string;
12
+ "84532": string;
12
13
  "11155111": string;
13
14
  };
14
15
  type Delegation = {
@@ -88,6 +88,7 @@ declare const _default: {
88
88
  "42161": string;
89
89
  "59144": string;
90
90
  "81457": string;
91
+ "84532": string;
91
92
  "11155111": string;
92
93
  };
93
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.28",
3
+ "version": "0.12.30",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -9,5 +9,6 @@
9
9
  "42161": "https://subgrapher.snapshot.org/delegation/42161",
10
10
  "59144": "https://subgrapher.snapshot.org/delegation/59144",
11
11
  "81457": "https://subgrapher.snapshot.org/delegation/81457",
12
+ "84532": "https://subgrapher.snapshot.org/delegation/84532",
12
13
  "11155111": "https://subgrapher.snapshot.org/delegation/11155111"
13
14
  }
package/src/gateways.json CHANGED
@@ -1,4 +1,5 @@
1
1
  [
2
+ "ipfs.snapshot.box",
2
3
  "snapshot.4everland.link",
3
4
  "ipfs.io",
4
5
  "ipfs.fleek.co",
@@ -84,6 +84,10 @@
84
84
  "type": "string",
85
85
  "title": "app",
86
86
  "maxLength": 128
87
+ },
88
+ "privacy": {
89
+ "type": "string",
90
+ "enum": ["", "shutter"]
87
91
  }
88
92
  },
89
93
  "required": ["name", "body", "choices", "snapshot", "start", "end"],
@@ -335,7 +335,7 @@
335
335
  },
336
336
  "privacy": {
337
337
  "type": "string",
338
- "enum": ["", "shutter"]
338
+ "enum": ["", "shutter", "any"]
339
339
  }
340
340
  },
341
341
  "additionalProperties": false
@@ -66,6 +66,10 @@
66
66
  "metadata": {
67
67
  "type": "object",
68
68
  "title": "metadata"
69
+ },
70
+ "privacy": {
71
+ "type": "string",
72
+ "enum": ["", "shutter"]
69
73
  }
70
74
  },
71
75
  "required": ["proposal", "name", "body", "discussion", "choices", "type", "metadata"],
@@ -62,5 +62,7 @@
62
62
  "2ffbebcbd22ef48fd2f4a1182ff1feda7795b57689bd6f0dd73c89e925e7fefb": "profile",
63
63
  "4288d50b713081aae77d60d596d75864bff7acf7791a00183401e58658ee9da5": "statement",
64
64
  "d56782e3b50ac86c25ae292923da8c367e3c9e8e7ea9d8baa435051fe2f430fa": "proposal",
65
- "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal"
65
+ "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal",
66
+ "beda1f464a6112f9ed6335c4614e32a97f0e18ef4ac10b4b1c8239c475f2d8e8": "proposal",
67
+ "ff74674f39ca59b60056ecddaada0cb513c4729e634e99cb778f53ee404ac806": "update-proposal"
66
68
  }
package/src/sign/types.ts CHANGED
@@ -150,6 +150,7 @@ export const proposalTypes = {
150
150
  { name: 'end', type: 'uint64' },
151
151
  { name: 'snapshot', type: 'uint64' },
152
152
  { name: 'plugins', type: 'string' },
153
+ { name: 'privacy', type: 'string' },
153
154
  { name: 'app', type: 'string' }
154
155
  ]
155
156
  };
@@ -166,7 +167,8 @@ export const updateProposalTypes = {
166
167
  { name: 'discussion', type: 'string' },
167
168
  { name: 'choices', type: 'string[]' },
168
169
  { name: 'labels', type: 'string[]' },
169
- { name: 'plugins', type: 'string' }
170
+ { name: 'plugins', type: 'string' },
171
+ { name: 'privacy', type: 'string' }
170
172
  ]
171
173
  };
172
174