@paraswap/core
Advanced tools
Comparing version 1.0.5-rfq-direct.0 to 1.0.5
@@ -22,5 +22,10 @@ export declare enum SwapSide { | ||
swapOnZeroXv4 = "swapOnZeroXv4", | ||
swapOnAugustusRFQ = "swapOnAugustusRFQ", | ||
swapOnAugustusRFQWithPermit = "swapOnAugustusRFQWithPermit", | ||
buy = "buy" | ||
buy = "buy", | ||
directUniV3Swap = "directUniV3Swap", | ||
directUniV3Buy = "directUniV3Buy", | ||
directCurveV1Swap = "directCurveV1Swap", | ||
directCurveV2Swap = "directCurveV2Swap", | ||
directBalancerV2GivenInSwap = "directBalancerV2GivenInSwap", | ||
directBalancerV2GivenOutSwap = "directBalancerV2GivenOutSwap" | ||
} | ||
export declare const DirectContractMethods: ContractMethod[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ContractMethod = exports.SwapSide = void 0; | ||
exports.DirectContractMethods = exports.ContractMethod = exports.SwapSide = void 0; | ||
var SwapSide; | ||
@@ -9,3 +9,2 @@ (function (SwapSide) { | ||
})(SwapSide = exports.SwapSide || (exports.SwapSide = {})); | ||
; | ||
var ContractMethod; | ||
@@ -29,6 +28,26 @@ (function (ContractMethod) { | ||
ContractMethod["swapOnZeroXv4"] = "swapOnZeroXv4"; | ||
ContractMethod["swapOnAugustusRFQ"] = "swapOnAugustusRFQ"; | ||
ContractMethod["swapOnAugustusRFQWithPermit"] = "swapOnAugustusRFQWithPermit"; | ||
ContractMethod["buy"] = "buy"; // TODO: remove this in future | ||
ContractMethod["buy"] = "buy"; | ||
ContractMethod["directUniV3Swap"] = "directUniV3Swap"; | ||
ContractMethod["directUniV3Buy"] = "directUniV3Buy"; | ||
ContractMethod["directCurveV1Swap"] = "directCurveV1Swap"; | ||
ContractMethod["directCurveV2Swap"] = "directCurveV2Swap"; | ||
ContractMethod["directBalancerV2GivenInSwap"] = "directBalancerV2GivenInSwap"; | ||
ContractMethod["directBalancerV2GivenOutSwap"] = "directBalancerV2GivenOutSwap"; | ||
})(ContractMethod = exports.ContractMethod || (exports.ContractMethod = {})); | ||
exports.DirectContractMethods = [ | ||
ContractMethod.swapOnUniswap, | ||
ContractMethod.buyOnUniswap, | ||
ContractMethod.swapOnUniswapFork, | ||
ContractMethod.buyOnUniswapFork, | ||
ContractMethod.swapOnUniswapV2Fork, | ||
ContractMethod.buyOnUniswapV2Fork, | ||
ContractMethod.swapOnZeroXv2, | ||
ContractMethod.swapOnZeroXv4, | ||
ContractMethod.directUniV3Swap, | ||
ContractMethod.directUniV3Buy, | ||
ContractMethod.directCurveV1Swap, | ||
ContractMethod.directCurveV2Swap, | ||
ContractMethod.directBalancerV2GivenInSwap, | ||
ContractMethod.directBalancerV2GivenOutSwap, | ||
]; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,2 +0,2 @@ | ||
export { Address, NumberAsString, Adapters, OptimalRoute, OptimalSwap, OptimalSwapExchange, OptionalRate, OptimalRate } from './types'; | ||
export { SwapSide, ContractMethod } from './constants'; | ||
export { Address, NumberAsString, Adapters, OptimalRoute, OptimalSwap, OptimalSwapExchange, OptionalRate, OptimalRate, } from "./types"; | ||
export { SwapSide, ContractMethod, DirectContractMethods } from "./constants"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ContractMethod = exports.SwapSide = void 0; | ||
exports.DirectContractMethods = exports.ContractMethod = exports.SwapSide = void 0; | ||
var constants_1 = require("./constants"); | ||
Object.defineProperty(exports, "SwapSide", { enumerable: true, get: function () { return constants_1.SwapSide; } }); | ||
Object.defineProperty(exports, "ContractMethod", { enumerable: true, get: function () { return constants_1.ContractMethod; } }); | ||
Object.defineProperty(exports, "DirectContractMethods", { enumerable: true, get: function () { return constants_1.DirectContractMethods; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@paraswap/core", | ||
"version": "1.0.5-rfq-direct.0", | ||
"version": "1.0.5", | ||
"description": "Common library used between different paraswap packages", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
export enum SwapSide { | ||
BUY = 'BUY', | ||
SELL = 'SELL', | ||
}; | ||
BUY = "BUY", | ||
SELL = "SELL", | ||
} | ||
export enum ContractMethod { | ||
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', | ||
swapOnAugustusRFQ = 'swapOnAugustusRFQ', | ||
swapOnAugustusRFQWithPermit = 'swapOnAugustusRFQWithPermit', | ||
buy = 'buy' // TODO: remove this in future | ||
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", // TODO: remove this in future | ||
directUniV3Swap = "directUniV3Swap", | ||
directUniV3Buy = "directUniV3Buy", | ||
directCurveV1Swap = "directCurveV1Swap", | ||
directCurveV2Swap = "directCurveV2Swap", | ||
directBalancerV2GivenInSwap = "directBalancerV2GivenInSwap", | ||
directBalancerV2GivenOutSwap = "directBalancerV2GivenOutSwap", | ||
} | ||
export const DirectContractMethods: ContractMethod[] = [ | ||
ContractMethod.swapOnUniswap, | ||
ContractMethod.buyOnUniswap, | ||
ContractMethod.swapOnUniswapFork, | ||
ContractMethod.buyOnUniswapFork, | ||
ContractMethod.swapOnUniswapV2Fork, | ||
ContractMethod.buyOnUniswapV2Fork, | ||
ContractMethod.swapOnZeroXv2, | ||
ContractMethod.swapOnZeroXv4, | ||
ContractMethod.directUniV3Swap, | ||
ContractMethod.directUniV3Buy, | ||
ContractMethod.directCurveV1Swap, | ||
ContractMethod.directCurveV2Swap, | ||
ContractMethod.directBalancerV2GivenInSwap, | ||
ContractMethod.directBalancerV2GivenOutSwap, | ||
]; |
@@ -9,8 +9,5 @@ export { | ||
OptionalRate, | ||
OptimalRate | ||
} from './types'; | ||
OptimalRate, | ||
} from "./types"; | ||
export { | ||
SwapSide, | ||
ContractMethod | ||
} from './constants'; | ||
export { SwapSide, ContractMethod, DirectContractMethods } from "./constants"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11756
288
1
0