@wardenswap/bestrate-sdk-beta 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +29 -24
- package/dist/index.es.d.ts +29 -24
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -305,29 +305,30 @@ declare enum DexModel {
|
|
305
305
|
Synapse = 9,
|
306
306
|
CurveMetaSol = 10,
|
307
307
|
CurveCrypto = 11,
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
308
|
+
CurveTriCryptoNG = 12,
|
309
|
+
CurveLendingA = 13,
|
310
|
+
CurveLendingCryptoZap = 14,
|
311
|
+
CurveLendingCryptoTwoZap = 15,
|
312
|
+
PolyDex = 16,
|
313
|
+
FireBirdWeighted = 17,
|
314
|
+
BalancerWeighted = 18,
|
315
|
+
BalancerStable = 19,
|
316
|
+
BalancerMetaStable = 20,
|
317
|
+
BalancerBoostedStable = 21,
|
318
|
+
BalancerLinear = 22,
|
319
|
+
BalancerLiquidityBootstrapping = 23,
|
320
|
+
Biswap = 24,
|
321
|
+
DodoV1 = 25,
|
322
|
+
DodoV2 = 26,
|
323
|
+
Mdex = 27,
|
324
|
+
Mars = 28,
|
325
|
+
Smoothy = 29,
|
326
|
+
Shibaswap = 30,
|
327
|
+
GmxDex = 31,
|
328
|
+
Solidly = 32,
|
329
|
+
VelodromeV2 = 33,
|
330
|
+
Synthetix = 34,
|
331
|
+
Unknown = 35
|
331
332
|
}
|
332
333
|
interface UniswapV2BasedModelInfo {
|
333
334
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -403,6 +404,10 @@ interface CurveCryptoModelInfo {
|
|
403
404
|
poolContract: string;
|
404
405
|
lpToken: string;
|
405
406
|
}
|
407
|
+
interface CurveCryptoNGModelInfo extends Omit<CurveCryptoModelInfo, 'model' | 'lpToken' | 'isAPrecise' | 'feeDenominator'> {
|
408
|
+
model: DexModel.CurveTriCryptoNG;
|
409
|
+
multicallContract: string;
|
410
|
+
}
|
406
411
|
interface CurveCryptoZapModelInfo {
|
407
412
|
model: DexModel.CurveLendingCryptoZap;
|
408
413
|
basePoolId: string;
|
@@ -510,7 +515,7 @@ interface RouteInfo {
|
|
510
515
|
type RouteInfoModel = RouteInfo & {
|
511
516
|
gas: bigint;
|
512
517
|
isTradingAllowed: boolean;
|
513
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
518
|
+
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
514
519
|
model: DexModel.Unknown;
|
515
520
|
});
|
516
521
|
|
package/dist/index.es.d.ts
CHANGED
@@ -305,29 +305,30 @@ declare enum DexModel {
|
|
305
305
|
Synapse = 9,
|
306
306
|
CurveMetaSol = 10,
|
307
307
|
CurveCrypto = 11,
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
308
|
+
CurveTriCryptoNG = 12,
|
309
|
+
CurveLendingA = 13,
|
310
|
+
CurveLendingCryptoZap = 14,
|
311
|
+
CurveLendingCryptoTwoZap = 15,
|
312
|
+
PolyDex = 16,
|
313
|
+
FireBirdWeighted = 17,
|
314
|
+
BalancerWeighted = 18,
|
315
|
+
BalancerStable = 19,
|
316
|
+
BalancerMetaStable = 20,
|
317
|
+
BalancerBoostedStable = 21,
|
318
|
+
BalancerLinear = 22,
|
319
|
+
BalancerLiquidityBootstrapping = 23,
|
320
|
+
Biswap = 24,
|
321
|
+
DodoV1 = 25,
|
322
|
+
DodoV2 = 26,
|
323
|
+
Mdex = 27,
|
324
|
+
Mars = 28,
|
325
|
+
Smoothy = 29,
|
326
|
+
Shibaswap = 30,
|
327
|
+
GmxDex = 31,
|
328
|
+
Solidly = 32,
|
329
|
+
VelodromeV2 = 33,
|
330
|
+
Synthetix = 34,
|
331
|
+
Unknown = 35
|
331
332
|
}
|
332
333
|
interface UniswapV2BasedModelInfo {
|
333
334
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -403,6 +404,10 @@ interface CurveCryptoModelInfo {
|
|
403
404
|
poolContract: string;
|
404
405
|
lpToken: string;
|
405
406
|
}
|
407
|
+
interface CurveCryptoNGModelInfo extends Omit<CurveCryptoModelInfo, 'model' | 'lpToken' | 'isAPrecise' | 'feeDenominator'> {
|
408
|
+
model: DexModel.CurveTriCryptoNG;
|
409
|
+
multicallContract: string;
|
410
|
+
}
|
406
411
|
interface CurveCryptoZapModelInfo {
|
407
412
|
model: DexModel.CurveLendingCryptoZap;
|
408
413
|
basePoolId: string;
|
@@ -510,7 +515,7 @@ interface RouteInfo {
|
|
510
515
|
type RouteInfoModel = RouteInfo & {
|
511
516
|
gas: bigint;
|
512
517
|
isTradingAllowed: boolean;
|
513
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
518
|
+
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
514
519
|
model: DexModel.Unknown;
|
515
520
|
});
|
516
521
|
|