@snapshot-labs/snapshot.js 0.11.33 → 0.11.35

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.33",
3
+ "version": "0.11.35",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -18,9 +18,26 @@
18
18
  "format": "long",
19
19
  "title": "Statement",
20
20
  "maxLength": 10000
21
+ },
22
+ "discourse": {
23
+ "type": "string",
24
+ "title": "discourse",
25
+ "pattern": "^[A-Za-z0-9-_.]*$",
26
+ "maxLength": 30,
27
+ "minLength": 3
28
+ },
29
+ "network": {
30
+ "type": "string",
31
+ "title": "network",
32
+ "pattern": "^[a-z0-9-]*$",
33
+ "maxLength": 24
34
+ },
35
+ "status": {
36
+ "enum": ["active", "inactive"],
37
+ "title": "status"
21
38
  }
22
39
  },
23
- "required": ["about"],
40
+ "required": [],
24
41
  "additionalProperties": false
25
42
  }
26
43
  }
@@ -47,6 +47,7 @@
47
47
  "9cf05f3cc08b78654652fb2494d9b2beab8803b723cf1c36e1abaab7427f3823": "vote-array",
48
48
  "40bc49afc0f4084a08af0d768ff67816dde5c61550ff65008c835982a62c351e": "vote-string",
49
49
  "5339bc75243597107916a39d9235470342ad7ac8486b9424272afe4877d62f6b": "statement",
50
+ "8ae78362e9de73180e72a7e8429ef727a019ae6a4f4ea1280d4c53136bd585b3": "statement",
50
51
  "8887cc25c04622fa37b81fd97615e56c6eb5f21821e3cd69ed621b0f22b6a0a7": "follow",
51
52
  "0709a2eb5e9535594e809f7eadafe734d89ba9bf497498ede185332b6bd381d5": "unfollow",
52
53
  "65df19852816ead53c157161c62cd1580f509f9c33d27c06d46206eb3526b8b5": "follow",
package/src/sign/types.ts CHANGED
@@ -107,6 +107,9 @@ export interface Statement {
107
107
  space: string;
108
108
  about: string;
109
109
  statement: string;
110
+ discourse?: string;
111
+ status?: string;
112
+ network?: string;
110
113
  }
111
114
 
112
115
  export interface Alias {
@@ -316,7 +319,10 @@ export const statementTypes = {
316
319
  { name: 'timestamp', type: 'uint64' },
317
320
  { name: 'space', type: 'string' },
318
321
  { name: 'about', type: 'string' },
319
- { name: 'statement', type: 'string' }
322
+ { name: 'statement', type: 'string' },
323
+ { name: 'discourse', type: 'string' },
324
+ { name: 'status', type: 'string' },
325
+ { name: 'network', type: 'string' }
320
326
  ]
321
327
  };
322
328