@rabby-wallet/rabby-api 0.9.45-alpha → 0.9.45

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
@@ -111,6 +111,12 @@ export declare class OpenApiService {
111
111
  listCollection: (params: {
112
112
  collection_ids: string;
113
113
  }) => Promise<Collection[]>;
114
+ hasNewTxFrom: (params: {
115
+ address: string;
116
+ startTime: number;
117
+ }) => Promise<{
118
+ has_new_tx: boolean;
119
+ }>;
114
120
  listTxHisotry: (params: {
115
121
  id?: string;
116
122
  chain_id?: string;
package/dist/index.js CHANGED
@@ -364,6 +364,15 @@ export class OpenApiService {
364
364
  });
365
365
  return data;
366
366
  });
367
+ this.hasNewTxFrom = (params) => __awaiter(this, void 0, void 0, function* () {
368
+ const { data } = yield this.request.get('/v1/user/has_new_tx', {
369
+ params: {
370
+ id: params.address,
371
+ start_time: params.startTime,
372
+ },
373
+ });
374
+ return data;
375
+ });
367
376
  this.listTxHisotry = (params) => __awaiter(this, void 0, void 0, function* () {
368
377
  const { data } = yield this.request.get('/v1/user/history_list', {
369
378
  params,
package/dist/types.d.ts CHANGED
@@ -786,6 +786,9 @@ export interface PortfolioItemDetail {
786
786
  usd_value?: number;
787
787
  daily_unlock_amount: number;
788
788
  pnl_usd_value: number;
789
+ amount?: number;
790
+ price?: number;
791
+ name?: string;
789
792
  }
790
793
  export interface PortfolioItem {
791
794
  asset_token_list: TokenItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.45-alpha",
3
+ "version": "0.9.45",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [