@rabby-wallet/rabby-api 0.9.21 → 0.9.22
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 +9 -0
- package/dist/index.js +6 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,15 @@ export declare class OpenApiService {
|
|
|
254
254
|
from_token_id: string;
|
|
255
255
|
to_token_id: string;
|
|
256
256
|
}) => Promise<SlippageStatus>;
|
|
257
|
+
suggestSlippage: (params: {
|
|
258
|
+
chain_id: string;
|
|
259
|
+
slippage: string;
|
|
260
|
+
from_token_id: string;
|
|
261
|
+
to_token_id: string;
|
|
262
|
+
from_token_amount: string;
|
|
263
|
+
}) => Promise<{
|
|
264
|
+
suggest_slippage: number;
|
|
265
|
+
}>;
|
|
257
266
|
getOriginPopularityLevel: (origin: string) => Promise<{
|
|
258
267
|
level: 'very_low' | 'low' | 'medium' | 'high';
|
|
259
268
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -595,6 +595,12 @@ export class OpenApiService {
|
|
|
595
595
|
});
|
|
596
596
|
return data;
|
|
597
597
|
});
|
|
598
|
+
this.suggestSlippage = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
599
|
+
const { data } = yield this.request.get('v1/wallet/suggest_slippage', {
|
|
600
|
+
params,
|
|
601
|
+
});
|
|
602
|
+
return data;
|
|
603
|
+
});
|
|
598
604
|
this.getOriginPopularityLevel = (origin) => __awaiter(this, void 0, void 0, function* () {
|
|
599
605
|
const { data } = yield this.request.get('/v1/engine/origin/popularity_level', {
|
|
600
606
|
params: {
|
package/dist/types.d.ts
CHANGED