@rabby-wallet/rabby-api 0.7.13 → 0.7.14-beta.0

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
@@ -242,6 +242,12 @@ export declare class OpenApiService {
242
242
  }) => Promise<{
243
243
  id: string;
244
244
  }[]>;
245
+ gasLessTxCheck: ({ tx, usdValue, }: {
246
+ tx: Tx;
247
+ usdValue: number;
248
+ }) => Promise<{
249
+ is_gasless: boolean;
250
+ }>;
245
251
  parseTx: ({ chainId, tx, origin, addr, }: {
246
252
  chainId: string;
247
253
  tx: Tx;
@@ -352,6 +358,7 @@ export declare class OpenApiService {
352
358
  req_id?: string;
353
359
  tx: Tx;
354
360
  push_type: TxPushType;
361
+ is_gasless: boolean;
355
362
  low_gas_deadline?: number;
356
363
  origin?: string;
357
364
  }) => Promise<{
package/dist/index.js CHANGED
@@ -571,6 +571,13 @@ export class OpenApiService {
571
571
  });
572
572
  return data;
573
573
  });
574
+ this.gasLessTxCheck = ({ tx, usdValue, }) => __awaiter(this, void 0, void 0, function* () {
575
+ const { data } = yield this.request.post('/v1/wallet/tx_is_gasless', {
576
+ tx,
577
+ usd_value: usdValue,
578
+ });
579
+ return data;
580
+ });
574
581
  this.parseTx = ({ chainId, tx, origin, addr, }) => __awaiter(this, void 0, void 0, function* () {
575
582
  const { data } = yield this.request.post('/v1/engine/action/parse_tx', {
576
583
  chain_id: chainId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.13",
3
+ "version": "0.7.14-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [