@snapshot-labs/snapshot.js 0.11.20 → 0.11.21

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.11.20",
3
+ "version": "0.11.21",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -44,6 +44,7 @@
44
44
  "rollup-plugin-string": "^3.0.0",
45
45
  "rollup-plugin-terser": "^7.0.0",
46
46
  "rollup-plugin-typescript2": "^0.27.0",
47
+ "ts-node": "^10.9.2",
47
48
  "typescript": "^3.8.3",
48
49
  "vitest": "^0.33.0"
49
50
  },
@@ -49,6 +49,8 @@
49
49
  "5339bc75243597107916a39d9235470342ad7ac8486b9424272afe4877d62f6b": "statement",
50
50
  "8887cc25c04622fa37b81fd97615e56c6eb5f21821e3cd69ed621b0f22b6a0a7": "follow",
51
51
  "0709a2eb5e9535594e809f7eadafe734d89ba9bf497498ede185332b6bd381d5": "unfollow",
52
+ "65df19852816ead53c157161c62cd1580f509f9c33d27c06d46206eb3526b8b5": "follow",
53
+ "150feb61a4a0f6d140f5444349c8baa068b062e7552d314a3119991e37ca6f8b": "unfollow",
52
54
  "daaf0ff7d3e2ec189cf851228c386c7a4c432076d0ed197864916dd3f656531c": "subscribe",
53
55
  "f542edb6f9fe79d0b85554667991352be2fcca85df3dd3c6a6f451d189c7c25d": "unsubscribe",
54
56
  "6f6cdd15a1e9e6c4ee544231c4fa7b6c7e5183bc2b37fa4bd1a695f458348ab7": "delete-space",
package/src/sign/types.ts CHANGED
@@ -71,12 +71,14 @@ export interface Vote {
71
71
 
72
72
  export interface Follow {
73
73
  from?: string;
74
+ network?: string;
74
75
  space: string;
75
76
  timestamp?: number;
76
77
  }
77
78
 
78
79
  export interface Unfollow {
79
80
  from?: string;
81
+ network?: string;
80
82
  space: string;
81
83
  timestamp?: number;
82
84
  }
@@ -269,6 +271,7 @@ export const voteString2Types = {
269
271
  export const followTypes = {
270
272
  Follow: [
271
273
  { name: 'from', type: 'address' },
274
+ { name: 'network', type: 'string' },
272
275
  { name: 'space', type: 'string' },
273
276
  { name: 'timestamp', type: 'uint64' }
274
277
  ]
@@ -277,6 +280,7 @@ export const followTypes = {
277
280
  export const unfollowTypes = {
278
281
  Unfollow: [
279
282
  { name: 'from', type: 'address' },
283
+ { name: 'network', type: 'string' },
280
284
  { name: 'space', type: 'string' },
281
285
  { name: 'timestamp', type: 'uint64' }
282
286
  ]