Socket
Socket
Sign inDemoInstall

@uniswap/uniswapx-sdk

Package Overview
Dependencies
Maintainers
24
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniswap/uniswapx-sdk - npm Package Compare versions

Comparing version 1.5.0-alpha.6 to 1.5.0-alpha.7

2

dist/src/order/V2DutchOrder.js

@@ -122,3 +122,3 @@ "use strict";

// use empty default for cosignerData and cosignature
[0, 0, ethers_1.ethers.constants.AddressZero, 0, [0]],
[0, 0, ethers_1.ethers.constants.AddressZero, 0, 0, [0]],
"0x",

@@ -125,0 +125,0 @@ ],

@@ -78,2 +78,12 @@ "use strict";

});
it("parses a serialized order unsigned ", () => {
const orderInfo = getOrderInfo({});
const order = new V2DutchOrder_1.UnsignedV2DutchOrder(orderInfo, 1);
const serialized = order.serialize();
const parsed = V2DutchOrder_1.UnsignedV2DutchOrder.parse(serialized, 1);
expect(parsed.info.cosigner).toEqual(orderInfo.cosigner);
expect(parsed.info.swapper).toEqual(orderInfo.swapper);
expect(parsed.info.baseInput).toEqual(orderInfo.baseInput);
expect(parsed.info.baseOutputs).toEqual(orderInfo.baseOutputs);
});
it("parses the inner v2 order with no cosignerOverrides", () => {

@@ -80,0 +90,0 @@ const orderInfoJSON = Object.assign(Object.assign({}, getOrderInfo({})), { nonce: "10", baseInput: {

{
"name": "@uniswap/uniswapx-sdk",
"author": "Uniswap",
"version": "1.5.0-alpha.6",
"version": "1.5.0-alpha.7",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "dist/src/index.js",

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