@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 CHANGED
@@ -305,29 +305,30 @@ declare enum DexModel {
305
305
  Synapse = 9,
306
306
  CurveMetaSol = 10,
307
307
  CurveCrypto = 11,
308
- CurveLendingA = 12,
309
- CurveLendingCryptoZap = 13,
310
- CurveLendingCryptoTwoZap = 14,
311
- PolyDex = 15,
312
- FireBirdWeighted = 16,
313
- BalancerWeighted = 17,
314
- BalancerStable = 18,
315
- BalancerMetaStable = 19,
316
- BalancerBoostedStable = 20,
317
- BalancerLinear = 21,
318
- BalancerLiquidityBootstrapping = 22,
319
- Biswap = 23,
320
- DodoV1 = 24,
321
- DodoV2 = 25,
322
- Mdex = 26,
323
- Mars = 27,
324
- Smoothy = 28,
325
- Shibaswap = 29,
326
- GmxDex = 30,
327
- Solidly = 31,
328
- VelodromeV2 = 32,
329
- Synthetix = 33,
330
- Unknown = 34
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
 
@@ -305,29 +305,30 @@ declare enum DexModel {
305
305
  Synapse = 9,
306
306
  CurveMetaSol = 10,
307
307
  CurveCrypto = 11,
308
- CurveLendingA = 12,
309
- CurveLendingCryptoZap = 13,
310
- CurveLendingCryptoTwoZap = 14,
311
- PolyDex = 15,
312
- FireBirdWeighted = 16,
313
- BalancerWeighted = 17,
314
- BalancerStable = 18,
315
- BalancerMetaStable = 19,
316
- BalancerBoostedStable = 20,
317
- BalancerLinear = 21,
318
- BalancerLiquidityBootstrapping = 22,
319
- Biswap = 23,
320
- DodoV1 = 24,
321
- DodoV2 = 25,
322
- Mdex = 26,
323
- Mars = 27,
324
- Smoothy = 28,
325
- Shibaswap = 29,
326
- GmxDex = 30,
327
- Solidly = 31,
328
- VelodromeV2 = 32,
329
- Synthetix = 33,
330
- Unknown = 34
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