@rabby-wallet/rabby-api 0.9.0 → 0.9.2
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 +1 -4
- package/dist/index.js +6 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -70,10 +70,7 @@ export declare class OpenApiService {
|
|
|
70
70
|
explainText: (origin: string, address: string, text: string) => Promise<{
|
|
71
71
|
comment: string;
|
|
72
72
|
}>;
|
|
73
|
-
gasMarket: (
|
|
74
|
-
chainId: string;
|
|
75
|
-
customGas?: number;
|
|
76
|
-
}) => Promise<GasLevel[]>;
|
|
73
|
+
gasMarket: (chainId: string, customGas?: number) => Promise<GasLevel[]>;
|
|
77
74
|
gasMarketV2: (options: {
|
|
78
75
|
chainId: string;
|
|
79
76
|
tx?: Tx;
|
package/dist/index.js
CHANGED
|
@@ -201,22 +201,20 @@ export class OpenApiService {
|
|
|
201
201
|
});
|
|
202
202
|
return data;
|
|
203
203
|
});
|
|
204
|
-
this.gasMarket = (
|
|
204
|
+
this.gasMarket = (chainId, customGas) => __awaiter(this, void 0, void 0, function* () {
|
|
205
205
|
const { data } = yield this.request.get('/v1/wallet/gas_market', {
|
|
206
206
|
params: {
|
|
207
|
-
chain_id:
|
|
208
|
-
custom_price:
|
|
207
|
+
chain_id: chainId,
|
|
208
|
+
custom_price: customGas,
|
|
209
209
|
},
|
|
210
210
|
});
|
|
211
211
|
return data;
|
|
212
212
|
});
|
|
213
213
|
this.gasMarketV2 = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
214
214
|
const { data } = yield this.request.post('/v2/wallet/gas_market', {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
tx: options.tx,
|
|
219
|
-
},
|
|
215
|
+
chain_id: options.chainId,
|
|
216
|
+
custom_price: options.customGas,
|
|
217
|
+
tx: options.tx,
|
|
220
218
|
});
|
|
221
219
|
return data;
|
|
222
220
|
});
|