@snapshot-labs/snapshot.js 0.11.19 → 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/README.md CHANGED
@@ -48,9 +48,9 @@ yarn test:once
48
48
 
49
49
  ```bash
50
50
  # Format ABI
51
- ts-node scripts/abi.ts
51
+ yarn ts-node scripts/abi.ts
52
52
  # Generate hash for types
53
- ts-node scripts/generateHashWithTypes.ts
53
+ yarn ts-node scripts/generateHashWithTypes.ts
54
54
  ```
55
55
 
56
56
  ### License
package/dist/index.d.ts CHANGED
@@ -375,6 +375,7 @@ declare const _default: {
375
375
  items: {
376
376
  type: string;
377
377
  };
378
+ uniqueItems: boolean;
378
379
  };
379
380
  boost: {
380
381
  type: string;
@@ -371,6 +371,7 @@ declare const _default: {
371
371
  items: {
372
372
  type: string;
373
373
  };
374
+ uniqueItems: boolean;
374
375
  };
375
376
  boost: {
376
377
  type: string;
@@ -60,11 +60,13 @@ export interface Vote {
60
60
  }
61
61
  export interface Follow {
62
62
  from?: string;
63
+ network?: string;
63
64
  space: string;
64
65
  timestamp?: number;
65
66
  }
66
67
  export interface Unfollow {
67
68
  from?: string;
69
+ network?: string;
68
70
  space: string;
69
71
  timestamp?: number;
70
72
  }
@@ -260,6 +260,7 @@ var voteString2Types = {
260
260
  var followTypes = {
261
261
  Follow: [
262
262
  { name: 'from', type: 'address' },
263
+ { name: 'network', type: 'string' },
263
264
  { name: 'space', type: 'string' },
264
265
  { name: 'timestamp', type: 'uint64' }
265
266
  ]
@@ -267,6 +268,7 @@ var followTypes = {
267
268
  var unfollowTypes = {
268
269
  Unfollow: [
269
270
  { name: 'from', type: 'address' },
271
+ { name: 'network', type: 'string' },
270
272
  { name: 'space', type: 'string' },
271
273
  { name: 'timestamp', type: 'uint64' }
272
274
  ]
@@ -994,11 +996,12 @@ var definitions = {
994
996
  },
995
997
  children: {
996
998
  type: "array",
997
- maxItems: 8,
999
+ maxItems: 16,
998
1000
  title: "children",
999
1001
  items: {
1000
1002
  type: "string"
1001
- }
1003
+ },
1004
+ uniqueItems: true
1002
1005
  },
1003
1006
  boost: {
1004
1007
  type: "object",
@@ -250,6 +250,7 @@ var voteString2Types = {
250
250
  var followTypes = {
251
251
  Follow: [
252
252
  { name: 'from', type: 'address' },
253
+ { name: 'network', type: 'string' },
253
254
  { name: 'space', type: 'string' },
254
255
  { name: 'timestamp', type: 'uint64' }
255
256
  ]
@@ -257,6 +258,7 @@ var followTypes = {
257
258
  var unfollowTypes = {
258
259
  Unfollow: [
259
260
  { name: 'from', type: 'address' },
261
+ { name: 'network', type: 'string' },
260
262
  { name: 'space', type: 'string' },
261
263
  { name: 'timestamp', type: 'uint64' }
262
264
  ]
@@ -984,11 +986,12 @@ var definitions = {
984
986
  },
985
987
  children: {
986
988
  type: "array",
987
- maxItems: 8,
989
+ maxItems: 16,
988
990
  title: "children",
989
991
  items: {
990
992
  type: "string"
991
- }
993
+ },
994
+ uniqueItems: true
992
995
  },
993
996
  boost: {
994
997
  type: "object",