@snapshot-labs/snapshot.js 0.6.4 → 0.7.0
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 +12 -6
- package/dist/snapshot.esm.js +12 -6
- package/dist/snapshot.min.js +1 -1
- package/package.json +1 -1
- package/src/sign/types.json +7 -1
- package/src/sign/types.ts +12 -6
package/package.json
CHANGED
package/src/sign/types.json
CHANGED
|
@@ -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
|
@@ -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
|
};
|