@pear-protocol/core-sdk
Advanced tools
+23
-0
@@ -148,2 +148,25 @@ class Core { | ||
| }; | ||
| notifications = { | ||
| list: async (query, headers) => { | ||
| return await this.client.fetch(`/notifications`, { | ||
| method: "GET", | ||
| headers, | ||
| query | ||
| }); | ||
| }, | ||
| markRead: async (body, headers) => { | ||
| return await this.client.fetch(`/notifications/read`, { | ||
| method: "POST", | ||
| headers, | ||
| body | ||
| }); | ||
| }, | ||
| markUnread: async (body, headers) => { | ||
| return await this.client.fetch(`/notifications/unread`, { | ||
| method: "POST", | ||
| headers, | ||
| body | ||
| }); | ||
| } | ||
| }; | ||
| oracle = { | ||
@@ -150,0 +173,0 @@ btcdom: async (headers) => { |
+2
-2
| { | ||
| "name": "@pear-protocol/core-sdk", | ||
| "version": "1.0.0", | ||
| "version": "1.1.0", | ||
| "description": "Pear Protocol Core SDK", | ||
@@ -28,3 +28,3 @@ "private": false, | ||
| "dependencies": { | ||
| "@pear-protocol/types": "^1.0.0", | ||
| "@pear-protocol/types": "^1.1.0", | ||
| "@pear-protocol/utils": "^0.0.23", | ||
@@ -31,0 +31,0 @@ "qs": "^6.14.0" |
Sorry, the diff of this file is too big to display
161915
1.35%4312
1.41%88
3.53%Updated