@wardenswap/bestrate-sdk-beta 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +7 -3
- package/dist/index.es.d.ts +7 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -325,8 +325,9 @@ declare enum DexModel {
|
|
325
325
|
Shibaswap = 29,
|
326
326
|
GmxDex = 30,
|
327
327
|
Solidly = 31,
|
328
|
-
|
329
|
-
|
328
|
+
VelodromeV2 = 32,
|
329
|
+
Synthetix = 33,
|
330
|
+
Unknown = 34
|
330
331
|
}
|
331
332
|
interface UniswapV2BasedModelInfo {
|
332
333
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -486,6 +487,9 @@ interface SolidlyModelInfo {
|
|
486
487
|
isStable: boolean;
|
487
488
|
pairBytecodeHash: string;
|
488
489
|
}
|
490
|
+
interface VelodromeV2ModelInfo extends Omit<SolidlyModelInfo, 'model'> {
|
491
|
+
model: DexModel.VelodromeV2;
|
492
|
+
}
|
489
493
|
interface SynthetixModelInfo {
|
490
494
|
model: DexModel.Synthetix;
|
491
495
|
tokens: {
|
@@ -506,7 +510,7 @@ interface RouteInfo {
|
|
506
510
|
type RouteInfoModel = RouteInfo & {
|
507
511
|
gas: bigint;
|
508
512
|
isTradingAllowed: boolean;
|
509
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
|
513
|
+
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
510
514
|
model: DexModel.Unknown;
|
511
515
|
});
|
512
516
|
|
package/dist/index.es.d.ts
CHANGED
@@ -325,8 +325,9 @@ declare enum DexModel {
|
|
325
325
|
Shibaswap = 29,
|
326
326
|
GmxDex = 30,
|
327
327
|
Solidly = 31,
|
328
|
-
|
329
|
-
|
328
|
+
VelodromeV2 = 32,
|
329
|
+
Synthetix = 33,
|
330
|
+
Unknown = 34
|
330
331
|
}
|
331
332
|
interface UniswapV2BasedModelInfo {
|
332
333
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -486,6 +487,9 @@ interface SolidlyModelInfo {
|
|
486
487
|
isStable: boolean;
|
487
488
|
pairBytecodeHash: string;
|
488
489
|
}
|
490
|
+
interface VelodromeV2ModelInfo extends Omit<SolidlyModelInfo, 'model'> {
|
491
|
+
model: DexModel.VelodromeV2;
|
492
|
+
}
|
489
493
|
interface SynthetixModelInfo {
|
490
494
|
model: DexModel.Synthetix;
|
491
495
|
tokens: {
|
@@ -506,7 +510,7 @@ interface RouteInfo {
|
|
506
510
|
type RouteInfoModel = RouteInfo & {
|
507
511
|
gas: bigint;
|
508
512
|
isTradingAllowed: boolean;
|
509
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
|
513
|
+
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
510
514
|
model: DexModel.Unknown;
|
511
515
|
});
|
512
516
|
|