Skip to content

Commit 57406b6

Browse files
authored
fix: Add timestamp to follow, unfollow, subscribe, unsubscribe, delete-space and alias (#909)
* Add timestamp to follow, unfollow, subscribe, unsubscribe, delete-space and alias * v0.7.0
1 parent 3f64542 commit 57406b6

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.6.4",
3+
"version": "0.7.0",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/sign/types.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,11 @@
4646
"bc8c6814ddd5b9b6ef6415c656c9e7b9e05e029cc19b954b7160dc2928a12caf": "vote",
4747
"9cf05f3cc08b78654652fb2494d9b2beab8803b723cf1c36e1abaab7427f3823": "vote-array",
4848
"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"
5056
}

src/sign/types.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,28 +269,32 @@ export const voteString2Types = {
269269
export const followTypes = {
270270
Follow: [
271271
{ name: 'from', type: 'address' },
272-
{ name: 'space', type: 'string' }
272+
{ name: 'space', type: 'string' },
273+
{ name: 'timestamp', type: 'uint64' }
273274
]
274275
};
275276

276277
export const unfollowTypes = {
277278
Unfollow: [
278279
{ name: 'from', type: 'address' },
279-
{ name: 'space', type: 'string' }
280+
{ name: 'space', type: 'string' },
281+
{ name: 'timestamp', type: 'uint64' }
280282
]
281283
};
282284

283285
export const subscribeTypes = {
284286
Subscribe: [
285287
{ name: 'from', type: 'address' },
286-
{ name: 'space', type: 'string' }
288+
{ name: 'space', type: 'string' },
289+
{ name: 'timestamp', type: 'uint64' }
287290
]
288291
};
289292

290293
export const unsubscribeTypes = {
291294
Unsubscribe: [
292295
{ name: 'from', type: 'address' },
293-
{ name: 'space', type: 'string' }
296+
{ name: 'space', type: 'string' },
297+
{ name: 'timestamp', type: 'uint64' }
294298
]
295299
};
296300

@@ -315,13 +319,15 @@ export const statementTypes = {
315319
export const aliasTypes = {
316320
Alias: [
317321
{ name: 'from', type: 'address' },
318-
{ name: 'alias', type: 'address' }
322+
{ name: 'alias', type: 'address' },
323+
{ name: 'timestamp', type: 'uint64' }
319324
]
320325
};
321326

322327
export const deleteSpaceType = {
323328
DeleteSpace: [
324329
{ name: 'from', type: 'address' },
325-
{ name: 'space', type: 'string' }
330+
{ name: 'space', type: 'string' },
331+
{ name: 'timestamp', type: 'uint64' }
326332
]
327333
};

0 commit comments

Comments
 (0)