@uniswap/uniswapx-sdk
Advanced tools
Comparing version 1.5.0-alpha.6 to 1.5.0-alpha.7
@@ -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
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
1285301
17102