@wardenswap/bestrate-sdk-beta 2.6.1 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +44 -24
- package/dist/index.es.d.ts +44 -24
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -305,29 +305,32 @@ declare enum DexModel {
|
|
305
305
|
Synapse = 9,
|
306
306
|
CurveMetaSol = 10,
|
307
307
|
CurveCrypto = 11,
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
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
|
331
334
|
}
|
332
335
|
interface UniswapV2BasedModelInfo {
|
333
336
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -370,6 +373,11 @@ interface CurvePlainModelInfo {
|
|
370
373
|
aPrecision?: bigint;
|
371
374
|
balancesArgs?: string;
|
372
375
|
}
|
376
|
+
interface CurveLidoModelInfo extends Omit<CurvePlainModelInfo, 'model'> {
|
377
|
+
model: DexModel.CurveLido;
|
378
|
+
oracleAddress: string;
|
379
|
+
stethCoinIdx: number;
|
380
|
+
}
|
373
381
|
interface CurveLendingModelInfo {
|
374
382
|
model: DexModel.CurveLendingA;
|
375
383
|
poolContract: string;
|
@@ -387,6 +395,14 @@ interface CurveMetaModelInfo extends Omit<CurvePlainModelInfo, 'isUnderlying' |
|
|
387
395
|
basePoolRouteId: string;
|
388
396
|
isCacheExists: boolean;
|
389
397
|
}
|
398
|
+
interface CurvePlainNGModelInfo {
|
399
|
+
model: DexModel.CurveStableNG;
|
400
|
+
poolContract: string;
|
401
|
+
tokens: string[];
|
402
|
+
precision: bigint;
|
403
|
+
feeDenominator: bigint;
|
404
|
+
aPrecision: bigint;
|
405
|
+
}
|
390
406
|
interface CurveCryptoModelInfo {
|
391
407
|
model: DexModel.CurveCrypto;
|
392
408
|
tokens: string[];
|
@@ -403,6 +419,10 @@ interface CurveCryptoModelInfo {
|
|
403
419
|
poolContract: string;
|
404
420
|
lpToken: string;
|
405
421
|
}
|
422
|
+
interface CurveCryptoNGModelInfo extends Omit<CurveCryptoModelInfo, 'model' | 'lpToken' | 'isAPrecise' | 'feeDenominator'> {
|
423
|
+
model: DexModel.CurveTriCryptoNG;
|
424
|
+
multicallContract: string;
|
425
|
+
}
|
406
426
|
interface CurveCryptoZapModelInfo {
|
407
427
|
model: DexModel.CurveLendingCryptoZap;
|
408
428
|
basePoolId: string;
|
@@ -510,7 +530,7 @@ interface RouteInfo {
|
|
510
530
|
type RouteInfoModel = RouteInfo & {
|
511
531
|
gas: bigint;
|
512
532
|
isTradingAllowed: boolean;
|
513
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
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 | {
|
514
534
|
model: DexModel.Unknown;
|
515
535
|
});
|
516
536
|
|
package/dist/index.es.d.ts
CHANGED
@@ -305,29 +305,32 @@ declare enum DexModel {
|
|
305
305
|
Synapse = 9,
|
306
306
|
CurveMetaSol = 10,
|
307
307
|
CurveCrypto = 11,
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
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
|
331
334
|
}
|
332
335
|
interface UniswapV2BasedModelInfo {
|
333
336
|
model: DexModel.UniswapV2 | DexModel.Mdex | DexModel.Biswap | DexModel.Mars | DexModel.Shibaswap;
|
@@ -370,6 +373,11 @@ interface CurvePlainModelInfo {
|
|
370
373
|
aPrecision?: bigint;
|
371
374
|
balancesArgs?: string;
|
372
375
|
}
|
376
|
+
interface CurveLidoModelInfo extends Omit<CurvePlainModelInfo, 'model'> {
|
377
|
+
model: DexModel.CurveLido;
|
378
|
+
oracleAddress: string;
|
379
|
+
stethCoinIdx: number;
|
380
|
+
}
|
373
381
|
interface CurveLendingModelInfo {
|
374
382
|
model: DexModel.CurveLendingA;
|
375
383
|
poolContract: string;
|
@@ -387,6 +395,14 @@ interface CurveMetaModelInfo extends Omit<CurvePlainModelInfo, 'isUnderlying' |
|
|
387
395
|
basePoolRouteId: string;
|
388
396
|
isCacheExists: boolean;
|
389
397
|
}
|
398
|
+
interface CurvePlainNGModelInfo {
|
399
|
+
model: DexModel.CurveStableNG;
|
400
|
+
poolContract: string;
|
401
|
+
tokens: string[];
|
402
|
+
precision: bigint;
|
403
|
+
feeDenominator: bigint;
|
404
|
+
aPrecision: bigint;
|
405
|
+
}
|
390
406
|
interface CurveCryptoModelInfo {
|
391
407
|
model: DexModel.CurveCrypto;
|
392
408
|
tokens: string[];
|
@@ -403,6 +419,10 @@ interface CurveCryptoModelInfo {
|
|
403
419
|
poolContract: string;
|
404
420
|
lpToken: string;
|
405
421
|
}
|
422
|
+
interface CurveCryptoNGModelInfo extends Omit<CurveCryptoModelInfo, 'model' | 'lpToken' | 'isAPrecise' | 'feeDenominator'> {
|
423
|
+
model: DexModel.CurveTriCryptoNG;
|
424
|
+
multicallContract: string;
|
425
|
+
}
|
406
426
|
interface CurveCryptoZapModelInfo {
|
407
427
|
model: DexModel.CurveLendingCryptoZap;
|
408
428
|
basePoolId: string;
|
@@ -510,7 +530,7 @@ interface RouteInfo {
|
|
510
530
|
type RouteInfoModel = RouteInfo & {
|
511
531
|
gas: bigint;
|
512
532
|
isTradingAllowed: boolean;
|
513
|
-
} & (UniswapV2BasedModelInfo | UniswapV3ModelInfo | PancakeV3ModelInfo | VelodromeSSModelInfo | CurvePlainModelInfo | CurveMetaModelInfo | CurveCryptoModelInfo | CurveCryptoZapModelInfo | CurveCryptoTwoZapModelInfo | CurveLendingModelInfo | DodoV2ModelInfo | SmoothyModelInfo | DMMModelInfo | BalancerWeightedModelInfo | BalancerStableModelInfo | BalancerMetaStableModelInfo | BalancerBoostedStableModelInfo | BalancerLinearModelInfo | PolyDexModelInfo | GmxDexModelInfo | SolidlyModelInfo | VelodromeV2ModelInfo | SynthetixModelInfo | {
|
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 | {
|
514
534
|
model: DexModel.Unknown;
|
515
535
|
});
|
516
536
|
|