@rabby-wallet/rabby-api 0.8.4 → 0.8.6

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
@@ -43,7 +43,7 @@ export declare class OpenApiService {
43
43
  }) => Promise<T>;
44
44
  private _mountMethods;
45
45
  getRecommendChains: (address: string, origin: string) => Promise<ServerChain[]>;
46
- getTotalBalance: (address: string) => Promise<TotalBalanceResponse>;
46
+ getTotalBalance: (address: string, isCore?: boolean) => Promise<TotalBalanceResponse>;
47
47
  getPendingCount: (address: string) => Promise<{
48
48
  total_count: number;
49
49
  chains: ChainWithPendingCount[];
@@ -988,5 +988,10 @@ export declare class OpenApiService {
988
988
  aggregator_id: string;
989
989
  }[]>;
990
990
  getBridgeSupportChainV2: () => Promise<string[]>;
991
+ uninstalledFeedback: ({ text, }: {
992
+ text: string;
993
+ }) => Promise<{
994
+ success: boolean;
995
+ }>;
991
996
  }
992
997
  export {};
package/dist/index.js CHANGED
@@ -114,10 +114,11 @@ export class OpenApiService {
114
114
  });
115
115
  return data;
116
116
  });
117
- this.getTotalBalance = (address) => __awaiter(this, void 0, void 0, function* () {
117
+ this.getTotalBalance = (address, isCore = false) => __awaiter(this, void 0, void 0, function* () {
118
118
  const { data } = yield this.request.get('/v1/user/total_balance', {
119
119
  params: {
120
120
  id: address,
121
+ is_core: isCore,
121
122
  },
122
123
  });
123
124
  return data;
@@ -1321,6 +1322,12 @@ export class OpenApiService {
1321
1322
  const { data } = yield this.request.get('/v2/bridge/supported_chains');
1322
1323
  return data;
1323
1324
  });
1325
+ this.uninstalledFeedback = ({ text, }) => __awaiter(this, void 0, void 0, function* () {
1326
+ const { data } = yield this.request.post('v1/feedback', {
1327
+ text,
1328
+ });
1329
+ return data;
1330
+ });
1324
1331
  if (store instanceof Promise) {
1325
1332
  store.then((resolvedStore) => {
1326
1333
  this.store = resolvedStore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [