@wardenswap/bestrate-sdk-beta 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -295,36 +295,37 @@ 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
+ 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
328
329
  }
329
330
  interface UniswapV2BasedModelInfo {
330
331
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -341,6 +342,10 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
341
342
  gasPerInitializedTick: bigint;
342
343
  gasPerTick: bigint;
343
344
  }
345
+ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
346
+ model: DexModel.PancakeV3;
347
+ poolDeployer: string;
348
+ }
344
349
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
345
350
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
346
351
  weight: number;
@@ -496,7 +501,7 @@ interface RouteInfo {
496
501
  type RouteInfoModel = RouteInfo & {
497
502
  gas: bigint;
498
503
  isTradingAllowed: boolean;
499
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
504
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
500
505
  model: DexModel.Unknown;
501
506
  });
502
507
 
@@ -295,36 +295,37 @@ 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
+ 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
328
329
  }
329
330
  interface UniswapV2BasedModelInfo {
330
331
  model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
@@ -341,6 +342,10 @@ interface UniswapV3ModelInfo extends Omit<UniswapV2BasedModelInfo, 'model' | 'fe
341
342
  gasPerInitializedTick: bigint;
342
343
  gasPerTick: bigint;
343
344
  }
345
+ interface PancakeV3ModelInfo extends Omit<UniswapV3ModelInfo, 'model' | 'factory'> {
346
+ model: DexModel.PancakeV3;
347
+ poolDeployer: string;
348
+ }
344
349
  interface PolyDexModelInfo extends Omit<UniswapV2BasedModelInfo, 'model'> {
345
350
  model: DexModel.PolyDex | DexModel.FireBirdWeighted;
346
351
  weight: number;
@@ -496,7 +501,7 @@ interface RouteInfo {
496
501
  type RouteInfoModel = RouteInfo & {
497
502
  gas: bigint;
498
503
  isTradingAllowed: boolean;
499
- } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
504
+ } & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | SynthetixModelInfo | {
500
505
  model: DexModel.Unknown;
501
506
  });
502
507