@snapshot-labs/snapshot.js 0.12.30 → 0.12.33

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.
@@ -13,6 +13,7 @@ export interface Proposal {
13
13
  title: string;
14
14
  body: string;
15
15
  discussion: string;
16
+ privacy?: string;
16
17
  choices: string[];
17
18
  labels?: string[];
18
19
  start: number;
@@ -30,6 +31,7 @@ export interface UpdateProposal {
30
31
  title: string;
31
32
  body: string;
32
33
  discussion: string;
34
+ privacy?: string;
33
35
  choices: string[];
34
36
  labels?: string[];
35
37
  plugins: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.30",
3
+ "version": "0.12.33",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
package/src/networks.json CHANGED
@@ -825,6 +825,20 @@
825
825
  "start": 79164574,
826
826
  "logo": "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq"
827
827
  },
828
+ "1480": {
829
+ "key": "1480",
830
+ "name": "Islander",
831
+ "shortName": "mainnet",
832
+ "chainId": 1480,
833
+ "network": "mainnet",
834
+ "multicall": "0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",
835
+ "rpc": [],
836
+ "explorer": {
837
+ "url": "https://islander.vanascan.io/"
838
+ },
839
+ "start": 716763,
840
+ "logo": "ipfs://bafkreibotel3dmc5og5rf3tpt7l74awkene7x6q3oxtwhptt4y4rpa7vsa"
841
+ },
828
842
  "1559": {
829
843
  "key": "1559",
830
844
  "name": "Tenet",
package/src/sign/index.ts CHANGED
@@ -126,6 +126,7 @@ export default class Client {
126
126
  ) {
127
127
  if (!message.discussion) message.discussion = '';
128
128
  if (!message.app) message.app = '';
129
+ if (!message.privacy) message.privacy = '';
129
130
  return await this.sign(web3, address, message, proposalTypes);
130
131
  }
131
132
 
@@ -134,6 +135,7 @@ export default class Client {
134
135
  address: string,
135
136
  message: UpdateProposal
136
137
  ) {
138
+ if (!message.privacy) message.privacy = '';
137
139
  return await this.sign(web3, address, message, updateProposalTypes);
138
140
  }
139
141
 
package/src/sign/types.ts CHANGED
@@ -21,6 +21,7 @@ export interface Proposal {
21
21
  title: string;
22
22
  body: string;
23
23
  discussion: string;
24
+ privacy?: string;
24
25
  choices: string[];
25
26
  labels?: string[];
26
27
  start: number;
@@ -39,6 +40,7 @@ export interface UpdateProposal {
39
40
  title: string;
40
41
  body: string;
41
42
  discussion: string;
43
+ privacy?: string;
42
44
  choices: string[];
43
45
  labels?: string[];
44
46
  plugins: string;