@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 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
@@ -1211,6 +1211,7 @@ export interface SupportedChain {
1211
1211
  eip_1559: boolean;
1212
1212
  is_disabled: boolean;
1213
1213
  explorer_host: string;
1214
+ block_interval: number;
1214
1215
  }
1215
1216
  export interface ChainListItem {
1216
1217
  chain_id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [