@wardenswap/bestrate-sdk-beta 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +36 -31
- package/dist/index.es.d.ts +36 -31
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|
-
|
299
|
-
|
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
|
-
|
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
|
|
package/dist/index.es.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
|
-
|
299
|
-
|
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
|
-
|
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
|
|