@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 +41 -35
- package/dist/index.es.d.ts +41 -35
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
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
|
|
package/dist/index.es.d.ts
CHANGED
@@ -297,40 +297,41 @@ declare enum DexModel {
|
|
297
297
|
UniswapV3 = 1,
|
298
298
|
PancakeV3 = 2,
|
299
299
|
VelodromeSS = 3,
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
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
|
|