@wardenswap/bestrate-sdk-beta 2.3.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -295,36 +295,38 @@ interface Multicall2 extends BaseContract {
295
295
  declare enum DexModel {
296
296
  UniswapV2 = 0,
297
297
  UniswapV3 = 1,
298
- DMM = 2,
299
- CurvePlain = 3,
300
- CurveMeta = 4,
301
- CurvePlainSol = 5,
302
- Iron = 6,
303
- Synapse = 7,
304
- CurveMetaSol = 8,
305
- CurveCrypto = 9,
306
- CurveLendingA = 10,
307
- CurveLendingCryptoZap = 11,
308
- CurveLendingCryptoTwoZap = 12,
309
- PolyDex = 13,
310
- FireBirdWeighted = 14,
311
- BalancerWeighted = 15,
312
- BalancerStable = 16,
313
- BalancerMetaStable = 17,
314
- BalancerBoostedStable = 18,
315
- BalancerLinear = 19,
316
- BalancerLiquidityBootstrapping = 20,
317
- Biswap = 21,
318
- DodoV1 = 22,
319
- DodoV2 = 23,
320
- Mdex = 24,
321
- Mars = 25,
322
- Smoothy = 26,
323
- Shibaswap = 27,
324
- GmxDex = 28,
325
- Solidly = 29,
326
- Synthetix = 30,
327
- Unknown = 31
298
+ PancakeV3 = 2,
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
+ Synthetix = 32,
329
+ Unknown = 33
328
330
  }
329
331
  interface UniswapV2BasedModelInfo {
330
332
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -341,6 +343,14 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
341
343
  gasPerInitializedTick: bigint;
342
344
  gasPerTick: bigint;
343
345
  }
346
+ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
347
+ model: DexModel.PancakeV3;
348
+ poolDeployer: string;
349
+ }
350
+ interface VelodromeSSModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee'> {
351
+ model: DexModel.VelodromeSS;
352
+ tickSpacing: bigint;
353
+ }
344
354
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
345
355
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
346
356
  weight: number;
@@ -496,7 +506,7 @@ interface RouteInfo {
496
506
  type RouteInfoModel = RouteInfo & {
497
507
  gas: bigint;
498
508
  isTradingAllowed: boolean;
499
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
509
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
500
510
  model: DexModel.Unknown;
501
511
  });
502
512
 
@@ -295,36 +295,38 @@ interface Multicall2 extends BaseContract {
295
295
  declare enum DexModel {
296
296
  UniswapV2 = 0,
297
297
  UniswapV3 = 1,
298
- DMM = 2,
299
- CurvePlain = 3,
300
- CurveMeta = 4,
301
- CurvePlainSol = 5,
302
- Iron = 6,
303
- Synapse = 7,
304
- CurveMetaSol = 8,
305
- CurveCrypto = 9,
306
- CurveLendingA = 10,
307
- CurveLendingCryptoZap = 11,
308
- CurveLendingCryptoTwoZap = 12,
309
- PolyDex = 13,
310
- FireBirdWeighted = 14,
311
- BalancerWeighted = 15,
312
- BalancerStable = 16,
313
- BalancerMetaStable = 17,
314
- BalancerBoostedStable = 18,
315
- BalancerLinear = 19,
316
- BalancerLiquidityBootstrapping = 20,
317
- Biswap = 21,
318
- DodoV1 = 22,
319
- DodoV2 = 23,
320
- Mdex = 24,
321
- Mars = 25,
322
- Smoothy = 26,
323
- Shibaswap = 27,
324
- GmxDex = 28,
325
- Solidly = 29,
326
- Synthetix = 30,
327
- Unknown = 31
298
+ PancakeV3 = 2,
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
+ Synthetix = 32,
329
+ Unknown = 33
328
330
  }
329
331
  interface UniswapV2BasedModelInfo {
330
332
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -341,6 +343,14 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
341
343
  gasPerInitializedTick: bigint;
342
344
  gasPerTick: bigint;
343
345
  }
346
+ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
347
+ model: DexModel.PancakeV3;
348
+ poolDeployer: string;
349
+ }
350
+ interface VelodromeSSModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'fee'> {
351
+ model: DexModel.VelodromeSS;
352
+ tickSpacing: bigint;
353
+ }
344
354
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
345
355
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
346
356
  weight: number;
@@ -496,7 +506,7 @@ interface RouteInfo {
496
506
  type RouteInfoModel = RouteInfo & {
497
507
  gas: bigint;
498
508
  isTradingAllowed: boolean;
499
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
509
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
500
510
  model: DexModel.Unknown;
501
511
  });
502
512