Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paraswap/core

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paraswap/core - npm Package Compare versions

Comparing version 1.0.5-rfq-direct.0 to 1.0.5

11

build/constants.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc