@snapshot-labs/snapshot.js 0.12.32 → 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.
- package/dist/snapshot.cjs.js +38 -2
- package/dist/snapshot.esm.js +38 -2
- package/dist/snapshot.min.js +2 -2
- package/dist/src/index.d.ts +8 -0
- package/dist/src/schemas/index.d.ts +8 -0
- package/dist/src/sign/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/networks.json +14 -0
- package/src/schemas/proposal.json +4 -0
- package/src/schemas/space.json +1 -1
- package/src/schemas/update-proposal.json +4 -0
- package/src/sign/hashedTypes.json +3 -1
- package/src/sign/index.ts +2 -0
- package/src/sign/types.ts +5 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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;
|
package/dist/src/sign/types.d.ts
CHANGED
|
@@ -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
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/schemas/space.json
CHANGED
|
@@ -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/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;
|
|
@@ -150,6 +152,7 @@ export const proposalTypes = {
|
|
|
150
152
|
{ name: 'end', type: 'uint64' },
|
|
151
153
|
{ name: 'snapshot', type: 'uint64' },
|
|
152
154
|
{ name: 'plugins', type: 'string' },
|
|
155
|
+
{ name: 'privacy', type: 'string' },
|
|
153
156
|
{ name: 'app', type: 'string' }
|
|
154
157
|
]
|
|
155
158
|
};
|
|
@@ -166,7 +169,8 @@ export const updateProposalTypes = {
|
|
|
166
169
|
{ name: 'discussion', type: 'string' },
|
|
167
170
|
{ name: 'choices', type: 'string[]' },
|
|
168
171
|
{ name: 'labels', type: 'string[]' },
|
|
169
|
-
{ name: 'plugins', type: 'string' }
|
|
172
|
+
{ name: 'plugins', type: 'string' },
|
|
173
|
+
{ name: 'privacy', type: 'string' }
|
|
170
174
|
]
|
|
171
175
|
};
|
|
172
176
|
|