@paraswap/core
Version:
Common library used between different paraswap packages
84 lines (83 loc) • 4.36 kB
TypeScript
export declare enum SwapSide {
BUY = "BUY",
SELL = "SELL"
}
export declare enum ContractMethodV5 {
swapOnUniswap = "swapOnUniswap",
buyOnUniswap = "buyOnUniswap",
swapOnUniswapFork = "swapOnUniswapFork",
buyOnUniswapFork = "buyOnUniswapFork",
swapOnUniswapV2Fork = "swapOnUniswapV2Fork",
buyOnUniswapV2Fork = "buyOnUniswapV2Fork",
simpleBuy = "simpleBuy",
simpleSwap = "simpleSwap",
multiSwap = "multiSwap",
megaSwap = "megaSwap",
protectedMultiSwap = "protectedMultiSwap",
protectedMegaSwap = "protectedMegaSwap",
protectedSimpleSwap = "protectedSimpleSwap",
protectedSimpleBuy = "protectedSimpleBuy",
swapOnZeroXv2 = "swapOnZeroXv2",
swapOnZeroXv4 = "swapOnZeroXv4",
buy = "buy",
directUniV3Swap = "directUniV3Swap",
directUniV3Buy = "directUniV3Buy",
directCurveV1Swap = "directCurveV1Swap",
directCurveV2Swap = "directCurveV2Swap",
directBalancerV2GivenInSwap = "directBalancerV2GivenInSwap",
directBalancerV2GivenOutSwap = "directBalancerV2GivenOutSwap"
}
export declare enum ContractMethodV6 {
swapExactAmountIn = "swapExactAmountIn",
swapExactAmountOut = "swapExactAmountOut",
swapExactAmountInOnUniswapV2 = "swapExactAmountInOnUniswapV2",
swapExactAmountOutOnUniswapV2 = "swapExactAmountOutOnUniswapV2",
swapExactAmountInOnUniswapV3 = "swapExactAmountInOnUniswapV3",
swapExactAmountOutOnUniswapV3 = "swapExactAmountOutOnUniswapV3",
swapExactAmountInOnBalancerV2 = "swapExactAmountInOnBalancerV2",
swapExactAmountOutOnBalancerV2 = "swapExactAmountOutOnBalancerV2",
swapExactAmountInOnCurveV1 = "swapExactAmountInOnCurveV1",
swapExactAmountInOnCurveV2 = "swapExactAmountInOnCurveV2",
swapOnAugustusRFQTryBatchFill = "swapOnAugustusRFQTryBatchFill",
swapExactAmountInOutOnMakerPSM = "swapExactAmountInOutOnMakerPSM"
}
export declare const ContractMethod: {
swapExactAmountIn: ContractMethodV6.swapExactAmountIn;
swapExactAmountOut: ContractMethodV6.swapExactAmountOut;
swapExactAmountInOnUniswapV2: ContractMethodV6.swapExactAmountInOnUniswapV2;
swapExactAmountOutOnUniswapV2: ContractMethodV6.swapExactAmountOutOnUniswapV2;
swapExactAmountInOnUniswapV3: ContractMethodV6.swapExactAmountInOnUniswapV3;
swapExactAmountOutOnUniswapV3: ContractMethodV6.swapExactAmountOutOnUniswapV3;
swapExactAmountInOnBalancerV2: ContractMethodV6.swapExactAmountInOnBalancerV2;
swapExactAmountOutOnBalancerV2: ContractMethodV6.swapExactAmountOutOnBalancerV2;
swapExactAmountInOnCurveV1: ContractMethodV6.swapExactAmountInOnCurveV1;
swapExactAmountInOnCurveV2: ContractMethodV6.swapExactAmountInOnCurveV2;
swapOnAugustusRFQTryBatchFill: ContractMethodV6.swapOnAugustusRFQTryBatchFill;
swapExactAmountInOutOnMakerPSM: ContractMethodV6.swapExactAmountInOutOnMakerPSM;
swapOnUniswap: ContractMethodV5.swapOnUniswap;
buyOnUniswap: ContractMethodV5.buyOnUniswap;
swapOnUniswapFork: ContractMethodV5.swapOnUniswapFork;
buyOnUniswapFork: ContractMethodV5.buyOnUniswapFork;
swapOnUniswapV2Fork: ContractMethodV5.swapOnUniswapV2Fork;
buyOnUniswapV2Fork: ContractMethodV5.buyOnUniswapV2Fork;
simpleBuy: ContractMethodV5.simpleBuy;
simpleSwap: ContractMethodV5.simpleSwap;
multiSwap: ContractMethodV5.multiSwap;
megaSwap: ContractMethodV5.megaSwap;
protectedMultiSwap: ContractMethodV5.protectedMultiSwap;
protectedMegaSwap: ContractMethodV5.protectedMegaSwap;
protectedSimpleSwap: ContractMethodV5.protectedSimpleSwap;
protectedSimpleBuy: ContractMethodV5.protectedSimpleBuy;
swapOnZeroXv2: ContractMethodV5.swapOnZeroXv2;
swapOnZeroXv4: ContractMethodV5.swapOnZeroXv4;
buy: ContractMethodV5.buy;
directUniV3Swap: ContractMethodV5.directUniV3Swap;
directUniV3Buy: ContractMethodV5.directUniV3Buy;
directCurveV1Swap: ContractMethodV5.directCurveV1Swap;
directCurveV2Swap: ContractMethodV5.directCurveV2Swap;
directBalancerV2GivenInSwap: ContractMethodV5.directBalancerV2GivenInSwap;
directBalancerV2GivenOutSwap: ContractMethodV5.directBalancerV2GivenOutSwap;
};
export declare type ContractMethod = ContractMethodV5 | ContractMethodV6;
export declare const DirectContractMethodsWithFeeModel: ContractMethod[];
export declare const DirectContractMethods: (ContractMethodV5 | ContractMethodV6)[];