@wardenswap/bestrate-sdk-beta 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -297,40 +297,41 @@ declare enum DexModel {
297
297
  UniswapV3 = 1,
298
298
  PancakeV3 = 2,
299
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
- CurveTriCryptoNG = 12,
309
- CurveStableNG = 13,
310
- CurveLendingA = 14,
311
- CurveLendingCryptoZap = 15,
312
- CurveLendingCryptoTwoZap = 16,
313
- CurveLido = 17,
314
- PolyDex = 18,
315
- FireBirdWeighted = 19,
316
- BalancerWeighted = 20,
317
- BalancerStable = 21,
318
- BalancerMetaStable = 22,
319
- BalancerBoostedStable = 23,
320
- BalancerLinear = 24,
321
- BalancerLiquidityBootstrapping = 25,
322
- Biswap = 26,
323
- DodoV1 = 27,
324
- DodoV2 = 28,
325
- Mdex = 29,
326
- Mars = 30,
327
- Smoothy = 31,
328
- Shibaswap = 32,
329
- GmxDex = 33,
330
- Solidly = 34,
331
- VelodromeV2 = 35,
332
- Synthetix = 36,
333
- Unknown = 37
300
+ AlgebraV1CL = 4,
301
+ DMM = 5,
302
+ CurvePlain = 6,
303
+ CurveMeta = 7,
304
+ CurvePlainSol = 8,
305
+ Iron = 9,
306
+ Synapse = 10,
307
+ CurveMetaSol = 11,
308
+ CurveCrypto = 12,
309
+ CurveTriCryptoNG = 13,
310
+ CurveStableNG = 14,
311
+ CurveLendingA = 15,
312
+ CurveLendingCryptoZap = 16,
313
+ CurveLendingCryptoTwoZap = 17,
314
+ CurveLido = 18,
315
+ PolyDex = 19,
316
+ FireBirdWeighted = 20,
317
+ BalancerWeighted = 21,
318
+ BalancerStable = 22,
319
+ BalancerMetaStable = 23,
320
+ BalancerBoostedStable = 24,
321
+ BalancerLinear = 25,
322
+ BalancerLiquidityBootstrapping = 26,
323
+ Biswap = 27,
324
+ DodoV1 = 28,
325
+ DodoV2 = 29,
326
+ Mdex = 30,
327
+ Mars = 31,
328
+ Smoothy = 32,
329
+ Shibaswap = 33,
330
+ GmxDex = 34,
331
+ Solidly = 35,
332
+ VelodromeV2 = 36,
333
+ Synthetix = 37,
334
+ Unknown = 38
334
335
  }
335
336
  interface UniswapV2BasedModelInfo {
336
337
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -347,6 +348,11 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
347
348
  gasPerInitializedTick: bigint;
348
349
  gasPerTick: bigint;
349
350
  }
351
+ interface AlgebraV1CLModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee' | 'feePrecision' | 'factory'> {
352
+ model: DexModel.AlgebraV1CL;
353
+ poolDeployer: string;
354
+ quoterAddress: string;
355
+ }
350
356
  interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
351
357
  model: DexModel.PancakeV3;
352
358
  poolDeployer: string;
@@ -530,7 +536,7 @@ interface RouteInfo {
530
536
  type RouteInfoModel = RouteInfo & {
531
537
  gas: bigint;
532
538
  isTradingAllowed: boolean;
533
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurvePlainNGModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | CurveLidoModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
539
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | AlgebraV1CLModelInfo | CurvePlainModelInfo | CurvePlainNGModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | CurveLidoModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
534
540
  model: DexModel.Unknown;
535
541
  });
536
542
 
@@ -297,40 +297,41 @@ declare enum DexModel {
297
297
  UniswapV3 = 1,
298
298
  PancakeV3 = 2,
299
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
- CurveTriCryptoNG = 12,
309
- CurveStableNG = 13,
310
- CurveLendingA = 14,
311
- CurveLendingCryptoZap = 15,
312
- CurveLendingCryptoTwoZap = 16,
313
- CurveLido = 17,
314
- PolyDex = 18,
315
- FireBirdWeighted = 19,
316
- BalancerWeighted = 20,
317
- BalancerStable = 21,
318
- BalancerMetaStable = 22,
319
- BalancerBoostedStable = 23,
320
- BalancerLinear = 24,
321
- BalancerLiquidityBootstrapping = 25,
322
- Biswap = 26,
323
- DodoV1 = 27,
324
- DodoV2 = 28,
325
- Mdex = 29,
326
- Mars = 30,
327
- Smoothy = 31,
328
- Shibaswap = 32,
329
- GmxDex = 33,
330
- Solidly = 34,
331
- VelodromeV2 = 35,
332
- Synthetix = 36,
333
- Unknown = 37
300
+ AlgebraV1CL = 4,
301
+ DMM = 5,
302
+ CurvePlain = 6,
303
+ CurveMeta = 7,
304
+ CurvePlainSol = 8,
305
+ Iron = 9,
306
+ Synapse = 10,
307
+ CurveMetaSol = 11,
308
+ CurveCrypto = 12,
309
+ CurveTriCryptoNG = 13,
310
+ CurveStableNG = 14,
311
+ CurveLendingA = 15,
312
+ CurveLendingCryptoZap = 16,
313
+ CurveLendingCryptoTwoZap = 17,
314
+ CurveLido = 18,
315
+ PolyDex = 19,
316
+ FireBirdWeighted = 20,
317
+ BalancerWeighted = 21,
318
+ BalancerStable = 22,
319
+ BalancerMetaStable = 23,
320
+ BalancerBoostedStable = 24,
321
+ BalancerLinear = 25,
322
+ BalancerLiquidityBootstrapping = 26,
323
+ Biswap = 27,
324
+ DodoV1 = 28,
325
+ DodoV2 = 29,
326
+ Mdex = 30,
327
+ Mars = 31,
328
+ Smoothy = 32,
329
+ Shibaswap = 33,
330
+ GmxDex = 34,
331
+ Solidly = 35,
332
+ VelodromeV2 = 36,
333
+ Synthetix = 37,
334
+ Unknown = 38
334
335
  }
335
336
  interface UniswapV2BasedModelInfo {
336
337
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -347,6 +348,11 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
347
348
  gasPerInitializedTick: bigint;
348
349
  gasPerTick: bigint;
349
350
  }
351
+ interface AlgebraV1CLModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee' | 'feePrecision' | 'factory'> {
352
+ model: DexModel.AlgebraV1CL;
353
+ poolDeployer: string;
354
+ quoterAddress: string;
355
+ }
350
356
  interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
351
357
  model: DexModel.PancakeV3;
352
358
  poolDeployer: string;
@@ -530,7 +536,7 @@ interface RouteInfo {
530
536
  type RouteInfoModel = RouteInfo & {
531
537
  gas: bigint;
532
538
  isTradingAllowed: boolean;
533
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurvePlainNGModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | CurveLidoModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
539
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | AlgebraV1CLModelInfo | CurvePlainModelInfo | CurvePlainNGModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoNGModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | CurveLidoModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
534
540
  model: DexModel.Unknown;
535
541
  });
536
542