@rabby-wallet/rabby-api 0.7.26 → 0.7.27

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
@@ -270,6 +270,25 @@ export declare class OpenApiService {
270
270
  };
271
271
  };
272
272
  }>;
273
+ gasLessTxsCheck: (postData: {
274
+ tx_list: Tx[];
275
+ }) => Promise<{
276
+ is_gasless: boolean;
277
+ desc?: string;
278
+ promotion?: {
279
+ id: string;
280
+ contract_id: string;
281
+ chain_id: string;
282
+ config: {
283
+ button_text: string;
284
+ before_click_text: string;
285
+ after_click_text: string;
286
+ logo: string;
287
+ theme_color: string;
288
+ dark_color: string;
289
+ };
290
+ };
291
+ }>;
273
292
  parseTx: ({ chainId, tx, origin, addr, }: {
274
293
  chainId: string;
275
294
  tx: Tx;
package/dist/index.js CHANGED
@@ -582,6 +582,10 @@ export class OpenApiService {
582
582
  });
583
583
  return data;
584
584
  });
585
+ this.gasLessTxsCheck = (postData) => __awaiter(this, void 0, void 0, function* () {
586
+ const { data } = yield this.request.post('/v1/wallet/txs_is_gasless', postData);
587
+ return data;
588
+ });
585
589
  this.parseTx = ({ chainId, tx, origin, addr, }) => __awaiter(this, void 0, void 0, function* () {
586
590
  const { data } = yield this.request.post('/v1/engine/action/parse_tx', {
587
591
  chain_id: chainId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.26",
3
+ "version": "0.7.27",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [