@snapshot-labs/snapshot.js 0.12.32 → 0.12.34

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.
@@ -85,6 +85,7 @@ const proposalTypes = {
85
85
  { name: 'end', type: 'uint64' },
86
86
  { name: 'snapshot', type: 'uint64' },
87
87
  { name: 'plugins', type: 'string' },
88
+ { name: 'privacy', type: 'string' },
88
89
  { name: 'app', type: 'string' }
89
90
  ]
90
91
  };
@@ -100,7 +101,8 @@ const updateProposalTypes = {
100
101
  { name: 'discussion', type: 'string' },
101
102
  { name: 'choices', type: 'string[]' },
102
103
  { name: 'labels', type: 'string[]' },
103
- { name: 'plugins', type: 'string' }
104
+ { name: 'plugins', type: 'string' },
105
+ { name: 'privacy', type: 'string' }
104
106
  ]
105
107
  };
106
108
  const flagProposalTypes = {
@@ -353,11 +355,15 @@ class Client {
353
355
  message.discussion = '';
354
356
  if (!message.app)
355
357
  message.app = '';
358
+ if (!message.privacy)
359
+ message.privacy = '';
356
360
  return yield this.sign(web3, address, message, proposalTypes);
357
361
  });
358
362
  }
359
363
  updateProposal(web3, address, message) {
360
364
  return __awaiter(this, void 0, void 0, function* () {
365
+ if (!message.privacy)
366
+ message.privacy = '';
361
367
  return yield this.sign(web3, address, message, updateProposalTypes);
362
368
  });
363
369
  }
@@ -547,6 +553,17 @@ var definitions = {
547
553
  maxLength: 64,
548
554
  format: "domain"
549
555
  },
556
+ discussions: {
557
+ type: "string",
558
+ format: "uri",
559
+ title: "Discussions link",
560
+ maxLength: 256
561
+ },
562
+ discourseCategory: {
563
+ type: "integer",
564
+ minimum: 1,
565
+ title: "Discourse category"
566
+ },
550
567
  strategies: {
551
568
  type: "array",
552
569
  minItems: 1,
@@ -807,7 +824,8 @@ var definitions = {
807
824
  type: "string",
808
825
  "enum": [
809
826
  "",
810
- "shutter"
827
+ "shutter",
828
+ "any"
811
829
  ]
812
830
  }
813
831
  },
@@ -1052,6 +1070,13 @@ var definitions$1 = {
1052
1070
  type: "string",
1053
1071
  title: "app",
1054
1072
  maxLength: 128
1073
+ },
1074
+ privacy: {
1075
+ type: "string",
1076
+ "enum": [
1077
+ "",
1078
+ "shutter"
1079
+ ]
1055
1080
  }
1056
1081
  },
1057
1082
  required: [
@@ -1138,6 +1163,13 @@ var definitions$2 = {
1138
1163
  metadata: {
1139
1164
  type: "object",
1140
1165
  title: "metadata"
1166
+ },
1167
+ privacy: {
1168
+ type: "string",
1169
+ "enum": [
1170
+ "",
1171
+ "shutter"
1172
+ ]
1141
1173
  }
1142
1174
  },
1143
1175
  required: [
@@ -2518,6 +2550,21 @@ var networks = {
2518
2550
  },
2519
2551
  start: 79164574,
2520
2552
  logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq"
2553
+ },
2554
+ "1480": {
2555
+ key: "1480",
2556
+ name: "Islander",
2557
+ shortName: "mainnet",
2558
+ chainId: 1480,
2559
+ network: "mainnet",
2560
+ multicall: "0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",
2561
+ rpc: [
2562
+ ],
2563
+ explorer: {
2564
+ url: "https://islander.vanascan.io/"
2565
+ },
2566
+ start: 716763,
2567
+ logo: "ipfs://bafkreibotel3dmc5og5rf3tpt7l74awkene7x6q3oxtwhptt4y4rpa7vsa"
2521
2568
  },
2522
2569
  "1559": {
2523
2570
  key: "1559",
@@ -75,6 +75,7 @@ const proposalTypes = {
75
75
  { name: 'end', type: 'uint64' },
76
76
  { name: 'snapshot', type: 'uint64' },
77
77
  { name: 'plugins', type: 'string' },
78
+ { name: 'privacy', type: 'string' },
78
79
  { name: 'app', type: 'string' }
79
80
  ]
80
81
  };
@@ -90,7 +91,8 @@ const updateProposalTypes = {
90
91
  { name: 'discussion', type: 'string' },
91
92
  { name: 'choices', type: 'string[]' },
92
93
  { name: 'labels', type: 'string[]' },
93
- { name: 'plugins', type: 'string' }
94
+ { name: 'plugins', type: 'string' },
95
+ { name: 'privacy', type: 'string' }
94
96
  ]
95
97
  };
