@rabby-wallet/rabby-api 0.7.3 → 0.7.5

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
@@ -236,6 +236,14 @@ export declare class OpenApiService {
236
236
  }[];
237
237
  }>;
238
238
  getSummarizedAssetList: (id: string, chain_id?: string) => Promise<Summary>;
239
+ unexpectedAddrList: ({ chainId, tx, origin, addr, }: {
240
+ chainId: string;
241
+ tx: Tx;
242
+ origin: string;
243
+ addr: string;
244
+ }) => Promise<{
245
+ id: string;
246
+ }[]>;
239
247
  parseTx: ({ chainId, tx, origin, addr, }: {
240
248
  chainId: string;
241
249
  tx: Tx;
package/dist/index.js CHANGED
@@ -566,6 +566,15 @@ export class OpenApiService {
566
566
  } }, this._getRequestOptions(chain_id)));
567
567
  return data;
568
568
  });
569
+ this.unexpectedAddrList = ({ chainId, tx, origin, addr, }) => __awaiter(this, void 0, void 0, function* () {
570
+ const { data } = yield this.request.post('/v1/engine/addr/unexpected_list', {
571
+ chain_id: chainId,
572
+ tx,
573
+ origin,
574
+ user_addr: addr,
575
+ }, this._getRequestOptions(chainId));
576
+ return data;
577
+ });
569
578
  this.parseTx = ({ chainId, tx, origin, addr, }) => __awaiter(this, void 0, void 0, function* () {
570
579
  const { data } = yield this.request.post('/v1/engine/action/parse_tx', {
571
580
  chain_id: chainId,
package/dist/types.d.ts CHANGED
@@ -1134,6 +1134,7 @@ export interface SupportedChain {
1134
1134
  };
1135
1135
  logo_url: string;
1136
1136
  white_logo_url?: string;
1137
+ need_estimate_gas?: boolean;
1137
1138
  eip_1559: boolean;
1138
1139
  is_disabled: boolean;
1139
1140
  explorer_host: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [