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