@georgeroman/wyvern-v2-sdk
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -48,4 +48,3 @@ "use strict"; | ||
static sell(params) { | ||
var _a; | ||
if ((0, utils_1.bn)((_a = params.extra) !== null && _a !== void 0 ? _a : 0).gt(0)) { | ||
if ((0, utils_1.bn)(params.extra || 0).gt(0)) { | ||
if ((0, utils_1.bn)(params.listingTime).gte((0, utils_1.bn)(params.expirationTime))) { | ||
@@ -63,3 +62,5 @@ throw new Error("Invalid listing/expiration time"); | ||
side: types_1.Side.SELL, | ||
saleKind: params.extra ? types_1.SaleKind.DUTCH_AUCTION : types_1.SaleKind.FIXED_PRICE, | ||
saleKind: (0, utils_1.bn)(params.extra || 0).gt(0) | ||
? types_1.SaleKind.DUTCH_AUCTION | ||
: types_1.SaleKind.FIXED_PRICE, | ||
target: params.target, | ||
@@ -85,4 +86,3 @@ howToCall: types_1.HowToCall.CALL, | ||
static buy(params) { | ||
var _a; | ||
if ((0, utils_1.bn)((_a = params.extra) !== null && _a !== void 0 ? _a : 0).gt(0)) { | ||
if ((0, utils_1.bn)(params.extra || 0).gt(0)) { | ||
if ((0, utils_1.bn)(params.listingTime).gte((0, utils_1.bn)(params.expirationTime))) { | ||
@@ -100,3 +100,5 @@ throw new Error("Invalid listing/expiration time"); | ||
side: types_1.Side.BUY, | ||
saleKind: params.extra ? types_1.SaleKind.DUTCH_AUCTION : types_1.SaleKind.FIXED_PRICE, | ||
saleKind: (0, utils_1.bn)(params.extra || 0).gt(0) | ||
? types_1.SaleKind.DUTCH_AUCTION | ||
: types_1.SaleKind.FIXED_PRICE, | ||
target: params.target, | ||
@@ -103,0 +105,0 @@ howToCall: types_1.HowToCall.CALL, |
{ | ||
"name": "@georgeroman/wyvern-v2-sdk", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Wyvern V2 SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126717
3124