@snapshot-labs/snapshot.js 0.6.4 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.6.4",
3
+ "version": "0.7.1",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -46,5 +46,11 @@
46
46
  "bc8c6814ddd5b9b6ef6415c656c9e7b9e05e029cc19b954b7160dc2928a12caf": "vote",
47
47
  "9cf05f3cc08b78654652fb2494d9b2beab8803b723cf1c36e1abaab7427f3823": "vote-array",
48
48
  "40bc49afc0f4084a08af0d768ff67816dde5c61550ff65008c835982a62c351e": "vote-string",
49
- "5339bc75243597107916a39d9235470342ad7ac8486b9424272afe4877d62f6b": "statement"
49
+ "5339bc75243597107916a39d9235470342ad7ac8486b9424272afe4877d62f6b": "statement",
50
+ "8887cc25c04622fa37b81fd97615e56c6eb5f21821e3cd69ed621b0f22b6a0a7": "follow",
51
+ "0709a2eb5e9535594e809f7eadafe734d89ba9bf497498ede185332b6bd381d5": "unfollow",
52
+ "daaf0ff7d3e2ec189cf851228c386c7a4c432076d0ed197864916dd3f656531c": "subscribe",
53
+ "f542edb6f9fe79d0b85554667991352be2fcca85df3dd3c6a6f451d189c7c25d": "unsubscribe",
54
+ "6f6cdd15a1e9e6c4ee544231c4fa7b6c7e5183bc2b37fa4bd1a695f458348ab7": "delete-space",
55
+ "1aad7825b991457fca04aae48a2a49d815ada524e10316af0da5522ea48b3df6": "alias"
50
56
  }
package/src/sign/types.ts CHANGED
@@ -43,7 +43,7 @@ export interface UpdateProposal {
43
43
  }
44
44
 
45
45
  export interface FlagProposal {
46
- from: string;
46
+ from?: string;
47
47
  space: string;
48
48
  proposal: string;
49
49
  timestamp?: number;
@@ -269,28 +269,32 @@ export const voteString2Types = {
269
269
  export const followTypes = {
270
270
  Follow: [
271
271
  { name: 'from', type: 'address' },
272
- { name: 'space', type: 'string' }
272
+ { name: 'space', type: 'string' },
273
+ { name: 'timestamp', type: 'uint64' }
273
274
  ]
274
275
  };
275
276
 
276
277
  export const unfollowTypes = {
277
278
  Unfollow: [
278
279
  { name: 'from', type: 'address' },
279
- { name: 'space', type: 'string' }
280
+ { name: 'space', type: 'string' },
281
+ { name: 'timestamp', type: 'uint64' }
280
282
  ]
281
283
  };
282
284
 
283
285
  export const subscribeTypes = {
284
286
  Subscribe: [
285
287
  { name: 'from', type: 'address' },
286
- { name: 'space', type: 'string' }
288
+ { name: 'space', type: 'string' },
289
+ { name: 'timestamp', type: 'uint64' }
287
290
  ]
288
291
  };
289
292
 
290
293
  export const unsubscribeTypes = {
291
294
  Unsubscribe: [
292
295
  { name: 'from', type: 'address' },
293
- { name: 'space', type: 'string' }
296
+ { name: 'space', type: 'string' },
297
+ { name: 'timestamp', type: 'uint64' }
294
298
  ]
295
299
  };
296
300
 
@@ -315,13 +319,15 @@ export const statementTypes = {
315
319
  export const aliasTypes = {
316
320
  Alias: [
317
321
  { name: 'from', type: 'address' },
318
- { name: 'alias', type: 'address' }
322
+ { name: 'alias', type: 'address' },
323
+ { name: 'timestamp', type: 'uint64' }
319
324
  ]
320
325
  };
321
326
 
322
327
  export const deleteSpaceType = {
323
328
  DeleteSpace: [
324
329
  { name: 'from', type: 'address' },
325
- { name: 'space', type: 'string' }
330
+ { name: 'space', type: 'string' },
331
+ { name: 'timestamp', type: 'uint64' }
326
332
  ]
327
333
  };