@dripfi/drip-sdk 1.0.12 → 1.0.14

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
@@ -291,7 +291,7 @@ type UserBalance = {
291
291
  };
292
292
 
293
293
  type UserRewards = {
294
- [key: string]: { [key: string]: number }
294
+ [vaultAddress: string]: { [rewardPointsName: string]: number }
295
295
  };
296
296
 
297
297
  ```
package/dist/DripApi.js CHANGED
@@ -148,7 +148,7 @@ class DripApi {
148
148
  return __awaiter(this, void 0, void 0, function* () {
149
149
  const headers = new Headers();
150
150
  headers.append('Authorization', token);
151
- const res = yield fetch(`/api-be/api/user/rewards/${walletAddress}`, {
151
+ const res = yield fetch(`${this.route}/api-be/api/user/rewards/${walletAddress}`, {
152
152
  headers,
153
153
  });
154
154
  const data = yield res.json();
@@ -1,5 +1,5 @@
1
1
  export type UserRewards = {
2
- [key: string]: {
3
- [key: string]: number;
2
+ [vaultAddress: string]: {
3
+ [rewardPointsName: string]: number;
4
4
  };
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",