@wardenswap/bestrate-sdk-beta 2.4.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 CHANGED
@@ -296,36 +296,38 @@ declare enum DexModel {
296
296
  UniswapV2 = 0,
297
297
  UniswapV3 = 1,
298
298
  PancakeV3 = 2,
299
- DMM = 3,
300
- CurvePlain = 4,
301
- CurveMeta = 5,
302
- CurvePlainSol = 6,
303
- Iron = 7,
304
- Synapse = 8,
305
- CurveMetaSol = 9,
306
- CurveCrypto = 10,
307
- CurveLendingA = 11,
308
- CurveLendingCryptoZap = 12,
309
- CurveLendingCryptoTwoZap = 13,
310
- PolyDex = 14,
311
- FireBirdWeighted = 15,
312
- BalancerWeighted = 16,
313
- BalancerStable = 17,
314
- BalancerMetaStable = 18,
315
- BalancerBoostedStable = 19,
316
- BalancerLinear = 20,
317
- BalancerLiquidityBootstrapping = 21,
318
- Biswap = 22,
319
- DodoV1 = 23,
320
- DodoV2 = 24,
321
- Mdex = 25,
322
- Mars = 26,
323
- Smoothy = 27,
324
- Shibaswap = 28,
325
- GmxDex = 29,
326
- Solidly = 30,
327
- Synthetix = 31,
328
- Unknown = 32
299
+ VelodromeSS = 3,
300
+ DMM = 4,
301
+ CurvePlain = 5,
302
+ CurveMeta = 6,
303
+ CurvePlainSol = 7,
304
+ Iron = 8,
305
+ Synapse = 9,
306
+ CurveMetaSol = 10,
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
329
331
  }
330
332
  interface UniswapV2BasedModelInfo {
331
333
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -346,6 +348,10 @@ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory
346
348
  model: DexModel.PancakeV3;
347
349
  poolDeployer: string;
348
350
  }
351
+ interface VelodromeSSModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee'> {
352
+ model: DexModel.VelodromeSS;
353
+ tickSpacing: bigint;
354
+ }
349
355
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
350
356
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
351
357
  weight: number;
@@ -481,6 +487,9 @@ interface SolidlyModelInfo {
481
487
  isStable: boolean;
482
488
  pairBytecodeHash: string;
483
489
  }
490
+ interface VelodromeV2ModelInfo extends Omit<SolidlyModelInfo, 'model'> {
491
+ model: DexModel.VelodromeV2;
492
+ }
484
493
  interface SynthetixModelInfo {
485
494
  model: DexModel.Synthetix;
486
495
  tokens: {
@@ -501,7 +510,7 @@ interface RouteInfo {
501
510
  type RouteInfoModel = RouteInfo & {
502
511
  gas: bigint;
503
512
  isTradingAllowed: boolean;
504
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | 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 | {
505
514
  model: DexModel.Unknown;
506
515
  });
507
516
 
@@ -296,36 +296,38 @@ declare enum DexModel {
296
296
  UniswapV2 = 0,
297
297
  UniswapV3 = 1,
298
298
  PancakeV3 = 2,
299
- DMM = 3,
300
- CurvePlain = 4,
301
- CurveMeta = 5,
302
- CurvePlainSol = 6,
303
- Iron = 7,
304
- Synapse = 8,
305
- CurveMetaSol = 9,
306
- CurveCrypto = 10,
307
- CurveLendingA = 11,
308
- CurveLendingCryptoZap = 12,
309
- CurveLendingCryptoTwoZap = 13,
310
- PolyDex = 14,
311
- FireBirdWeighted = 15,
312
- BalancerWeighted = 16,
313
- BalancerStable = 17,
314
- BalancerMetaStable = 18,
315
- BalancerBoostedStable = 19,
316
- BalancerLinear = 20,
317
- BalancerLiquidityBootstrapping = 21,
318
- Biswap = 22,
319
- DodoV1 = 23,
320
- DodoV2 = 24,
321
- Mdex = 25,
322
- Mars = 26,
323
- Smoothy = 27,
324
- Shibaswap = 28,
325
- GmxDex = 29,
326
- Solidly = 30,
327
- Synthetix = 31,
328
- Unknown = 32
299
+ VelodromeSS = 3,
300
+ DMM = 4,
301
+ CurvePlain = 5,
302
+ CurveMeta = 6,
303
+ CurvePlainSol = 7,
304
+ Iron = 8,
305
+ Synapse = 9,
306
+ CurveMetaSol = 10,
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
329
331
  }
330
332
  interface UniswapV2BasedModelInfo {
331
333
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -346,6 +348,10 @@ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory
346
348
  model: DexModel.PancakeV3;
347
349
  poolDeployer: string;
348
350
  }
351
+ interface VelodromeSSModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee'> {
352
+ model: DexModel.VelodromeSS;
353
+ tickSpacing: bigint;
354
+ }
349
355
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
350
356
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
351
357
  weight: number;
@@ -481,6 +487,9 @@ interface SolidlyModelInfo {
481
487
  isStable: boolean;
482
488
  pairBytecodeHash: string;
483
489
  }
490
+ interface VelodromeV2ModelInfo extends Omit<SolidlyModelInfo, 'model'> {
491
+ model: DexModel.VelodromeV2;
492
+ }
484
493
  interface SynthetixModelInfo {
485
494
  model: DexModel.Synthetix;
486
495
  tokens: {
@@ -501,7 +510,7 @@ interface RouteInfo {
501
510
  type RouteInfoModel = RouteInfo & {
502
511
  gas: bigint;
503
512
  isTradingAllowed: boolean;
504
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | 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 | {
505
514
  model: DexModel.Unknown;
506
515
  });
507
516