96
98
  const flagProposalTypes = {
@@ -343,11 +345,15 @@ class Client {
343
345
  message.discussion = '';
344
346
  if (!message.app)
345
347
  message.app = '';
348
+ if (!message.privacy)
349
+ message.privacy = '';
346
350
  return yield this.sign(web3, address, message, proposalTypes);
347
351
  });
348
352
  }
349
353
  updateProposal(web3, address, message) {
350
354
  return __awaiter(this, void 0, void 0, function* () {
355
+ if (!message.privacy)
356
+ message.privacy = '';
351
357
  return yield this.sign(web3, address, message, updateProposalTypes);
352
358
  });
353
359
  }
@@ -537,6 +543,17 @@ var definitions = {
537
543
  maxLength: 64,
538
544
  format: "domain"
539
545
  },
546
+ discussions: {
547
+ type: "string",
548
+ format: "uri",
549
+ title: "Discussions link",
550
+ maxLength: 256
551
+ },
552
+ discourseCategory: {
553
+ type: "integer",
554
+ minimum: 1,
555
+ title: "Discourse category"
556
+ },
540
557
  strategies: {
541
558
  type: "array",
542
559
  minItems: 1,
@@ -797,7 +814,8 @@ var definitions = {
797
814
  type: "string",
798
815
  "enum": [
799
816
  "",
800
- "shutter"
817
+ "shutter",
818
+ "any"
801
819
  ]
802
820
  }
803
821
  },
@@ -1042,6 +1060,13 @@ var definitions$1 = {
1042
1060
  type: "string",
1043
1061
  title: "app",
1044
1062
  maxLength: 128
1063
+ },
1064
+ privacy: {
1065
+ type: "string",
1066
+ "enum": [
1067
+ "",
1068
+ "shutter"
1069
+ ]
1045
1070
  }
1046
1071
  },
1047
1072
  required: [
@@ -1128,6 +1153,13 @@ var definitions$2 = {
1128
1153
  metadata: {
1129
1154
  type: "object",
1130
1155
  title: "metadata"
1156
+ },
1157
+ privacy: {
1158
+ type: "string",
1159
+ "enum": [
1160
+ "",
1161
+ "shutter"
1162
+ ]
1131
1163
  }
1132
1164
  },
1133
1165
  required: [
@@ -2508,6 +2540,21 @@ var networks = {
2508
2540
  },
2509
2541
  start: 79164574,
2510
2542
  logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq"
2543
+ },
2544
+ "1480": {
2545
+ key: "1480",
2546
+ name: "Islander",
2547
+ shortName: "mainnet",
2548
+ chainId: 1480,
2549
+ network: "mainnet",
2550
+ multicall: "0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",
2551
+ rpc: [
2552
+ ],
2553
+ explorer: {
2554
+ url: "https://islander.vanascan.io/"
2555
+ },
2556
+ start: 716763,
2557
+ logo: "ipfs://bafkreibotel3dmc5og5rf3tpt7l74awkene7x6q3oxtwhptt4y4rpa7vsa"
2511
2558
  },
2512
2559
  "1559": {
2513
2560
  key: "1559",