@rabby-wallet/rabby-api 0.7.14 → 0.7.15-beta-1

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/index.d.ts CHANGED
@@ -249,6 +249,7 @@ export declare class OpenApiService {
249
249
  usdValue: number;
250
250
  }) => Promise<{
251
251
  is_gasless: boolean;
252
+ desc?: string;
252
253
  }>;
253
254
  parseTx: ({ chainId, tx, origin, addr, }: {
254
255
  chainId: string;
@@ -511,6 +512,9 @@ export declare class OpenApiService {
511
512
  end_at: number;
512
513
  claimable_points: number;
513
514
  }[]>;
515
+ getRabbyPointsCampaignIsEnded: () => Promise<{
516
+ campaign_is_ended: boolean;
517
+ }>;
514
518
  claimRabbyPointsById: (params: {
515
519
  campaign_id: number;
516
520
  user_id: string;
package/dist/index.js CHANGED
@@ -918,6 +918,10 @@ export class OpenApiService {
918
918
  });
919
919
  return data;
920
920
  });
921
+ this.getRabbyPointsCampaignIsEnded = () => __awaiter(this, void 0, void 0, function* () {
922
+ const { data } = yield this.request.get('v1/points/campaign');
923
+ return data;
924
+ });
921
925
  this.claimRabbyPointsById = (params) => __awaiter(this, void 0, void 0, function* () {
922
926
  const { data } = yield this.request.post('/v1/points/claim_campaign', params);
923
927
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.14",
3
+ "version": "0.7.15-beta-1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [